Merge pull request #4324 from FernetMenta/wasapi
[vuplus_xbmc] / lib / libmodplug / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="Makefile.am"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 MINGW32_FALSE
748 MINGW32_TRUE
749 OTOOL64
750 OTOOL
751 LIPO
752 NMEDIT
753 DSYMUTIL
754 lt_ECHO
755 RANLIB
756 AR
757 LN_S
758 NM
759 ac_ct_DUMPBIN
760 DUMPBIN
761 LD
762 FGREP
763 SED
764 LIBTOOL
765 OBJDUMP
766 DLLTOOL
767 AS
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 EGREP
777 GREP
778 CXXCPP
779 am__fastdepCXX_FALSE
780 am__fastdepCXX_TRUE
781 CXXDEPMODE
782 ac_ct_CXX
783 CXXFLAGS
784 CXX
785 am__fastdepCC_FALSE
786 am__fastdepCC_TRUE
787 CCDEPMODE
788 AMDEPBACKSLASH
789 AMDEP_FALSE
790 AMDEP_TRUE
791 am__quote
792 am__include
793 DEPDIR
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 am__untar
802 am__tar
803 AMTAR
804 am__leading_dot
805 SET_MAKE
806 AWK
807 mkdir_p
808 MKDIR_P
809 INSTALL_STRIP_PROGRAM
810 STRIP
811 install_sh
812 MAKEINFO
813 AUTOHEADER
814 AUTOMAKE
815 AUTOCONF
816 ACLOCAL
817 VERSION
818 PACKAGE
819 CYGPATH_W
820 am__isrc
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 enable_static
866 enable_dependency_tracking
867 enable_shared
868 with_pic
869 enable_fast_install
870 with_gnu_ld
871 enable_libtool_lock
872 '
873       ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CXX
882 CXXFLAGS
883 CCC
884 CXXCPP'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939   # If the previous option needs an argument, assign it.
940   if test -n "$ac_prev"; then
941     eval $ac_prev=\$ac_option
942     ac_prev=
943     continue
944   fi
945
946   case $ac_option in
947   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   # Accept the important Cygnus configure options, so we can diagnose typos.
952
953   case $ac_dashdash$ac_option in
954   --)
955     ac_dashdash=yes ;;
956
957   -bindir | --bindir | --bindi | --bind | --bin | --bi)
958     ac_prev=bindir ;;
959   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960     bindir=$ac_optarg ;;
961
962   -build | --build | --buil | --bui | --bu)
963     ac_prev=build_alias ;;
964   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965     build_alias=$ac_optarg ;;
966
967   -cache-file | --cache-file | --cache-fil | --cache-fi \
968   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969     ac_prev=cache_file ;;
970   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972     cache_file=$ac_optarg ;;
973
974   --config-cache | -C)
975     cache_file=config.cache ;;
976
977   -datadir | --datadir | --datadi | --datad)
978     ac_prev=datadir ;;
979   -datadir=* | --datadir=* | --datadi=* | --datad=*)
980     datadir=$ac_optarg ;;
981
982   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983   | --dataroo | --dataro | --datar)
984     ac_prev=datarootdir ;;
985   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987     datarootdir=$ac_optarg ;;
988
989   -disable-* | --disable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=no ;;
1004
1005   -docdir | --docdir | --docdi | --doc | --do)
1006     ac_prev=docdir ;;
1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008     docdir=$ac_optarg ;;
1009
1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011     ac_prev=dvidir ;;
1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013     dvidir=$ac_optarg ;;
1014
1015   -enable-* | --enable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error "invalid feature name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) as_fn_error "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information."
1271     ;;
1272
1273   *=*)
1274     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275     # Reject names that are not valid shell variable names.
1276     case $ac_envvar in #(
1277       '' | [0-9]* | *[!_$as_cr_alnum]* )
1278       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1279     esac
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   as_fn_error "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300   case $enable_option_checking in
1301     no) ;;
1302     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1303     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304   esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309                 datadir sysconfdir sharedstatedir localstatedir includedir \
1310                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311                 libdir localedir mandir
1312 do
1313   eval ac_val=\$$ac_var
1314   # Remove trailing slashes.
1315   case $ac_val in
1316     */ )
1317       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318       eval $ac_var=\$ac_val;;
1319   esac
1320   # Be sure to have absolute directory names.
1321   case $ac_val in
1322     [\\/$]* | ?:[\\/]* )  continue;;
1323     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324   esac
1325   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337   if test "x$build_alias" = x; then
1338     cross_compiling=maybe
1339     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340     If a cross compiler is detected then cross compile mode will be used." >&2
1341   elif test "x$build_alias" != "x$host_alias"; then
1342     cross_compiling=yes
1343   fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355   as_fn_error "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357   as_fn_error "pwd does not report name of working directory"
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362   ac_srcdir_defaulted=yes
1363   # Try the directory containing this script, then the parent directory.
1364   ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366          X"$as_myself" : 'X\(//\)[^/]' \| \
1367          X"$as_myself" : 'X\(//\)$' \| \
1368          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371             s//\1/
1372             q
1373           }
1374           /^X\(\/\/\)[^/].*/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\).*/{
1383             s//\1/
1384             q
1385           }
1386           s/.*/./; q'`
1387   srcdir=$ac_confdir
1388   if test ! -r "$srcdir/$ac_unique_file"; then
1389     srcdir=..
1390   fi
1391 else
1392   ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1397 fi
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1401         pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404   srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_env_${ac_var}_value=\$${ac_var}
1415   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423   # Omit some internal or obsolete options to make the list less imposing.
1424   # This message is too long to be a string in the A/UX 3.1 sh.
1425   cat <<_ACEOF
1426 \`configure' configures this package to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE.  See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436   -h, --help              display this help and exit
1437       --help=short        display options specific to this package
1438       --help=recursive    display the short help of all the included packages
1439   -V, --version           display version information and exit
1440   -q, --quiet, --silent   do not print \`checking...' messages
1441       --cache-file=FILE   cache test results in FILE [disabled]
1442   -C, --config-cache      alias for \`--cache-file=config.cache'
1443   -n, --no-create         do not create output files
1444       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1445
1446 Installation directories:
1447   --prefix=PREFIX         install architecture-independent files in PREFIX
1448                           [$ac_default_prefix]
1449   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1450                           [PREFIX]
1451
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460   --bindir=DIR            user executables [EPREFIX/bin]
1461   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1462   --libexecdir=DIR        program executables [EPREFIX/libexec]
1463   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1464   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1465   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1466   --libdir=DIR            object code libraries [EPREFIX/lib]
1467   --includedir=DIR        C header files [PREFIX/include]
1468   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1469   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1470   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1471   --infodir=DIR           info documentation [DATAROOTDIR/info]
1472   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1473   --mandir=DIR            man documentation [DATAROOTDIR/man]
1474   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1475   --htmldir=DIR           html documentation [DOCDIR]
1476   --dvidir=DIR            dvi documentation [DOCDIR]
1477   --pdfdir=DIR            pdf documentation [DOCDIR]
1478   --psdir=DIR             ps documentation [DOCDIR]
1479 _ACEOF
1480
1481   cat <<\_ACEOF
1482
1483 Program names:
1484   --program-prefix=PREFIX            prepend PREFIX to installed program names
1485   --program-suffix=SUFFIX            append SUFFIX to installed program names
1486   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1487
1488 System types:
1489   --build=BUILD     configure for building on BUILD [guessed]
1490   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495
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-static[=PKGS]  build static libraries [default=no]
1503   --disable-dependency-tracking  speeds up one-time build
1504   --enable-dependency-tracking   do not reject slow dependency extractors
1505   --enable-shared[=PKGS]  build shared libraries [default=yes]
1506   --enable-fast-install[=PKGS]
1507                           optimize for fast installation [default=yes]
1508   --disable-libtool-lock  avoid locking (might break parallel builds)
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-pic              try to use only PIC/non-PIC objects [default=use
1514                           both]
1515   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CXX         C++ compiler command
1526   CXXFLAGS    C++ compiler flags
1527   CXXCPP      C++ preprocessor
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to the package provider.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538   # If there are subdirs, report their specific --help.
1539   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540     test -d "$ac_dir" ||
1541       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542       continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 configure
1596 generated by GNU Autoconf 2.65
1597
1598 Copyright (C) 2009 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602   exit
1603 fi
1604
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1608
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   rm -f conftest.$ac_objext
1616   if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_compile") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } && {
1632          test -z "$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        } && test -s conftest.$ac_objext; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640         ac_retval=1
1641 fi
1642   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1651 {
1652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653   rm -f conftest.$ac_objext
1654   if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_compile") 2>conftest.err
1662   ac_status=$?
1663   if test -s conftest.err; then
1664     grep -v '^ *+' conftest.err >conftest.er1
1665     cat conftest.er1 >&5
1666     mv -f conftest.er1 conftest.err
1667   fi
1668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669   test $ac_status = 0; } && {
1670          test -z "$ac_cxx_werror_flag" ||
1671          test ! -s conftest.err
1672        } && test -s conftest.$ac_objext; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_cxx_try_compile
1684
1685 # ac_fn_cxx_try_run LINENO
1686 # ------------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_cxx_try_run ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_link") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703   { { case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_try") 2>&5
1710   ac_status=$?
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; }; }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: program exited with status $ac_status" >&5
1716        $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719        ac_retval=$ac_status
1720 fi
1721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_cxx_try_run
1726
1727 # ac_fn_cxx_try_cpp LINENO
1728 # ------------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_cpp ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } >/dev/null && {
1749          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1750          test ! -s conftest.err
1751        }; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757     ac_retval=1
1758 fi
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_cxx_try_cpp
1763
1764 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1765 # ---------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_cxx_check_header_compile ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774   $as_echo_n "(cached) " >&6
1775 else
1776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 $4
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_cxx_try_compile "$LINENO"; then :
1782   eval "$3=yes"
1783 else
1784   eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
1793 } # ac_fn_cxx_check_header_compile
1794
1795 # ac_fn_c_try_link LINENO
1796 # -----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_link ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   rm -f conftest.$ac_objext conftest$ac_exeext
1802   if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_link") 2>conftest.err
1810   ac_status=$?
1811   if test -s conftest.err; then
1812     grep -v '^ *+' conftest.err >conftest.er1
1813     cat conftest.er1 >&5
1814     mv -f conftest.er1 conftest.err
1815   fi
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && {
1818          test -z "$ac_c_werror_flag" ||
1819          test ! -s conftest.err
1820        } && test -s conftest$ac_exeext && {
1821          test "$cross_compiling" = yes ||
1822          $as_test_x conftest$ac_exeext
1823        }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833   # interfere with the next link command; also delete a directory that is
1834   # left behind by Apple's compiler.  We do this before executing the actions.
1835   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_link
1840
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851   $as_echo_n "(cached) " >&6
1852 else
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 $4
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859   eval "$3=yes"
1860 else
1861   eval "$3=no"
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870 } # ac_fn_c_check_header_compile
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_link LINENO
1940 # -------------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_link ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   rm -f conftest.$ac_objext conftest$ac_exeext
1946   if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_link") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } && {
1962          test -z "$ac_cxx_werror_flag" ||
1963          test ! -s conftest.err
1964        } && test -s conftest$ac_exeext && {
1965          test "$cross_compiling" = yes ||
1966          $as_test_x conftest$ac_exeext
1967        }; then :
1968   ac_retval=0
1969 else
1970   $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973         ac_retval=1
1974 fi
1975   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977   # interfere with the next link command; also delete a directory that is
1978   # left behind by Apple's compiler.  We do this before executing the actions.
1979   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981   as_fn_set_status $ac_retval
1982
1983 } # ac_fn_cxx_try_link
1984
1985 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # ---------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1989 # accordingly.
1990 ac_fn_cxx_check_header_mongrel ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997   $as_echo_n "(cached) " >&6
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 else
2003   # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_cxx_try_compile "$LINENO"; then :
2012   ac_header_compiler=yes
2013 else
2014   ac_header_compiler=no
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2019
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_cxx_try_cpp "$LINENO"; then :
2028   ac_header_preproc=yes
2029 else
2030   ac_header_preproc=no
2031 fi
2032 rm -f conftest.err conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2035
2036 # So?  What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2038   yes:no: )
2039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043     ;;
2044   no:yes:* )
2045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055     ;;
2056 esac
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   eval "$3=\$ac_header_compiler"
2063 fi
2064 eval ac_res=\$$3
2065                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 fi
2068   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_cxx_check_header_mongrel
2071
2072 # ac_fn_cxx_check_func LINENO FUNC VAR
2073 # ------------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_cxx_check_func ()
2076 {
2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081   $as_echo_n "(cached) " >&6
2082 else
2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2087 #define $2 innocuous_$2
2088
2089 /* System header to define __stub macros and hopefully few prototypes,
2090     which can conflict with char $2 (); below.
2091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092     <limits.h> exists even on freestanding compilers.  */
2093
2094 #ifdef __STDC__
2095 # include <limits.h>
2096 #else
2097 # include <assert.h>
2098 #endif
2099
2100 #undef $2
2101
2102 /* Override any GCC internal prototype to avoid an error.
2103    Use char because int might match the return type of a GCC
2104    builtin and then its argument prototype would still apply.  */
2105 #ifdef __cplusplus
2106 extern "C"
2107 #endif
2108 char $2 ();
2109 /* The GNU C library defines this for functions which it implements
2110     to always fail with ENOSYS.  Some functions are actually named
2111     something starting with __ and the normal name is an alias.  */
2112 #if defined __stub_$2 || defined __stub___$2
2113 choke me
2114 #endif
2115
2116 int
2117 main ()
2118 {
2119 return $2 ();
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_cxx_try_link "$LINENO"; then :
2125   eval "$3=yes"
2126 else
2127   eval "$3=no"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext \
2130     conftest$ac_exeext conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136
2137 } # ac_fn_cxx_check_func
2138
2139 # ac_fn_c_find_intX_t LINENO BITS VAR
2140 # -----------------------------------
2141 # Finds a signed integer type with width BITS, setting cache variable VAR
2142 # accordingly.
2143 ac_fn_c_find_intX_t ()
2144 {
2145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2147 $as_echo_n "checking for int$2_t... " >&6; }
2148 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149   $as_echo_n "(cached) " >&6
2150 else
2151   eval "$3=no"
2152      # Order is important - never check a type that is potentially smaller
2153      # than half of the expected target width.
2154      for ac_type in int$2_t 'int' 'long int' \
2155          'long long int' 'short int' 'signed char'; do
2156        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $ac_includes_default
2159              enum { N = $2 / 2 - 1 };
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h.  */
2173 $ac_includes_default
2174                 enum { N = $2 / 2 - 1 };
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2179                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2180 test_array [0] = 0
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187
2188 else
2189   case $ac_type in #(
2190   int$2_t) :
2191     eval "$3=yes" ;; #(
2192   *) :
2193     eval "$3=\$ac_type" ;;
2194 esac
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199        eval as_val=\$$3
2200    if test "x$as_val" = x""no; then :
2201
2202 else
2203   break
2204 fi
2205      done
2206 fi
2207 eval ac_res=\$$3
2208                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211
2212 } # ac_fn_c_find_intX_t
2213
2214 # ac_fn_c_find_uintX_t LINENO BITS VAR
2215 # ------------------------------------
2216 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2217 # accordingly.
2218 ac_fn_c_find_uintX_t ()
2219 {
2220   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2222 $as_echo_n "checking for uint$2_t... " >&6; }
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224   $as_echo_n "(cached) " >&6
2225 else
2226   eval "$3=no"
2227      # Order is important - never check a type that is potentially smaller
2228      # than half of the expected target width.
2229      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2230          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2231        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $ac_includes_default
2234 int
2235 main ()
2236 {
2237 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2238 test_array [0] = 0
2239
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2245   case $ac_type in #(
2246   uint$2_t) :
2247     eval "$3=yes" ;; #(
2248   *) :
2249     eval "$3=\$ac_type" ;;
2250 esac
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253        eval as_val=\$$3
2254    if test "x$as_val" = x""no; then :
2255
2256 else
2257   break
2258 fi
2259      done
2260 fi
2261 eval ac_res=\$$3
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265
2266 } # ac_fn_c_find_uintX_t
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2270
2271 It was created by $as_me, which was
2272 generated by GNU Autoconf 2.65.  Invocation command line was
2273
2274   $ $0 $@
2275
2276 _ACEOF
2277 exec 5>>config.log
2278 {
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2283
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2292
2293 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2294 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2297 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2298 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2299 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2300
2301 _ASUNAME
2302
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308     $as_echo "PATH: $as_dir"
2309   done
2310 IFS=$as_save_IFS
2311
2312 } >&5
2313
2314 cat >&5 <<_ACEOF
2315
2316
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2320
2321 _ACEOF
2322
2323
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2334 do
2335   for ac_arg
2336   do
2337     case $ac_arg in
2338     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340     | -silent | --silent | --silen | --sile | --sil)
2341       continue ;;
2342     *\'*)
2343       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     esac
2345     case $ac_pass in
2346     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347     2)
2348       as_fn_append ac_configure_args1 " '$ac_arg'"
2349       if test $ac_must_keep_next = true; then
2350         ac_must_keep_next=false # Got value, back to normal.
2351       else
2352         case $ac_arg in
2353           *=* | --config-cache | -C | -disable-* | --disable-* \
2354           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356           | -with-* | --with-* | -without-* | --without-* | --x)
2357             case "$ac_configure_args0 " in
2358               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359             esac
2360             ;;
2361           -* ) ac_must_keep_next=true ;;
2362         esac
2363       fi
2364       as_fn_append ac_configure_args " '$ac_arg'"
2365       ;;
2366     esac
2367   done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2371
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log.  We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378   # Save into config.log some information that might help in debugging.
2379   {
2380     echo
2381
2382     cat <<\_ASBOX
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2386 _ASBOX
2387     echo
2388     # The following way of writing the cache mishandles newlines in values,
2389 (
2390   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391     eval ac_val=\$$ac_var
2392     case $ac_val in #(
2393     *${as_nl}*)
2394       case $ac_var in #(
2395       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397       esac
2398       case $ac_var in #(
2399       _ | IFS | as_nl) ;; #(
2400       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401       *) { eval $ac_var=; unset $ac_var;} ;;
2402       esac ;;
2403     esac
2404   done
2405   (set) 2>&1 |
2406     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407     *${as_nl}ac_space=\ *)
2408       sed -n \
2409         "s/'\''/'\''\\\\'\'''\''/g;
2410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411       ;; #(
2412     *)
2413       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414       ;;
2415     esac |
2416     sort
2417 )
2418     echo
2419
2420     cat <<\_ASBOX
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2424 _ASBOX
2425     echo
2426     for ac_var in $ac_subst_vars
2427     do
2428       eval ac_val=\$$ac_var
2429       case $ac_val in
2430       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431       esac
2432       $as_echo "$ac_var='\''$ac_val'\''"
2433     done | sort
2434     echo
2435
2436     if test -n "$ac_subst_files"; then
2437       cat <<\_ASBOX
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2441 _ASBOX
2442       echo
2443       for ac_var in $ac_subst_files
2444       do
2445         eval ac_val=\$$ac_var
2446         case $ac_val in
2447         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448         esac
2449         $as_echo "$ac_var='\''$ac_val'\''"
2450       done | sort
2451       echo
2452     fi
2453
2454     if test -s confdefs.h; then
2455       cat <<\_ASBOX
2456 ## ----------- ##
2457 ## confdefs.h. ##
2458 ## ----------- ##
2459 _ASBOX
2460       echo
2461       cat confdefs.h
2462       echo
2463     fi
2464     test "$ac_signal" != 0 &&
2465       $as_echo "$as_me: caught signal $ac_signal"
2466     $as_echo "$as_me: exit $exit_status"
2467   } >&5
2468   rm -f core *.core core.conftest.* &&
2469     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2470     exit $exit_status
2471 ' 0
2472 for ac_signal in 1 2 13 15; do
2473   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 done
2475 ac_signal=0
2476
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2479
2480 $as_echo "/* confdefs.h */" > confdefs.h
2481
2482 # Predefined preprocessor variables.
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2506 _ACEOF
2507
2508
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2511 ac_site_file1=NONE
2512 ac_site_file2=NONE
2513 if test -n "$CONFIG_SITE"; then
2514   ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516   ac_site_file1=$prefix/share/config.site
2517   ac_site_file2=$prefix/etc/config.site
2518 else
2519   ac_site_file1=$ac_default_prefix/share/config.site
2520   ac_site_file2=$ac_default_prefix/etc/config.site
2521 fi
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 do
2524   test "x$ac_site_file" = xNONE && continue
2525   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528     sed 's/^/| /' "$ac_site_file" >&5
2529     . "$ac_site_file"
2530   fi
2531 done
2532
2533 if test -r "$cache_file"; then
2534   # Some versions of bash will fail to source /dev/null (special files
2535   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2536   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539     case $cache_file in
2540       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541       *)                      . "./$cache_file";;
2542     esac
2543   fi
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547   >$cache_file
2548 fi
2549
2550 # Check that the precious variables saved in the cache have kept the same
2551 # value.
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555   eval ac_new_set=\$ac_env_${ac_var}_set
2556   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557   eval ac_new_val=\$ac_env_${ac_var}_value
2558   case $ac_old_set,$ac_new_set in
2559     set,)
2560       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562       ac_cache_corrupted=: ;;
2563     ,set)
2564       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566       ac_cache_corrupted=: ;;
2567     ,);;
2568     *)
2569       if test "x$ac_old_val" != "x$ac_new_val"; then
2570         # differences in whitespace do not lead to failure.
2571         ac_old_val_w=`echo x $ac_old_val`
2572         ac_new_val_w=`echo x $ac_new_val`
2573         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576           ac_cache_corrupted=:
2577         else
2578           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580           eval $ac_var=\$ac_old_val
2581         fi
2582         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2583 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2584         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2585 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2586       fi;;
2587   esac
2588   # Pass precious variables to config.status.
2589   if test "$ac_new_set" = set; then
2590     case $ac_new_val in
2591     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592     *) ac_arg=$ac_var=$ac_new_val ;;
2593     esac
2594     case " $ac_configure_args " in
2595       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2596       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597     esac
2598   fi
2599 done
2600 if $ac_cache_corrupted; then
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 fi
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2610
2611 ac_ext=c
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616
2617
2618
2619
2620
2621 am__api_version='1.11'
2622
2623 ac_aux_dir=
2624 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2625   for ac_t in install-sh install.sh shtool; do
2626     if test -f "$ac_dir/$ac_t"; then
2627       ac_aux_dir=$ac_dir
2628       ac_install_sh="$ac_aux_dir/$ac_t -c"
2629       break 2
2630     fi
2631   done
2632 done
2633 if test -z "$ac_aux_dir"; then
2634   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2635 fi
2636
2637 # These three variables are undocumented and unsupported,
2638 # and are intended to be withdrawn in a future Autoconf release.
2639 # They can cause serious problems if a builder's source tree is in a directory
2640 # whose full name contains unusual characters.
2641 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2642 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2643 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2644
2645
2646 # Find a good install program.  We prefer a C program (faster),
2647 # so one script is as good as another.  But avoid the broken or
2648 # incompatible versions:
2649 # SysV /etc/install, /usr/sbin/install
2650 # SunOS /usr/etc/install
2651 # IRIX /sbin/install
2652 # AIX /bin/install
2653 # AmigaOS /C/install, which installs bootblocks on floppy discs
2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2657 # OS/2's system install, which has a completely different semantic
2658 # ./install, which can be erroneously created by make from ./install.sh.
2659 # Reject install programs that cannot install multiple files.
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2661 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2662 if test -z "$INSTALL"; then
2663 if test "${ac_cv_path_install+set}" = set; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     # Account for people who put trailing slashes in PATH elements.
2672 case $as_dir/ in #((
2673   ./ | .// | /[cC]/* | \
2674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676   /usr/ucb/* ) ;;
2677   *)
2678     # OSF1 and SCO ODT 3.0 have their own names for install.
2679     # Don't use installbsd from OSF since it installs stuff as root
2680     # by default.
2681     for ac_prog in ginstall scoinst install; do
2682       for ac_exec_ext in '' $ac_executable_extensions; do
2683         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2684           if test $ac_prog = install &&
2685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686             # AIX install.  It has an incompatible calling convention.
2687             :
2688           elif test $ac_prog = install &&
2689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690             # program-specific install script used by HP pwplus--don't use.
2691             :
2692           else
2693             rm -rf conftest.one conftest.two conftest.dir
2694             echo one > conftest.one
2695             echo two > conftest.two
2696             mkdir conftest.dir
2697             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2698               test -s conftest.one && test -s conftest.two &&
2699               test -s conftest.dir/conftest.one &&
2700               test -s conftest.dir/conftest.two
2701             then
2702               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2703               break 3
2704             fi
2705           fi
2706         fi
2707       done
2708     done
2709     ;;
2710 esac
2711
2712   done
2713 IFS=$as_save_IFS
2714
2715 rm -rf conftest.one conftest.two conftest.dir
2716
2717 fi
2718   if test "${ac_cv_path_install+set}" = set; then
2719     INSTALL=$ac_cv_path_install
2720   else
2721     # As a last resort, use the slow shell script.  Don't cache a
2722     # value for INSTALL within a source directory, because that will
2723     # break other packages using the cache if that directory is
2724     # removed, or if the value is a relative name.
2725     INSTALL=$ac_install_sh
2726   fi
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2729 $as_echo "$INSTALL" >&6; }
2730
2731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732 # It thinks the first close brace ends the variable substitution.
2733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
2735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2736
2737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2740 $as_echo_n "checking whether build environment is sane... " >&6; }
2741 # Just in case
2742 sleep 1
2743 echo timestamp > conftest.file
2744 # Reject unsafe characters in $srcdir or the absolute working directory
2745 # name.  Accept space and tab only in the latter.
2746 am_lf='
2747 '
2748 case `pwd` in
2749   *[\\\"\#\$\&\'\`$am_lf]*)
2750     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2751 esac
2752 case $srcdir in
2753   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2754     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2755 esac
2756
2757 # Do `set' in a subshell so we don't clobber the current shell's
2758 # arguments.  Must try -L first in case configure is actually a
2759 # symlink; some systems play weird games with the mod time of symlinks
2760 # (eg FreeBSD returns the mod time of the symlink's containing
2761 # directory).
2762 if (
2763    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2764    if test "$*" = "X"; then
2765       # -L didn't work.
2766       set X `ls -t "$srcdir/configure" conftest.file`
2767    fi
2768    rm -f conftest.file
2769    if test "$*" != "X $srcdir/configure conftest.file" \
2770       && test "$*" != "X conftest.file $srcdir/configure"; then
2771
2772       # If neither matched, then we have a broken ls.  This can happen
2773       # if, for instance, CONFIG_SHELL is bash and it inherits a
2774       # broken ls alias from the environment.  This has actually
2775       # happened.  Such a system could not be considered "sane".
2776       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2777 alias in your environment" "$LINENO" 5
2778    fi
2779
2780    test "$2" = conftest.file
2781    )
2782 then
2783    # Ok.
2784    :
2785 else
2786    as_fn_error "newly created file is older than distributed files!
2787 Check your system clock" "$LINENO" 5
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 test "$program_prefix" != NONE &&
2792   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2793 # Use a double $ so make ignores it.
2794 test "$program_suffix" != NONE &&
2795   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2796 # Double any \ or $.
2797 # By default was `s,x,x', remove it if useless.
2798 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2799 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2800
2801 # expand $ac_aux_dir to an absolute path
2802 am_aux_dir=`cd $ac_aux_dir && pwd`
2803
2804 if test x"${MISSING+set}" != xset; then
2805   case $am_aux_dir in
2806   *\ * | *\     *)
2807     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2808   *)
2809     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2810   esac
2811 fi
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --run true"; then
2814   am_missing_run="$MISSING --run "
2815 else
2816   am_missing_run=
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2818 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2819 fi
2820
2821 if test x"${install_sh}" != xset; then
2822   case $am_aux_dir in
2823   *\ * | *\     *)
2824     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825   *)
2826     install_sh="\${SHELL} $am_aux_dir/install-sh"
2827   esac
2828 fi
2829
2830 # Installed binaries are usually stripped using `strip' when the user
2831 # run `make install-strip'.  However `strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the `STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835   if test -n "$ac_tool_prefix"; then
2836   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_STRIP+set}" = set; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$STRIP"; then
2844   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 STRIP=$ac_cv_prog_STRIP
2864 if test -n "$STRIP"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2866 $as_echo "$STRIP" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_STRIP"; then
2875   ac_ct_STRIP=$STRIP
2876   # Extract the first word of "strip", so it can be a program name with args.
2877 set dummy strip; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if test -n "$ac_ct_STRIP"; then
2884   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     ac_cv_prog_ac_ct_STRIP="strip"
2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898   done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904 if test -n "$ac_ct_STRIP"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2906 $as_echo "$ac_ct_STRIP" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912   if test "x$ac_ct_STRIP" = x; then
2913     STRIP=":"
2914   else
2915     case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921     STRIP=$ac_ct_STRIP
2922   fi
2923 else
2924   STRIP="$ac_cv_prog_STRIP"
2925 fi
2926
2927 fi
2928 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2931 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2932 if test -z "$MKDIR_P"; then
2933   if test "${ac_cv_path_mkdir+set}" = set; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     for ac_prog in mkdir gmkdir; do
2942          for ac_exec_ext in '' $ac_executable_extensions; do
2943            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2944            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945              'mkdir (GNU coreutils) '* | \
2946              'mkdir (coreutils) '* | \
2947              'mkdir (fileutils) '4.1*)
2948                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2949                break 3;;
2950            esac
2951          done
2952        done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957
2958   test -d ./--version && rmdir ./--version
2959   if test "${ac_cv_path_mkdir+set}" = set; then
2960     MKDIR_P="$ac_cv_path_mkdir -p"
2961   else
2962     # As a last resort, use the slow shell script.  Don't cache a
2963     # value for MKDIR_P within a source directory, because that will
2964     # break other packages using the cache if that directory is
2965     # removed, or if the value is a relative name.
2966     MKDIR_P="$ac_install_sh -d"
2967   fi
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2970 $as_echo "$MKDIR_P" >&6; }
2971
2972 mkdir_p="$MKDIR_P"
2973 case $mkdir_p in
2974   [\\/$]* | ?:[\\/]*) ;;
2975   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2976 esac
2977
2978 for ac_prog in gawk mawk nawk awk
2979 do
2980   # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_AWK+set}" = set; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$AWK"; then
2988   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997     ac_cv_prog_AWK="$ac_prog"
2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002   done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 AWK=$ac_cv_prog_AWK
3008 if test -n "$AWK"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3010 $as_echo "$AWK" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017   test -n "$AWK" && break
3018 done
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3021 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3022 set x ${MAKE-make}
3023 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3024 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   cat >conftest.make <<\_ACEOF
3028 SHELL = /bin/sh
3029 all:
3030         @echo '@@@%%%=$(MAKE)=@@@%%%'
3031 _ACEOF
3032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3034   *@@@%%%=?*=@@@%%%*)
3035     eval ac_cv_prog_make_${ac_make}_set=yes;;
3036   *)
3037     eval ac_cv_prog_make_${ac_make}_set=no;;
3038 esac
3039 rm -f conftest.make
3040 fi
3041 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3043 $as_echo "yes" >&6; }
3044   SET_MAKE=
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048   SET_MAKE="MAKE=${MAKE-make}"
3049 fi
3050
3051 rm -rf .tst 2>/dev/null
3052 mkdir .tst 2>/dev/null
3053 if test -d .tst; then
3054   am__leading_dot=.
3055 else
3056   am__leading_dot=_
3057 fi
3058 rmdir .tst 2>/dev/null
3059
3060 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3061   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3062   # is not polluted with repeated "-I."
3063   am__isrc=' -I$(srcdir)'
3064   # test to see if srcdir already configured
3065   if test -f $srcdir/config.status; then
3066     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3067   fi
3068 fi
3069
3070 # test whether we have cygpath
3071 if test -z "$CYGPATH_W"; then
3072   if (cygpath --version) >/dev/null 2>/dev/null; then
3073     CYGPATH_W='cygpath -w'
3074   else
3075     CYGPATH_W=echo
3076   fi
3077 fi
3078
3079
3080 # Define the identity of the package.
3081  PACKAGE=libmodplug
3082  VERSION=0.8.7
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE "$PACKAGE"
3087 _ACEOF
3088
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define VERSION "$VERSION"
3092 _ACEOF
3093
3094 # Some tools Automake needs.
3095
3096 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3097
3098
3099 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3100
3101
3102 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3103
3104
3105 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3106
3107
3108 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3109
3110 # We need awk for the "check" target.  The system "awk" is bad on
3111 # some platforms.
3112 # Always define AMTAR for backward compatibility.
3113
3114 AMTAR=${AMTAR-"${am_missing_run}tar"}
3115
3116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3117
3118
3119
3120
3121
3122 ac_config_headers="$ac_config_headers src/config.h"
3123
3124
3125 # Check whether --enable-static was given.
3126 if test "${enable_static+set}" = set; then :
3127   enableval=$enable_static; p=${PACKAGE-default}
3128     case $enableval in
3129     yes) enable_static=yes ;;
3130     no) enable_static=no ;;
3131     *)
3132      enable_static=no
3133       # Look at the argument we got.  We use all the common list separators.
3134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135       for pkg in $enableval; do
3136         IFS="$lt_save_ifs"
3137         if test "X$pkg" = "X$p"; then
3138           enable_static=yes
3139         fi
3140       done
3141       IFS="$lt_save_ifs"
3142       ;;
3143     esac
3144 else
3145   enable_static=no
3146 fi
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156 # Check whether --enable-static was given.
3157 if test "${enable_static+set}" = set; then :
3158   enableval=$enable_static; p=${PACKAGE-default}
3159     case $enableval in
3160     yes) enable_static=yes ;;
3161     no) enable_static=no ;;
3162     *)
3163      enable_static=no
3164       # Look at the argument we got.  We use all the common list separators.
3165       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3166       for pkg in $enableval; do
3167         IFS="$lt_save_ifs"
3168         if test "X$pkg" = "X$p"; then
3169           enable_static=yes
3170         fi
3171       done
3172       IFS="$lt_save_ifs"
3173       ;;
3174     esac
3175 else
3176   enable_static=no
3177 fi
3178
3179
3180
3181
3182
3183
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$CC"; then
3198   ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 fi
3228 if test -z "$ac_cv_prog_CC"; then
3229   ac_ct_CC=$CC
3230   # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$ac_ct_CC"; then
3238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245     for ac_exec_ext in '' $ac_executable_extensions; do
3246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247     ac_cv_prog_ac_ct_CC="gcc"
3248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252   done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266   if test "x$ac_ct_CC" = x; then
3267     CC=""
3268   else
3269     case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275     CC=$ac_ct_CC
3276   fi
3277 else
3278   CC="$ac_cv_prog_CC"
3279 fi
3280
3281 if test -z "$CC"; then
3282           if test -n "$ac_tool_prefix"; then
3283     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_prog_CC="${ac_tool_prefix}cc"
3301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305   done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320   fi
3321 fi
3322 if test -z "$CC"; then
3323   # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then :
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$CC"; then
3331   ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333   ac_prog_rejected=no
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342        ac_prog_rejected=yes
3343        continue
3344      fi
3345     ac_cv_prog_CC="cc"
3346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350   done
3351 IFS=$as_save_IFS
3352
3353 if test $ac_prog_rejected = yes; then
3354   # We found a bogon in the path, so make sure we never use it.
3355   set dummy $ac_cv_prog_CC
3356   shift
3357   if test $# != 0; then
3358     # We chose a different compiler from the bogus one.
3359     # However, it has the same basename, so the bogon will be chosen
3360     # first if we set CC to just the basename; use the full file name.
3361     shift
3362     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3363   fi
3364 fi
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377 fi
3378 if test -z "$CC"; then
3379   if test -n "$ac_tool_prefix"; then
3380   for ac_prog in cl.exe
3381   do
3382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   if test -n "$CC"; then
3390   ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397     for ac_exec_ext in '' $ac_executable_extensions; do
3398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404   done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3413 else
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419     test -n "$CC" && break
3420   done
3421 fi
3422 if test -z "$CC"; then
3423   ac_ct_CC=$CC
3424   for ac_prog in cl.exe
3425 do
3426   # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$ac_ct_CC"; then
3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443     ac_cv_prog_ac_ct_CC="$ac_prog"
3444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448   done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3457 else
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463   test -n "$ac_ct_CC" && break
3464 done
3465
3466   if test "x$ac_ct_CC" = x; then
3467     CC=""
3468   else
3469     case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475     CC=$ac_ct_CC
3476   fi
3477 fi
3478
3479 fi
3480
3481
3482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." "$LINENO" 5; }
3486
3487 # Provide some information about the compiler.
3488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3489 set X $ac_compile
3490 ac_compiler=$2
3491 for ac_option in --version -v -V -qversion; do
3492   { { ac_try="$ac_compiler $ac_option >&5"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3500   ac_status=$?
3501   if test -s conftest.err; then
3502     sed '10a\
3503 ... rest of stderr output deleted ...
3504          10q' conftest.err >conftest.er1
3505     cat conftest.er1 >&5
3506   fi
3507   rm -f conftest.er1 conftest.err
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }
3510 done
3511
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 ac_clean_files_save=$ac_clean_files
3524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3525 # Try to create an executable without -o first, disregard a.out.
3526 # It will help us diagnose broken compilers, and finding out an intuition
3527 # of exeext.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529 $as_echo_n "checking whether the C compiler works... " >&6; }
3530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3531
3532 # The possible output files:
3533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3534
3535 ac_rmfiles=
3536 for ac_file in $ac_files
3537 do
3538   case $ac_file in
3539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3540     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3541   esac
3542 done
3543 rm -f $ac_rmfiles
3544
3545 if { { ac_try="$ac_link_default"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552   (eval "$ac_link_default") 2>&5
3553   ac_status=$?
3554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555   test $ac_status = 0; }; then :
3556   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3558 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3559 # so that the user can short-circuit this test for compilers unknown to
3560 # Autoconf.
3561 for ac_file in $ac_files ''
3562 do
3563   test -f "$ac_file" || continue
3564   case $ac_file in
3565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3566         ;;
3567     [ab].out )
3568         # We found the default executable, but exeext='' is most
3569         # certainly right.
3570         break;;
3571     *.* )
3572         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3573         then :; else
3574            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575         fi
3576         # We set ac_cv_exeext here because the later test for it is not
3577         # safe: cross compilers may not add the suffix if given an `-o'
3578         # argument, so we may need to know it at that point already.
3579         # Even if this section looks crufty: it has the advantage of
3580         # actually working.
3581         break;;
3582     * )
3583         break;;
3584   esac
3585 done
3586 test "$ac_cv_exeext" = no && ac_cv_exeext=
3587
3588 else
3589   ac_file=''
3590 fi
3591 if test -z "$ac_file"; then :
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 { as_fn_set_status 77
3600 as_fn_error "C compiler cannot create executables
3601 See \`config.log' for more details." "$LINENO" 5; }; }
3602 else
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604 $as_echo "yes" >&6; }
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3607 $as_echo_n "checking for C compiler default output file name... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3609 $as_echo "$ac_file" >&6; }
3610 ac_exeext=$ac_cv_exeext
3611
3612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3615 $as_echo_n "checking for suffix of executables... " >&6; }
3616 if { { ac_try="$ac_link"
3617 case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623   (eval "$ac_link") 2>&5
3624   ac_status=$?
3625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626   test $ac_status = 0; }; then :
3627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3629 # work properly (i.e., refer to `conftest.exe'), while it won't with
3630 # `rm'.
3631 for ac_file in conftest.exe conftest conftest.*; do
3632   test -f "$ac_file" || continue
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3636           break;;
3637     * ) break;;
3638   esac
3639 done
3640 else
3641   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error "cannot compute suffix of executables: cannot compile and link
3644 See \`config.log' for more details." "$LINENO" 5; }
3645 fi
3646 rm -f conftest conftest$ac_cv_exeext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3648 $as_echo "$ac_cv_exeext" >&6; }
3649
3650 rm -f conftest.$ac_ext
3651 EXEEXT=$ac_cv_exeext
3652 ac_exeext=$EXEEXT
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655 #include <stdio.h>
3656 int
3657 main ()
3658 {
3659 FILE *f = fopen ("conftest.out", "w");
3660  return ferror (f) || fclose (f) != 0;
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 ac_clean_files="$ac_clean_files conftest.out"
3667 # Check that the compiler produces executables we can run.  If not, either
3668 # the compiler is broken, or we cross compile.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3670 $as_echo_n "checking whether we are cross compiling... " >&6; }
3671 if test "$cross_compiling" != yes; then
3672   { { ac_try="$ac_link"
3673 case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679   (eval "$ac_link") 2>&5
3680   ac_status=$?
3681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682   test $ac_status = 0; }
3683   if { ac_try='./conftest$ac_cv_exeext'
3684   { { case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }; }; then
3694     cross_compiling=no
3695   else
3696     if test "$cross_compiling" = maybe; then
3697         cross_compiling=yes
3698     else
3699         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "cannot run C compiled programs.
3702 If you meant to cross compile, use \`--host'.
3703 See \`config.log' for more details." "$LINENO" 5; }
3704     fi
3705   fi
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3708 $as_echo "$cross_compiling" >&6; }
3709
3710 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3711 ac_clean_files=$ac_clean_files_save
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3713 $as_echo_n "checking for suffix of object files... " >&6; }
3714 if test "${ac_cv_objext+set}" = set; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.o conftest.obj
3729 if { { ac_try="$ac_compile"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736   (eval "$ac_compile") 2>&5
3737   ac_status=$?
3738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739   test $ac_status = 0; }; then :
3740   for ac_file in conftest.o conftest.obj conftest.*; do
3741   test -f "$ac_file" || continue;
3742   case $ac_file in
3743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3744     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745        break;;
3746   esac
3747 done
3748 else
3749   $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." "$LINENO" 5; }
3756 fi
3757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3760 $as_echo "$ac_cv_objext" >&6; }
3761 OBJEXT=$ac_cv_objext
3762 ac_objext=$OBJEXT
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3764 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3765 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3766   $as_echo_n "(cached) " >&6
3767 else
3768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774 #ifndef __GNUC__
3775        choke me
3776 #endif
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783   ac_compiler_gnu=yes
3784 else
3785   ac_compiler_gnu=no
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794   GCC=yes
3795 else
3796   GCC=
3797 fi
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then :
3803   $as_echo_n "(cached) " >&6
3804 else
3805   ac_save_c_werror_flag=$ac_c_werror_flag
3806    ac_c_werror_flag=yes
3807    ac_cv_prog_cc_g=no
3808    CFLAGS="-g"
3809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821   ac_cv_prog_cc_g=yes
3822 else
3823   CFLAGS=""
3824       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"; then :
3836
3837 else
3838   ac_c_werror_flag=$ac_save_c_werror_flag
3839          CFLAGS="-g"
3840          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852   ac_cv_prog_cc_g=yes
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859    ac_c_werror_flag=$ac_save_c_werror_flag
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3862 $as_echo "$ac_cv_prog_cc_g" >&6; }
3863 if test "$ac_test_CFLAGS" = set; then
3864   CFLAGS=$ac_save_CFLAGS
3865 elif test $ac_cv_prog_cc_g = yes; then
3866   if test "$GCC" = yes; then
3867     CFLAGS="-g -O2"
3868   else
3869     CFLAGS="-g"
3870   fi
3871 else
3872   if test "$GCC" = yes; then
3873     CFLAGS="-O2"
3874   else
3875     CFLAGS=
3876   fi
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3879 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3880 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   ac_cv_prog_cc_c89=no
3884 ac_save_CC=$CC
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h.  */
3887 #include <stdarg.h>
3888 #include <stdio.h>
3889 #include <sys/types.h>
3890 #include <sys/stat.h>
3891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3892 struct buf { int x; };
3893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3894 static char *e (p, i)
3895      char **p;
3896      int i;
3897 {
3898   return p[i];
3899 }
3900 static char *f (char * (*g) (char **, int), char **p, ...)
3901 {
3902   char *s;
3903   va_list v;
3904   va_start (v,p);
3905   s = g (p, va_arg (v,int));
3906   va_end (v);
3907   return s;
3908 }
3909
3910 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3911    function prototypes and stuff, but not '\xHH' hex character constants.
3912    These don't provoke an error unfortunately, instead are silently treated
3913    as 'x'.  The following induces an error, until -std is added to get
3914    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3915    array size at least.  It's necessary to write '\x00'==0 to get something
3916    that's true only with -std.  */
3917 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3918
3919 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3920    inside strings and character constants.  */
3921 #define FOO(x) 'x'
3922 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3923
3924 int test (int i, double x);
3925 struct s1 {int (*f) (int a);};
3926 struct s2 {int (*f) (double a);};
3927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3928 int argc;
3929 char **argv;
3930 int
3931 main ()
3932 {
3933 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3939         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3940 do
3941   CC="$ac_save_CC $ac_arg"
3942   if ac_fn_c_try_compile "$LINENO"; then :
3943   ac_cv_prog_cc_c89=$ac_arg
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext
3946   test "x$ac_cv_prog_cc_c89" != "xno" && break
3947 done
3948 rm -f conftest.$ac_ext
3949 CC=$ac_save_CC
3950
3951 fi
3952 # AC_CACHE_VAL
3953 case "x$ac_cv_prog_cc_c89" in
3954   x)
3955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956 $as_echo "none needed" >&6; } ;;
3957   xno)
3958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959 $as_echo "unsupported" >&6; } ;;
3960   *)
3961     CC="$CC $ac_cv_prog_cc_c89"
3962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3963 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3964 esac
3965 if test "x$ac_cv_prog_cc_c89" != xno; then :
3966
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 DEPDIR="${am__leading_dot}deps"
3975
3976 ac_config_commands="$ac_config_commands depfiles"
3977
3978
3979 am_make=${MAKE-make}
3980 cat > confinc << 'END'
3981 am__doit:
3982         @echo this is the am__doit target
3983 .PHONY: am__doit
3984 END
3985 # If we don't find an include directive, just comment out the code.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3987 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3988 am__include="#"
3989 am__quote=
3990 _am_result=none
3991 # First try GNU make style include.
3992 echo "include confinc" > confmf
3993 # Ignore all kinds of additional output from `make'.
3994 case `$am_make -s -f confmf 2> /dev/null` in #(
3995 *the\ am__doit\ target*)
3996   am__include=include
3997   am__quote=
3998   _am_result=GNU
3999   ;;
4000 esac
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003    echo '.include "confinc"' > confmf
4004    case `$am_make -s -f confmf 2> /dev/null` in #(
4005    *the\ am__doit\ target*)
4006      am__include=.include
4007      am__quote="\""
4008      _am_result=BSD
4009      ;;
4010    esac
4011 fi
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4015 $as_echo "$_am_result" >&6; }
4016 rm -f confinc confmf
4017
4018 # Check whether --enable-dependency-tracking was given.
4019 if test "${enable_dependency_tracking+set}" = set; then :
4020   enableval=$enable_dependency_tracking;
4021 fi
4022
4023 if test "x$enable_dependency_tracking" != xno; then
4024   am_depcomp="$ac_aux_dir/depcomp"
4025   AMDEPBACKSLASH='\'
4026 fi
4027  if test "x$enable_dependency_tracking" != xno; then
4028   AMDEP_TRUE=
4029   AMDEP_FALSE='#'
4030 else
4031   AMDEP_TRUE='#'
4032   AMDEP_FALSE=
4033 fi
4034
4035
4036
4037 depcc="$CC"   am_compiler_list=
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4040 $as_echo_n "checking dependency style of $depcc... " >&6; }
4041 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4045   # We make a subdir and do the tests there.  Otherwise we can end up
4046   # making bogus files that we don't know about and never remove.  For
4047   # instance it was reported that on HP-UX the gcc test will end up
4048   # making a dummy file named `D' -- because `-MD' means `put the output
4049   # in D'.
4050   mkdir conftest.dir
4051   # Copy depcomp to subdir because otherwise we won't find it if we're
4052   # using a relative directory.
4053   cp "$am_depcomp" conftest.dir
4054   cd conftest.dir
4055   # We will build objects and dependencies in a subdirectory because
4056   # it helps to detect inapplicable dependency modes.  For instance
4057   # both Tru64's cc and ICC support -MD to output dependencies as a
4058   # side effect of compilation, but ICC will put the dependencies in
4059   # the current directory while Tru64 will put them in the object
4060   # directory.
4061   mkdir sub
4062
4063   am_cv_CC_dependencies_compiler_type=none
4064   if test "$am_compiler_list" = ""; then
4065      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4066   fi
4067   am__universal=false
4068   case " $depcc " in #(
4069      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4070      esac
4071
4072   for depmode in $am_compiler_list; do
4073     # Setup a source with many dependencies, because some compilers
4074     # like to wrap large dependency lists on column 80 (with \), and
4075     # we should not choose a depcomp mode which is confused by this.
4076     #
4077     # We need to recreate these files for each test, as the compiler may
4078     # overwrite some of them when testing with obscure command lines.
4079     # This happens at least with the AIX C compiler.
4080     : > sub/conftest.c
4081     for i in 1 2 3 4 5 6; do
4082       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4084       # Solaris 8's {/usr,}/bin/sh.
4085       touch sub/conftst$i.h
4086     done
4087     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4088
4089     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4090     # mode.  It turns out that the SunPro C++ compiler does not properly
4091     # handle `-M -o', and we need to detect this.  Also, some Intel
4092     # versions had trouble with output in subdirs
4093     am__obj=sub/conftest.${OBJEXT-o}
4094     am__minus_obj="-o $am__obj"
4095     case $depmode in
4096     gcc)
4097       # This depmode causes a compiler race in universal mode.
4098       test "$am__universal" = false || continue
4099       ;;
4100     nosideeffect)
4101       # after this tag, mechanisms are not by side-effect, so they'll
4102       # only be used when explicitly requested
4103       if test "x$enable_dependency_tracking" = xyes; then
4104         continue
4105       else
4106         break
4107       fi
4108       ;;
4109     msvisualcpp | msvcmsys)
4110       # This compiler won't grok `-c -o', but also, the minuso test has
4111       # not run yet.  These depmodes are late enough in the game, and
4112       # so weak that their functioning should not be impacted.
4113       am__obj=conftest.${OBJEXT-o}
4114       am__minus_obj=
4115       ;;
4116     none) break ;;
4117     esac
4118     if depmode=$depmode \
4119        source=sub/conftest.c object=$am__obj \
4120        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122          >/dev/null 2>conftest.err &&
4123        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127       # icc doesn't choke on unknown options, it will just issue warnings
4128       # or remarks (even with -Werror).  So we grep stderr for any message
4129       # that says an option was ignored or not supported.
4130       # When given -MP, icc 7.0 and 7.1 complain thusly:
4131       #   icc: Command line warning: ignoring option '-M'; no argument required
4132       # The diagnosis changed in icc 8.0:
4133       #   icc: Command line remark: option '-MP' not supported
4134       if (grep 'ignoring option' conftest.err ||
4135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136         am_cv_CC_dependencies_compiler_type=$depmode
4137         break
4138       fi
4139     fi
4140   done
4141
4142   cd ..
4143   rm -rf conftest.dir
4144 else
4145   am_cv_CC_dependencies_compiler_type=none
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4152
4153  if
4154   test "x$enable_dependency_tracking" != xno \
4155   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4156   am__fastdepCC_TRUE=
4157   am__fastdepCC_FALSE='#'
4158 else
4159   am__fastdepCC_TRUE='#'
4160   am__fastdepCC_FALSE=
4161 fi
4162
4163
4164 ac_ext=cpp
4165 ac_cpp='$CXXCPP $CPPFLAGS'
4166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4169 if test -z "$CXX"; then
4170   if test -n "$CCC"; then
4171     CXX=$CCC
4172   else
4173     if test -n "$ac_tool_prefix"; then
4174   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4175   do
4176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if test "${ac_cv_prog_CXX+set}" = set; then :
4181   $as_echo_n "(cached) " >&6
4182 else
4183   if test -n "$CXX"; then
4184   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191     for ac_exec_ext in '' $ac_executable_extensions; do
4192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198   done
4199 IFS=$as_save_IFS
4200
4201 fi
4202 fi
4203 CXX=$ac_cv_prog_CXX
4204 if test -n "$CXX"; then
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4206 $as_echo "$CXX" >&6; }
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213     test -n "$CXX" && break
4214   done
4215 fi
4216 if test -z "$CXX"; then
4217   ac_ct_CXX=$CXX
4218   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4219 do
4220   # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -n "$ac_ct_CXX"; then
4228   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237     ac_cv_prog_ac_ct_CXX="$ac_prog"
4238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242   done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4248 if test -n "$ac_ct_CXX"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4250 $as_echo "$ac_ct_CXX" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257   test -n "$ac_ct_CXX" && break
4258 done
4259
4260   if test "x$ac_ct_CXX" = x; then
4261     CXX="g++"
4262   else
4263     case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269     CXX=$ac_ct_CXX
4270   fi
4271 fi
4272
4273   fi
4274 fi
4275 # Provide some information about the compiler.
4276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4277 set X $ac_compile
4278 ac_compiler=$2
4279 for ac_option in --version -v -V -qversion; do
4280   { { ac_try="$ac_compiler $ac_option >&5"
4281 case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4288   ac_status=$?
4289   if test -s conftest.err; then
4290     sed '10a\
4291 ... rest of stderr output deleted ...
4292          10q' conftest.err >conftest.er1
4293     cat conftest.er1 >&5
4294   fi
4295   rm -f conftest.er1 conftest.err
4296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297   test $ac_status = 0; }
4298 done
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4301 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4302 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h.  */
4307
4308 int
4309 main ()
4310 {
4311 #ifndef __GNUC__
4312        choke me
4313 #endif
4314
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_cxx_try_compile "$LINENO"; then :
4320   ac_compiler_gnu=yes
4321 else
4322   ac_compiler_gnu=no
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4326
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4329 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4330 if test $ac_compiler_gnu = yes; then
4331   GXX=yes
4332 else
4333   GXX=
4334 fi
4335 ac_test_CXXFLAGS=${CXXFLAGS+set}
4336 ac_save_CXXFLAGS=$CXXFLAGS
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4338 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4339 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343    ac_cxx_werror_flag=yes
4344    ac_cv_prog_cxx_g=no
4345    CXXFLAGS="-g"
4346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358   ac_cv_prog_cxx_g=yes
4359 else
4360   CXXFLAGS=""
4361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363
4364 int
4365 main ()
4366 {
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4373
4374 else
4375   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4376          CXXFLAGS="-g"
4377          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379
4380 int
4381 main ()
4382 {
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_cxx_try_compile "$LINENO"; then :
4389   ac_cv_prog_cxx_g=yes
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4399 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4400 if test "$ac_test_CXXFLAGS" = set; then
4401   CXXFLAGS=$ac_save_CXXFLAGS
4402 elif test $ac_cv_prog_cxx_g = yes; then
4403   if test "$GXX" = yes; then
4404     CXXFLAGS="-g -O2"
4405   else
4406     CXXFLAGS="-g"
4407   fi
4408 else
4409   if test "$GXX" = yes; then
4410     CXXFLAGS="-O2"
4411   else
4412     CXXFLAGS=
4413   fi
4414 fi
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421 depcc="$CXX"  am_compiler_list=
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424 $as_echo_n "checking dependency style of $depcc... " >&6; }
4425 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4429   # We make a subdir and do the tests there.  Otherwise we can end up
4430   # making bogus files that we don't know about and never remove.  For
4431   # instance it was reported that on HP-UX the gcc test will end up
4432   # making a dummy file named `D' -- because `-MD' means `put the output
4433   # in D'.
4434   mkdir conftest.dir
4435   # Copy depcomp to subdir because otherwise we won't find it if we're
4436   # using a relative directory.
4437   cp "$am_depcomp" conftest.dir
4438   cd conftest.dir
4439   # We will build objects and dependencies in a subdirectory because
4440   # it helps to detect inapplicable dependency modes.  For instance
4441   # both Tru64's cc and ICC support -MD to output dependencies as a
4442   # side effect of compilation, but ICC will put the dependencies in
4443   # the current directory while Tru64 will put them in the object
4444   # directory.
4445   mkdir sub
4446
4447   am_cv_CXX_dependencies_compiler_type=none
4448   if test "$am_compiler_list" = ""; then
4449      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4450   fi
4451   am__universal=false
4452   case " $depcc " in #(
4453      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4454      esac
4455
4456   for depmode in $am_compiler_list; do
4457     # Setup a source with many dependencies, because some compilers
4458     # like to wrap large dependency lists on column 80 (with \), and
4459     # we should not choose a depcomp mode which is confused by this.
4460     #
4461     # We need to recreate these files for each test, as the compiler may
4462     # overwrite some of them when testing with obscure command lines.
4463     # This happens at least with the AIX C compiler.
4464     : > sub/conftest.c
4465     for i in 1 2 3 4 5 6; do
4466       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4467       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4468       # Solaris 8's {/usr,}/bin/sh.
4469       touch sub/conftst$i.h
4470     done
4471     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4472
4473     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4474     # mode.  It turns out that the SunPro C++ compiler does not properly
4475     # handle `-M -o', and we need to detect this.  Also, some Intel
4476     # versions had trouble with output in subdirs
4477     am__obj=sub/conftest.${OBJEXT-o}
4478     am__minus_obj="-o $am__obj"
4479     case $depmode in
4480     gcc)
4481       # This depmode causes a compiler race in universal mode.
4482       test "$am__universal" = false || continue
4483       ;;
4484     nosideeffect)
4485       # after this tag, mechanisms are not by side-effect, so they'll
4486       # only be used when explicitly requested
4487       if test "x$enable_dependency_tracking" = xyes; then
4488         continue
4489       else
4490         break
4491       fi
4492       ;;
4493     msvisualcpp | msvcmsys)
4494       # This compiler won't grok `-c -o', but also, the minuso test has
4495       # not run yet.  These depmodes are late enough in the game, and
4496       # so weak that their functioning should not be impacted.
4497       am__obj=conftest.${OBJEXT-o}
4498       am__minus_obj=
4499       ;;
4500     none) break ;;
4501     esac
4502     if depmode=$depmode \
4503        source=sub/conftest.c object=$am__obj \
4504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4505        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4506          >/dev/null 2>conftest.err &&
4507        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4508        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4509        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4510        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4511       # icc doesn't choke on unknown options, it will just issue warnings
4512       # or remarks (even with -Werror).  So we grep stderr for any message
4513       # that says an option was ignored or not supported.
4514       # When given -MP, icc 7.0 and 7.1 complain thusly:
4515       #   icc: Command line warning: ignoring option '-M'; no argument required
4516       # The diagnosis changed in icc 8.0:
4517       #   icc: Command line remark: option '-MP' not supported
4518       if (grep 'ignoring option' conftest.err ||
4519           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4520         am_cv_CXX_dependencies_compiler_type=$depmode
4521         break
4522       fi
4523     fi
4524   done
4525
4526   cd ..
4527   rm -rf conftest.dir
4528 else
4529   am_cv_CXX_dependencies_compiler_type=none
4530 fi
4531
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4534 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4535 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4536
4537  if
4538   test "x$enable_dependency_tracking" != xno \
4539   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4540   am__fastdepCXX_TRUE=
4541   am__fastdepCXX_FALSE='#'
4542 else
4543   am__fastdepCXX_TRUE='#'
4544   am__fastdepCXX_FALSE=
4545 fi
4546
4547
4548 ac_ext=cpp
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553
4554
4555 ac_ext=cpp
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4562 if test -z "$CXXCPP"; then
4563   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566       # Double quotes because CXXCPP needs to be expanded
4567     for CXXCPP in "$CXX -E" "/lib/cpp"
4568     do
4569       ac_preproc_ok=false
4570 for ac_cxx_preproc_warn_flag in '' yes
4571 do
4572   # Use a header file that comes with gcc, so configuring glibc
4573   # with a fresh cross-compiler works.
4574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575   # <limits.h> exists even on freestanding compilers.
4576   # On the NeXT, cc -E runs the code through the compiler's parser,
4577   # not just through cpp. "Syntax error" is here to catch this case.
4578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585                      Syntax error
4586 _ACEOF
4587 if ac_fn_cxx_try_cpp "$LINENO"; then :
4588
4589 else
4590   # Broken: fails on valid input.
4591 continue
4592 fi
4593 rm -f conftest.err conftest.$ac_ext
4594
4595   # OK, works on sane cases.  Now check whether nonexistent headers
4596   # can be detected and how.
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599 #include <ac_nonexistent.h>
4600 _ACEOF
4601 if ac_fn_cxx_try_cpp "$LINENO"; then :
4602   # Broken: success on invalid input.
4603 continue
4604 else
4605   # Passes both tests.
4606 ac_preproc_ok=:
4607 break
4608 fi
4609 rm -f conftest.err conftest.$ac_ext
4610
4611 done
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then :
4615   break
4616 fi
4617
4618     done
4619     ac_cv_prog_CXXCPP=$CXXCPP
4620
4621 fi
4622   CXXCPP=$ac_cv_prog_CXXCPP
4623 else
4624   ac_cv_prog_CXXCPP=$CXXCPP
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4627 $as_echo "$CXXCPP" >&6; }
4628 ac_preproc_ok=false
4629 for ac_cxx_preproc_warn_flag in '' yes
4630 do
4631   # Use a header file that comes with gcc, so configuring glibc
4632   # with a fresh cross-compiler works.
4633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634   # <limits.h> exists even on freestanding compilers.
4635   # On the NeXT, cc -E runs the code through the compiler's parser,
4636   # not just through cpp. "Syntax error" is here to catch this case.
4637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639 #ifdef __STDC__
4640 # include <limits.h>
4641 #else
4642 # include <assert.h>
4643 #endif
4644                      Syntax error
4645 _ACEOF
4646 if ac_fn_cxx_try_cpp "$LINENO"; then :
4647
4648 else
4649   # Broken: fails on valid input.
4650 continue
4651 fi
4652 rm -f conftest.err conftest.$ac_ext
4653
4654   # OK, works on sane cases.  Now check whether nonexistent headers
4655   # can be detected and how.
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658 #include <ac_nonexistent.h>
4659 _ACEOF
4660 if ac_fn_cxx_try_cpp "$LINENO"; then :
4661   # Broken: success on invalid input.
4662 continue
4663 else
4664   # Passes both tests.
4665 ac_preproc_ok=:
4666 break
4667 fi
4668 rm -f conftest.err conftest.$ac_ext
4669
4670 done
4671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4672 rm -f conftest.err conftest.$ac_ext
4673 if $ac_preproc_ok; then :
4674
4675 else
4676   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4679 See \`config.log' for more details." "$LINENO" 5; }
4680 fi
4681
4682 ac_ext=cpp
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4690 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4691 if test "${ac_cv_path_GREP+set}" = set; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test -z "$GREP"; then
4695   ac_path_GREP_found=false
4696   # Loop through the user's path and test for each of PROGNAME-LIST
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_prog in grep ggrep; do
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4705       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4706 # Check for GNU ac_path_GREP and select it if it is found.
4707   # Check for GNU $ac_path_GREP
4708 case `"$ac_path_GREP" --version 2>&1` in
4709 *GNU*)
4710   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4711 *)
4712   ac_count=0
4713   $as_echo_n 0123456789 >"conftest.in"
4714   while :
4715   do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719     $as_echo 'GREP' >> "conftest.nl"
4720     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722     as_fn_arith $ac_count + 1 && ac_count=$as_val
4723     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4724       # Best one so far, save it but keep looking for a better one
4725       ac_cv_path_GREP="$ac_path_GREP"
4726       ac_path_GREP_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730   done
4731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734       $ac_path_GREP_found && break 3
4735     done
4736   done
4737   done
4738 IFS=$as_save_IFS
4739   if test -z "$ac_cv_path_GREP"; then
4740     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741   fi
4742 else
4743   ac_cv_path_GREP=$GREP
4744 fi
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4748 $as_echo "$ac_cv_path_GREP" >&6; }
4749  GREP="$ac_cv_path_GREP"
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4753 $as_echo_n "checking for egrep... " >&6; }
4754 if test "${ac_cv_path_EGREP+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4758    then ac_cv_path_EGREP="$GREP -E"
4759    else
4760      if test -z "$EGREP"; then
4761   ac_path_EGREP_found=false
4762   # Loop through the user's path and test for each of PROGNAME-LIST
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_prog in egrep; do
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4771       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4772 # Check for GNU ac_path_EGREP and select it if it is found.
4773   # Check for GNU $ac_path_EGREP
4774 case `"$ac_path_EGREP" --version 2>&1` in
4775 *GNU*)
4776   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4777 *)
4778   ac_count=0
4779   $as_echo_n 0123456789 >"conftest.in"
4780   while :
4781   do
4782     cat "conftest.in" "conftest.in" >"conftest.tmp"
4783     mv "conftest.tmp" "conftest.in"
4784     cp "conftest.in" "conftest.nl"
4785     $as_echo 'EGREP' >> "conftest.nl"
4786     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788     as_fn_arith $ac_count + 1 && ac_count=$as_val
4789     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4790       # Best one so far, save it but keep looking for a better one
4791       ac_cv_path_EGREP="$ac_path_EGREP"
4792       ac_path_EGREP_max=$ac_count
4793     fi
4794     # 10*(2^10) chars as input seems more than enough
4795     test $ac_count -gt 10 && break
4796   done
4797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798 esac
4799
4800       $ac_path_EGREP_found && break 3
4801     done
4802   done
4803   done
4804 IFS=$as_save_IFS
4805   if test -z "$ac_cv_path_EGREP"; then
4806     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807   fi
4808 else
4809   ac_cv_path_EGREP=$EGREP
4810 fi
4811
4812    fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4815 $as_echo "$ac_cv_path_EGREP" >&6; }
4816  EGREP="$ac_cv_path_EGREP"
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4820 $as_echo_n "checking for ANSI C header files... " >&6; }
4821 if test "${ac_cv_header_stdc+set}" = set; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h.  */
4826 #include <stdlib.h>
4827 #include <stdarg.h>
4828 #include <string.h>
4829 #include <float.h>
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_cxx_try_compile "$LINENO"; then :
4840   ac_cv_header_stdc=yes
4841 else
4842   ac_cv_header_stdc=no
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845
4846 if test $ac_cv_header_stdc = yes; then
4847   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h.  */
4850 #include <string.h>
4851
4852 _ACEOF
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854   $EGREP "memchr" >/dev/null 2>&1; then :
4855
4856 else
4857   ac_cv_header_stdc=no
4858 fi
4859 rm -f conftest*
4860
4861 fi
4862
4863 if test $ac_cv_header_stdc = yes; then
4864   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h.  */
4867 #include <stdlib.h>
4868
4869 _ACEOF
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871   $EGREP "free" >/dev/null 2>&1; then :
4872
4873 else
4874   ac_cv_header_stdc=no
4875 fi
4876 rm -f conftest*
4877
4878 fi
4879
4880 if test $ac_cv_header_stdc = yes; then
4881   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882   if test "$cross_compiling" = yes; then :
4883   :
4884 else
4885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h.  */
4887 #include <ctype.h>
4888 #include <stdlib.h>
4889 #if ((' ' & 0x0FF) == 0x020)
4890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4892 #else
4893 # define ISLOWER(c) \
4894                    (('a' <= (c) && (c) <= 'i') \
4895                      || ('j' <= (c) && (c) <= 'r') \
4896                      || ('s' <= (c) && (c) <= 'z'))
4897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4898 #endif
4899
4900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4901 int
4902 main ()
4903 {
4904   int i;
4905   for (i = 0; i < 256; i++)
4906     if (XOR (islower (i), ISLOWER (i))
4907         || toupper (i) != TOUPPER (i))
4908       return 2;
4909   return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_cxx_try_run "$LINENO"; then :
4913
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4918   conftest.$ac_objext conftest.beam conftest.$ac_ext
4919 fi
4920
4921 fi
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4924 $as_echo "$ac_cv_header_stdc" >&6; }
4925 if test $ac_cv_header_stdc = yes; then
4926
4927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4928
4929 fi
4930
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4933                   inttypes.h stdint.h unistd.h
4934 do :
4935   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4937 "
4938 eval as_val=\$$as_ac_Header
4939    if test "x$as_val" = x""yes; then :
4940   cat >>confdefs.h <<_ACEOF
4941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 _ACEOF
4943
4944 fi
4945
4946 done
4947
4948
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4950 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4951 if test "${ac_cv_c_bigendian+set}" = set; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   ac_cv_c_bigendian=unknown
4955     # See if we're dealing with a universal compiler.
4956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h.  */
4958 #ifndef __APPLE_CC__
4959                not a universal capable compiler
4960              #endif
4961              typedef int dummy;
4962
4963 _ACEOF
4964 if ac_fn_cxx_try_compile "$LINENO"; then :
4965
4966         # Check for potential -arch flags.  It is not universal unless
4967         # there are at least two -arch flags with different values.
4968         ac_arch=
4969         ac_prev=
4970         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4971          if test -n "$ac_prev"; then
4972            case $ac_word in
4973              i?86 | x86_64 | ppc | ppc64)
4974                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4975                  ac_arch=$ac_word
4976                else
4977                  ac_cv_c_bigendian=universal
4978                  break
4979                fi
4980                ;;
4981            esac
4982            ac_prev=
4983          elif test "x$ac_word" = "x-arch"; then
4984            ac_prev=arch
4985          fi
4986        done
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989     if test $ac_cv_c_bigendian = unknown; then
4990       # See if sys/param.h defines the BYTE_ORDER macro.
4991       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h.  */
4993 #include <sys/types.h>
4994              #include <sys/param.h>
4995
4996 int
4997 main ()
4998 {
4999 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5000                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5001                      && LITTLE_ENDIAN)
5002               bogus endian macros
5003              #endif
5004
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010   # It does; now see whether it defined to BIG_ENDIAN or not.
5011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #include <sys/types.h>
5014                 #include <sys/param.h>
5015
5016 int
5017 main ()
5018 {
5019 #if BYTE_ORDER != BIG_ENDIAN
5020                  not big endian
5021                 #endif
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028   ac_cv_c_bigendian=yes
5029 else
5030   ac_cv_c_bigendian=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035     fi
5036     if test $ac_cv_c_bigendian = unknown; then
5037       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5038       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h.  */
5040 #include <limits.h>
5041
5042 int
5043 main ()
5044 {
5045 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5046               bogus endian macros
5047              #endif
5048
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_cxx_try_compile "$LINENO"; then :
5054   # It does; now see whether it defined to _BIG_ENDIAN or not.
5055          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057 #include <limits.h>
5058
5059 int
5060 main ()
5061 {
5062 #ifndef _BIG_ENDIAN
5063                  not big endian
5064                 #endif
5065
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_cxx_try_compile "$LINENO"; then :
5071   ac_cv_c_bigendian=yes
5072 else
5073   ac_cv_c_bigendian=no
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078     fi
5079     if test $ac_cv_c_bigendian = unknown; then
5080       # Compile a test program.
5081       if test "$cross_compiling" = yes; then :
5082   # Try to guess by grepping values from an object file.
5083          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h.  */
5085 short int ascii_mm[] =
5086                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5087                 short int ascii_ii[] =
5088                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5089                 int use_ascii (int i) {
5090                   return ascii_mm[i] + ascii_ii[i];
5091                 }
5092                 short int ebcdic_ii[] =
5093                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5094                 short int ebcdic_mm[] =
5095                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5096                 int use_ebcdic (int i) {
5097                   return ebcdic_mm[i] + ebcdic_ii[i];
5098                 }
5099                 extern int foo;
5100
5101 int
5102 main ()
5103 {
5104 return use_ascii (foo) == use_ebcdic (foo);
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 if ac_fn_cxx_try_compile "$LINENO"; then :
5110   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5111               ac_cv_c_bigendian=yes
5112             fi
5113             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5114               if test "$ac_cv_c_bigendian" = unknown; then
5115                 ac_cv_c_bigendian=no
5116               else
5117                 # finding both strings is unlikely to happen, but who knows?
5118                 ac_cv_c_bigendian=unknown
5119               fi
5120             fi
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 else
5124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h.  */
5126 $ac_includes_default
5127 int
5128 main ()
5129 {
5130
5131              /* Are we little or big endian?  From Harbison&Steele.  */
5132              union
5133              {
5134                long int l;
5135                char c[sizeof (long int)];
5136              } u;
5137              u.l = 1;
5138              return u.c[sizeof (long int) - 1] == 1;
5139
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 if ac_fn_cxx_try_run "$LINENO"; then :
5145   ac_cv_c_bigendian=no
5146 else
5147   ac_cv_c_bigendian=yes
5148 fi
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5150   conftest.$ac_objext conftest.beam conftest.$ac_ext
5151 fi
5152
5153     fi
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5156 $as_echo "$ac_cv_c_bigendian" >&6; }
5157  case $ac_cv_c_bigendian in #(
5158    yes)
5159      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5160 ;; #(
5161    no)
5162       ;; #(
5163    universal)
5164
5165 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5166
5167      ;; #(
5168    *)
5169      as_fn_error "unknown endianness
5170  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5171  esac
5172      #this will cause problems when cross-compiling...
5173 # Make sure we can run config.sub.
5174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5175   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5178 $as_echo_n "checking build system type... " >&6; }
5179 if test "${ac_cv_build+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   ac_build_alias=$build_alias
5183 test "x$ac_build_alias" = x &&
5184   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5185 test "x$ac_build_alias" = x &&
5186   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5187 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5188   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5189
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5192 $as_echo "$ac_cv_build" >&6; }
5193 case $ac_cv_build in
5194 *-*-*) ;;
5195 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5196 esac
5197 build=$ac_cv_build
5198 ac_save_IFS=$IFS; IFS='-'
5199 set x $ac_cv_build
5200 shift
5201 build_cpu=$1
5202 build_vendor=$2
5203 shift; shift
5204 # Remember, the first character of IFS is used to create $*,
5205 # except with old shells:
5206 build_os=$*
5207 IFS=$ac_save_IFS
5208 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5209
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5212 $as_echo_n "checking host system type... " >&6; }
5213 if test "${ac_cv_host+set}" = set; then :
5214   $as_echo_n "(cached) " >&6
5215 else
5216   if test "x$host_alias" = x; then
5217   ac_cv_host=$ac_cv_build
5218 else
5219   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5220     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5221 fi
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5225 $as_echo "$ac_cv_host" >&6; }
5226 case $ac_cv_host in
5227 *-*-*) ;;
5228 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5229 esac
5230 host=$ac_cv_host
5231 ac_save_IFS=$IFS; IFS='-'
5232 set x $ac_cv_host
5233 shift
5234 host_cpu=$1
5235 host_vendor=$2
5236 shift; shift
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5239 host_os=$*
5240 IFS=$ac_save_IFS
5241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5242
5243
5244 enable_win32_dll=yes
5245
5246 case $host in
5247 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5248   if test -n "$ac_tool_prefix"; then
5249   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}as; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_AS+set}" = set; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -n "$AS"; then
5257   ac_cv_prog_AS="$AS" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266     ac_cv_prog_AS="${ac_tool_prefix}as"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 AS=$ac_cv_prog_AS
5277 if test -n "$AS"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5279 $as_echo "$AS" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 fi
5287 if test -z "$ac_cv_prog_AS"; then
5288   ac_ct_AS=$AS
5289   # Extract the first word of "as", so it can be a program name with args.
5290 set dummy as; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -n "$ac_ct_AS"; then
5297   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302   IFS=$as_save_IFS
5303   test -z "$as_dir" && as_dir=.
5304     for ac_exec_ext in '' $ac_executable_extensions; do
5305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306     ac_cv_prog_ac_ct_AS="as"
5307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308     break 2
5309   fi
5310 done
5311   done
5312 IFS=$as_save_IFS
5313
5314 fi
5315 fi
5316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317 if test -n "$ac_ct_AS"; then
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5319 $as_echo "$ac_ct_AS" >&6; }
5320 else
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324
5325   if test "x$ac_ct_AS" = x; then
5326     AS="false"
5327   else
5328     case $cross_compiling:$ac_tool_warned in
5329 yes:)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332 ac_tool_warned=yes ;;
5333 esac
5334     AS=$ac_ct_AS
5335   fi
5336 else
5337   AS="$ac_cv_prog_AS"
5338 fi
5339
5340   if test -n "$ac_tool_prefix"; then
5341   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if test -n "$DLLTOOL"; then
5349   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356     for ac_exec_ext in '' $ac_executable_extensions; do
5357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363   done
5364 IFS=$as_save_IFS
5365
5366 fi
5367 fi
5368 DLLTOOL=$ac_cv_prog_DLLTOOL
5369 if test -n "$DLLTOOL"; then
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5371 $as_echo "$DLLTOOL" >&6; }
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376
5377
5378 fi
5379 if test -z "$ac_cv_prog_DLLTOOL"; then
5380   ac_ct_DLLTOOL=$DLLTOOL
5381   # Extract the first word of "dlltool", so it can be a program name with args.
5382 set dummy dlltool; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   if test -n "$ac_ct_DLLTOOL"; then
5389   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396     for ac_exec_ext in '' $ac_executable_extensions; do
5397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403   done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5409 if test -n "$ac_ct_DLLTOOL"; then
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5411 $as_echo "$ac_ct_DLLTOOL" >&6; }
5412 else
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417   if test "x$ac_ct_DLLTOOL" = x; then
5418     DLLTOOL="false"
5419   else
5420     case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426     DLLTOOL=$ac_ct_DLLTOOL
5427   fi
5428 else
5429   DLLTOOL="$ac_cv_prog_DLLTOOL"
5430 fi
5431
5432   if test -n "$ac_tool_prefix"; then
5433   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -n "$OBJDUMP"; then
5441   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
5460 OBJDUMP=$ac_cv_prog_OBJDUMP
5461 if test -n "$OBJDUMP"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5463 $as_echo "$OBJDUMP" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469
5470 fi
5471 if test -z "$ac_cv_prog_OBJDUMP"; then
5472   ac_ct_OBJDUMP=$OBJDUMP
5473   # Extract the first word of "objdump", so it can be a program name with args.
5474 set dummy objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -n "$ac_ct_OBJDUMP"; then
5481   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5501 if test -n "$ac_ct_OBJDUMP"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5503 $as_echo "$ac_ct_OBJDUMP" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509   if test "x$ac_ct_OBJDUMP" = x; then
5510     OBJDUMP="false"
5511   else
5512     case $cross_compiling:$ac_tool_warned in
5513 yes:)
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5517 esac
5518     OBJDUMP=$ac_ct_OBJDUMP
5519   fi
5520 else
5521   OBJDUMP="$ac_cv_prog_OBJDUMP"
5522 fi
5523
5524   ;;
5525 esac
5526
5527 test -z "$AS" && AS=as
5528
5529
5530
5531
5532
5533 test -z "$DLLTOOL" && DLLTOOL=dlltool
5534
5535
5536
5537
5538
5539 test -z "$OBJDUMP" && OBJDUMP=objdump
5540
5541
5542
5543
5544
5545
5546
5547 case `pwd` in
5548   *\ * | *\     *)
5549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5550 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5551 esac
5552
5553
5554
5555 macro_version='2.2.6b'
5556 macro_revision='1.3017'
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 ltmain="$ac_aux_dir/ltmain.sh"
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5574 if test "${ac_cv_path_SED+set}" = set; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5578      for ac_i in 1 2 3 4 5 6 7; do
5579        ac_script="$ac_script$as_nl$ac_script"
5580      done
5581      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5582      { ac_script=; unset ac_script;}
5583      if test -z "$SED"; then
5584   ac_path_SED_found=false
5585   # Loop through the user's path and test for each of PROGNAME-LIST
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_prog in sed gsed; do
5592     for ac_exec_ext in '' $ac_executable_extensions; do
5593       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5594       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5595 # Check for GNU ac_path_SED and select it if it is found.
5596   # Check for GNU $ac_path_SED
5597 case `"$ac_path_SED" --version 2>&1` in
5598 *GNU*)
5599   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5600 *)
5601   ac_count=0
5602   $as_echo_n 0123456789 >"conftest.in"
5603   while :
5604   do
5605     cat "conftest.in" "conftest.in" >"conftest.tmp"
5606     mv "conftest.tmp" "conftest.in"
5607     cp "conftest.in" "conftest.nl"
5608     $as_echo '' >> "conftest.nl"
5609     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5611     as_fn_arith $ac_count + 1 && ac_count=$as_val
5612     if test $ac_count -gt ${ac_path_SED_max-0}; then
5613       # Best one so far, save it but keep looking for a better one
5614       ac_cv_path_SED="$ac_path_SED"
5615       ac_path_SED_max=$ac_count
5616     fi
5617     # 10*(2^10) chars as input seems more than enough
5618     test $ac_count -gt 10 && break
5619   done
5620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5621 esac
5622
5623       $ac_path_SED_found && break 3
5624     done
5625   done
5626   done
5627 IFS=$as_save_IFS
5628   if test -z "$ac_cv_path_SED"; then
5629     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5630   fi
5631 else
5632   ac_cv_path_SED=$SED
5633 fi
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5637 $as_echo "$ac_cv_path_SED" >&6; }
5638  SED="$ac_cv_path_SED"
5639   rm -f conftest.sed
5640
5641 test -z "$SED" && SED=sed
5642 Xsed="$SED -e 1s/^X//"
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5655 $as_echo_n "checking for fgrep... " >&6; }
5656 if test "${ac_cv_path_FGREP+set}" = set; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5660    then ac_cv_path_FGREP="$GREP -F"
5661    else
5662      if test -z "$FGREP"; then
5663   ac_path_FGREP_found=false
5664   # Loop through the user's path and test for each of PROGNAME-LIST
5665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670     for ac_prog in fgrep; do
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5673       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5674 # Check for GNU ac_path_FGREP and select it if it is found.
5675   # Check for GNU $ac_path_FGREP
5676 case `"$ac_path_FGREP" --version 2>&1` in
5677 *GNU*)
5678   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5679 *)
5680   ac_count=0
5681   $as_echo_n 0123456789 >"conftest.in"
5682   while :
5683   do
5684     cat "conftest.in" "conftest.in" >"conftest.tmp"
5685     mv "conftest.tmp" "conftest.in"
5686     cp "conftest.in" "conftest.nl"
5687     $as_echo 'FGREP' >> "conftest.nl"
5688     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690     as_fn_arith $ac_count + 1 && ac_count=$as_val
5691     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5692       # Best one so far, save it but keep looking for a better one
5693       ac_cv_path_FGREP="$ac_path_FGREP"
5694       ac_path_FGREP_max=$ac_count
5695     fi
5696     # 10*(2^10) chars as input seems more than enough
5697     test $ac_count -gt 10 && break
5698   done
5699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700 esac
5701
5702       $ac_path_FGREP_found && break 3
5703     done
5704   done
5705   done
5706 IFS=$as_save_IFS
5707   if test -z "$ac_cv_path_FGREP"; then
5708     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5709   fi
5710 else
5711   ac_cv_path_FGREP=$FGREP
5712 fi
5713
5714    fi
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5717 $as_echo "$ac_cv_path_FGREP" >&6; }
5718  FGREP="$ac_cv_path_FGREP"
5719
5720
5721 test -z "$GREP" && GREP=grep
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 # Check whether --with-gnu-ld was given.
5742 if test "${with_gnu_ld+set}" = set; then :
5743   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5744 else
5745   with_gnu_ld=no
5746 fi
5747
5748 ac_prog=ld
5749 if test "$GCC" = yes; then
5750   # Check if gcc -print-prog-name=ld gives a path.
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5752 $as_echo_n "checking for ld used by $CC... " >&6; }
5753   case $host in
5754   *-*-mingw*)
5755     # gcc leaves a trailing carriage return which upsets mingw
5756     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757   *)
5758     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5759   esac
5760   case $ac_prog in
5761     # Accept absolute paths.
5762     [\\/]* | ?:[\\/]*)
5763       re_direlt='/[^/][^/]*/\.\./'
5764       # Canonicalize the pathname of ld
5765       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5766       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5767         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5768       done
5769       test -z "$LD" && LD="$ac_prog"
5770       ;;
5771   "")
5772     # If it fails, then pretend we aren't using GCC.
5773     ac_prog=ld
5774     ;;
5775   *)
5776     # If it is relative, then search for the first ld in PATH.
5777     with_gnu_ld=unknown
5778     ;;
5779   esac
5780 elif test "$with_gnu_ld" = yes; then
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5782 $as_echo_n "checking for GNU ld... " >&6; }
5783 else
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5785 $as_echo_n "checking for non-GNU ld... " >&6; }
5786 fi
5787 if test "${lt_cv_path_LD+set}" = set; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -z "$LD"; then
5791   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792   for ac_dir in $PATH; do
5793     IFS="$lt_save_ifs"
5794     test -z "$ac_dir" && ac_dir=.
5795     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5796       lt_cv_path_LD="$ac_dir/$ac_prog"
5797       # Check to see if the program is GNU ld.  I'd rather use --version,
5798       # but apparently some variants of GNU ld only accept -v.
5799       # Break only if it was the GNU/non-GNU ld that we prefer.
5800       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5801       *GNU* | *'with BFD'*)
5802         test "$with_gnu_ld" != no && break
5803         ;;
5804       *)
5805         test "$with_gnu_ld" != yes && break
5806         ;;
5807       esac
5808     fi
5809   done
5810   IFS="$lt_save_ifs"
5811 else
5812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5813 fi
5814 fi
5815
5816 LD="$lt_cv_path_LD"
5817 if test -n "$LD"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5819 $as_echo "$LD" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5826 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5827 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5831 case `$LD -v 2>&1 </dev/null` in
5832 *GNU* | *'with BFD'*)
5833   lt_cv_prog_gnu_ld=yes
5834   ;;
5835 *)
5836   lt_cv_prog_gnu_ld=no
5837   ;;
5838 esac
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5841 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5842 with_gnu_ld=$lt_cv_prog_gnu_ld
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5853 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5854 if test "${lt_cv_path_NM+set}" = set; then :
5855   $as_echo_n "(cached) " >&6
5856 else
5857   if test -n "$NM"; then
5858   # Let the user override the test.
5859   lt_cv_path_NM="$NM"
5860 else
5861   lt_nm_to_check="${ac_tool_prefix}nm"
5862   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5863     lt_nm_to_check="$lt_nm_to_check nm"
5864   fi
5865   for lt_tmp_nm in $lt_nm_to_check; do
5866     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5868       IFS="$lt_save_ifs"
5869       test -z "$ac_dir" && ac_dir=.
5870       tmp_nm="$ac_dir/$lt_tmp_nm"
5871       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5872         # Check to see if the nm accepts a BSD-compat flag.
5873         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5874         #   nm: unknown option "B" ignored
5875         # Tru64's nm complains that /dev/null is an invalid object file
5876         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5877         */dev/null* | *'Invalid file or object type'*)
5878           lt_cv_path_NM="$tmp_nm -B"
5879           break
5880           ;;
5881         *)
5882           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5883           */dev/null*)
5884             lt_cv_path_NM="$tmp_nm -p"
5885             break
5886             ;;
5887           *)
5888             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5889             continue # so that we can try to find one that supports BSD flags
5890             ;;
5891           esac
5892           ;;
5893         esac
5894       fi
5895     done
5896     IFS="$lt_save_ifs"
5897   done
5898   : ${lt_cv_path_NM=no}
5899 fi
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5902 $as_echo "$lt_cv_path_NM" >&6; }
5903 if test "$lt_cv_path_NM" != "no"; then
5904   NM="$lt_cv_path_NM"
5905 else
5906   # Didn't find any BSD compatible name lister, look for dumpbin.
5907   if test -n "$ac_tool_prefix"; then
5908   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5909   do
5910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$DUMPBIN"; then
5918   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 DUMPBIN=$ac_cv_prog_DUMPBIN
5938 if test -n "$DUMPBIN"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5940 $as_echo "$DUMPBIN" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947     test -n "$DUMPBIN" && break
5948   done
5949 fi
5950 if test -z "$DUMPBIN"; then
5951   ac_ct_DUMPBIN=$DUMPBIN
5952   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5953 do
5954   # Extract the first word of "$ac_prog", so it can be a program name with args.
5955 set dummy $ac_prog; 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_ac_ct_DUMPBIN+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if test -n "$ac_ct_DUMPBIN"; then
5962   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$ac_prog"
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 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982 if test -n "$ac_ct_DUMPBIN"; then
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5984 $as_echo "$ac_ct_DUMPBIN" >&6; }
5985 else
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991   test -n "$ac_ct_DUMPBIN" && break
5992 done
5993
5994   if test "x$ac_ct_DUMPBIN" = x; then
5995     DUMPBIN=":"
5996   else
5997     case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003     DUMPBIN=$ac_ct_DUMPBIN
6004   fi
6005 fi
6006
6007
6008   if test "$DUMPBIN" != ":"; then
6009     NM="$DUMPBIN"
6010   fi
6011 fi
6012 test -z "$NM" && NM=nm
6013
6014
6015
6016
6017
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6021 if test "${lt_cv_nm_interface+set}" = set; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   lt_cv_nm_interface="BSD nm"
6025   echo "int some_variable = 0;" > conftest.$ac_ext
6026   (eval echo "\"\$as_me:6026: $ac_compile\"" >&5)
6027   (eval "$ac_compile" 2>conftest.err)
6028   cat conftest.err >&5
6029   (eval echo "\"\$as_me:6029: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6030   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6031   cat conftest.err >&5
6032   (eval echo "\"\$as_me:6032: output\"" >&5)
6033   cat conftest.out >&5
6034   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6035     lt_cv_nm_interface="MS dumpbin"
6036   fi
6037   rm -f conftest*
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6040 $as_echo "$lt_cv_nm_interface" >&6; }
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6043 $as_echo_n "checking whether ln -s works... " >&6; }
6044 LN_S=$as_ln_s
6045 if test "$LN_S" = "ln -s"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6047 $as_echo "yes" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6050 $as_echo "no, using $LN_S" >&6; }
6051 fi
6052
6053 # find the maximum length of command line arguments
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059     i=0
6060   teststring="ABCD"
6061
6062   case $build_os in
6063   msdosdjgpp*)
6064     # On DJGPP, this test can blow up pretty badly due to problems in libc
6065     # (any single argument exceeding 2000 bytes causes a buffer overrun
6066     # during glob expansion).  Even if it were fixed, the result of this
6067     # check would be larger than it should be.
6068     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6069     ;;
6070
6071   gnu*)
6072     # Under GNU Hurd, this test is not required because there is
6073     # no limit to the length of command line arguments.
6074     # Libtool will interpret -1 as no limit whatsoever
6075     lt_cv_sys_max_cmd_len=-1;
6076     ;;
6077
6078   cygwin* | mingw* | cegcc*)
6079     # On Win9x/ME, this test blows up -- it succeeds, but takes
6080     # about 5 minutes as the teststring grows exponentially.
6081     # Worse, since 9x/ME are not pre-emptively multitasking,
6082     # you end up with a "frozen" computer, even though with patience
6083     # the test eventually succeeds (with a max line length of 256k).
6084     # Instead, let's just punt: use the minimum linelength reported by
6085     # all of the supported platforms: 8192 (on NT/2K/XP).
6086     lt_cv_sys_max_cmd_len=8192;
6087     ;;
6088
6089   amigaos*)
6090     # On AmigaOS with pdksh, this test takes hours, literally.
6091     # So we just punt and use a minimum line length of 8192.
6092     lt_cv_sys_max_cmd_len=8192;
6093     ;;
6094
6095   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6096     # This has been around since 386BSD, at least.  Likely further.
6097     if test -x /sbin/sysctl; then
6098       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6099     elif test -x /usr/sbin/sysctl; then
6100       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6101     else
6102       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6103     fi
6104     # And add a safety zone
6105     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107     ;;
6108
6109   interix*)
6110     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6111     lt_cv_sys_max_cmd_len=196608
6112     ;;
6113
6114   osf*)
6115     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6116     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6117     # nice to cause kernel panics so lets avoid the loop below.
6118     # First set a reasonable default.
6119     lt_cv_sys_max_cmd_len=16384
6120     #
6121     if test -x /sbin/sysconfig; then
6122       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6123         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6124       esac
6125     fi
6126     ;;
6127   sco3.2v5*)
6128     lt_cv_sys_max_cmd_len=102400
6129     ;;
6130   sysv5* | sco5v6* | sysv4.2uw2*)
6131     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6132     if test -n "$kargmax"; then
6133       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6134     else
6135       lt_cv_sys_max_cmd_len=32768
6136     fi
6137     ;;
6138   *)
6139     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6140     if test -n "$lt_cv_sys_max_cmd_len"; then
6141       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6142       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6143     else
6144       # Make teststring a little bigger before we do anything with it.
6145       # a 1K string should be a reasonable start.
6146       for i in 1 2 3 4 5 6 7 8 ; do
6147         teststring=$teststring$teststring
6148       done
6149       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6150       # If test is not a shell built-in, we'll probably end up computing a
6151       # maximum length that is only half of the actual maximum length, but
6152       # we can't tell.
6153       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6154                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6155               test $i != 17 # 1/2 MB should be enough
6156       do
6157         i=`expr $i + 1`
6158         teststring=$teststring$teststring
6159       done
6160       # Only check the string length outside the loop.
6161       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6162       teststring=
6163       # Add a significant safety factor because C++ compilers can tack on
6164       # massive amounts of additional arguments before passing them to the
6165       # linker.  It appears as though 1/2 is a usable value.
6166       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6167     fi
6168     ;;
6169   esac
6170
6171 fi
6172
6173 if test -n $lt_cv_sys_max_cmd_len ; then
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6175 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6176 else
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6178 $as_echo "none" >&6; }
6179 fi
6180 max_cmd_len=$lt_cv_sys_max_cmd_len
6181
6182
6183
6184
6185
6186
6187 : ${CP="cp -f"}
6188 : ${MV="mv -f"}
6189 : ${RM="rm -f"}
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6192 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6193 # Try some XSI features
6194 xsi_shell=no
6195 ( _lt_dummy="a/b/c"
6196   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6197       = c,a/b,, \
6198     && eval 'test $(( 1 + 1 )) -eq 2 \
6199     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6200   && xsi_shell=yes
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6202 $as_echo "$xsi_shell" >&6; }
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6206 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6207 lt_shell_append=no
6208 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6209     >/dev/null 2>&1 \
6210   && lt_shell_append=yes
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6212 $as_echo "$lt_shell_append" >&6; }
6213
6214
6215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6216   lt_unset=unset
6217 else
6218   lt_unset=false
6219 fi
6220
6221
6222
6223
6224
6225 # test EBCDIC or ASCII
6226 case `echo X|tr X '\101'` in
6227  A) # ASCII based system
6228     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6229   lt_SP2NL='tr \040 \012'
6230   lt_NL2SP='tr \015\012 \040\040'
6231   ;;
6232  *) # EBCDIC based system
6233   lt_SP2NL='tr \100 \n'
6234   lt_NL2SP='tr \r\n \100\100'
6235   ;;
6236 esac
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6247 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6248 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   lt_cv_ld_reload_flag='-r'
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6254 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6255 reload_flag=$lt_cv_ld_reload_flag
6256 case $reload_flag in
6257 "" | " "*) ;;
6258 *) reload_flag=" $reload_flag" ;;
6259 esac
6260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6261 case $host_os in
6262   darwin*)
6263     if test "$GCC" = yes; then
6264       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6265     else
6266       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6267     fi
6268     ;;
6269 esac
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -n "$OBJDUMP"; then
6288   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 OBJDUMP=$ac_cv_prog_OBJDUMP
6308 if test -n "$OBJDUMP"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6310 $as_echo "$OBJDUMP" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_OBJDUMP"; then
6319   ac_ct_OBJDUMP=$OBJDUMP
6320   # Extract the first word of "objdump", so it can be a program name with args.
6321 set dummy objdump; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$ac_ct_OBJDUMP"; then
6328   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342   done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6348 if test -n "$ac_ct_OBJDUMP"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6350 $as_echo "$ac_ct_OBJDUMP" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356   if test "x$ac_ct_OBJDUMP" = x; then
6357     OBJDUMP="false"
6358   else
6359     case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365     OBJDUMP=$ac_ct_OBJDUMP
6366   fi
6367 else
6368   OBJDUMP="$ac_cv_prog_OBJDUMP"
6369 fi
6370
6371 test -z "$OBJDUMP" && OBJDUMP=objdump
6372
6373
6374
6375
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6379 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6380 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   lt_cv_file_magic_cmd='$MAGIC_CMD'
6384 lt_cv_file_magic_test_file=
6385 lt_cv_deplibs_check_method='unknown'
6386 # Need to set the preceding variable on all platforms that support
6387 # interlibrary dependencies.
6388 # 'none' -- dependencies not supported.
6389 # `unknown' -- same as none, but documents that we really don't know.
6390 # 'pass_all' -- all dependencies passed with no checks.
6391 # 'test_compile' -- check by making test program.
6392 # 'file_magic [[regex]]' -- check by looking for files in library path
6393 # which responds to the $file_magic_cmd with a given extended regex.
6394 # If you have `file' or equivalent on your system and you're not sure
6395 # whether `pass_all' will *always* work, you probably want this one.
6396
6397 case $host_os in
6398 aix[4-9]*)
6399   lt_cv_deplibs_check_method=pass_all
6400   ;;
6401
6402 beos*)
6403   lt_cv_deplibs_check_method=pass_all
6404   ;;
6405
6406 bsdi[45]*)
6407   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6408   lt_cv_file_magic_cmd='/usr/bin/file -L'
6409   lt_cv_file_magic_test_file=/shlib/libc.so
6410   ;;
6411
6412 cygwin*)
6413   # func_win32_libid is a shell function defined in ltmain.sh
6414   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415   lt_cv_file_magic_cmd='func_win32_libid'
6416   ;;
6417
6418 mingw* | pw32*)
6419   # Base MSYS/MinGW do not provide the 'file' command needed by
6420   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6421   # unless we find 'file', for example because we are cross-compiling.
6422   if ( file / ) >/dev/null 2>&1; then
6423     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6424     lt_cv_file_magic_cmd='func_win32_libid'
6425   else
6426     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6427     lt_cv_file_magic_cmd='$OBJDUMP -f'
6428   fi
6429   ;;
6430
6431 cegcc)
6432   # use the weaker test based on 'objdump'. See mingw*.
6433   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6434   lt_cv_file_magic_cmd='$OBJDUMP -f'
6435   ;;
6436
6437 darwin* | rhapsody*)
6438   lt_cv_deplibs_check_method=pass_all
6439   ;;
6440
6441 freebsd* | dragonfly*)
6442   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6443     case $host_cpu in
6444     i*86 )
6445       # Not sure whether the presence of OpenBSD here was a mistake.
6446       # Let's accept both of them until this is cleared up.
6447       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6448       lt_cv_file_magic_cmd=/usr/bin/file
6449       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6450       ;;
6451     esac
6452   else
6453     lt_cv_deplibs_check_method=pass_all
6454   fi
6455   ;;
6456
6457 gnu*)
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 hpux10.20* | hpux11*)
6462   lt_cv_file_magic_cmd=/usr/bin/file
6463   case $host_cpu in
6464   ia64*)
6465     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6466     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6467     ;;
6468   hppa*64*)
6469     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]'
6470     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6471     ;;
6472   *)
6473     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6474     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6475     ;;
6476   esac
6477   ;;
6478
6479 interix[3-9]*)
6480   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6481   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6482   ;;
6483
6484 irix5* | irix6* | nonstopux*)
6485   case $LD in
6486   *-32|*"-32 ") libmagic=32-bit;;
6487   *-n32|*"-n32 ") libmagic=N32;;
6488   *-64|*"-64 ") libmagic=64-bit;;
6489   *) libmagic=never-match;;
6490   esac
6491   lt_cv_deplibs_check_method=pass_all
6492   ;;
6493
6494 # This must be Linux ELF.
6495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6496   lt_cv_deplibs_check_method=pass_all
6497   ;;
6498
6499 netbsd* | netbsdelf*-gnu)
6500   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6502   else
6503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6504   fi
6505   ;;
6506
6507 newos6*)
6508   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6509   lt_cv_file_magic_cmd=/usr/bin/file
6510   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6511   ;;
6512
6513 *nto* | *qnx*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 openbsd*)
6518   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6519     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6520   else
6521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6522   fi
6523   ;;
6524
6525 osf3* | osf4* | osf5*)
6526   lt_cv_deplibs_check_method=pass_all
6527   ;;
6528
6529 rdos*)
6530   lt_cv_deplibs_check_method=pass_all
6531   ;;
6532
6533 solaris*)
6534   lt_cv_deplibs_check_method=pass_all
6535   ;;
6536
6537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6538   lt_cv_deplibs_check_method=pass_all
6539   ;;
6540
6541 sysv4 | sysv4.3*)
6542   case $host_vendor in
6543   motorola)
6544     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]'
6545     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6546     ;;
6547   ncr)
6548     lt_cv_deplibs_check_method=pass_all
6549     ;;
6550   sequent)
6551     lt_cv_file_magic_cmd='/bin/file'
6552     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6553     ;;
6554   sni)
6555     lt_cv_file_magic_cmd='/bin/file'
6556     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6557     lt_cv_file_magic_test_file=/lib/libc.so
6558     ;;
6559   siemens)
6560     lt_cv_deplibs_check_method=pass_all
6561     ;;
6562   pc)
6563     lt_cv_deplibs_check_method=pass_all
6564     ;;
6565   esac
6566   ;;
6567
6568 tpf*)
6569   lt_cv_deplibs_check_method=pass_all
6570   ;;
6571 esac
6572
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6576 file_magic_cmd=$lt_cv_file_magic_cmd
6577 deplibs_check_method=$lt_cv_deplibs_check_method
6578 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 if test -n "$ac_tool_prefix"; then
6592   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}ar; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_prog_AR+set}" = set; then :
6597   $as_echo_n "(cached) " >&6
6598 else
6599   if test -n "$AR"; then
6600   ac_cv_prog_AR="$AR" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607     for ac_exec_ext in '' $ac_executable_extensions; do
6608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609     ac_cv_prog_AR="${ac_tool_prefix}ar"
6610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614   done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 AR=$ac_cv_prog_AR
6620 if test -n "$AR"; then
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6622 $as_echo "$AR" >&6; }
6623 else
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627
6628
6629 fi
6630 if test -z "$ac_cv_prog_AR"; then
6631   ac_ct_AR=$AR
6632   # Extract the first word of "ar", so it can be a program name with args.
6633 set dummy ar; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   if test -n "$ac_ct_AR"; then
6640   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_prog_ac_ct_AR="ar"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6660 if test -n "$ac_ct_AR"; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6662 $as_echo "$ac_ct_AR" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668   if test "x$ac_ct_AR" = x; then
6669     AR="false"
6670   else
6671     case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677     AR=$ac_ct_AR
6678   fi
6679 else
6680   AR="$ac_cv_prog_AR"
6681 fi
6682
6683 test -z "$AR" && AR=ar
6684 test -z "$AR_FLAGS" && AR_FLAGS=cru
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696 if test -n "$ac_tool_prefix"; then
6697   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}strip; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if test "${ac_cv_prog_STRIP+set}" = set; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   if test -n "$STRIP"; then
6705   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712     for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719   done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 STRIP=$ac_cv_prog_STRIP
6725 if test -n "$STRIP"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6727 $as_echo "$STRIP" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734 fi
6735 if test -z "$ac_cv_prog_STRIP"; then
6736   ac_ct_STRIP=$STRIP
6737   # Extract the first word of "strip", so it can be a program name with args.
6738 set dummy strip; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744   if test -n "$ac_ct_STRIP"; then
6745   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752     for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_prog_ac_ct_STRIP="strip"
6755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759   done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6765 if test -n "$ac_ct_STRIP"; then
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6767 $as_echo "$ac_ct_STRIP" >&6; }
6768 else
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773   if test "x$ac_ct_STRIP" = x; then
6774     STRIP=":"
6775   else
6776     case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782     STRIP=$ac_ct_STRIP
6783   fi
6784 else
6785   STRIP="$ac_cv_prog_STRIP"
6786 fi
6787
6788 test -z "$STRIP" && STRIP=:
6789
6790
6791
6792
6793
6794
6795 if test -n "$ac_tool_prefix"; then
6796   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   if test -n "$RANLIB"; then
6804   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 RANLIB=$ac_cv_prog_RANLIB
6824 if test -n "$RANLIB"; then
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6826 $as_echo "$RANLIB" >&6; }
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_RANLIB"; then
6835   ac_ct_RANLIB=$RANLIB
6836   # Extract the first word of "ranlib", so it can be a program name with args.
6837 set dummy ranlib; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$ac_ct_RANLIB"; then
6844   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_prog_ac_ct_RANLIB="ranlib"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6864 if test -n "$ac_ct_RANLIB"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6866 $as_echo "$ac_ct_RANLIB" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872   if test "x$ac_ct_RANLIB" = x; then
6873     RANLIB=":"
6874   else
6875     case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881     RANLIB=$ac_ct_RANLIB
6882   fi
6883 else
6884   RANLIB="$ac_cv_prog_RANLIB"
6885 fi
6886
6887 test -z "$RANLIB" && RANLIB=:
6888
6889
6890
6891
6892
6893
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6898
6899 if test -n "$RANLIB"; then
6900   case $host_os in
6901   openbsd*)
6902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6903     ;;
6904   *)
6905     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6906     ;;
6907   esac
6908   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 # If no C compiler was specified, use CC.
6945 LTCC=${LTCC-"$CC"}
6946
6947 # If no C compiler flags were specified, use CFLAGS.
6948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6949
6950 # Allow CC to be a program name with arguments.
6951 compiler=$CC
6952
6953
6954 # Check for command to grab the raw symbol name followed by C symbol from nm.
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6956 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6957 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960
6961 # These are sane defaults that work on at least a few old systems.
6962 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6963
6964 # Character class describing NM global symbol codes.
6965 symcode='[BCDEGRST]'
6966
6967 # Regexp to match symbols that can be accessed directly from C.
6968 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6969
6970 # Define system-specific variables.
6971 case $host_os in
6972 aix*)
6973   symcode='[BCDT]'
6974   ;;
6975 cygwin* | mingw* | pw32* | cegcc*)
6976   symcode='[ABCDGISTW]'
6977   ;;
6978 hpux*)
6979   if test "$host_cpu" = ia64; then
6980     symcode='[ABCDEGRST]'
6981   fi
6982   ;;
6983 irix* | nonstopux*)
6984   symcode='[BCDEGRST]'
6985   ;;
6986 osf*)
6987   symcode='[BCDEGQRST]'
6988   ;;
6989 solaris*)
6990   symcode='[BDRT]'
6991   ;;
6992 sco3.2v5*)
6993   symcode='[DT]'
6994   ;;
6995 sysv4.2uw2*)
6996   symcode='[DT]'
6997   ;;
6998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6999   symcode='[ABDT]'
7000   ;;
7001 sysv4)
7002   symcode='[DFNSTU]'
7003   ;;
7004 esac
7005
7006 # If we're using GNU nm, then use its standard symbol codes.
7007 case `$NM -V 2>&1` in
7008 *GNU* | *'with BFD'*)
7009   symcode='[ABCDGIRSTW]' ;;
7010 esac
7011
7012 # Transform an extracted symbol line into a proper C declaration.
7013 # Some systems (esp. on ia64) link data and code symbols differently,
7014 # so use this general approach.
7015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7016
7017 # Transform an extracted symbol line into symbol name and symbol address
7018 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7019 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'"
7020
7021 # Handle CRLF in mingw tool chain
7022 opt_cr=
7023 case $build_os in
7024 mingw*)
7025   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7026   ;;
7027 esac
7028
7029 # Try without a prefix underscore, then with it.
7030 for ac_symprfx in "" "_"; do
7031
7032   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7033   symxfrm="\\1 $ac_symprfx\\2 \\2"
7034
7035   # Write the raw and C identifiers.
7036   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7037     # Fake it for dumpbin and say T for any non-static function
7038     # and D for any global variable.
7039     # Also find C++ and __fastcall symbols from MSVC++,
7040     # which start with @ or ?.
7041     lt_cv_sys_global_symbol_pipe="$AWK '"\
7042 "     {last_section=section; section=\$ 3};"\
7043 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7044 "     \$ 0!~/External *\|/{next};"\
7045 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046 "     {if(hide[section]) next};"\
7047 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7048 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7049 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7050 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7051 "     ' prfx=^$ac_symprfx"
7052   else
7053     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7054   fi
7055
7056   # Check to see that the pipe works correctly.
7057   pipe_works=no
7058
7059   rm -f conftest*
7060   cat > conftest.$ac_ext <<_LT_EOF
7061 #ifdef __cplusplus
7062 extern "C" {
7063 #endif
7064 char nm_test_var;
7065 void nm_test_func(void);
7066 void nm_test_func(void){}
7067 #ifdef __cplusplus
7068 }
7069 #endif
7070 int main(){nm_test_var='a';nm_test_func();return(0);}
7071 _LT_EOF
7072
7073   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074   (eval $ac_compile) 2>&5
7075   ac_status=$?
7076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077   test $ac_status = 0; }; then
7078     # Now try to grab the symbols.
7079     nlist=conftest.nm
7080     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7081   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7082   ac_status=$?
7083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084   test $ac_status = 0; } && test -s "$nlist"; then
7085       # Try sorting and uniquifying the output.
7086       if sort "$nlist" | uniq > "$nlist"T; then
7087         mv -f "$nlist"T "$nlist"
7088       else
7089         rm -f "$nlist"T
7090       fi
7091
7092       # Make sure that we snagged all the symbols we need.
7093       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7094         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7095           cat <<_LT_EOF > conftest.$ac_ext
7096 #ifdef __cplusplus
7097 extern "C" {
7098 #endif
7099
7100 _LT_EOF
7101           # Now generate the symbol file.
7102           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7103
7104           cat <<_LT_EOF >> conftest.$ac_ext
7105
7106 /* The mapping between symbol names and symbols.  */
7107 const struct {
7108   const char *name;
7109   void       *address;
7110 }
7111 lt__PROGRAM__LTX_preloaded_symbols[] =
7112 {
7113   { "@PROGRAM@", (void *) 0 },
7114 _LT_EOF
7115           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7116           cat <<\_LT_EOF >> conftest.$ac_ext
7117   {0, (void *) 0}
7118 };
7119
7120 /* This works around a problem in FreeBSD linker */
7121 #ifdef FREEBSD_WORKAROUND
7122 static const void *lt_preloaded_setup() {
7123   return lt__PROGRAM__LTX_preloaded_symbols;
7124 }
7125 #endif
7126
7127 #ifdef __cplusplus
7128 }
7129 #endif
7130 _LT_EOF
7131           # Now try linking the two files.
7132           mv conftest.$ac_objext conftstm.$ac_objext
7133           lt_save_LIBS="$LIBS"
7134           lt_save_CFLAGS="$CFLAGS"
7135           LIBS="conftstm.$ac_objext"
7136           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7137           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7138   (eval $ac_link) 2>&5
7139   ac_status=$?
7140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7142             pipe_works=yes
7143           fi
7144           LIBS="$lt_save_LIBS"
7145           CFLAGS="$lt_save_CFLAGS"
7146         else
7147           echo "cannot find nm_test_func in $nlist" >&5
7148         fi
7149       else
7150         echo "cannot find nm_test_var in $nlist" >&5
7151       fi
7152     else
7153       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7154     fi
7155   else
7156     echo "$progname: failed program was:" >&5
7157     cat conftest.$ac_ext >&5
7158   fi
7159   rm -rf conftest* conftst*
7160
7161   # Do not use the global_symbol_pipe unless it works.
7162   if test "$pipe_works" = yes; then
7163     break
7164   else
7165     lt_cv_sys_global_symbol_pipe=
7166   fi
7167 done
7168
7169 fi
7170
7171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7172   lt_cv_sys_global_symbol_to_cdecl=
7173 fi
7174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7176 $as_echo "failed" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7179 $as_echo "ok" >&6; }
7180 fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 # Check whether --enable-libtool-lock was given.
7205 if test "${enable_libtool_lock+set}" = set; then :
7206   enableval=$enable_libtool_lock;
7207 fi
7208
7209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7210
7211 # Some flags need to be propagated to the compiler or linker for good
7212 # libtool support.
7213 case $host in
7214 ia64-*-hpux*)
7215   # Find out which ABI we are using.
7216   echo 'int i;' > conftest.$ac_ext
7217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7218   (eval $ac_compile) 2>&5
7219   ac_status=$?
7220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221   test $ac_status = 0; }; then
7222     case `/usr/bin/file conftest.$ac_objext` in
7223       *ELF-32*)
7224         HPUX_IA64_MODE="32"
7225         ;;
7226       *ELF-64*)
7227         HPUX_IA64_MODE="64"
7228         ;;
7229     esac
7230   fi
7231   rm -rf conftest*
7232   ;;
7233 *-*-irix6*)
7234   # Find out which ABI we are using.
7235   echo '#line 7235 "configure"' > conftest.$ac_ext
7236   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237   (eval $ac_compile) 2>&5
7238   ac_status=$?
7239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240   test $ac_status = 0; }; then
7241     if test "$lt_cv_prog_gnu_ld" = yes; then
7242       case `/usr/bin/file conftest.$ac_objext` in
7243         *32-bit*)
7244           LD="${LD-ld} -melf32bsmip"
7245           ;;
7246         *N32*)
7247           LD="${LD-ld} -melf32bmipn32"
7248           ;;
7249         *64-bit*)
7250           LD="${LD-ld} -melf64bmip"
7251         ;;
7252       esac
7253     else
7254       case `/usr/bin/file conftest.$ac_objext` in
7255         *32-bit*)
7256           LD="${LD-ld} -32"
7257           ;;
7258         *N32*)
7259           LD="${LD-ld} -n32"
7260           ;;
7261         *64-bit*)
7262           LD="${LD-ld} -64"
7263           ;;
7264       esac
7265     fi
7266   fi
7267   rm -rf conftest*
7268   ;;
7269
7270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7272   # Find out which ABI we are using.
7273   echo 'int i;' > conftest.$ac_ext
7274   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7275   (eval $ac_compile) 2>&5
7276   ac_status=$?
7277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278   test $ac_status = 0; }; then
7279     case `/usr/bin/file conftest.o` in
7280       *32-bit*)
7281         case $host in
7282           x86_64-*kfreebsd*-gnu)
7283             LD="${LD-ld} -m elf_i386_fbsd"
7284             ;;
7285           x86_64-*linux*)
7286             LD="${LD-ld} -m elf_i386"
7287             ;;
7288           ppc64-*linux*|powerpc64-*linux*)
7289             LD="${LD-ld} -m elf32ppclinux"
7290             ;;
7291           s390x-*linux*)
7292             LD="${LD-ld} -m elf_s390"
7293             ;;
7294           sparc64-*linux*)
7295             LD="${LD-ld} -m elf32_sparc"
7296             ;;
7297         esac
7298         ;;
7299       *64-bit*)
7300         case $host in
7301           x86_64-*kfreebsd*-gnu)
7302             LD="${LD-ld} -m elf_x86_64_fbsd"
7303             ;;
7304           x86_64-*linux*)
7305             LD="${LD-ld} -m elf_x86_64"
7306             ;;
7307           ppc*-*linux*|powerpc*-*linux*)
7308             LD="${LD-ld} -m elf64ppc"
7309             ;;
7310           s390*-*linux*|s390*-*tpf*)
7311             LD="${LD-ld} -m elf64_s390"
7312             ;;
7313           sparc*-*linux*)
7314             LD="${LD-ld} -m elf64_sparc"
7315             ;;
7316         esac
7317         ;;
7318     esac
7319   fi
7320   rm -rf conftest*
7321   ;;
7322
7323 *-*-sco3.2v5*)
7324   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325   SAVE_CFLAGS="$CFLAGS"
7326   CFLAGS="$CFLAGS -belf"
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7329 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h.  */
7340
7341 int
7342 main ()
7343 {
7344
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350   lt_cv_cc_needs_belf=yes
7351 else
7352   lt_cv_cc_needs_belf=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355     conftest$ac_exeext conftest.$ac_ext
7356      ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367     CFLAGS="$SAVE_CFLAGS"
7368   fi
7369   ;;
7370 sparc*-*solaris*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377   test $ac_status = 0; }; then
7378     case `/usr/bin/file conftest.o` in
7379     *64-bit*)
7380       case $lt_cv_prog_gnu_ld in
7381       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382       *)
7383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384           LD="${LD-ld} -64"
7385         fi
7386         ;;
7387       esac
7388       ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398   case $host_os in
7399     rhapsody* | darwin*)
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$DSYMUTIL"; then
7409   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440   ac_ct_DSYMUTIL=$DSYMUTIL
7441   # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_DSYMUTIL"; then
7449   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_DSYMUTIL" = x; then
7478     DSYMUTIL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     DSYMUTIL=$ac_ct_DSYMUTIL
7487   fi
7488 else
7489   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7490 fi
7491
7492     if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$NMEDIT"; then
7501   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532   ac_ct_NMEDIT=$NMEDIT
7533   # Extract the first word of "nmedit", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_NMEDIT"; then
7541   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_NMEDIT" = x; then
7570     NMEDIT=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     NMEDIT=$ac_ct_NMEDIT
7579   fi
7580 else
7581   NMEDIT="$ac_cv_prog_NMEDIT"
7582 fi
7583
7584     if test -n "$ac_tool_prefix"; then
7585   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_LIPO+set}" = set; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$LIPO"; then
7593   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_LIPO"; then
7624   ac_ct_LIPO=$LIPO
7625   # Extract the first word of "lipo", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$ac_ct_LIPO"; then
7633   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_prog_ac_ct_LIPO="lipo"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661   if test "x$ac_ct_LIPO" = x; then
7662     LIPO=":"
7663   else
7664     case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670     LIPO=$ac_ct_LIPO
7671   fi
7672 else
7673   LIPO="$ac_cv_prog_LIPO"
7674 fi
7675
7676     if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$OTOOL"; then
7685   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_OTOOL"; then
7716   ac_ct_OTOOL=$OTOOL
7717   # Extract the first word of "otool", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$ac_ct_OTOOL"; then
7725   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_ac_ct_OTOOL="otool"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753   if test "x$ac_ct_OTOOL" = x; then
7754     OTOOL=":"
7755   else
7756     case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762     OTOOL=$ac_ct_OTOOL
7763   fi
7764 else
7765   OTOOL="$ac_cv_prog_OTOOL"
7766 fi
7767
7768     if test -n "$ac_tool_prefix"; then
7769   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$OTOOL64"; then
7777   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808   ac_ct_OTOOL64=$OTOOL64
7809   # Extract the first word of "otool64", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$ac_ct_OTOOL64"; then
7817   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_prog_ac_ct_OTOOL64="otool64"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845   if test "x$ac_ct_OTOOL64" = x; then
7846     OTOOL64=":"
7847   else
7848     case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854     OTOOL64=$ac_ct_OTOOL64
7855   fi
7856 else
7857   OTOOL64="$ac_cv_prog_OTOOL64"
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887 $as_echo_n "checking for -single_module linker flag... " >&6; }
7888 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   lt_cv_apple_cc_single_mod=no
7892       if test -z "${LT_MULTI_MODULE}"; then
7893         # By default we will add the -single_module flag. You can override
7894         # by either setting the environment variable LT_MULTI_MODULE
7895         # non-empty at configure time, or by adding -multi_module to the
7896         # link flags.
7897         rm -rf libconftest.dylib*
7898         echo "int foo(void){return 1;}" > conftest.c
7899         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c" >&5
7901         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903         _lt_result=$?
7904         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905           lt_cv_apple_cc_single_mod=yes
7906         else
7907           cat conftest.err >&5
7908         fi
7909         rm -rf libconftest.dylib*
7910         rm -f conftest.*
7911       fi
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   lt_cv_ld_exported_symbols_list=no
7921       save_LDFLAGS=$LDFLAGS
7922       echo "_main" > conftest.sym
7923       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926
7927 int
7928 main ()
7929 {
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936   lt_cv_ld_exported_symbols_list=yes
7937 else
7938   lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941     conftest$ac_exeext conftest.$ac_ext
7942         LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947     case $host_os in
7948     rhapsody* | darwin1.[012])
7949       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950     darwin1.*)
7951       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952     darwin*) # darwin 5.x on
7953       # if running on 10.5 or later, the deployment target defaults
7954       # to the OS version, if on x86, and 10.4, the deployment
7955       # target defaults to 10.4. Don't you love it?
7956       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959         10.[012]*)
7960           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961         10.*)
7962           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7963       esac
7964     ;;
7965   esac
7966     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967       _lt_dar_single_mod='$single_module'
7968     fi
7969     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971     else
7972       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973     fi
7974     if test "$DSYMUTIL" != ":"; then
7975       _lt_dsymutil='~$DSYMUTIL $lib || :'
7976     else
7977       _lt_dsymutil=
7978     fi
7979     ;;
7980   esac
7981
7982 for ac_header in dlfcn.h
7983 do :
7984   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7985 "
7986 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7987   cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DLFCN_H 1
7989 _ACEOF
7990
7991 fi
7992
7993 done
7994
7995
7996
7997 ac_ext=cpp
7998 ac_cpp='$CXXCPP $CPPFLAGS'
7999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8002 if test -z "$CXX"; then
8003   if test -n "$CCC"; then
8004     CXX=$CCC
8005   else
8006     if test -n "$ac_tool_prefix"; then
8007   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8008   do
8009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_CXX+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$CXX"; then
8017   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 CXX=$ac_cv_prog_CXX
8037 if test -n "$CXX"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8039 $as_echo "$CXX" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046     test -n "$CXX" && break
8047   done
8048 fi
8049 if test -z "$CXX"; then
8050   ac_ct_CXX=$CXX
8051   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8052 do
8053   # Extract the first word of "$ac_prog", so it can be a program name with args.
8054 set dummy $ac_prog; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8058   $as_echo_n "(cached) " >&6
8059 else
8060   if test -n "$ac_ct_CXX"; then
8061   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066   IFS=$as_save_IFS
8067   test -z "$as_dir" && as_dir=.
8068     for ac_exec_ext in '' $ac_executable_extensions; do
8069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070     ac_cv_prog_ac_ct_CXX="$ac_prog"
8071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072     break 2
8073   fi
8074 done
8075   done
8076 IFS=$as_save_IFS
8077
8078 fi
8079 fi
8080 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8081 if test -n "$ac_ct_CXX"; then
8082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8083 $as_echo "$ac_ct_CXX" >&6; }
8084 else
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8087 fi
8088
8089
8090   test -n "$ac_ct_CXX" && break
8091 done
8092
8093   if test "x$ac_ct_CXX" = x; then
8094     CXX="g++"
8095   else
8096     case $cross_compiling:$ac_tool_warned in
8097 yes:)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8101 esac
8102     CXX=$ac_ct_CXX
8103   fi
8104 fi
8105
8106   fi
8107 fi
8108 # Provide some information about the compiler.
8109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8110 set X $ac_compile
8111 ac_compiler=$2
8112 for ac_option in --version -v -V -qversion; do
8113   { { ac_try="$ac_compiler $ac_option >&5"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8119 $as_echo "$ac_try_echo"; } >&5
8120   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8121   ac_status=$?
8122   if test -s conftest.err; then
8123     sed '10a\
8124 ... rest of stderr output deleted ...
8125          10q' conftest.err >conftest.er1
8126     cat conftest.er1 >&5
8127   fi
8128   rm -f conftest.er1 conftest.err
8129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130   test $ac_status = 0; }
8131 done
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8134 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8135 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140
8141 int
8142 main ()
8143 {
8144 #ifndef __GNUC__
8145        choke me
8146 #endif
8147
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_cxx_try_compile "$LINENO"; then :
8153   ac_compiler_gnu=yes
8154 else
8155   ac_compiler_gnu=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8162 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8163 if test $ac_compiler_gnu = yes; then
8164   GXX=yes
8165 else
8166   GXX=
8167 fi
8168 ac_test_CXXFLAGS=${CXXFLAGS+set}
8169 ac_save_CXXFLAGS=$CXXFLAGS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8171 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8172 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8176    ac_cxx_werror_flag=yes
8177    ac_cv_prog_cxx_g=no
8178    CXXFLAGS="-g"
8179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181
8182 int
8183 main ()
8184 {
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_cxx_try_compile "$LINENO"; then :
8191   ac_cv_prog_cxx_g=yes
8192 else
8193   CXXFLAGS=""
8194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h.  */
8196
8197 int
8198 main ()
8199 {
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_cxx_try_compile "$LINENO"; then :
8206
8207 else
8208   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8209          CXXFLAGS="-g"
8210          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h.  */
8212
8213 int
8214 main ()
8215 {
8216
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 if ac_fn_cxx_try_compile "$LINENO"; then :
8222   ac_cv_prog_cxx_g=yes
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 fi
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8232 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8233 if test "$ac_test_CXXFLAGS" = set; then
8234   CXXFLAGS=$ac_save_CXXFLAGS
8235 elif test $ac_cv_prog_cxx_g = yes; then
8236   if test "$GXX" = yes; then
8237     CXXFLAGS="-g -O2"
8238   else
8239     CXXFLAGS="-g"
8240   fi
8241 else
8242   if test "$GXX" = yes; then
8243     CXXFLAGS="-O2"
8244   else
8245     CXXFLAGS=
8246   fi
8247 fi
8248 ac_ext=cpp
8249 ac_cpp='$CXXCPP $CPPFLAGS'
8250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8253
8254 depcc="$CXX"  am_compiler_list=
8255
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8257 $as_echo_n "checking dependency style of $depcc... " >&6; }
8258 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8262   # We make a subdir and do the tests there.  Otherwise we can end up
8263   # making bogus files that we don't know about and never remove.  For
8264   # instance it was reported that on HP-UX the gcc test will end up
8265   # making a dummy file named `D' -- because `-MD' means `put the output
8266   # in D'.
8267   mkdir conftest.dir
8268   # Copy depcomp to subdir because otherwise we won't find it if we're
8269   # using a relative directory.
8270   cp "$am_depcomp" conftest.dir
8271   cd conftest.dir
8272   # We will build objects and dependencies in a subdirectory because
8273   # it helps to detect inapplicable dependency modes.  For instance
8274   # both Tru64's cc and ICC support -MD to output dependencies as a
8275   # side effect of compilation, but ICC will put the dependencies in
8276   # the current directory while Tru64 will put them in the object
8277   # directory.
8278   mkdir sub
8279
8280   am_cv_CXX_dependencies_compiler_type=none
8281   if test "$am_compiler_list" = ""; then
8282      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8283   fi
8284   am__universal=false
8285   case " $depcc " in #(
8286      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8287      esac
8288
8289   for depmode in $am_compiler_list; do
8290     # Setup a source with many dependencies, because some compilers
8291     # like to wrap large dependency lists on column 80 (with \), and
8292     # we should not choose a depcomp mode which is confused by this.
8293     #
8294     # We need to recreate these files for each test, as the compiler may
8295     # overwrite some of them when testing with obscure command lines.
8296     # This happens at least with the AIX C compiler.
8297     : > sub/conftest.c
8298     for i in 1 2 3 4 5 6; do
8299       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8300       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8301       # Solaris 8's {/usr,}/bin/sh.
8302       touch sub/conftst$i.h
8303     done
8304     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8305
8306     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8307     # mode.  It turns out that the SunPro C++ compiler does not properly
8308     # handle `-M -o', and we need to detect this.  Also, some Intel
8309     # versions had trouble with output in subdirs
8310     am__obj=sub/conftest.${OBJEXT-o}
8311     am__minus_obj="-o $am__obj"
8312     case $depmode in
8313     gcc)
8314       # This depmode causes a compiler race in universal mode.
8315       test "$am__universal" = false || continue
8316       ;;
8317     nosideeffect)
8318       # after this tag, mechanisms are not by side-effect, so they'll
8319       # only be used when explicitly requested
8320       if test "x$enable_dependency_tracking" = xyes; then
8321         continue
8322       else
8323         break
8324       fi
8325       ;;
8326     msvisualcpp | msvcmsys)
8327       # This compiler won't grok `-c -o', but also, the minuso test has
8328       # not run yet.  These depmodes are late enough in the game, and
8329       # so weak that their functioning should not be impacted.
8330       am__obj=conftest.${OBJEXT-o}
8331       am__minus_obj=
8332       ;;
8333     none) break ;;
8334     esac
8335     if depmode=$depmode \
8336        source=sub/conftest.c object=$am__obj \
8337        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8338        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8339          >/dev/null 2>conftest.err &&
8340        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8341        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8342        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8343        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8344       # icc doesn't choke on unknown options, it will just issue warnings
8345       # or remarks (even with -Werror).  So we grep stderr for any message
8346       # that says an option was ignored or not supported.
8347       # When given -MP, icc 7.0 and 7.1 complain thusly:
8348       #   icc: Command line warning: ignoring option '-M'; no argument required
8349       # The diagnosis changed in icc 8.0:
8350       #   icc: Command line remark: option '-MP' not supported
8351       if (grep 'ignoring option' conftest.err ||
8352           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8353         am_cv_CXX_dependencies_compiler_type=$depmode
8354         break
8355       fi
8356     fi
8357   done
8358
8359   cd ..
8360   rm -rf conftest.dir
8361 else
8362   am_cv_CXX_dependencies_compiler_type=none
8363 fi
8364
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8367 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8368 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8369
8370  if
8371   test "x$enable_dependency_tracking" != xno \
8372   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8373   am__fastdepCXX_TRUE=
8374   am__fastdepCXX_FALSE='#'
8375 else
8376   am__fastdepCXX_TRUE='#'
8377   am__fastdepCXX_FALSE=
8378 fi
8379
8380
8381 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8382     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8383     (test "X$CXX" != "Xg++"))) ; then
8384   ac_ext=cpp
8385 ac_cpp='$CXXCPP $CPPFLAGS'
8386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8391 if test -z "$CXXCPP"; then
8392   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395       # Double quotes because CXXCPP needs to be expanded
8396     for CXXCPP in "$CXX -E" "/lib/cpp"
8397     do
8398       ac_preproc_ok=false
8399 for ac_cxx_preproc_warn_flag in '' yes
8400 do
8401   # Use a header file that comes with gcc, so configuring glibc
8402   # with a fresh cross-compiler works.
8403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404   # <limits.h> exists even on freestanding compilers.
8405   # On the NeXT, cc -E runs the code through the compiler's parser,
8406   # not just through cpp. "Syntax error" is here to catch this case.
8407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h.  */
8409 #ifdef __STDC__
8410 # include <limits.h>
8411 #else
8412 # include <assert.h>
8413 #endif
8414                      Syntax error
8415 _ACEOF
8416 if ac_fn_cxx_try_cpp "$LINENO"; then :
8417
8418 else
8419   # Broken: fails on valid input.
8420 continue
8421 fi
8422 rm -f conftest.err conftest.$ac_ext
8423
8424   # OK, works on sane cases.  Now check whether nonexistent headers
8425   # can be detected and how.
8426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h.  */
8428 #include <ac_nonexistent.h>
8429 _ACEOF
8430 if ac_fn_cxx_try_cpp "$LINENO"; then :
8431   # Broken: success on invalid input.
8432 continue
8433 else
8434   # Passes both tests.
8435 ac_preproc_ok=:
8436 break
8437 fi
8438 rm -f conftest.err conftest.$ac_ext
8439
8440 done
8441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8442 rm -f conftest.err conftest.$ac_ext
8443 if $ac_preproc_ok; then :
8444   break
8445 fi
8446
8447     done
8448     ac_cv_prog_CXXCPP=$CXXCPP
8449
8450 fi
8451   CXXCPP=$ac_cv_prog_CXXCPP
8452 else
8453   ac_cv_prog_CXXCPP=$CXXCPP
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8456 $as_echo "$CXXCPP" >&6; }
8457 ac_preproc_ok=false
8458 for ac_cxx_preproc_warn_flag in '' yes
8459 do
8460   # Use a header file that comes with gcc, so configuring glibc
8461   # with a fresh cross-compiler works.
8462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463   # <limits.h> exists even on freestanding compilers.
8464   # On the NeXT, cc -E runs the code through the compiler's parser,
8465   # not just through cpp. "Syntax error" is here to catch this case.
8466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h.  */
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473                      Syntax error
8474 _ACEOF
8475 if ac_fn_cxx_try_cpp "$LINENO"; then :
8476
8477 else
8478   # Broken: fails on valid input.
8479 continue
8480 fi
8481 rm -f conftest.err conftest.$ac_ext
8482
8483   # OK, works on sane cases.  Now check whether nonexistent headers
8484   # can be detected and how.
8485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h.  */
8487 #include <ac_nonexistent.h>
8488 _ACEOF
8489 if ac_fn_cxx_try_cpp "$LINENO"; then :
8490   # Broken: success on invalid input.
8491 continue
8492 else
8493   # Passes both tests.
8494 ac_preproc_ok=:
8495 break
8496 fi
8497 rm -f conftest.err conftest.$ac_ext
8498
8499 done
8500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8501 rm -f conftest.err conftest.$ac_ext
8502 if $ac_preproc_ok; then :
8503
8504 else
8505   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8507 _lt_caught_CXX_error=yes; }
8508 fi
8509
8510 ac_ext=cpp
8511 ac_cpp='$CXXCPP $CPPFLAGS'
8512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8515
8516 else
8517   _lt_caught_CXX_error=yes
8518 fi
8519
8520
8521
8522
8523 # Set options
8524
8525
8526
8527         enable_dlopen=no
8528
8529
8530
8531             # Check whether --enable-shared was given.
8532 if test "${enable_shared+set}" = set; then :
8533   enableval=$enable_shared; p=${PACKAGE-default}
8534     case $enableval in
8535     yes) enable_shared=yes ;;
8536     no) enable_shared=no ;;
8537     *)
8538       enable_shared=no
8539       # Look at the argument we got.  We use all the common list separators.
8540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8541       for pkg in $enableval; do
8542         IFS="$lt_save_ifs"
8543         if test "X$pkg" = "X$p"; then
8544           enable_shared=yes
8545         fi
8546       done
8547       IFS="$lt_save_ifs"
8548       ;;
8549     esac
8550 else
8551   enable_shared=yes
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 # Check whether --with-pic was given.
8565 if test "${with_pic+set}" = set; then :
8566   withval=$with_pic; pic_mode="$withval"
8567 else
8568   pic_mode=default
8569 fi
8570
8571
8572 test -z "$pic_mode" && pic_mode=default
8573
8574
8575
8576
8577
8578
8579
8580   # Check whether --enable-fast-install was given.
8581 if test "${enable_fast_install+set}" = set; then :
8582   enableval=$enable_fast_install; p=${PACKAGE-default}
8583     case $enableval in
8584     yes) enable_fast_install=yes ;;
8585     no) enable_fast_install=no ;;
8586     *)
8587       enable_fast_install=no
8588       # Look at the argument we got.  We use all the common list separators.
8589       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590       for pkg in $enableval; do
8591         IFS="$lt_save_ifs"
8592         if test "X$pkg" = "X$p"; then
8593           enable_fast_install=yes
8594         fi
8595       done
8596       IFS="$lt_save_ifs"
8597       ;;
8598     esac
8599 else
8600   enable_fast_install=yes
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 # This can be used to rebuild libtool when needed
8614 LIBTOOL_DEPS="$ltmain"
8615
8616 # Always use our own libtool.
8617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 test -z "$LN_S" && LN_S="ln -s"
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 if test -n "${ZSH_VERSION+set}" ; then
8659    setopt NO_GLOB_SUBST
8660 fi
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8663 $as_echo_n "checking for objdir... " >&6; }
8664 if test "${lt_cv_objdir+set}" = set; then :
8665   $as_echo_n "(cached) " >&6
8666 else
8667   rm -f .libs 2>/dev/null
8668 mkdir .libs 2>/dev/null
8669 if test -d .libs; then
8670   lt_cv_objdir=.libs
8671 else
8672   # MS-DOS does not allow filenames that begin with a dot.
8673   lt_cv_objdir=_libs
8674 fi
8675 rmdir .libs 2>/dev/null
8676 fi
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8678 $as_echo "$lt_cv_objdir" >&6; }
8679 objdir=$lt_cv_objdir
8680
8681
8682
8683
8684
8685 cat >>confdefs.h <<_ACEOF
8686 #define LT_OBJDIR "$lt_cv_objdir/"
8687 _ACEOF
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 case $host_os in
8706 aix3*)
8707   # AIX sometimes has problems with the GCC collect2 program.  For some
8708   # reason, if we set the COLLECT_NAMES environment variable, the problems
8709   # vanish in a puff of smoke.
8710   if test "X${COLLECT_NAMES+set}" != Xset; then
8711     COLLECT_NAMES=
8712     export COLLECT_NAMES
8713   fi
8714   ;;
8715 esac
8716
8717 # Sed substitution that helps us do robust quoting.  It backslashifies
8718 # metacharacters that are still active within double-quoted strings.
8719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8720
8721 # Same as above, but do not quote variable references.
8722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8723
8724 # Sed substitution to delay expansion of an escaped shell variable in a
8725 # double_quote_subst'ed string.
8726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8727
8728 # Sed substitution to delay expansion of an escaped single quote.
8729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8730
8731 # Sed substitution to avoid accidental globbing in evaled expressions
8732 no_glob_subst='s/\*/\\\*/g'
8733
8734 # Global variables:
8735 ofile=libtool
8736 can_build_shared=yes
8737
8738 # All known linkers require a `.a' archive for static linking (except MSVC,
8739 # which needs '.lib').
8740 libext=a
8741
8742 with_gnu_ld="$lt_cv_prog_gnu_ld"
8743
8744 old_CC="$CC"
8745 old_CFLAGS="$CFLAGS"
8746
8747 # Set sane defaults for various variables
8748 test -z "$CC" && CC=cc
8749 test -z "$LTCC" && LTCC=$CC
8750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8751 test -z "$LD" && LD=ld
8752 test -z "$ac_objext" && ac_objext=o
8753
8754 for cc_temp in $compiler""; do
8755   case $cc_temp in
8756     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8757     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8758     \-*) ;;
8759     *) break;;
8760   esac
8761 done
8762 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8763
8764
8765 # Only perform the check for file, if the check method requires it
8766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8767 case $deplibs_check_method in
8768 file_magic*)
8769   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   case $MAGIC_CMD in
8776 [\\/*] |  ?:[\\/]*)
8777   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8778   ;;
8779 *)
8780   lt_save_MAGIC_CMD="$MAGIC_CMD"
8781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783   for ac_dir in $ac_dummy; do
8784     IFS="$lt_save_ifs"
8785     test -z "$ac_dir" && ac_dir=.
8786     if test -f $ac_dir/${ac_tool_prefix}file; then
8787       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8788       if test -n "$file_magic_test_file"; then
8789         case $deplibs_check_method in
8790         "file_magic "*)
8791           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794             $EGREP "$file_magic_regex" > /dev/null; then
8795             :
8796           else
8797             cat <<_LT_EOF 1>&2
8798
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such.  This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem.  Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8807
8808 _LT_EOF
8809           fi ;;
8810         esac
8811       fi
8812       break
8813     fi
8814   done
8815   IFS="$lt_save_ifs"
8816   MAGIC_CMD="$lt_save_MAGIC_CMD"
8817   ;;
8818 esac
8819 fi
8820
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831
8832
8833
8834 if test -z "$lt_cv_path_MAGIC_CMD"; then
8835   if test -n "$ac_tool_prefix"; then
8836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8837 $as_echo_n "checking for file... " >&6; }
8838 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   case $MAGIC_CMD in
8842 [\\/*] |  ?:[\\/]*)
8843   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8844   ;;
8845 *)
8846   lt_save_MAGIC_CMD="$MAGIC_CMD"
8847   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8848   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8849   for ac_dir in $ac_dummy; do
8850     IFS="$lt_save_ifs"
8851     test -z "$ac_dir" && ac_dir=.
8852     if test -f $ac_dir/file; then
8853       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8854       if test -n "$file_magic_test_file"; then
8855         case $deplibs_check_method in
8856         "file_magic "*)
8857           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8858           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8860             $EGREP "$file_magic_regex" > /dev/null; then
8861             :
8862           else
8863             cat <<_LT_EOF 1>&2
8864
8865 *** Warning: the command libtool uses to detect shared libraries,
8866 *** $file_magic_cmd, produces output that libtool cannot recognize.
8867 *** The result is that libtool may fail to recognize shared libraries
8868 *** as such.  This will affect the creation of libtool libraries that
8869 *** depend on shared libraries, but programs linked with such libtool
8870 *** libraries will work regardless of this problem.  Nevertheless, you
8871 *** may want to report the problem to your system manager and/or to
8872 *** bug-libtool@gnu.org
8873
8874 _LT_EOF
8875           fi ;;
8876         esac
8877       fi
8878       break
8879     fi
8880   done
8881   IFS="$lt_save_ifs"
8882   MAGIC_CMD="$lt_save_MAGIC_CMD"
8883   ;;
8884 esac
8885 fi
8886
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if test -n "$MAGIC_CMD"; then
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8890 $as_echo "$MAGIC_CMD" >&6; }
8891 else
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897   else
8898     MAGIC_CMD=:
8899   fi
8900 fi
8901
8902   fi
8903   ;;
8904 esac
8905
8906 # Use C for the default configuration in the libtool script
8907
8908 lt_save_CC="$CC"
8909 ac_ext=c
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915
8916 # Source file extension for C test sources.
8917 ac_ext=c
8918
8919 # Object file extension for compiled C test sources.
8920 objext=o
8921 objext=$objext
8922
8923 # Code to be used in simple compile tests
8924 lt_simple_compile_test_code="int some_variable = 0;"
8925
8926 # Code to be used in simple link tests
8927 lt_simple_link_test_code='int main(){return(0);}'
8928
8929
8930
8931
8932
8933
8934
8935 # If no C compiler was specified, use CC.
8936 LTCC=${LTCC-"$CC"}
8937
8938 # If no C compiler flags were specified, use CFLAGS.
8939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8940
8941 # Allow CC to be a program name with arguments.
8942 compiler=$CC
8943
8944 # Save the default compiler, since it gets overwritten when the other
8945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8946 compiler_DEFAULT=$CC
8947
8948 # save warnings/boilerplate of simple test code
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8952 _lt_compiler_boilerplate=`cat conftest.err`
8953 $RM conftest*
8954
8955 ac_outfile=conftest.$ac_objext
8956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8958 _lt_linker_boilerplate=`cat conftest.err`
8959 $RM -r conftest*
8960
8961
8962 if test -n "$compiler"; then
8963
8964 lt_prog_compiler_no_builtin_flag=
8965
8966 if test "$GCC" = yes; then
8967   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8968
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   lt_cv_prog_compiler_rtti_exceptions=no
8975    ac_outfile=conftest.$ac_objext
8976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977    lt_compiler_flag="-fno-rtti -fno-exceptions"
8978    # Insert the option either (1) after the last *FLAGS variable, or
8979    # (2) before a word containing "conftest.", or (3) at the end.
8980    # Note that $ac_compile itself does not contain backslashes and begins
8981    # with a dollar sign (not a hyphen), so the echo should work correctly.
8982    # The option is referenced via a variable to avoid confusing sed.
8983    lt_compile=`echo "$ac_compile" | $SED \
8984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986    -e 's:$: $lt_compiler_flag:'`
8987    (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988    (eval "$lt_compile" 2>conftest.err)
8989    ac_status=$?
8990    cat conftest.err >&5
8991    echo "$as_me:8991: \$? = $ac_status" >&5
8992    if (exit $ac_status) && test -s "$ac_outfile"; then
8993      # The compiler can only warn and ignore the option if not recognized
8994      # So say no if there are warnings other than the usual output.
8995      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8996      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8998        lt_cv_prog_compiler_rtti_exceptions=yes
8999      fi
9000    fi
9001    $RM conftest*
9002
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9006
9007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9008     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9009 else
9010     :
9011 fi
9012
9013 fi
9014
9015
9016
9017
9018
9019
9020   lt_prog_compiler_wl=
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_static=
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9026
9027   if test "$GCC" = yes; then
9028     lt_prog_compiler_wl='-Wl,'
9029     lt_prog_compiler_static='-static'
9030
9031     case $host_os in
9032       aix*)
9033       # All AIX code is PIC.
9034       if test "$host_cpu" = ia64; then
9035         # AIX 5 now supports IA64 processor
9036         lt_prog_compiler_static='-Bstatic'
9037       fi
9038       ;;
9039
9040     amigaos*)
9041       case $host_cpu in
9042       powerpc)
9043             # see comment about AmigaOS4 .so support
9044             lt_prog_compiler_pic='-fPIC'
9045         ;;
9046       m68k)
9047             # FIXME: we need at least 68020 code to build shared libraries, but
9048             # adding the `-m68020' flag to GCC prevents building anything better,
9049             # like `-m68040'.
9050             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9051         ;;
9052       esac
9053       ;;
9054
9055     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9056       # PIC is the default for these OSes.
9057       ;;
9058
9059     mingw* | cygwin* | pw32* | os2* | cegcc*)
9060       # This hack is so that the source file can tell whether it is being
9061       # built for inclusion in a dll (and should export symbols for example).
9062       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9063       # (--disable-auto-import) libraries
9064       lt_prog_compiler_pic='-DDLL_EXPORT'
9065       ;;
9066
9067     darwin* | rhapsody*)
9068       # PIC is the default on this platform
9069       # Common symbols not allowed in MH_DYLIB files
9070       lt_prog_compiler_pic='-fno-common'
9071       ;;
9072
9073     hpux*)
9074       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9075       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9076       # sets the default TLS model and affects inlining.
9077       case $host_cpu in
9078       hppa*64*)
9079         # +Z the default
9080         ;;
9081       *)
9082         lt_prog_compiler_pic='-fPIC'
9083         ;;
9084       esac
9085       ;;
9086
9087     interix[3-9]*)
9088       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9089       # Instead, we relocate shared libraries at runtime.
9090       ;;
9091
9092     msdosdjgpp*)
9093       # Just because we use GCC doesn't mean we suddenly get shared libraries
9094       # on systems that don't support them.
9095       lt_prog_compiler_can_build_shared=no
9096       enable_shared=no
9097       ;;
9098
9099     *nto* | *qnx*)
9100       # QNX uses GNU C++, but need to define -shared option too, otherwise
9101       # it will coredump.
9102       lt_prog_compiler_pic='-fPIC -shared'
9103       ;;
9104
9105     sysv4*MP*)
9106       if test -d /usr/nec; then
9107         lt_prog_compiler_pic=-Kconform_pic
9108       fi
9109       ;;
9110
9111     *)
9112       lt_prog_compiler_pic='-fPIC'
9113       ;;
9114     esac
9115   else
9116     # PORTME Check for flag to pass linker flags through the system compiler.
9117     case $host_os in
9118     aix*)
9119       lt_prog_compiler_wl='-Wl,'
9120       if test "$host_cpu" = ia64; then
9121         # AIX 5 now supports IA64 processor
9122         lt_prog_compiler_static='-Bstatic'
9123       else
9124         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9125       fi
9126       ;;
9127
9128     mingw* | cygwin* | pw32* | os2* | cegcc*)
9129       # This hack is so that the source file can tell whether it is being
9130       # built for inclusion in a dll (and should export symbols for example).
9131       lt_prog_compiler_pic='-DDLL_EXPORT'
9132       ;;
9133
9134     hpux9* | hpux10* | hpux11*)
9135       lt_prog_compiler_wl='-Wl,'
9136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9137       # not for PA HP-UX.
9138       case $host_cpu in
9139       hppa*64*|ia64*)
9140         # +Z the default
9141         ;;
9142       *)
9143         lt_prog_compiler_pic='+Z'
9144         ;;
9145       esac
9146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147       lt_prog_compiler_static='${wl}-a ${wl}archive'
9148       ;;
9149
9150     irix5* | irix6* | nonstopux*)
9151       lt_prog_compiler_wl='-Wl,'
9152       # PIC (with -KPIC) is the default.
9153       lt_prog_compiler_static='-non_shared'
9154       ;;
9155
9156     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9157       case $cc_basename in
9158       # old Intel for x86_64 which still supported -KPIC.
9159       ecc*)
9160         lt_prog_compiler_wl='-Wl,'
9161         lt_prog_compiler_pic='-KPIC'
9162         lt_prog_compiler_static='-static'
9163         ;;
9164       # icc used to be incompatible with GCC.
9165       # ICC 10 doesn't accept -KPIC any more.
9166       icc* | ifort*)
9167         lt_prog_compiler_wl='-Wl,'
9168         lt_prog_compiler_pic='-fPIC'
9169         lt_prog_compiler_static='-static'
9170         ;;
9171       # Lahey Fortran 8.1.
9172       lf95*)
9173         lt_prog_compiler_wl='-Wl,'
9174         lt_prog_compiler_pic='--shared'
9175         lt_prog_compiler_static='--static'
9176         ;;
9177       pgcc* | pgf77* | pgf90* | pgf95*)
9178         # Portland Group compilers (*not* the Pentium gcc compiler,
9179         # which looks to be a dead project)
9180         lt_prog_compiler_wl='-Wl,'
9181         lt_prog_compiler_pic='-fpic'
9182         lt_prog_compiler_static='-Bstatic'
9183         ;;
9184       ccc*)
9185         lt_prog_compiler_wl='-Wl,'
9186         # All Alpha code is PIC.
9187         lt_prog_compiler_static='-non_shared'
9188         ;;
9189       xl*)
9190         # IBM XL C 8.0/Fortran 10.1 on PPC
9191         lt_prog_compiler_wl='-Wl,'
9192         lt_prog_compiler_pic='-qpic'
9193         lt_prog_compiler_static='-qstaticlink'
9194         ;;
9195       *)
9196         case `$CC -V 2>&1 | sed 5q` in
9197         *Sun\ C*)
9198           # Sun C 5.9
9199           lt_prog_compiler_pic='-KPIC'
9200           lt_prog_compiler_static='-Bstatic'
9201           lt_prog_compiler_wl='-Wl,'
9202           ;;
9203         *Sun\ F*)
9204           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205           lt_prog_compiler_pic='-KPIC'
9206           lt_prog_compiler_static='-Bstatic'
9207           lt_prog_compiler_wl=''
9208           ;;
9209         esac
9210         ;;
9211       esac
9212       ;;
9213
9214     newsos6)
9215       lt_prog_compiler_pic='-KPIC'
9216       lt_prog_compiler_static='-Bstatic'
9217       ;;
9218
9219     *nto* | *qnx*)
9220       # QNX uses GNU C++, but need to define -shared option too, otherwise
9221       # it will coredump.
9222       lt_prog_compiler_pic='-fPIC -shared'
9223       ;;
9224
9225     osf3* | osf4* | osf5*)
9226       lt_prog_compiler_wl='-Wl,'
9227       # All OSF/1 code is PIC.
9228       lt_prog_compiler_static='-non_shared'
9229       ;;
9230
9231     rdos*)
9232       lt_prog_compiler_static='-non_shared'
9233       ;;
9234
9235     solaris*)
9236       lt_prog_compiler_pic='-KPIC'
9237       lt_prog_compiler_static='-Bstatic'
9238       case $cc_basename in
9239       f77* | f90* | f95*)
9240         lt_prog_compiler_wl='-Qoption ld ';;
9241       *)
9242         lt_prog_compiler_wl='-Wl,';;
9243       esac
9244       ;;
9245
9246     sunos4*)
9247       lt_prog_compiler_wl='-Qoption ld '
9248       lt_prog_compiler_pic='-PIC'
9249       lt_prog_compiler_static='-Bstatic'
9250       ;;
9251
9252     sysv4 | sysv4.2uw2* | sysv4.3*)
9253       lt_prog_compiler_wl='-Wl,'
9254       lt_prog_compiler_pic='-KPIC'
9255       lt_prog_compiler_static='-Bstatic'
9256       ;;
9257
9258     sysv4*MP*)
9259       if test -d /usr/nec ;then
9260         lt_prog_compiler_pic='-Kconform_pic'
9261         lt_prog_compiler_static='-Bstatic'
9262       fi
9263       ;;
9264
9265     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9266       lt_prog_compiler_wl='-Wl,'
9267       lt_prog_compiler_pic='-KPIC'
9268       lt_prog_compiler_static='-Bstatic'
9269       ;;
9270
9271     unicos*)
9272       lt_prog_compiler_wl='-Wl,'
9273       lt_prog_compiler_can_build_shared=no
9274       ;;
9275
9276     uts4*)
9277       lt_prog_compiler_pic='-pic'
9278       lt_prog_compiler_static='-Bstatic'
9279       ;;
9280
9281     *)
9282       lt_prog_compiler_can_build_shared=no
9283       ;;
9284     esac
9285   fi
9286
9287 case $host_os in
9288   # For platforms which do not support PIC, -DPIC is meaningless:
9289   *djgpp*)
9290     lt_prog_compiler_pic=
9291     ;;
9292   *)
9293     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9294     ;;
9295 esac
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9297 $as_echo "$lt_prog_compiler_pic" >&6; }
9298
9299
9300
9301
9302
9303
9304 #
9305 # Check to make sure the PIC flag actually works.
9306 #
9307 if test -n "$lt_prog_compiler_pic"; then
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313   lt_cv_prog_compiler_pic_works=no
9314    ac_outfile=conftest.$ac_objext
9315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9317    # Insert the option either (1) after the last *FLAGS variable, or
9318    # (2) before a word containing "conftest.", or (3) at the end.
9319    # Note that $ac_compile itself does not contain backslashes and begins
9320    # with a dollar sign (not a hyphen), so the echo should work correctly.
9321    # The option is referenced via a variable to avoid confusing sed.
9322    lt_compile=`echo "$ac_compile" | $SED \
9323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325    -e 's:$: $lt_compiler_flag:'`
9326    (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
9327    (eval "$lt_compile" 2>conftest.err)
9328    ac_status=$?
9329    cat conftest.err >&5
9330    echo "$as_me:9330: \$? = $ac_status" >&5
9331    if (exit $ac_status) && test -s "$ac_outfile"; then
9332      # The compiler can only warn and ignore the option if not recognized
9333      # So say no if there are warnings other than the usual output.
9334      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337        lt_cv_prog_compiler_pic_works=yes
9338      fi
9339    fi
9340    $RM conftest*
9341
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9345
9346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9347     case $lt_prog_compiler_pic in
9348      "" | " "*) ;;
9349      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9350      esac
9351 else
9352     lt_prog_compiler_pic=
9353      lt_prog_compiler_can_build_shared=no
9354 fi
9355
9356 fi
9357
9358
9359
9360
9361
9362
9363 #
9364 # Check to make sure the static flag actually works.
9365 #
9366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9370   $as_echo_n "(cached) " >&6
9371 else
9372   lt_cv_prog_compiler_static_works=no
9373    save_LDFLAGS="$LDFLAGS"
9374    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377      # The linker can only warn and ignore the option if not recognized
9378      # So say no if there are warnings
9379      if test -s conftest.err; then
9380        # Append any errors to the config.log.
9381        cat conftest.err 1>&5
9382        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9383        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384        if diff conftest.exp conftest.er2 >/dev/null; then
9385          lt_cv_prog_compiler_static_works=yes
9386        fi
9387      else
9388        lt_cv_prog_compiler_static_works=yes
9389      fi
9390    fi
9391    $RM -r conftest*
9392    LDFLAGS="$save_LDFLAGS"
9393
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9397
9398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9399     :
9400 else
9401     lt_prog_compiler_static=
9402 fi
9403
9404
9405
9406
9407
9408
9409
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9413   $as_echo_n "(cached) " >&6
9414 else
9415   lt_cv_prog_compiler_c_o=no
9416    $RM -r conftest 2>/dev/null
9417    mkdir conftest
9418    cd conftest
9419    mkdir out
9420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421
9422    lt_compiler_flag="-o out/conftest2.$ac_objext"
9423    # Insert the option either (1) after the last *FLAGS variable, or
9424    # (2) before a word containing "conftest.", or (3) at the end.
9425    # Note that $ac_compile itself does not contain backslashes and begins
9426    # with a dollar sign (not a hyphen), so the echo should work correctly.
9427    lt_compile=`echo "$ac_compile" | $SED \
9428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430    -e 's:$: $lt_compiler_flag:'`
9431    (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432    (eval "$lt_compile" 2>out/conftest.err)
9433    ac_status=$?
9434    cat out/conftest.err >&5
9435    echo "$as_me:9435: \$? = $ac_status" >&5
9436    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9437    then
9438      # The compiler can only warn and ignore the option if not recognized
9439      # So say no if there are warnings
9440      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9441      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9442      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9443        lt_cv_prog_compiler_c_o=yes
9444      fi
9445    fi
9446    chmod u+w . 2>&5
9447    $RM conftest*
9448    # SGI C++ compiler will create directory out/ii_files/ for
9449    # template instantiation
9450    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9451    $RM out/* && rmdir out
9452    cd ..
9453    $RM -r conftest
9454    $RM conftest*
9455
9456 fi
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9459
9460
9461
9462
9463
9464
9465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   lt_cv_prog_compiler_c_o=no
9471    $RM -r conftest 2>/dev/null
9472    mkdir conftest
9473    cd conftest
9474    mkdir out
9475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476
9477    lt_compiler_flag="-o out/conftest2.$ac_objext"
9478    # Insert the option either (1) after the last *FLAGS variable, or
9479    # (2) before a word containing "conftest.", or (3) at the end.
9480    # Note that $ac_compile itself does not contain backslashes and begins
9481    # with a dollar sign (not a hyphen), so the echo should work correctly.
9482    lt_compile=`echo "$ac_compile" | $SED \
9483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485    -e 's:$: $lt_compiler_flag:'`
9486    (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
9487    (eval "$lt_compile" 2>out/conftest.err)
9488    ac_status=$?
9489    cat out/conftest.err >&5
9490    echo "$as_me:9490: \$? = $ac_status" >&5
9491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9492    then
9493      # The compiler can only warn and ignore the option if not recognized
9494      # So say no if there are warnings
9495      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498        lt_cv_prog_compiler_c_o=yes
9499      fi
9500    fi
9501    chmod u+w . 2>&5
9502    $RM conftest*
9503    # SGI C++ compiler will create directory out/ii_files/ for
9504    # template instantiation
9505    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506    $RM out/* && rmdir out
9507    cd ..
9508    $RM -r conftest
9509    $RM conftest*
9510
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9514
9515
9516
9517
9518 hard_links="nottested"
9519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9520   # do not overwrite the value of need_locks provided by the user
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9522 $as_echo_n "checking if we can lock with hard links... " >&6; }
9523   hard_links=yes
9524   $RM conftest*
9525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9526   touch conftest.a
9527   ln conftest.a conftest.b 2>&5 || hard_links=no
9528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9530 $as_echo "$hard_links" >&6; }
9531   if test "$hard_links" = no; then
9532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9534     need_locks=warn
9535   fi
9536 else
9537   need_locks=no
9538 fi
9539
9540
9541
9542
9543
9544
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9547
9548   runpath_var=
9549   allow_undefined_flag=
9550   always_export_symbols=no
9551   archive_cmds=
9552   archive_expsym_cmds=
9553   compiler_needs_object=no
9554   enable_shared_with_static_runtimes=no
9555   export_dynamic_flag_spec=
9556   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9557   hardcode_automatic=no
9558   hardcode_direct=no
9559   hardcode_direct_absolute=no
9560   hardcode_libdir_flag_spec=
9561   hardcode_libdir_flag_spec_ld=
9562   hardcode_libdir_separator=
9563   hardcode_minus_L=no
9564   hardcode_shlibpath_var=unsupported
9565   inherit_rpath=no
9566   link_all_deplibs=unknown
9567   module_cmds=
9568   module_expsym_cmds=
9569   old_archive_from_new_cmds=
9570   old_archive_from_expsyms_cmds=
9571   thread_safe_flag_spec=
9572   whole_archive_flag_spec=
9573   # include_expsyms should be a list of space-separated symbols to be *always*
9574   # included in the symbol list
9575   include_expsyms=
9576   # exclude_expsyms can be an extended regexp of symbols to exclude
9577   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9578   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9579   # as well as any symbol that contains `d'.
9580   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9581   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9582   # platforms (ab)use it in PIC code, but their linkers get confused if
9583   # the symbol is explicitly referenced.  Since portable code cannot
9584   # rely on this symbol name, it's probably fine to never include it in
9585   # preloaded symbol tables.
9586   # Exclude shared library initialization/finalization symbols.
9587   extract_expsyms_cmds=
9588
9589   case $host_os in
9590   cygwin* | mingw* | pw32* | cegcc*)
9591     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9592     # When not using gcc, we currently assume that we are using
9593     # Microsoft Visual C++.
9594     if test "$GCC" != yes; then
9595       with_gnu_ld=no
9596     fi
9597     ;;
9598   interix*)
9599     # we just hope/assume this is gcc and not c89 (= MSVC++)
9600     with_gnu_ld=yes
9601     ;;
9602   openbsd*)
9603     with_gnu_ld=no
9604     ;;
9605   linux* | k*bsd*-gnu)
9606     link_all_deplibs=no
9607     ;;
9608   esac
9609
9610   ld_shlibs=yes
9611   if test "$with_gnu_ld" = yes; then
9612     # If archive_cmds runs LD, not CC, wlarc should be empty
9613     wlarc='${wl}'
9614
9615     # Set some defaults for GNU ld with shared library support. These
9616     # are reset later if shared libraries are not supported. Putting them
9617     # here allows them to be overridden if necessary.
9618     runpath_var=LD_RUN_PATH
9619     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620     export_dynamic_flag_spec='${wl}--export-dynamic'
9621     # ancient GNU ld didn't support --whole-archive et. al.
9622     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9623       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9624     else
9625       whole_archive_flag_spec=
9626     fi
9627     supports_anon_versioning=no
9628     case `$LD -v 2>&1` in
9629       *GNU\ gold*) supports_anon_versioning=yes ;;
9630       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9631       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9632       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9633       *\ 2.11.*) ;; # other 2.11 versions
9634       *) supports_anon_versioning=yes ;;
9635     esac
9636
9637     # See if GNU ld supports shared libraries.
9638     case $host_os in
9639     aix[3-9]*)
9640       # On AIX/PPC, the GNU linker is very broken
9641       if test "$host_cpu" != ia64; then
9642         ld_shlibs=no
9643         cat <<_LT_EOF 1>&2
9644
9645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9646 *** to be unable to reliably create shared libraries on AIX.
9647 *** Therefore, libtool is disabling shared libraries support.  If you
9648 *** really care for shared libraries, you may want to modify your PATH
9649 *** so that a non-GNU linker is found, and then restart.
9650
9651 _LT_EOF
9652       fi
9653       ;;
9654
9655     amigaos*)
9656       case $host_cpu in
9657       powerpc)
9658             # see comment about AmigaOS4 .so support
9659             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660             archive_expsym_cmds=''
9661         ;;
9662       m68k)
9663             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)'
9664             hardcode_libdir_flag_spec='-L$libdir'
9665             hardcode_minus_L=yes
9666         ;;
9667       esac
9668       ;;
9669
9670     beos*)
9671       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9672         allow_undefined_flag=unsupported
9673         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9674         # support --undefined.  This deserves some investigation.  FIXME
9675         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676       else
9677         ld_shlibs=no
9678       fi
9679       ;;
9680
9681     cygwin* | mingw* | pw32* | cegcc*)
9682       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9683       # as there is no search path for DLLs.
9684       hardcode_libdir_flag_spec='-L$libdir'
9685       allow_undefined_flag=unsupported
9686       always_export_symbols=no
9687       enable_shared_with_static_runtimes=yes
9688       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9689
9690       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9691         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9692         # If the export-symbols file already is a .def file (1st line
9693         # is EXPORTS), use it as is; otherwise, prepend...
9694         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9695           cp $export_symbols $output_objdir/$soname.def;
9696         else
9697           echo EXPORTS > $output_objdir/$soname.def;
9698           cat $export_symbols >> $output_objdir/$soname.def;
9699         fi~
9700         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9701       else
9702         ld_shlibs=no
9703       fi
9704       ;;
9705
9706     interix[3-9]*)
9707       hardcode_direct=no
9708       hardcode_shlibpath_var=no
9709       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9710       export_dynamic_flag_spec='${wl}-E'
9711       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9712       # Instead, shared libraries are loaded at an image base (0x10000000 by
9713       # default) and relocated if they conflict, which is a slow very memory
9714       # consuming and fragmenting process.  To avoid this, we pick a random,
9715       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9716       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9717       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9718       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'
9719       ;;
9720
9721     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9722       tmp_diet=no
9723       if test "$host_os" = linux-dietlibc; then
9724         case $cc_basename in
9725           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9726         esac
9727       fi
9728       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9729          && test "$tmp_diet" = no
9730       then
9731         tmp_addflag=
9732         tmp_sharedflag='-shared'
9733         case $cc_basename,$host_cpu in
9734         pgcc*)                          # Portland Group C compiler
9735           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'
9736           tmp_addflag=' $pic_flag'
9737           ;;
9738         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9739           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'
9740           tmp_addflag=' $pic_flag -Mnomain' ;;
9741         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9742           tmp_addflag=' -i_dynamic' ;;
9743         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9744           tmp_addflag=' -i_dynamic -nofor_main' ;;
9745         ifc* | ifort*)                  # Intel Fortran compiler
9746           tmp_addflag=' -nofor_main' ;;
9747         lf95*)                          # Lahey Fortran 8.1
9748           whole_archive_flag_spec=
9749           tmp_sharedflag='--shared' ;;
9750         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9751           tmp_sharedflag='-qmkshrobj'
9752           tmp_addflag= ;;
9753         esac
9754         case `$CC -V 2>&1 | sed 5q` in
9755         *Sun\ C*)                       # Sun C 5.9
9756           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'
9757           compiler_needs_object=yes
9758           tmp_sharedflag='-G' ;;
9759         *Sun\ F*)                       # Sun Fortran 8.3
9760           tmp_sharedflag='-G' ;;
9761         esac
9762         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763
9764         if test "x$supports_anon_versioning" = xyes; then
9765           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9766             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9767             echo "local: *; };" >> $output_objdir/$libname.ver~
9768             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9769         fi
9770
9771         case $cc_basename in
9772         xlf*)
9773           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9774           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9775           hardcode_libdir_flag_spec=
9776           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9777           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9778           if test "x$supports_anon_versioning" = xyes; then
9779             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781               echo "local: *; };" >> $output_objdir/$libname.ver~
9782               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9783           fi
9784           ;;
9785         esac
9786       else
9787         ld_shlibs=no
9788       fi
9789       ;;
9790
9791     netbsd* | netbsdelf*-gnu)
9792       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9794         wlarc=
9795       else
9796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9798       fi
9799       ;;
9800
9801     solaris*)
9802       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9803         ld_shlibs=no
9804         cat <<_LT_EOF 1>&2
9805
9806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9807 *** create shared libraries on Solaris systems.  Therefore, libtool
9808 *** is disabling shared libraries support.  We urge you to upgrade GNU
9809 *** binutils to release 2.9.1 or newer.  Another option is to modify
9810 *** your PATH or compiler configuration so that the native linker is
9811 *** used, and then restart.
9812
9813 _LT_EOF
9814       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9815         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9817       else
9818         ld_shlibs=no
9819       fi
9820       ;;
9821
9822     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9823       case `$LD -v 2>&1` in
9824         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9825         ld_shlibs=no
9826         cat <<_LT_EOF 1>&2
9827
9828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9829 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9830 *** is disabling shared libraries support.  We urge you to upgrade GNU
9831 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9832 *** your PATH or compiler configuration so that the native linker is
9833 *** used, and then restart.
9834
9835 _LT_EOF
9836         ;;
9837         *)
9838           # For security reasons, it is highly recommended that you always
9839           # use absolute paths for naming shared libraries, and exclude the
9840           # DT_RUNPATH tag from executables and libraries.  But doing so
9841           # requires that you compile everything twice, which is a pain.
9842           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846           else
9847             ld_shlibs=no
9848           fi
9849         ;;
9850       esac
9851       ;;
9852
9853     sunos4*)
9854       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9855       wlarc=
9856       hardcode_direct=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     *)
9861       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9862         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9864       else
9865         ld_shlibs=no
9866       fi
9867       ;;
9868     esac
9869
9870     if test "$ld_shlibs" = no; then
9871       runpath_var=
9872       hardcode_libdir_flag_spec=
9873       export_dynamic_flag_spec=
9874       whole_archive_flag_spec=
9875     fi
9876   else
9877     # PORTME fill in a description of your system's linker (not GNU ld)
9878     case $host_os in
9879     aix3*)
9880       allow_undefined_flag=unsupported
9881       always_export_symbols=yes
9882       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'
9883       # Note: this linker hardcodes the directories in LIBPATH if there
9884       # are no directories specified by -L.
9885       hardcode_minus_L=yes
9886       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9887         # Neither direct hardcoding nor static linking is supported with a
9888         # broken collect2.
9889         hardcode_direct=unsupported
9890       fi
9891       ;;
9892
9893     aix[4-9]*)
9894       if test "$host_cpu" = ia64; then
9895         # On IA64, the linker does run time linking by default, so we don't
9896         # have to do anything special.
9897         aix_use_runtimelinking=no
9898         exp_sym_flag='-Bexport'
9899         no_entry_flag=""
9900       else
9901         # If we're using GNU nm, then we don't want the "-C" option.
9902         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9903         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9904           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'
9905         else
9906           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'
9907         fi
9908         aix_use_runtimelinking=no
9909
9910         # Test if we are trying to use run time linking or normal
9911         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9912         # need to do runtime linking.
9913         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9914           for ld_flag in $LDFLAGS; do
9915           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9916             aix_use_runtimelinking=yes
9917             break
9918           fi
9919           done
9920           ;;
9921         esac
9922
9923         exp_sym_flag='-bexport'
9924         no_entry_flag='-bnoentry'
9925       fi
9926
9927       # When large executables or shared objects are built, AIX ld can
9928       # have problems creating the table of contents.  If linking a library
9929       # or program results in "error TOC overflow" add -mminimal-toc to
9930       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9931       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9932
9933       archive_cmds=''
9934       hardcode_direct=yes
9935       hardcode_direct_absolute=yes
9936       hardcode_libdir_separator=':'
9937       link_all_deplibs=yes
9938       file_list_spec='${wl}-f,'
9939
9940       if test "$GCC" = yes; then
9941         case $host_os in aix4.[012]|aix4.[012].*)
9942         # We only want to do this on AIX 4.2 and lower, the check
9943         # below for broken collect2 doesn't work under 4.3+
9944           collect2name=`${CC} -print-prog-name=collect2`
9945           if test -f "$collect2name" &&
9946            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9947           then
9948           # We have reworked collect2
9949           :
9950           else
9951           # We have old collect2
9952           hardcode_direct=unsupported
9953           # It fails to find uninstalled libraries when the uninstalled
9954           # path is not listed in the libpath.  Setting hardcode_minus_L
9955           # to unsupported forces relinking
9956           hardcode_minus_L=yes
9957           hardcode_libdir_flag_spec='-L$libdir'
9958           hardcode_libdir_separator=
9959           fi
9960           ;;
9961         esac
9962         shared_flag='-shared'
9963         if test "$aix_use_runtimelinking" = yes; then
9964           shared_flag="$shared_flag "'${wl}-G'
9965         fi
9966         link_all_deplibs=no
9967       else
9968         # not using gcc
9969         if test "$host_cpu" = ia64; then
9970         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9971         # chokes on -Wl,-G. The following line is correct:
9972           shared_flag='-G'
9973         else
9974           if test "$aix_use_runtimelinking" = yes; then
9975             shared_flag='${wl}-G'
9976           else
9977             shared_flag='${wl}-bM:SRE'
9978           fi
9979         fi
9980       fi
9981
9982       export_dynamic_flag_spec='${wl}-bexpall'
9983       # It seems that -bexpall does not export symbols beginning with
9984       # underscore (_), so it is better to generate a list of symbols to export.
9985       always_export_symbols=yes
9986       if test "$aix_use_runtimelinking" = yes; then
9987         # Warning - without using the other runtime loading flags (-brtl),
9988         # -berok will link without error, but may produce a broken library.
9989         allow_undefined_flag='-berok'
9990         # Determine the default libpath from the value encoded in an
9991         # empty executable.
9992         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h.  */
9994
9995 int
9996 main ()
9997 {
9998
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004
10005 lt_aix_libpath_sed='
10006     /Import File Strings/,/^$/ {
10007         /^0/ {
10008             s/^0  *\(.*\)$/\1/
10009             p
10010         }
10011     }'
10012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013 # Check for a 64-bit object if we didn't find anything.
10014 if test -z "$aix_libpath"; then
10015   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10016 fi
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019     conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10021
10022         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10023         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"
10024       else
10025         if test "$host_cpu" = ia64; then
10026           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10027           allow_undefined_flag="-z nodefs"
10028           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"
10029         else
10030          # Determine the default libpath from the value encoded in an
10031          # empty executable.
10032          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h.  */
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"; then :
10044
10045 lt_aix_libpath_sed='
10046     /Import File Strings/,/^$/ {
10047         /^0/ {
10048             s/^0  *\(.*\)$/\1/
10049             p
10050         }
10051     }'
10052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10053 # Check for a 64-bit object if we didn't find anything.
10054 if test -z "$aix_libpath"; then
10055   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10056 fi
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext \
10059     conftest$ac_exeext conftest.$ac_ext
10060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10061
10062          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10063           # Warning - without using the other run time loading flags,
10064           # -berok will link without error, but may produce a broken library.
10065           no_undefined_flag=' ${wl}-bernotok'
10066           allow_undefined_flag=' ${wl}-berok'
10067           # Exported symbols can be pulled into shared objects from archives
10068           whole_archive_flag_spec='$convenience'
10069           archive_cmds_need_lc=yes
10070           # This is similar to how AIX traditionally builds its shared libraries.
10071           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'
10072         fi
10073       fi
10074       ;;
10075
10076     amigaos*)
10077       case $host_cpu in
10078       powerpc)
10079             # see comment about AmigaOS4 .so support
10080             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081             archive_expsym_cmds=''
10082         ;;
10083       m68k)
10084             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)'
10085             hardcode_libdir_flag_spec='-L$libdir'
10086             hardcode_minus_L=yes
10087         ;;
10088       esac
10089       ;;
10090
10091     bsdi[45]*)
10092       export_dynamic_flag_spec=-rdynamic
10093       ;;
10094
10095     cygwin* | mingw* | pw32* | cegcc*)
10096       # When not using gcc, we currently assume that we are using
10097       # Microsoft Visual C++.
10098       # hardcode_libdir_flag_spec is actually meaningless, as there is
10099       # no search path for DLLs.
10100       hardcode_libdir_flag_spec=' '
10101       allow_undefined_flag=unsupported
10102       # Tell ltmain to make .lib files, not .a files.
10103       libext=lib
10104       # Tell ltmain to make .dll files, not .so files.
10105       shrext_cmds=".dll"
10106       # FIXME: Setting linknames here is a bad hack.
10107       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10108       # The linker will automatically build a .lib file if we build a DLL.
10109       old_archive_from_new_cmds='true'
10110       # FIXME: Should let the user specify the lib program.
10111       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10112       fix_srcfile_path='`cygpath -w "$srcfile"`'
10113       enable_shared_with_static_runtimes=yes
10114       ;;
10115
10116     darwin* | rhapsody*)
10117
10118
10119   archive_cmds_need_lc=no
10120   hardcode_direct=no
10121   hardcode_automatic=yes
10122   hardcode_shlibpath_var=unsupported
10123   whole_archive_flag_spec=''
10124   link_all_deplibs=yes
10125   allow_undefined_flag="$_lt_dar_allow_undefined"
10126   case $cc_basename in
10127      ifort*) _lt_dar_can_shared=yes ;;
10128      *) _lt_dar_can_shared=$GCC ;;
10129   esac
10130   if test "$_lt_dar_can_shared" = "yes"; then
10131     output_verbose_link_cmd=echo
10132     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10133     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10134     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}"
10135     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}"
10136
10137   else
10138   ld_shlibs=no
10139   fi
10140
10141       ;;
10142
10143     dgux*)
10144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145       hardcode_libdir_flag_spec='-L$libdir'
10146       hardcode_shlibpath_var=no
10147       ;;
10148
10149     freebsd1*)
10150       ld_shlibs=no
10151       ;;
10152
10153     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10154     # support.  Future versions do this automatically, but an explicit c++rt0.o
10155     # does not break anything, and helps significantly (at the cost of a little
10156     # extra space).
10157     freebsd2.2*)
10158       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10159       hardcode_libdir_flag_spec='-R$libdir'
10160       hardcode_direct=yes
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10165     freebsd2*)
10166       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167       hardcode_direct=yes
10168       hardcode_minus_L=yes
10169       hardcode_shlibpath_var=no
10170       ;;
10171
10172     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10173     freebsd* | dragonfly*)
10174       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10175       hardcode_libdir_flag_spec='-R$libdir'
10176       hardcode_direct=yes
10177       hardcode_shlibpath_var=no
10178       ;;
10179
10180     hpux9*)
10181       if test "$GCC" = yes; then
10182         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'
10183       else
10184         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'
10185       fi
10186       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187       hardcode_libdir_separator=:
10188       hardcode_direct=yes
10189
10190       # hardcode_minus_L: Not really in the search PATH,
10191       # but as the default location of the library.
10192       hardcode_minus_L=yes
10193       export_dynamic_flag_spec='${wl}-E'
10194       ;;
10195
10196     hpux10*)
10197       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10198         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10199       else
10200         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10201       fi
10202       if test "$with_gnu_ld" = no; then
10203         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10204         hardcode_libdir_flag_spec_ld='+b $libdir'
10205         hardcode_libdir_separator=:
10206         hardcode_direct=yes
10207         hardcode_direct_absolute=yes
10208         export_dynamic_flag_spec='${wl}-E'
10209         # hardcode_minus_L: Not really in the search PATH,
10210         # but as the default location of the library.
10211         hardcode_minus_L=yes
10212       fi
10213       ;;
10214
10215     hpux11*)
10216       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10217         case $host_cpu in
10218         hppa*64*)
10219           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220           ;;
10221         ia64*)
10222           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10223           ;;
10224         *)
10225           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226           ;;
10227         esac
10228       else
10229         case $host_cpu in
10230         hppa*64*)
10231           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232           ;;
10233         ia64*)
10234           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235           ;;
10236         *)
10237           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238           ;;
10239         esac
10240       fi
10241       if test "$with_gnu_ld" = no; then
10242         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243         hardcode_libdir_separator=:
10244
10245         case $host_cpu in
10246         hppa*64*|ia64*)
10247           hardcode_direct=no
10248           hardcode_shlibpath_var=no
10249           ;;
10250         *)
10251           hardcode_direct=yes
10252           hardcode_direct_absolute=yes
10253           export_dynamic_flag_spec='${wl}-E'
10254
10255           # hardcode_minus_L: Not really in the search PATH,
10256           # but as the default location of the library.
10257           hardcode_minus_L=yes
10258           ;;
10259         esac
10260       fi
10261       ;;
10262
10263     irix5* | irix6* | nonstopux*)
10264       if test "$GCC" = yes; then
10265         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'
10266         # Try to use the -exported_symbol ld option, if it does not
10267         # work, assume that -exports_file does not work either and
10268         # implicitly export all symbols.
10269         save_LDFLAGS="$LDFLAGS"
10270         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h.  */
10273 int foo(void) {}
10274 _ACEOF
10275 if ac_fn_c_try_link "$LINENO"; then :
10276   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'
10277
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext \
10280     conftest$ac_exeext conftest.$ac_ext
10281         LDFLAGS="$save_LDFLAGS"
10282       else
10283         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'
10284         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'
10285       fi
10286       archive_cmds_need_lc='no'
10287       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10288       hardcode_libdir_separator=:
10289       inherit_rpath=yes
10290       link_all_deplibs=yes
10291       ;;
10292
10293     netbsd* | netbsdelf*-gnu)
10294       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10295         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10296       else
10297         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10298       fi
10299       hardcode_libdir_flag_spec='-R$libdir'
10300       hardcode_direct=yes
10301       hardcode_shlibpath_var=no
10302       ;;
10303
10304     newsos6)
10305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306       hardcode_direct=yes
10307       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10308       hardcode_libdir_separator=:
10309       hardcode_shlibpath_var=no
10310       ;;
10311
10312     *nto* | *qnx*)
10313       ;;
10314
10315     openbsd*)
10316       if test -f /usr/libexec/ld.so; then
10317         hardcode_direct=yes
10318         hardcode_shlibpath_var=no
10319         hardcode_direct_absolute=yes
10320         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10322           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10323           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10324           export_dynamic_flag_spec='${wl}-E'
10325         else
10326           case $host_os in
10327            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10328              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329              hardcode_libdir_flag_spec='-R$libdir'
10330              ;;
10331            *)
10332              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10333              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10334              ;;
10335           esac
10336         fi
10337       else
10338         ld_shlibs=no
10339       fi
10340       ;;
10341
10342     os2*)
10343       hardcode_libdir_flag_spec='-L$libdir'
10344       hardcode_minus_L=yes
10345       allow_undefined_flag=unsupported
10346       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'
10347       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10348       ;;
10349
10350     osf3*)
10351       if test "$GCC" = yes; then
10352         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10353         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'
10354       else
10355         allow_undefined_flag=' -expect_unresolved \*'
10356         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'
10357       fi
10358       archive_cmds_need_lc='no'
10359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10360       hardcode_libdir_separator=:
10361       ;;
10362
10363     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10364       if test "$GCC" = yes; then
10365         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10366         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'
10367         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10368       else
10369         allow_undefined_flag=' -expect_unresolved \*'
10370         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'
10371         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~
10372         $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'
10373
10374         # Both c and cxx compiler support -rpath directly
10375         hardcode_libdir_flag_spec='-rpath $libdir'
10376       fi
10377       archive_cmds_need_lc='no'
10378       hardcode_libdir_separator=:
10379       ;;
10380
10381     solaris*)
10382       no_undefined_flag=' -z defs'
10383       if test "$GCC" = yes; then
10384         wlarc='${wl}'
10385         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10386         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10387           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10388       else
10389         case `$CC -V 2>&1` in
10390         *"Compilers 5.0"*)
10391           wlarc=''
10392           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10394           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10395           ;;
10396         *)
10397           wlarc='${wl}'
10398           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10399           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10400           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10401           ;;
10402         esac
10403       fi
10404       hardcode_libdir_flag_spec='-R$libdir'
10405       hardcode_shlibpath_var=no
10406       case $host_os in
10407       solaris2.[0-5] | solaris2.[0-5].*) ;;
10408       *)
10409         # The compiler driver will combine and reorder linker options,
10410         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10411         # but is careful enough not to reorder.
10412         # Supported since Solaris 2.6 (maybe 2.5.1?)
10413         if test "$GCC" = yes; then
10414           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10415         else
10416           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10417         fi
10418         ;;
10419       esac
10420       link_all_deplibs=yes
10421       ;;
10422
10423     sunos4*)
10424       if test "x$host_vendor" = xsequent; then
10425         # Use $CC to link under sequent, because it throws in some extra .o
10426         # files that make .init and .fini sections work.
10427         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10428       else
10429         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10430       fi
10431       hardcode_libdir_flag_spec='-L$libdir'
10432       hardcode_direct=yes
10433       hardcode_minus_L=yes
10434       hardcode_shlibpath_var=no
10435       ;;
10436
10437     sysv4)
10438       case $host_vendor in
10439         sni)
10440           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441           hardcode_direct=yes # is this really true???
10442         ;;
10443         siemens)
10444           ## LD is ld it makes a PLAMLIB
10445           ## CC just makes a GrossModule.
10446           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10447           reload_cmds='$CC -r -o $output$reload_objs'
10448           hardcode_direct=no
10449         ;;
10450         motorola)
10451           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10453         ;;
10454       esac
10455       runpath_var='LD_RUN_PATH'
10456       hardcode_shlibpath_var=no
10457       ;;
10458
10459     sysv4.3*)
10460       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461       hardcode_shlibpath_var=no
10462       export_dynamic_flag_spec='-Bexport'
10463       ;;
10464
10465     sysv4*MP*)
10466       if test -d /usr/nec; then
10467         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468         hardcode_shlibpath_var=no
10469         runpath_var=LD_RUN_PATH
10470         hardcode_runpath_var=yes
10471         ld_shlibs=yes
10472       fi
10473       ;;
10474
10475     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10476       no_undefined_flag='${wl}-z,text'
10477       archive_cmds_need_lc=no
10478       hardcode_shlibpath_var=no
10479       runpath_var='LD_RUN_PATH'
10480
10481       if test "$GCC" = yes; then
10482         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484       else
10485         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487       fi
10488       ;;
10489
10490     sysv5* | sco3.2v5* | sco5v6*)
10491       # Note: We can NOT use -z defs as we might desire, because we do not
10492       # link with -lc, and that would cause any symbols used from libc to
10493       # always be unresolved, which means just about no library would
10494       # ever link correctly.  If we're not using GNU ld we use -z text
10495       # though, which does catch some bad symbols but isn't as heavy-handed
10496       # as -z defs.
10497       no_undefined_flag='${wl}-z,text'
10498       allow_undefined_flag='${wl}-z,nodefs'
10499       archive_cmds_need_lc=no
10500       hardcode_shlibpath_var=no
10501       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10502       hardcode_libdir_separator=':'
10503       link_all_deplibs=yes
10504       export_dynamic_flag_spec='${wl}-Bexport'
10505       runpath_var='LD_RUN_PATH'
10506
10507       if test "$GCC" = yes; then
10508         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10509         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510       else
10511         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513       fi
10514       ;;
10515
10516     uts4*)
10517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518       hardcode_libdir_flag_spec='-L$libdir'
10519       hardcode_shlibpath_var=no
10520       ;;
10521
10522     *)
10523       ld_shlibs=no
10524       ;;
10525     esac
10526
10527     if test x$host_vendor = xsni; then
10528       case $host in
10529       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10530         export_dynamic_flag_spec='${wl}-Blargedynsym'
10531         ;;
10532       esac
10533     fi
10534   fi
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10537 $as_echo "$ld_shlibs" >&6; }
10538 test "$ld_shlibs" = no && can_build_shared=no
10539
10540 with_gnu_ld=$with_gnu_ld
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556 #
10557 # Do we need to explicitly link libc?
10558 #
10559 case "x$archive_cmds_need_lc" in
10560 x|xyes)
10561   # Assume -lc should be added
10562   archive_cmds_need_lc=yes
10563
10564   if test "$enable_shared" = yes && test "$GCC" = yes; then
10565     case $archive_cmds in
10566     *'~'*)
10567       # FIXME: we may have to deal with multi-command sequences.
10568       ;;
10569     '$CC '*)
10570       # Test whether the compiler implicitly links with -lc since on some
10571       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10572       # to ld, don't add -lc before -lgcc.
10573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10575       $RM conftest*
10576       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10577
10578       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10579   (eval $ac_compile) 2>&5
10580   ac_status=$?
10581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582   test $ac_status = 0; } 2>conftest.err; then
10583         soname=conftest
10584         lib=conftest
10585         libobjs=conftest.$ac_objext
10586         deplibs=
10587         wl=$lt_prog_compiler_wl
10588         pic_flag=$lt_prog_compiler_pic
10589         compiler_flags=-v
10590         linker_flags=-v
10591         verstring=
10592         output_objdir=.
10593         libname=conftest
10594         lt_save_allow_undefined_flag=$allow_undefined_flag
10595         allow_undefined_flag=
10596         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10597   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10598   ac_status=$?
10599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10600   test $ac_status = 0; }
10601         then
10602           archive_cmds_need_lc=no
10603         else
10604           archive_cmds_need_lc=yes
10605         fi
10606         allow_undefined_flag=$lt_save_allow_undefined_flag
10607       else
10608         cat conftest.err 1>&5
10609       fi
10610       $RM conftest*
10611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10612 $as_echo "$archive_cmds_need_lc" >&6; }
10613       ;;
10614     esac
10615   fi
10616   ;;
10617 esac
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10777
10778 if test "$GCC" = yes; then
10779   case $host_os in
10780     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10781     *) lt_awk_arg="/^libraries:/" ;;
10782   esac
10783   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10784   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10785     # if the path contains ";" then we assume it to be the separator
10786     # otherwise default to the standard path separator (i.e. ":") - it is
10787     # assumed that no part of a normal pathname contains ";" but that should
10788     # okay in the real world where ";" in dirpaths is itself problematic.
10789     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10790   else
10791     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10792   fi
10793   # Ok, now we have the path, separated by spaces, we can step through it
10794   # and add multilib dir if necessary.
10795   lt_tmp_lt_search_path_spec=
10796   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10797   for lt_sys_path in $lt_search_path_spec; do
10798     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10799       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10800     else
10801       test -d "$lt_sys_path" && \
10802         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10803     fi
10804   done
10805   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10806 BEGIN {RS=" "; FS="/|\n";} {
10807   lt_foo="";
10808   lt_count=0;
10809   for (lt_i = NF; lt_i > 0; lt_i--) {
10810     if ($lt_i != "" && $lt_i != ".") {
10811       if ($lt_i == "..") {
10812         lt_count++;
10813       } else {
10814         if (lt_count == 0) {
10815           lt_foo="/" $lt_i lt_foo;
10816         } else {
10817           lt_count--;
10818         }
10819       }
10820     }
10821   }
10822   if (lt_foo != "") { lt_freq[lt_foo]++; }
10823   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10824 }'`
10825   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10826 else
10827   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10828 fi
10829 library_names_spec=
10830 libname_spec='lib$name'
10831 soname_spec=
10832 shrext_cmds=".so"
10833 postinstall_cmds=
10834 postuninstall_cmds=
10835 finish_cmds=
10836 finish_eval=
10837 shlibpath_var=
10838 shlibpath_overrides_runpath=unknown
10839 version_type=none
10840 dynamic_linker="$host_os ld.so"
10841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10842 need_lib_prefix=unknown
10843 hardcode_into_libs=no
10844
10845 # when you set need_version to no, make sure it does not cause -set_version
10846 # flags to be left without arguments
10847 need_version=unknown
10848
10849 case $host_os in
10850 aix3*)
10851   version_type=linux
10852   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10853   shlibpath_var=LIBPATH
10854
10855   # AIX 3 has no versioning support, so we append a major version to the name.
10856   soname_spec='${libname}${release}${shared_ext}$major'
10857   ;;
10858
10859 aix[4-9]*)
10860   version_type=linux
10861   need_lib_prefix=no
10862   need_version=no
10863   hardcode_into_libs=yes
10864   if test "$host_cpu" = ia64; then
10865     # AIX 5 supports IA64
10866     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10867     shlibpath_var=LD_LIBRARY_PATH
10868   else
10869     # With GCC up to 2.95.x, collect2 would create an import file
10870     # for dependence libraries.  The import file would start with
10871     # the line `#! .'.  This would cause the generated library to
10872     # depend on `.', always an invalid library.  This was fixed in
10873     # development snapshots of GCC prior to 3.0.
10874     case $host_os in
10875       aix4 | aix4.[01] | aix4.[01].*)
10876       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10877            echo ' yes '
10878            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10879         :
10880       else
10881         can_build_shared=no
10882       fi
10883       ;;
10884     esac
10885     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10886     # soname into executable. Probably we can add versioning support to
10887     # collect2, so additional links can be useful in future.
10888     if test "$aix_use_runtimelinking" = yes; then
10889       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10890       # instead of lib<name>.a to let people know that these are not
10891       # typical AIX shared libraries.
10892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893     else
10894       # We preserve .a as extension for shared libraries through AIX4.2
10895       # and later when we are not doing run time linking.
10896       library_names_spec='${libname}${release}.a $libname.a'
10897       soname_spec='${libname}${release}${shared_ext}$major'
10898     fi
10899     shlibpath_var=LIBPATH
10900   fi
10901   ;;
10902
10903 amigaos*)
10904   case $host_cpu in
10905   powerpc)
10906     # Since July 2007 AmigaOS4 officially supports .so libraries.
10907     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909     ;;
10910   m68k)
10911     library_names_spec='$libname.ixlibrary $libname.a'
10912     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10913     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'
10914     ;;
10915   esac
10916   ;;
10917
10918 beos*)
10919   library_names_spec='${libname}${shared_ext}'
10920   dynamic_linker="$host_os ld.so"
10921   shlibpath_var=LIBRARY_PATH
10922   ;;
10923
10924 bsdi[45]*)
10925   version_type=linux
10926   need_version=no
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928   soname_spec='${libname}${release}${shared_ext}$major'
10929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10930   shlibpath_var=LD_LIBRARY_PATH
10931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10933   # the default ld.so.conf also contains /usr/contrib/lib and
10934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10935   # libtool to hard-code these into programs
10936   ;;
10937
10938 cygwin* | mingw* | pw32* | cegcc*)
10939   version_type=windows
10940   shrext_cmds=".dll"
10941   need_version=no
10942   need_lib_prefix=no
10943
10944   case $GCC,$host_os in
10945   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10946     library_names_spec='$libname.dll.a'
10947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10948     postinstall_cmds='base_file=`basename \${file}`~
10949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10950       dldir=$destdir/`dirname \$dlpath`~
10951       test -d \$dldir || mkdir -p \$dldir~
10952       $install_prog $dir/$dlname \$dldir/$dlname~
10953       chmod a+x \$dldir/$dlname~
10954       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10955         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10956       fi'
10957     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10958       dlpath=$dir/\$dldll~
10959        $RM \$dlpath'
10960     shlibpath_overrides_runpath=yes
10961
10962     case $host_os in
10963     cygwin*)
10964       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10965       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10967       ;;
10968     mingw* | cegcc*)
10969       # MinGW DLLs use traditional 'lib' prefix
10970       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10972       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10973         # It is most probably a Windows format PATH printed by
10974         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10975         # path with ; separators, and with drive letters. We can handle the
10976         # drive letters (cygwin fileutils understands them), so leave them,
10977         # especially as we might pass files found there to a mingw objdump,
10978         # which wouldn't understand a cygwinified path. Ahh.
10979         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10980       else
10981         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10982       fi
10983       ;;
10984     pw32*)
10985       # pw32 DLLs use 'pw' prefix rather than 'lib'
10986       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10987       ;;
10988     esac
10989     ;;
10990
10991   *)
10992     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10993     ;;
10994   esac
10995   dynamic_linker='Win32 ld.exe'
10996   # FIXME: first we should search . and the directory the executable is in
10997   shlibpath_var=PATH
10998   ;;
10999
11000 darwin* | rhapsody*)
11001   dynamic_linker="$host_os dyld"
11002   version_type=darwin
11003   need_lib_prefix=no
11004   need_version=no
11005   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11006   soname_spec='${libname}${release}${major}$shared_ext'
11007   shlibpath_overrides_runpath=yes
11008   shlibpath_var=DYLD_LIBRARY_PATH
11009   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11010
11011   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11013   ;;
11014
11015 dgux*)
11016   version_type=linux
11017   need_lib_prefix=no
11018   need_version=no
11019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11020   soname_spec='${libname}${release}${shared_ext}$major'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   ;;
11023
11024 freebsd1*)
11025   dynamic_linker=no
11026   ;;
11027
11028 freebsd* | dragonfly*)
11029   # DragonFly does not have aout.  When/if they implement a new
11030   # versioning mechanism, adjust this.
11031   if test -x /usr/bin/objformat; then
11032     objformat=`/usr/bin/objformat`
11033   else
11034     case $host_os in
11035     freebsd[123]*) objformat=aout ;;
11036     *) objformat=elf ;;
11037     esac
11038   fi
11039   version_type=freebsd-$objformat
11040   case $version_type in
11041     freebsd-elf*)
11042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11043       need_version=no
11044       need_lib_prefix=no
11045       ;;
11046     freebsd-*)
11047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11048       need_version=yes
11049       ;;
11050   esac
11051   shlibpath_var=LD_LIBRARY_PATH
11052   case $host_os in
11053   freebsd2*)
11054     shlibpath_overrides_runpath=yes
11055     ;;
11056   freebsd3.[01]* | freebsdelf3.[01]*)
11057     shlibpath_overrides_runpath=yes
11058     hardcode_into_libs=yes
11059     ;;
11060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11062     shlibpath_overrides_runpath=no
11063     hardcode_into_libs=yes
11064     ;;
11065   *) # from 4.6 on, and DragonFly
11066     shlibpath_overrides_runpath=yes
11067     hardcode_into_libs=yes
11068     ;;
11069   esac
11070   ;;
11071
11072 gnu*)
11073   version_type=linux
11074   need_lib_prefix=no
11075   need_version=no
11076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   hardcode_into_libs=yes
11080   ;;
11081
11082 hpux9* | hpux10* | hpux11*)
11083   # Give a soname corresponding to the major version so that dld.sl refuses to
11084   # link against other versions.
11085   version_type=sunos
11086   need_lib_prefix=no
11087   need_version=no
11088   case $host_cpu in
11089   ia64*)
11090     shrext_cmds='.so'
11091     hardcode_into_libs=yes
11092     dynamic_linker="$host_os dld.so"
11093     shlibpath_var=LD_LIBRARY_PATH
11094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096     soname_spec='${libname}${release}${shared_ext}$major'
11097     if test "X$HPUX_IA64_MODE" = X32; then
11098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11099     else
11100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11101     fi
11102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11103     ;;
11104   hppa*64*)
11105     shrext_cmds='.sl'
11106     hardcode_into_libs=yes
11107     dynamic_linker="$host_os dld.sl"
11108     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111     soname_spec='${libname}${release}${shared_ext}$major'
11112     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11113     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11114     ;;
11115   *)
11116     shrext_cmds='.sl'
11117     dynamic_linker="$host_os dld.sl"
11118     shlibpath_var=SHLIB_PATH
11119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121     soname_spec='${libname}${release}${shared_ext}$major'
11122     ;;
11123   esac
11124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11125   postinstall_cmds='chmod 555 $lib'
11126   ;;
11127
11128 interix[3-9]*)
11129   version_type=linux
11130   need_lib_prefix=no
11131   need_version=no
11132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133   soname_spec='${libname}${release}${shared_ext}$major'
11134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   shlibpath_overrides_runpath=no
11137   hardcode_into_libs=yes
11138   ;;
11139
11140 irix5* | irix6* | nonstopux*)
11141   case $host_os in
11142     nonstopux*) version_type=nonstopux ;;
11143     *)
11144         if test "$lt_cv_prog_gnu_ld" = yes; then
11145                 version_type=linux
11146         else
11147                 version_type=irix
11148         fi ;;
11149   esac
11150   need_lib_prefix=no
11151   need_version=no
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11154   case $host_os in
11155   irix5* | nonstopux*)
11156     libsuff= shlibsuff=
11157     ;;
11158   *)
11159     case $LD in # libtool.m4 will add one of these switches to LD
11160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11161       libsuff= shlibsuff= libmagic=32-bit;;
11162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11163       libsuff=32 shlibsuff=N32 libmagic=N32;;
11164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11166     *) libsuff= shlibsuff= libmagic=never-match;;
11167     esac
11168     ;;
11169   esac
11170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11171   shlibpath_overrides_runpath=no
11172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11174   hardcode_into_libs=yes
11175   ;;
11176
11177 # No shared lib support for Linux oldld, aout, or coff.
11178 linux*oldld* | linux*aout* | linux*coff*)
11179   dynamic_linker=no
11180   ;;
11181
11182 # This must be Linux ELF.
11183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11184   version_type=linux
11185   need_lib_prefix=no
11186   need_version=no
11187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188   soname_spec='${libname}${release}${shared_ext}$major'
11189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11190   shlibpath_var=LD_LIBRARY_PATH
11191   shlibpath_overrides_runpath=no
11192   # Some binutils ld are patched to set DT_RUNPATH
11193   save_LDFLAGS=$LDFLAGS
11194   save_libdir=$libdir
11195   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11196        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h.  */
11199
11200 int
11201 main ()
11202 {
11203
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_c_try_link "$LINENO"; then :
11209   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11210   shlibpath_overrides_runpath=yes
11211 fi
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext \
11214     conftest$ac_exeext conftest.$ac_ext
11215   LDFLAGS=$save_LDFLAGS
11216   libdir=$save_libdir
11217
11218   # This implies no fast_install, which is unacceptable.
11219   # Some rework will be needed to allow for fast_install
11220   # before this can be enabled.
11221   hardcode_into_libs=yes
11222
11223   # Append ld.so.conf contents to the search path
11224   if test -f /etc/ld.so.conf; then
11225     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' ' '`
11226     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11227   fi
11228
11229   # We used to test for /lib/ld.so.1 and disable shared libraries on
11230   # powerpc, because MkLinux only supported shared libraries with the
11231   # GNU dynamic linker.  Since this was broken with cross compilers,
11232   # most powerpc-linux boxes support dynamic linking these days and
11233   # people can always --disable-shared, the test was removed, and we
11234   # assume the GNU/Linux dynamic linker is in use.
11235   dynamic_linker='GNU/Linux ld.so'
11236   ;;
11237
11238 netbsdelf*-gnu)
11239   version_type=linux
11240   need_lib_prefix=no
11241   need_version=no
11242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11243   soname_spec='${libname}${release}${shared_ext}$major'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   shlibpath_overrides_runpath=no
11246   hardcode_into_libs=yes
11247   dynamic_linker='NetBSD ld.elf_so'
11248   ;;
11249
11250 netbsd*)
11251   version_type=sunos
11252   need_lib_prefix=no
11253   need_version=no
11254   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11257     dynamic_linker='NetBSD (a.out) ld.so'
11258   else
11259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11260     soname_spec='${libname}${release}${shared_ext}$major'
11261     dynamic_linker='NetBSD ld.elf_so'
11262   fi
11263   shlibpath_var=LD_LIBRARY_PATH
11264   shlibpath_overrides_runpath=yes
11265   hardcode_into_libs=yes
11266   ;;
11267
11268 newsos6)
11269   version_type=linux
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271   shlibpath_var=LD_LIBRARY_PATH
11272   shlibpath_overrides_runpath=yes
11273   ;;
11274
11275 *nto* | *qnx*)
11276   version_type=qnx
11277   need_lib_prefix=no
11278   need_version=no
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   soname_spec='${libname}${release}${shared_ext}$major'
11281   shlibpath_var=LD_LIBRARY_PATH
11282   shlibpath_overrides_runpath=no
11283   hardcode_into_libs=yes
11284   dynamic_linker='ldqnx.so'
11285   ;;
11286
11287 openbsd*)
11288   version_type=sunos
11289   sys_lib_dlsearch_path_spec="/usr/lib"
11290   need_lib_prefix=no
11291   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11292   case $host_os in
11293     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11294     *)                          need_version=no  ;;
11295   esac
11296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11300     case $host_os in
11301       openbsd2.[89] | openbsd2.[89].*)
11302         shlibpath_overrides_runpath=no
11303         ;;
11304       *)
11305         shlibpath_overrides_runpath=yes
11306         ;;
11307       esac
11308   else
11309     shlibpath_overrides_runpath=yes
11310   fi
11311   ;;
11312
11313 os2*)
11314   libname_spec='$name'
11315   shrext_cmds=".dll"
11316   need_lib_prefix=no
11317   library_names_spec='$libname${shared_ext} $libname.a'
11318   dynamic_linker='OS/2 ld.exe'
11319   shlibpath_var=LIBPATH
11320   ;;
11321
11322 osf3* | osf4* | osf5*)
11323   version_type=osf
11324   need_lib_prefix=no
11325   need_version=no
11326   soname_spec='${libname}${release}${shared_ext}$major'
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328   shlibpath_var=LD_LIBRARY_PATH
11329   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11330   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11331   ;;
11332
11333 rdos*)
11334   dynamic_linker=no
11335   ;;
11336
11337 solaris*)
11338   version_type=linux
11339   need_lib_prefix=no
11340   need_version=no
11341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342   soname_spec='${libname}${release}${shared_ext}$major'
11343   shlibpath_var=LD_LIBRARY_PATH
11344   shlibpath_overrides_runpath=yes
11345   hardcode_into_libs=yes
11346   # ldd complains unless libraries are executable
11347   postinstall_cmds='chmod +x $lib'
11348   ;;
11349
11350 sunos4*)
11351   version_type=sunos
11352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11354   shlibpath_var=LD_LIBRARY_PATH
11355   shlibpath_overrides_runpath=yes
11356   if test "$with_gnu_ld" = yes; then
11357     need_lib_prefix=no
11358   fi
11359   need_version=yes
11360   ;;
11361
11362 sysv4 | sysv4.3*)
11363   version_type=linux
11364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   shlibpath_var=LD_LIBRARY_PATH
11367   case $host_vendor in
11368     sni)
11369       shlibpath_overrides_runpath=no
11370       need_lib_prefix=no
11371       runpath_var=LD_RUN_PATH
11372       ;;
11373     siemens)
11374       need_lib_prefix=no
11375       ;;
11376     motorola)
11377       need_lib_prefix=no
11378       need_version=no
11379       shlibpath_overrides_runpath=no
11380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11381       ;;
11382   esac
11383   ;;
11384
11385 sysv4*MP*)
11386   if test -d /usr/nec ;then
11387     version_type=linux
11388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11389     soname_spec='$libname${shared_ext}.$major'
11390     shlibpath_var=LD_LIBRARY_PATH
11391   fi
11392   ;;
11393
11394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11395   version_type=freebsd-elf
11396   need_lib_prefix=no
11397   need_version=no
11398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11399   soname_spec='${libname}${release}${shared_ext}$major'
11400   shlibpath_var=LD_LIBRARY_PATH
11401   shlibpath_overrides_runpath=yes
11402   hardcode_into_libs=yes
11403   if test "$with_gnu_ld" = yes; then
11404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11405   else
11406     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11407     case $host_os in
11408       sco3.2v5*)
11409         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11410         ;;
11411     esac
11412   fi
11413   sys_lib_dlsearch_path_spec='/usr/lib'
11414   ;;
11415
11416 tpf*)
11417   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11418   version_type=linux
11419   need_lib_prefix=no
11420   need_version=no
11421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   shlibpath_overrides_runpath=no
11424   hardcode_into_libs=yes
11425   ;;
11426
11427 uts4*)
11428   version_type=linux
11429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430   soname_spec='${libname}${release}${shared_ext}$major'
11431   shlibpath_var=LD_LIBRARY_PATH
11432   ;;
11433
11434 *)
11435   dynamic_linker=no
11436   ;;
11437 esac
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11439 $as_echo "$dynamic_linker" >&6; }
11440 test "$dynamic_linker" = no && can_build_shared=no
11441
11442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11443 if test "$GCC" = yes; then
11444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11445 fi
11446
11447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11448   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11449 fi
11450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11451   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11452 fi
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11542 hardcode_action=
11543 if test -n "$hardcode_libdir_flag_spec" ||
11544    test -n "$runpath_var" ||
11545    test "X$hardcode_automatic" = "Xyes" ; then
11546
11547   # We can hardcode non-existent directories.
11548   if test "$hardcode_direct" != no &&
11549      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550      # have to relink, otherwise we might link with an installed library
11551      # when we should be linking with a yet-to-be-installed one
11552      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553      test "$hardcode_minus_L" != no; then
11554     # Linking always hardcodes the temporary library directory.
11555     hardcode_action=relink
11556   else
11557     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558     hardcode_action=immediate
11559   fi
11560 else
11561   # We cannot hardcode anything, or else we can only hardcode existing
11562   # directories.
11563   hardcode_action=unsupported
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11566 $as_echo "$hardcode_action" >&6; }
11567
11568 if test "$hardcode_action" = relink ||
11569    test "$inherit_rpath" = yes; then
11570   # Fast installation is not supported
11571   enable_fast_install=no
11572 elif test "$shlibpath_overrides_runpath" = yes ||
11573      test "$enable_shared" = no; then
11574   # Fast installation is not necessary
11575   enable_fast_install=needless
11576 fi
11577
11578
11579
11580
11581
11582
11583   if test "x$enable_dlopen" != xyes; then
11584   enable_dlopen=unknown
11585   enable_dlopen_self=unknown
11586   enable_dlopen_self_static=unknown
11587 else
11588   lt_cv_dlopen=no
11589   lt_cv_dlopen_libs=
11590
11591   case $host_os in
11592   beos*)
11593     lt_cv_dlopen="load_add_on"
11594     lt_cv_dlopen_libs=
11595     lt_cv_dlopen_self=yes
11596     ;;
11597
11598   mingw* | pw32* | cegcc*)
11599     lt_cv_dlopen="LoadLibrary"
11600     lt_cv_dlopen_libs=
11601     ;;
11602
11603   cygwin*)
11604     lt_cv_dlopen="dlopen"
11605     lt_cv_dlopen_libs=
11606     ;;
11607
11608   darwin*)
11609   # if libdl is installed we need to link against it
11610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldl  $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h.  */
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char dlopen ();
11627 int
11628 main ()
11629 {
11630 return dlopen ();
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636   ac_cv_lib_dl_dlopen=yes
11637 else
11638   ac_cv_lib_dl_dlopen=no
11639 fi
11640 rm -f core conftest.err conftest.$ac_objext \
11641     conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11647   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 else
11649
11650     lt_cv_dlopen="dyld"
11651     lt_cv_dlopen_libs=
11652     lt_cv_dlopen_self=yes
11653
11654 fi
11655
11656     ;;
11657
11658   *)
11659     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11660 if test "x$ac_cv_func_shl_load" = x""yes; then :
11661   lt_cv_dlopen="shl_load"
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11664 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11665 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   ac_check_lib_save_LIBS=$LIBS
11669 LIBS="-ldld  $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h.  */
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char shl_load ();
11680 int
11681 main ()
11682 {
11683 return shl_load ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689   ac_cv_lib_dld_shl_load=yes
11690 else
11691   ac_cv_lib_dld_shl_load=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694     conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11699 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11700   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11701 else
11702   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11703 if test "x$ac_cv_func_dlopen" = x""yes; then :
11704   lt_cv_dlopen="dlopen"
11705 else
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711   ac_check_lib_save_LIBS=$LIBS
11712 LIBS="-ldl  $LIBS"
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h.  */
11715
11716 /* Override any GCC internal prototype to avoid an error.
11717    Use char because int might match the return type of a GCC
11718    builtin and then its argument prototype would still apply.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 char dlopen ();
11723 int
11724 main ()
11725 {
11726 return dlopen ();
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732   ac_cv_lib_dl_dlopen=yes
11733 else
11734   ac_cv_lib_dl_dlopen=no
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737     conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11744 else
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11746 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11747 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11748   $as_echo_n "(cached) " >&6
11749 else
11750   ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-lsvld  $LIBS"
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h.  */
11754
11755 /* Override any GCC internal prototype to avoid an error.
11756    Use char because int might match the return type of a GCC
11757    builtin and then its argument prototype would still apply.  */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 char dlopen ();
11762 int
11763 main ()
11764 {
11765 return dlopen ();
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_link "$LINENO"; then :
11771   ac_cv_lib_svld_dlopen=yes
11772 else
11773   ac_cv_lib_svld_dlopen=no
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776     conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11781 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11782   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11786 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ldld  $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h.  */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char dld_link ();
11801 int
11802 main ()
11803 {
11804 return dld_link ();
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810   ac_cv_lib_dld_dld_link=yes
11811 else
11812   ac_cv_lib_dld_dld_link=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815     conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11820 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11821   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11822 fi
11823
11824
11825 fi
11826
11827
11828 fi
11829
11830
11831 fi
11832
11833
11834 fi
11835
11836
11837 fi
11838
11839     ;;
11840   esac
11841
11842   if test "x$lt_cv_dlopen" != xno; then
11843     enable_dlopen=yes
11844   else
11845     enable_dlopen=no
11846   fi
11847
11848   case $lt_cv_dlopen in
11849   dlopen)
11850     save_CPPFLAGS="$CPPFLAGS"
11851     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11852
11853     save_LDFLAGS="$LDFLAGS"
11854     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11855
11856     save_LIBS="$LIBS"
11857     LIBS="$lt_cv_dlopen_libs $LIBS"
11858
11859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11861 if test "${lt_cv_dlopen_self+set}" = set; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864           if test "$cross_compiling" = yes; then :
11865   lt_cv_dlopen_self=cross
11866 else
11867   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868   lt_status=$lt_dlunknown
11869   cat > conftest.$ac_ext <<_LT_EOF
11870 #line 11870 "configure"
11871 #include "confdefs.h"
11872
11873 #if HAVE_DLFCN_H
11874 #include <dlfcn.h>
11875 #endif
11876
11877 #include <stdio.h>
11878
11879 #ifdef RTLD_GLOBAL
11880 #  define LT_DLGLOBAL           RTLD_GLOBAL
11881 #else
11882 #  ifdef DL_GLOBAL
11883 #    define LT_DLGLOBAL         DL_GLOBAL
11884 #  else
11885 #    define LT_DLGLOBAL         0
11886 #  endif
11887 #endif
11888
11889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890    find out it does not work in some platform. */
11891 #ifndef LT_DLLAZY_OR_NOW
11892 #  ifdef RTLD_LAZY
11893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11894 #  else
11895 #    ifdef DL_LAZY
11896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11897 #    else
11898 #      ifdef RTLD_NOW
11899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11900 #      else
11901 #        ifdef DL_NOW
11902 #          define LT_DLLAZY_OR_NOW      DL_NOW
11903 #        else
11904 #          define LT_DLLAZY_OR_NOW      0
11905 #        endif
11906 #      endif
11907 #    endif
11908 #  endif
11909 #endif
11910
11911 void fnord() { int i=42;}
11912 int main ()
11913 {
11914   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11915   int status = $lt_dlunknown;
11916
11917   if (self)
11918     {
11919       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11920       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11921       /* dlclose (self); */
11922     }
11923   else
11924     puts (dlerror ());
11925
11926   return status;
11927 }
11928 _LT_EOF
11929   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11930   (eval $ac_link) 2>&5
11931   ac_status=$?
11932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11934     (./conftest; exit; ) >&5 2>/dev/null
11935     lt_status=$?
11936     case x$lt_status in
11937       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11938       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11939       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11940     esac
11941   else :
11942     # compilation failed
11943     lt_cv_dlopen_self=no
11944   fi
11945 fi
11946 rm -fr conftest*
11947
11948
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11951 $as_echo "$lt_cv_dlopen_self" >&6; }
11952
11953     if test "x$lt_cv_dlopen_self" = xyes; then
11954       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11956 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11957 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960           if test "$cross_compiling" = yes; then :
11961   lt_cv_dlopen_self_static=cross
11962 else
11963   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964   lt_status=$lt_dlunknown
11965   cat > conftest.$ac_ext <<_LT_EOF
11966 #line 11966 "configure"
11967 #include "confdefs.h"
11968
11969 #if HAVE_DLFCN_H
11970 #include <dlfcn.h>
11971 #endif
11972
11973 #include <stdio.h>
11974
11975 #ifdef RTLD_GLOBAL
11976 #  define LT_DLGLOBAL           RTLD_GLOBAL
11977 #else
11978 #  ifdef DL_GLOBAL
11979 #    define LT_DLGLOBAL         DL_GLOBAL
11980 #  else
11981 #    define LT_DLGLOBAL         0
11982 #  endif
11983 #endif
11984
11985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986    find out it does not work in some platform. */
11987 #ifndef LT_DLLAZY_OR_NOW
11988 #  ifdef RTLD_LAZY
11989 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11990 #  else
11991 #    ifdef DL_LAZY
11992 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11993 #    else
11994 #      ifdef RTLD_NOW
11995 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11996 #      else
11997 #        ifdef DL_NOW
11998 #          define LT_DLLAZY_OR_NOW      DL_NOW
11999 #        else
12000 #          define LT_DLLAZY_OR_NOW      0
12001 #        endif
12002 #      endif
12003 #    endif
12004 #  endif
12005 #endif
12006
12007 void fnord() { int i=42;}
12008 int main ()
12009 {
12010   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011   int status = $lt_dlunknown;
12012
12013   if (self)
12014     {
12015       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12016       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12017       /* dlclose (self); */
12018     }
12019   else
12020     puts (dlerror ());
12021
12022   return status;
12023 }
12024 _LT_EOF
12025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12026   (eval $ac_link) 2>&5
12027   ac_status=$?
12028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12029   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12030     (./conftest; exit; ) >&5 2>/dev/null
12031     lt_status=$?
12032     case x$lt_status in
12033       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12034       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12035       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12036     esac
12037   else :
12038     # compilation failed
12039     lt_cv_dlopen_self_static=no
12040   fi
12041 fi
12042 rm -fr conftest*
12043
12044
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12048     fi
12049
12050     CPPFLAGS="$save_CPPFLAGS"
12051     LDFLAGS="$save_LDFLAGS"
12052     LIBS="$save_LIBS"
12053     ;;
12054   esac
12055
12056   case $lt_cv_dlopen_self in
12057   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12058   *) enable_dlopen_self=unknown ;;
12059   esac
12060
12061   case $lt_cv_dlopen_self_static in
12062   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12063   *) enable_dlopen_self_static=unknown ;;
12064   esac
12065 fi
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 striplib=
12084 old_striplib=
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12088   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12089   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12092 else
12093 # FIXME - insert some real tests, host_os isn't really good enough
12094   case $host_os in
12095   darwin*)
12096     if test -n "$STRIP" ; then
12097       striplib="$STRIP -x"
12098       old_striplib="$STRIP -S"
12099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; }
12101     else
12102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104     fi
12105     ;;
12106   *)
12107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12109     ;;
12110   esac
12111 fi
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124   # Report which library types will actually be built
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12128 $as_echo "$can_build_shared" >&6; }
12129
12130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12131 $as_echo_n "checking whether to build shared libraries... " >&6; }
12132   test "$can_build_shared" = "no" && enable_shared=no
12133
12134   # On AIX, shared libraries and static libraries use the same namespace, and
12135   # are all built from PIC.
12136   case $host_os in
12137   aix3*)
12138     test "$enable_shared" = yes && enable_static=no
12139     if test -n "$RANLIB"; then
12140       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12141       postinstall_cmds='$RANLIB $lib'
12142     fi
12143     ;;
12144
12145   aix[4-9]*)
12146     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12147       test "$enable_shared" = yes && enable_static=no
12148     fi
12149     ;;
12150   esac
12151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12152 $as_echo "$enable_shared" >&6; }
12153
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12155 $as_echo_n "checking whether to build static libraries... " >&6; }
12156   # Make sure either enable_shared or enable_static is yes.
12157   test "$enable_shared" = yes || enable_static=yes
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12159 $as_echo "$enable_static" >&6; }
12160
12161
12162
12163
12164 fi
12165 ac_ext=cpp
12166 ac_cpp='$CXXCPP $CPPFLAGS'
12167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12170
12171 CC="$lt_save_CC"
12172
12173
12174 ac_ext=cpp
12175 ac_cpp='$CXXCPP $CPPFLAGS'
12176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12179
12180 archive_cmds_need_lc_CXX=no
12181 allow_undefined_flag_CXX=
12182 always_export_symbols_CXX=no
12183 archive_expsym_cmds_CXX=
12184 compiler_needs_object_CXX=no
12185 export_dynamic_flag_spec_CXX=
12186 hardcode_direct_CXX=no
12187 hardcode_direct_absolute_CXX=no
12188 hardcode_libdir_flag_spec_CXX=
12189 hardcode_libdir_flag_spec_ld_CXX=
12190 hardcode_libdir_separator_CXX=
12191 hardcode_minus_L_CXX=no
12192 hardcode_shlibpath_var_CXX=unsupported
12193 hardcode_automatic_CXX=no
12194 inherit_rpath_CXX=no
12195 module_cmds_CXX=
12196 module_expsym_cmds_CXX=
12197 link_all_deplibs_CXX=unknown
12198 old_archive_cmds_CXX=$old_archive_cmds
12199 no_undefined_flag_CXX=
12200 whole_archive_flag_spec_CXX=
12201 enable_shared_with_static_runtimes_CXX=no
12202
12203 # Source file extension for C++ test sources.
12204 ac_ext=cpp
12205
12206 # Object file extension for compiled C++ test sources.
12207 objext=o
12208 objext_CXX=$objext
12209
12210 # No sense in running all these tests if we already determined that
12211 # the CXX compiler isn't working.  Some variables (like enable_shared)
12212 # are currently assumed to apply to all compilers on this platform,
12213 # and will be corrupted by setting them based on a non-working compiler.
12214 if test "$_lt_caught_CXX_error" != yes; then
12215   # Code to be used in simple compile tests
12216   lt_simple_compile_test_code="int some_variable = 0;"
12217
12218   # Code to be used in simple link tests
12219   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12220
12221   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12222
12223
12224
12225
12226
12227
12228 # If no C compiler was specified, use CC.
12229 LTCC=${LTCC-"$CC"}
12230
12231 # If no C compiler flags were specified, use CFLAGS.
12232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12233
12234 # Allow CC to be a program name with arguments.
12235 compiler=$CC
12236
12237
12238   # save warnings/boilerplate of simple test code
12239   ac_outfile=conftest.$ac_objext
12240 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12242 _lt_compiler_boilerplate=`cat conftest.err`
12243 $RM conftest*
12244
12245   ac_outfile=conftest.$ac_objext
12246 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12248 _lt_linker_boilerplate=`cat conftest.err`
12249 $RM -r conftest*
12250
12251
12252   # Allow CC to be a program name with arguments.
12253   lt_save_CC=$CC
12254   lt_save_LD=$LD
12255   lt_save_GCC=$GCC
12256   GCC=$GXX
12257   lt_save_with_gnu_ld=$with_gnu_ld
12258   lt_save_path_LD=$lt_cv_path_LD
12259   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12260     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12261   else
12262     $as_unset lt_cv_prog_gnu_ld
12263   fi
12264   if test -n "${lt_cv_path_LDCXX+set}"; then
12265     lt_cv_path_LD=$lt_cv_path_LDCXX
12266   else
12267     $as_unset lt_cv_path_LD
12268   fi
12269   test -z "${LDCXX+set}" || LD=$LDCXX
12270   CC=${CXX-"c++"}
12271   compiler=$CC
12272   compiler_CXX=$CC
12273   for cc_temp in $compiler""; do
12274   case $cc_temp in
12275     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12276     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12277     \-*) ;;
12278     *) break;;
12279   esac
12280 done
12281 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12282
12283
12284   if test -n "$compiler"; then
12285     # We don't want -fno-exception when compiling C++ code, so set the
12286     # no_builtin_flag separately
12287     if test "$GXX" = yes; then
12288       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12289     else
12290       lt_prog_compiler_no_builtin_flag_CXX=
12291     fi
12292
12293     if test "$GXX" = yes; then
12294       # Set up default GNU C++ configuration
12295
12296
12297
12298 # Check whether --with-gnu-ld was given.
12299 if test "${with_gnu_ld+set}" = set; then :
12300   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12301 else
12302   with_gnu_ld=no
12303 fi
12304
12305 ac_prog=ld
12306 if test "$GCC" = yes; then
12307   # Check if gcc -print-prog-name=ld gives a path.
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12309 $as_echo_n "checking for ld used by $CC... " >&6; }
12310   case $host in
12311   *-*-mingw*)
12312     # gcc leaves a trailing carriage return which upsets mingw
12313     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12314   *)
12315     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12316   esac
12317   case $ac_prog in
12318     # Accept absolute paths.
12319     [\\/]* | ?:[\\/]*)
12320       re_direlt='/[^/][^/]*/\.\./'
12321       # Canonicalize the pathname of ld
12322       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12323       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12324         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12325       done
12326       test -z "$LD" && LD="$ac_prog"
12327       ;;
12328   "")
12329     # If it fails, then pretend we aren't using GCC.
12330     ac_prog=ld
12331     ;;
12332   *)
12333     # If it is relative, then search for the first ld in PATH.
12334     with_gnu_ld=unknown
12335     ;;
12336   esac
12337 elif test "$with_gnu_ld" = yes; then
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12339 $as_echo_n "checking for GNU ld... " >&6; }
12340 else
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12342 $as_echo_n "checking for non-GNU ld... " >&6; }
12343 fi
12344 if test "${lt_cv_path_LD+set}" = set; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347   if test -z "$LD"; then
12348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12349   for ac_dir in $PATH; do
12350     IFS="$lt_save_ifs"
12351     test -z "$ac_dir" && ac_dir=.
12352     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12353       lt_cv_path_LD="$ac_dir/$ac_prog"
12354       # Check to see if the program is GNU ld.  I'd rather use --version,
12355       # but apparently some variants of GNU ld only accept -v.
12356       # Break only if it was the GNU/non-GNU ld that we prefer.
12357       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12358       *GNU* | *'with BFD'*)
12359         test "$with_gnu_ld" != no && break
12360         ;;
12361       *)
12362         test "$with_gnu_ld" != yes && break
12363         ;;
12364       esac
12365     fi
12366   done
12367   IFS="$lt_save_ifs"
12368 else
12369   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12370 fi
12371 fi
12372
12373 LD="$lt_cv_path_LD"
12374 if test -n "$LD"; then
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12376 $as_echo "$LD" >&6; }
12377 else
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12383 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12384 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12388 case `$LD -v 2>&1 </dev/null` in
12389 *GNU* | *'with BFD'*)
12390   lt_cv_prog_gnu_ld=yes
12391   ;;
12392 *)
12393   lt_cv_prog_gnu_ld=no
12394   ;;
12395 esac
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12398 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12399 with_gnu_ld=$lt_cv_prog_gnu_ld
12400
12401
12402
12403
12404
12405
12406
12407       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12408       # archiving commands below assume that GNU ld is being used.
12409       if test "$with_gnu_ld" = yes; then
12410         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12411         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12412
12413         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12414         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12415
12416         # If archive_cmds runs LD, not CC, wlarc should be empty
12417         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12418         #     investigate it a little bit more. (MM)
12419         wlarc='${wl}'
12420
12421         # ancient GNU ld didn't support --whole-archive et. al.
12422         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12423           $GREP 'no-whole-archive' > /dev/null; then
12424           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12425         else
12426           whole_archive_flag_spec_CXX=
12427         fi
12428       else
12429         with_gnu_ld=no
12430         wlarc=
12431
12432         # A generic and very simple default shared library creation
12433         # command for GNU C++ for the case where it uses the native
12434         # linker, instead of GNU ld.  If possible, this setting should
12435         # overridden to take advantage of the native linker features on
12436         # the platform it is being used on.
12437         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12438       fi
12439
12440       # Commands to make compiler produce verbose output that lists
12441       # what "hidden" libraries, object files and flags are used when
12442       # linking a shared library.
12443       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12444
12445     else
12446       GXX=no
12447       with_gnu_ld=no
12448       wlarc=
12449     fi
12450
12451     # PORTME: fill in a description of your system's C++ link characteristics
12452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12454     ld_shlibs_CXX=yes
12455     case $host_os in
12456       aix3*)
12457         # FIXME: insert proper C++ library support
12458         ld_shlibs_CXX=no
12459         ;;
12460       aix[4-9]*)
12461         if test "$host_cpu" = ia64; then
12462           # On IA64, the linker does run time linking by default, so we don't
12463           # have to do anything special.
12464           aix_use_runtimelinking=no
12465           exp_sym_flag='-Bexport'
12466           no_entry_flag=""
12467         else
12468           aix_use_runtimelinking=no
12469
12470           # Test if we are trying to use run time linking or normal
12471           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12472           # need to do runtime linking.
12473           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12474             for ld_flag in $LDFLAGS; do
12475               case $ld_flag in
12476               *-brtl*)
12477                 aix_use_runtimelinking=yes
12478                 break
12479                 ;;
12480               esac
12481             done
12482             ;;
12483           esac
12484
12485           exp_sym_flag='-bexport'
12486           no_entry_flag='-bnoentry'
12487         fi
12488
12489         # When large executables or shared objects are built, AIX ld can
12490         # have problems creating the table of contents.  If linking a library
12491         # or program results in "error TOC overflow" add -mminimal-toc to
12492         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12493         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12494
12495         archive_cmds_CXX=''
12496         hardcode_direct_CXX=yes
12497         hardcode_direct_absolute_CXX=yes
12498         hardcode_libdir_separator_CXX=':'
12499         link_all_deplibs_CXX=yes
12500         file_list_spec_CXX='${wl}-f,'
12501
12502         if test "$GXX" = yes; then
12503           case $host_os in aix4.[012]|aix4.[012].*)
12504           # We only want to do this on AIX 4.2 and lower, the check
12505           # below for broken collect2 doesn't work under 4.3+
12506           collect2name=`${CC} -print-prog-name=collect2`
12507           if test -f "$collect2name" &&
12508              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12509           then
12510             # We have reworked collect2
12511             :
12512           else
12513             # We have old collect2
12514             hardcode_direct_CXX=unsupported
12515             # It fails to find uninstalled libraries when the uninstalled
12516             # path is not listed in the libpath.  Setting hardcode_minus_L
12517             # to unsupported forces relinking
12518             hardcode_minus_L_CXX=yes
12519             hardcode_libdir_flag_spec_CXX='-L$libdir'
12520             hardcode_libdir_separator_CXX=
12521           fi
12522           esac
12523           shared_flag='-shared'
12524           if test "$aix_use_runtimelinking" = yes; then
12525             shared_flag="$shared_flag "'${wl}-G'
12526           fi
12527         else
12528           # not using gcc
12529           if test "$host_cpu" = ia64; then
12530           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12531           # chokes on -Wl,-G. The following line is correct:
12532           shared_flag='-G'
12533           else
12534             if test "$aix_use_runtimelinking" = yes; then
12535               shared_flag='${wl}-G'
12536             else
12537               shared_flag='${wl}-bM:SRE'
12538             fi
12539           fi
12540         fi
12541
12542         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12543         # It seems that -bexpall does not export symbols beginning with
12544         # underscore (_), so it is better to generate a list of symbols to
12545         # export.
12546         always_export_symbols_CXX=yes
12547         if test "$aix_use_runtimelinking" = yes; then
12548           # Warning - without using the other runtime loading flags (-brtl),
12549           # -berok will link without error, but may produce a broken library.
12550           allow_undefined_flag_CXX='-berok'
12551           # Determine the default libpath from the value encoded in an empty
12552           # executable.
12553           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h.  */
12555
12556 int
12557 main ()
12558 {
12559
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_cxx_try_link "$LINENO"; then :
12565
12566 lt_aix_libpath_sed='
12567     /Import File Strings/,/^$/ {
12568         /^0/ {
12569             s/^0  *\(.*\)$/\1/
12570             p
12571         }
12572     }'
12573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574 # Check for a 64-bit object if we didn't find anything.
12575 if test -z "$aix_libpath"; then
12576   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12577 fi
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580     conftest$ac_exeext conftest.$ac_ext
12581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12582
12583           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12584
12585           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12586         else
12587           if test "$host_cpu" = ia64; then
12588             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12589             allow_undefined_flag_CXX="-z nodefs"
12590             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12591           else
12592             # Determine the default libpath from the value encoded in an
12593             # empty executable.
12594             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h.  */
12596
12597 int
12598 main ()
12599 {
12600
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_cxx_try_link "$LINENO"; then :
12606
12607 lt_aix_libpath_sed='
12608     /Import File Strings/,/^$/ {
12609         /^0/ {
12610             s/^0  *\(.*\)$/\1/
12611             p
12612         }
12613     }'
12614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 # Check for a 64-bit object if we didn't find anything.
12616 if test -z "$aix_libpath"; then
12617   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12618 fi
12619 fi
12620 rm -f core conftest.err conftest.$ac_objext \
12621     conftest$ac_exeext conftest.$ac_ext
12622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12623
12624             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12625             # Warning - without using the other run time loading flags,
12626             # -berok will link without error, but may produce a broken library.
12627             no_undefined_flag_CXX=' ${wl}-bernotok'
12628             allow_undefined_flag_CXX=' ${wl}-berok'
12629             # Exported symbols can be pulled into shared objects from archives
12630             whole_archive_flag_spec_CXX='$convenience'
12631             archive_cmds_need_lc_CXX=yes
12632             # This is similar to how AIX traditionally builds its shared
12633             # libraries.
12634             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12635           fi
12636         fi
12637         ;;
12638
12639       beos*)
12640         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641           allow_undefined_flag_CXX=unsupported
12642           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643           # support --undefined.  This deserves some investigation.  FIXME
12644           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645         else
12646           ld_shlibs_CXX=no
12647         fi
12648         ;;
12649
12650       chorus*)
12651         case $cc_basename in
12652           *)
12653           # FIXME: insert proper C++ library support
12654           ld_shlibs_CXX=no
12655           ;;
12656         esac
12657         ;;
12658
12659       cygwin* | mingw* | pw32* | cegcc*)
12660         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12661         # as there is no search path for DLLs.
12662         hardcode_libdir_flag_spec_CXX='-L$libdir'
12663         allow_undefined_flag_CXX=unsupported
12664         always_export_symbols_CXX=no
12665         enable_shared_with_static_runtimes_CXX=yes
12666
12667         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12668           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12669           # If the export-symbols file already is a .def file (1st line
12670           # is EXPORTS), use it as is; otherwise, prepend...
12671           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12672             cp $export_symbols $output_objdir/$soname.def;
12673           else
12674             echo EXPORTS > $output_objdir/$soname.def;
12675             cat $export_symbols >> $output_objdir/$soname.def;
12676           fi~
12677           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12678         else
12679           ld_shlibs_CXX=no
12680         fi
12681         ;;
12682       darwin* | rhapsody*)
12683
12684
12685   archive_cmds_need_lc_CXX=no
12686   hardcode_direct_CXX=no
12687   hardcode_automatic_CXX=yes
12688   hardcode_shlibpath_var_CXX=unsupported
12689   whole_archive_flag_spec_CXX=''
12690   link_all_deplibs_CXX=yes
12691   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12692   case $cc_basename in
12693      ifort*) _lt_dar_can_shared=yes ;;
12694      *) _lt_dar_can_shared=$GCC ;;
12695   esac
12696   if test "$_lt_dar_can_shared" = "yes"; then
12697     output_verbose_link_cmd=echo
12698     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12699     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12700     archive_expsym_cmds_CXX="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}"
12701     module_expsym_cmds_CXX="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}"
12702        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12703       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12704       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12705     fi
12706
12707   else
12708   ld_shlibs_CXX=no
12709   fi
12710
12711         ;;
12712
12713       dgux*)
12714         case $cc_basename in
12715           ec++*)
12716             # FIXME: insert proper C++ library support
12717             ld_shlibs_CXX=no
12718             ;;
12719           ghcx*)
12720             # Green Hills C++ Compiler
12721             # FIXME: insert proper C++ library support
12722             ld_shlibs_CXX=no
12723             ;;
12724           *)
12725             # FIXME: insert proper C++ library support
12726             ld_shlibs_CXX=no
12727             ;;
12728         esac
12729         ;;
12730
12731       freebsd[12]*)
12732         # C++ shared libraries reported to be fairly broken before
12733         # switch to ELF
12734         ld_shlibs_CXX=no
12735         ;;
12736
12737       freebsd-elf*)
12738         archive_cmds_need_lc_CXX=no
12739         ;;
12740
12741       freebsd* | dragonfly*)
12742         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12743         # conventions
12744         ld_shlibs_CXX=yes
12745         ;;
12746
12747       gnu*)
12748         ;;
12749
12750       hpux9*)
12751         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12752         hardcode_libdir_separator_CXX=:
12753         export_dynamic_flag_spec_CXX='${wl}-E'
12754         hardcode_direct_CXX=yes
12755         hardcode_minus_L_CXX=yes # Not in the search PATH,
12756                                              # but as the default
12757                                              # location of the library.
12758
12759         case $cc_basename in
12760           CC*)
12761             # FIXME: insert proper C++ library support
12762             ld_shlibs_CXX=no
12763             ;;
12764           aCC*)
12765             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12766             # Commands to make compiler produce verbose output that lists
12767             # what "hidden" libraries, object files and flags are used when
12768             # linking a shared library.
12769             #
12770             # There doesn't appear to be a way to prevent this compiler from
12771             # explicitly linking system object files so we need to strip them
12772             # from the output so that they don't get included in the library
12773             # dependencies.
12774             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12775             ;;
12776           *)
12777             if test "$GXX" = yes; then
12778               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12779             else
12780               # FIXME: insert proper C++ library support
12781               ld_shlibs_CXX=no
12782             fi
12783             ;;
12784         esac
12785         ;;
12786
12787       hpux10*|hpux11*)
12788         if test $with_gnu_ld = no; then
12789           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12790           hardcode_libdir_separator_CXX=:
12791
12792           case $host_cpu in
12793             hppa*64*|ia64*)
12794               ;;
12795             *)
12796               export_dynamic_flag_spec_CXX='${wl}-E'
12797               ;;
12798           esac
12799         fi
12800         case $host_cpu in
12801           hppa*64*|ia64*)
12802             hardcode_direct_CXX=no
12803             hardcode_shlibpath_var_CXX=no
12804             ;;
12805           *)
12806             hardcode_direct_CXX=yes
12807             hardcode_direct_absolute_CXX=yes
12808             hardcode_minus_L_CXX=yes # Not in the search PATH,
12809                                                  # but as the default
12810                                                  # location of the library.
12811             ;;
12812         esac
12813
12814         case $cc_basename in
12815           CC*)
12816             # FIXME: insert proper C++ library support
12817             ld_shlibs_CXX=no
12818             ;;
12819           aCC*)
12820             case $host_cpu in
12821               hppa*64*)
12822                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823                 ;;
12824               ia64*)
12825                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826                 ;;
12827               *)
12828                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829                 ;;
12830             esac
12831             # Commands to make compiler produce verbose output that lists
12832             # what "hidden" libraries, object files and flags are used when
12833             # linking a shared library.
12834             #
12835             # There doesn't appear to be a way to prevent this compiler from
12836             # explicitly linking system object files so we need to strip them
12837             # from the output so that they don't get included in the library
12838             # dependencies.
12839             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12840             ;;
12841           *)
12842             if test "$GXX" = yes; then
12843               if test $with_gnu_ld = no; then
12844                 case $host_cpu in
12845                   hppa*64*)
12846                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847                     ;;
12848                   ia64*)
12849                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850                     ;;
12851                   *)
12852                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853                     ;;
12854                 esac
12855               fi
12856             else
12857               # FIXME: insert proper C++ library support
12858               ld_shlibs_CXX=no
12859             fi
12860             ;;
12861         esac
12862         ;;
12863
12864       interix[3-9]*)
12865         hardcode_direct_CXX=no
12866         hardcode_shlibpath_var_CXX=no
12867         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12868         export_dynamic_flag_spec_CXX='${wl}-E'
12869         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12870         # Instead, shared libraries are loaded at an image base (0x10000000 by
12871         # default) and relocated if they conflict, which is a slow very memory
12872         # consuming and fragmenting process.  To avoid this, we pick a random,
12873         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12874         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12875         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12876         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12877         ;;
12878       irix5* | irix6*)
12879         case $cc_basename in
12880           CC*)
12881             # SGI C++
12882             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12883
12884             # Archives containing C++ object files must be created using
12885             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12886             # necessary to make sure instantiated templates are included
12887             # in the archive.
12888             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12889             ;;
12890           *)
12891             if test "$GXX" = yes; then
12892               if test "$with_gnu_ld" = no; then
12893                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12894               else
12895                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12896               fi
12897             fi
12898             link_all_deplibs_CXX=yes
12899             ;;
12900         esac
12901         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12902         hardcode_libdir_separator_CXX=:
12903         inherit_rpath_CXX=yes
12904         ;;
12905
12906       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12907         case $cc_basename in
12908           KCC*)
12909             # Kuck and Associates, Inc. (KAI) C++ Compiler
12910
12911             # KCC will only create a shared library if the output file
12912             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12913             # to its proper name (with version) after linking.
12914             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12915             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12916             # Commands to make compiler produce verbose output that lists
12917             # what "hidden" libraries, object files and flags are used when
12918             # linking a shared library.
12919             #
12920             # There doesn't appear to be a way to prevent this compiler from
12921             # explicitly linking system object files so we need to strip them
12922             # from the output so that they don't get included in the library
12923             # dependencies.
12924             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12925
12926             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12927             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12928
12929             # Archives containing C++ object files must be created using
12930             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12931             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12932             ;;
12933           icpc* | ecpc* )
12934             # Intel C++
12935             with_gnu_ld=yes
12936             # version 8.0 and above of icpc choke on multiply defined symbols
12937             # if we add $predep_objects and $postdep_objects, however 7.1 and
12938             # earlier do not add the objects themselves.
12939             case `$CC -V 2>&1` in
12940               *"Version 7."*)
12941                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943                 ;;
12944               *)  # Version 8.0 or newer
12945                 tmp_idyn=
12946                 case $host_cpu in
12947                   ia64*) tmp_idyn=' -i_dynamic';;
12948                 esac
12949                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951                 ;;
12952             esac
12953             archive_cmds_need_lc_CXX=no
12954             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12955             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12956             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12957             ;;
12958           pgCC* | pgcpp*)
12959             # Portland Group C++ compiler
12960             case `$CC -V` in
12961             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12962               prelink_cmds_CXX='tpldir=Template.dir~
12963                 rm -rf $tpldir~
12964                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12965                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12966               old_archive_cmds_CXX='tpldir=Template.dir~
12967                 rm -rf $tpldir~
12968                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12969                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12970                 $RANLIB $oldlib'
12971               archive_cmds_CXX='tpldir=Template.dir~
12972                 rm -rf $tpldir~
12973                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12974                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12975               archive_expsym_cmds_CXX='tpldir=Template.dir~
12976                 rm -rf $tpldir~
12977                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12978                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12979               ;;
12980             *) # Version 6 will use weak symbols
12981               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12982               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12983               ;;
12984             esac
12985
12986             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12987             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12989             ;;
12990           cxx*)
12991             # Compaq C++
12992             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12994
12995             runpath_var=LD_RUN_PATH
12996             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12997             hardcode_libdir_separator_CXX=:
12998
12999             # Commands to make compiler produce verbose output that lists
13000             # what "hidden" libraries, object files and flags are used when
13001             # linking a shared library.
13002             #
13003             # There doesn't appear to be a way to prevent this compiler from
13004             # explicitly linking system object files so we need to strip them
13005             # from the output so that they don't get included in the library
13006             # dependencies.
13007             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13008             ;;
13009           xl*)
13010             # IBM XL 8.0 on PPC, with GNU ld
13011             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13012             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014             if test "x$supports_anon_versioning" = xyes; then
13015               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13016                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13017                 echo "local: *; };" >> $output_objdir/$libname.ver~
13018                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13019             fi
13020             ;;
13021           *)
13022             case `$CC -V 2>&1 | sed 5q` in
13023             *Sun\ C*)
13024               # Sun C++ 5.9
13025               no_undefined_flag_CXX=' -zdefs'
13026               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13028               hardcode_libdir_flag_spec_CXX='-R$libdir'
13029               whole_archive_flag_spec_CXX='${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'
13030               compiler_needs_object_CXX=yes
13031
13032               # Not sure whether something based on
13033               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13034               # would be better.
13035               output_verbose_link_cmd='echo'
13036
13037               # Archives containing C++ object files must be created using
13038               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13039               # necessary to make sure instantiated templates are included
13040               # in the archive.
13041               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13042               ;;
13043             esac
13044             ;;
13045         esac
13046         ;;
13047
13048       lynxos*)
13049         # FIXME: insert proper C++ library support
13050         ld_shlibs_CXX=no
13051         ;;
13052
13053       m88k*)
13054         # FIXME: insert proper C++ library support
13055         ld_shlibs_CXX=no
13056         ;;
13057
13058       mvs*)
13059         case $cc_basename in
13060           cxx*)
13061             # FIXME: insert proper C++ library support
13062             ld_shlibs_CXX=no
13063             ;;
13064           *)
13065             # FIXME: insert proper C++ library support
13066             ld_shlibs_CXX=no
13067             ;;
13068         esac
13069         ;;
13070
13071       netbsd*)
13072         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13073           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13074           wlarc=
13075           hardcode_libdir_flag_spec_CXX='-R$libdir'
13076           hardcode_direct_CXX=yes
13077           hardcode_shlibpath_var_CXX=no
13078         fi
13079         # Workaround some broken pre-1.5 toolchains
13080         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13081         ;;
13082
13083       *nto* | *qnx*)
13084         ld_shlibs_CXX=yes
13085         ;;
13086
13087       openbsd2*)
13088         # C++ shared libraries are fairly broken
13089         ld_shlibs_CXX=no
13090         ;;
13091
13092       openbsd*)
13093         if test -f /usr/libexec/ld.so; then
13094           hardcode_direct_CXX=yes
13095           hardcode_shlibpath_var_CXX=no
13096           hardcode_direct_absolute_CXX=yes
13097           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13098           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13099           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13100             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13101             export_dynamic_flag_spec_CXX='${wl}-E'
13102             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13103           fi
13104           output_verbose_link_cmd=echo
13105         else
13106           ld_shlibs_CXX=no
13107         fi
13108         ;;
13109
13110       osf3* | osf4* | osf5*)
13111         case $cc_basename in
13112           KCC*)
13113             # Kuck and Associates, Inc. (KAI) C++ Compiler
13114
13115             # KCC will only create a shared library if the output file
13116             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13117             # to its proper name (with version) after linking.
13118             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13119
13120             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13121             hardcode_libdir_separator_CXX=:
13122
13123             # Archives containing C++ object files must be created using
13124             # the KAI C++ compiler.
13125             case $host in
13126               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13127               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13128             esac
13129             ;;
13130           RCC*)
13131             # Rational C++ 2.4.1
13132             # FIXME: insert proper C++ library support
13133             ld_shlibs_CXX=no
13134             ;;
13135           cxx*)
13136             case $host in
13137               osf3*)
13138                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13139                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13140                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13141                 ;;
13142               *)
13143                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13144                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13145                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13146                   echo "-hidden">> $lib.exp~
13147                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13148                   $RM $lib.exp'
13149                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13150                 ;;
13151             esac
13152
13153             hardcode_libdir_separator_CXX=:
13154
13155             # Commands to make compiler produce verbose output that lists
13156             # what "hidden" libraries, object files and flags are used when
13157             # linking a shared library.
13158             #
13159             # There doesn't appear to be a way to prevent this compiler from
13160             # explicitly linking system object files so we need to strip them
13161             # from the output so that they don't get included in the library
13162             # dependencies.
13163             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13164             ;;
13165           *)
13166             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13167               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13168               case $host in
13169                 osf3*)
13170                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13171                   ;;
13172                 *)
13173                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13174                   ;;
13175               esac
13176
13177               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178               hardcode_libdir_separator_CXX=:
13179
13180               # Commands to make compiler produce verbose output that lists
13181               # what "hidden" libraries, object files and flags are used when
13182               # linking a shared library.
13183               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13184
13185             else
13186               # FIXME: insert proper C++ library support
13187               ld_shlibs_CXX=no
13188             fi
13189             ;;
13190         esac
13191         ;;
13192
13193       psos*)
13194         # FIXME: insert proper C++ library support
13195         ld_shlibs_CXX=no
13196         ;;
13197
13198       sunos4*)
13199         case $cc_basename in
13200           CC*)
13201             # Sun C++ 4.x
13202             # FIXME: insert proper C++ library support
13203             ld_shlibs_CXX=no
13204             ;;
13205           lcc*)
13206             # Lucid
13207             # FIXME: insert proper C++ library support
13208             ld_shlibs_CXX=no
13209             ;;
13210           *)
13211             # FIXME: insert proper C++ library support
13212             ld_shlibs_CXX=no
13213             ;;
13214         esac
13215         ;;
13216
13217       solaris*)
13218         case $cc_basename in
13219           CC*)
13220             # Sun C++ 4.2, 5.x and Centerline C++
13221             archive_cmds_need_lc_CXX=yes
13222             no_undefined_flag_CXX=' -zdefs'
13223             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13224             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13225               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13226
13227             hardcode_libdir_flag_spec_CXX='-R$libdir'
13228             hardcode_shlibpath_var_CXX=no
13229             case $host_os in
13230               solaris2.[0-5] | solaris2.[0-5].*) ;;
13231               *)
13232                 # The compiler driver will combine and reorder linker options,
13233                 # but understands `-z linker_flag'.
13234                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13235                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13236                 ;;
13237             esac
13238             link_all_deplibs_CXX=yes
13239
13240             output_verbose_link_cmd='echo'
13241
13242             # Archives containing C++ object files must be created using
13243             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13244             # necessary to make sure instantiated templates are included
13245             # in the archive.
13246             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13247             ;;
13248           gcx*)
13249             # Green Hills C++ Compiler
13250             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13251
13252             # The C++ compiler must be used to create the archive.
13253             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13254             ;;
13255           *)
13256             # GNU C++ compiler with Solaris linker
13257             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13258               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13259               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13260                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13261                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13262                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13263
13264                 # Commands to make compiler produce verbose output that lists
13265                 # what "hidden" libraries, object files and flags are used when
13266                 # linking a shared library.
13267                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13268               else
13269                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13270                 # platform.
13271                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13272                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13273                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13274
13275                 # Commands to make compiler produce verbose output that lists
13276                 # what "hidden" libraries, object files and flags are used when
13277                 # linking a shared library.
13278                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13279               fi
13280
13281               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13282               case $host_os in
13283                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13284                 *)
13285                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13286                   ;;
13287               esac
13288             fi
13289             ;;
13290         esac
13291         ;;
13292
13293     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13294       no_undefined_flag_CXX='${wl}-z,text'
13295       archive_cmds_need_lc_CXX=no
13296       hardcode_shlibpath_var_CXX=no
13297       runpath_var='LD_RUN_PATH'
13298
13299       case $cc_basename in
13300         CC*)
13301           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303           ;;
13304         *)
13305           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307           ;;
13308       esac
13309       ;;
13310
13311       sysv5* | sco3.2v5* | sco5v6*)
13312         # Note: We can NOT use -z defs as we might desire, because we do not
13313         # link with -lc, and that would cause any symbols used from libc to
13314         # always be unresolved, which means just about no library would
13315         # ever link correctly.  If we're not using GNU ld we use -z text
13316         # though, which does catch some bad symbols but isn't as heavy-handed
13317         # as -z defs.
13318         no_undefined_flag_CXX='${wl}-z,text'
13319         allow_undefined_flag_CXX='${wl}-z,nodefs'
13320         archive_cmds_need_lc_CXX=no
13321         hardcode_shlibpath_var_CXX=no
13322         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13323         hardcode_libdir_separator_CXX=':'
13324         link_all_deplibs_CXX=yes
13325         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13326         runpath_var='LD_RUN_PATH'
13327
13328         case $cc_basename in
13329           CC*)
13330             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332             ;;
13333           *)
13334             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336             ;;
13337         esac
13338       ;;
13339
13340       tandem*)
13341         case $cc_basename in
13342           NCC*)
13343             # NonStop-UX NCC 3.20
13344             # FIXME: insert proper C++ library support
13345             ld_shlibs_CXX=no
13346             ;;
13347           *)
13348             # FIXME: insert proper C++ library support
13349             ld_shlibs_CXX=no
13350             ;;
13351         esac
13352         ;;
13353
13354       vxworks*)
13355         # FIXME: insert proper C++ library support
13356         ld_shlibs_CXX=no
13357         ;;
13358
13359       *)
13360         # FIXME: insert proper C++ library support
13361         ld_shlibs_CXX=no
13362         ;;
13363     esac
13364
13365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13366 $as_echo "$ld_shlibs_CXX" >&6; }
13367     test "$ld_shlibs_CXX" = no && can_build_shared=no
13368
13369     GCC_CXX="$GXX"
13370     LD_CXX="$LD"
13371
13372     ## CAVEAT EMPTOR:
13373     ## There is no encapsulation within the following macros, do not change
13374     ## the running order or otherwise move them around unless you know exactly
13375     ## what you are doing...
13376     # Dependencies to place before and after the object being linked:
13377 predep_objects_CXX=
13378 postdep_objects_CXX=
13379 predeps_CXX=
13380 postdeps_CXX=
13381 compiler_lib_search_path_CXX=
13382
13383 cat > conftest.$ac_ext <<_LT_EOF
13384 class Foo
13385 {
13386 public:
13387   Foo (void) { a = 0; }
13388 private:
13389   int a;
13390 };
13391 _LT_EOF
13392
13393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394   (eval $ac_compile) 2>&5
13395   ac_status=$?
13396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397   test $ac_status = 0; }; then
13398   # Parse the compiler output and extract the necessary
13399   # objects, libraries and library flags.
13400
13401   # Sentinel used to keep track of whether or not we are before
13402   # the conftest object file.
13403   pre_test_object_deps_done=no
13404
13405   for p in `eval "$output_verbose_link_cmd"`; do
13406     case $p in
13407
13408     -L* | -R* | -l*)
13409        # Some compilers place space between "-{L,R}" and the path.
13410        # Remove the space.
13411        if test $p = "-L" ||
13412           test $p = "-R"; then
13413          prev=$p
13414          continue
13415        else
13416          prev=
13417        fi
13418
13419        if test "$pre_test_object_deps_done" = no; then
13420          case $p in
13421          -L* | -R*)
13422            # Internal compiler library paths should come after those
13423            # provided the user.  The postdeps already come after the
13424            # user supplied libs so there is no need to process them.
13425            if test -z "$compiler_lib_search_path_CXX"; then
13426              compiler_lib_search_path_CXX="${prev}${p}"
13427            else
13428              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13429            fi
13430            ;;
13431          # The "-l" case would never come before the object being
13432          # linked, so don't bother handling this case.
13433          esac
13434        else
13435          if test -z "$postdeps_CXX"; then
13436            postdeps_CXX="${prev}${p}"
13437          else
13438            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13439          fi
13440        fi
13441        ;;
13442
13443     *.$objext)
13444        # This assumes that the test object file only shows up
13445        # once in the compiler output.
13446        if test "$p" = "conftest.$objext"; then
13447          pre_test_object_deps_done=yes
13448          continue
13449        fi
13450
13451        if test "$pre_test_object_deps_done" = no; then
13452          if test -z "$predep_objects_CXX"; then
13453            predep_objects_CXX="$p"
13454          else
13455            predep_objects_CXX="$predep_objects_CXX $p"
13456          fi
13457        else
13458          if test -z "$postdep_objects_CXX"; then
13459            postdep_objects_CXX="$p"
13460          else
13461            postdep_objects_CXX="$postdep_objects_CXX $p"
13462          fi
13463        fi
13464        ;;
13465
13466     *) ;; # Ignore the rest.
13467
13468     esac
13469   done
13470
13471   # Clean up.
13472   rm -f a.out a.exe
13473 else
13474   echo "libtool.m4: error: problem compiling CXX test program"
13475 fi
13476
13477 $RM -f confest.$objext
13478
13479 # PORTME: override above test on systems where it is broken
13480 case $host_os in
13481 interix[3-9]*)
13482   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13483   # hack all around it, let's just trust "g++" to DTRT.
13484   predep_objects_CXX=
13485   postdep_objects_CXX=
13486   postdeps_CXX=
13487   ;;
13488
13489 linux*)
13490   case `$CC -V 2>&1 | sed 5q` in
13491   *Sun\ C*)
13492     # Sun C++ 5.9
13493
13494     # The more standards-conforming stlport4 library is
13495     # incompatible with the Cstd library. Avoid specifying
13496     # it if it's in CXXFLAGS. Ignore libCrun as
13497     # -library=stlport4 depends on it.
13498     case " $CXX $CXXFLAGS " in
13499     *" -library=stlport4 "*)
13500       solaris_use_stlport4=yes
13501       ;;
13502     esac
13503
13504     if test "$solaris_use_stlport4" != yes; then
13505       postdeps_CXX='-library=Cstd -library=Crun'
13506     fi
13507     ;;
13508   esac
13509   ;;
13510
13511 solaris*)
13512   case $cc_basename in
13513   CC*)
13514     # The more standards-conforming stlport4 library is
13515     # incompatible with the Cstd library. Avoid specifying
13516     # it if it's in CXXFLAGS. Ignore libCrun as
13517     # -library=stlport4 depends on it.
13518     case " $CXX $CXXFLAGS " in
13519     *" -library=stlport4 "*)
13520       solaris_use_stlport4=yes
13521       ;;
13522     esac
13523
13524     # Adding this requires a known-good setup of shared libraries for
13525     # Sun compiler versions before 5.6, else PIC objects from an old
13526     # archive will be linked into the output, leading to subtle bugs.
13527     if test "$solaris_use_stlport4" != yes; then
13528       postdeps_CXX='-library=Cstd -library=Crun'
13529     fi
13530     ;;
13531   esac
13532   ;;
13533 esac
13534
13535
13536 case " $postdeps_CXX " in
13537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13538 esac
13539  compiler_lib_search_dirs_CXX=
13540 if test -n "${compiler_lib_search_path_CXX}"; then
13541  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13542 fi
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574     lt_prog_compiler_wl_CXX=
13575 lt_prog_compiler_pic_CXX=
13576 lt_prog_compiler_static_CXX=
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13580
13581   # C++ specific cases for pic, static, wl, etc.
13582   if test "$GXX" = yes; then
13583     lt_prog_compiler_wl_CXX='-Wl,'
13584     lt_prog_compiler_static_CXX='-static'
13585
13586     case $host_os in
13587     aix*)
13588       # All AIX code is PIC.
13589       if test "$host_cpu" = ia64; then
13590         # AIX 5 now supports IA64 processor
13591         lt_prog_compiler_static_CXX='-Bstatic'
13592       fi
13593       ;;
13594
13595     amigaos*)
13596       case $host_cpu in
13597       powerpc)
13598             # see comment about AmigaOS4 .so support
13599             lt_prog_compiler_pic_CXX='-fPIC'
13600         ;;
13601       m68k)
13602             # FIXME: we need at least 68020 code to build shared libraries, but
13603             # adding the `-m68020' flag to GCC prevents building anything better,
13604             # like `-m68040'.
13605             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13606         ;;
13607       esac
13608       ;;
13609
13610     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13611       # PIC is the default for these OSes.
13612       ;;
13613     mingw* | cygwin* | os2* | pw32* | cegcc*)
13614       # This hack is so that the source file can tell whether it is being
13615       # built for inclusion in a dll (and should export symbols for example).
13616       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13617       # (--disable-auto-import) libraries
13618       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13619       ;;
13620     darwin* | rhapsody*)
13621       # PIC is the default on this platform
13622       # Common symbols not allowed in MH_DYLIB files
13623       lt_prog_compiler_pic_CXX='-fno-common'
13624       ;;
13625     *djgpp*)
13626       # DJGPP does not support shared libraries at all
13627       lt_prog_compiler_pic_CXX=
13628       ;;
13629     interix[3-9]*)
13630       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13631       # Instead, we relocate shared libraries at runtime.
13632       ;;
13633     sysv4*MP*)
13634       if test -d /usr/nec; then
13635         lt_prog_compiler_pic_CXX=-Kconform_pic
13636       fi
13637       ;;
13638     hpux*)
13639       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13640       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13641       # sets the default TLS model and affects inlining.
13642       case $host_cpu in
13643       hppa*64*)
13644         ;;
13645       *)
13646         lt_prog_compiler_pic_CXX='-fPIC'
13647         ;;
13648       esac
13649       ;;
13650     *qnx* | *nto*)
13651       # QNX uses GNU C++, but need to define -shared option too, otherwise
13652       # it will coredump.
13653       lt_prog_compiler_pic_CXX='-fPIC -shared'
13654       ;;
13655     *)
13656       lt_prog_compiler_pic_CXX='-fPIC'
13657       ;;
13658     esac
13659   else
13660     case $host_os in
13661       aix[4-9]*)
13662         # All AIX code is PIC.
13663         if test "$host_cpu" = ia64; then
13664           # AIX 5 now supports IA64 processor
13665           lt_prog_compiler_static_CXX='-Bstatic'
13666         else
13667           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13668         fi
13669         ;;
13670       chorus*)
13671         case $cc_basename in
13672         cxch68*)
13673           # Green Hills C++ Compiler
13674           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13675           ;;
13676         esac
13677         ;;
13678       dgux*)
13679         case $cc_basename in
13680           ec++*)
13681             lt_prog_compiler_pic_CXX='-KPIC'
13682             ;;
13683           ghcx*)
13684             # Green Hills C++ Compiler
13685             lt_prog_compiler_pic_CXX='-pic'
13686             ;;
13687           *)
13688             ;;
13689         esac
13690         ;;
13691       freebsd* | dragonfly*)
13692         # FreeBSD uses GNU C++
13693         ;;
13694       hpux9* | hpux10* | hpux11*)
13695         case $cc_basename in
13696           CC*)
13697             lt_prog_compiler_wl_CXX='-Wl,'
13698             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13699             if test "$host_cpu" != ia64; then
13700               lt_prog_compiler_pic_CXX='+Z'
13701             fi
13702             ;;
13703           aCC*)
13704             lt_prog_compiler_wl_CXX='-Wl,'
13705             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13706             case $host_cpu in
13707             hppa*64*|ia64*)
13708               # +Z the default
13709               ;;
13710             *)
13711               lt_prog_compiler_pic_CXX='+Z'
13712               ;;
13713             esac
13714             ;;
13715           *)
13716             ;;
13717         esac
13718         ;;
13719       interix*)
13720         # This is c89, which is MS Visual C++ (no shared libs)
13721         # Anyone wants to do a port?
13722         ;;
13723       irix5* | irix6* | nonstopux*)
13724         case $cc_basename in
13725           CC*)
13726             lt_prog_compiler_wl_CXX='-Wl,'
13727             lt_prog_compiler_static_CXX='-non_shared'
13728             # CC pic flag -KPIC is the default.
13729             ;;
13730           *)
13731             ;;
13732         esac
13733         ;;
13734       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13735         case $cc_basename in
13736           KCC*)
13737             # KAI C++ Compiler
13738             lt_prog_compiler_wl_CXX='--backend -Wl,'
13739             lt_prog_compiler_pic_CXX='-fPIC'
13740             ;;
13741           ecpc* )
13742             # old Intel C++ for x86_64 which still supported -KPIC.
13743             lt_prog_compiler_wl_CXX='-Wl,'
13744             lt_prog_compiler_pic_CXX='-KPIC'
13745             lt_prog_compiler_static_CXX='-static'
13746             ;;
13747           icpc* )
13748             # Intel C++, used to be incompatible with GCC.
13749             # ICC 10 doesn't accept -KPIC any more.
13750             lt_prog_compiler_wl_CXX='-Wl,'
13751             lt_prog_compiler_pic_CXX='-fPIC'
13752             lt_prog_compiler_static_CXX='-static'
13753             ;;
13754           pgCC* | pgcpp*)
13755             # Portland Group C++ compiler
13756             lt_prog_compiler_wl_CXX='-Wl,'
13757             lt_prog_compiler_pic_CXX='-fpic'
13758             lt_prog_compiler_static_CXX='-Bstatic'
13759             ;;
13760           cxx*)
13761             # Compaq C++
13762             # Make sure the PIC flag is empty.  It appears that all Alpha
13763             # Linux and Compaq Tru64 Unix objects are PIC.
13764             lt_prog_compiler_pic_CXX=
13765             lt_prog_compiler_static_CXX='-non_shared'
13766             ;;
13767           xlc* | xlC*)
13768             # IBM XL 8.0 on PPC
13769             lt_prog_compiler_wl_CXX='-Wl,'
13770             lt_prog_compiler_pic_CXX='-qpic'
13771             lt_prog_compiler_static_CXX='-qstaticlink'
13772             ;;
13773           *)
13774             case `$CC -V 2>&1 | sed 5q` in
13775             *Sun\ C*)
13776               # Sun C++ 5.9
13777               lt_prog_compiler_pic_CXX='-KPIC'
13778               lt_prog_compiler_static_CXX='-Bstatic'
13779               lt_prog_compiler_wl_CXX='-Qoption ld '
13780               ;;
13781             esac
13782             ;;
13783         esac
13784         ;;
13785       lynxos*)
13786         ;;
13787       m88k*)
13788         ;;
13789       mvs*)
13790         case $cc_basename in
13791           cxx*)
13792             lt_prog_compiler_pic_CXX='-W c,exportall'
13793             ;;
13794           *)
13795             ;;
13796         esac
13797         ;;
13798       netbsd* | netbsdelf*-gnu)
13799         ;;
13800       *qnx* | *nto*)
13801         # QNX uses GNU C++, but need to define -shared option too, otherwise
13802         # it will coredump.
13803         lt_prog_compiler_pic_CXX='-fPIC -shared'
13804         ;;
13805       osf3* | osf4* | osf5*)
13806         case $cc_basename in
13807           KCC*)
13808             lt_prog_compiler_wl_CXX='--backend -Wl,'
13809             ;;
13810           RCC*)
13811             # Rational C++ 2.4.1
13812             lt_prog_compiler_pic_CXX='-pic'
13813             ;;
13814           cxx*)
13815             # Digital/Compaq C++
13816             lt_prog_compiler_wl_CXX='-Wl,'
13817             # Make sure the PIC flag is empty.  It appears that all Alpha
13818             # Linux and Compaq Tru64 Unix objects are PIC.
13819             lt_prog_compiler_pic_CXX=
13820             lt_prog_compiler_static_CXX='-non_shared'
13821             ;;
13822           *)
13823             ;;
13824         esac
13825         ;;
13826       psos*)
13827         ;;
13828       solaris*)
13829         case $cc_basename in
13830           CC*)
13831             # Sun C++ 4.2, 5.x and Centerline C++
13832             lt_prog_compiler_pic_CXX='-KPIC'
13833             lt_prog_compiler_static_CXX='-Bstatic'
13834             lt_prog_compiler_wl_CXX='-Qoption ld '
13835             ;;
13836           gcx*)
13837             # Green Hills C++ Compiler
13838             lt_prog_compiler_pic_CXX='-PIC'
13839             ;;
13840           *)
13841             ;;
13842         esac
13843         ;;
13844       sunos4*)
13845         case $cc_basename in
13846           CC*)
13847             # Sun C++ 4.x
13848             lt_prog_compiler_pic_CXX='-pic'
13849             lt_prog_compiler_static_CXX='-Bstatic'
13850             ;;
13851           lcc*)
13852             # Lucid
13853             lt_prog_compiler_pic_CXX='-pic'
13854             ;;
13855           *)
13856             ;;
13857         esac
13858         ;;
13859       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13860         case $cc_basename in
13861           CC*)
13862             lt_prog_compiler_wl_CXX='-Wl,'
13863             lt_prog_compiler_pic_CXX='-KPIC'
13864             lt_prog_compiler_static_CXX='-Bstatic'
13865             ;;
13866         esac
13867         ;;
13868       tandem*)
13869         case $cc_basename in
13870           NCC*)
13871             # NonStop-UX NCC 3.20
13872             lt_prog_compiler_pic_CXX='-KPIC'
13873             ;;
13874           *)
13875             ;;
13876         esac
13877         ;;
13878       vxworks*)
13879         ;;
13880       *)
13881         lt_prog_compiler_can_build_shared_CXX=no
13882         ;;
13883     esac
13884   fi
13885
13886 case $host_os in
13887   # For platforms which do not support PIC, -DPIC is meaningless:
13888   *djgpp*)
13889     lt_prog_compiler_pic_CXX=
13890     ;;
13891   *)
13892     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13893     ;;
13894 esac
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13896 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13897
13898
13899
13900 #
13901 # Check to make sure the PIC flag actually works.
13902 #
13903 if test -n "$lt_prog_compiler_pic_CXX"; then
13904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13905 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13906 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13907   $as_echo_n "(cached) " >&6
13908 else
13909   lt_cv_prog_compiler_pic_works_CXX=no
13910    ac_outfile=conftest.$ac_objext
13911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13912    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13913    # Insert the option either (1) after the last *FLAGS variable, or
13914    # (2) before a word containing "conftest.", or (3) at the end.
13915    # Note that $ac_compile itself does not contain backslashes and begins
13916    # with a dollar sign (not a hyphen), so the echo should work correctly.
13917    # The option is referenced via a variable to avoid confusing sed.
13918    lt_compile=`echo "$ac_compile" | $SED \
13919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13921    -e 's:$: $lt_compiler_flag:'`
13922    (eval echo "\"\$as_me:13922: $lt_compile\"" >&5)
13923    (eval "$lt_compile" 2>conftest.err)
13924    ac_status=$?
13925    cat conftest.err >&5
13926    echo "$as_me:13926: \$? = $ac_status" >&5
13927    if (exit $ac_status) && test -s "$ac_outfile"; then
13928      # The compiler can only warn and ignore the option if not recognized
13929      # So say no if there are warnings other than the usual output.
13930      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13933        lt_cv_prog_compiler_pic_works_CXX=yes
13934      fi
13935    fi
13936    $RM conftest*
13937
13938 fi
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13940 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13941
13942 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13943     case $lt_prog_compiler_pic_CXX in
13944      "" | " "*) ;;
13945      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13946      esac
13947 else
13948     lt_prog_compiler_pic_CXX=
13949      lt_prog_compiler_can_build_shared_CXX=no
13950 fi
13951
13952 fi
13953
13954
13955
13956 #
13957 # Check to make sure the static flag actually works.
13958 #
13959 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13962 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13963   $as_echo_n "(cached) " >&6
13964 else
13965   lt_cv_prog_compiler_static_works_CXX=no
13966    save_LDFLAGS="$LDFLAGS"
13967    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13969    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970      # The linker can only warn and ignore the option if not recognized
13971      # So say no if there are warnings
13972      if test -s conftest.err; then
13973        # Append any errors to the config.log.
13974        cat conftest.err 1>&5
13975        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13976        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977        if diff conftest.exp conftest.er2 >/dev/null; then
13978          lt_cv_prog_compiler_static_works_CXX=yes
13979        fi
13980      else
13981        lt_cv_prog_compiler_static_works_CXX=yes
13982      fi
13983    fi
13984    $RM -r conftest*
13985    LDFLAGS="$save_LDFLAGS"
13986
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13989 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13990
13991 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13992     :
13993 else
13994     lt_prog_compiler_static_CXX=
13995 fi
13996
13997
13998
13999
14000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14002 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14003   $as_echo_n "(cached) " >&6
14004 else
14005   lt_cv_prog_compiler_c_o_CXX=no
14006    $RM -r conftest 2>/dev/null
14007    mkdir conftest
14008    cd conftest
14009    mkdir out
14010    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011
14012    lt_compiler_flag="-o out/conftest2.$ac_objext"
14013    # Insert the option either (1) after the last *FLAGS variable, or
14014    # (2) before a word containing "conftest.", or (3) at the end.
14015    # Note that $ac_compile itself does not contain backslashes and begins
14016    # with a dollar sign (not a hyphen), so the echo should work correctly.
14017    lt_compile=`echo "$ac_compile" | $SED \
14018    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020    -e 's:$: $lt_compiler_flag:'`
14021    (eval echo "\"\$as_me:14021: $lt_compile\"" >&5)
14022    (eval "$lt_compile" 2>out/conftest.err)
14023    ac_status=$?
14024    cat out/conftest.err >&5
14025    echo "$as_me:14025: \$? = $ac_status" >&5
14026    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14027    then
14028      # The compiler can only warn and ignore the option if not recognized
14029      # So say no if there are warnings
14030      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14031      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14032      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14033        lt_cv_prog_compiler_c_o_CXX=yes
14034      fi
14035    fi
14036    chmod u+w . 2>&5
14037    $RM conftest*
14038    # SGI C++ compiler will create directory out/ii_files/ for
14039    # template instantiation
14040    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14041    $RM out/* && rmdir out
14042    cd ..
14043    $RM -r conftest
14044    $RM conftest*
14045
14046 fi
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14048 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14049
14050
14051
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14054 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14055   $as_echo_n "(cached) " >&6
14056 else
14057   lt_cv_prog_compiler_c_o_CXX=no
14058    $RM -r conftest 2>/dev/null
14059    mkdir conftest
14060    cd conftest
14061    mkdir out
14062    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14063
14064    lt_compiler_flag="-o out/conftest2.$ac_objext"
14065    # Insert the option either (1) after the last *FLAGS variable, or
14066    # (2) before a word containing "conftest.", or (3) at the end.
14067    # Note that $ac_compile itself does not contain backslashes and begins
14068    # with a dollar sign (not a hyphen), so the echo should work correctly.
14069    lt_compile=`echo "$ac_compile" | $SED \
14070    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14071    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14072    -e 's:$: $lt_compiler_flag:'`
14073    (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
14074    (eval "$lt_compile" 2>out/conftest.err)
14075    ac_status=$?
14076    cat out/conftest.err >&5
14077    echo "$as_me:14077: \$? = $ac_status" >&5
14078    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14079    then
14080      # The compiler can only warn and ignore the option if not recognized
14081      # So say no if there are warnings
14082      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14083      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14084      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14085        lt_cv_prog_compiler_c_o_CXX=yes
14086      fi
14087    fi
14088    chmod u+w . 2>&5
14089    $RM conftest*
14090    # SGI C++ compiler will create directory out/ii_files/ for
14091    # template instantiation
14092    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14093    $RM out/* && rmdir out
14094    cd ..
14095    $RM -r conftest
14096    $RM conftest*
14097
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14100 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14101
14102
14103
14104
14105 hard_links="nottested"
14106 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14107   # do not overwrite the value of need_locks provided by the user
14108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14109 $as_echo_n "checking if we can lock with hard links... " >&6; }
14110   hard_links=yes
14111   $RM conftest*
14112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113   touch conftest.a
14114   ln conftest.a conftest.b 2>&5 || hard_links=no
14115   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14117 $as_echo "$hard_links" >&6; }
14118   if test "$hard_links" = no; then
14119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14121     need_locks=warn
14122   fi
14123 else
14124   need_locks=no
14125 fi
14126
14127
14128
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14131
14132   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14133   case $host_os in
14134   aix[4-9]*)
14135     # If we're using GNU nm, then we don't want the "-C" option.
14136     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14137     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14138       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14139     else
14140       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14141     fi
14142     ;;
14143   pw32*)
14144     export_symbols_cmds_CXX="$ltdll_cmds"
14145   ;;
14146   cygwin* | mingw* | cegcc*)
14147     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14148   ;;
14149   linux* | k*bsd*-gnu)
14150     link_all_deplibs_CXX=no
14151   ;;
14152   *)
14153     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14154   ;;
14155   esac
14156   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14157
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14159 $as_echo "$ld_shlibs_CXX" >&6; }
14160 test "$ld_shlibs_CXX" = no && can_build_shared=no
14161
14162 with_gnu_ld_CXX=$with_gnu_ld
14163
14164
14165
14166
14167
14168
14169 #
14170 # Do we need to explicitly link libc?
14171 #
14172 case "x$archive_cmds_need_lc_CXX" in
14173 x|xyes)
14174   # Assume -lc should be added
14175   archive_cmds_need_lc_CXX=yes
14176
14177   if test "$enable_shared" = yes && test "$GCC" = yes; then
14178     case $archive_cmds_CXX in
14179     *'~'*)
14180       # FIXME: we may have to deal with multi-command sequences.
14181       ;;
14182     '$CC '*)
14183       # Test whether the compiler implicitly links with -lc since on some
14184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14185       # to ld, don't add -lc before -lgcc.
14186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14188       $RM conftest*
14189       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14190
14191       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14192   (eval $ac_compile) 2>&5
14193   ac_status=$?
14194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195   test $ac_status = 0; } 2>conftest.err; then
14196         soname=conftest
14197         lib=conftest
14198         libobjs=conftest.$ac_objext
14199         deplibs=
14200         wl=$lt_prog_compiler_wl_CXX
14201         pic_flag=$lt_prog_compiler_pic_CXX
14202         compiler_flags=-v
14203         linker_flags=-v
14204         verstring=
14205         output_objdir=.
14206         libname=conftest
14207         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14208         allow_undefined_flag_CXX=
14209         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14210   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14211   ac_status=$?
14212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14213   test $ac_status = 0; }
14214         then
14215           archive_cmds_need_lc_CXX=no
14216         else
14217           archive_cmds_need_lc_CXX=yes
14218         fi
14219         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14220       else
14221         cat conftest.err 1>&5
14222       fi
14223       $RM conftest*
14224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14225 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14226       ;;
14227     esac
14228   fi
14229   ;;
14230 esac
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14297
14298 library_names_spec=
14299 libname_spec='lib$name'
14300 soname_spec=
14301 shrext_cmds=".so"
14302 postinstall_cmds=
14303 postuninstall_cmds=
14304 finish_cmds=
14305 finish_eval=
14306 shlibpath_var=
14307 shlibpath_overrides_runpath=unknown
14308 version_type=none
14309 dynamic_linker="$host_os ld.so"
14310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14311 need_lib_prefix=unknown
14312 hardcode_into_libs=no
14313
14314 # when you set need_version to no, make sure it does not cause -set_version
14315 # flags to be left without arguments
14316 need_version=unknown
14317
14318 case $host_os in
14319 aix3*)
14320   version_type=linux
14321   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14322   shlibpath_var=LIBPATH
14323
14324   # AIX 3 has no versioning support, so we append a major version to the name.
14325   soname_spec='${libname}${release}${shared_ext}$major'
14326   ;;
14327
14328 aix[4-9]*)
14329   version_type=linux
14330   need_lib_prefix=no
14331   need_version=no
14332   hardcode_into_libs=yes
14333   if test "$host_cpu" = ia64; then
14334     # AIX 5 supports IA64
14335     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14336     shlibpath_var=LD_LIBRARY_PATH
14337   else
14338     # With GCC up to 2.95.x, collect2 would create an import file
14339     # for dependence libraries.  The import file would start with
14340     # the line `#! .'.  This would cause the generated library to
14341     # depend on `.', always an invalid library.  This was fixed in
14342     # development snapshots of GCC prior to 3.0.
14343     case $host_os in
14344       aix4 | aix4.[01] | aix4.[01].*)
14345       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14346            echo ' yes '
14347            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14348         :
14349       else
14350         can_build_shared=no
14351       fi
14352       ;;
14353     esac
14354     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14355     # soname into executable. Probably we can add versioning support to
14356     # collect2, so additional links can be useful in future.
14357     if test "$aix_use_runtimelinking" = yes; then
14358       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14359       # instead of lib<name>.a to let people know that these are not
14360       # typical AIX shared libraries.
14361       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362     else
14363       # We preserve .a as extension for shared libraries through AIX4.2
14364       # and later when we are not doing run time linking.
14365       library_names_spec='${libname}${release}.a $libname.a'
14366       soname_spec='${libname}${release}${shared_ext}$major'
14367     fi
14368     shlibpath_var=LIBPATH
14369   fi
14370   ;;
14371
14372 amigaos*)
14373   case $host_cpu in
14374   powerpc)
14375     # Since July 2007 AmigaOS4 officially supports .so libraries.
14376     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378     ;;
14379   m68k)
14380     library_names_spec='$libname.ixlibrary $libname.a'
14381     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14382     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'
14383     ;;
14384   esac
14385   ;;
14386
14387 beos*)
14388   library_names_spec='${libname}${shared_ext}'
14389   dynamic_linker="$host_os ld.so"
14390   shlibpath_var=LIBRARY_PATH
14391   ;;
14392
14393 bsdi[45]*)
14394   version_type=linux
14395   need_version=no
14396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397   soname_spec='${libname}${release}${shared_ext}$major'
14398   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14399   shlibpath_var=LD_LIBRARY_PATH
14400   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14401   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14402   # the default ld.so.conf also contains /usr/contrib/lib and
14403   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14404   # libtool to hard-code these into programs
14405   ;;
14406
14407 cygwin* | mingw* | pw32* | cegcc*)
14408   version_type=windows
14409   shrext_cmds=".dll"
14410   need_version=no
14411   need_lib_prefix=no
14412
14413   case $GCC,$host_os in
14414   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14415     library_names_spec='$libname.dll.a'
14416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14417     postinstall_cmds='base_file=`basename \${file}`~
14418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14419       dldir=$destdir/`dirname \$dlpath`~
14420       test -d \$dldir || mkdir -p \$dldir~
14421       $install_prog $dir/$dlname \$dldir/$dlname~
14422       chmod a+x \$dldir/$dlname~
14423       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14424         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14425       fi'
14426     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14427       dlpath=$dir/\$dldll~
14428        $RM \$dlpath'
14429     shlibpath_overrides_runpath=yes
14430
14431     case $host_os in
14432     cygwin*)
14433       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14434       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14435       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14436       ;;
14437     mingw* | cegcc*)
14438       # MinGW DLLs use traditional 'lib' prefix
14439       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14442         # It is most probably a Windows format PATH printed by
14443         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14444         # path with ; separators, and with drive letters. We can handle the
14445         # drive letters (cygwin fileutils understands them), so leave them,
14446         # especially as we might pass files found there to a mingw objdump,
14447         # which wouldn't understand a cygwinified path. Ahh.
14448         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14449       else
14450         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14451       fi
14452       ;;
14453     pw32*)
14454       # pw32 DLLs use 'pw' prefix rather than 'lib'
14455       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456       ;;
14457     esac
14458     ;;
14459
14460   *)
14461     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14462     ;;
14463   esac
14464   dynamic_linker='Win32 ld.exe'
14465   # FIXME: first we should search . and the directory the executable is in
14466   shlibpath_var=PATH
14467   ;;
14468
14469 darwin* | rhapsody*)
14470   dynamic_linker="$host_os dyld"
14471   version_type=darwin
14472   need_lib_prefix=no
14473   need_version=no
14474   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14475   soname_spec='${libname}${release}${major}$shared_ext'
14476   shlibpath_overrides_runpath=yes
14477   shlibpath_var=DYLD_LIBRARY_PATH
14478   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14479
14480   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14481   ;;
14482
14483 dgux*)
14484   version_type=linux
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   ;;
14491
14492 freebsd1*)
14493   dynamic_linker=no
14494   ;;
14495
14496 freebsd* | dragonfly*)
14497   # DragonFly does not have aout.  When/if they implement a new
14498   # versioning mechanism, adjust this.
14499   if test -x /usr/bin/objformat; then
14500     objformat=`/usr/bin/objformat`
14501   else
14502     case $host_os in
14503     freebsd[123]*) objformat=aout ;;
14504     *) objformat=elf ;;
14505     esac
14506   fi
14507   version_type=freebsd-$objformat
14508   case $version_type in
14509     freebsd-elf*)
14510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14511       need_version=no
14512       need_lib_prefix=no
14513       ;;
14514     freebsd-*)
14515       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14516       need_version=yes
14517       ;;
14518   esac
14519   shlibpath_var=LD_LIBRARY_PATH
14520   case $host_os in
14521   freebsd2*)
14522     shlibpath_overrides_runpath=yes
14523     ;;
14524   freebsd3.[01]* | freebsdelf3.[01]*)
14525     shlibpath_overrides_runpath=yes
14526     hardcode_into_libs=yes
14527     ;;
14528   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14529   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14530     shlibpath_overrides_runpath=no
14531     hardcode_into_libs=yes
14532     ;;
14533   *) # from 4.6 on, and DragonFly
14534     shlibpath_overrides_runpath=yes
14535     hardcode_into_libs=yes
14536     ;;
14537   esac
14538   ;;
14539
14540 gnu*)
14541   version_type=linux
14542   need_lib_prefix=no
14543   need_version=no
14544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14545   soname_spec='${libname}${release}${shared_ext}$major'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   hardcode_into_libs=yes
14548   ;;
14549
14550 hpux9* | hpux10* | hpux11*)
14551   # Give a soname corresponding to the major version so that dld.sl refuses to
14552   # link against other versions.
14553   version_type=sunos
14554   need_lib_prefix=no
14555   need_version=no
14556   case $host_cpu in
14557   ia64*)
14558     shrext_cmds='.so'
14559     hardcode_into_libs=yes
14560     dynamic_linker="$host_os dld.so"
14561     shlibpath_var=LD_LIBRARY_PATH
14562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564     soname_spec='${libname}${release}${shared_ext}$major'
14565     if test "X$HPUX_IA64_MODE" = X32; then
14566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14567     else
14568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14569     fi
14570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14571     ;;
14572   hppa*64*)
14573     shrext_cmds='.sl'
14574     hardcode_into_libs=yes
14575     dynamic_linker="$host_os dld.sl"
14576     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579     soname_spec='${libname}${release}${shared_ext}$major'
14580     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582     ;;
14583   *)
14584     shrext_cmds='.sl'
14585     dynamic_linker="$host_os dld.sl"
14586     shlibpath_var=SHLIB_PATH
14587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589     soname_spec='${libname}${release}${shared_ext}$major'
14590     ;;
14591   esac
14592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14593   postinstall_cmds='chmod 555 $lib'
14594   ;;
14595
14596 interix[3-9]*)
14597   version_type=linux
14598   need_lib_prefix=no
14599   need_version=no
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14601   soname_spec='${libname}${release}${shared_ext}$major'
14602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14603   shlibpath_var=LD_LIBRARY_PATH
14604   shlibpath_overrides_runpath=no
14605   hardcode_into_libs=yes
14606   ;;
14607
14608 irix5* | irix6* | nonstopux*)
14609   case $host_os in
14610     nonstopux*) version_type=nonstopux ;;
14611     *)
14612         if test "$lt_cv_prog_gnu_ld" = yes; then
14613                 version_type=linux
14614         else
14615                 version_type=irix
14616         fi ;;
14617   esac
14618   need_lib_prefix=no
14619   need_version=no
14620   soname_spec='${libname}${release}${shared_ext}$major'
14621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14622   case $host_os in
14623   irix5* | nonstopux*)
14624     libsuff= shlibsuff=
14625     ;;
14626   *)
14627     case $LD in # libtool.m4 will add one of these switches to LD
14628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14629       libsuff= shlibsuff= libmagic=32-bit;;
14630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14631       libsuff=32 shlibsuff=N32 libmagic=N32;;
14632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14634     *) libsuff= shlibsuff= libmagic=never-match;;
14635     esac
14636     ;;
14637   esac
14638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14639   shlibpath_overrides_runpath=no
14640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14642   hardcode_into_libs=yes
14643   ;;
14644
14645 # No shared lib support for Linux oldld, aout, or coff.
14646 linux*oldld* | linux*aout* | linux*coff*)
14647   dynamic_linker=no
14648   ;;
14649
14650 # This must be Linux ELF.
14651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14652   version_type=linux
14653   need_lib_prefix=no
14654   need_version=no
14655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656   soname_spec='${libname}${release}${shared_ext}$major'
14657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658   shlibpath_var=LD_LIBRARY_PATH
14659   shlibpath_overrides_runpath=no
14660   # Some binutils ld are patched to set DT_RUNPATH
14661   save_LDFLAGS=$LDFLAGS
14662   save_libdir=$libdir
14663   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14664        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h.  */
14667
14668 int
14669 main ()
14670 {
14671
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 if ac_fn_cxx_try_link "$LINENO"; then :
14677   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14678   shlibpath_overrides_runpath=yes
14679 fi
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext \
14682     conftest$ac_exeext conftest.$ac_ext
14683   LDFLAGS=$save_LDFLAGS
14684   libdir=$save_libdir
14685
14686   # This implies no fast_install, which is unacceptable.
14687   # Some rework will be needed to allow for fast_install
14688   # before this can be enabled.
14689   hardcode_into_libs=yes
14690
14691   # Append ld.so.conf contents to the search path
14692   if test -f /etc/ld.so.conf; then
14693     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' ' '`
14694     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14695   fi
14696
14697   # We used to test for /lib/ld.so.1 and disable shared libraries on
14698   # powerpc, because MkLinux only supported shared libraries with the
14699   # GNU dynamic linker.  Since this was broken with cross compilers,
14700   # most powerpc-linux boxes support dynamic linking these days and
14701   # people can always --disable-shared, the test was removed, and we
14702   # assume the GNU/Linux dynamic linker is in use.
14703   dynamic_linker='GNU/Linux ld.so'
14704   ;;
14705
14706 netbsdelf*-gnu)
14707   version_type=linux
14708   need_lib_prefix=no
14709   need_version=no
14710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14711   soname_spec='${libname}${release}${shared_ext}$major'
14712   shlibpath_var=LD_LIBRARY_PATH
14713   shlibpath_overrides_runpath=no
14714   hardcode_into_libs=yes
14715   dynamic_linker='NetBSD ld.elf_so'
14716   ;;
14717
14718 netbsd*)
14719   version_type=sunos
14720   need_lib_prefix=no
14721   need_version=no
14722   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14724     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14725     dynamic_linker='NetBSD (a.out) ld.so'
14726   else
14727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14728     soname_spec='${libname}${release}${shared_ext}$major'
14729     dynamic_linker='NetBSD ld.elf_so'
14730   fi
14731   shlibpath_var=LD_LIBRARY_PATH
14732   shlibpath_overrides_runpath=yes
14733   hardcode_into_libs=yes
14734   ;;
14735
14736 newsos6)
14737   version_type=linux
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739   shlibpath_var=LD_LIBRARY_PATH
14740   shlibpath_overrides_runpath=yes
14741   ;;
14742
14743 *nto* | *qnx*)
14744   version_type=qnx
14745   need_lib_prefix=no
14746   need_version=no
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748   soname_spec='${libname}${release}${shared_ext}$major'
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=no
14751   hardcode_into_libs=yes
14752   dynamic_linker='ldqnx.so'
14753   ;;
14754
14755 openbsd*)
14756   version_type=sunos
14757   sys_lib_dlsearch_path_spec="/usr/lib"
14758   need_lib_prefix=no
14759   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14760   case $host_os in
14761     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14762     *)                          need_version=no  ;;
14763   esac
14764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14766   shlibpath_var=LD_LIBRARY_PATH
14767   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14768     case $host_os in
14769       openbsd2.[89] | openbsd2.[89].*)
14770         shlibpath_overrides_runpath=no
14771         ;;
14772       *)
14773         shlibpath_overrides_runpath=yes
14774         ;;
14775       esac
14776   else
14777     shlibpath_overrides_runpath=yes
14778   fi
14779   ;;
14780
14781 os2*)
14782   libname_spec='$name'
14783   shrext_cmds=".dll"
14784   need_lib_prefix=no
14785   library_names_spec='$libname${shared_ext} $libname.a'
14786   dynamic_linker='OS/2 ld.exe'
14787   shlibpath_var=LIBPATH
14788   ;;
14789
14790 osf3* | osf4* | osf5*)
14791   version_type=osf
14792   need_lib_prefix=no
14793   need_version=no
14794   soname_spec='${libname}${release}${shared_ext}$major'
14795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14798   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14799   ;;
14800
14801 rdos*)
14802   dynamic_linker=no
14803   ;;
14804
14805 solaris*)
14806   version_type=linux
14807   need_lib_prefix=no
14808   need_version=no
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   shlibpath_var=LD_LIBRARY_PATH
14812   shlibpath_overrides_runpath=yes
14813   hardcode_into_libs=yes
14814   # ldd complains unless libraries are executable
14815   postinstall_cmds='chmod +x $lib'
14816   ;;
14817
14818 sunos4*)
14819   version_type=sunos
14820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14821   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14822   shlibpath_var=LD_LIBRARY_PATH
14823   shlibpath_overrides_runpath=yes
14824   if test "$with_gnu_ld" = yes; then
14825     need_lib_prefix=no
14826   fi
14827   need_version=yes
14828   ;;
14829
14830 sysv4 | sysv4.3*)
14831   version_type=linux
14832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833   soname_spec='${libname}${release}${shared_ext}$major'
14834   shlibpath_var=LD_LIBRARY_PATH
14835   case $host_vendor in
14836     sni)
14837       shlibpath_overrides_runpath=no
14838       need_lib_prefix=no
14839       runpath_var=LD_RUN_PATH
14840       ;;
14841     siemens)
14842       need_lib_prefix=no
14843       ;;
14844     motorola)
14845       need_lib_prefix=no
14846       need_version=no
14847       shlibpath_overrides_runpath=no
14848       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14849       ;;
14850   esac
14851   ;;
14852
14853 sysv4*MP*)
14854   if test -d /usr/nec ;then
14855     version_type=linux
14856     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14857     soname_spec='$libname${shared_ext}.$major'
14858     shlibpath_var=LD_LIBRARY_PATH
14859   fi
14860   ;;
14861
14862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14863   version_type=freebsd-elf
14864   need_lib_prefix=no
14865   need_version=no
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14867   soname_spec='${libname}${release}${shared_ext}$major'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   shlibpath_overrides_runpath=yes
14870   hardcode_into_libs=yes
14871   if test "$with_gnu_ld" = yes; then
14872     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14873   else
14874     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14875     case $host_os in
14876       sco3.2v5*)
14877         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14878         ;;
14879     esac
14880   fi
14881   sys_lib_dlsearch_path_spec='/usr/lib'
14882   ;;
14883
14884 tpf*)
14885   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14886   version_type=linux
14887   need_lib_prefix=no
14888   need_version=no
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890   shlibpath_var=LD_LIBRARY_PATH
14891   shlibpath_overrides_runpath=no
14892   hardcode_into_libs=yes
14893   ;;
14894
14895 uts4*)
14896   version_type=linux
14897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898   soname_spec='${libname}${release}${shared_ext}$major'
14899   shlibpath_var=LD_LIBRARY_PATH
14900   ;;
14901
14902 *)
14903   dynamic_linker=no
14904   ;;
14905 esac
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14907 $as_echo "$dynamic_linker" >&6; }
14908 test "$dynamic_linker" = no && can_build_shared=no
14909
14910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14911 if test "$GCC" = yes; then
14912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14913 fi
14914
14915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14916   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14917 fi
14918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14919   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14920 fi
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14958 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14959 hardcode_action_CXX=
14960 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14961    test -n "$runpath_var_CXX" ||
14962    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14963
14964   # We can hardcode non-existent directories.
14965   if test "$hardcode_direct_CXX" != no &&
14966      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14967      # have to relink, otherwise we might link with an installed library
14968      # when we should be linking with a yet-to-be-installed one
14969      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14970      test "$hardcode_minus_L_CXX" != no; then
14971     # Linking always hardcodes the temporary library directory.
14972     hardcode_action_CXX=relink
14973   else
14974     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14975     hardcode_action_CXX=immediate
14976   fi
14977 else
14978   # We cannot hardcode anything, or else we can only hardcode existing
14979   # directories.
14980   hardcode_action_CXX=unsupported
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14983 $as_echo "$hardcode_action_CXX" >&6; }
14984
14985 if test "$hardcode_action_CXX" = relink ||
14986    test "$inherit_rpath_CXX" = yes; then
14987   # Fast installation is not supported
14988   enable_fast_install=no
14989 elif test "$shlibpath_overrides_runpath" = yes ||
14990      test "$enable_shared" = no; then
14991   # Fast installation is not necessary
14992   enable_fast_install=needless
14993 fi
14994
14995
14996
14997
14998
14999
15000
15001   fi # test -n "$compiler"
15002
15003   CC=$lt_save_CC
15004   LDCXX=$LD
15005   LD=$lt_save_LD
15006   GCC=$lt_save_GCC
15007   with_gnu_ld=$lt_save_with_gnu_ld
15008   lt_cv_path_LDCXX=$lt_cv_path_LD
15009   lt_cv_path_LD=$lt_save_path_LD
15010   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15011   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15012 fi # test "$_lt_caught_CXX_error" != yes
15013
15014 ac_ext=cpp
15015 ac_cpp='$CXXCPP $CPPFLAGS'
15016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032         ac_config_commands="$ac_config_commands libtool"
15033
15034
15035
15036
15037 # Only expand once:
15038
15039
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15041 $as_echo_n "checking for ANSI C header files... " >&6; }
15042 if test "${ac_cv_header_stdc+set}" = set; then :
15043   $as_echo_n "(cached) " >&6
15044 else
15045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h.  */
15047 #include <stdlib.h>
15048 #include <stdarg.h>
15049 #include <string.h>
15050 #include <float.h>
15051
15052 int
15053 main ()
15054 {
15055
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 if ac_fn_cxx_try_compile "$LINENO"; then :
15061   ac_cv_header_stdc=yes
15062 else
15063   ac_cv_header_stdc=no
15064 fi
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15066
15067 if test $ac_cv_header_stdc = yes; then
15068   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h.  */
15071 #include <string.h>
15072
15073 _ACEOF
15074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15075   $EGREP "memchr" >/dev/null 2>&1; then :
15076
15077 else
15078   ac_cv_header_stdc=no
15079 fi
15080 rm -f conftest*
15081
15082 fi
15083
15084 if test $ac_cv_header_stdc = yes; then
15085   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h.  */
15088 #include <stdlib.h>
15089
15090 _ACEOF
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092   $EGREP "free" >/dev/null 2>&1; then :
15093
15094 else
15095   ac_cv_header_stdc=no
15096 fi
15097 rm -f conftest*
15098
15099 fi
15100
15101 if test $ac_cv_header_stdc = yes; then
15102   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15103   if test "$cross_compiling" = yes; then :
15104   :
15105 else
15106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h.  */
15108 #include <ctype.h>
15109 #include <stdlib.h>
15110 #if ((' ' & 0x0FF) == 0x020)
15111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15113 #else
15114 # define ISLOWER(c) \
15115                    (('a' <= (c) && (c) <= 'i') \
15116                      || ('j' <= (c) && (c) <= 'r') \
15117                      || ('s' <= (c) && (c) <= 'z'))
15118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15119 #endif
15120
15121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15122 int
15123 main ()
15124 {
15125   int i;
15126   for (i = 0; i < 256; i++)
15127     if (XOR (islower (i), ISLOWER (i))
15128         || toupper (i) != TOUPPER (i))
15129       return 2;
15130   return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_cxx_try_run "$LINENO"; then :
15134
15135 else
15136   ac_cv_header_stdc=no
15137 fi
15138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15139   conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 fi
15141
15142 fi
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15145 $as_echo "$ac_cv_header_stdc" >&6; }
15146 if test $ac_cv_header_stdc = yes; then
15147
15148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15149
15150 fi
15151
15152 for ac_header in inttypes.h stdint.h malloc.h
15153 do :
15154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15156 eval as_val=\$$as_ac_Header
15157    if test "x$as_val" = x""yes; then :
15158   cat >>confdefs.h <<_ACEOF
15159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 _ACEOF
15161
15162 fi
15163
15164 done
15165
15166 for ac_func in setenv
15167 do :
15168   ac_fn_cxx_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15169 if test "x$ac_cv_func_setenv" = x""yes; then :
15170   cat >>confdefs.h <<_ACEOF
15171 #define HAVE_SETENV 1
15172 _ACEOF
15173
15174 fi
15175 done
15176
15177
15178 CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
15179 # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
15180
15181
15182 case "$host" in
15183         *mingw32* )
15184                 MINGW32=yes
15185                 ;;
15186 esac
15187  if test "x$MINGW32" = "xyes"; then
15188   MINGW32_TRUE=
15189   MINGW32_FALSE='#'
15190 else
15191   MINGW32_TRUE='#'
15192   MINGW32_FALSE=
15193 fi
15194
15195
15196 case ${target_os} in
15197         *sun* | *solaris*)
15198                 CXXFLAGS="$CXXFLAGS -fpermissive"
15199                 ;;
15200 esac
15201
15202 # portable types. requires autoconf 2.60
15203 # `configure' will check if these are defined in system headers.
15204 # if not, it will auto-detect and define them in `config.h'
15205 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
15206 case $ac_cv_c_int8_t in #(
15207   no|yes) ;; #(
15208   *)
15209
15210 cat >>confdefs.h <<_ACEOF
15211 #define int8_t $ac_cv_c_int8_t
15212 _ACEOF
15213 ;;
15214 esac
15215
15216 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15217 case $ac_cv_c_uint8_t in #(
15218   no|yes) ;; #(
15219   *)
15220
15221 $as_echo "#define _UINT8_T 1" >>confdefs.h
15222
15223
15224 cat >>confdefs.h <<_ACEOF
15225 #define uint8_t $ac_cv_c_uint8_t
15226 _ACEOF
15227 ;;
15228   esac
15229
15230 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15231 case $ac_cv_c_int16_t in #(
15232   no|yes) ;; #(
15233   *)
15234
15235 cat >>confdefs.h <<_ACEOF
15236 #define int16_t $ac_cv_c_int16_t
15237 _ACEOF
15238 ;;
15239 esac
15240
15241 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15242 case $ac_cv_c_uint16_t in #(
15243   no|yes) ;; #(
15244   *)
15245
15246
15247 cat >>confdefs.h <<_ACEOF
15248 #define uint16_t $ac_cv_c_uint16_t
15249 _ACEOF
15250 ;;
15251   esac
15252
15253 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15254 case $ac_cv_c_int32_t in #(
15255   no|yes) ;; #(
15256   *)
15257
15258 cat >>confdefs.h <<_ACEOF
15259 #define int32_t $ac_cv_c_int32_t
15260 _ACEOF
15261 ;;
15262 esac
15263
15264 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15265 case $ac_cv_c_uint32_t in #(
15266   no|yes) ;; #(
15267   *)
15268
15269 $as_echo "#define _UINT32_T 1" >>confdefs.h
15270
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define uint32_t $ac_cv_c_uint32_t
15274 _ACEOF
15275 ;;
15276   esac
15277
15278 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15279 case $ac_cv_c_int64_t in #(
15280   no|yes) ;; #(
15281   *)
15282
15283 cat >>confdefs.h <<_ACEOF
15284 #define int64_t $ac_cv_c_int64_t
15285 _ACEOF
15286 ;;
15287 esac
15288
15289 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15290 case $ac_cv_c_uint64_t in #(
15291   no|yes) ;; #(
15292   *)
15293
15294 $as_echo "#define _UINT64_T 1" >>confdefs.h
15295
15296
15297 cat >>confdefs.h <<_ACEOF
15298 #define uint64_t $ac_cv_c_uint64_t
15299 _ACEOF
15300 ;;
15301   esac
15302
15303
15304
15305 ac_config_files="$ac_config_files Makefile src/Makefile libmodplug.pc"
15306
15307 cat >confcache <<\_ACEOF
15308 # This file is a shell script that caches the results of configure
15309 # tests run on this system so they can be shared between configure
15310 # scripts and configure runs, see configure's option --config-cache.
15311 # It is not useful on other systems.  If it contains results you don't
15312 # want to keep, you may remove or edit it.
15313 #
15314 # config.status only pays attention to the cache file if you give it
15315 # the --recheck option to rerun configure.
15316 #
15317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15319 # following values.
15320
15321 _ACEOF
15322
15323 # The following way of writing the cache mishandles newlines in values,
15324 # but we know of no workaround that is simple, portable, and efficient.
15325 # So, we kill variables containing newlines.
15326 # Ultrix sh set writes to stderr and can't be redirected directly,
15327 # and sets the high bit in the cache file unless we assign to the vars.
15328 (
15329   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15330     eval ac_val=\$$ac_var
15331     case $ac_val in #(
15332     *${as_nl}*)
15333       case $ac_var in #(
15334       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15336       esac
15337       case $ac_var in #(
15338       _ | IFS | as_nl) ;; #(
15339       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15340       *) { eval $ac_var=; unset $ac_var;} ;;
15341       esac ;;
15342     esac
15343   done
15344
15345   (set) 2>&1 |
15346     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15347     *${as_nl}ac_space=\ *)
15348       # `set' does not quote correctly, so add quotes: double-quote
15349       # substitution turns \\\\ into \\, and sed turns \\ into \.
15350       sed -n \
15351         "s/'/'\\\\''/g;
15352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15353       ;; #(
15354     *)
15355       # `set' quotes correctly as required by POSIX, so do not add quotes.
15356       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15357       ;;
15358     esac |
15359     sort
15360 ) |
15361   sed '
15362      /^ac_cv_env_/b end
15363      t clear
15364      :clear
15365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15366      t end
15367      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15368      :end' >>confcache
15369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15370   if test -w "$cache_file"; then
15371     test "x$cache_file" != "x/dev/null" &&
15372       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15373 $as_echo "$as_me: updating cache $cache_file" >&6;}
15374     cat confcache >$cache_file
15375   else
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15377 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15378   fi
15379 fi
15380 rm -f confcache
15381
15382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15383 # Let make expand exec_prefix.
15384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15385
15386 DEFS=-DHAVE_CONFIG_H
15387
15388 ac_libobjs=
15389 ac_ltlibobjs=
15390 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15391   # 1. Remove the extension, and $U if already installed.
15392   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15393   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15394   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15395   #    will be set to the directory where LIBOBJS objects are built.
15396   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15397   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15398 done
15399 LIBOBJS=$ac_libobjs
15400
15401 LTLIBOBJS=$ac_ltlibobjs
15402
15403
15404  if test -n "$EXEEXT"; then
15405   am__EXEEXT_TRUE=
15406   am__EXEEXT_FALSE='#'
15407 else
15408   am__EXEEXT_TRUE='#'
15409   am__EXEEXT_FALSE=
15410 fi
15411
15412 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15413   as_fn_error "conditional \"AMDEP\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415 fi
15416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15417   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419 fi
15420 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15421   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15423 fi
15424
15425 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15426   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428 fi
15429 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
15430   as_fn_error "conditional \"MINGW32\" was never defined.
15431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15432 fi
15433
15434 : ${CONFIG_STATUS=./config.status}
15435 ac_write_fail=0
15436 ac_clean_files_save=$ac_clean_files
15437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15440 as_write_fail=0
15441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15442 #! $SHELL
15443 # Generated by $as_me.
15444 # Run this file to recreate the current configuration.
15445 # Compiler output produced by configure, useful for debugging
15446 # configure, is in config.log if it exists.
15447
15448 debug=false
15449 ac_cs_recheck=false
15450 ac_cs_silent=false
15451
15452 SHELL=\${CONFIG_SHELL-$SHELL}
15453 export SHELL
15454 _ASEOF
15455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15456 ## -------------------- ##
15457 ## M4sh Initialization. ##
15458 ## -------------------- ##
15459
15460 # Be more Bourne compatible
15461 DUALCASE=1; export DUALCASE # for MKS sh
15462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15463   emulate sh
15464   NULLCMD=:
15465   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15466   # is contrary to our usage.  Disable this feature.
15467   alias -g '${1+"$@"}'='"$@"'
15468   setopt NO_GLOB_SUBST
15469 else
15470   case `(set -o) 2>/dev/null` in #(
15471   *posix*) :
15472     set -o posix ;; #(
15473   *) :
15474      ;;
15475 esac
15476 fi
15477
15478
15479 as_nl='
15480 '
15481 export as_nl
15482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15486 # Prefer a ksh shell builtin over an external printf program on Solaris,
15487 # but without wasting forks for bash or zsh.
15488 if test -z "$BASH_VERSION$ZSH_VERSION" \
15489     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15490   as_echo='print -r --'
15491   as_echo_n='print -rn --'
15492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15493   as_echo='printf %s\n'
15494   as_echo_n='printf %s'
15495 else
15496   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15497     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15498     as_echo_n='/usr/ucb/echo -n'
15499   else
15500     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15501     as_echo_n_body='eval
15502       arg=$1;
15503       case $arg in #(
15504       *"$as_nl"*)
15505         expr "X$arg" : "X\\(.*\\)$as_nl";
15506         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15507       esac;
15508       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15509     '
15510     export as_echo_n_body
15511     as_echo_n='sh -c $as_echo_n_body as_echo'
15512   fi
15513   export as_echo_body
15514   as_echo='sh -c $as_echo_body as_echo'
15515 fi
15516
15517 # The user is always right.
15518 if test "${PATH_SEPARATOR+set}" != set; then
15519   PATH_SEPARATOR=:
15520   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15521     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15522       PATH_SEPARATOR=';'
15523   }
15524 fi
15525
15526
15527 # IFS
15528 # We need space, tab and new line, in precisely that order.  Quoting is
15529 # there to prevent editors from complaining about space-tab.
15530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15531 # splitting by setting IFS to empty value.)
15532 IFS=" ""        $as_nl"
15533
15534 # Find who we are.  Look in the path if we contain no directory separator.
15535 case $0 in #((
15536   *[\\/]* ) as_myself=$0 ;;
15537   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15539 do
15540   IFS=$as_save_IFS
15541   test -z "$as_dir" && as_dir=.
15542     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15543   done
15544 IFS=$as_save_IFS
15545
15546      ;;
15547 esac
15548 # We did not find ourselves, most probably we were run as `sh COMMAND'
15549 # in which case we are not to be found in the path.
15550 if test "x$as_myself" = x; then
15551   as_myself=$0
15552 fi
15553 if test ! -f "$as_myself"; then
15554   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15555   exit 1
15556 fi
15557
15558 # Unset variables that we do not need and which cause bugs (e.g. in
15559 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15560 # suppresses any "Segmentation fault" message there.  '((' could
15561 # trigger a bug in pdksh 5.2.14.
15562 for as_var in BASH_ENV ENV MAIL MAILPATH
15563 do eval test x\${$as_var+set} = xset \
15564   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15565 done
15566 PS1='$ '
15567 PS2='> '
15568 PS4='+ '
15569
15570 # NLS nuisances.
15571 LC_ALL=C
15572 export LC_ALL
15573 LANGUAGE=C
15574 export LANGUAGE
15575
15576 # CDPATH.
15577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15578
15579
15580 # as_fn_error ERROR [LINENO LOG_FD]
15581 # ---------------------------------
15582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15584 # script with status $?, using 1 if that was 0.
15585 as_fn_error ()
15586 {
15587   as_status=$?; test $as_status -eq 0 && as_status=1
15588   if test "$3"; then
15589     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15590     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15591   fi
15592   $as_echo "$as_me: error: $1" >&2
15593   as_fn_exit $as_status
15594 } # as_fn_error
15595
15596
15597 # as_fn_set_status STATUS
15598 # -----------------------
15599 # Set $? to STATUS, without forking.
15600 as_fn_set_status ()
15601 {
15602   return $1
15603 } # as_fn_set_status
15604
15605 # as_fn_exit STATUS
15606 # -----------------
15607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15608 as_fn_exit ()
15609 {
15610   set +e
15611   as_fn_set_status $1
15612   exit $1
15613 } # as_fn_exit
15614
15615 # as_fn_unset VAR
15616 # ---------------
15617 # Portably unset VAR.
15618 as_fn_unset ()
15619 {
15620   { eval $1=; unset $1;}
15621 }
15622 as_unset=as_fn_unset
15623 # as_fn_append VAR VALUE
15624 # ----------------------
15625 # Append the text in VALUE to the end of the definition contained in VAR. Take
15626 # advantage of any shell optimizations that allow amortized linear growth over
15627 # repeated appends, instead of the typical quadratic growth present in naive
15628 # implementations.
15629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15630   eval 'as_fn_append ()
15631   {
15632     eval $1+=\$2
15633   }'
15634 else
15635   as_fn_append ()
15636   {
15637     eval $1=\$$1\$2
15638   }
15639 fi # as_fn_append
15640
15641 # as_fn_arith ARG...
15642 # ------------------
15643 # Perform arithmetic evaluation on the ARGs, and store the result in the
15644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15645 # must be portable across $(()) and expr.
15646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15647   eval 'as_fn_arith ()
15648   {
15649     as_val=$(( $* ))
15650   }'
15651 else
15652   as_fn_arith ()
15653   {
15654     as_val=`expr "$@" || test $? -eq 1`
15655   }
15656 fi # as_fn_arith
15657
15658
15659 if expr a : '\(a\)' >/dev/null 2>&1 &&
15660    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15661   as_expr=expr
15662 else
15663   as_expr=false
15664 fi
15665
15666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15667   as_basename=basename
15668 else
15669   as_basename=false
15670 fi
15671
15672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15673   as_dirname=dirname
15674 else
15675   as_dirname=false
15676 fi
15677
15678 as_me=`$as_basename -- "$0" ||
15679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15680          X"$0" : 'X\(//\)$' \| \
15681          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15682 $as_echo X/"$0" |
15683     sed '/^.*\/\([^/][^/]*\)\/*$/{
15684             s//\1/
15685             q
15686           }
15687           /^X\/\(\/\/\)$/{
15688             s//\1/
15689             q
15690           }
15691           /^X\/\(\/\).*/{
15692             s//\1/
15693             q
15694           }
15695           s/.*/./; q'`
15696
15697 # Avoid depending upon Character Ranges.
15698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15701 as_cr_digits='0123456789'
15702 as_cr_alnum=$as_cr_Letters$as_cr_digits
15703
15704 ECHO_C= ECHO_N= ECHO_T=
15705 case `echo -n x` in #(((((
15706 -n*)
15707   case `echo 'xy\c'` in
15708   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15709   xy)  ECHO_C='\c';;
15710   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15711        ECHO_T=' ';;
15712   esac;;
15713 *)
15714   ECHO_N='-n';;
15715 esac
15716
15717 rm -f conf$$ conf$$.exe conf$$.file
15718 if test -d conf$$.dir; then
15719   rm -f conf$$.dir/conf$$.file
15720 else
15721   rm -f conf$$.dir
15722   mkdir conf$$.dir 2>/dev/null
15723 fi
15724 if (echo >conf$$.file) 2>/dev/null; then
15725   if ln -s conf$$.file conf$$ 2>/dev/null; then
15726     as_ln_s='ln -s'
15727     # ... but there are two gotchas:
15728     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15729     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15730     # In both cases, we have to default to `cp -p'.
15731     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15732       as_ln_s='cp -p'
15733   elif ln conf$$.file conf$$ 2>/dev/null; then
15734     as_ln_s=ln
15735   else
15736     as_ln_s='cp -p'
15737   fi
15738 else
15739   as_ln_s='cp -p'
15740 fi
15741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15742 rmdir conf$$.dir 2>/dev/null
15743
15744
15745 # as_fn_mkdir_p
15746 # -------------
15747 # Create "$as_dir" as a directory, including parents if necessary.
15748 as_fn_mkdir_p ()
15749 {
15750
15751   case $as_dir in #(
15752   -*) as_dir=./$as_dir;;
15753   esac
15754   test -d "$as_dir" || eval $as_mkdir_p || {
15755     as_dirs=
15756     while :; do
15757       case $as_dir in #(
15758       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15759       *) as_qdir=$as_dir;;
15760       esac
15761       as_dirs="'$as_qdir' $as_dirs"
15762       as_dir=`$as_dirname -- "$as_dir" ||
15763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764          X"$as_dir" : 'X\(//\)[^/]' \| \
15765          X"$as_dir" : 'X\(//\)$' \| \
15766          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15767 $as_echo X"$as_dir" |
15768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15769             s//\1/
15770             q
15771           }
15772           /^X\(\/\/\)[^/].*/{
15773             s//\1/
15774             q
15775           }
15776           /^X\(\/\/\)$/{
15777             s//\1/
15778             q
15779           }
15780           /^X\(\/\).*/{
15781             s//\1/
15782             q
15783           }
15784           s/.*/./; q'`
15785       test -d "$as_dir" && break
15786     done
15787     test -z "$as_dirs" || eval "mkdir $as_dirs"
15788   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15789
15790
15791 } # as_fn_mkdir_p
15792 if mkdir -p . 2>/dev/null; then
15793   as_mkdir_p='mkdir -p "$as_dir"'
15794 else
15795   test -d ./-p && rmdir ./-p
15796   as_mkdir_p=false
15797 fi
15798
15799 if test -x / >/dev/null 2>&1; then
15800   as_test_x='test -x'
15801 else
15802   if ls -dL / >/dev/null 2>&1; then
15803     as_ls_L_option=L
15804   else
15805     as_ls_L_option=
15806   fi
15807   as_test_x='
15808     eval sh -c '\''
15809       if test -d "$1"; then
15810         test -d "$1/.";
15811       else
15812         case $1 in #(
15813         -*)set "./$1";;
15814         esac;
15815         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15816         ???[sx]*):;;*)false;;esac;fi
15817     '\'' sh
15818   '
15819 fi
15820 as_executable_p=$as_test_x
15821
15822 # Sed expression to map a string onto a valid CPP name.
15823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15824
15825 # Sed expression to map a string onto a valid variable name.
15826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15827
15828
15829 exec 6>&1
15830 ## ----------------------------------- ##
15831 ## Main body of $CONFIG_STATUS script. ##
15832 ## ----------------------------------- ##
15833 _ASEOF
15834 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15835
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 # Save the log message, to keep $0 and so on meaningful, and to
15838 # report actual input values of CONFIG_FILES etc. instead of their
15839 # values after options handling.
15840 ac_log="
15841 This file was extended by $as_me, which was
15842 generated by GNU Autoconf 2.65.  Invocation command line was
15843
15844   CONFIG_FILES    = $CONFIG_FILES
15845   CONFIG_HEADERS  = $CONFIG_HEADERS
15846   CONFIG_LINKS    = $CONFIG_LINKS
15847   CONFIG_COMMANDS = $CONFIG_COMMANDS
15848   $ $0 $@
15849
15850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15851 "
15852
15853 _ACEOF
15854
15855 case $ac_config_files in *"
15856 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15857 esac
15858
15859 case $ac_config_headers in *"
15860 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15861 esac
15862
15863
15864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 # Files that config.status was made for.
15866 config_files="$ac_config_files"
15867 config_headers="$ac_config_headers"
15868 config_commands="$ac_config_commands"
15869
15870 _ACEOF
15871
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 ac_cs_usage="\
15874 \`$as_me' instantiates files and other configuration actions
15875 from templates according to the current configuration.  Unless the files
15876 and actions are specified as TAGs, all are instantiated by default.
15877
15878 Usage: $0 [OPTION]... [TAG]...
15879
15880   -h, --help       print this help, then exit
15881   -V, --version    print version number and configuration settings, then exit
15882       --config     print configuration, then exit
15883   -q, --quiet, --silent
15884                    do not print progress messages
15885   -d, --debug      don't remove temporary files
15886       --recheck    update $as_me by reconfiguring in the same conditions
15887       --file=FILE[:TEMPLATE]
15888                    instantiate the configuration file FILE
15889       --header=FILE[:TEMPLATE]
15890                    instantiate the configuration header FILE
15891
15892 Configuration files:
15893 $config_files
15894
15895 Configuration headers:
15896 $config_headers
15897
15898 Configuration commands:
15899 $config_commands
15900
15901 Report bugs to the package provider."
15902
15903 _ACEOF
15904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15905 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15906 ac_cs_version="\\
15907 config.status
15908 configured by $0, generated by GNU Autoconf 2.65,
15909   with options \\"\$ac_cs_config\\"
15910
15911 Copyright (C) 2009 Free Software Foundation, Inc.
15912 This config.status script is free software; the Free Software Foundation
15913 gives unlimited permission to copy, distribute and modify it."
15914
15915 ac_pwd='$ac_pwd'
15916 srcdir='$srcdir'
15917 INSTALL='$INSTALL'
15918 MKDIR_P='$MKDIR_P'
15919 AWK='$AWK'
15920 test -n "\$AWK" || AWK=awk
15921 _ACEOF
15922
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 # The default lists apply if the user does not specify any file.
15925 ac_need_defaults=:
15926 while test $# != 0
15927 do
15928   case $1 in
15929   --*=*)
15930     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15931     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15932     ac_shift=:
15933     ;;
15934   *)
15935     ac_option=$1
15936     ac_optarg=$2
15937     ac_shift=shift
15938     ;;
15939   esac
15940
15941   case $ac_option in
15942   # Handling of the options.
15943   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15944     ac_cs_recheck=: ;;
15945   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15946     $as_echo "$ac_cs_version"; exit ;;
15947   --config | --confi | --conf | --con | --co | --c )
15948     $as_echo "$ac_cs_config"; exit ;;
15949   --debug | --debu | --deb | --de | --d | -d )
15950     debug=: ;;
15951   --file | --fil | --fi | --f )
15952     $ac_shift
15953     case $ac_optarg in
15954     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15955     esac
15956     as_fn_append CONFIG_FILES " '$ac_optarg'"
15957     ac_need_defaults=false;;
15958   --header | --heade | --head | --hea )
15959     $ac_shift
15960     case $ac_optarg in
15961     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15962     esac
15963     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15964     ac_need_defaults=false;;
15965   --he | --h)
15966     # Conflict between --help and --header
15967     as_fn_error "ambiguous option: \`$1'
15968 Try \`$0 --help' for more information.";;
15969   --help | --hel | -h )
15970     $as_echo "$ac_cs_usage"; exit ;;
15971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15972   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15973     ac_cs_silent=: ;;
15974
15975   # This is an error.
15976   -*) as_fn_error "unrecognized option: \`$1'
15977 Try \`$0 --help' for more information." ;;
15978
15979   *) as_fn_append ac_config_targets " $1"
15980      ac_need_defaults=false ;;
15981
15982   esac
15983   shift
15984 done
15985
15986 ac_configure_extra_args=
15987
15988 if $ac_cs_silent; then
15989   exec 6>/dev/null
15990   ac_configure_extra_args="$ac_configure_extra_args --silent"
15991 fi
15992
15993 _ACEOF
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 if \$ac_cs_recheck; then
15996   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15997   shift
15998   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15999   CONFIG_SHELL='$SHELL'
16000   export CONFIG_SHELL
16001   exec "\$@"
16002 fi
16003
16004 _ACEOF
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006 exec 5>>config.log
16007 {
16008   echo
16009   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16010 ## Running $as_me. ##
16011 _ASBOX
16012   $as_echo "$ac_log"
16013 } >&5
16014
16015 _ACEOF
16016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16017 #
16018 # INIT-COMMANDS
16019 #
16020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16021
16022
16023 # The HP-UX ksh and POSIX shell print the target directory to stdout
16024 # if CDPATH is set.
16025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16026
16027 sed_quote_subst='$sed_quote_subst'
16028 double_quote_subst='$double_quote_subst'
16029 delay_variable_subst='$delay_variable_subst'
16030 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16031 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16032 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16033 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16034 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16035 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16036 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16037 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16038 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16039 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16040 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16041 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16042 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16043 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16044 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16045 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16046 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16047 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16048 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16049 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16050 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16051 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16052 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16053 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16054 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16055 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16056 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16057 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16058 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16059 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16060 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16061 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16062 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16063 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16064 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16065 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16066 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16067 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16068 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16069 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16070 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16071 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16072 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16073 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16074 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16076 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"`'
16077 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"`'
16078 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16079 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16080 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16081 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16082 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16083 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16084 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16085 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16086 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16087 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16088 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16089 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16090 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16091 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16092 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16093 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16094 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16095 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16096 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16097 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16098 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16099 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16100 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16101 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16102 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16103 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16104 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16105 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16106 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16107 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16108 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16109 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16110 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16111 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16112 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16113 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16114 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16115 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16116 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16117 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16118 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16119 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16120 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16121 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16122 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16123 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16124 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16125 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16126 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16127 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16128 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16129 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16130 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16131 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16132 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16133 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16134 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16135 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16136 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16137 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16138 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16139 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16140 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16141 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16142 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16143 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16144 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16145 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16146 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16147 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16148 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16149 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16150 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16151 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16152 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16153 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16154 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16155 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16156 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16157 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16158 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16159 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16160 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16161 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16162 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16163 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16164 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16165 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16166 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16167 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16168 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16169 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16170 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16171 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16172 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16173 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16174 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16175 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16176 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16177 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16178 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16179 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16180 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16181 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16182 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16183 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16184 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16185 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16186 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16187 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16188 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16189 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16190 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16191 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16192 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16193 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16194 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16195 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16196 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16197 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16198 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16199 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16200 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16201 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16202 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16203
16204 LTCC='$LTCC'
16205 LTCFLAGS='$LTCFLAGS'
16206 compiler='$compiler_DEFAULT'
16207
16208 # Quote evaled strings.
16209 for var in SED \
16210 GREP \
16211 EGREP \
16212 FGREP \
16213 LD \
16214 NM \
16215 LN_S \
16216 lt_SP2NL \
16217 lt_NL2SP \
16218 reload_flag \
16219 deplibs_check_method \
16220 file_magic_cmd \
16221 AR \
16222 AR_FLAGS \
16223 STRIP \
16224 RANLIB \
16225 CC \
16226 CFLAGS \
16227 compiler \
16228 lt_cv_sys_global_symbol_pipe \
16229 lt_cv_sys_global_symbol_to_cdecl \
16230 lt_cv_sys_global_symbol_to_c_name_address \
16231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16232 SHELL \
16233 ECHO \
16234 lt_prog_compiler_no_builtin_flag \
16235 lt_prog_compiler_wl \
16236 lt_prog_compiler_pic \
16237 lt_prog_compiler_static \
16238 lt_cv_prog_compiler_c_o \
16239 need_locks \
16240 DSYMUTIL \
16241 NMEDIT \
16242 LIPO \
16243 OTOOL \
16244 OTOOL64 \
16245 shrext_cmds \
16246 export_dynamic_flag_spec \
16247 whole_archive_flag_spec \
16248 compiler_needs_object \
16249 with_gnu_ld \
16250 allow_undefined_flag \
16251 no_undefined_flag \
16252 hardcode_libdir_flag_spec \
16253 hardcode_libdir_flag_spec_ld \
16254 hardcode_libdir_separator \
16255 fix_srcfile_path \
16256 exclude_expsyms \
16257 include_expsyms \
16258 file_list_spec \
16259 variables_saved_for_relink \
16260 libname_spec \
16261 library_names_spec \
16262 soname_spec \
16263 finish_eval \
16264 old_striplib \
16265 striplib \
16266 compiler_lib_search_dirs \
16267 predep_objects \
16268 postdep_objects \
16269 predeps \
16270 postdeps \
16271 compiler_lib_search_path \
16272 LD_CXX \
16273 compiler_CXX \
16274 lt_prog_compiler_no_builtin_flag_CXX \
16275 lt_prog_compiler_wl_CXX \
16276 lt_prog_compiler_pic_CXX \
16277 lt_prog_compiler_static_CXX \
16278 lt_cv_prog_compiler_c_o_CXX \
16279 export_dynamic_flag_spec_CXX \
16280 whole_archive_flag_spec_CXX \
16281 compiler_needs_object_CXX \
16282 with_gnu_ld_CXX \
16283 allow_undefined_flag_CXX \
16284 no_undefined_flag_CXX \
16285 hardcode_libdir_flag_spec_CXX \
16286 hardcode_libdir_flag_spec_ld_CXX \
16287 hardcode_libdir_separator_CXX \
16288 fix_srcfile_path_CXX \
16289 exclude_expsyms_CXX \
16290 include_expsyms_CXX \
16291 file_list_spec_CXX \
16292 compiler_lib_search_dirs_CXX \
16293 predep_objects_CXX \
16294 postdep_objects_CXX \
16295 predeps_CXX \
16296 postdeps_CXX \
16297 compiler_lib_search_path_CXX; do
16298     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16299     *[\\\\\\\`\\"\\\$]*)
16300       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16301       ;;
16302     *)
16303       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16304       ;;
16305     esac
16306 done
16307
16308 # Double-quote double-evaled strings.
16309 for var in reload_cmds \
16310 old_postinstall_cmds \
16311 old_postuninstall_cmds \
16312 old_archive_cmds \
16313 extract_expsyms_cmds \
16314 old_archive_from_new_cmds \
16315 old_archive_from_expsyms_cmds \
16316 archive_cmds \
16317 archive_expsym_cmds \
16318 module_cmds \
16319 module_expsym_cmds \
16320 export_symbols_cmds \
16321 prelink_cmds \
16322 postinstall_cmds \
16323 postuninstall_cmds \
16324 finish_cmds \
16325 sys_lib_search_path_spec \
16326 sys_lib_dlsearch_path_spec \
16327 old_archive_cmds_CXX \
16328 old_archive_from_new_cmds_CXX \
16329 old_archive_from_expsyms_cmds_CXX \
16330 archive_cmds_CXX \
16331 archive_expsym_cmds_CXX \
16332 module_cmds_CXX \
16333 module_expsym_cmds_CXX \
16334 export_symbols_cmds_CXX \
16335 prelink_cmds_CXX; do
16336     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16337     *[\\\\\\\`\\"\\\$]*)
16338       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16339       ;;
16340     *)
16341       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16342       ;;
16343     esac
16344 done
16345
16346 # Fix-up fallback echo if it was mangled by the above quoting rules.
16347 case \$lt_ECHO in
16348 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16349   ;;
16350 esac
16351
16352 ac_aux_dir='$ac_aux_dir'
16353 xsi_shell='$xsi_shell'
16354 lt_shell_append='$lt_shell_append'
16355
16356 # See if we are running on zsh, and set the options which allow our
16357 # commands through without removal of \ escapes INIT.
16358 if test -n "\${ZSH_VERSION+set}" ; then
16359    setopt NO_GLOB_SUBST
16360 fi
16361
16362
16363     PACKAGE='$PACKAGE'
16364     VERSION='$VERSION'
16365     TIMESTAMP='$TIMESTAMP'
16366     RM='$RM'
16367     ofile='$ofile'
16368
16369
16370
16371
16372
16373
16374 _ACEOF
16375
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16377
16378 # Handling of arguments.
16379 for ac_config_target in $ac_config_targets
16380 do
16381   case $ac_config_target in
16382     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16383     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16384     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16385     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16386     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16387     "libmodplug.pc") CONFIG_FILES="$CONFIG_FILES libmodplug.pc" ;;
16388
16389   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16390   esac
16391 done
16392
16393
16394 # If the user did not use the arguments to specify the items to instantiate,
16395 # then the envvar interface is used.  Set only those that are not.
16396 # We use the long form for the default assignment because of an extremely
16397 # bizarre bug on SunOS 4.1.3.
16398 if $ac_need_defaults; then
16399   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16400   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16401   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16402 fi
16403
16404 # Have a temporary directory for convenience.  Make it in the build tree
16405 # simply because there is no reason against having it here, and in addition,
16406 # creating and moving files from /tmp can sometimes cause problems.
16407 # Hook for its removal unless debugging.
16408 # Note that there is a small window in which the directory will not be cleaned:
16409 # after its creation but before its name has been assigned to `$tmp'.
16410 $debug ||
16411 {
16412   tmp=
16413   trap 'exit_status=$?
16414   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16415 ' 0
16416   trap 'as_fn_exit 1' 1 2 13 15
16417 }
16418 # Create a (secure) tmp directory for tmp files.
16419
16420 {
16421   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16422   test -n "$tmp" && test -d "$tmp"
16423 }  ||
16424 {
16425   tmp=./conf$$-$RANDOM
16426   (umask 077 && mkdir "$tmp")
16427 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16428
16429 # Set up the scripts for CONFIG_FILES section.
16430 # No need to generate them if there are no CONFIG_FILES.
16431 # This happens for instance with `./config.status config.h'.
16432 if test -n "$CONFIG_FILES"; then
16433
16434
16435 ac_cr=`echo X | tr X '\015'`
16436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16437 # But we know of no other shell where ac_cr would be empty at this
16438 # point, so we can use a bashism as a fallback.
16439 if test "x$ac_cr" = x; then
16440   eval ac_cr=\$\'\\r\'
16441 fi
16442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16444   ac_cs_awk_cr='\r'
16445 else
16446   ac_cs_awk_cr=$ac_cr
16447 fi
16448
16449 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16450 _ACEOF
16451
16452
16453 {
16454   echo "cat >conf$$subs.awk <<_ACEOF" &&
16455   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16456   echo "_ACEOF"
16457 } >conf$$subs.sh ||
16458   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16460 ac_delim='%!_!# '
16461 for ac_last_try in false false false false false :; do
16462   . ./conf$$subs.sh ||
16463     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16464
16465   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16466   if test $ac_delim_n = $ac_delim_num; then
16467     break
16468   elif $ac_last_try; then
16469     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16470   else
16471     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16472   fi
16473 done
16474 rm -f conf$$subs.sh
16475
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16478 _ACEOF
16479 sed -n '
16480 h
16481 s/^/S["/; s/!.*/"]=/
16482 p
16483 g
16484 s/^[^!]*!//
16485 :repl
16486 t repl
16487 s/'"$ac_delim"'$//
16488 t delim
16489 :nl
16490 h
16491 s/\(.\{148\}\)..*/\1/
16492 t more1
16493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16494 p
16495 n
16496 b repl
16497 :more1
16498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16499 p
16500 g
16501 s/.\{148\}//
16502 t nl
16503 :delim
16504 h
16505 s/\(.\{148\}\)..*/\1/
16506 t more2
16507 s/["\\]/\\&/g; s/^/"/; s/$/"/
16508 p
16509 b
16510 :more2
16511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16512 p
16513 g
16514 s/.\{148\}//
16515 t delim
16516 ' <conf$$subs.awk | sed '
16517 /^[^""]/{
16518   N
16519   s/\n//
16520 }
16521 ' >>$CONFIG_STATUS || ac_write_fail=1
16522 rm -f conf$$subs.awk
16523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16524 _ACAWK
16525 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16526   for (key in S) S_is_set[key] = 1
16527   FS = "\a"
16528
16529 }
16530 {
16531   line = $ 0
16532   nfields = split(line, field, "@")
16533   substed = 0
16534   len = length(field[1])
16535   for (i = 2; i < nfields; i++) {
16536     key = field[i]
16537     keylen = length(key)
16538     if (S_is_set[key]) {
16539       value = S[key]
16540       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16541       len += length(value) + length(field[++i])
16542       substed = 1
16543     } else
16544       len += 1 + keylen
16545   }
16546
16547   print line
16548 }
16549
16550 _ACAWK
16551 _ACEOF
16552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16554   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16555 else
16556   cat
16557 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16558   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16559 _ACEOF
16560
16561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16563 # trailing colons and then remove the whole line if VPATH becomes empty
16564 # (actually we leave an empty line to preserve line numbers).
16565 if test "x$srcdir" = x.; then
16566   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16567 s/:*\$(srcdir):*/:/
16568 s/:*\${srcdir}:*/:/
16569 s/:*@srcdir@:*/:/
16570 s/^\([^=]*=[     ]*\):*/\1/
16571 s/:*$//
16572 s/^[^=]*=[       ]*$//
16573 }'
16574 fi
16575
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 fi # test -n "$CONFIG_FILES"
16578
16579 # Set up the scripts for CONFIG_HEADERS section.
16580 # No need to generate them if there are no CONFIG_HEADERS.
16581 # This happens for instance with `./config.status Makefile'.
16582 if test -n "$CONFIG_HEADERS"; then
16583 cat >"$tmp/defines.awk" <<\_ACAWK ||
16584 BEGIN {
16585 _ACEOF
16586
16587 # Transform confdefs.h into an awk script `defines.awk', embedded as
16588 # here-document in config.status, that substitutes the proper values into
16589 # config.h.in to produce config.h.
16590
16591 # Create a delimiter string that does not exist in confdefs.h, to ease
16592 # handling of long lines.
16593 ac_delim='%!_!# '
16594 for ac_last_try in false false :; do
16595   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16596   if test -z "$ac_t"; then
16597     break
16598   elif $ac_last_try; then
16599     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16600   else
16601     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16602   fi
16603 done
16604
16605 # For the awk script, D is an array of macro values keyed by name,
16606 # likewise P contains macro parameters if any.  Preserve backslash
16607 # newline sequences.
16608
16609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16610 sed -n '
16611 s/.\{148\}/&'"$ac_delim"'/g
16612 t rset
16613 :rset
16614 s/^[     ]*#[    ]*define[       ][      ]*/ /
16615 t def
16616 d
16617 :def
16618 s/\\$//
16619 t bsnl
16620 s/["\\]/\\&/g
16621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16622 D["\1"]=" \3"/p
16623 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16624 d
16625 :bsnl
16626 s/["\\]/\\&/g
16627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16628 D["\1"]=" \3\\\\\\n"\\/p
16629 t cont
16630 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16631 t cont
16632 d
16633 :cont
16634 n
16635 s/.\{148\}/&'"$ac_delim"'/g
16636 t clear
16637 :clear
16638 s/\\$//
16639 t bsnlc
16640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16641 d
16642 :bsnlc
16643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16644 b cont
16645 ' <confdefs.h | sed '
16646 s/'"$ac_delim"'/"\\\
16647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16648
16649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16650   for (key in D) D_is_set[key] = 1
16651   FS = "\a"
16652 }
16653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16654   line = \$ 0
16655   split(line, arg, " ")
16656   if (arg[1] == "#") {
16657     defundef = arg[2]
16658     mac1 = arg[3]
16659   } else {
16660     defundef = substr(arg[1], 2)
16661     mac1 = arg[2]
16662   }
16663   split(mac1, mac2, "(") #)
16664   macro = mac2[1]
16665   prefix = substr(line, 1, index(line, defundef) - 1)
16666   if (D_is_set[macro]) {
16667     # Preserve the white space surrounding the "#".
16668     print prefix "define", macro P[macro] D[macro]
16669     next
16670   } else {
16671     # Replace #undef with comments.  This is necessary, for example,
16672     # in the case of _POSIX_SOURCE, which is predefined and required
16673     # on some systems where configure will not decide to define it.
16674     if (defundef == "undef") {
16675       print "/*", prefix defundef, macro, "*/"
16676       next
16677     }
16678   }
16679 }
16680 { print }
16681 _ACAWK
16682 _ACEOF
16683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16685 fi # test -n "$CONFIG_HEADERS"
16686
16687
16688 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16689 shift
16690 for ac_tag
16691 do
16692   case $ac_tag in
16693   :[FHLC]) ac_mode=$ac_tag; continue;;
16694   esac
16695   case $ac_mode$ac_tag in
16696   :[FHL]*:*);;
16697   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16698   :[FH]-) ac_tag=-:-;;
16699   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16700   esac
16701   ac_save_IFS=$IFS
16702   IFS=:
16703   set x $ac_tag
16704   IFS=$ac_save_IFS
16705   shift
16706   ac_file=$1
16707   shift
16708
16709   case $ac_mode in
16710   :L) ac_source=$1;;
16711   :[FH])
16712     ac_file_inputs=
16713     for ac_f
16714     do
16715       case $ac_f in
16716       -) ac_f="$tmp/stdin";;
16717       *) # Look for the file first in the build tree, then in the source tree
16718          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16719          # because $ac_f cannot contain `:'.
16720          test -f "$ac_f" ||
16721            case $ac_f in
16722            [\\/$]*) false;;
16723            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16724            esac ||
16725            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16726       esac
16727       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16728       as_fn_append ac_file_inputs " '$ac_f'"
16729     done
16730
16731     # Let's still pretend it is `configure' which instantiates (i.e., don't
16732     # use $as_me), people would be surprised to read:
16733     #    /* config.h.  Generated by config.status.  */
16734     configure_input='Generated from '`
16735           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16736         `' by configure.'
16737     if test x"$ac_file" != x-; then
16738       configure_input="$ac_file.  $configure_input"
16739       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16740 $as_echo "$as_me: creating $ac_file" >&6;}
16741     fi
16742     # Neutralize special characters interpreted by sed in replacement strings.
16743     case $configure_input in #(
16744     *\&* | *\|* | *\\* )
16745        ac_sed_conf_input=`$as_echo "$configure_input" |
16746        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16747     *) ac_sed_conf_input=$configure_input;;
16748     esac
16749
16750     case $ac_tag in
16751     *:-:* | *:-) cat >"$tmp/stdin" \
16752       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16753     esac
16754     ;;
16755   esac
16756
16757   ac_dir=`$as_dirname -- "$ac_file" ||
16758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16759          X"$ac_file" : 'X\(//\)[^/]' \| \
16760          X"$ac_file" : 'X\(//\)$' \| \
16761          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16762 $as_echo X"$ac_file" |
16763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16764             s//\1/
16765             q
16766           }
16767           /^X\(\/\/\)[^/].*/{
16768             s//\1/
16769             q
16770           }
16771           /^X\(\/\/\)$/{
16772             s//\1/
16773             q
16774           }
16775           /^X\(\/\).*/{
16776             s//\1/
16777             q
16778           }
16779           s/.*/./; q'`
16780   as_dir="$ac_dir"; as_fn_mkdir_p
16781   ac_builddir=.
16782
16783 case "$ac_dir" in
16784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16785 *)
16786   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16787   # A ".." for each directory in $ac_dir_suffix.
16788   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16789   case $ac_top_builddir_sub in
16790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16792   esac ;;
16793 esac
16794 ac_abs_top_builddir=$ac_pwd
16795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16796 # for backward compatibility:
16797 ac_top_builddir=$ac_top_build_prefix
16798
16799 case $srcdir in
16800   .)  # We are building in place.
16801     ac_srcdir=.
16802     ac_top_srcdir=$ac_top_builddir_sub
16803     ac_abs_top_srcdir=$ac_pwd ;;
16804   [\\/]* | ?:[\\/]* )  # Absolute name.
16805     ac_srcdir=$srcdir$ac_dir_suffix;
16806     ac_top_srcdir=$srcdir
16807     ac_abs_top_srcdir=$srcdir ;;
16808   *) # Relative name.
16809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16810     ac_top_srcdir=$ac_top_build_prefix$srcdir
16811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16812 esac
16813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16814
16815
16816   case $ac_mode in
16817   :F)
16818   #
16819   # CONFIG_FILE
16820   #
16821
16822   case $INSTALL in
16823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16824   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16825   esac
16826   ac_MKDIR_P=$MKDIR_P
16827   case $MKDIR_P in
16828   [\\/$]* | ?:[\\/]* ) ;;
16829   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16830   esac
16831 _ACEOF
16832
16833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16834 # If the template does not know about datarootdir, expand it.
16835 # FIXME: This hack should be removed a few years after 2.60.
16836 ac_datarootdir_hack=; ac_datarootdir_seen=
16837 ac_sed_dataroot='
16838 /datarootdir/ {
16839   p
16840   q
16841 }
16842 /@datadir@/p
16843 /@docdir@/p
16844 /@infodir@/p
16845 /@localedir@/p
16846 /@mandir@/p'
16847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16848 *datarootdir*) ac_datarootdir_seen=yes;;
16849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16852 _ACEOF
16853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16854   ac_datarootdir_hack='
16855   s&@datadir@&$datadir&g
16856   s&@docdir@&$docdir&g
16857   s&@infodir@&$infodir&g
16858   s&@localedir@&$localedir&g
16859   s&@mandir@&$mandir&g
16860   s&\\\${datarootdir}&$datarootdir&g' ;;
16861 esac
16862 _ACEOF
16863
16864 # Neutralize VPATH when `$srcdir' = `.'.
16865 # Shell code in configure.ac might set extrasub.
16866 # FIXME: do we really want to maintain this feature?
16867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16868 ac_sed_extra="$ac_vpsub
16869 $extrasub
16870 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 :t
16873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16874 s|@configure_input@|$ac_sed_conf_input|;t t
16875 s&@top_builddir@&$ac_top_builddir_sub&;t t
16876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16877 s&@srcdir@&$ac_srcdir&;t t
16878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16879 s&@top_srcdir@&$ac_top_srcdir&;t t
16880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16881 s&@builddir@&$ac_builddir&;t t
16882 s&@abs_builddir@&$ac_abs_builddir&;t t
16883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16884 s&@INSTALL@&$ac_INSTALL&;t t
16885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16886 $ac_datarootdir_hack
16887 "
16888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16889   || as_fn_error "could not create $ac_file" "$LINENO" 5
16890
16891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16892   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16893   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16895 which seems to be undefined.  Please make sure it is defined." >&5
16896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16897 which seems to be undefined.  Please make sure it is defined." >&2;}
16898
16899   rm -f "$tmp/stdin"
16900   case $ac_file in
16901   -) cat "$tmp/out" && rm -f "$tmp/out";;
16902   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16903   esac \
16904   || as_fn_error "could not create $ac_file" "$LINENO" 5
16905  ;;
16906   :H)
16907   #
16908   # CONFIG_HEADER
16909   #
16910   if test x"$ac_file" != x-; then
16911     {
16912       $as_echo "/* $configure_input  */" \
16913       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16914     } >"$tmp/config.h" \
16915       || as_fn_error "could not create $ac_file" "$LINENO" 5
16916     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16917       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16919     else
16920       rm -f "$ac_file"
16921       mv "$tmp/config.h" "$ac_file" \
16922         || as_fn_error "could not create $ac_file" "$LINENO" 5
16923     fi
16924   else
16925     $as_echo "/* $configure_input  */" \
16926       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16927       || as_fn_error "could not create -" "$LINENO" 5
16928   fi
16929 # Compute "$ac_file"'s index in $config_headers.
16930 _am_arg="$ac_file"
16931 _am_stamp_count=1
16932 for _am_header in $config_headers :; do
16933   case $_am_header in
16934     $_am_arg | $_am_arg:* )
16935       break ;;
16936     * )
16937       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16938   esac
16939 done
16940 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16941 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16942          X"$_am_arg" : 'X\(//\)[^/]' \| \
16943          X"$_am_arg" : 'X\(//\)$' \| \
16944          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16945 $as_echo X"$_am_arg" |
16946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16947             s//\1/
16948             q
16949           }
16950           /^X\(\/\/\)[^/].*/{
16951             s//\1/
16952             q
16953           }
16954           /^X\(\/\/\)$/{
16955             s//\1/
16956             q
16957           }
16958           /^X\(\/\).*/{
16959             s//\1/
16960             q
16961           }
16962           s/.*/./; q'`/stamp-h$_am_stamp_count
16963  ;;
16964
16965   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16966 $as_echo "$as_me: executing $ac_file commands" >&6;}
16967  ;;
16968   esac
16969
16970
16971   case $ac_file$ac_mode in
16972     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16973   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16974   # are listed without --file.  Let's play safe and only enable the eval
16975   # if we detect the quoting.
16976   case $CONFIG_FILES in
16977   *\'*) eval set x "$CONFIG_FILES" ;;
16978   *)   set x $CONFIG_FILES ;;
16979   esac
16980   shift
16981   for mf
16982   do
16983     # Strip MF so we end up with the name of the file.
16984     mf=`echo "$mf" | sed -e 's/:.*$//'`
16985     # Check whether this is an Automake generated Makefile or not.
16986     # We used to match only the files named `Makefile.in', but
16987     # some people rename them; so instead we look at the file content.
16988     # Grep'ing the first line is not enough: some people post-process
16989     # each Makefile.in and add a new line on top of each file to say so.
16990     # Grep'ing the whole file is not good either: AIX grep has a line
16991     # limit of 2048, but all sed's we know have understand at least 4000.
16992     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16993       dirpart=`$as_dirname -- "$mf" ||
16994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16995          X"$mf" : 'X\(//\)[^/]' \| \
16996          X"$mf" : 'X\(//\)$' \| \
16997          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16998 $as_echo X"$mf" |
16999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17000             s//\1/
17001             q
17002           }
17003           /^X\(\/\/\)[^/].*/{
17004             s//\1/
17005             q
17006           }
17007           /^X\(\/\/\)$/{
17008             s//\1/
17009             q
17010           }
17011           /^X\(\/\).*/{
17012             s//\1/
17013             q
17014           }
17015           s/.*/./; q'`
17016     else
17017       continue
17018     fi
17019     # Extract the definition of DEPDIR, am__include, and am__quote
17020     # from the Makefile without running `make'.
17021     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17022     test -z "$DEPDIR" && continue
17023     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17024     test -z "am__include" && continue
17025     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17026     # When using ansi2knr, U may be empty or an underscore; expand it
17027     U=`sed -n 's/^U = //p' < "$mf"`
17028     # Find all dependency output files, they are included files with
17029     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17030     # simplest approach to changing $(DEPDIR) to its actual value in the
17031     # expansion.
17032     for file in `sed -n "
17033       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17034          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17035       # Make sure the directory exists.
17036       test -f "$dirpart/$file" && continue
17037       fdir=`$as_dirname -- "$file" ||
17038 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17039          X"$file" : 'X\(//\)[^/]' \| \
17040          X"$file" : 'X\(//\)$' \| \
17041          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17042 $as_echo X"$file" |
17043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17044             s//\1/
17045             q
17046           }
17047           /^X\(\/\/\)[^/].*/{
17048             s//\1/
17049             q
17050           }
17051           /^X\(\/\/\)$/{
17052             s//\1/
17053             q
17054           }
17055           /^X\(\/\).*/{
17056             s//\1/
17057             q
17058           }
17059           s/.*/./; q'`
17060       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17061       # echo "creating $dirpart/$file"
17062       echo '# dummy' > "$dirpart/$file"
17063     done
17064   done
17065 }
17066  ;;
17067     "libtool":C)
17068
17069     # See if we are running on zsh, and set the options which allow our
17070     # commands through without removal of \ escapes.
17071     if test -n "${ZSH_VERSION+set}" ; then
17072       setopt NO_GLOB_SUBST
17073     fi
17074
17075     cfgfile="${ofile}T"
17076     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17077     $RM "$cfgfile"
17078
17079     cat <<_LT_EOF >> "$cfgfile"
17080 #! $SHELL
17081
17082 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17083 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17084 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17085 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17086 #
17087 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17088 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17089 #   Written by Gordon Matzigkeit, 1996
17090 #
17091 #   This file is part of GNU Libtool.
17092 #
17093 # GNU Libtool is free software; you can redistribute it and/or
17094 # modify it under the terms of the GNU General Public License as
17095 # published by the Free Software Foundation; either version 2 of
17096 # the License, or (at your option) any later version.
17097 #
17098 # As a special exception to the GNU General Public License,
17099 # if you distribute this file as part of a program or library that
17100 # is built using GNU Libtool, you may include this file under the
17101 # same distribution terms that you use for the rest of that program.
17102 #
17103 # GNU Libtool is distributed in the hope that it will be useful,
17104 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17105 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17106 # GNU General Public License for more details.
17107 #
17108 # You should have received a copy of the GNU General Public License
17109 # along with GNU Libtool; see the file COPYING.  If not, a copy
17110 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17111 # obtained by writing to the Free Software Foundation, Inc.,
17112 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17113
17114
17115 # The names of the tagged configurations supported by this script.
17116 available_tags="CXX "
17117
17118 # ### BEGIN LIBTOOL CONFIG
17119
17120 # Whether or not to build static libraries.
17121 build_old_libs=$enable_static
17122
17123 # Assembler program.
17124 AS=$AS
17125
17126 # DLL creation program.
17127 DLLTOOL=$DLLTOOL
17128
17129 # Object dumper program.
17130 OBJDUMP=$OBJDUMP
17131
17132 # Which release of libtool.m4 was used?
17133 macro_version=$macro_version
17134 macro_revision=$macro_revision
17135
17136 # Whether or not to build shared libraries.
17137 build_libtool_libs=$enable_shared
17138
17139 # What type of objects to build.
17140 pic_mode=$pic_mode
17141
17142 # Whether or not to optimize for fast installation.
17143 fast_install=$enable_fast_install
17144
17145 # The host system.
17146 host_alias=$host_alias
17147 host=$host
17148 host_os=$host_os
17149
17150 # The build system.
17151 build_alias=$build_alias
17152 build=$build
17153 build_os=$build_os
17154
17155 # A sed program that does not truncate output.
17156 SED=$lt_SED
17157
17158 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17159 Xsed="\$SED -e 1s/^X//"
17160
17161 # A grep program that handles long lines.
17162 GREP=$lt_GREP
17163
17164 # An ERE matcher.
17165 EGREP=$lt_EGREP
17166
17167 # A literal string matcher.
17168 FGREP=$lt_FGREP
17169
17170 # A BSD- or MS-compatible name lister.
17171 NM=$lt_NM
17172
17173 # Whether we need soft or hard links.
17174 LN_S=$lt_LN_S
17175
17176 # What is the maximum length of a command?
17177 max_cmd_len=$max_cmd_len
17178
17179 # Object file suffix (normally "o").
17180 objext=$ac_objext
17181
17182 # Executable file suffix (normally "").
17183 exeext=$exeext
17184
17185 # whether the shell understands "unset".
17186 lt_unset=$lt_unset
17187
17188 # turn spaces into newlines.
17189 SP2NL=$lt_lt_SP2NL
17190
17191 # turn newlines into spaces.
17192 NL2SP=$lt_lt_NL2SP
17193
17194 # How to create reloadable object files.
17195 reload_flag=$lt_reload_flag
17196 reload_cmds=$lt_reload_cmds
17197
17198 # Method to check whether dependent libraries are shared objects.
17199 deplibs_check_method=$lt_deplibs_check_method
17200
17201 # Command to use when deplibs_check_method == "file_magic".
17202 file_magic_cmd=$lt_file_magic_cmd
17203
17204 # The archiver.
17205 AR=$lt_AR
17206 AR_FLAGS=$lt_AR_FLAGS
17207
17208 # A symbol stripping program.
17209 STRIP=$lt_STRIP
17210
17211 # Commands used to install an old-style archive.
17212 RANLIB=$lt_RANLIB
17213 old_postinstall_cmds=$lt_old_postinstall_cmds
17214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17215
17216 # A C compiler.
17217 LTCC=$lt_CC
17218
17219 # LTCC compiler flags.
17220 LTCFLAGS=$lt_CFLAGS
17221
17222 # Take the output of nm and produce a listing of raw symbols and C names.
17223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17224
17225 # Transform the output of nm in a proper C declaration.
17226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17227
17228 # Transform the output of nm in a C name address pair.
17229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17230
17231 # Transform the output of nm in a C name address pair when lib prefix is needed.
17232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17233
17234 # The name of the directory that contains temporary libtool files.
17235 objdir=$objdir
17236
17237 # Shell to use when invoking shell scripts.
17238 SHELL=$lt_SHELL
17239
17240 # An echo program that does not interpret backslashes.
17241 ECHO=$lt_ECHO
17242
17243 # Used to examine libraries when file_magic_cmd begins with "file".
17244 MAGIC_CMD=$MAGIC_CMD
17245
17246 # Must we lock files when doing compilation?
17247 need_locks=$lt_need_locks
17248
17249 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17250 DSYMUTIL=$lt_DSYMUTIL
17251
17252 # Tool to change global to local symbols on Mac OS X.
17253 NMEDIT=$lt_NMEDIT
17254
17255 # Tool to manipulate fat objects and archives on Mac OS X.
17256 LIPO=$lt_LIPO
17257
17258 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17259 OTOOL=$lt_OTOOL
17260
17261 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17262 OTOOL64=$lt_OTOOL64
17263
17264 # Old archive suffix (normally "a").
17265 libext=$libext
17266
17267 # Shared library suffix (normally ".so").
17268 shrext_cmds=$lt_shrext_cmds
17269
17270 # The commands to extract the exported symbol list from a shared archive.
17271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17272
17273 # Variables whose values should be saved in libtool wrapper scripts and
17274 # restored at link time.
17275 variables_saved_for_relink=$lt_variables_saved_for_relink
17276
17277 # Do we need the "lib" prefix for modules?
17278 need_lib_prefix=$need_lib_prefix
17279
17280 # Do we need a version for libraries?
17281 need_version=$need_version
17282
17283 # Library versioning type.
17284 version_type=$version_type
17285
17286 # Shared library runtime path variable.
17287 runpath_var=$runpath_var
17288
17289 # Shared library path variable.
17290 shlibpath_var=$shlibpath_var
17291
17292 # Is shlibpath searched before the hard-coded library search path?
17293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17294
17295 # Format of library name prefix.
17296 libname_spec=$lt_libname_spec
17297
17298 # List of archive names.  First name is the real one, the rest are links.
17299 # The last name is the one that the linker finds with -lNAME
17300 library_names_spec=$lt_library_names_spec
17301
17302 # The coded name of the library, if different from the real name.
17303 soname_spec=$lt_soname_spec
17304
17305 # Command to use after installation of a shared archive.
17306 postinstall_cmds=$lt_postinstall_cmds
17307
17308 # Command to use after uninstallation of a shared archive.
17309 postuninstall_cmds=$lt_postuninstall_cmds
17310
17311 # Commands used to finish a libtool library installation in a directory.
17312 finish_cmds=$lt_finish_cmds
17313
17314 # As "finish_cmds", except a single script fragment to be evaled but
17315 # not shown.
17316 finish_eval=$lt_finish_eval
17317
17318 # Whether we should hardcode library paths into libraries.
17319 hardcode_into_libs=$hardcode_into_libs
17320
17321 # Compile-time system search path for libraries.
17322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17323
17324 # Run-time system search path for libraries.
17325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17326
17327 # Whether dlopen is supported.
17328 dlopen_support=$enable_dlopen
17329
17330 # Whether dlopen of programs is supported.
17331 dlopen_self=$enable_dlopen_self
17332
17333 # Whether dlopen of statically linked programs is supported.
17334 dlopen_self_static=$enable_dlopen_self_static
17335
17336 # Commands to strip libraries.
17337 old_striplib=$lt_old_striplib
17338 striplib=$lt_striplib
17339
17340
17341 # The linker used to build libraries.
17342 LD=$lt_LD
17343
17344 # Commands used to build an old-style archive.
17345 old_archive_cmds=$lt_old_archive_cmds
17346
17347 # A language specific compiler.
17348 CC=$lt_compiler
17349
17350 # Is the compiler the GNU compiler?
17351 with_gcc=$GCC
17352
17353 # Compiler flag to turn off builtin functions.
17354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17355
17356 # How to pass a linker flag through the compiler.
17357 wl=$lt_lt_prog_compiler_wl
17358
17359 # Additional compiler flags for building library objects.
17360 pic_flag=$lt_lt_prog_compiler_pic
17361
17362 # Compiler flag to prevent dynamic linking.
17363 link_static_flag=$lt_lt_prog_compiler_static
17364
17365 # Does compiler simultaneously support -c and -o options?
17366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17367
17368 # Whether or not to add -lc for building shared libraries.
17369 build_libtool_need_lc=$archive_cmds_need_lc
17370
17371 # Whether or not to disallow shared libs when runtime libs are static.
17372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17373
17374 # Compiler flag to allow reflexive dlopens.
17375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17376
17377 # Compiler flag to generate shared objects directly from archives.
17378 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17379
17380 # Whether the compiler copes with passing no objects directly.
17381 compiler_needs_object=$lt_compiler_needs_object
17382
17383 # Create an old-style archive from a shared archive.
17384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17385
17386 # Create a temporary old-style archive to link instead of a shared archive.
17387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17388
17389 # Commands used to build a shared archive.
17390 archive_cmds=$lt_archive_cmds
17391 archive_expsym_cmds=$lt_archive_expsym_cmds
17392
17393 # Commands used to build a loadable module if different from building
17394 # a shared archive.
17395 module_cmds=$lt_module_cmds
17396 module_expsym_cmds=$lt_module_expsym_cmds
17397
17398 # Whether we are building with GNU ld or not.
17399 with_gnu_ld=$lt_with_gnu_ld
17400
17401 # Flag that allows shared libraries with undefined symbols to be built.
17402 allow_undefined_flag=$lt_allow_undefined_flag
17403
17404 # Flag that enforces no undefined symbols.
17405 no_undefined_flag=$lt_no_undefined_flag
17406
17407 # Flag to hardcode \$libdir into a binary during linking.
17408 # This must work even if \$libdir does not exist
17409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17410
17411 # If ld is used when linking, flag to hardcode \$libdir into a binary
17412 # during linking.  This must work even if \$libdir does not exist.
17413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17414
17415 # Whether we need a single "-rpath" flag with a separated argument.
17416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17417
17418 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17419 # DIR into the resulting binary.
17420 hardcode_direct=$hardcode_direct
17421
17422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17423 # DIR into the resulting binary and the resulting library dependency is
17424 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17425 # library is relocated.
17426 hardcode_direct_absolute=$hardcode_direct_absolute
17427
17428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17429 # into the resulting binary.
17430 hardcode_minus_L=$hardcode_minus_L
17431
17432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17433 # into the resulting binary.
17434 hardcode_shlibpath_var=$hardcode_shlibpath_var
17435
17436 # Set to "yes" if building a shared library automatically hardcodes DIR
17437 # into the library and all subsequent libraries and executables linked
17438 # against it.
17439 hardcode_automatic=$hardcode_automatic
17440
17441 # Set to yes if linker adds runtime paths of dependent libraries
17442 # to runtime path list.
17443 inherit_rpath=$inherit_rpath
17444
17445 # Whether libtool must link a program against all its dependency libraries.
17446 link_all_deplibs=$link_all_deplibs
17447
17448 # Fix the shell variable \$srcfile for the compiler.
17449 fix_srcfile_path=$lt_fix_srcfile_path
17450
17451 # Set to "yes" if exported symbols are required.
17452 always_export_symbols=$always_export_symbols
17453
17454 # The commands to list exported symbols.
17455 export_symbols_cmds=$lt_export_symbols_cmds
17456
17457 # Symbols that should not be listed in the preloaded symbols.
17458 exclude_expsyms=$lt_exclude_expsyms
17459
17460 # Symbols that must always be exported.
17461 include_expsyms=$lt_include_expsyms
17462
17463 # Commands necessary for linking programs (against libraries) with templates.
17464 prelink_cmds=$lt_prelink_cmds
17465
17466 # Specify filename containing input files.
17467 file_list_spec=$lt_file_list_spec
17468
17469 # How to hardcode a shared library path into an executable.
17470 hardcode_action=$hardcode_action
17471
17472 # The directories searched by this compiler when creating a shared library.
17473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17474
17475 # Dependencies to place before and after the objects being linked to
17476 # create a shared library.
17477 predep_objects=$lt_predep_objects
17478 postdep_objects=$lt_postdep_objects
17479 predeps=$lt_predeps
17480 postdeps=$lt_postdeps
17481
17482 # The library search path used internally by the compiler when linking
17483 # a shared library.
17484 compiler_lib_search_path=$lt_compiler_lib_search_path
17485
17486 # ### END LIBTOOL CONFIG
17487
17488 _LT_EOF
17489
17490   case $host_os in
17491   aix3*)
17492     cat <<\_LT_EOF >> "$cfgfile"
17493 # AIX sometimes has problems with the GCC collect2 program.  For some
17494 # reason, if we set the COLLECT_NAMES environment variable, the problems
17495 # vanish in a puff of smoke.
17496 if test "X${COLLECT_NAMES+set}" != Xset; then
17497   COLLECT_NAMES=
17498   export COLLECT_NAMES
17499 fi
17500 _LT_EOF
17501     ;;
17502   esac
17503
17504
17505 ltmain="$ac_aux_dir/ltmain.sh"
17506
17507
17508   # We use sed instead of cat because bash on DJGPP gets confused if
17509   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17510   # text mode, it properly converts lines to CR/LF.  This bash problem
17511   # is reportedly fixed, but why not run on old versions too?
17512   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17513     || (rm -f "$cfgfile"; exit 1)
17514
17515   case $xsi_shell in
17516   yes)
17517     cat << \_LT_EOF >> "$cfgfile"
17518
17519 # func_dirname file append nondir_replacement
17520 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17521 # otherwise set result to NONDIR_REPLACEMENT.
17522 func_dirname ()
17523 {
17524   case ${1} in
17525     */*) func_dirname_result="${1%/*}${2}" ;;
17526     *  ) func_dirname_result="${3}" ;;
17527   esac
17528 }
17529
17530 # func_basename file
17531 func_basename ()
17532 {
17533   func_basename_result="${1##*/}"
17534 }
17535
17536 # func_dirname_and_basename file append nondir_replacement
17537 # perform func_basename and func_dirname in a single function
17538 # call:
17539 #   dirname:  Compute the dirname of FILE.  If nonempty,
17540 #             add APPEND to the result, otherwise set result
17541 #             to NONDIR_REPLACEMENT.
17542 #             value returned in "$func_dirname_result"
17543 #   basename: Compute filename of FILE.
17544 #             value retuned in "$func_basename_result"
17545 # Implementation must be kept synchronized with func_dirname
17546 # and func_basename. For efficiency, we do not delegate to
17547 # those functions but instead duplicate the functionality here.
17548 func_dirname_and_basename ()
17549 {
17550   case ${1} in
17551     */*) func_dirname_result="${1%/*}${2}" ;;
17552     *  ) func_dirname_result="${3}" ;;
17553   esac
17554   func_basename_result="${1##*/}"
17555 }
17556
17557 # func_stripname prefix suffix name
17558 # strip PREFIX and SUFFIX off of NAME.
17559 # PREFIX and SUFFIX must not contain globbing or regex special
17560 # characters, hashes, percent signs, but SUFFIX may contain a leading
17561 # dot (in which case that matches only a dot).
17562 func_stripname ()
17563 {
17564   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17565   # positional parameters, so assign one to ordinary parameter first.
17566   func_stripname_result=${3}
17567   func_stripname_result=${func_stripname_result#"${1}"}
17568   func_stripname_result=${func_stripname_result%"${2}"}
17569 }
17570
17571 # func_opt_split
17572 func_opt_split ()
17573 {
17574   func_opt_split_opt=${1%%=*}
17575   func_opt_split_arg=${1#*=}
17576 }
17577
17578 # func_lo2o object
17579 func_lo2o ()
17580 {
17581   case ${1} in
17582     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17583     *)    func_lo2o_result=${1} ;;
17584   esac
17585 }
17586
17587 # func_xform libobj-or-source
17588 func_xform ()
17589 {
17590   func_xform_result=${1%.*}.lo
17591 }
17592
17593 # func_arith arithmetic-term...
17594 func_arith ()
17595 {
17596   func_arith_result=$(( $* ))
17597 }
17598
17599 # func_len string
17600 # STRING may not start with a hyphen.
17601 func_len ()
17602 {
17603   func_len_result=${#1}
17604 }
17605
17606 _LT_EOF
17607     ;;
17608   *) # Bourne compatible functions.
17609     cat << \_LT_EOF >> "$cfgfile"
17610
17611 # func_dirname file append nondir_replacement
17612 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17613 # otherwise set result to NONDIR_REPLACEMENT.
17614 func_dirname ()
17615 {
17616   # Extract subdirectory from the argument.
17617   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17618   if test "X$func_dirname_result" = "X${1}"; then
17619     func_dirname_result="${3}"
17620   else
17621     func_dirname_result="$func_dirname_result${2}"
17622   fi
17623 }
17624
17625 # func_basename file
17626 func_basename ()
17627 {
17628   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17629 }
17630
17631
17632 # func_stripname prefix suffix name
17633 # strip PREFIX and SUFFIX off of NAME.
17634 # PREFIX and SUFFIX must not contain globbing or regex special
17635 # characters, hashes, percent signs, but SUFFIX may contain a leading
17636 # dot (in which case that matches only a dot).
17637 # func_strip_suffix prefix name
17638 func_stripname ()
17639 {
17640   case ${2} in
17641     .*) func_stripname_result=`$ECHO "X${3}" \
17642            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17643     *)  func_stripname_result=`$ECHO "X${3}" \
17644            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17645   esac
17646 }
17647
17648 # sed scripts:
17649 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17650 my_sed_long_arg='1s/^-[^=]*=//'
17651
17652 # func_opt_split
17653 func_opt_split ()
17654 {
17655   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17656   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17657 }
17658
17659 # func_lo2o object
17660 func_lo2o ()
17661 {
17662   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17663 }
17664
17665 # func_xform libobj-or-source
17666 func_xform ()
17667 {
17668   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17669 }
17670
17671 # func_arith arithmetic-term...
17672 func_arith ()
17673 {
17674   func_arith_result=`expr "$@"`
17675 }
17676
17677 # func_len string
17678 # STRING may not start with a hyphen.
17679 func_len ()
17680 {
17681   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17682 }
17683
17684 _LT_EOF
17685 esac
17686
17687 case $lt_shell_append in
17688   yes)
17689     cat << \_LT_EOF >> "$cfgfile"
17690
17691 # func_append var value
17692 # Append VALUE to the end of shell variable VAR.
17693 func_append ()
17694 {
17695   eval "$1+=\$2"
17696 }
17697 _LT_EOF
17698     ;;
17699   *)
17700     cat << \_LT_EOF >> "$cfgfile"
17701
17702 # func_append var value
17703 # Append VALUE to the end of shell variable VAR.
17704 func_append ()
17705 {
17706   eval "$1=\$$1\$2"
17707 }
17708
17709 _LT_EOF
17710     ;;
17711   esac
17712
17713
17714   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17715     || (rm -f "$cfgfile"; exit 1)
17716
17717   mv -f "$cfgfile" "$ofile" ||
17718     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17719   chmod +x "$ofile"
17720
17721
17722     cat <<_LT_EOF >> "$ofile"
17723
17724 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17725
17726 # The linker used to build libraries.
17727 LD=$lt_LD_CXX
17728
17729 # Commands used to build an old-style archive.
17730 old_archive_cmds=$lt_old_archive_cmds_CXX
17731
17732 # A language specific compiler.
17733 CC=$lt_compiler_CXX
17734
17735 # Is the compiler the GNU compiler?
17736 with_gcc=$GCC_CXX
17737
17738 # Compiler flag to turn off builtin functions.
17739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17740
17741 # How to pass a linker flag through the compiler.
17742 wl=$lt_lt_prog_compiler_wl_CXX
17743
17744 # Additional compiler flags for building library objects.
17745 pic_flag=$lt_lt_prog_compiler_pic_CXX
17746
17747 # Compiler flag to prevent dynamic linking.
17748 link_static_flag=$lt_lt_prog_compiler_static_CXX
17749
17750 # Does compiler simultaneously support -c and -o options?
17751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17752
17753 # Whether or not to add -lc for building shared libraries.
17754 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17755
17756 # Whether or not to disallow shared libs when runtime libs are static.
17757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17758
17759 # Compiler flag to allow reflexive dlopens.
17760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17761
17762 # Compiler flag to generate shared objects directly from archives.
17763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17764
17765 # Whether the compiler copes with passing no objects directly.
17766 compiler_needs_object=$lt_compiler_needs_object_CXX
17767
17768 # Create an old-style archive from a shared archive.
17769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17770
17771 # Create a temporary old-style archive to link instead of a shared archive.
17772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17773
17774 # Commands used to build a shared archive.
17775 archive_cmds=$lt_archive_cmds_CXX
17776 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17777
17778 # Commands used to build a loadable module if different from building
17779 # a shared archive.
17780 module_cmds=$lt_module_cmds_CXX
17781 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17782
17783 # Whether we are building with GNU ld or not.
17784 with_gnu_ld=$lt_with_gnu_ld_CXX
17785
17786 # Flag that allows shared libraries with undefined symbols to be built.
17787 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17788
17789 # Flag that enforces no undefined symbols.
17790 no_undefined_flag=$lt_no_undefined_flag_CXX
17791
17792 # Flag to hardcode \$libdir into a binary during linking.
17793 # This must work even if \$libdir does not exist
17794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17795
17796 # If ld is used when linking, flag to hardcode \$libdir into a binary
17797 # during linking.  This must work even if \$libdir does not exist.
17798 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17799
17800 # Whether we need a single "-rpath" flag with a separated argument.
17801 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17802
17803 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804 # DIR into the resulting binary.
17805 hardcode_direct=$hardcode_direct_CXX
17806
17807 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17808 # DIR into the resulting binary and the resulting library dependency is
17809 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17810 # library is relocated.
17811 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17812
17813 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17814 # into the resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_CXX
17816
17817 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17818 # into the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17820
17821 # Set to "yes" if building a shared library automatically hardcodes DIR
17822 # into the library and all subsequent libraries and executables linked
17823 # against it.
17824 hardcode_automatic=$hardcode_automatic_CXX
17825
17826 # Set to yes if linker adds runtime paths of dependent libraries
17827 # to runtime path list.
17828 inherit_rpath=$inherit_rpath_CXX
17829
17830 # Whether libtool must link a program against all its dependency libraries.
17831 link_all_deplibs=$link_all_deplibs_CXX
17832
17833 # Fix the shell variable \$srcfile for the compiler.
17834 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17835
17836 # Set to "yes" if exported symbols are required.
17837 always_export_symbols=$always_export_symbols_CXX
17838
17839 # The commands to list exported symbols.
17840 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17841
17842 # Symbols that should not be listed in the preloaded symbols.
17843 exclude_expsyms=$lt_exclude_expsyms_CXX
17844
17845 # Symbols that must always be exported.
17846 include_expsyms=$lt_include_expsyms_CXX
17847
17848 # Commands necessary for linking programs (against libraries) with templates.
17849 prelink_cmds=$lt_prelink_cmds_CXX
17850
17851 # Specify filename containing input files.
17852 file_list_spec=$lt_file_list_spec_CXX
17853
17854 # How to hardcode a shared library path into an executable.
17855 hardcode_action=$hardcode_action_CXX
17856
17857 # The directories searched by this compiler when creating a shared library.
17858 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17859
17860 # Dependencies to place before and after the objects being linked to
17861 # create a shared library.
17862 predep_objects=$lt_predep_objects_CXX
17863 postdep_objects=$lt_postdep_objects_CXX
17864 predeps=$lt_predeps_CXX
17865 postdeps=$lt_postdeps_CXX
17866
17867 # The library search path used internally by the compiler when linking
17868 # a shared library.
17869 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17870
17871 # ### END LIBTOOL TAG CONFIG: CXX
17872 _LT_EOF
17873
17874  ;;
17875
17876   esac
17877 done # for ac_tag
17878
17879
17880 as_fn_exit 0
17881 _ACEOF
17882 ac_clean_files=$ac_clean_files_save
17883
17884 test $ac_write_fail = 0 ||
17885   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17886
17887
17888 # configure is writing to config.log, and then calls config.status.
17889 # config.status does its own redirection, appending to config.log.
17890 # Unfortunately, on DOS this fails, as config.log is still kept open
17891 # by configure, so config.status won't be able to write to it; its
17892 # output is simply discarded.  So we exec the FD to /dev/null,
17893 # effectively closing config.log, so it can be properly (re)opened and
17894 # appended to by config.status.  When coming back to configure, we
17895 # need to make the FD available again.
17896 if test "$no_create" != yes; then
17897   ac_cs_success=:
17898   ac_config_status_args=
17899   test "$silent" = yes &&
17900     ac_config_status_args="$ac_config_status_args --quiet"
17901   exec 5>/dev/null
17902   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17903   exec 5>>config.log
17904   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17905   # would make configure fail if this is the last instruction.
17906   $ac_cs_success || as_fn_exit $?
17907 fi
17908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17909   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17911 fi
17912