Cleanup
[external/libsndfile.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libsndfile 1.0.21.
4 #
5 # Report bugs to <erikd@mega-nerd.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
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 and
232 $0: erikd@mega-nerd.com about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536   # Remove one level of quotation (which was required for Make).
537   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538   ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543   # Discard the --no-reexec flag, and continue.
544   shift
545 elif test "X$1" = X--fallback-echo; then
546   # Avoid inline document here, it may be left over
547   :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549   # Yippee, $ECHO works!
550   :
551 else
552   # Restart under the correct shell.
553   exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557   # used as fallback echo
558   shift
559   cat <<_LT_EOF
560 $*
561 _LT_EOF
562   exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570   if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576       then
577         break
578       fi
579     done
580   fi
581
582   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584      test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586   else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes.  This makes it impossible to quote backslashes using
589     #   echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592
593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595       IFS="$lt_save_ifs"
596       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599          test "X$echo_testing_string" = "X$echo_test_string"; then
600         ECHO="$dir/echo"
601         break
602       fi
603     done
604     IFS="$lt_save_ifs"
605
606     if test "X$ECHO" = Xecho; then
607       # We didn't find a better echo, so look for alternatives.
608       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # This shell has a builtin print -r that does the trick.
612         ECHO='print -r'
613       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614            test "X$CONFIG_SHELL" != X/bin/ksh; then
615         # If we have ksh, try running configure again with it.
616         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617         export ORIGINAL_CONFIG_SHELL
618         CONFIG_SHELL=/bin/ksh
619         export CONFIG_SHELL
620         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621       else
622         # Try using printf.
623         ECHO='printf %s\n'
624         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626            test "X$echo_testing_string" = "X$echo_test_string"; then
627           # Cool, printf works
628           :
629         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630              test "X$echo_testing_string" = 'X\t' &&
631              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632              test "X$echo_testing_string" = "X$echo_test_string"; then
633           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634           export CONFIG_SHELL
635           SHELL="$CONFIG_SHELL"
636           export SHELL
637           ECHO="$CONFIG_SHELL $0 --fallback-echo"
638         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639              test "X$echo_testing_string" = 'X\t' &&
640              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641              test "X$echo_testing_string" = "X$echo_test_string"; then
642           ECHO="$CONFIG_SHELL $0 --fallback-echo"
643         else
644           # maybe with a smaller string...
645           prev=:
646
647           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649             then
650               break
651             fi
652             prev="$cmd"
653           done
654
655           if test "$prev" != 'sed 50q "$0"'; then
656             echo_test_string=`eval $prev`
657             export echo_test_string
658             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659           else
660             # Oops.  We lost completely, so just stick with echo.
661             ECHO=echo
662           fi
663         fi
664       fi
665     fi
666   fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 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='libsndfile'
700 PACKAGE_TARNAME='libsndfile'
701 PACKAGE_VERSION='1.0.21'
702 PACKAGE_STRING='libsndfile 1.0.21'
703 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
704 PACKAGE_URL=''
705
706 ac_unique_file="src/sndfile.c"
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 Q
748 V
749 OBJC
750 F77
751 FC
752 AM_MAKEFLAGS
753 MAKEFLAGS
754 shavedir
755 LIBTOOL_DEPS
756 EXTERNAL_LIBS
757 EXTERNAL_CFLAGS
758 ALSA_LIBS
759 OS_SPECIFIC_LINKS
760 OS_SPECIFIC_CFLAGS
761 SHARED_VERSION_INFO
762 SHLIB_VERSION_ARG
763 HTML_FGCOLOUR
764 HTML_BGCOLOUR
765 htmldocdir
766 HOST_TRIPLET
767 GCC_MINOR_VERSION
768 GCC_MAJOR_VERSION
769 GCC_VERSION
770 SQLITE3_LIBS
771 SQLITE3_CFLAGS
772 VORBISENC_LIBS
773 VORBISENC_CFLAGS
774 VORBIS_LIBS
775 VORBIS_CFLAGS
776 OGG_LIBS
777 OGG_CFLAGS
778 FLAC_LIBS
779 FLAC_CFLAGS
780 PKG_CONFIG
781 OCTAVE_DEST_MDIR
782 OCTAVE_DEST_ODIR
783 OCTAVE_CONFIG_VERSION
784 OCTAVE_CONFIG
785 HAVE_OCTAVE_CONFIG
786 MKOCTFILE_VERSION
787 MKOCTFILE
788 HAVE_MKOCTFILE
789 OCTAVE
790 OCTAVE_VERSION
791 HAVE_OCTAVE
792 BUILD_OCTAVE_MOD_FALSE
793 BUILD_OCTAVE_MOD_TRUE
794 SF_COUNT_MAX
795 SIZEOF_SF_COUNT_T
796 TYPEOF_SF_COUNT_T
797 GETCONF
798 ENABLE_TEST_COVERAGE_FALSE
799 ENABLE_TEST_COVERAGE_TRUE
800 LINUX_MINGW_CROSS_TEST_FALSE
801 LINUX_MINGW_CROSS_TEST_TRUE
802 HAVE_WINE
803 HAVE_AUTOGEN
804 CXXCPP
805 CPP
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 lt_ECHO
812 RANLIB
813 AR
814 OBJDUMP
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 EGREP
822 GREP
823 SED
824 LIBTOOL
825 am__fastdepCXX_FALSE
826 am__fastdepCXX_TRUE
827 CXXDEPMODE
828 ac_ct_CXX
829 CXXFLAGS
830 CXX
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 ACLOCAL_AMFLAGS
848 am__untar
849 am__tar
850 AMTAR
851 am__leading_dot
852 SET_MAKE
853 AWK
854 mkdir_p
855 MKDIR_P
856 INSTALL_STRIP_PROGRAM
857 STRIP
858 install_sh
859 MAKEINFO
860 AUTOHEADER
861 AUTOMAKE
862 AUTOCONF
863 ACLOCAL
864 VERSION
865 PACKAGE
866 CYGPATH_W
867 am__isrc
868 INSTALL_DATA
869 INSTALL_SCRIPT
870 INSTALL_PROGRAM
871 target_os
872 target_vendor
873 target_cpu
874 target
875 host_os
876 host_vendor
877 host_cpu
878 host
879 build_os
880 build_vendor
881 build_cpu
882 build
883 target_alias
884 host_alias
885 build_alias
886 LIBS
887 ECHO_T
888 ECHO_N
889 ECHO_C
890 DEFS
891 mandir
892 localedir
893 libdir
894 psdir
895 pdfdir
896 dvidir
897 htmldir
898 infodir
899 docdir
900 oldincludedir
901 includedir
902 localstatedir
903 sharedstatedir
904 sysconfdir
905 datadir
906 datarootdir
907 libexecdir
908 sbindir
909 bindir
910 program_transform_name
911 prefix
912 exec_prefix
913 PACKAGE_URL
914 PACKAGE_BUGREPORT
915 PACKAGE_STRING
916 PACKAGE_VERSION
917 PACKAGE_TARNAME
918 PACKAGE_NAME
919 PATH_SEPARATOR
920 SHELL'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 enable_dependency_tracking
925 enable_shared
926 enable_static
927 with_pic
928 enable_fast_install
929 with_gnu_ld
930 enable_libtool_lock
931 enable_experimental
932 enable_gcc_werror
933 enable_gcc_pipe
934 enable_gcc_opt
935 enable_cpu_clip
936 enable_bow_docs
937 enable_sqlite
938 enable_alsa
939 enable_external_libs
940 enable_octave
941 enable_test_coverage
942 enable_largefile
943 with_octave
944 with_mkoctfile
945 with_octave_config
946 enable_shave
947 '
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CXX
957 CXXFLAGS
958 CCC
959 CPP
960 CXXCPP
961 PKG_CONFIG
962 FLAC_CFLAGS
963 FLAC_LIBS
964 OGG_CFLAGS
965 OGG_LIBS
966 VORBIS_CFLAGS
967 VORBIS_LIBS
968 VORBISENC_CFLAGS
969 VORBISENC_LIBS
970 SQLITE3_CFLAGS
971 SQLITE3_LIBS'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026   # If the previous option needs an argument, assign it.
1027   if test -n "$ac_prev"; then
1028     eval $ac_prev=\$ac_option
1029     ac_prev=
1030     continue
1031   fi
1032
1033   case $ac_option in
1034   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035   *)    ac_optarg=yes ;;
1036   esac
1037
1038   # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040   case $ac_dashdash$ac_option in
1041   --)
1042     ac_dashdash=yes ;;
1043
1044   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045     ac_prev=bindir ;;
1046   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047     bindir=$ac_optarg ;;
1048
1049   -build | --build | --buil | --bui | --bu)
1050     ac_prev=build_alias ;;
1051   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052     build_alias=$ac_optarg ;;
1053
1054   -cache-file | --cache-file | --cache-fil | --cache-fi \
1055   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056     ac_prev=cache_file ;;
1057   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059     cache_file=$ac_optarg ;;
1060
1061   --config-cache | -C)
1062     cache_file=config.cache ;;
1063
1064   -datadir | --datadir | --datadi | --datad)
1065     ac_prev=datadir ;;
1066   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067     datadir=$ac_optarg ;;
1068
1069   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070   | --dataroo | --dataro | --datar)
1071     ac_prev=datarootdir ;;
1072   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074     datarootdir=$ac_optarg ;;
1075
1076   -disable-* | --disable-*)
1077     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080       as_fn_error "invalid feature name: $ac_useropt"
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=no ;;
1091
1092   -docdir | --docdir | --docdi | --doc | --do)
1093     ac_prev=docdir ;;
1094   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095     docdir=$ac_optarg ;;
1096
1097   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098     ac_prev=dvidir ;;
1099   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100     dvidir=$ac_optarg ;;
1101
1102   -enable-* | --enable-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error "invalid feature name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=\$ac_optarg ;;
1117
1118   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120   | --exec | --exe | --ex)
1121     ac_prev=exec_prefix ;;
1122   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124   | --exec=* | --exe=* | --ex=*)
1125     exec_prefix=$ac_optarg ;;
1126
1127   -gas | --gas | --ga | --g)
1128     # Obsolete; use --with-gas.
1129     with_gas=yes ;;
1130
1131   -help | --help | --hel | --he | -h)
1132     ac_init_help=long ;;
1133   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134     ac_init_help=recursive ;;
1135   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136     ac_init_help=short ;;
1137
1138   -host | --host | --hos | --ho)
1139     ac_prev=host_alias ;;
1140   -host=* | --host=* | --hos=* | --ho=*)
1141     host_alias=$ac_optarg ;;
1142
1143   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144     ac_prev=htmldir ;;
1145   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146   | --ht=*)
1147     htmldir=$ac_optarg ;;
1148
1149   -includedir | --includedir | --includedi | --included | --include \
1150   | --includ | --inclu | --incl | --inc)
1151     ac_prev=includedir ;;
1152   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153   | --includ=* | --inclu=* | --incl=* | --inc=*)
1154     includedir=$ac_optarg ;;
1155
1156   -infodir | --infodir | --infodi | --infod | --info | --inf)
1157     ac_prev=infodir ;;
1158   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159     infodir=$ac_optarg ;;
1160
1161   -libdir | --libdir | --libdi | --libd)
1162     ac_prev=libdir ;;
1163   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164     libdir=$ac_optarg ;;
1165
1166   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167   | --libexe | --libex | --libe)
1168     ac_prev=libexecdir ;;
1169   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170   | --libexe=* | --libex=* | --libe=*)
1171     libexecdir=$ac_optarg ;;
1172
1173   -localedir | --localedir | --localedi | --localed | --locale)
1174     ac_prev=localedir ;;
1175   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176     localedir=$ac_optarg ;;
1177
1178   -localstatedir | --localstatedir | --localstatedi | --localstated \
1179   | --localstate | --localstat | --localsta | --localst | --locals)
1180     ac_prev=localstatedir ;;
1181   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183     localstatedir=$ac_optarg ;;
1184
1185   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186     ac_prev=mandir ;;
1187   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188     mandir=$ac_optarg ;;
1189
1190   -nfp | --nfp | --nf)
1191     # Obsolete; use --without-fp.
1192     with_fp=no ;;
1193
1194   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195   | --no-cr | --no-c | -n)
1196     no_create=yes ;;
1197
1198   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200     no_recursion=yes ;;
1201
1202   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204   | --oldin | --oldi | --old | --ol | --o)
1205     ac_prev=oldincludedir ;;
1206   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209     oldincludedir=$ac_optarg ;;
1210
1211   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212     ac_prev=prefix ;;
1213   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214     prefix=$ac_optarg ;;
1215
1216   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217   | --program-pre | --program-pr | --program-p)
1218     ac_prev=program_prefix ;;
1219   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221     program_prefix=$ac_optarg ;;
1222
1223   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224   | --program-suf | --program-su | --program-s)
1225     ac_prev=program_suffix ;;
1226   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228     program_suffix=$ac_optarg ;;
1229
1230   -program-transform-name | --program-transform-name \
1231   | --program-transform-nam | --program-transform-na \
1232   | --program-transform-n | --program-transform- \
1233   | --program-transform | --program-transfor \
1234   | --program-transfo | --program-transf \
1235   | --program-trans | --program-tran \
1236   | --progr-tra | --program-tr | --program-t)
1237     ac_prev=program_transform_name ;;
1238   -program-transform-name=* | --program-transform-name=* \
1239   | --program-transform-nam=* | --program-transform-na=* \
1240   | --program-transform-n=* | --program-transform-=* \
1241   | --program-transform=* | --program-transfor=* \
1242   | --program-transfo=* | --program-transf=* \
1243   | --program-trans=* | --program-tran=* \
1244   | --progr-tra=* | --program-tr=* | --program-t=*)
1245     program_transform_name=$ac_optarg ;;
1246
1247   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248     ac_prev=pdfdir ;;
1249   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250     pdfdir=$ac_optarg ;;
1251
1252   -psdir | --psdir | --psdi | --psd | --ps)
1253     ac_prev=psdir ;;
1254   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255     psdir=$ac_optarg ;;
1256
1257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258   | -silent | --silent | --silen | --sile | --sil)
1259     silent=yes ;;
1260
1261   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262     ac_prev=sbindir ;;
1263   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264   | --sbi=* | --sb=*)
1265     sbindir=$ac_optarg ;;
1266
1267   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269   | --sharedst | --shareds | --shared | --share | --shar \
1270   | --sha | --sh)
1271     ac_prev=sharedstatedir ;;
1272   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275   | --sha=* | --sh=*)
1276     sharedstatedir=$ac_optarg ;;
1277
1278   -site | --site | --sit)
1279     ac_prev=site ;;
1280   -site=* | --site=* | --sit=*)
1281     site=$ac_optarg ;;
1282
1283   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284     ac_prev=srcdir ;;
1285   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286     srcdir=$ac_optarg ;;
1287
1288   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289   | --syscon | --sysco | --sysc | --sys | --sy)
1290     ac_prev=sysconfdir ;;
1291   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293     sysconfdir=$ac_optarg ;;
1294
1295   -target | --target | --targe | --targ | --tar | --ta | --t)
1296     ac_prev=target_alias ;;
1297   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298     target_alias=$ac_optarg ;;
1299
1300   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301     verbose=yes ;;
1302
1303   -version | --version | --versio | --versi | --vers | -V)
1304     ac_init_version=: ;;
1305
1306   -with-* | --with-*)
1307     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310       as_fn_error "invalid package name: $ac_useropt"
1311     ac_useropt_orig=$ac_useropt
1312     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313     case $ac_user_opts in
1314       *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318          ac_unrecognized_sep=', ';;
1319     esac
1320     eval with_$ac_useropt=\$ac_optarg ;;
1321
1322   -without-* | --without-*)
1323     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326       as_fn_error "invalid package name: $ac_useropt"
1327     ac_useropt_orig=$ac_useropt
1328     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329     case $ac_user_opts in
1330       *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334          ac_unrecognized_sep=', ';;
1335     esac
1336     eval with_$ac_useropt=no ;;
1337
1338   --x)
1339     # Obsolete; use --with-x.
1340     with_x=yes ;;
1341
1342   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343   | --x-incl | --x-inc | --x-in | --x-i)
1344     ac_prev=x_includes ;;
1345   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347     x_includes=$ac_optarg ;;
1348
1349   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351     ac_prev=x_libraries ;;
1352   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354     x_libraries=$ac_optarg ;;
1355
1356   -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1358     ;;
1359
1360   *=*)
1361     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362     # Reject names that are not valid shell variable names.
1363     case $ac_envvar in #(
1364       '' | [0-9]* | *[!_$as_cr_alnum]* )
1365       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366     esac
1367     eval $ac_envvar=\$ac_optarg
1368     export $ac_envvar ;;
1369
1370   *)
1371     # FIXME: should be removed in autoconf 3.0.
1372     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376     ;;
1377
1378   esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383   as_fn_error "missing argument to $ac_option"
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387   case $enable_option_checking in
1388     no) ;;
1389     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391   esac
1392 fi
1393
1394 # Check all directory arguments for consistency.
1395 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396                 datadir sysconfdir sharedstatedir localstatedir includedir \
1397                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398                 libdir localedir mandir
1399 do
1400   eval ac_val=\$$ac_var
1401   # Remove trailing slashes.
1402   case $ac_val in
1403     */ )
1404       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405       eval $ac_var=\$ac_val;;
1406   esac
1407   # Be sure to have absolute directory names.
1408   case $ac_val in
1409     [\\/$]* | ?:[\\/]* )  continue;;
1410     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411   esac
1412   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1414
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1421
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424   if test "x$build_alias" = x; then
1425     cross_compiling=maybe
1426     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427     If a cross compiler is detected then cross compile mode will be used." >&2
1428   elif test "x$build_alias" != "x$host_alias"; then
1429     cross_compiling=yes
1430   fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442   as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444   as_fn_error "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449   ac_srcdir_defaulted=yes
1450   # Try the directory containing this script, then the parent directory.
1451   ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453          X"$as_myself" : 'X\(//\)[^/]' \| \
1454          X"$as_myself" : 'X\(//\)$' \| \
1455          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458             s//\1/
1459             q
1460           }
1461           /^X\(\/\/\)[^/].*/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)$/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\).*/{
1470             s//\1/
1471             q
1472           }
1473           s/.*/./; q'`
1474   srcdir=$ac_confdir
1475   if test ! -r "$srcdir/$ac_unique_file"; then
1476     srcdir=..
1477   fi
1478 else
1479   ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488         pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491   srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501   eval ac_env_${ac_var}_value=\$${ac_var}
1502   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510   # Omit some internal or obsolete options to make the list less imposing.
1511   # This message is too long to be a string in the A/UX 3.1 sh.
1512   cat <<_ACEOF
1513 \`configure' configures libsndfile 1.0.21 to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE.  See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523   -h, --help              display this help and exit
1524       --help=short        display options specific to this package
1525       --help=recursive    display the short help of all the included packages
1526   -V, --version           display version information and exit
1527   -q, --quiet, --silent   do not print \`checking...' messages
1528       --cache-file=FILE   cache test results in FILE [disabled]
1529   -C, --config-cache      alias for \`--cache-file=config.cache'
1530   -n, --no-create         do not create output files
1531       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534   --prefix=PREFIX         install architecture-independent files in PREFIX
1535                           [$ac_default_prefix]
1536   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                           [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547   --bindir=DIR            user executables [EPREFIX/bin]
1548   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1549   --libexecdir=DIR        program executables [EPREFIX/libexec]
1550   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1551   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1552   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1553   --libdir=DIR            object code libraries [EPREFIX/lib]
1554   --includedir=DIR        C header files [PREFIX/include]
1555   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1556   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1557   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1558   --infodir=DIR           info documentation [DATAROOTDIR/info]
1559   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1560   --mandir=DIR            man documentation [DATAROOTDIR/man]
1561   --docdir=DIR            documentation root [DATAROOTDIR/doc/libsndfile]
1562   --htmldir=DIR           html documentation [DOCDIR]
1563   --dvidir=DIR            dvi documentation [DOCDIR]
1564   --pdfdir=DIR            pdf documentation [DOCDIR]
1565   --psdir=DIR             ps documentation [DOCDIR]
1566 _ACEOF
1567
1568   cat <<\_ACEOF
1569
1570 Program names:
1571   --program-prefix=PREFIX            prepend PREFIX to installed program names
1572   --program-suffix=SUFFIX            append SUFFIX to installed program names
1573   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1574
1575 System types:
1576   --build=BUILD     configure for building on BUILD [guessed]
1577   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1578   --target=TARGET   configure for building compilers for TARGET [HOST]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583   case $ac_init_help in
1584      short | recursive ) echo "Configuration of libsndfile 1.0.21:";;
1585    esac
1586   cat <<\_ACEOF
1587
1588 Optional Features:
1589   --disable-option-checking  ignore unrecognized --enable/--with options
1590   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1591   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1592   --disable-dependency-tracking  speeds up one-time build
1593   --enable-dependency-tracking   do not reject slow dependency extractors
1594   --enable-shared[=PKGS]  build shared libraries [default=yes]
1595   --enable-static[=PKGS]  build static libraries [default=yes]
1596   --enable-fast-install[=PKGS]
1597                           optimize for fast installation [default=yes]
1598   --disable-libtool-lock  avoid locking (might break parallel builds)
1599   --enable-experimental   enable experimental code
1600   --enable-gcc-werror     enable -Werror in all Makefiles
1601   --disable-gcc-pipe      disable gcc -pipe option
1602   --disable-gcc-opt       disable gcc optimisations
1603   --disable-cpu-clip      disable tricky cpu specific clipper
1604   --enable-bow-docs       enable black-on-white html docs
1605   --disable-sqlite        disable use of sqlite
1606   --disable-alsa          disable use of ALSA
1607   --disable-external-libs disable use of FLAC, Ogg and Vorbis [default=no]
1608   --enable-octave         disable building of GNU Octave module
1609   --enable-test-coverage  enable test coverage
1610   --disable-largefile     omit support for large files
1611   --enable-shave          use shave to make the build pretty [default=yes]
1612
1613 Optional Packages:
1614   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1615   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1616   --with-pic              try to use only PIC/non-PIC objects [default=use
1617                           both]
1618   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619   --with-octave           choose the octave version
1620   --with-mkoctfile        choose the mkoctfile version
1621   --with-octave-config    choose the octave-config version
1622
1623 Some influential environment variables:
1624   CC          C compiler command
1625   CFLAGS      C compiler flags
1626   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1627               nonstandard directory <lib dir>
1628   LIBS        libraries to pass to the linker, e.g. -l<library>
1629   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1630               you have headers in a nonstandard directory <include dir>
1631   CXX         C++ compiler command
1632   CXXFLAGS    C++ compiler flags
1633   CPP         C preprocessor
1634   CXXCPP      C++ preprocessor
1635   PKG_CONFIG  path to pkg-config utility
1636   FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1637   FLAC_LIBS   linker flags for FLAC, overriding pkg-config
1638   OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1639   OGG_LIBS    linker flags for OGG, overriding pkg-config
1640   VORBIS_CFLAGS
1641               C compiler flags for VORBIS, overriding pkg-config
1642   VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1643   VORBISENC_CFLAGS
1644               C compiler flags for VORBISENC, overriding pkg-config
1645   VORBISENC_LIBS
1646               linker flags for VORBISENC, overriding pkg-config
1647   SQLITE3_CFLAGS
1648               C compiler flags for SQLITE3, overriding pkg-config
1649   SQLITE3_LIBS
1650               linker flags for SQLITE3, overriding pkg-config
1651
1652 Use these variables to override the choices made by `configure' or to help
1653 it to find libraries and programs with nonstandard names/locations.
1654
1655 Report bugs to <erikd@mega-nerd.com>.
1656 _ACEOF
1657 ac_status=$?
1658 fi
1659
1660 if test "$ac_init_help" = "recursive"; then
1661   # If there are subdirs, report their specific --help.
1662   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663     test -d "$ac_dir" ||
1664       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665       continue
1666     ac_builddir=.
1667
1668 case "$ac_dir" in
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *)
1671   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672   # A ".." for each directory in $ac_dir_suffix.
1673   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674   case $ac_top_builddir_sub in
1675   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677   esac ;;
1678 esac
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1683
1684 case $srcdir in
1685   .)  # We are building in place.
1686     ac_srcdir=.
1687     ac_top_srcdir=$ac_top_builddir_sub
1688     ac_abs_top_srcdir=$ac_pwd ;;
1689   [\\/]* | ?:[\\/]* )  # Absolute name.
1690     ac_srcdir=$srcdir$ac_dir_suffix;
1691     ac_top_srcdir=$srcdir
1692     ac_abs_top_srcdir=$srcdir ;;
1693   *) # Relative name.
1694     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695     ac_top_srcdir=$ac_top_build_prefix$srcdir
1696     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 esac
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700     cd "$ac_dir" || { ac_status=$?; continue; }
1701     # Check for guested configure.
1702     if test -f "$ac_srcdir/configure.gnu"; then
1703       echo &&
1704       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705     elif test -f "$ac_srcdir/configure"; then
1706       echo &&
1707       $SHELL "$ac_srcdir/configure" --help=recursive
1708     else
1709       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710     fi || ac_status=$?
1711     cd "$ac_pwd" || { ac_status=$?; break; }
1712   done
1713 fi
1714
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1717   cat <<\_ACEOF
1718 libsndfile configure 1.0.21
1719 generated by GNU Autoconf 2.64
1720
1721 Copyright (C) 2009 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1724 _ACEOF
1725   exit
1726 fi
1727
1728 ## ------------------------ ##
1729 ## Autoconf initialization. ##
1730 ## ------------------------ ##
1731
1732 # ac_fn_c_try_compile LINENO
1733 # --------------------------
1734 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_compile ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   rm -f conftest.$ac_objext
1739   if { { ac_try="$ac_compile"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_compile") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } && {
1755          test -z "$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        } && test -s conftest.$ac_objext; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763         ac_retval=1
1764 fi
1765   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766   return $ac_retval
1767
1768 } # ac_fn_c_try_compile
1769
1770 # ac_fn_cxx_try_compile LINENO
1771 # ----------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_cxx_try_compile ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   rm -f conftest.$ac_objext
1777   if { { ac_try="$ac_compile"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_compile") 2>conftest.err
1785   ac_status=$?
1786   if test -s conftest.err; then
1787     grep -v '^ *+' conftest.err >conftest.er1
1788     cat conftest.er1 >&5
1789     mv -f conftest.er1 conftest.err
1790   fi
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } && {
1793          test -z "$ac_cxx_werror_flag" ||
1794          test ! -s conftest.err
1795        } && test -s conftest.$ac_objext; then :
1796   ac_retval=0
1797 else
1798   $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801         ac_retval=1
1802 fi
1803   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804   return $ac_retval
1805
1806 } # ac_fn_cxx_try_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   rm -f conftest.$ac_objext conftest$ac_exeext
1815   if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_link") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } && {
1831          test -z "$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        } && test -s conftest$ac_exeext && {
1834          test "$cross_compiling" = yes ||
1835          $as_test_x conftest$ac_exeext
1836        }; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846   # interfere with the next link command; also delete a directory that is
1847   # left behind by Apple's compiler.  We do this before executing the actions.
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850   return $ac_retval
1851
1852 } # ac_fn_c_try_link
1853
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872   eval "$3=yes"
1873 else
1874   eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883 } # ac_fn_c_check_header_compile
1884
1885 # ac_fn_c_try_cpp LINENO
1886 # ----------------------
1887 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_cpp ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 case "(($ac_try" in
1893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894   *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899   ac_status=$?
1900   if test -s conftest.err; then
1901     grep -v '^ *+' conftest.err >conftest.er1
1902     cat conftest.er1 >&5
1903     mv -f conftest.er1 conftest.err
1904   fi
1905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906   test $ac_status = 0; } >/dev/null && {
1907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1908          test ! -s conftest.err
1909        }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915     ac_retval=1
1916 fi
1917   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918   return $ac_retval
1919
1920 } # ac_fn_c_try_cpp
1921
1922 # ac_fn_c_try_run LINENO
1923 # ----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1925 # that executables *can* be run.
1926 ac_fn_c_try_run ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_link") 2>&5
1937   ac_status=$?
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1940   { { case "(($ac_try" in
1941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942   *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946   (eval "$ac_try") 2>&5
1947   ac_status=$?
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; }; }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: program exited with status $ac_status" >&5
1953        $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956        ac_retval=$ac_status
1957 fi
1958   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960   return $ac_retval
1961
1962 } # ac_fn_c_try_run
1963
1964 # ac_fn_c_check_func LINENO FUNC VAR
1965 # ----------------------------------
1966 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1967 ac_fn_c_check_func ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1979 #define $2 innocuous_$2
1980
1981 /* System header to define __stub macros and hopefully few prototypes,
1982     which can conflict with char $2 (); below.
1983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1984     <limits.h> exists even on freestanding compilers.  */
1985
1986 #ifdef __STDC__
1987 # include <limits.h>
1988 #else
1989 # include <assert.h>
1990 #endif
1991
1992 #undef $2
1993
1994 /* Override any GCC internal prototype to avoid an error.
1995    Use char because int might match the return type of a GCC
1996    builtin and then its argument prototype would still apply.  */
1997 #ifdef __cplusplus
1998 extern "C"
1999 #endif
2000 char $2 ();
2001 /* The GNU C library defines this for functions which it implements
2002     to always fail with ENOSYS.  Some functions are actually named
2003     something starting with __ and the normal name is an alias.  */
2004 #if defined __stub_$2 || defined __stub___$2
2005 choke me
2006 #endif
2007
2008 int
2009 main ()
2010 {
2011 return $2 ();
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_link "$LINENO"; then :
2017   eval "$3=yes"
2018 else
2019   eval "$3=no"
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext \
2022     conftest$ac_exeext conftest.$ac_ext
2023 fi
2024 eval ac_res=\$$3
2025                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028
2029 } # ac_fn_c_check_func
2030
2031 # ac_fn_cxx_try_cpp LINENO
2032 # ------------------------
2033 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_cxx_try_cpp ()
2035 {
2036   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037   if { { ac_try="$ac_cpp conftest.$ac_ext"
2038 case "(($ac_try" in
2039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040   *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2045   ac_status=$?
2046   if test -s conftest.err; then
2047     grep -v '^ *+' conftest.err >conftest.er1
2048     cat conftest.er1 >&5
2049     mv -f conftest.er1 conftest.err
2050   fi
2051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052   test $ac_status = 0; } >/dev/null && {
2053          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2054          test ! -s conftest.err
2055        }; then :
2056   ac_retval=0
2057 else
2058   $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061     ac_retval=1
2062 fi
2063   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064   return $ac_retval
2065
2066 } # ac_fn_cxx_try_cpp
2067
2068 # ac_fn_cxx_try_link LINENO
2069 # -------------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_link ()
2072 {
2073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074   rm -f conftest.$ac_objext conftest$ac_exeext
2075   if { { ac_try="$ac_link"
2076 case "(($ac_try" in
2077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078   *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082   (eval "$ac_link") 2>conftest.err
2083   ac_status=$?
2084   if test -s conftest.err; then
2085     grep -v '^ *+' conftest.err >conftest.er1
2086     cat conftest.er1 >&5
2087     mv -f conftest.er1 conftest.err
2088   fi
2089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090   test $ac_status = 0; } && {
2091          test -z "$ac_cxx_werror_flag" ||
2092          test ! -s conftest.err
2093        } && test -s conftest$ac_exeext && {
2094          test "$cross_compiling" = yes ||
2095          $as_test_x conftest$ac_exeext
2096        }; then :
2097   ac_retval=0
2098 else
2099   $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102         ac_retval=1
2103 fi
2104   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2105   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2106   # interfere with the next link command; also delete a directory that is
2107   # left behind by Apple's compiler.  We do this before executing the actions.
2108   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110   return $ac_retval
2111
2112 } # ac_fn_cxx_try_link
2113
2114 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # -------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2118 # accordingly.
2119 ac_fn_c_check_header_mongrel ()
2120 {
2121   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126   $as_echo_n "(cached) " >&6
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 else
2132   # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   ac_header_compiler=yes
2142 else
2143   ac_header_compiler=no
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2148
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_c_try_cpp "$LINENO"; then :
2157   ac_header_preproc=yes
2158 else
2159   ac_header_preproc=no
2160 fi
2161 rm -f conftest.err conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2164
2165 # So?  What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167   yes:no: )
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172     ;;
2173   no:yes:* )
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 ( cat <<\_ASBOX
2185 ## ---------------------------------- ##
2186 ## Report this to erikd@mega-nerd.com ##
2187 ## ---------------------------------- ##
2188 _ASBOX
2189      ) | sed "s/^/$as_me: WARNING:     /" >&2
2190     ;;
2191 esac
2192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2195   $as_echo_n "(cached) " >&6
2196 else
2197   eval "$3=\$ac_header_compiler"
2198 fi
2199 eval ac_res=\$$3
2200                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 fi
2203   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204
2205 } # ac_fn_c_check_header_mongrel
2206
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR
2208 # ------------------------------------
2209 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2210 ac_fn_c_check_decl ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2214 $as_echo_n "checking whether $2 is declared... " >&6; }
2215 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216   $as_echo_n "(cached) " >&6
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main ()
2223 {
2224 #ifndef $2
2225   (void) $2;
2226 #endif
2227
2228   ;
2229   return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233   eval "$3=yes"
2234 else
2235   eval "$3=no"
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 eval ac_res=\$$3
2240                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244 } # ac_fn_c_check_decl
2245
2246 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2247 # --------------------------------------------
2248 # Tries to find the compile-time value of EXPR in a program that includes
2249 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2250 # computed
2251 ac_fn_c_compute_int ()
2252 {
2253   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254   if test "$cross_compiling" = yes; then
2255     # Depending upon the size, compute the lo and hi bounds.
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !(($2) >= 0)];
2263 test_array [0] = 0
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270   ac_lo=0 ac_mid=0
2271   while :; do
2272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h.  */
2274 $4
2275 int
2276 main ()
2277 {
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2279 test_array [0] = 0
2280
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286   ac_hi=$ac_mid; break
2287 else
2288   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2289                         if test $ac_lo -le $ac_mid; then
2290                           ac_lo= ac_hi=
2291                           break
2292                         fi
2293                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296   done
2297 else
2298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 $4
2301 int
2302 main ()
2303 {
2304 static int test_array [1 - 2 * !(($2) < 0)];
2305 test_array [0] = 0
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312   ac_hi=-1 ac_mid=-1
2313   while :; do
2314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $4
2317 int
2318 main ()
2319 {
2320 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2321 test_array [0] = 0
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328   ac_lo=$ac_mid; break
2329 else
2330   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331                         if test $ac_mid -le $ac_hi; then
2332                           ac_lo= ac_hi=
2333                           break
2334                         fi
2335                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2336 fi
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338   done
2339 else
2340   ac_lo= ac_hi=
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $4
2351 int
2352 main ()
2353 {
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 test_array [0] = 0
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362   ac_hi=$ac_mid
2363 else
2364   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2365 fi
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 done
2368 case $ac_lo in #((
2369 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2370 '') ac_retval=1 ;;
2371 esac
2372   else
2373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 static long int longval () { return $2; }
2377 static unsigned long int ulongval () { return $2; }
2378 #include <stdio.h>
2379 #include <stdlib.h>
2380 int
2381 main ()
2382 {
2383
2384   FILE *f = fopen ("conftest.val", "w");
2385   if (! f)
2386     return 1;
2387   if (($2) < 0)
2388     {
2389       long int i = longval ();
2390       if (i != ($2))
2391         return 1;
2392       fprintf (f, "%ld", i);
2393     }
2394   else
2395     {
2396       unsigned long int i = ulongval ();
2397       if (i != ($2))
2398         return 1;
2399       fprintf (f, "%lu", i);
2400     }
2401   /* Do not output a trailing newline, as this causes \r\n confusion
2402      on some platforms.  */
2403   return ferror (f) || fclose (f) != 0;
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_run "$LINENO"; then :
2410   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2411 else
2412   ac_retval=1
2413 fi
2414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2415   conftest.$ac_objext conftest.beam conftest.$ac_ext
2416 rm -f conftest.val
2417
2418   fi
2419   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420   return $ac_retval
2421
2422 } # ac_fn_c_compute_int
2423
2424 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2425 # -------------------------------------------
2426 # Tests whether TYPE exists after having included INCLUDES, setting cache
2427 # variable VAR accordingly.
2428 ac_fn_c_check_type ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434   $as_echo_n "(cached) " >&6
2435 else
2436   eval "$3=no"
2437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h.  */
2439 $4
2440 int
2441 main ()
2442 {
2443 if (sizeof ($2))
2444          return 0;
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h.  */
2452 $4
2453 int
2454 main ()
2455 {
2456 if (sizeof (($2)))
2457             return 0;
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463
2464 else
2465   eval "$3=yes"
2466 fi
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 fi
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 fi
2471 eval ac_res=\$$3
2472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475
2476 } # ac_fn_c_check_type
2477 cat >config.log <<_ACEOF
2478 This file contains any messages produced by compilers while
2479 running configure, to aid debugging if configure makes a mistake.
2480
2481 It was created by libsndfile $as_me 1.0.21, which was
2482 generated by GNU Autoconf 2.64.  Invocation command line was
2483
2484   $ $0 $@
2485
2486 _ACEOF
2487 exec 5>>config.log
2488 {
2489 cat <<_ASUNAME
2490 ## --------- ##
2491 ## Platform. ##
2492 ## --------- ##
2493
2494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2499
2500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2501 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2502
2503 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2504 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2506 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2507 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2508 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2509 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2510
2511 _ASUNAME
2512
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518     $as_echo "PATH: $as_dir"
2519   done
2520 IFS=$as_save_IFS
2521
2522 } >&5
2523
2524 cat >&5 <<_ACEOF
2525
2526
2527 ## ----------- ##
2528 ## Core tests. ##
2529 ## ----------- ##
2530
2531 _ACEOF
2532
2533
2534 # Keep a trace of the command line.
2535 # Strip out --no-create and --no-recursion so they do not pile up.
2536 # Strip out --silent because we don't want to record it for future runs.
2537 # Also quote any args containing shell meta-characters.
2538 # Make two passes to allow for proper duplicate-argument suppression.
2539 ac_configure_args=
2540 ac_configure_args0=
2541 ac_configure_args1=
2542 ac_must_keep_next=false
2543 for ac_pass in 1 2
2544 do
2545   for ac_arg
2546   do
2547     case $ac_arg in
2548     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2549     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2550     | -silent | --silent | --silen | --sile | --sil)
2551       continue ;;
2552     *\'*)
2553       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2554     esac
2555     case $ac_pass in
2556     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2557     2)
2558       as_fn_append ac_configure_args1 " '$ac_arg'"
2559       if test $ac_must_keep_next = true; then
2560         ac_must_keep_next=false # Got value, back to normal.
2561       else
2562         case $ac_arg in
2563           *=* | --config-cache | -C | -disable-* | --disable-* \
2564           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2565           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2566           | -with-* | --with-* | -without-* | --without-* | --x)
2567             case "$ac_configure_args0 " in
2568               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2569             esac
2570             ;;
2571           -* ) ac_must_keep_next=true ;;
2572         esac
2573       fi
2574       as_fn_append ac_configure_args " '$ac_arg'"
2575       ;;
2576     esac
2577   done
2578 done
2579 { ac_configure_args0=; unset ac_configure_args0;}
2580 { ac_configure_args1=; unset ac_configure_args1;}
2581
2582 # When interrupted or exit'd, cleanup temporary files, and complete
2583 # config.log.  We remove comments because anyway the quotes in there
2584 # would cause problems or look ugly.
2585 # WARNING: Use '\'' to represent an apostrophe within the trap.
2586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2587 trap 'exit_status=$?
2588   # Save into config.log some information that might help in debugging.
2589   {
2590     echo
2591
2592     cat <<\_ASBOX
2593 ## ---------------- ##
2594 ## Cache variables. ##
2595 ## ---------------- ##
2596 _ASBOX
2597     echo
2598     # The following way of writing the cache mishandles newlines in values,
2599 (
2600   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2601     eval ac_val=\$$ac_var
2602     case $ac_val in #(
2603     *${as_nl}*)
2604       case $ac_var in #(
2605       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2607       esac
2608       case $ac_var in #(
2609       _ | IFS | as_nl) ;; #(
2610       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2611       *) { eval $ac_var=; unset $ac_var;} ;;
2612       esac ;;
2613     esac
2614   done
2615   (set) 2>&1 |
2616     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2617     *${as_nl}ac_space=\ *)
2618       sed -n \
2619         "s/'\''/'\''\\\\'\'''\''/g;
2620           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2621       ;; #(
2622     *)
2623       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2624       ;;
2625     esac |
2626     sort
2627 )
2628     echo
2629
2630     cat <<\_ASBOX
2631 ## ----------------- ##
2632 ## Output variables. ##
2633 ## ----------------- ##
2634 _ASBOX
2635     echo
2636     for ac_var in $ac_subst_vars
2637     do
2638       eval ac_val=\$$ac_var
2639       case $ac_val in
2640       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641       esac
2642       $as_echo "$ac_var='\''$ac_val'\''"
2643     done | sort
2644     echo
2645
2646     if test -n "$ac_subst_files"; then
2647       cat <<\_ASBOX
2648 ## ------------------- ##
2649 ## File substitutions. ##
2650 ## ------------------- ##
2651 _ASBOX
2652       echo
2653       for ac_var in $ac_subst_files
2654       do
2655         eval ac_val=\$$ac_var
2656         case $ac_val in
2657         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2658         esac
2659         $as_echo "$ac_var='\''$ac_val'\''"
2660       done | sort
2661       echo
2662     fi
2663
2664     if test -s confdefs.h; then
2665       cat <<\_ASBOX
2666 ## ----------- ##
2667 ## confdefs.h. ##
2668 ## ----------- ##
2669 _ASBOX
2670       echo
2671       cat confdefs.h
2672       echo
2673     fi
2674     test "$ac_signal" != 0 &&
2675       $as_echo "$as_me: caught signal $ac_signal"
2676     $as_echo "$as_me: exit $exit_status"
2677   } >&5
2678   rm -f core *.core core.conftest.* &&
2679     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2680     exit $exit_status
2681 ' 0
2682 for ac_signal in 1 2 13 15; do
2683   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2684 done
2685 ac_signal=0
2686
2687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2688 rm -f -r conftest* confdefs.h
2689
2690 $as_echo "/* confdefs.h */" > confdefs.h
2691
2692 # Predefined preprocessor variables.
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_NAME "$PACKAGE_NAME"
2696 _ACEOF
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2700 _ACEOF
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2704 _ACEOF
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_STRING "$PACKAGE_STRING"
2708 _ACEOF
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2712 _ACEOF
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define PACKAGE_URL "$PACKAGE_URL"
2716 _ACEOF
2717
2718
2719 # Let the site file select an alternate cache file if it wants to.
2720 # Prefer an explicitly selected file to automatically selected ones.
2721 ac_site_file1=NONE
2722 ac_site_file2=NONE
2723 if test -n "$CONFIG_SITE"; then
2724   ac_site_file1=$CONFIG_SITE
2725 elif test "x$prefix" != xNONE; then
2726   ac_site_file1=$prefix/share/config.site
2727   ac_site_file2=$prefix/etc/config.site
2728 else
2729   ac_site_file1=$ac_default_prefix/share/config.site
2730   ac_site_file2=$ac_default_prefix/etc/config.site
2731 fi
2732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2733 do
2734   test "x$ac_site_file" = xNONE && continue
2735   if test -r "$ac_site_file"; then
2736     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2738     sed 's/^/| /' "$ac_site_file" >&5
2739     . "$ac_site_file"
2740   fi
2741 done
2742
2743 if test -r "$cache_file"; then
2744   # Some versions of bash will fail to source /dev/null (special
2745   # files actually), so we avoid doing that.
2746   if test -f "$cache_file"; then
2747     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2748 $as_echo "$as_me: loading cache $cache_file" >&6;}
2749     case $cache_file in
2750       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2751       *)                      . "./$cache_file";;
2752     esac
2753   fi
2754 else
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2756 $as_echo "$as_me: creating cache $cache_file" >&6;}
2757   >$cache_file
2758 fi
2759
2760 # Check that the precious variables saved in the cache have kept the same
2761 # value.
2762 ac_cache_corrupted=false
2763 for ac_var in $ac_precious_vars; do
2764   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2765   eval ac_new_set=\$ac_env_${ac_var}_set
2766   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2767   eval ac_new_val=\$ac_env_${ac_var}_value
2768   case $ac_old_set,$ac_new_set in
2769     set,)
2770       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2772       ac_cache_corrupted=: ;;
2773     ,set)
2774       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2776       ac_cache_corrupted=: ;;
2777     ,);;
2778     *)
2779       if test "x$ac_old_val" != "x$ac_new_val"; then
2780         # differences in whitespace do not lead to failure.
2781         ac_old_val_w=`echo x $ac_old_val`
2782         ac_new_val_w=`echo x $ac_new_val`
2783         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2784           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2786           ac_cache_corrupted=:
2787         else
2788           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2790           eval $ac_var=\$ac_old_val
2791         fi
2792         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2793 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2794         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2795 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2796       fi;;
2797   esac
2798   # Pass precious variables to config.status.
2799   if test "$ac_new_set" = set; then
2800     case $ac_new_val in
2801     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2802     *) ac_arg=$ac_var=$ac_new_val ;;
2803     esac
2804     case " $ac_configure_args " in
2805       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2806       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2807     esac
2808   fi
2809 done
2810 if $ac_cache_corrupted; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2815   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2816 fi
2817 ## -------------------- ##
2818 ## Main body of script. ##
2819 ## -------------------- ##
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829 # Put config stuff in Cfg.
2830 ac_aux_dir=
2831 for ac_dir in Cfg "$srcdir"/Cfg; do
2832   for ac_t in install-sh install.sh shtool; do
2833     if test -f "$ac_dir/$ac_t"; then
2834       ac_aux_dir=$ac_dir
2835       ac_install_sh="$ac_aux_dir/$ac_t -c"
2836       break 2
2837     fi
2838   done
2839 done
2840 if test -z "$ac_aux_dir"; then
2841   as_fn_error "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2842 fi
2843
2844 # These three variables are undocumented and unsupported,
2845 # and are intended to be withdrawn in a future Autoconf release.
2846 # They can cause serious problems if a builder's source tree is in a directory
2847 # whose full name contains unusual characters.
2848 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2849 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2850 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2851
2852
2853
2854
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if test "${ac_cv_build+set}" = set; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2876 *-*-*) ;;
2877 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2878 esac
2879 build=$ac_cv_build
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_build
2882 shift
2883 build_cpu=$1
2884 build_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 build_os=$*
2889 IFS=$ac_save_IFS
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if test "${ac_cv_host+set}" = set; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test "x$host_alias" = x; then
2899   ac_cv_host=$ac_cv_build
2900 else
2901   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2903 fi
2904
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2908 case $ac_cv_host in
2909 *-*-*) ;;
2910 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2911 esac
2912 host=$ac_cv_host
2913 ac_save_IFS=$IFS; IFS='-'
2914 set x $ac_cv_host
2915 shift
2916 host_cpu=$1
2917 host_vendor=$2
2918 shift; shift
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2921 host_os=$*
2922 IFS=$ac_save_IFS
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2924
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2927 $as_echo_n "checking target system type... " >&6; }
2928 if test "${ac_cv_target+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test "x$target_alias" = x; then
2932   ac_cv_target=$ac_cv_host
2933 else
2934   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2935     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2936 fi
2937
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2940 $as_echo "$ac_cv_target" >&6; }
2941 case $ac_cv_target in
2942 *-*-*) ;;
2943 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2944 esac
2945 target=$ac_cv_target
2946 ac_save_IFS=$IFS; IFS='-'
2947 set x $ac_cv_target
2948 shift
2949 target_cpu=$1
2950 target_vendor=$2
2951 shift; shift
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2954 target_os=$*
2955 IFS=$ac_save_IFS
2956 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2957
2958
2959 # The aliases save the names the user supplied, while $host etc.
2960 # will get canonicalized.
2961 test -n "$target_alias" &&
2962   test "$program_prefix$program_suffix$program_transform_name" = \
2963     NONENONEs,x,x, &&
2964   program_prefix=${target_alias}-
2965
2966
2967 ac_config_headers="$ac_config_headers src/config.h"
2968
2969
2970 am__api_version='1.11'
2971
2972 # Find a good install program.  We prefer a C program (faster),
2973 # so one script is as good as another.  But avoid the broken or
2974 # incompatible versions:
2975 # SysV /etc/install, /usr/sbin/install
2976 # SunOS /usr/etc/install
2977 # IRIX /sbin/install
2978 # AIX /bin/install
2979 # AmigaOS /C/install, which installs bootblocks on floppy discs
2980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2983 # OS/2's system install, which has a completely different semantic
2984 # ./install, which can be erroneously created by make from ./install.sh.
2985 # Reject install programs that cannot install multiple files.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2987 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2988 if test -z "$INSTALL"; then
2989 if test "${ac_cv_path_install+set}" = set; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     # Account for people who put trailing slashes in PATH elements.
2998 case $as_dir/ in #((
2999   ./ | .// | /[cC]/* | \
3000   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3001   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3002   /usr/ucb/* ) ;;
3003   *)
3004     # OSF1 and SCO ODT 3.0 have their own names for install.
3005     # Don't use installbsd from OSF since it installs stuff as root
3006     # by default.
3007     for ac_prog in ginstall scoinst install; do
3008       for ac_exec_ext in '' $ac_executable_extensions; do
3009         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3010           if test $ac_prog = install &&
3011             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3012             # AIX install.  It has an incompatible calling convention.
3013             :
3014           elif test $ac_prog = install &&
3015             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3016             # program-specific install script used by HP pwplus--don't use.
3017             :
3018           else
3019             rm -rf conftest.one conftest.two conftest.dir
3020             echo one > conftest.one
3021             echo two > conftest.two
3022             mkdir conftest.dir
3023             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3024               test -s conftest.one && test -s conftest.two &&
3025               test -s conftest.dir/conftest.one &&
3026               test -s conftest.dir/conftest.two
3027             then
3028               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3029               break 3
3030             fi
3031           fi
3032         fi
3033       done
3034     done
3035     ;;
3036 esac
3037
3038   done
3039 IFS=$as_save_IFS
3040
3041 rm -rf conftest.one conftest.two conftest.dir
3042
3043 fi
3044   if test "${ac_cv_path_install+set}" = set; then
3045     INSTALL=$ac_cv_path_install
3046   else
3047     # As a last resort, use the slow shell script.  Don't cache a
3048     # value for INSTALL within a source directory, because that will
3049     # break other packages using the cache if that directory is
3050     # removed, or if the value is a relative name.
3051     INSTALL=$ac_install_sh
3052   fi
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3055 $as_echo "$INSTALL" >&6; }
3056
3057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3058 # It thinks the first close brace ends the variable substitution.
3059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3060
3061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3062
3063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3066 $as_echo_n "checking whether build environment is sane... " >&6; }
3067 # Just in case
3068 sleep 1
3069 echo timestamp > conftest.file
3070 # Reject unsafe characters in $srcdir or the absolute working directory
3071 # name.  Accept space and tab only in the latter.
3072 am_lf='
3073 '
3074 case `pwd` in
3075   *[\\\"\#\$\&\'\`$am_lf]*)
3076     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3077 esac
3078 case $srcdir in
3079   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3080     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3081 esac
3082
3083 # Do `set' in a subshell so we don't clobber the current shell's
3084 # arguments.  Must try -L first in case configure is actually a
3085 # symlink; some systems play weird games with the mod time of symlinks
3086 # (eg FreeBSD returns the mod time of the symlink's containing
3087 # directory).
3088 if (
3089    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3090    if test "$*" = "X"; then
3091       # -L didn't work.
3092       set X `ls -t "$srcdir/configure" conftest.file`
3093    fi
3094    rm -f conftest.file
3095    if test "$*" != "X $srcdir/configure conftest.file" \
3096       && test "$*" != "X conftest.file $srcdir/configure"; then
3097
3098       # If neither matched, then we have a broken ls.  This can happen
3099       # if, for instance, CONFIG_SHELL is bash and it inherits a
3100       # broken ls alias from the environment.  This has actually
3101       # happened.  Such a system could not be considered "sane".
3102       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3103 alias in your environment" "$LINENO" 5
3104    fi
3105
3106    test "$2" = conftest.file
3107    )
3108 then
3109    # Ok.
3110    :
3111 else
3112    as_fn_error "newly created file is older than distributed files!
3113 Check your system clock" "$LINENO" 5
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 $as_echo "yes" >&6; }
3117 test "$program_prefix" != NONE &&
3118   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3119 # Use a double $ so make ignores it.
3120 test "$program_suffix" != NONE &&
3121   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3122 # Double any \ or $.
3123 # By default was `s,x,x', remove it if useless.
3124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3126
3127 # expand $ac_aux_dir to an absolute path
3128 am_aux_dir=`cd $ac_aux_dir && pwd`
3129
3130 if test x"${MISSING+set}" != xset; then
3131   case $am_aux_dir in
3132   *\ * | *\     *)
3133     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3134   *)
3135     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3136   esac
3137 fi
3138 # Use eval to expand $SHELL
3139 if eval "$MISSING --run true"; then
3140   am_missing_run="$MISSING --run "
3141 else
3142   am_missing_run=
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3144 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3145 fi
3146
3147 if test x"${install_sh}" != xset; then
3148   case $am_aux_dir in
3149   *\ * | *\     *)
3150     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3151   *)
3152     install_sh="\${SHELL} $am_aux_dir/install-sh"
3153   esac
3154 fi
3155
3156 # Installed binaries are usually stripped using `strip' when the user
3157 # run `make install-strip'.  However `strip' might not be the right
3158 # tool to use in cross-compilation environments, therefore Automake
3159 # will honor the `STRIP' environment variable to overrule this program.
3160 if test "$cross_compiling" != no; then
3161   if test -n "$ac_tool_prefix"; then
3162   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_STRIP+set}" = set; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -n "$STRIP"; then
3170   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_exec_ext in '' $ac_executable_extensions; do
3178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184   done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 STRIP=$ac_cv_prog_STRIP
3190 if test -n "$STRIP"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3192 $as_echo "$STRIP" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 fi
3200 if test -z "$ac_cv_prog_STRIP"; then
3201   ac_ct_STRIP=$STRIP
3202   # Extract the first word of "strip", so it can be a program name with args.
3203 set dummy strip; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   if test -n "$ac_ct_STRIP"; then
3210   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_exec_ext in '' $ac_executable_extensions; do
3218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219     ac_cv_prog_ac_ct_STRIP="strip"
3220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224   done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3230 if test -n "$ac_ct_STRIP"; then
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3232 $as_echo "$ac_ct_STRIP" >&6; }
3233 else
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238   if test "x$ac_ct_STRIP" = x; then
3239     STRIP=":"
3240   else
3241     case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247     STRIP=$ac_ct_STRIP
3248   fi
3249 else
3250   STRIP="$ac_cv_prog_STRIP"
3251 fi
3252
3253 fi
3254 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3257 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3258 if test -z "$MKDIR_P"; then
3259   if test "${ac_cv_path_mkdir+set}" = set; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_prog in mkdir gmkdir; do
3268          for ac_exec_ext in '' $ac_executable_extensions; do
3269            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3270            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3271              'mkdir (GNU coreutils) '* | \
3272              'mkdir (coreutils) '* | \
3273              'mkdir (fileutils) '4.1*)
3274                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3275                break 3;;
3276            esac
3277          done
3278        done
3279   done
3280 IFS=$as_save_IFS
3281
3282 fi
3283
3284   if test "${ac_cv_path_mkdir+set}" = set; then
3285     MKDIR_P="$ac_cv_path_mkdir -p"
3286   else
3287     # As a last resort, use the slow shell script.  Don't cache a
3288     # value for MKDIR_P within a source directory, because that will
3289     # break other packages using the cache if that directory is
3290     # removed, or if the value is a relative name.
3291     test -d ./--version && rmdir ./--version
3292     MKDIR_P="$ac_install_sh -d"
3293   fi
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3296 $as_echo "$MKDIR_P" >&6; }
3297
3298 mkdir_p="$MKDIR_P"
3299 case $mkdir_p in
3300   [\\/$]* | ?:[\\/]*) ;;
3301   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3302 esac
3303
3304 for ac_prog in gawk mawk nawk awk
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_AWK+set}" = set; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$AWK"; then
3314   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_AWK="$ac_prog"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 AWK=$ac_cv_prog_AWK
3334 if test -n "$AWK"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343   test -n "$AWK" && break
3344 done
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3348 set x ${MAKE-make}
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   cat >conftest.make <<\_ACEOF
3354 SHELL = /bin/sh
3355 all:
3356         @echo '@@@%%%=$(MAKE)=@@@%%%'
3357 _ACEOF
3358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3360   *@@@%%%=?*=@@@%%%*)
3361     eval ac_cv_prog_make_${ac_make}_set=yes;;
3362   *)
3363     eval ac_cv_prog_make_${ac_make}_set=no;;
3364 esac
3365 rm -f conftest.make
3366 fi
3367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370   SET_MAKE=
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374   SET_MAKE="MAKE=${MAKE-make}"
3375 fi
3376
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3380   am__leading_dot=.
3381 else
3382   am__leading_dot=_
3383 fi
3384 rmdir .tst 2>/dev/null
3385
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388   # is not polluted with repeated "-I."
3389   am__isrc=' -I$(srcdir)'
3390   # test to see if srcdir already configured
3391   if test -f $srcdir/config.status; then
3392     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393   fi
3394 fi
3395
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398   if (cygpath --version) >/dev/null 2>/dev/null; then
3399     CYGPATH_W='cygpath -w'
3400   else
3401     CYGPATH_W=echo
3402   fi
3403 fi
3404
3405
3406 # Define the identity of the package.
3407  PACKAGE=$PACKAGE_NAME
3408  VERSION=$PACKAGE_VERSION
3409
3410
3411 cat >>confdefs.h <<_ACEOF
3412 #define PACKAGE "$PACKAGE"
3413 _ACEOF
3414
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define VERSION "$VERSION"
3418 _ACEOF
3419
3420 # Some tools Automake needs.
3421
3422 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3423
3424
3425 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3426
3427
3428 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3429
3430
3431 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3432
3433
3434 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3435
3436 # We need awk for the "check" target.  The system "awk" is bad on
3437 # some platforms.
3438 # Always define AMTAR for backward compatibility.
3439
3440 AMTAR=${AMTAR-"${am_missing_run}tar"}
3441
3442 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3443
3444
3445
3446
3447
3448
3449 ACLOCAL_AMFLAGS="-I M4"
3450
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458
3459 #------------------------------------------------------------------------------------
3460 # Rules for library version information:
3461 #
3462 #  1. Start with version information of `0:0:0' for each libtool library.
3463 #  2. Update the version information only immediately before a public release of
3464 #     your software. More frequent updates are unnecessary, and only guarantee
3465 #     that the current interface number gets larger faster.
3466 #  3. If the library source code has changed at all since the last update, then
3467 #     increment revision (`c:r:a' becomes `c:r+1:a').
3468 #  4. If any interfaces have been added, removed, or changed since the last update,
3469 #     increment current, and set revision to 0.
3470 #  5. If any interfaces have been added since the last public release, then increment
3471 #     age.
3472 #  6. If any interfaces have been removed since the last public release, then set age
3473 #     to 0.
3474
3475 SHARED_VERSION_INFO="1:21:0"
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$CC"; then
3491   ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 fi
3521 if test -z "$ac_cv_prog_CC"; then
3522   ac_ct_CC=$CC
3523   # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$ac_ct_CC"; then
3531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_ac_ct_CC="gcc"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559   if test "x$ac_ct_CC" = x; then
3560     CC=""
3561   else
3562     case $cross_compiling:$ac_tool_warned in
3563 yes:)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3567 esac
3568     CC=$ac_ct_CC
3569   fi
3570 else
3571   CC="$ac_cv_prog_CC"
3572 fi
3573
3574 if test -z "$CC"; then
3575           if test -n "$ac_tool_prefix"; then
3576     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   if test -n "$CC"; then
3584   ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591     for ac_exec_ext in '' $ac_executable_extensions; do
3592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593     ac_cv_prog_CC="${ac_tool_prefix}cc"
3594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598   done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613   fi
3614 fi
3615 if test -z "$CC"; then
3616   # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   if test -n "$CC"; then
3624   ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626   ac_prog_rejected=no
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632     for ac_exec_ext in '' $ac_executable_extensions; do
3633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635        ac_prog_rejected=yes
3636        continue
3637      fi
3638     ac_cv_prog_CC="cc"
3639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643   done
3644 IFS=$as_save_IFS
3645
3646 if test $ac_prog_rejected = yes; then
3647   # We found a bogon in the path, so make sure we never use it.
3648   set dummy $ac_cv_prog_CC
3649   shift
3650   if test $# != 0; then
3651     # We chose a different compiler from the bogus one.
3652     # However, it has the same basename, so the bogon will be chosen
3653     # first if we set CC to just the basename; use the full file name.
3654     shift
3655     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656   fi
3657 fi
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 if test -z "$CC"; then
3672   if test -n "$ac_tool_prefix"; then
3673   for ac_prog in cl.exe
3674   do
3675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$CC"; then
3683   ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697   done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712     test -n "$CC" && break
3713   done
3714 fi
3715 if test -z "$CC"; then
3716   ac_ct_CC=$CC
3717   for ac_prog in cl.exe
3718 do
3719   # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$ac_ct_CC"; then
3727   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     ac_cv_prog_ac_ct_CC="$ac_prog"
3737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756   test -n "$ac_ct_CC" && break
3757 done
3758
3759   if test "x$ac_ct_CC" = x; then
3760     CC=""
3761   else
3762     case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768     CC=$ac_ct_CC
3769   fi
3770 fi
3771
3772 fi
3773
3774
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found in \$PATH
3778 See \`config.log' for more details." "$LINENO" 5; }
3779
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3782 set X $ac_compile
3783 ac_compiler=$2
3784 for ac_option in --version -v -V -qversion; do
3785   { { ac_try="$ac_compiler $ac_option >&5"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3793   ac_status=$?
3794   if test -s conftest.err; then
3795     sed '10a\
3796 ... rest of stderr output deleted ...
3797          10q' conftest.err >conftest.er1
3798     cat conftest.er1 >&5
3799     rm -f conftest.er1 conftest.err
3800   fi
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }
3803 done
3804
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h.  */
3807 #include <stdio.h>
3808 int
3809 main ()
3810 {
3811 FILE *f = fopen ("conftest.out", "w");
3812  return ferror (f) || fclose (f) != 0;
3813
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 ac_clean_files_save=$ac_clean_files
3819 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3820 # Try to create an executable without -o first, disregard a.out.
3821 # It will help us diagnose broken compilers, and finding out an intuition
3822 # of exeext.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824 $as_echo_n "checking for C compiler default output file name... " >&6; }
3825 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3826
3827 # The possible output files:
3828 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3829
3830 ac_rmfiles=
3831 for ac_file in $ac_files
3832 do
3833   case $ac_file in
3834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3836   esac
3837 done
3838 rm -f $ac_rmfiles
3839
3840 if { { ac_try="$ac_link_default"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847   (eval "$ac_link_default") 2>&5
3848   ac_status=$?
3849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850   test $ac_status = 0; }; then :
3851   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3852 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3853 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3854 # so that the user can short-circuit this test for compilers unknown to
3855 # Autoconf.
3856 for ac_file in $ac_files ''
3857 do
3858   test -f "$ac_file" || continue
3859   case $ac_file in
3860     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3861         ;;
3862     [ab].out )
3863         # We found the default executable, but exeext='' is most
3864         # certainly right.
3865         break;;
3866     *.* )
3867         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3868         then :; else
3869            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870         fi
3871         # We set ac_cv_exeext here because the later test for it is not
3872         # safe: cross compilers may not add the suffix if given an `-o'
3873         # argument, so we may need to know it at that point already.
3874         # Even if this section looks crufty: it has the advantage of
3875         # actually working.
3876         break;;
3877     * )
3878         break;;
3879   esac
3880 done
3881 test "$ac_cv_exeext" = no && ac_cv_exeext=
3882
3883 else
3884   ac_file=''
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 if test -z "$ac_file"; then :
3889   $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 { as_fn_set_status 77
3895 as_fn_error "C compiler cannot create executables
3896 See \`config.log' for more details." "$LINENO" 5; }; }
3897 fi
3898 ac_exeext=$ac_cv_exeext
3899
3900 # Check that the compiler produces executables we can run.  If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 $as_echo_n "checking whether the C compiler works... " >&6; }
3904 # If not cross compiling, check that we can run a simple program.
3905 if test "$cross_compiling" != yes; then
3906   if { ac_try='./$ac_file'
3907   { { case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913   (eval "$ac_try") 2>&5
3914   ac_status=$?
3915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916   test $ac_status = 0; }; }; then
3917     cross_compiling=no
3918   else
3919     if test "$cross_compiling" = maybe; then
3920         cross_compiling=yes
3921     else
3922         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error "cannot run C compiled programs.
3925 If you meant to cross compile, use \`--host'.
3926 See \`config.log' for more details." "$LINENO" 5; }
3927     fi
3928   fi
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3932
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3934 ac_clean_files=$ac_clean_files_save
3935 # Check that the compiler produces executables we can run.  If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3940 $as_echo "$cross_compiling" >&6; }
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943 $as_echo_n "checking for suffix of executables... " >&6; }
3944 if { { ac_try="$ac_link"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951   (eval "$ac_link") 2>&5
3952   ac_status=$?
3953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954   test $ac_status = 0; }; then :
3955   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3957 # work properly (i.e., refer to `conftest.exe'), while it won't with
3958 # `rm'.
3959 for ac_file in conftest.exe conftest conftest.*; do
3960   test -f "$ac_file" || continue
3961   case $ac_file in
3962     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3964           break;;
3965     * ) break;;
3966   esac
3967 done
3968 else
3969   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of executables: cannot compile and link
3972 See \`config.log' for more details." "$LINENO" 5; }
3973 fi
3974 rm -f conftest$ac_cv_exeext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3976 $as_echo "$ac_cv_exeext" >&6; }
3977
3978 rm -f conftest.$ac_ext
3979 EXEEXT=$ac_cv_exeext
3980 ac_exeext=$EXEEXT
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3982 $as_echo_n "checking for suffix of object files... " >&6; }
3983 if test "${ac_cv_objext+set}" = set; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 rm -f conftest.o conftest.obj
3998 if { { ac_try="$ac_compile"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005   (eval "$ac_compile") 2>&5
4006   ac_status=$?
4007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008   test $ac_status = 0; }; then :
4009   for ac_file in conftest.o conftest.obj conftest.*; do
4010   test -f "$ac_file" || continue;
4011   case $ac_file in
4012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4013     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4014        break;;
4015   esac
4016 done
4017 else
4018   $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error "cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details." "$LINENO" 5; }
4025 fi
4026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4029 $as_echo "$ac_cv_objext" >&6; }
4030 OBJEXT=$ac_cv_objext
4031 ac_objext=$OBJEXT
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4033 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4034 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039
4040 int
4041 main ()
4042 {
4043 #ifndef __GNUC__
4044        choke me
4045 #endif
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052   ac_compiler_gnu=yes
4053 else
4054   ac_compiler_gnu=no
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4058
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4062 if test $ac_compiler_gnu = yes; then
4063   GCC=yes
4064 else
4065   GCC=
4066 fi
4067 ac_test_CFLAGS=${CFLAGS+set}
4068 ac_save_CFLAGS=$CFLAGS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4070 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4071 if test "${ac_cv_prog_cc_g+set}" = set; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   ac_save_c_werror_flag=$ac_c_werror_flag
4075    ac_c_werror_flag=yes
4076    ac_cv_prog_cc_g=no
4077    CFLAGS="-g"
4078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090   ac_cv_prog_cc_g=yes
4091 else
4092   CFLAGS=""
4093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105
4106 else
4107   ac_c_werror_flag=$ac_save_c_werror_flag
4108          CFLAGS="-g"
4109          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121   ac_cv_prog_cc_g=yes
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128    ac_c_werror_flag=$ac_save_c_werror_flag
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4131 $as_echo "$ac_cv_prog_cc_g" >&6; }
4132 if test "$ac_test_CFLAGS" = set; then
4133   CFLAGS=$ac_save_CFLAGS
4134 elif test $ac_cv_prog_cc_g = yes; then
4135   if test "$GCC" = yes; then
4136     CFLAGS="-g -O2"
4137   else
4138     CFLAGS="-g"
4139   fi
4140 else
4141   if test "$GCC" = yes; then
4142     CFLAGS="-O2"
4143   else
4144     CFLAGS=
4145   fi
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4148 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4149 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   ac_cv_prog_cc_c89=no
4153 ac_save_CC=$CC
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156 #include <stdarg.h>
4157 #include <stdio.h>
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4164      char **p;
4165      int i;
4166 {
4167   return p[i];
4168 }
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4170 {
4171   char *s;
4172   va_list v;
4173   va_start (v,p);
4174   s = g (p, va_arg (v,int));
4175   va_end (v);
4176   return s;
4177 }
4178
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4180    function prototypes and stuff, but not '\xHH' hex character constants.
4181    These don't provoke an error unfortunately, instead are silently treated
4182    as 'x'.  The following induces an error, until -std is added to get
4183    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4184    array size at least.  It's necessary to write '\x00'==0 to get something
4185    that's true only with -std.  */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189    inside strings and character constants.  */
4190 #define FOO(x) 'x'
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197 int argc;
4198 char **argv;
4199 int
4200 main ()
4201 {
4202 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 do
4210   CC="$ac_save_CC $ac_arg"
4211   if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_cv_prog_cc_c89=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext
4215   test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219
4220 fi
4221 # AC_CACHE_VAL
4222 case "x$ac_cv_prog_cc_c89" in
4223   x)
4224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 $as_echo "none needed" >&6; } ;;
4226   xno)
4227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;;
4229   *)
4230     CC="$CC $ac_cv_prog_cc_c89"
4231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 esac
4234 if test "x$ac_cv_prog_cc_c89" != xno; then :
4235
4236 fi
4237
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 DEPDIR="${am__leading_dot}deps"
4244
4245 ac_config_commands="$ac_config_commands depfiles"
4246
4247
4248 am_make=${MAKE-make}
4249 cat > confinc << 'END'
4250 am__doit:
4251         @echo this is the am__doit target
4252 .PHONY: am__doit
4253 END
4254 # If we don't find an include directive, just comment out the code.
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4256 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4257 am__include="#"
4258 am__quote=
4259 _am_result=none
4260 # First try GNU make style include.
4261 echo "include confinc" > confmf
4262 # Ignore all kinds of additional output from `make'.
4263 case `$am_make -s -f confmf 2> /dev/null` in #(
4264 *the\ am__doit\ target*)
4265   am__include=include
4266   am__quote=
4267   _am_result=GNU
4268   ;;
4269 esac
4270 # Now try BSD make style include.
4271 if test "$am__include" = "#"; then
4272    echo '.include "confinc"' > confmf
4273    case `$am_make -s -f confmf 2> /dev/null` in #(
4274    *the\ am__doit\ target*)
4275      am__include=.include
4276      am__quote="\""
4277      _am_result=BSD
4278      ;;
4279    esac
4280 fi
4281
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4284 $as_echo "$_am_result" >&6; }
4285 rm -f confinc confmf
4286
4287 # Check whether --enable-dependency-tracking was given.
4288 if test "${enable_dependency_tracking+set}" = set; then :
4289   enableval=$enable_dependency_tracking;
4290 fi
4291
4292 if test "x$enable_dependency_tracking" != xno; then
4293   am_depcomp="$ac_aux_dir/depcomp"
4294   AMDEPBACKSLASH='\'
4295 fi
4296  if test "x$enable_dependency_tracking" != xno; then
4297   AMDEP_TRUE=
4298   AMDEP_FALSE='#'
4299 else
4300   AMDEP_TRUE='#'
4301   AMDEP_FALSE=
4302 fi
4303
4304
4305
4306 depcc="$CC"   am_compiler_list=
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4309 $as_echo_n "checking dependency style of $depcc... " >&6; }
4310 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4314   # We make a subdir and do the tests there.  Otherwise we can end up
4315   # making bogus files that we don't know about and never remove.  For
4316   # instance it was reported that on HP-UX the gcc test will end up
4317   # making a dummy file named `D' -- because `-MD' means `put the output
4318   # in D'.
4319   mkdir conftest.dir
4320   # Copy depcomp to subdir because otherwise we won't find it if we're
4321   # using a relative directory.
4322   cp "$am_depcomp" conftest.dir
4323   cd conftest.dir
4324   # We will build objects and dependencies in a subdirectory because
4325   # it helps to detect inapplicable dependency modes.  For instance
4326   # both Tru64's cc and ICC support -MD to output dependencies as a
4327   # side effect of compilation, but ICC will put the dependencies in
4328   # the current directory while Tru64 will put them in the object
4329   # directory.
4330   mkdir sub
4331
4332   am_cv_CC_dependencies_compiler_type=none
4333   if test "$am_compiler_list" = ""; then
4334      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4335   fi
4336   am__universal=false
4337   case " $depcc " in #(
4338      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4339      esac
4340
4341   for depmode in $am_compiler_list; do
4342     # Setup a source with many dependencies, because some compilers
4343     # like to wrap large dependency lists on column 80 (with \), and
4344     # we should not choose a depcomp mode which is confused by this.
4345     #
4346     # We need to recreate these files for each test, as the compiler may
4347     # overwrite some of them when testing with obscure command lines.
4348     # This happens at least with the AIX C compiler.
4349     : > sub/conftest.c
4350     for i in 1 2 3 4 5 6; do
4351       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4352       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4353       # Solaris 8's {/usr,}/bin/sh.
4354       touch sub/conftst$i.h
4355     done
4356     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4357
4358     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4359     # mode.  It turns out that the SunPro C++ compiler does not properly
4360     # handle `-M -o', and we need to detect this.  Also, some Intel
4361     # versions had trouble with output in subdirs
4362     am__obj=sub/conftest.${OBJEXT-o}
4363     am__minus_obj="-o $am__obj"
4364     case $depmode in
4365     gcc)
4366       # This depmode causes a compiler race in universal mode.
4367       test "$am__universal" = false || continue
4368       ;;
4369     nosideeffect)
4370       # after this tag, mechanisms are not by side-effect, so they'll
4371       # only be used when explicitly requested
4372       if test "x$enable_dependency_tracking" = xyes; then
4373         continue
4374       else
4375         break
4376       fi
4377       ;;
4378     msvisualcpp | msvcmsys)
4379       # This compiler won't grok `-c -o', but also, the minuso test has
4380       # not run yet.  These depmodes are late enough in the game, and
4381       # so weak that their functioning should not be impacted.
4382       am__obj=conftest.${OBJEXT-o}
4383       am__minus_obj=
4384       ;;
4385     none) break ;;
4386     esac
4387     if depmode=$depmode \
4388        source=sub/conftest.c object=$am__obj \
4389        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4390        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4391          >/dev/null 2>conftest.err &&
4392        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4393        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4394        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4395        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4396       # icc doesn't choke on unknown options, it will just issue warnings
4397       # or remarks (even with -Werror).  So we grep stderr for any message
4398       # that says an option was ignored or not supported.
4399       # When given -MP, icc 7.0 and 7.1 complain thusly:
4400       #   icc: Command line warning: ignoring option '-M'; no argument required
4401       # The diagnosis changed in icc 8.0:
4402       #   icc: Command line remark: option '-MP' not supported
4403       if (grep 'ignoring option' conftest.err ||
4404           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4405         am_cv_CC_dependencies_compiler_type=$depmode
4406         break
4407       fi
4408     fi
4409   done
4410
4411   cd ..
4412   rm -rf conftest.dir
4413 else
4414   am_cv_CC_dependencies_compiler_type=none
4415 fi
4416
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4419 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4421
4422  if
4423   test "x$enable_dependency_tracking" != xno \
4424   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4425   am__fastdepCC_TRUE=
4426   am__fastdepCC_FALSE='#'
4427 else
4428   am__fastdepCC_TRUE='#'
4429   am__fastdepCC_FALSE=
4430 fi
4431
4432
4433 if test "x$CC" != xcc; then
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4435 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4436 else
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4438 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4439 fi
4440 set dummy $CC; ac_cc=`$as_echo "$2" |
4441                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4442 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 # Make sure it works both with $CC and with simple cc.
4457 # We do the test twice because some compilers refuse to overwrite an
4458 # existing .o file with -o, though they will create one.
4459 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4460 rm -f conftest2.*
4461 if { { case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467   (eval "$ac_try") 2>&5
4468   ac_status=$?
4469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470   test $ac_status = 0; } &&
4471    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476 $as_echo "$ac_try_echo"; } >&5
4477   (eval "$ac_try") 2>&5
4478   ac_status=$?
4479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480   test $ac_status = 0; };
4481 then
4482   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4483   if test "x$CC" != xcc; then
4484     # Test first that cc exists at all.
4485     if { ac_try='cc -c conftest.$ac_ext >&5'
4486   { { case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492   (eval "$ac_try") 2>&5
4493   ac_status=$?
4494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495   test $ac_status = 0; }; }; then
4496       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4497       rm -f conftest2.*
4498       if { { case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504   (eval "$ac_try") 2>&5
4505   ac_status=$?
4506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507   test $ac_status = 0; } &&
4508          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514   (eval "$ac_try") 2>&5
4515   ac_status=$?
4516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517   test $ac_status = 0; };
4518       then
4519         # cc works too.
4520         :
4521       else
4522         # cc exists but doesn't like -o.
4523         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4524       fi
4525     fi
4526   fi
4527 else
4528   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4529 fi
4530 rm -f core conftest*
4531
4532 fi
4533 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4536 else
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539
4540 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4541
4542 fi
4543
4544 # FIXME: we rely on the cache variable name because
4545 # there is no other way.
4546 set dummy $CC
4547 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4548 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4549 if test "$am_t" != yes; then
4550    # Losing compiler, so override with the script.
4551    # FIXME: It is wrong to rewrite CC.
4552    # But if we don't then we get into trouble of one sort or another.
4553    # A longer-term fix would be to have automake use am__CC in this case,
4554    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4555    CC="$am_aux_dir/compile $CC"
4556 fi
4557
4558
4559 ac_ext=cpp
4560 ac_cpp='$CXXCPP $CPPFLAGS'
4561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564 if test -z "$CXX"; then
4565   if test -n "$CCC"; then
4566     CXX=$CCC
4567   else
4568     if test -n "$ac_tool_prefix"; then
4569   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570   do
4571     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if test "${ac_cv_prog_CXX+set}" = set; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   if test -n "$CXX"; then
4579   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586     for ac_exec_ext in '' $ac_executable_extensions; do
4587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593   done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 CXX=$ac_cv_prog_CXX
4599 if test -n "$CXX"; then
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4601 $as_echo "$CXX" >&6; }
4602 else
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606
4607
4608     test -n "$CXX" && break
4609   done
4610 fi
4611 if test -z "$CXX"; then
4612   ac_ct_CXX=$CXX
4613   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4614 do
4615   # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   if test -n "$ac_ct_CXX"; then
4623   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_exec_ext in '' $ac_executable_extensions; do
4631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632     ac_cv_prog_ac_ct_CXX="$ac_prog"
4633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637   done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4643 if test -n "$ac_ct_CXX"; then
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4645 $as_echo "$ac_ct_CXX" >&6; }
4646 else
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650
4651
4652   test -n "$ac_ct_CXX" && break
4653 done
4654
4655   if test "x$ac_ct_CXX" = x; then
4656     CXX="g++"
4657   else
4658     case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664     CXX=$ac_ct_CXX
4665   fi
4666 fi
4667
4668   fi
4669 fi
4670 # Provide some information about the compiler.
4671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4672 set X $ac_compile
4673 ac_compiler=$2
4674 for ac_option in --version -v -V -qversion; do
4675   { { ac_try="$ac_compiler $ac_option >&5"
4676 case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4683   ac_status=$?
4684   if test -s conftest.err; then
4685     sed '10a\
4686 ... rest of stderr output deleted ...
4687          10q' conftest.err >conftest.er1
4688     cat conftest.er1 >&5
4689     rm -f conftest.er1 conftest.err
4690   fi
4691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692   test $ac_status = 0; }
4693 done
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4696 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702
4703 int
4704 main ()
4705 {
4706 #ifndef __GNUC__
4707        choke me
4708 #endif
4709
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715   ac_compiler_gnu=yes
4716 else
4717   ac_compiler_gnu=no
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4721
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4724 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4725 if test $ac_compiler_gnu = yes; then
4726   GXX=yes
4727 else
4728   GXX=
4729 fi
4730 ac_test_CXXFLAGS=${CXXFLAGS+set}
4731 ac_save_CXXFLAGS=$CXXFLAGS
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4733 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4734 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4738    ac_cxx_werror_flag=yes
4739    ac_cv_prog_cxx_g=no
4740    CXXFLAGS="-g"
4741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743
4744 int
4745 main ()
4746 {
4747
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_cxx_try_compile "$LINENO"; then :
4753   ac_cv_prog_cxx_g=yes
4754 else
4755   CXXFLAGS=""
4756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_cxx_try_compile "$LINENO"; then :
4768
4769 else
4770   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4771          CXXFLAGS="-g"
4772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774
4775 int
4776 main ()
4777 {
4778
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_cxx_try_compile "$LINENO"; then :
4784   ac_cv_prog_cxx_g=yes
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4794 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4795 if test "$ac_test_CXXFLAGS" = set; then
4796   CXXFLAGS=$ac_save_CXXFLAGS
4797 elif test $ac_cv_prog_cxx_g = yes; then
4798   if test "$GXX" = yes; then
4799     CXXFLAGS="-g -O2"
4800   else
4801     CXXFLAGS="-g"
4802   fi
4803 else
4804   if test "$GXX" = yes; then
4805     CXXFLAGS="-O2"
4806   else
4807     CXXFLAGS=
4808   fi
4809 fi
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815
4816 depcc="$CXX"  am_compiler_list=
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4819 $as_echo_n "checking dependency style of $depcc... " >&6; }
4820 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4824   # We make a subdir and do the tests there.  Otherwise we can end up
4825   # making bogus files that we don't know about and never remove.  For
4826   # instance it was reported that on HP-UX the gcc test will end up
4827   # making a dummy file named `D' -- because `-MD' means `put the output
4828   # in D'.
4829   mkdir conftest.dir
4830   # Copy depcomp to subdir because otherwise we won't find it if we're
4831   # using a relative directory.
4832   cp "$am_depcomp" conftest.dir
4833   cd conftest.dir
4834   # We will build objects and dependencies in a subdirectory because
4835   # it helps to detect inapplicable dependency modes.  For instance
4836   # both Tru64's cc and ICC support -MD to output dependencies as a
4837   # side effect of compilation, but ICC will put the dependencies in
4838   # the current directory while Tru64 will put them in the object
4839   # directory.
4840   mkdir sub
4841
4842   am_cv_CXX_dependencies_compiler_type=none
4843   if test "$am_compiler_list" = ""; then
4844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845   fi
4846   am__universal=false
4847   case " $depcc " in #(
4848      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4849      esac
4850
4851   for depmode in $am_compiler_list; do
4852     # Setup a source with many dependencies, because some compilers
4853     # like to wrap large dependency lists on column 80 (with \), and
4854     # we should not choose a depcomp mode which is confused by this.
4855     #
4856     # We need to recreate these files for each test, as the compiler may
4857     # overwrite some of them when testing with obscure command lines.
4858     # This happens at least with the AIX C compiler.
4859     : > sub/conftest.c
4860     for i in 1 2 3 4 5 6; do
4861       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4863       # Solaris 8's {/usr,}/bin/sh.
4864       touch sub/conftst$i.h
4865     done
4866     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4867
4868     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4869     # mode.  It turns out that the SunPro C++ compiler does not properly
4870     # handle `-M -o', and we need to detect this.  Also, some Intel
4871     # versions had trouble with output in subdirs
4872     am__obj=sub/conftest.${OBJEXT-o}
4873     am__minus_obj="-o $am__obj"
4874     case $depmode in
4875     gcc)
4876       # This depmode causes a compiler race in universal mode.
4877       test "$am__universal" = false || continue
4878       ;;
4879     nosideeffect)
4880       # after this tag, mechanisms are not by side-effect, so they'll
4881       # only be used when explicitly requested
4882       if test "x$enable_dependency_tracking" = xyes; then
4883         continue
4884       else
4885         break
4886       fi
4887       ;;
4888     msvisualcpp | msvcmsys)
4889       # This compiler won't grok `-c -o', but also, the minuso test has
4890       # not run yet.  These depmodes are late enough in the game, and
4891       # so weak that their functioning should not be impacted.
4892       am__obj=conftest.${OBJEXT-o}
4893       am__minus_obj=
4894       ;;
4895     none) break ;;
4896     esac
4897     if depmode=$depmode \
4898        source=sub/conftest.c object=$am__obj \
4899        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4901          >/dev/null 2>conftest.err &&
4902        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4903        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4905        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906       # icc doesn't choke on unknown options, it will just issue warnings
4907       # or remarks (even with -Werror).  So we grep stderr for any message
4908       # that says an option was ignored or not supported.
4909       # When given -MP, icc 7.0 and 7.1 complain thusly:
4910       #   icc: Command line warning: ignoring option '-M'; no argument required
4911       # The diagnosis changed in icc 8.0:
4912       #   icc: Command line remark: option '-MP' not supported
4913       if (grep 'ignoring option' conftest.err ||
4914           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915         am_cv_CXX_dependencies_compiler_type=$depmode
4916         break
4917       fi
4918     fi
4919   done
4920
4921   cd ..
4922   rm -rf conftest.dir
4923 else
4924   am_cv_CXX_dependencies_compiler_type=none
4925 fi
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4929 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4930 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4931
4932  if
4933   test "x$enable_dependency_tracking" != xno \
4934   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4935   am__fastdepCXX_TRUE=
4936   am__fastdepCXX_FALSE='#'
4937 else
4938   am__fastdepCXX_TRUE='#'
4939   am__fastdepCXX_FALSE=
4940 fi
4941
4942
4943
4944 # Do not check for F77.
4945
4946 case `pwd` in
4947   *\ * | *\     *)
4948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4949 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4950 esac
4951
4952
4953
4954 macro_version='2.2.6'
4955 macro_revision='1.3012'
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969 ltmain="$ac_aux_dir/ltmain.sh"
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4972 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4973 if test "${ac_cv_path_SED+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4977      for ac_i in 1 2 3 4 5 6 7; do
4978        ac_script="$ac_script$as_nl$ac_script"
4979      done
4980      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4981      { ac_script=; unset ac_script;}
4982      if test -z "$SED"; then
4983   ac_path_SED_found=false
4984   # Loop through the user's path and test for each of PROGNAME-LIST
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_prog in sed gsed; do
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4993       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4994 # Check for GNU ac_path_SED and select it if it is found.
4995   # Check for GNU $ac_path_SED
4996 case `"$ac_path_SED" --version 2>&1` in
4997 *GNU*)
4998   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4999 *)
5000   ac_count=0
5001   $as_echo_n 0123456789 >"conftest.in"
5002   while :
5003   do
5004     cat "conftest.in" "conftest.in" >"conftest.tmp"
5005     mv "conftest.tmp" "conftest.in"
5006     cp "conftest.in" "conftest.nl"
5007     $as_echo '' >> "conftest.nl"
5008     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010     as_fn_arith $ac_count + 1 && ac_count=$as_val
5011     if test $ac_count -gt ${ac_path_SED_max-0}; then
5012       # Best one so far, save it but keep looking for a better one
5013       ac_cv_path_SED="$ac_path_SED"
5014       ac_path_SED_max=$ac_count
5015     fi
5016     # 10*(2^10) chars as input seems more than enough
5017     test $ac_count -gt 10 && break
5018   done
5019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 esac
5021
5022       $ac_path_SED_found && break 3
5023     done
5024   done
5025   done
5026 IFS=$as_save_IFS
5027   if test -z "$ac_cv_path_SED"; then
5028     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5029   fi
5030 else
5031   ac_cv_path_SED=$SED
5032 fi
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5036 $as_echo "$ac_cv_path_SED" >&6; }
5037  SED="$ac_cv_path_SED"
5038   rm -f conftest.sed
5039
5040 test -z "$SED" && SED=sed
5041 Xsed="$SED -e 1s/^X//"
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5054 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5055 if test "${ac_cv_path_GREP+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058   if test -z "$GREP"; then
5059   ac_path_GREP_found=false
5060   # Loop through the user's path and test for each of PROGNAME-LIST
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066     for ac_prog in grep ggrep; do
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5069       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5070 # Check for GNU ac_path_GREP and select it if it is found.
5071   # Check for GNU $ac_path_GREP
5072 case `"$ac_path_GREP" --version 2>&1` in
5073 *GNU*)
5074   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5075 *)
5076   ac_count=0
5077   $as_echo_n 0123456789 >"conftest.in"
5078   while :
5079   do
5080     cat "conftest.in" "conftest.in" >"conftest.tmp"
5081     mv "conftest.tmp" "conftest.in"
5082     cp "conftest.in" "conftest.nl"
5083     $as_echo 'GREP' >> "conftest.nl"
5084     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086     as_fn_arith $ac_count + 1 && ac_count=$as_val
5087     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5088       # Best one so far, save it but keep looking for a better one
5089       ac_cv_path_GREP="$ac_path_GREP"
5090       ac_path_GREP_max=$ac_count
5091     fi
5092     # 10*(2^10) chars as input seems more than enough
5093     test $ac_count -gt 10 && break
5094   done
5095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5096 esac
5097
5098       $ac_path_GREP_found && break 3
5099     done
5100   done
5101   done
5102 IFS=$as_save_IFS
5103   if test -z "$ac_cv_path_GREP"; then
5104     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5105   fi
5106 else
5107   ac_cv_path_GREP=$GREP
5108 fi
5109
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5112 $as_echo "$ac_cv_path_GREP" >&6; }
5113  GREP="$ac_cv_path_GREP"
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5117 $as_echo_n "checking for egrep... " >&6; }
5118 if test "${ac_cv_path_EGREP+set}" = set; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5122    then ac_cv_path_EGREP="$GREP -E"
5123    else
5124      if test -z "$EGREP"; then
5125   ac_path_EGREP_found=false
5126   # Loop through the user's path and test for each of PROGNAME-LIST
5127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_prog in egrep; do
5133     for ac_exec_ext in '' $ac_executable_extensions; do
5134       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5135       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5136 # Check for GNU ac_path_EGREP and select it if it is found.
5137   # Check for GNU $ac_path_EGREP
5138 case `"$ac_path_EGREP" --version 2>&1` in
5139 *GNU*)
5140   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5141 *)
5142   ac_count=0
5143   $as_echo_n 0123456789 >"conftest.in"
5144   while :
5145   do
5146     cat "conftest.in" "conftest.in" >"conftest.tmp"
5147     mv "conftest.tmp" "conftest.in"
5148     cp "conftest.in" "conftest.nl"
5149     $as_echo 'EGREP' >> "conftest.nl"
5150     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152     as_fn_arith $ac_count + 1 && ac_count=$as_val
5153     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5154       # Best one so far, save it but keep looking for a better one
5155       ac_cv_path_EGREP="$ac_path_EGREP"
5156       ac_path_EGREP_max=$ac_count
5157     fi
5158     # 10*(2^10) chars as input seems more than enough
5159     test $ac_count -gt 10 && break
5160   done
5161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162 esac
5163
5164       $ac_path_EGREP_found && break 3
5165     done
5166   done
5167   done
5168 IFS=$as_save_IFS
5169   if test -z "$ac_cv_path_EGREP"; then
5170     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5171   fi
5172 else
5173   ac_cv_path_EGREP=$EGREP
5174 fi
5175
5176    fi
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5179 $as_echo "$ac_cv_path_EGREP" >&6; }
5180  EGREP="$ac_cv_path_EGREP"
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5184 $as_echo_n "checking for fgrep... " >&6; }
5185 if test "${ac_cv_path_FGREP+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5189    then ac_cv_path_FGREP="$GREP -F"
5190    else
5191      if test -z "$FGREP"; then
5192   ac_path_FGREP_found=false
5193   # Loop through the user's path and test for each of PROGNAME-LIST
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_prog in fgrep; do
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5202       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5203 # Check for GNU ac_path_FGREP and select it if it is found.
5204   # Check for GNU $ac_path_FGREP
5205 case `"$ac_path_FGREP" --version 2>&1` in
5206 *GNU*)
5207   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5208 *)
5209   ac_count=0
5210   $as_echo_n 0123456789 >"conftest.in"
5211   while :
5212   do
5213     cat "conftest.in" "conftest.in" >"conftest.tmp"
5214     mv "conftest.tmp" "conftest.in"
5215     cp "conftest.in" "conftest.nl"
5216     $as_echo 'FGREP' >> "conftest.nl"
5217     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219     as_fn_arith $ac_count + 1 && ac_count=$as_val
5220     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5221       # Best one so far, save it but keep looking for a better one
5222       ac_cv_path_FGREP="$ac_path_FGREP"
5223       ac_path_FGREP_max=$ac_count
5224     fi
5225     # 10*(2^10) chars as input seems more than enough
5226     test $ac_count -gt 10 && break
5227   done
5228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231       $ac_path_FGREP_found && break 3
5232     done
5233   done
5234   done
5235 IFS=$as_save_IFS
5236   if test -z "$ac_cv_path_FGREP"; then
5237     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238   fi
5239 else
5240   ac_cv_path_FGREP=$FGREP
5241 fi
5242
5243    fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5246 $as_echo "$ac_cv_path_FGREP" >&6; }
5247  FGREP="$ac_cv_path_FGREP"
5248
5249
5250 test -z "$GREP" && GREP=grep
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 # Check whether --with-gnu-ld was given.
5271 if test "${with_gnu_ld+set}" = set; then :
5272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5273 else
5274   with_gnu_ld=no
5275 fi
5276
5277 ac_prog=ld
5278 if test "$GCC" = yes; then
5279   # Check if gcc -print-prog-name=ld gives a path.
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5281 $as_echo_n "checking for ld used by $CC... " >&6; }
5282   case $host in
5283   *-*-mingw*)
5284     # gcc leaves a trailing carriage return which upsets mingw
5285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5286   *)
5287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5288   esac
5289   case $ac_prog in
5290     # Accept absolute paths.
5291     [\\/]* | ?:[\\/]*)
5292       re_direlt='/[^/][^/]*/\.\./'
5293       # Canonicalize the pathname of ld
5294       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5295       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5296         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5297       done
5298       test -z "$LD" && LD="$ac_prog"
5299       ;;
5300   "")
5301     # If it fails, then pretend we aren't using GCC.
5302     ac_prog=ld
5303     ;;
5304   *)
5305     # If it is relative, then search for the first ld in PATH.
5306     with_gnu_ld=unknown
5307     ;;
5308   esac
5309 elif test "$with_gnu_ld" = yes; then
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5311 $as_echo_n "checking for GNU ld... " >&6; }
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5314 $as_echo_n "checking for non-GNU ld... " >&6; }
5315 fi
5316 if test "${lt_cv_path_LD+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -z "$LD"; then
5320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5321   for ac_dir in $PATH; do
5322     IFS="$lt_save_ifs"
5323     test -z "$ac_dir" && ac_dir=.
5324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5325       lt_cv_path_LD="$ac_dir/$ac_prog"
5326       # Check to see if the program is GNU ld.  I'd rather use --version,
5327       # but apparently some variants of GNU ld only accept -v.
5328       # Break only if it was the GNU/non-GNU ld that we prefer.
5329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5330       *GNU* | *'with BFD'*)
5331         test "$with_gnu_ld" != no && break
5332         ;;
5333       *)
5334         test "$with_gnu_ld" != yes && break
5335         ;;
5336       esac
5337     fi
5338   done
5339   IFS="$lt_save_ifs"
5340 else
5341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5342 fi
5343 fi
5344
5345 LD="$lt_cv_path_LD"
5346 if test -n "$LD"; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5348 $as_echo "$LD" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5356 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5360 case `$LD -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362   lt_cv_prog_gnu_ld=yes
5363   ;;
5364 *)
5365   lt_cv_prog_gnu_ld=no
5366   ;;
5367 esac
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5370 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5371 with_gnu_ld=$lt_cv_prog_gnu_ld
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5382 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5383 if test "${lt_cv_path_NM+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$NM"; then
5387   # Let the user override the test.
5388   lt_cv_path_NM="$NM"
5389 else
5390   lt_nm_to_check="${ac_tool_prefix}nm"
5391   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5392     lt_nm_to_check="$lt_nm_to_check nm"
5393   fi
5394   for lt_tmp_nm in $lt_nm_to_check; do
5395     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5396     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5397       IFS="$lt_save_ifs"
5398       test -z "$ac_dir" && ac_dir=.
5399       tmp_nm="$ac_dir/$lt_tmp_nm"
5400       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5401         # Check to see if the nm accepts a BSD-compat flag.
5402         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5403         #   nm: unknown option "B" ignored
5404         # Tru64's nm complains that /dev/null is an invalid object file
5405         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5406         */dev/null* | *'Invalid file or object type'*)
5407           lt_cv_path_NM="$tmp_nm -B"
5408           break
5409           ;;
5410         *)
5411           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5412           */dev/null*)
5413             lt_cv_path_NM="$tmp_nm -p"
5414             break
5415             ;;
5416           *)
5417             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5418             continue # so that we can try to find one that supports BSD flags
5419             ;;
5420           esac
5421           ;;
5422         esac
5423       fi
5424     done
5425     IFS="$lt_save_ifs"
5426   done
5427   : ${lt_cv_path_NM=no}
5428 fi
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5431 $as_echo "$lt_cv_path_NM" >&6; }
5432 if test "$lt_cv_path_NM" != "no"; then
5433   NM="$lt_cv_path_NM"
5434 else
5435   # Didn't find any BSD compatible name lister, look for dumpbin.
5436   if test -n "$ac_tool_prefix"; then
5437   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5438   do
5439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   if test -n "$DUMPBIN"; then
5447   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454     for ac_exec_ext in '' $ac_executable_extensions; do
5455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459   fi
5460 done
5461   done
5462 IFS=$as_save_IFS
5463
5464 fi
5465 fi
5466 DUMPBIN=$ac_cv_prog_DUMPBIN
5467 if test -n "$DUMPBIN"; then
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469 $as_echo "$DUMPBIN" >&6; }
5470 else
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476     test -n "$DUMPBIN" && break
5477   done
5478 fi
5479 if test -z "$DUMPBIN"; then
5480   ac_ct_DUMPBIN=$DUMPBIN
5481   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   if test -n "$ac_ct_DUMPBIN"; then
5491   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5511 if test -n "$ac_ct_DUMPBIN"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5513 $as_echo "$ac_ct_DUMPBIN" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520   test -n "$ac_ct_DUMPBIN" && break
5521 done
5522
5523   if test "x$ac_ct_DUMPBIN" = x; then
5524     DUMPBIN=":"
5525   else
5526     case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532     DUMPBIN=$ac_ct_DUMPBIN
5533   fi
5534 fi
5535
5536
5537   if test "$DUMPBIN" != ":"; then
5538     NM="$DUMPBIN"
5539   fi
5540 fi
5541 test -z "$NM" && NM=nm
5542
5543
5544
5545
5546
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5549 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5550 if test "${lt_cv_nm_interface+set}" = set; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   lt_cv_nm_interface="BSD nm"
5554   echo "int some_variable = 0;" > conftest.$ac_ext
5555   (eval echo "\"\$as_me:5555: $ac_compile\"" >&5)
5556   (eval "$ac_compile" 2>conftest.err)
5557   cat conftest.err >&5
5558   (eval echo "\"\$as_me:5558: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5559   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5560   cat conftest.err >&5
5561   (eval echo "\"\$as_me:5561: output\"" >&5)
5562   cat conftest.out >&5
5563   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5564     lt_cv_nm_interface="MS dumpbin"
5565   fi
5566   rm -f conftest*
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5569 $as_echo "$lt_cv_nm_interface" >&6; }
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5572 $as_echo_n "checking whether ln -s works... " >&6; }
5573 LN_S=$as_ln_s
5574 if test "$LN_S" = "ln -s"; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 $as_echo "yes" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5579 $as_echo "no, using $LN_S" >&6; }
5580 fi
5581
5582 # find the maximum length of command line arguments
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5584 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5585 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588     i=0
5589   teststring="ABCD"
5590
5591   case $build_os in
5592   msdosdjgpp*)
5593     # On DJGPP, this test can blow up pretty badly due to problems in libc
5594     # (any single argument exceeding 2000 bytes causes a buffer overrun
5595     # during glob expansion).  Even if it were fixed, the result of this
5596     # check would be larger than it should be.
5597     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5598     ;;
5599
5600   gnu*)
5601     # Under GNU Hurd, this test is not required because there is
5602     # no limit to the length of command line arguments.
5603     # Libtool will interpret -1 as no limit whatsoever
5604     lt_cv_sys_max_cmd_len=-1;
5605     ;;
5606
5607   cygwin* | mingw* | cegcc*)
5608     # On Win9x/ME, this test blows up -- it succeeds, but takes
5609     # about 5 minutes as the teststring grows exponentially.
5610     # Worse, since 9x/ME are not pre-emptively multitasking,
5611     # you end up with a "frozen" computer, even though with patience
5612     # the test eventually succeeds (with a max line length of 256k).
5613     # Instead, let's just punt: use the minimum linelength reported by
5614     # all of the supported platforms: 8192 (on NT/2K/XP).
5615     lt_cv_sys_max_cmd_len=8192;
5616     ;;
5617
5618   amigaos*)
5619     # On AmigaOS with pdksh, this test takes hours, literally.
5620     # So we just punt and use a minimum line length of 8192.
5621     lt_cv_sys_max_cmd_len=8192;
5622     ;;
5623
5624   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5625     # This has been around since 386BSD, at least.  Likely further.
5626     if test -x /sbin/sysctl; then
5627       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5628     elif test -x /usr/sbin/sysctl; then
5629       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5630     else
5631       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5632     fi
5633     # And add a safety zone
5634     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5635     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5636     ;;
5637
5638   interix*)
5639     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5640     lt_cv_sys_max_cmd_len=196608
5641     ;;
5642
5643   osf*)
5644     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5645     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5646     # nice to cause kernel panics so lets avoid the loop below.
5647     # First set a reasonable default.
5648     lt_cv_sys_max_cmd_len=16384
5649     #
5650     if test -x /sbin/sysconfig; then
5651       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5652         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5653       esac
5654     fi
5655     ;;
5656   sco3.2v5*)
5657     lt_cv_sys_max_cmd_len=102400
5658     ;;
5659   sysv5* | sco5v6* | sysv4.2uw2*)
5660     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5661     if test -n "$kargmax"; then
5662       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5663     else
5664       lt_cv_sys_max_cmd_len=32768
5665     fi
5666     ;;
5667   *)
5668     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5669     if test -n "$lt_cv_sys_max_cmd_len"; then
5670       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5671       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5672     else
5673       # Make teststring a little bigger before we do anything with it.
5674       # a 1K string should be a reasonable start.
5675       for i in 1 2 3 4 5 6 7 8 ; do
5676         teststring=$teststring$teststring
5677       done
5678       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5679       # If test is not a shell built-in, we'll probably end up computing a
5680       # maximum length that is only half of the actual maximum length, but
5681       # we can't tell.
5682       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5683                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5684               test $i != 17 # 1/2 MB should be enough
5685       do
5686         i=`expr $i + 1`
5687         teststring=$teststring$teststring
5688       done
5689       # Only check the string length outside the loop.
5690       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5691       teststring=
5692       # Add a significant safety factor because C++ compilers can tack on
5693       # massive amounts of additional arguments before passing them to the
5694       # linker.  It appears as though 1/2 is a usable value.
5695       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5696     fi
5697     ;;
5698   esac
5699
5700 fi
5701
5702 if test -n $lt_cv_sys_max_cmd_len ; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5704 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5707 $as_echo "none" >&6; }
5708 fi
5709 max_cmd_len=$lt_cv_sys_max_cmd_len
5710
5711
5712
5713
5714
5715
5716 : ${CP="cp -f"}
5717 : ${MV="mv -f"}
5718 : ${RM="rm -f"}
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5721 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5722 # Try some XSI features
5723 xsi_shell=no
5724 ( _lt_dummy="a/b/c"
5725   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5726       = c,a/b,, \
5727     && eval 'test $(( 1 + 1 )) -eq 2 \
5728     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5729   && xsi_shell=yes
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5731 $as_echo "$xsi_shell" >&6; }
5732
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5735 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5736 lt_shell_append=no
5737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5738     >/dev/null 2>&1 \
5739   && lt_shell_append=yes
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5741 $as_echo "$lt_shell_append" >&6; }
5742
5743
5744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5745   lt_unset=unset
5746 else
5747   lt_unset=false
5748 fi
5749
5750
5751
5752
5753
5754 # test EBCDIC or ASCII
5755 case `echo X|tr X '\101'` in
5756  A) # ASCII based system
5757     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5758   lt_SP2NL='tr \040 \012'
5759   lt_NL2SP='tr \015\012 \040\040'
5760   ;;
5761  *) # EBCDIC based system
5762   lt_SP2NL='tr \100 \n'
5763   lt_NL2SP='tr \r\n \100\100'
5764   ;;
5765 esac
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5777 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   lt_cv_ld_reload_flag='-r'
5781 fi
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5784 reload_flag=$lt_cv_ld_reload_flag
5785 case $reload_flag in
5786 "" | " "*) ;;
5787 *) reload_flag=" $reload_flag" ;;
5788 esac
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790 case $host_os in
5791   darwin*)
5792     if test "$GCC" = yes; then
5793       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5794     else
5795       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5796     fi
5797     ;;
5798 esac
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   if test -n "$OBJDUMP"; then
5817   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824     for ac_exec_ext in '' $ac_executable_extensions; do
5825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831   done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 OBJDUMP=$ac_cv_prog_OBJDUMP
5837 if test -n "$OBJDUMP"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5839 $as_echo "$OBJDUMP" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_OBJDUMP"; then
5848   ac_ct_OBJDUMP=$OBJDUMP
5849   # Extract the first word of "objdump", so it can be a program name with args.
5850 set dummy objdump; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856   if test -n "$ac_ct_OBJDUMP"; then
5857   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864     for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871   done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5877 if test -n "$ac_ct_OBJDUMP"; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5879 $as_echo "$ac_ct_OBJDUMP" >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885   if test "x$ac_ct_OBJDUMP" = x; then
5886     OBJDUMP="false"
5887   else
5888     case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894     OBJDUMP=$ac_ct_OBJDUMP
5895   fi
5896 else
5897   OBJDUMP="$ac_cv_prog_OBJDUMP"
5898 fi
5899
5900 test -z "$OBJDUMP" && OBJDUMP=objdump
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5911 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5912 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   lt_cv_file_magic_cmd='$MAGIC_CMD'
5916 lt_cv_file_magic_test_file=
5917 lt_cv_deplibs_check_method='unknown'
5918 # Need to set the preceding variable on all platforms that support
5919 # interlibrary dependencies.
5920 # 'none' -- dependencies not supported.
5921 # `unknown' -- same as none, but documents that we really don't know.
5922 # 'pass_all' -- all dependencies passed with no checks.
5923 # 'test_compile' -- check by making test program.
5924 # 'file_magic [[regex]]' -- check by looking for files in library path
5925 # which responds to the $file_magic_cmd with a given extended regex.
5926 # If you have `file' or equivalent on your system and you're not sure
5927 # whether `pass_all' will *always* work, you probably want this one.
5928
5929 case $host_os in
5930 aix[4-9]*)
5931   lt_cv_deplibs_check_method=pass_all
5932   ;;
5933
5934 beos*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 bsdi[45]*)
5939   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5940   lt_cv_file_magic_cmd='/usr/bin/file -L'
5941   lt_cv_file_magic_test_file=/shlib/libc.so
5942   ;;
5943
5944 cygwin*)
5945   # func_win32_libid is a shell function defined in ltmain.sh
5946   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5947   lt_cv_file_magic_cmd='func_win32_libid'
5948   ;;
5949
5950 mingw* | pw32*)
5951   # Base MSYS/MinGW do not provide the 'file' command needed by
5952   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5953   # unless we find 'file', for example because we are cross-compiling.
5954   if ( file / ) >/dev/null 2>&1; then
5955     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5956     lt_cv_file_magic_cmd='func_win32_libid'
5957   else
5958     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5959     lt_cv_file_magic_cmd='$OBJDUMP -f'
5960   fi
5961   ;;
5962
5963 cegcc)
5964   # use the weaker test based on 'objdump'. See mingw*.
5965   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5966   lt_cv_file_magic_cmd='$OBJDUMP -f'
5967   ;;
5968
5969 darwin* | rhapsody*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 freebsd* | dragonfly*)
5974   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975     case $host_cpu in
5976     i*86 )
5977       # Not sure whether the presence of OpenBSD here was a mistake.
5978       # Let's accept both of them until this is cleared up.
5979       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5980       lt_cv_file_magic_cmd=/usr/bin/file
5981       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5982       ;;
5983     esac
5984   else
5985     lt_cv_deplibs_check_method=pass_all
5986   fi
5987   ;;
5988
5989 gnu*)
5990   lt_cv_deplibs_check_method=pass_all
5991   ;;
5992
5993 hpux10.20* | hpux11*)
5994   lt_cv_file_magic_cmd=/usr/bin/file
5995   case $host_cpu in
5996   ia64*)
5997     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5998     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5999     ;;
6000   hppa*64*)
6001     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]'
6002     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6003     ;;
6004   *)
6005     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6006     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6007     ;;
6008   esac
6009   ;;
6010
6011 interix[3-9]*)
6012   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6013   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6014   ;;
6015
6016 irix5* | irix6* | nonstopux*)
6017   case $LD in
6018   *-32|*"-32 ") libmagic=32-bit;;
6019   *-n32|*"-n32 ") libmagic=N32;;
6020   *-64|*"-64 ") libmagic=64-bit;;
6021   *) libmagic=never-match;;
6022   esac
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 # This must be Linux ELF.
6027 linux* | k*bsd*-gnu)
6028   lt_cv_deplibs_check_method=pass_all
6029   ;;
6030
6031 netbsd* | netbsdelf*-gnu)
6032   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6034   else
6035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6036   fi
6037   ;;
6038
6039 newos6*)
6040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6041   lt_cv_file_magic_cmd=/usr/bin/file
6042   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6043   ;;
6044
6045 *nto* | *qnx*)
6046   lt_cv_deplibs_check_method=pass_all
6047   ;;
6048
6049 openbsd*)
6050   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6052   else
6053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6054   fi
6055   ;;
6056
6057 osf3* | osf4* | osf5*)
6058   lt_cv_deplibs_check_method=pass_all
6059   ;;
6060
6061 rdos*)
6062   lt_cv_deplibs_check_method=pass_all
6063   ;;
6064
6065 solaris*)
6066   lt_cv_deplibs_check_method=pass_all
6067   ;;
6068
6069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6070   lt_cv_deplibs_check_method=pass_all
6071   ;;
6072
6073 sysv4 | sysv4.3*)
6074   case $host_vendor in
6075   motorola)
6076     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]'
6077     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6078     ;;
6079   ncr)
6080     lt_cv_deplibs_check_method=pass_all
6081     ;;
6082   sequent)
6083     lt_cv_file_magic_cmd='/bin/file'
6084     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6085     ;;
6086   sni)
6087     lt_cv_file_magic_cmd='/bin/file'
6088     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6089     lt_cv_file_magic_test_file=/lib/libc.so
6090     ;;
6091   siemens)
6092     lt_cv_deplibs_check_method=pass_all
6093     ;;
6094   pc)
6095     lt_cv_deplibs_check_method=pass_all
6096     ;;
6097   esac
6098   ;;
6099
6100 tpf*)
6101   lt_cv_deplibs_check_method=pass_all
6102   ;;
6103 esac
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6107 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6108 file_magic_cmd=$lt_cv_file_magic_cmd
6109 deplibs_check_method=$lt_cv_deplibs_check_method
6110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 if test -n "$ac_tool_prefix"; then
6124   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ar; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_AR+set}" = set; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$AR"; then
6132   ac_cv_prog_AR="$AR" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_AR="${ac_tool_prefix}ar"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 AR=$ac_cv_prog_AR
6152 if test -n "$AR"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6154 $as_echo "$AR" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_AR"; then
6163   ac_ct_AR=$AR
6164   # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy ar; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   if test -n "$ac_ct_AR"; then
6172   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_ac_ct_AR="ar"
6182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186   done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6194 $as_echo "$ac_ct_AR" >&6; }
6195 else
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200   if test "x$ac_ct_AR" = x; then
6201     AR="false"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     AR=$ac_ct_AR
6210   fi
6211 else
6212   AR="$ac_cv_prog_AR"
6213 fi
6214
6215 test -z "$AR" && AR=ar
6216 test -z "$AR_FLAGS" && AR_FLAGS=cru
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 if test -n "$ac_tool_prefix"; then
6229   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}strip; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_STRIP+set}" = set; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   if test -n "$STRIP"; then
6237   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251   done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 STRIP=$ac_cv_prog_STRIP
6257 if test -n "$STRIP"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6259 $as_echo "$STRIP" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265
6266 fi
6267 if test -z "$ac_cv_prog_STRIP"; then
6268   ac_ct_STRIP=$STRIP
6269   # Extract the first word of "strip", so it can be a program name with args.
6270 set dummy strip; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6274   $as_echo_n "(cached) " >&6
6275 else
6276   if test -n "$ac_ct_STRIP"; then
6277   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284     for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_prog_ac_ct_STRIP="strip"
6287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291   done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6297 if test -n "$ac_ct_STRIP"; then
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6299 $as_echo "$ac_ct_STRIP" >&6; }
6300 else
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304
6305   if test "x$ac_ct_STRIP" = x; then
6306     STRIP=":"
6307   else
6308     case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314     STRIP=$ac_ct_STRIP
6315   fi
6316 else
6317   STRIP="$ac_cv_prog_STRIP"
6318 fi
6319
6320 test -z "$STRIP" && STRIP=:
6321
6322
6323
6324
6325
6326
6327 if test -n "$ac_tool_prefix"; then
6328   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$RANLIB"; then
6336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 RANLIB=$ac_cv_prog_RANLIB
6356 if test -n "$RANLIB"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6358 $as_echo "$RANLIB" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364
6365 fi
6366 if test -z "$ac_cv_prog_RANLIB"; then
6367   ac_ct_RANLIB=$RANLIB
6368   # Extract the first word of "ranlib", so it can be a program name with args.
6369 set dummy ranlib; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$ac_ct_RANLIB"; then
6376   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385     ac_cv_prog_ac_ct_RANLIB="ranlib"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6396 if test -n "$ac_ct_RANLIB"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6398 $as_echo "$ac_ct_RANLIB" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404   if test "x$ac_ct_RANLIB" = x; then
6405     RANLIB=":"
6406   else
6407     case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413     RANLIB=$ac_ct_RANLIB
6414   fi
6415 else
6416   RANLIB="$ac_cv_prog_RANLIB"
6417 fi
6418
6419 test -z "$RANLIB" && RANLIB=:
6420
6421
6422
6423
6424
6425
6426 # Determine commands to create old-style static archives.
6427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6428 old_postinstall_cmds='chmod 644 $oldlib'
6429 old_postuninstall_cmds=
6430
6431 if test -n "$RANLIB"; then
6432   case $host_os in
6433   openbsd*)
6434     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6435     ;;
6436   *)
6437     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6438     ;;
6439   esac
6440   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6441 fi
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 # If no C compiler was specified, use CC.
6477 LTCC=${LTCC-"$CC"}
6478
6479 # If no C compiler flags were specified, use CFLAGS.
6480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6481
6482 # Allow CC to be a program name with arguments.
6483 compiler=$CC
6484
6485
6486 # Check for command to grab the raw symbol name followed by C symbol from nm.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6489 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492
6493 # These are sane defaults that work on at least a few old systems.
6494 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6495
6496 # Character class describing NM global symbol codes.
6497 symcode='[BCDEGRST]'
6498
6499 # Regexp to match symbols that can be accessed directly from C.
6500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6501
6502 # Define system-specific variables.
6503 case $host_os in
6504 aix*)
6505   symcode='[BCDT]'
6506   ;;
6507 cygwin* | mingw* | pw32* | cegcc*)
6508   symcode='[ABCDGISTW]'
6509   ;;
6510 hpux*)
6511   if test "$host_cpu" = ia64; then
6512     symcode='[ABCDEGRST]'
6513   fi
6514   ;;
6515 irix* | nonstopux*)
6516   symcode='[BCDEGRST]'
6517   ;;
6518 osf*)
6519   symcode='[BCDEGQRST]'
6520   ;;
6521 solaris*)
6522   symcode='[BDRT]'
6523   ;;
6524 sco3.2v5*)
6525   symcode='[DT]'
6526   ;;
6527 sysv4.2uw2*)
6528   symcode='[DT]'
6529   ;;
6530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6531   symcode='[ABDT]'
6532   ;;
6533 sysv4)
6534   symcode='[DFNSTU]'
6535   ;;
6536 esac
6537
6538 # If we're using GNU nm, then use its standard symbol codes.
6539 case `$NM -V 2>&1` in
6540 *GNU* | *'with BFD'*)
6541   symcode='[ABCDGIRSTW]' ;;
6542 esac
6543
6544 # Transform an extracted symbol line into a proper C declaration.
6545 # Some systems (esp. on ia64) link data and code symbols differently,
6546 # so use this general approach.
6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548
6549 # Transform an extracted symbol line into symbol name and symbol address
6550 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6551 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'"
6552
6553 # Handle CRLF in mingw tool chain
6554 opt_cr=
6555 case $build_os in
6556 mingw*)
6557   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6558   ;;
6559 esac
6560
6561 # Try without a prefix underscore, then with it.
6562 for ac_symprfx in "" "_"; do
6563
6564   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565   symxfrm="\\1 $ac_symprfx\\2 \\2"
6566
6567   # Write the raw and C identifiers.
6568   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6569     # Fake it for dumpbin and say T for any non-static function
6570     # and D for any global variable.
6571     # Also find C++ and __fastcall symbols from MSVC++,
6572     # which start with @ or ?.
6573     lt_cv_sys_global_symbol_pipe="$AWK '"\
6574 "     {last_section=section; section=\$ 3};"\
6575 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6576 "     \$ 0!~/External *\|/{next};"\
6577 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6578 "     {if(hide[section]) next};"\
6579 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6580 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6581 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6582 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6583 "     ' prfx=^$ac_symprfx"
6584   else
6585     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6586   fi
6587
6588   # Check to see that the pipe works correctly.
6589   pipe_works=no
6590
6591   rm -f conftest*
6592   cat > conftest.$ac_ext <<_LT_EOF
6593 #ifdef __cplusplus
6594 extern "C" {
6595 #endif
6596 char nm_test_var;
6597 void nm_test_func(void);
6598 void nm_test_func(void){}
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 int main(){nm_test_var='a';nm_test_func();return(0);}
6603 _LT_EOF
6604
6605   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606   (eval $ac_compile) 2>&5
6607   ac_status=$?
6608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609   test $ac_status = 0; }; then
6610     # Now try to grab the symbols.
6611     nlist=conftest.nm
6612     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6613   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6614   ac_status=$?
6615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616   test $ac_status = 0; } && test -s "$nlist"; then
6617       # Try sorting and uniquifying the output.
6618       if sort "$nlist" | uniq > "$nlist"T; then
6619         mv -f "$nlist"T "$nlist"
6620       else
6621         rm -f "$nlist"T
6622       fi
6623
6624       # Make sure that we snagged all the symbols we need.
6625       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6626         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6627           cat <<_LT_EOF > conftest.$ac_ext
6628 #ifdef __cplusplus
6629 extern "C" {
6630 #endif
6631
6632 _LT_EOF
6633           # Now generate the symbol file.
6634           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6635
6636           cat <<_LT_EOF >> conftest.$ac_ext
6637
6638 /* The mapping between symbol names and symbols.  */
6639 const struct {
6640   const char *name;
6641   void       *address;
6642 }
6643 lt__PROGRAM__LTX_preloaded_symbols[] =
6644 {
6645   { "@PROGRAM@", (void *) 0 },
6646 _LT_EOF
6647           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6648           cat <<\_LT_EOF >> conftest.$ac_ext
6649   {0, (void *) 0}
6650 };
6651
6652 /* This works around a problem in FreeBSD linker */
6653 #ifdef FREEBSD_WORKAROUND
6654 static const void *lt_preloaded_setup() {
6655   return lt__PROGRAM__LTX_preloaded_symbols;
6656 }
6657 #endif
6658
6659 #ifdef __cplusplus
6660 }
6661 #endif
6662 _LT_EOF
6663           # Now try linking the two files.
6664           mv conftest.$ac_objext conftstm.$ac_objext
6665           lt_save_LIBS="$LIBS"
6666           lt_save_CFLAGS="$CFLAGS"
6667           LIBS="conftstm.$ac_objext"
6668           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6669           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6670   (eval $ac_link) 2>&5
6671   ac_status=$?
6672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6674             pipe_works=yes
6675           fi
6676           LIBS="$lt_save_LIBS"
6677           CFLAGS="$lt_save_CFLAGS"
6678         else
6679           echo "cannot find nm_test_func in $nlist" >&5
6680         fi
6681       else
6682         echo "cannot find nm_test_var in $nlist" >&5
6683       fi
6684     else
6685       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6686     fi
6687   else
6688     echo "$progname: failed program was:" >&5
6689     cat conftest.$ac_ext >&5
6690   fi
6691   rm -rf conftest* conftst*
6692
6693   # Do not use the global_symbol_pipe unless it works.
6694   if test "$pipe_works" = yes; then
6695     break
6696   else
6697     lt_cv_sys_global_symbol_pipe=
6698   fi
6699 done
6700
6701 fi
6702
6703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6704   lt_cv_sys_global_symbol_to_cdecl=
6705 fi
6706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6708 $as_echo "failed" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6711 $as_echo "ok" >&6; }
6712 fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 # Check whether --enable-libtool-lock was given.
6737 if test "${enable_libtool_lock+set}" = set; then :
6738   enableval=$enable_libtool_lock;
6739 fi
6740
6741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6742
6743 # Some flags need to be propagated to the compiler or linker for good
6744 # libtool support.
6745 case $host in
6746 ia64-*-hpux*)
6747   # Find out which ABI we are using.
6748   echo 'int i;' > conftest.$ac_ext
6749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750   (eval $ac_compile) 2>&5
6751   ac_status=$?
6752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753   test $ac_status = 0; }; then
6754     case `/usr/bin/file conftest.$ac_objext` in
6755       *ELF-32*)
6756         HPUX_IA64_MODE="32"
6757         ;;
6758       *ELF-64*)
6759         HPUX_IA64_MODE="64"
6760         ;;
6761     esac
6762   fi
6763   rm -rf conftest*
6764   ;;
6765 *-*-irix6*)
6766   # Find out which ABI we are using.
6767   echo '#line 6767 "configure"' > conftest.$ac_ext
6768   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769   (eval $ac_compile) 2>&5
6770   ac_status=$?
6771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772   test $ac_status = 0; }; then
6773     if test "$lt_cv_prog_gnu_ld" = yes; then
6774       case `/usr/bin/file conftest.$ac_objext` in
6775         *32-bit*)
6776           LD="${LD-ld} -melf32bsmip"
6777           ;;
6778         *N32*)
6779           LD="${LD-ld} -melf32bmipn32"
6780           ;;
6781         *64-bit*)
6782           LD="${LD-ld} -melf64bmip"
6783         ;;
6784       esac
6785     else
6786       case `/usr/bin/file conftest.$ac_objext` in
6787         *32-bit*)
6788           LD="${LD-ld} -32"
6789           ;;
6790         *N32*)
6791           LD="${LD-ld} -n32"
6792           ;;
6793         *64-bit*)
6794           LD="${LD-ld} -64"
6795           ;;
6796       esac
6797     fi
6798   fi
6799   rm -rf conftest*
6800   ;;
6801
6802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6804   # Find out which ABI we are using.
6805   echo 'int i;' > conftest.$ac_ext
6806   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807   (eval $ac_compile) 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810   test $ac_status = 0; }; then
6811     case `/usr/bin/file conftest.o` in
6812       *32-bit*)
6813         case $host in
6814           x86_64-*kfreebsd*-gnu)
6815             LD="${LD-ld} -m elf_i386_fbsd"
6816             ;;
6817           x86_64-*linux*)
6818             LD="${LD-ld} -m elf_i386"
6819             ;;
6820           ppc64-*linux*|powerpc64-*linux*)
6821             LD="${LD-ld} -m elf32ppclinux"
6822             ;;
6823           s390x-*linux*)
6824             LD="${LD-ld} -m elf_s390"
6825             ;;
6826           sparc64-*linux*)
6827             LD="${LD-ld} -m elf32_sparc"
6828             ;;
6829         esac
6830         ;;
6831       *64-bit*)
6832         case $host in
6833           x86_64-*kfreebsd*-gnu)
6834             LD="${LD-ld} -m elf_x86_64_fbsd"
6835             ;;
6836           x86_64-*linux*)
6837             LD="${LD-ld} -m elf_x86_64"
6838             ;;
6839           ppc*-*linux*|powerpc*-*linux*)
6840             LD="${LD-ld} -m elf64ppc"
6841             ;;
6842           s390*-*linux*|s390*-*tpf*)
6843             LD="${LD-ld} -m elf64_s390"
6844             ;;
6845           sparc*-*linux*)
6846             LD="${LD-ld} -m elf64_sparc"
6847             ;;
6848         esac
6849         ;;
6850     esac
6851   fi
6852   rm -rf conftest*
6853   ;;
6854
6855 *-*-sco3.2v5*)
6856   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6857   SAVE_CFLAGS="$CFLAGS"
6858   CFLAGS="$CFLAGS -belf"
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   ac_ext=c
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869
6870      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872
6873 int
6874 main ()
6875 {
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882   lt_cv_cc_needs_belf=yes
6883 else
6884   lt_cv_cc_needs_belf=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext \
6887     conftest$ac_exeext conftest.$ac_ext
6888      ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6897   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6898     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6899     CFLAGS="$SAVE_CFLAGS"
6900   fi
6901   ;;
6902 sparc*-*solaris*)
6903   # Find out which ABI we are using.
6904   echo 'int i;' > conftest.$ac_ext
6905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906   (eval $ac_compile) 2>&5
6907   ac_status=$?
6908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909   test $ac_status = 0; }; then
6910     case `/usr/bin/file conftest.o` in
6911     *64-bit*)
6912       case $lt_cv_prog_gnu_ld in
6913       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6914       *)
6915         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6916           LD="${LD-ld} -64"
6917         fi
6918         ;;
6919       esac
6920       ;;
6921     esac
6922   fi
6923   rm -rf conftest*
6924   ;;
6925 esac
6926
6927 need_locks="$enable_libtool_lock"
6928
6929
6930   case $host_os in
6931     rhapsody* | darwin*)
6932     if test -n "$ac_tool_prefix"; then
6933   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   if test -n "$DSYMUTIL"; then
6941   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6961 if test -n "$DSYMUTIL"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6963 $as_echo "$DSYMUTIL" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969
6970 fi
6971 if test -z "$ac_cv_prog_DSYMUTIL"; then
6972   ac_ct_DSYMUTIL=$DSYMUTIL
6973   # Extract the first word of "dsymutil", so it can be a program name with args.
6974 set dummy dsymutil; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   if test -n "$ac_ct_DSYMUTIL"; then
6981   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988     for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995   done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7001 if test -n "$ac_ct_DSYMUTIL"; then
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7003 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7004 else
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009   if test "x$ac_ct_DSYMUTIL" = x; then
7010     DSYMUTIL=":"
7011   else
7012     case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018     DSYMUTIL=$ac_ct_DSYMUTIL
7019   fi
7020 else
7021   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7022 fi
7023
7024     if test -n "$ac_tool_prefix"; then
7025   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   if test -n "$NMEDIT"; then
7033   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040     for ac_exec_ext in '' $ac_executable_extensions; do
7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047   done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 NMEDIT=$ac_cv_prog_NMEDIT
7053 if test -n "$NMEDIT"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7055 $as_echo "$NMEDIT" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061
7062 fi
7063 if test -z "$ac_cv_prog_NMEDIT"; then
7064   ac_ct_NMEDIT=$NMEDIT
7065   # Extract the first word of "nmedit", so it can be a program name with args.
7066 set dummy nmedit; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -n "$ac_ct_NMEDIT"; then
7073   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7093 if test -n "$ac_ct_NMEDIT"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7095 $as_echo "$ac_ct_NMEDIT" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101   if test "x$ac_ct_NMEDIT" = x; then
7102     NMEDIT=":"
7103   else
7104     case $cross_compiling:$ac_tool_warned in
7105 yes:)
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110     NMEDIT=$ac_ct_NMEDIT
7111   fi
7112 else
7113   NMEDIT="$ac_cv_prog_NMEDIT"
7114 fi
7115
7116     if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_LIPO+set}" = set; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$LIPO"; then
7125   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 LIPO=$ac_cv_prog_LIPO
7145 if test -n "$LIPO"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7147 $as_echo "$LIPO" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_LIPO"; then
7156   ac_ct_LIPO=$LIPO
7157   # Extract the first word of "lipo", so it can be a program name with args.
7158 set dummy lipo; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$ac_ct_LIPO"; then
7165   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_ac_ct_LIPO="lipo"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7185 if test -n "$ac_ct_LIPO"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7187 $as_echo "$ac_ct_LIPO" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_LIPO" = x; then
7194     LIPO=":"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202     LIPO=$ac_ct_LIPO
7203   fi
7204 else
7205   LIPO="$ac_cv_prog_LIPO"
7206 fi
7207
7208     if test -n "$ac_tool_prefix"; then
7209   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}otool; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if test -n "$OTOOL"; then
7217   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 OTOOL=$ac_cv_prog_OTOOL
7237 if test -n "$OTOOL"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7239 $as_echo "$OTOOL" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246 fi
7247 if test -z "$ac_cv_prog_OTOOL"; then
7248   ac_ct_OTOOL=$OTOOL
7249   # Extract the first word of "otool", so it can be a program name with args.
7250 set dummy otool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$ac_ct_OTOOL"; then
7257   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_prog_ac_ct_OTOOL="otool"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7277 if test -n "$ac_ct_OTOOL"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7279 $as_echo "$ac_ct_OTOOL" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285   if test "x$ac_ct_OTOOL" = x; then
7286     OTOOL=":"
7287   else
7288     case $cross_compiling:$ac_tool_warned in
7289 yes:)
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292 ac_tool_warned=yes ;;
7293 esac
7294     OTOOL=$ac_ct_OTOOL
7295   fi
7296 else
7297   OTOOL="$ac_cv_prog_OTOOL"
7298 fi
7299
7300     if test -n "$ac_tool_prefix"; then
7301   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$OTOOL64"; then
7309   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 OTOOL64=$ac_cv_prog_OTOOL64
7329 if test -n "$OTOOL64"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7331 $as_echo "$OTOOL64" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337
7338 fi
7339 if test -z "$ac_cv_prog_OTOOL64"; then
7340   ac_ct_OTOOL64=$OTOOL64
7341   # Extract the first word of "otool64", so it can be a program name with args.
7342 set dummy otool64; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$ac_ct_OTOOL64"; then
7349   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_ac_ct_OTOOL64="otool64"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7369 if test -n "$ac_ct_OTOOL64"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7371 $as_echo "$ac_ct_OTOOL64" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377   if test "x$ac_ct_OTOOL64" = x; then
7378     OTOOL64=":"
7379   else
7380     case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7385 esac
7386     OTOOL64=$ac_ct_OTOOL64
7387   fi
7388 else
7389   OTOOL64="$ac_cv_prog_OTOOL64"
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7419 $as_echo_n "checking for -single_module linker flag... " >&6; }
7420 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   lt_cv_apple_cc_single_mod=no
7424       if test -z "${LT_MULTI_MODULE}"; then
7425         # By default we will add the -single_module flag. You can override
7426         # by either setting the environment variable LT_MULTI_MODULE
7427         # non-empty at configure time, or by adding -multi_module to the
7428         # link flags.
7429         rm -rf libconftest.dylib*
7430         echo "int foo(void){return 1;}" > conftest.c
7431         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7432 -dynamiclib -Wl,-single_module conftest.c" >&5
7433         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7434           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7435         _lt_result=$?
7436         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7437           lt_cv_apple_cc_single_mod=yes
7438         else
7439           cat conftest.err >&5
7440         fi
7441         rm -rf libconftest.dylib*
7442         rm -f conftest.*
7443       fi
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7446 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   lt_cv_ld_exported_symbols_list=no
7453       save_LDFLAGS=$LDFLAGS
7454       echo "_main" > conftest.sym
7455       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458
7459 int
7460 main ()
7461 {
7462
7463   ;
7464   return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_link "$LINENO"; then :
7468   lt_cv_ld_exported_symbols_list=yes
7469 else
7470   lt_cv_ld_exported_symbols_list=no
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext \
7473     conftest$ac_exeext conftest.$ac_ext
7474         LDFLAGS="$save_LDFLAGS"
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7479     case $host_os in
7480     rhapsody* | darwin1.[012])
7481       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7482     darwin1.*)
7483       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7484     darwin*) # darwin 5.x on
7485       # if running on 10.5 or later, the deployment target defaults
7486       # to the OS version, if on x86, and 10.4, the deployment
7487       # target defaults to 10.4. Don't you love it?
7488       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7489         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7490           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7491         10.[012]*)
7492           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7493         10.*)
7494           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7495       esac
7496     ;;
7497   esac
7498     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7499       _lt_dar_single_mod='$single_module'
7500     fi
7501     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7502       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7503     else
7504       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7505     fi
7506     if test "$DSYMUTIL" != ":"; then
7507       _lt_dsymutil='~$DSYMUTIL $lib || :'
7508     else
7509       _lt_dsymutil=
7510     fi
7511     ;;
7512   esac
7513
7514 ac_ext=c
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7521 # On Suns, sometimes $CPP names a directory.
7522 if test -n "$CPP" && test -d "$CPP"; then
7523   CPP=
7524 fi
7525 if test -z "$CPP"; then
7526   if test "${ac_cv_prog_CPP+set}" = set; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529       # Double quotes because CPP needs to be expanded
7530     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7531     do
7532       ac_preproc_ok=false
7533 for ac_c_preproc_warn_flag in '' yes
7534 do
7535   # Use a header file that comes with gcc, so configuring glibc
7536   # with a fresh cross-compiler works.
7537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538   # <limits.h> exists even on freestanding compilers.
7539   # On the NeXT, cc -E runs the code through the compiler's parser,
7540   # not just through cpp. "Syntax error" is here to catch this case.
7541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543 #ifdef __STDC__
7544 # include <limits.h>
7545 #else
7546 # include <assert.h>
7547 #endif
7548                      Syntax error
7549 _ACEOF
7550 if ac_fn_c_try_cpp "$LINENO"; then :
7551
7552 else
7553   # Broken: fails on valid input.
7554 continue
7555 fi
7556 rm -f conftest.err conftest.$ac_ext
7557
7558   # OK, works on sane cases.  Now check whether nonexistent headers
7559   # can be detected and how.
7560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h.  */
7562 #include <ac_nonexistent.h>
7563 _ACEOF
7564 if ac_fn_c_try_cpp "$LINENO"; then :
7565   # Broken: success on invalid input.
7566 continue
7567 else
7568   # Passes both tests.
7569 ac_preproc_ok=:
7570 break
7571 fi
7572 rm -f conftest.err conftest.$ac_ext
7573
7574 done
7575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7576 rm -f conftest.err conftest.$ac_ext
7577 if $ac_preproc_ok; then :
7578   break
7579 fi
7580
7581     done
7582     ac_cv_prog_CPP=$CPP
7583
7584 fi
7585   CPP=$ac_cv_prog_CPP
7586 else
7587   ac_cv_prog_CPP=$CPP
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7590 $as_echo "$CPP" >&6; }
7591 ac_preproc_ok=false
7592 for ac_c_preproc_warn_flag in '' yes
7593 do
7594   # Use a header file that comes with gcc, so configuring glibc
7595   # with a fresh cross-compiler works.
7596   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597   # <limits.h> exists even on freestanding compilers.
7598   # On the NeXT, cc -E runs the code through the compiler's parser,
7599   # not just through cpp. "Syntax error" is here to catch this case.
7600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602 #ifdef __STDC__
7603 # include <limits.h>
7604 #else
7605 # include <assert.h>
7606 #endif
7607                      Syntax error
7608 _ACEOF
7609 if ac_fn_c_try_cpp "$LINENO"; then :
7610
7611 else
7612   # Broken: fails on valid input.
7613 continue
7614 fi
7615 rm -f conftest.err conftest.$ac_ext
7616
7617   # OK, works on sane cases.  Now check whether nonexistent headers
7618   # can be detected and how.
7619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621 #include <ac_nonexistent.h>
7622 _ACEOF
7623 if ac_fn_c_try_cpp "$LINENO"; then :
7624   # Broken: success on invalid input.
7625 continue
7626 else
7627   # Passes both tests.
7628 ac_preproc_ok=:
7629 break
7630 fi
7631 rm -f conftest.err conftest.$ac_ext
7632
7633 done
7634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7635 rm -f conftest.err conftest.$ac_ext
7636 if $ac_preproc_ok; then :
7637
7638 else
7639   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7641 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7642 See \`config.log' for more details." "$LINENO" 5; }
7643 fi
7644
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7653 $as_echo_n "checking for ANSI C header files... " >&6; }
7654 if test "${ac_cv_header_stdc+set}" = set; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h.  */
7659 #include <stdlib.h>
7660 #include <stdarg.h>
7661 #include <string.h>
7662 #include <float.h>
7663
7664 int
7665 main ()
7666 {
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673   ac_cv_header_stdc=yes
7674 else
7675   ac_cv_header_stdc=no
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678
7679 if test $ac_cv_header_stdc = yes; then
7680   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683 #include <string.h>
7684
7685 _ACEOF
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687   $EGREP "memchr" >/dev/null 2>&1; then :
7688
7689 else
7690   ac_cv_header_stdc=no
7691 fi
7692 rm -f conftest*
7693
7694 fi
7695
7696 if test $ac_cv_header_stdc = yes; then
7697   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700 #include <stdlib.h>
7701
7702 _ACEOF
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704   $EGREP "free" >/dev/null 2>&1; then :
7705
7706 else
7707   ac_cv_header_stdc=no
7708 fi
7709 rm -f conftest*
7710
7711 fi
7712
7713 if test $ac_cv_header_stdc = yes; then
7714   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7715   if test "$cross_compiling" = yes; then :
7716   :
7717 else
7718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h.  */
7720 #include <ctype.h>
7721 #include <stdlib.h>
7722 #if ((' ' & 0x0FF) == 0x020)
7723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7725 #else
7726 # define ISLOWER(c) \
7727                    (('a' <= (c) && (c) <= 'i') \
7728                      || ('j' <= (c) && (c) <= 'r') \
7729                      || ('s' <= (c) && (c) <= 'z'))
7730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7731 #endif
7732
7733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7734 int
7735 main ()
7736 {
7737   int i;
7738   for (i = 0; i < 256; i++)
7739     if (XOR (islower (i), ISLOWER (i))
7740         || toupper (i) != TOUPPER (i))
7741       return 2;
7742   return 0;
7743 }
7744 _ACEOF
7745 if ac_fn_c_try_run "$LINENO"; then :
7746
7747 else
7748   ac_cv_header_stdc=no
7749 fi
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7751   conftest.$ac_objext conftest.beam conftest.$ac_ext
7752 fi
7753
7754 fi
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7757 $as_echo "$ac_cv_header_stdc" >&6; }
7758 if test $ac_cv_header_stdc = yes; then
7759
7760 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761
7762 fi
7763
7764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7765 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7766                   inttypes.h stdint.h unistd.h
7767 do :
7768   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7770 "
7771 eval as_val=\$$as_ac_Header
7772    if test "x$as_val" = x""yes; then :
7773   cat >>confdefs.h <<_ACEOF
7774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7775 _ACEOF
7776
7777 fi
7778
7779 done
7780
7781
7782 for ac_header in dlfcn.h
7783 do :
7784   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7785 "
7786 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7787   cat >>confdefs.h <<_ACEOF
7788 #define HAVE_DLFCN_H 1
7789 _ACEOF
7790
7791 fi
7792
7793 done
7794
7795
7796
7797 ac_ext=cpp
7798 ac_cpp='$CXXCPP $CPPFLAGS'
7799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7802 if test -z "$CXX"; then
7803   if test -n "$CCC"; then
7804     CXX=$CCC
7805   else
7806     if test -n "$ac_tool_prefix"; then
7807   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7808   do
7809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7810 set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$CXX"; then
7817   ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
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 CXX=$ac_cv_prog_CXX
7837 if test -n "$CXX"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7839 $as_echo "$CXX" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846     test -n "$CXX" && break
7847   done
7848 fi
7849 if test -z "$CXX"; then
7850   ac_ct_CXX=$CXX
7851   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7852 do
7853   # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   if test -n "$ac_ct_CXX"; then
7861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868     for ac_exec_ext in '' $ac_executable_extensions; do
7869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870     ac_cv_prog_ac_ct_CXX="$ac_prog"
7871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875   done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7881 if test -n "$ac_ct_CXX"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7883 $as_echo "$ac_ct_CXX" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890   test -n "$ac_ct_CXX" && break
7891 done
7892
7893   if test "x$ac_ct_CXX" = x; then
7894     CXX="g++"
7895   else
7896     case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902     CXX=$ac_ct_CXX
7903   fi
7904 fi
7905
7906   fi
7907 fi
7908 # Provide some information about the compiler.
7909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7910 set X $ac_compile
7911 ac_compiler=$2
7912 for ac_option in --version -v -V -qversion; do
7913   { { ac_try="$ac_compiler $ac_option >&5"
7914 case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7919 $as_echo "$ac_try_echo"; } >&5
7920   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7921   ac_status=$?
7922   if test -s conftest.err; then
7923     sed '10a\
7924 ... rest of stderr output deleted ...
7925          10q' conftest.err >conftest.er1
7926     cat conftest.er1 >&5
7927     rm -f conftest.er1 conftest.err
7928   fi
7929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930   test $ac_status = 0; }
7931 done
7932
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7935 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940
7941 int
7942 main ()
7943 {
7944 #ifndef __GNUC__
7945        choke me
7946 #endif
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_cxx_try_compile "$LINENO"; then :
7953   ac_compiler_gnu=yes
7954 else
7955   ac_compiler_gnu=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7959
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7963 if test $ac_compiler_gnu = yes; then
7964   GXX=yes
7965 else
7966   GXX=
7967 fi
7968 ac_test_CXXFLAGS=${CXXFLAGS+set}
7969 ac_save_CXXFLAGS=$CXXFLAGS
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7972 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7976    ac_cxx_werror_flag=yes
7977    ac_cv_prog_cxx_g=no
7978    CXXFLAGS="-g"
7979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981
7982 int
7983 main ()
7984 {
7985
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_cxx_try_compile "$LINENO"; then :
7991   ac_cv_prog_cxx_g=yes
7992 else
7993   CXXFLAGS=""
7994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_cxx_try_compile "$LINENO"; then :
8006
8007 else
8008   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8009          CXXFLAGS="-g"
8010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h.  */
8012
8013 int
8014 main ()
8015 {
8016
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_cxx_try_compile "$LINENO"; then :
8022   ac_cv_prog_cxx_g=yes
8023 fi
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8033 if test "$ac_test_CXXFLAGS" = set; then
8034   CXXFLAGS=$ac_save_CXXFLAGS
8035 elif test $ac_cv_prog_cxx_g = yes; then
8036   if test "$GXX" = yes; then
8037     CXXFLAGS="-g -O2"
8038   else
8039     CXXFLAGS="-g"
8040   fi
8041 else
8042   if test "$GXX" = yes; then
8043     CXXFLAGS="-O2"
8044   else
8045     CXXFLAGS=
8046   fi
8047 fi
8048 ac_ext=c
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053
8054 depcc="$CXX"  am_compiler_list=
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8057 $as_echo_n "checking dependency style of $depcc... " >&6; }
8058 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8062   # We make a subdir and do the tests there.  Otherwise we can end up
8063   # making bogus files that we don't know about and never remove.  For
8064   # instance it was reported that on HP-UX the gcc test will end up
8065   # making a dummy file named `D' -- because `-MD' means `put the output
8066   # in D'.
8067   mkdir conftest.dir
8068   # Copy depcomp to subdir because otherwise we won't find it if we're
8069   # using a relative directory.
8070   cp "$am_depcomp" conftest.dir
8071   cd conftest.dir
8072   # We will build objects and dependencies in a subdirectory because
8073   # it helps to detect inapplicable dependency modes.  For instance
8074   # both Tru64's cc and ICC support -MD to output dependencies as a
8075   # side effect of compilation, but ICC will put the dependencies in
8076   # the current directory while Tru64 will put them in the object
8077   # directory.
8078   mkdir sub
8079
8080   am_cv_CXX_dependencies_compiler_type=none
8081   if test "$am_compiler_list" = ""; then
8082      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8083   fi
8084   am__universal=false
8085   case " $depcc " in #(
8086      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8087      esac
8088
8089   for depmode in $am_compiler_list; do
8090     # Setup a source with many dependencies, because some compilers
8091     # like to wrap large dependency lists on column 80 (with \), and
8092     # we should not choose a depcomp mode which is confused by this.
8093     #
8094     # We need to recreate these files for each test, as the compiler may
8095     # overwrite some of them when testing with obscure command lines.
8096     # This happens at least with the AIX C compiler.
8097     : > sub/conftest.c
8098     for i in 1 2 3 4 5 6; do
8099       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8100       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8101       # Solaris 8's {/usr,}/bin/sh.
8102       touch sub/conftst$i.h
8103     done
8104     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8105
8106     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8107     # mode.  It turns out that the SunPro C++ compiler does not properly
8108     # handle `-M -o', and we need to detect this.  Also, some Intel
8109     # versions had trouble with output in subdirs
8110     am__obj=sub/conftest.${OBJEXT-o}
8111     am__minus_obj="-o $am__obj"
8112     case $depmode in
8113     gcc)
8114       # This depmode causes a compiler race in universal mode.
8115       test "$am__universal" = false || continue
8116       ;;
8117     nosideeffect)
8118       # after this tag, mechanisms are not by side-effect, so they'll
8119       # only be used when explicitly requested
8120       if test "x$enable_dependency_tracking" = xyes; then
8121         continue
8122       else
8123         break
8124       fi
8125       ;;
8126     msvisualcpp | msvcmsys)
8127       # This compiler won't grok `-c -o', but also, the minuso test has
8128       # not run yet.  These depmodes are late enough in the game, and
8129       # so weak that their functioning should not be impacted.
8130       am__obj=conftest.${OBJEXT-o}
8131       am__minus_obj=
8132       ;;
8133     none) break ;;
8134     esac
8135     if depmode=$depmode \
8136        source=sub/conftest.c object=$am__obj \
8137        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8138        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8139          >/dev/null 2>conftest.err &&
8140        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8141        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8142        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8143        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8144       # icc doesn't choke on unknown options, it will just issue warnings
8145       # or remarks (even with -Werror).  So we grep stderr for any message
8146       # that says an option was ignored or not supported.
8147       # When given -MP, icc 7.0 and 7.1 complain thusly:
8148       #   icc: Command line warning: ignoring option '-M'; no argument required
8149       # The diagnosis changed in icc 8.0:
8150       #   icc: Command line remark: option '-MP' not supported
8151       if (grep 'ignoring option' conftest.err ||
8152           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8153         am_cv_CXX_dependencies_compiler_type=$depmode
8154         break
8155       fi
8156     fi
8157   done
8158
8159   cd ..
8160   rm -rf conftest.dir
8161 else
8162   am_cv_CXX_dependencies_compiler_type=none
8163 fi
8164
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8167 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8168 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8169
8170  if
8171   test "x$enable_dependency_tracking" != xno \
8172   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8173   am__fastdepCXX_TRUE=
8174   am__fastdepCXX_FALSE='#'
8175 else
8176   am__fastdepCXX_TRUE='#'
8177   am__fastdepCXX_FALSE=
8178 fi
8179
8180
8181 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8182     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8183     (test "X$CXX" != "Xg++"))) ; then
8184   ac_ext=cpp
8185 ac_cpp='$CXXCPP $CPPFLAGS'
8186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8190 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8191 if test -z "$CXXCPP"; then
8192   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195       # Double quotes because CXXCPP needs to be expanded
8196     for CXXCPP in "$CXX -E" "/lib/cpp"
8197     do
8198       ac_preproc_ok=false
8199 for ac_cxx_preproc_warn_flag in '' yes
8200 do
8201   # Use a header file that comes with gcc, so configuring glibc
8202   # with a fresh cross-compiler works.
8203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8204   # <limits.h> exists even on freestanding compilers.
8205   # On the NeXT, cc -E runs the code through the compiler's parser,
8206   # not just through cpp. "Syntax error" is here to catch this case.
8207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h.  */
8209 #ifdef __STDC__
8210 # include <limits.h>
8211 #else
8212 # include <assert.h>
8213 #endif
8214                      Syntax error
8215 _ACEOF
8216 if ac_fn_cxx_try_cpp "$LINENO"; then :
8217
8218 else
8219   # Broken: fails on valid input.
8220 continue
8221 fi
8222 rm -f conftest.err conftest.$ac_ext
8223
8224   # OK, works on sane cases.  Now check whether nonexistent headers
8225   # can be detected and how.
8226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h.  */
8228 #include <ac_nonexistent.h>
8229 _ACEOF
8230 if ac_fn_cxx_try_cpp "$LINENO"; then :
8231   # Broken: success on invalid input.
8232 continue
8233 else
8234   # Passes both tests.
8235 ac_preproc_ok=:
8236 break
8237 fi
8238 rm -f conftest.err conftest.$ac_ext
8239
8240 done
8241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8242 rm -f conftest.err conftest.$ac_ext
8243 if $ac_preproc_ok; then :
8244   break
8245 fi
8246
8247     done
8248     ac_cv_prog_CXXCPP=$CXXCPP
8249
8250 fi
8251   CXXCPP=$ac_cv_prog_CXXCPP
8252 else
8253   ac_cv_prog_CXXCPP=$CXXCPP
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8256 $as_echo "$CXXCPP" >&6; }
8257 ac_preproc_ok=false
8258 for ac_cxx_preproc_warn_flag in '' yes
8259 do
8260   # Use a header file that comes with gcc, so configuring glibc
8261   # with a fresh cross-compiler works.
8262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263   # <limits.h> exists even on freestanding compilers.
8264   # On the NeXT, cc -E runs the code through the compiler's parser,
8265   # not just through cpp. "Syntax error" is here to catch this case.
8266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 #ifdef __STDC__
8269 # include <limits.h>
8270 #else
8271 # include <assert.h>
8272 #endif
8273                      Syntax error
8274 _ACEOF
8275 if ac_fn_cxx_try_cpp "$LINENO"; then :
8276
8277 else
8278   # Broken: fails on valid input.
8279 continue
8280 fi
8281 rm -f conftest.err conftest.$ac_ext
8282
8283   # OK, works on sane cases.  Now check whether nonexistent headers
8284   # can be detected and how.
8285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h.  */
8287 #include <ac_nonexistent.h>
8288 _ACEOF
8289 if ac_fn_cxx_try_cpp "$LINENO"; then :
8290   # Broken: success on invalid input.
8291 continue
8292 else
8293   # Passes both tests.
8294 ac_preproc_ok=:
8295 break
8296 fi
8297 rm -f conftest.err conftest.$ac_ext
8298
8299 done
8300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8301 rm -f conftest.err conftest.$ac_ext
8302 if $ac_preproc_ok; then :
8303
8304 else
8305   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8307 _lt_caught_CXX_error=yes; }
8308 fi
8309
8310 ac_ext=c
8311 ac_cpp='$CPP $CPPFLAGS'
8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316 else
8317   _lt_caught_CXX_error=yes
8318 fi
8319
8320
8321
8322
8323
8324 # Set options
8325
8326
8327
8328         enable_dlopen=no
8329
8330
8331   enable_win32_dll=no
8332
8333
8334             # Check whether --enable-shared was given.
8335 if test "${enable_shared+set}" = set; then :
8336   enableval=$enable_shared; p=${PACKAGE-default}
8337     case $enableval in
8338     yes) enable_shared=yes ;;
8339     no) enable_shared=no ;;
8340     *)
8341       enable_shared=no
8342       # Look at the argument we got.  We use all the common list separators.
8343       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8344       for pkg in $enableval; do
8345         IFS="$lt_save_ifs"
8346         if test "X$pkg" = "X$p"; then
8347           enable_shared=yes
8348         fi
8349       done
8350       IFS="$lt_save_ifs"
8351       ;;
8352     esac
8353 else
8354   enable_shared=yes
8355 fi
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365   # Check whether --enable-static was given.
8366 if test "${enable_static+set}" = set; then :
8367   enableval=$enable_static; p=${PACKAGE-default}
8368     case $enableval in
8369     yes) enable_static=yes ;;
8370     no) enable_static=no ;;
8371     *)
8372      enable_static=no
8373       # Look at the argument we got.  We use all the common list separators.
8374       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8375       for pkg in $enableval; do
8376         IFS="$lt_save_ifs"
8377         if test "X$pkg" = "X$p"; then
8378           enable_static=yes
8379         fi
8380       done
8381       IFS="$lt_save_ifs"
8382       ;;
8383     esac
8384 else
8385   enable_static=yes
8386 fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 # Check whether --with-pic was given.
8398 if test "${with_pic+set}" = set; then :
8399   withval=$with_pic; pic_mode="$withval"
8400 else
8401   pic_mode=default
8402 fi
8403
8404
8405 test -z "$pic_mode" && pic_mode=default
8406
8407
8408
8409
8410
8411
8412
8413   # Check whether --enable-fast-install was given.
8414 if test "${enable_fast_install+set}" = set; then :
8415   enableval=$enable_fast_install; p=${PACKAGE-default}
8416     case $enableval in
8417     yes) enable_fast_install=yes ;;
8418     no) enable_fast_install=no ;;
8419     *)
8420       enable_fast_install=no
8421       # Look at the argument we got.  We use all the common list separators.
8422       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8423       for pkg in $enableval; do
8424         IFS="$lt_save_ifs"
8425         if test "X$pkg" = "X$p"; then
8426           enable_fast_install=yes
8427         fi
8428       done
8429       IFS="$lt_save_ifs"
8430       ;;
8431     esac
8432 else
8433   enable_fast_install=yes
8434 fi
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 # This can be used to rebuild libtool when needed
8447 LIBTOOL_DEPS="$ltmain"
8448
8449 # Always use our own libtool.
8450 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 test -z "$LN_S" && LN_S="ln -s"
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 if test -n "${ZSH_VERSION+set}" ; then
8492    setopt NO_GLOB_SUBST
8493 fi
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8496 $as_echo_n "checking for objdir... " >&6; }
8497 if test "${lt_cv_objdir+set}" = set; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   rm -f .libs 2>/dev/null
8501 mkdir .libs 2>/dev/null
8502 if test -d .libs; then
8503   lt_cv_objdir=.libs
8504 else
8505   # MS-DOS does not allow filenames that begin with a dot.
8506   lt_cv_objdir=_libs
8507 fi
8508 rmdir .libs 2>/dev/null
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8511 $as_echo "$lt_cv_objdir" >&6; }
8512 objdir=$lt_cv_objdir
8513
8514
8515
8516
8517
8518 cat >>confdefs.h <<_ACEOF
8519 #define LT_OBJDIR "$lt_cv_objdir/"
8520 _ACEOF
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538 case $host_os in
8539 aix3*)
8540   # AIX sometimes has problems with the GCC collect2 program.  For some
8541   # reason, if we set the COLLECT_NAMES environment variable, the problems
8542   # vanish in a puff of smoke.
8543   if test "X${COLLECT_NAMES+set}" != Xset; then
8544     COLLECT_NAMES=
8545     export COLLECT_NAMES
8546   fi
8547   ;;
8548 esac
8549
8550 # Sed substitution that helps us do robust quoting.  It backslashifies
8551 # metacharacters that are still active within double-quoted strings.
8552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8553
8554 # Same as above, but do not quote variable references.
8555 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8556
8557 # Sed substitution to delay expansion of an escaped shell variable in a
8558 # double_quote_subst'ed string.
8559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8560
8561 # Sed substitution to delay expansion of an escaped single quote.
8562 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8563
8564 # Sed substitution to avoid accidental globbing in evaled expressions
8565 no_glob_subst='s/\*/\\\*/g'
8566
8567 # Global variables:
8568 ofile=libtool
8569 can_build_shared=yes
8570
8571 # All known linkers require a `.a' archive for static linking (except MSVC,
8572 # which needs '.lib').
8573 libext=a
8574
8575 with_gnu_ld="$lt_cv_prog_gnu_ld"
8576
8577 old_CC="$CC"
8578 old_CFLAGS="$CFLAGS"
8579
8580 # Set sane defaults for various variables
8581 test -z "$CC" && CC=cc
8582 test -z "$LTCC" && LTCC=$CC
8583 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8584 test -z "$LD" && LD=ld
8585 test -z "$ac_objext" && ac_objext=o
8586
8587 for cc_temp in $compiler""; do
8588   case $cc_temp in
8589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8591     \-*) ;;
8592     *) break;;
8593   esac
8594 done
8595 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8596
8597
8598 # Only perform the check for file, if the check method requires it
8599 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8600 case $deplibs_check_method in
8601 file_magic*)
8602   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8604 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   case $MAGIC_CMD in
8609 [\\/*] |  ?:[\\/]*)
8610   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8611   ;;
8612 *)
8613   lt_save_MAGIC_CMD="$MAGIC_CMD"
8614   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8615   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8616   for ac_dir in $ac_dummy; do
8617     IFS="$lt_save_ifs"
8618     test -z "$ac_dir" && ac_dir=.
8619     if test -f $ac_dir/${ac_tool_prefix}file; then
8620       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8621       if test -n "$file_magic_test_file"; then
8622         case $deplibs_check_method in
8623         "file_magic "*)
8624           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8625           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8627             $EGREP "$file_magic_regex" > /dev/null; then
8628             :
8629           else
8630             cat <<_LT_EOF 1>&2
8631
8632 *** Warning: the command libtool uses to detect shared libraries,
8633 *** $file_magic_cmd, produces output that libtool cannot recognize.
8634 *** The result is that libtool may fail to recognize shared libraries
8635 *** as such.  This will affect the creation of libtool libraries that
8636 *** depend on shared libraries, but programs linked with such libtool
8637 *** libraries will work regardless of this problem.  Nevertheless, you
8638 *** may want to report the problem to your system manager and/or to
8639 *** bug-libtool@gnu.org
8640
8641 _LT_EOF
8642           fi ;;
8643         esac
8644       fi
8645       break
8646     fi
8647   done
8648   IFS="$lt_save_ifs"
8649   MAGIC_CMD="$lt_save_MAGIC_CMD"
8650   ;;
8651 esac
8652 fi
8653
8654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8655 if test -n "$MAGIC_CMD"; then
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8657 $as_echo "$MAGIC_CMD" >&6; }
8658 else
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8661 fi
8662
8663
8664
8665
8666
8667 if test -z "$lt_cv_path_MAGIC_CMD"; then
8668   if test -n "$ac_tool_prefix"; then
8669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8670 $as_echo_n "checking for file... " >&6; }
8671 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   case $MAGIC_CMD in
8675 [\\/*] |  ?:[\\/]*)
8676   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8677   ;;
8678 *)
8679   lt_save_MAGIC_CMD="$MAGIC_CMD"
8680   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8681   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8682   for ac_dir in $ac_dummy; do
8683     IFS="$lt_save_ifs"
8684     test -z "$ac_dir" && ac_dir=.
8685     if test -f $ac_dir/file; then
8686       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8687       if test -n "$file_magic_test_file"; then
8688         case $deplibs_check_method in
8689         "file_magic "*)
8690           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8691           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8692           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8693             $EGREP "$file_magic_regex" > /dev/null; then
8694             :
8695           else
8696             cat <<_LT_EOF 1>&2
8697
8698 *** Warning: the command libtool uses to detect shared libraries,
8699 *** $file_magic_cmd, produces output that libtool cannot recognize.
8700 *** The result is that libtool may fail to recognize shared libraries
8701 *** as such.  This will affect the creation of libtool libraries that
8702 *** depend on shared libraries, but programs linked with such libtool
8703 *** libraries will work regardless of this problem.  Nevertheless, you
8704 *** may want to report the problem to your system manager and/or to
8705 *** bug-libtool@gnu.org
8706
8707 _LT_EOF
8708           fi ;;
8709         esac
8710       fi
8711       break
8712     fi
8713   done
8714   IFS="$lt_save_ifs"
8715   MAGIC_CMD="$lt_save_MAGIC_CMD"
8716   ;;
8717 esac
8718 fi
8719
8720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8721 if test -n "$MAGIC_CMD"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8723 $as_echo "$MAGIC_CMD" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730   else
8731     MAGIC_CMD=:
8732   fi
8733 fi
8734
8735   fi
8736   ;;
8737 esac
8738
8739 # Use C for the default configuration in the libtool script
8740
8741 lt_save_CC="$CC"
8742 ac_ext=c
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
8748
8749 # Source file extension for C test sources.
8750 ac_ext=c
8751
8752 # Object file extension for compiled C test sources.
8753 objext=o
8754 objext=$objext
8755
8756 # Code to be used in simple compile tests
8757 lt_simple_compile_test_code="int some_variable = 0;"
8758
8759 # Code to be used in simple link tests
8760 lt_simple_link_test_code='int main(){return(0);}'
8761
8762
8763
8764
8765
8766
8767
8768 # If no C compiler was specified, use CC.
8769 LTCC=${LTCC-"$CC"}
8770
8771 # If no C compiler flags were specified, use CFLAGS.
8772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8773
8774 # Allow CC to be a program name with arguments.
8775 compiler=$CC
8776
8777 # Save the default compiler, since it gets overwritten when the other
8778 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8779 compiler_DEFAULT=$CC
8780
8781 # save warnings/boilerplate of simple test code
8782 ac_outfile=conftest.$ac_objext
8783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8785 _lt_compiler_boilerplate=`cat conftest.err`
8786 $RM conftest*
8787
8788 ac_outfile=conftest.$ac_objext
8789 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8791 _lt_linker_boilerplate=`cat conftest.err`
8792 $RM -r conftest*
8793
8794
8795 ## CAVEAT EMPTOR:
8796 ## There is no encapsulation within the following macros, do not change
8797 ## the running order or otherwise move them around unless you know exactly
8798 ## what you are doing...
8799 if test -n "$compiler"; then
8800
8801 lt_prog_compiler_no_builtin_flag=
8802
8803 if test "$GCC" = yes; then
8804   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8805
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   lt_cv_prog_compiler_rtti_exceptions=no
8812    ac_outfile=conftest.$ac_objext
8813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814    lt_compiler_flag="-fno-rtti -fno-exceptions"
8815    # Insert the option either (1) after the last *FLAGS variable, or
8816    # (2) before a word containing "conftest.", or (3) at the end.
8817    # Note that $ac_compile itself does not contain backslashes and begins
8818    # with a dollar sign (not a hyphen), so the echo should work correctly.
8819    # The option is referenced via a variable to avoid confusing sed.
8820    lt_compile=`echo "$ac_compile" | $SED \
8821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823    -e 's:$: $lt_compiler_flag:'`
8824    (eval echo "\"\$as_me:8824: $lt_compile\"" >&5)
8825    (eval "$lt_compile" 2>conftest.err)
8826    ac_status=$?
8827    cat conftest.err >&5
8828    echo "$as_me:8828: \$? = $ac_status" >&5
8829    if (exit $ac_status) && test -s "$ac_outfile"; then
8830      # The compiler can only warn and ignore the option if not recognized
8831      # So say no if there are warnings other than the usual output.
8832      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8835        lt_cv_prog_compiler_rtti_exceptions=yes
8836      fi
8837    fi
8838    $RM conftest*
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8843
8844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8845     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8846 else
8847     :
8848 fi
8849
8850 fi
8851
8852
8853
8854
8855
8856
8857   lt_prog_compiler_wl=
8858 lt_prog_compiler_pic=
8859 lt_prog_compiler_static=
8860
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8863
8864   if test "$GCC" = yes; then
8865     lt_prog_compiler_wl='-Wl,'
8866     lt_prog_compiler_static='-static'
8867
8868     case $host_os in
8869       aix*)
8870       # All AIX code is PIC.
8871       if test "$host_cpu" = ia64; then
8872         # AIX 5 now supports IA64 processor
8873         lt_prog_compiler_static='-Bstatic'
8874       fi
8875       ;;
8876
8877     amigaos*)
8878       case $host_cpu in
8879       powerpc)
8880             # see comment about AmigaOS4 .so support
8881             lt_prog_compiler_pic='-fPIC'
8882         ;;
8883       m68k)
8884             # FIXME: we need at least 68020 code to build shared libraries, but
8885             # adding the `-m68020' flag to GCC prevents building anything better,
8886             # like `-m68040'.
8887             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8888         ;;
8889       esac
8890       ;;
8891
8892     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8893       # PIC is the default for these OSes.
8894       ;;
8895
8896     mingw* | cygwin* | pw32* | os2* | cegcc*)
8897       # This hack is so that the source file can tell whether it is being
8898       # built for inclusion in a dll (and should export symbols for example).
8899       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8900       # (--disable-auto-import) libraries
8901       lt_prog_compiler_pic='-DDLL_EXPORT'
8902       ;;
8903
8904     darwin* | rhapsody*)
8905       # PIC is the default on this platform
8906       # Common symbols not allowed in MH_DYLIB files
8907       lt_prog_compiler_pic='-fno-common'
8908       ;;
8909
8910     hpux*)
8911       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8912       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8913       # sets the default TLS model and affects inlining.
8914       case $host_cpu in
8915       hppa*64*)
8916         # +Z the default
8917         ;;
8918       *)
8919         lt_prog_compiler_pic='-fPIC'
8920         ;;
8921       esac
8922       ;;
8923
8924     interix[3-9]*)
8925       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8926       # Instead, we relocate shared libraries at runtime.
8927       ;;
8928
8929     msdosdjgpp*)
8930       # Just because we use GCC doesn't mean we suddenly get shared libraries
8931       # on systems that don't support them.
8932       lt_prog_compiler_can_build_shared=no
8933       enable_shared=no
8934       ;;
8935
8936     *nto* | *qnx*)
8937       # QNX uses GNU C++, but need to define -shared option too, otherwise
8938       # it will coredump.
8939       lt_prog_compiler_pic='-fPIC -shared'
8940       ;;
8941
8942     sysv4*MP*)
8943       if test -d /usr/nec; then
8944         lt_prog_compiler_pic=-Kconform_pic
8945       fi
8946       ;;
8947
8948     *)
8949       lt_prog_compiler_pic='-fPIC'
8950       ;;
8951     esac
8952   else
8953     # PORTME Check for flag to pass linker flags through the system compiler.
8954     case $host_os in
8955     aix*)
8956       lt_prog_compiler_wl='-Wl,'
8957       if test "$host_cpu" = ia64; then
8958         # AIX 5 now supports IA64 processor
8959         lt_prog_compiler_static='-Bstatic'
8960       else
8961         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8962       fi
8963       ;;
8964
8965     mingw* | cygwin* | pw32* | os2* | cegcc*)
8966       # This hack is so that the source file can tell whether it is being
8967       # built for inclusion in a dll (and should export symbols for example).
8968       lt_prog_compiler_pic='-DDLL_EXPORT'
8969       ;;
8970
8971     hpux9* | hpux10* | hpux11*)
8972       lt_prog_compiler_wl='-Wl,'
8973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8974       # not for PA HP-UX.
8975       case $host_cpu in
8976       hppa*64*|ia64*)
8977         # +Z the default
8978         ;;
8979       *)
8980         lt_prog_compiler_pic='+Z'
8981         ;;
8982       esac
8983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8984       lt_prog_compiler_static='${wl}-a ${wl}archive'
8985       ;;
8986
8987     irix5* | irix6* | nonstopux*)
8988       lt_prog_compiler_wl='-Wl,'
8989       # PIC (with -KPIC) is the default.
8990       lt_prog_compiler_static='-non_shared'
8991       ;;
8992
8993     linux* | k*bsd*-gnu)
8994       case $cc_basename in
8995       # old Intel for x86_64 which still supported -KPIC.
8996       ecc*)
8997         lt_prog_compiler_wl='-Wl,'
8998         lt_prog_compiler_pic='-KPIC'
8999         lt_prog_compiler_static='-static'
9000         ;;
9001       # icc used to be incompatible with GCC.
9002       # ICC 10 doesn't accept -KPIC any more.
9003       icc* | ifort*)
9004         lt_prog_compiler_wl='-Wl,'
9005         lt_prog_compiler_pic='-fPIC'
9006         lt_prog_compiler_static='-static'
9007         ;;
9008       # Lahey Fortran 8.1.
9009       lf95*)
9010         lt_prog_compiler_wl='-Wl,'
9011         lt_prog_compiler_pic='--shared'
9012         lt_prog_compiler_static='--static'
9013         ;;
9014       pgcc* | pgf77* | pgf90* | pgf95*)
9015         # Portland Group compilers (*not* the Pentium gcc compiler,
9016         # which looks to be a dead project)
9017         lt_prog_compiler_wl='-Wl,'
9018         lt_prog_compiler_pic='-fpic'
9019         lt_prog_compiler_static='-Bstatic'
9020         ;;
9021       ccc*)
9022         lt_prog_compiler_wl='-Wl,'
9023         # All Alpha code is PIC.
9024         lt_prog_compiler_static='-non_shared'
9025         ;;
9026       xl*)
9027         # IBM XL C 8.0/Fortran 10.1 on PPC
9028         lt_prog_compiler_wl='-Wl,'
9029         lt_prog_compiler_pic='-qpic'
9030         lt_prog_compiler_static='-qstaticlink'
9031         ;;
9032       *)
9033         case `$CC -V 2>&1 | sed 5q` in
9034         *Sun\ C*)
9035           # Sun C 5.9
9036           lt_prog_compiler_pic='-KPIC'
9037           lt_prog_compiler_static='-Bstatic'
9038           lt_prog_compiler_wl='-Wl,'
9039           ;;
9040         *Sun\ F*)
9041           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9042           lt_prog_compiler_pic='-KPIC'
9043           lt_prog_compiler_static='-Bstatic'
9044           lt_prog_compiler_wl=''
9045           ;;
9046         esac
9047         ;;
9048       esac
9049       ;;
9050
9051     newsos6)
9052       lt_prog_compiler_pic='-KPIC'
9053       lt_prog_compiler_static='-Bstatic'
9054       ;;
9055
9056     *nto* | *qnx*)
9057       # QNX uses GNU C++, but need to define -shared option too, otherwise
9058       # it will coredump.
9059       lt_prog_compiler_pic='-fPIC -shared'
9060       ;;
9061
9062     osf3* | osf4* | osf5*)
9063       lt_prog_compiler_wl='-Wl,'
9064       # All OSF/1 code is PIC.
9065       lt_prog_compiler_static='-non_shared'
9066       ;;
9067
9068     rdos*)
9069       lt_prog_compiler_static='-non_shared'
9070       ;;
9071
9072     solaris*)
9073       lt_prog_compiler_pic='-KPIC'
9074       lt_prog_compiler_static='-Bstatic'
9075       case $cc_basename in
9076       f77* | f90* | f95*)
9077         lt_prog_compiler_wl='-Qoption ld ';;
9078       *)
9079         lt_prog_compiler_wl='-Wl,';;
9080       esac
9081       ;;
9082
9083     sunos4*)
9084       lt_prog_compiler_wl='-Qoption ld '
9085       lt_prog_compiler_pic='-PIC'
9086       lt_prog_compiler_static='-Bstatic'
9087       ;;
9088
9089     sysv4 | sysv4.2uw2* | sysv4.3*)
9090       lt_prog_compiler_wl='-Wl,'
9091       lt_prog_compiler_pic='-KPIC'
9092       lt_prog_compiler_static='-Bstatic'
9093       ;;
9094
9095     sysv4*MP*)
9096       if test -d /usr/nec ;then
9097         lt_prog_compiler_pic='-Kconform_pic'
9098         lt_prog_compiler_static='-Bstatic'
9099       fi
9100       ;;
9101
9102     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9103       lt_prog_compiler_wl='-Wl,'
9104       lt_prog_compiler_pic='-KPIC'
9105       lt_prog_compiler_static='-Bstatic'
9106       ;;
9107
9108     unicos*)
9109       lt_prog_compiler_wl='-Wl,'
9110       lt_prog_compiler_can_build_shared=no
9111       ;;
9112
9113     uts4*)
9114       lt_prog_compiler_pic='-pic'
9115       lt_prog_compiler_static='-Bstatic'
9116       ;;
9117
9118     *)
9119       lt_prog_compiler_can_build_shared=no
9120       ;;
9121     esac
9122   fi
9123
9124 case $host_os in
9125   # For platforms which do not support PIC, -DPIC is meaningless:
9126   *djgpp*)
9127     lt_prog_compiler_pic=
9128     ;;
9129   *)
9130     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9131     ;;
9132 esac
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9134 $as_echo "$lt_prog_compiler_pic" >&6; }
9135
9136
9137
9138
9139
9140
9141 #
9142 # Check to make sure the PIC flag actually works.
9143 #
9144 if test -n "$lt_prog_compiler_pic"; then
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9146 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9147 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   lt_cv_prog_compiler_pic_works=no
9151    ac_outfile=conftest.$ac_objext
9152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9154    # Insert the option either (1) after the last *FLAGS variable, or
9155    # (2) before a word containing "conftest.", or (3) at the end.
9156    # Note that $ac_compile itself does not contain backslashes and begins
9157    # with a dollar sign (not a hyphen), so the echo should work correctly.
9158    # The option is referenced via a variable to avoid confusing sed.
9159    lt_compile=`echo "$ac_compile" | $SED \
9160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162    -e 's:$: $lt_compiler_flag:'`
9163    (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
9164    (eval "$lt_compile" 2>conftest.err)
9165    ac_status=$?
9166    cat conftest.err >&5
9167    echo "$as_me:9167: \$? = $ac_status" >&5
9168    if (exit $ac_status) && test -s "$ac_outfile"; then
9169      # The compiler can only warn and ignore the option if not recognized
9170      # So say no if there are warnings other than the usual output.
9171      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9172      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9174        lt_cv_prog_compiler_pic_works=yes
9175      fi
9176    fi
9177    $RM conftest*
9178
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9181 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9182
9183 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9184     case $lt_prog_compiler_pic in
9185      "" | " "*) ;;
9186      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9187      esac
9188 else
9189     lt_prog_compiler_pic=
9190      lt_prog_compiler_can_build_shared=no
9191 fi
9192
9193 fi
9194
9195
9196
9197
9198
9199
9200 #
9201 # Check to make sure the static flag actually works.
9202 #
9203 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9206 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209   lt_cv_prog_compiler_static_works=no
9210    save_LDFLAGS="$LDFLAGS"
9211    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9212    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9213    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9214      # The linker can only warn and ignore the option if not recognized
9215      # So say no if there are warnings
9216      if test -s conftest.err; then
9217        # Append any errors to the config.log.
9218        cat conftest.err 1>&5
9219        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9220        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221        if diff conftest.exp conftest.er2 >/dev/null; then
9222          lt_cv_prog_compiler_static_works=yes
9223        fi
9224      else
9225        lt_cv_prog_compiler_static_works=yes
9226      fi
9227    fi
9228    $RM -r conftest*
9229    LDFLAGS="$save_LDFLAGS"
9230
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9233 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9234
9235 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9236     :
9237 else
9238     lt_prog_compiler_static=
9239 fi
9240
9241
9242
9243
9244
9245
9246
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9249 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   lt_cv_prog_compiler_c_o=no
9253    $RM -r conftest 2>/dev/null
9254    mkdir conftest
9255    cd conftest
9256    mkdir out
9257    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258
9259    lt_compiler_flag="-o out/conftest2.$ac_objext"
9260    # Insert the option either (1) after the last *FLAGS variable, or
9261    # (2) before a word containing "conftest.", or (3) at the end.
9262    # Note that $ac_compile itself does not contain backslashes and begins
9263    # with a dollar sign (not a hyphen), so the echo should work correctly.
9264    lt_compile=`echo "$ac_compile" | $SED \
9265    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267    -e 's:$: $lt_compiler_flag:'`
9268    (eval echo "\"\$as_me:9268: $lt_compile\"" >&5)
9269    (eval "$lt_compile" 2>out/conftest.err)
9270    ac_status=$?
9271    cat out/conftest.err >&5
9272    echo "$as_me:9272: \$? = $ac_status" >&5
9273    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9274    then
9275      # The compiler can only warn and ignore the option if not recognized
9276      # So say no if there are warnings
9277      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9278      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9279      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9280        lt_cv_prog_compiler_c_o=yes
9281      fi
9282    fi
9283    chmod u+w . 2>&5
9284    $RM conftest*
9285    # SGI C++ compiler will create directory out/ii_files/ for
9286    # template instantiation
9287    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9288    $RM out/* && rmdir out
9289    cd ..
9290    $RM -r conftest
9291    $RM conftest*
9292
9293 fi
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9296
9297
9298
9299
9300
9301
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9304 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9305   $as_echo_n "(cached) " >&6
9306 else
9307   lt_cv_prog_compiler_c_o=no
9308    $RM -r conftest 2>/dev/null
9309    mkdir conftest
9310    cd conftest
9311    mkdir out
9312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313
9314    lt_compiler_flag="-o out/conftest2.$ac_objext"
9315    # Insert the option either (1) after the last *FLAGS variable, or
9316    # (2) before a word containing "conftest.", or (3) at the end.
9317    # Note that $ac_compile itself does not contain backslashes and begins
9318    # with a dollar sign (not a hyphen), so the echo should work correctly.
9319    lt_compile=`echo "$ac_compile" | $SED \
9320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322    -e 's:$: $lt_compiler_flag:'`
9323    (eval echo "\"\$as_me:9323: $lt_compile\"" >&5)
9324    (eval "$lt_compile" 2>out/conftest.err)
9325    ac_status=$?
9326    cat out/conftest.err >&5
9327    echo "$as_me:9327: \$? = $ac_status" >&5
9328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9329    then
9330      # The compiler can only warn and ignore the option if not recognized
9331      # So say no if there are warnings
9332      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9335        lt_cv_prog_compiler_c_o=yes
9336      fi
9337    fi
9338    chmod u+w . 2>&5
9339    $RM conftest*
9340    # SGI C++ compiler will create directory out/ii_files/ for
9341    # template instantiation
9342    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9343    $RM out/* && rmdir out
9344    cd ..
9345    $RM -r conftest
9346    $RM conftest*
9347
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9351
9352
9353
9354
9355 hard_links="nottested"
9356 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9357   # do not overwrite the value of need_locks provided by the user
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9359 $as_echo_n "checking if we can lock with hard links... " >&6; }
9360   hard_links=yes
9361   $RM conftest*
9362   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9363   touch conftest.a
9364   ln conftest.a conftest.b 2>&5 || hard_links=no
9365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9367 $as_echo "$hard_links" >&6; }
9368   if test "$hard_links" = no; then
9369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9370 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9371     need_locks=warn
9372   fi
9373 else
9374   need_locks=no
9375 fi
9376
9377
9378
9379
9380
9381
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9384
9385   runpath_var=
9386   allow_undefined_flag=
9387   always_export_symbols=no
9388   archive_cmds=
9389   archive_expsym_cmds=
9390   compiler_needs_object=no
9391   enable_shared_with_static_runtimes=no
9392   export_dynamic_flag_spec=
9393   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9394   hardcode_automatic=no
9395   hardcode_direct=no
9396   hardcode_direct_absolute=no
9397   hardcode_libdir_flag_spec=
9398   hardcode_libdir_flag_spec_ld=
9399   hardcode_libdir_separator=
9400   hardcode_minus_L=no
9401   hardcode_shlibpath_var=unsupported
9402   inherit_rpath=no
9403   link_all_deplibs=unknown
9404   module_cmds=
9405   module_expsym_cmds=
9406   old_archive_from_new_cmds=
9407   old_archive_from_expsyms_cmds=
9408   thread_safe_flag_spec=
9409   whole_archive_flag_spec=
9410   # include_expsyms should be a list of space-separated symbols to be *always*
9411   # included in the symbol list
9412   include_expsyms=
9413   # exclude_expsyms can be an extended regexp of symbols to exclude
9414   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9415   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9416   # as well as any symbol that contains `d'.
9417   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9418   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9419   # platforms (ab)use it in PIC code, but their linkers get confused if
9420   # the symbol is explicitly referenced.  Since portable code cannot
9421   # rely on this symbol name, it's probably fine to never include it in
9422   # preloaded symbol tables.
9423   # Exclude shared library initialization/finalization symbols.
9424   extract_expsyms_cmds=
9425
9426   case $host_os in
9427   cygwin* | mingw* | pw32* | cegcc*)
9428     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9429     # When not using gcc, we currently assume that we are using
9430     # Microsoft Visual C++.
9431     if test "$GCC" != yes; then
9432       with_gnu_ld=no
9433     fi
9434     ;;
9435   interix*)
9436     # we just hope/assume this is gcc and not c89 (= MSVC++)
9437     with_gnu_ld=yes
9438     ;;
9439   openbsd*)
9440     with_gnu_ld=no
9441     ;;
9442   linux* | k*bsd*-gnu)
9443     link_all_deplibs=no
9444     ;;
9445   esac
9446
9447   ld_shlibs=yes
9448   if test "$with_gnu_ld" = yes; then
9449     # If archive_cmds runs LD, not CC, wlarc should be empty
9450     wlarc='${wl}'
9451
9452     # Set some defaults for GNU ld with shared library support. These
9453     # are reset later if shared libraries are not supported. Putting them
9454     # here allows them to be overridden if necessary.
9455     runpath_var=LD_RUN_PATH
9456     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457     export_dynamic_flag_spec='${wl}--export-dynamic'
9458     # ancient GNU ld didn't support --whole-archive et. al.
9459     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9460       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9461     else
9462       whole_archive_flag_spec=
9463     fi
9464     supports_anon_versioning=no
9465     case `$LD -v 2>&1` in
9466       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9467       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9468       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9469       *\ 2.11.*) ;; # other 2.11 versions
9470       *) supports_anon_versioning=yes ;;
9471     esac
9472
9473     # See if GNU ld supports shared libraries.
9474     case $host_os in
9475     aix[3-9]*)
9476       # On AIX/PPC, the GNU linker is very broken
9477       if test "$host_cpu" != ia64; then
9478         ld_shlibs=no
9479         cat <<_LT_EOF 1>&2
9480
9481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9482 *** to be unable to reliably create shared libraries on AIX.
9483 *** Therefore, libtool is disabling shared libraries support.  If you
9484 *** really care for shared libraries, you may want to modify your PATH
9485 *** so that a non-GNU linker is found, and then restart.
9486
9487 _LT_EOF
9488       fi
9489       ;;
9490
9491     amigaos*)
9492       case $host_cpu in
9493       powerpc)
9494             # see comment about AmigaOS4 .so support
9495             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496             archive_expsym_cmds=''
9497         ;;
9498       m68k)
9499             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)'
9500             hardcode_libdir_flag_spec='-L$libdir'
9501             hardcode_minus_L=yes
9502         ;;
9503       esac
9504       ;;
9505
9506     beos*)
9507       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508         allow_undefined_flag=unsupported
9509         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9510         # support --undefined.  This deserves some investigation.  FIXME
9511         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512       else
9513         ld_shlibs=no
9514       fi
9515       ;;
9516
9517     cygwin* | mingw* | pw32* | cegcc*)
9518       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9519       # as there is no search path for DLLs.
9520       hardcode_libdir_flag_spec='-L$libdir'
9521       allow_undefined_flag=unsupported
9522       always_export_symbols=no
9523       enable_shared_with_static_runtimes=yes
9524       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9525
9526       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9527         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9528         # If the export-symbols file already is a .def file (1st line
9529         # is EXPORTS), use it as is; otherwise, prepend...
9530         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531           cp $export_symbols $output_objdir/$soname.def;
9532         else
9533           echo EXPORTS > $output_objdir/$soname.def;
9534           cat $export_symbols >> $output_objdir/$soname.def;
9535         fi~
9536         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9537       else
9538         ld_shlibs=no
9539       fi
9540       ;;
9541
9542     interix[3-9]*)
9543       hardcode_direct=no
9544       hardcode_shlibpath_var=no
9545       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546       export_dynamic_flag_spec='${wl}-E'
9547       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9548       # Instead, shared libraries are loaded at an image base (0x10000000 by
9549       # default) and relocated if they conflict, which is a slow very memory
9550       # consuming and fragmenting process.  To avoid this, we pick a random,
9551       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9552       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9553       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9554       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'
9555       ;;
9556
9557     gnu* | linux* | tpf* | k*bsd*-gnu)
9558       tmp_diet=no
9559       if test "$host_os" = linux-dietlibc; then
9560         case $cc_basename in
9561           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9562         esac
9563       fi
9564       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9565          && test "$tmp_diet" = no
9566       then
9567         tmp_addflag=
9568         tmp_sharedflag='-shared'
9569         case $cc_basename,$host_cpu in
9570         pgcc*)                          # Portland Group C compiler
9571           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'
9572           tmp_addflag=' $pic_flag'
9573           ;;
9574         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9575           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'
9576           tmp_addflag=' $pic_flag -Mnomain' ;;
9577         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9578           tmp_addflag=' -i_dynamic' ;;
9579         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9580           tmp_addflag=' -i_dynamic -nofor_main' ;;
9581         ifc* | ifort*)                  # Intel Fortran compiler
9582           tmp_addflag=' -nofor_main' ;;
9583         lf95*)                          # Lahey Fortran 8.1
9584           whole_archive_flag_spec=
9585           tmp_sharedflag='--shared' ;;
9586         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9587           tmp_sharedflag='-qmkshrobj'
9588           tmp_addflag= ;;
9589         esac
9590         case `$CC -V 2>&1 | sed 5q` in
9591         *Sun\ C*)                       # Sun C 5.9
9592           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'
9593           compiler_needs_object=yes
9594           tmp_sharedflag='-G' ;;
9595         *Sun\ F*)                       # Sun Fortran 8.3
9596           tmp_sharedflag='-G' ;;
9597         esac
9598         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599
9600         if test "x$supports_anon_versioning" = xyes; then
9601           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9602             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9603             echo "local: *; };" >> $output_objdir/$libname.ver~
9604             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9605         fi
9606
9607         case $cc_basename in
9608         xlf*)
9609           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9610           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9611           hardcode_libdir_flag_spec=
9612           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9613           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9614           if test "x$supports_anon_versioning" = xyes; then
9615             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9616               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9617               echo "local: *; };" >> $output_objdir/$libname.ver~
9618               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9619           fi
9620           ;;
9621         esac
9622       else
9623         ld_shlibs=no
9624       fi
9625       ;;
9626
9627     netbsd* | netbsdelf*-gnu)
9628       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9629         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9630         wlarc=
9631       else
9632         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9634       fi
9635       ;;
9636
9637     solaris*)
9638       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9639         ld_shlibs=no
9640         cat <<_LT_EOF 1>&2
9641
9642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9643 *** create shared libraries on Solaris systems.  Therefore, libtool
9644 *** is disabling shared libraries support.  We urge you to upgrade GNU
9645 *** binutils to release 2.9.1 or newer.  Another option is to modify
9646 *** your PATH or compiler configuration so that the native linker is
9647 *** used, and then restart.
9648
9649 _LT_EOF
9650       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9651         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653       else
9654         ld_shlibs=no
9655       fi
9656       ;;
9657
9658     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9659       case `$LD -v 2>&1` in
9660         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9661         ld_shlibs=no
9662         cat <<_LT_EOF 1>&2
9663
9664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9665 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9666 *** is disabling shared libraries support.  We urge you to upgrade GNU
9667 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9668 *** your PATH or compiler configuration so that the native linker is
9669 *** used, and then restart.
9670
9671 _LT_EOF
9672         ;;
9673         *)
9674           # For security reasons, it is highly recommended that you always
9675           # use absolute paths for naming shared libraries, and exclude the
9676           # DT_RUNPATH tag from executables and libraries.  But doing so
9677           # requires that you compile everything twice, which is a pain.
9678           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9679             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9682           else
9683             ld_shlibs=no
9684           fi
9685         ;;
9686       esac
9687       ;;
9688
9689     sunos4*)
9690       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9691       wlarc=
9692       hardcode_direct=yes
9693       hardcode_shlibpath_var=no
9694       ;;
9695
9696     *)
9697       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9698         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9700       else
9701         ld_shlibs=no
9702       fi
9703       ;;
9704     esac
9705
9706     if test "$ld_shlibs" = no; then
9707       runpath_var=
9708       hardcode_libdir_flag_spec=
9709       export_dynamic_flag_spec=
9710       whole_archive_flag_spec=
9711     fi
9712   else
9713     # PORTME fill in a description of your system's linker (not GNU ld)
9714     case $host_os in
9715     aix3*)
9716       allow_undefined_flag=unsupported
9717       always_export_symbols=yes
9718       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'
9719       # Note: this linker hardcodes the directories in LIBPATH if there
9720       # are no directories specified by -L.
9721       hardcode_minus_L=yes
9722       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9723         # Neither direct hardcoding nor static linking is supported with a
9724         # broken collect2.
9725         hardcode_direct=unsupported
9726       fi
9727       ;;
9728
9729     aix[4-9]*)
9730       if test "$host_cpu" = ia64; then
9731         # On IA64, the linker does run time linking by default, so we don't
9732         # have to do anything special.
9733         aix_use_runtimelinking=no
9734         exp_sym_flag='-Bexport'
9735         no_entry_flag=""
9736       else
9737         # If we're using GNU nm, then we don't want the "-C" option.
9738         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9739         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9740           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'
9741         else
9742           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'
9743         fi
9744         aix_use_runtimelinking=no
9745
9746         # Test if we are trying to use run time linking or normal
9747         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9748         # need to do runtime linking.
9749         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9750           for ld_flag in $LDFLAGS; do
9751           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9752             aix_use_runtimelinking=yes
9753             break
9754           fi
9755           done
9756           ;;
9757         esac
9758
9759         exp_sym_flag='-bexport'
9760         no_entry_flag='-bnoentry'
9761       fi
9762
9763       # When large executables or shared objects are built, AIX ld can
9764       # have problems creating the table of contents.  If linking a library
9765       # or program results in "error TOC overflow" add -mminimal-toc to
9766       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9767       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9768
9769       archive_cmds=''
9770       hardcode_direct=yes
9771       hardcode_direct_absolute=yes
9772       hardcode_libdir_separator=':'
9773       link_all_deplibs=yes
9774       file_list_spec='${wl}-f,'
9775
9776       if test "$GCC" = yes; then
9777         case $host_os in aix4.[012]|aix4.[012].*)
9778         # We only want to do this on AIX 4.2 and lower, the check
9779         # below for broken collect2 doesn't work under 4.3+
9780           collect2name=`${CC} -print-prog-name=collect2`
9781           if test -f "$collect2name" &&
9782            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9783           then
9784           # We have reworked collect2
9785           :
9786           else
9787           # We have old collect2
9788           hardcode_direct=unsupported
9789           # It fails to find uninstalled libraries when the uninstalled
9790           # path is not listed in the libpath.  Setting hardcode_minus_L
9791           # to unsupported forces relinking
9792           hardcode_minus_L=yes
9793           hardcode_libdir_flag_spec='-L$libdir'
9794           hardcode_libdir_separator=
9795           fi
9796           ;;
9797         esac
9798         shared_flag='-shared'
9799         if test "$aix_use_runtimelinking" = yes; then
9800           shared_flag="$shared_flag "'${wl}-G'
9801         fi
9802         link_all_deplibs=no
9803       else
9804         # not using gcc
9805         if test "$host_cpu" = ia64; then
9806         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9807         # chokes on -Wl,-G. The following line is correct:
9808           shared_flag='-G'
9809         else
9810           if test "$aix_use_runtimelinking" = yes; then
9811             shared_flag='${wl}-G'
9812           else
9813             shared_flag='${wl}-bM:SRE'
9814           fi
9815         fi
9816       fi
9817
9818       export_dynamic_flag_spec='${wl}-bexpall'
9819       # It seems that -bexpall does not export symbols beginning with
9820       # underscore (_), so it is better to generate a list of symbols to export.
9821       always_export_symbols=yes
9822       if test "$aix_use_runtimelinking" = yes; then
9823         # Warning - without using the other runtime loading flags (-brtl),
9824         # -berok will link without error, but may produce a broken library.
9825         allow_undefined_flag='-berok'
9826         # Determine the default libpath from the value encoded in an
9827         # empty executable.
9828         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h.  */
9830
9831 int
9832 main ()
9833 {
9834
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840
9841 lt_aix_libpath_sed='
9842     /Import File Strings/,/^$/ {
9843         /^0/ {
9844             s/^0  *\(.*\)$/\1/
9845             p
9846         }
9847     }'
9848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849 # Check for a 64-bit object if we didn't find anything.
9850 if test -z "$aix_libpath"; then
9851   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 fi
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855     conftest$ac_exeext conftest.$ac_ext
9856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9857
9858         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9859         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"
9860       else
9861         if test "$host_cpu" = ia64; then
9862           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9863           allow_undefined_flag="-z nodefs"
9864           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"
9865         else
9866          # Determine the default libpath from the value encoded in an
9867          # empty executable.
9868          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h.  */
9870
9871 int
9872 main ()
9873 {
9874
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 if ac_fn_c_try_link "$LINENO"; then :
9880
9881 lt_aix_libpath_sed='
9882     /Import File Strings/,/^$/ {
9883         /^0/ {
9884             s/^0  *\(.*\)$/\1/
9885             p
9886         }
9887     }'
9888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9889 # Check for a 64-bit object if we didn't find anything.
9890 if test -z "$aix_libpath"; then
9891   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 fi
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext \
9895     conftest$ac_exeext conftest.$ac_ext
9896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9897
9898          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9899           # Warning - without using the other run time loading flags,
9900           # -berok will link without error, but may produce a broken library.
9901           no_undefined_flag=' ${wl}-bernotok'
9902           allow_undefined_flag=' ${wl}-berok'
9903           # Exported symbols can be pulled into shared objects from archives
9904           whole_archive_flag_spec='$convenience'
9905           archive_cmds_need_lc=yes
9906           # This is similar to how AIX traditionally builds its shared libraries.
9907           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'
9908         fi
9909       fi
9910       ;;
9911
9912     amigaos*)
9913       case $host_cpu in
9914       powerpc)
9915             # see comment about AmigaOS4 .so support
9916             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917             archive_expsym_cmds=''
9918         ;;
9919       m68k)
9920             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)'
9921             hardcode_libdir_flag_spec='-L$libdir'
9922             hardcode_minus_L=yes
9923         ;;
9924       esac
9925       ;;
9926
9927     bsdi[45]*)
9928       export_dynamic_flag_spec=-rdynamic
9929       ;;
9930
9931     cygwin* | mingw* | pw32* | cegcc*)
9932       # When not using gcc, we currently assume that we are using
9933       # Microsoft Visual C++.
9934       # hardcode_libdir_flag_spec is actually meaningless, as there is
9935       # no search path for DLLs.
9936       hardcode_libdir_flag_spec=' '
9937       allow_undefined_flag=unsupported
9938       # Tell ltmain to make .lib files, not .a files.
9939       libext=lib
9940       # Tell ltmain to make .dll files, not .so files.
9941       shrext_cmds=".dll"
9942       # FIXME: Setting linknames here is a bad hack.
9943       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9944       # The linker will automatically build a .lib file if we build a DLL.
9945       old_archive_from_new_cmds='true'
9946       # FIXME: Should let the user specify the lib program.
9947       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9948       fix_srcfile_path='`cygpath -w "$srcfile"`'
9949       enable_shared_with_static_runtimes=yes
9950       ;;
9951
9952     darwin* | rhapsody*)
9953
9954
9955   archive_cmds_need_lc=no
9956   hardcode_direct=no
9957   hardcode_automatic=yes
9958   hardcode_shlibpath_var=unsupported
9959   whole_archive_flag_spec=''
9960   link_all_deplibs=yes
9961   allow_undefined_flag="$_lt_dar_allow_undefined"
9962   case $cc_basename in
9963      ifort*) _lt_dar_can_shared=yes ;;
9964      *) _lt_dar_can_shared=$GCC ;;
9965   esac
9966   if test "$_lt_dar_can_shared" = "yes"; then
9967     output_verbose_link_cmd=echo
9968     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9969     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9970     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}"
9971     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}"
9972
9973   else
9974   ld_shlibs=no
9975   fi
9976
9977       ;;
9978
9979     dgux*)
9980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981       hardcode_libdir_flag_spec='-L$libdir'
9982       hardcode_shlibpath_var=no
9983       ;;
9984
9985     freebsd1*)
9986       ld_shlibs=no
9987       ;;
9988
9989     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9990     # support.  Future versions do this automatically, but an explicit c++rt0.o
9991     # does not break anything, and helps significantly (at the cost of a little
9992     # extra space).
9993     freebsd2.2*)
9994       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9995       hardcode_libdir_flag_spec='-R$libdir'
9996       hardcode_direct=yes
9997       hardcode_shlibpath_var=no
9998       ;;
9999
10000     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10001     freebsd2*)
10002       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10003       hardcode_direct=yes
10004       hardcode_minus_L=yes
10005       hardcode_shlibpath_var=no
10006       ;;
10007
10008     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10009     freebsd* | dragonfly*)
10010       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10011       hardcode_libdir_flag_spec='-R$libdir'
10012       hardcode_direct=yes
10013       hardcode_shlibpath_var=no
10014       ;;
10015
10016     hpux9*)
10017       if test "$GCC" = yes; then
10018         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'
10019       else
10020         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'
10021       fi
10022       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10023       hardcode_libdir_separator=:
10024       hardcode_direct=yes
10025
10026       # hardcode_minus_L: Not really in the search PATH,
10027       # but as the default location of the library.
10028       hardcode_minus_L=yes
10029       export_dynamic_flag_spec='${wl}-E'
10030       ;;
10031
10032     hpux10*)
10033       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10034         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10035       else
10036         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10037       fi
10038       if test "$with_gnu_ld" = no; then
10039         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10040         hardcode_libdir_flag_spec_ld='+b $libdir'
10041         hardcode_libdir_separator=:
10042         hardcode_direct=yes
10043         hardcode_direct_absolute=yes
10044         export_dynamic_flag_spec='${wl}-E'
10045         # hardcode_minus_L: Not really in the search PATH,
10046         # but as the default location of the library.
10047         hardcode_minus_L=yes
10048       fi
10049       ;;
10050
10051     hpux11*)
10052       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10053         case $host_cpu in
10054         hppa*64*)
10055           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056           ;;
10057         ia64*)
10058           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10059           ;;
10060         *)
10061           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10062           ;;
10063         esac
10064       else
10065         case $host_cpu in
10066         hppa*64*)
10067           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068           ;;
10069         ia64*)
10070           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10071           ;;
10072         *)
10073           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10074           ;;
10075         esac
10076       fi
10077       if test "$with_gnu_ld" = no; then
10078         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10079         hardcode_libdir_separator=:
10080
10081         case $host_cpu in
10082         hppa*64*|ia64*)
10083           hardcode_direct=no
10084           hardcode_shlibpath_var=no
10085           ;;
10086         *)
10087           hardcode_direct=yes
10088           hardcode_direct_absolute=yes
10089           export_dynamic_flag_spec='${wl}-E'
10090
10091           # hardcode_minus_L: Not really in the search PATH,
10092           # but as the default location of the library.
10093           hardcode_minus_L=yes
10094           ;;
10095         esac
10096       fi
10097       ;;
10098
10099     irix5* | irix6* | nonstopux*)
10100       if test "$GCC" = yes; then
10101         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'
10102         # Try to use the -exported_symbol ld option, if it does not
10103         # work, assume that -exports_file does not work either and
10104         # implicitly export all symbols.
10105         save_LDFLAGS="$LDFLAGS"
10106         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10107         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h.  */
10109 int foo(void) {}
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112   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'
10113
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext \
10116     conftest$ac_exeext conftest.$ac_ext
10117         LDFLAGS="$save_LDFLAGS"
10118       else
10119         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'
10120         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'
10121       fi
10122       archive_cmds_need_lc='no'
10123       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124       hardcode_libdir_separator=:
10125       inherit_rpath=yes
10126       link_all_deplibs=yes
10127       ;;
10128
10129     netbsd* | netbsdelf*-gnu)
10130       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10131         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10132       else
10133         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10134       fi
10135       hardcode_libdir_flag_spec='-R$libdir'
10136       hardcode_direct=yes
10137       hardcode_shlibpath_var=no
10138       ;;
10139
10140     newsos6)
10141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142       hardcode_direct=yes
10143       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144       hardcode_libdir_separator=:
10145       hardcode_shlibpath_var=no
10146       ;;
10147
10148     *nto* | *qnx*)
10149       ;;
10150
10151     openbsd*)
10152       if test -f /usr/libexec/ld.so; then
10153         hardcode_direct=yes
10154         hardcode_shlibpath_var=no
10155         hardcode_direct_absolute=yes
10156         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10157           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10158           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10159           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10160           export_dynamic_flag_spec='${wl}-E'
10161         else
10162           case $host_os in
10163            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10164              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10165              hardcode_libdir_flag_spec='-R$libdir'
10166              ;;
10167            *)
10168              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10169              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10170              ;;
10171           esac
10172         fi
10173       else
10174         ld_shlibs=no
10175       fi
10176       ;;
10177
10178     os2*)
10179       hardcode_libdir_flag_spec='-L$libdir'
10180       hardcode_minus_L=yes
10181       allow_undefined_flag=unsupported
10182       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'
10183       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10184       ;;
10185
10186     osf3*)
10187       if test "$GCC" = yes; then
10188         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10189         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'
10190       else
10191         allow_undefined_flag=' -expect_unresolved \*'
10192         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'
10193       fi
10194       archive_cmds_need_lc='no'
10195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196       hardcode_libdir_separator=:
10197       ;;
10198
10199     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10200       if test "$GCC" = yes; then
10201         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10202         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'
10203         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10204       else
10205         allow_undefined_flag=' -expect_unresolved \*'
10206         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'
10207         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~
10208         $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'
10209
10210         # Both c and cxx compiler support -rpath directly
10211         hardcode_libdir_flag_spec='-rpath $libdir'
10212       fi
10213       archive_cmds_need_lc='no'
10214       hardcode_libdir_separator=:
10215       ;;
10216
10217     solaris*)
10218       no_undefined_flag=' -z defs'
10219       if test "$GCC" = yes; then
10220         wlarc='${wl}'
10221         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10222         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10223           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10224       else
10225         case `$CC -V 2>&1` in
10226         *"Compilers 5.0"*)
10227           wlarc=''
10228           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10230           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10231           ;;
10232         *)
10233           wlarc='${wl}'
10234           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10235           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10236           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10237           ;;
10238         esac
10239       fi
10240       hardcode_libdir_flag_spec='-R$libdir'
10241       hardcode_shlibpath_var=no
10242       case $host_os in
10243       solaris2.[0-5] | solaris2.[0-5].*) ;;
10244       *)
10245         # The compiler driver will combine and reorder linker options,
10246         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10247         # but is careful enough not to reorder.
10248         # Supported since Solaris 2.6 (maybe 2.5.1?)
10249         if test "$GCC" = yes; then
10250           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10251         else
10252           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10253         fi
10254         ;;
10255       esac
10256       link_all_deplibs=yes
10257       ;;
10258
10259     sunos4*)
10260       if test "x$host_vendor" = xsequent; then
10261         # Use $CC to link under sequent, because it throws in some extra .o
10262         # files that make .init and .fini sections work.
10263         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10264       else
10265         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10266       fi
10267       hardcode_libdir_flag_spec='-L$libdir'
10268       hardcode_direct=yes
10269       hardcode_minus_L=yes
10270       hardcode_shlibpath_var=no
10271       ;;
10272
10273     sysv4)
10274       case $host_vendor in
10275         sni)
10276           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277           hardcode_direct=yes # is this really true???
10278         ;;
10279         siemens)
10280           ## LD is ld it makes a PLAMLIB
10281           ## CC just makes a GrossModule.
10282           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10283           reload_cmds='$CC -r -o $output$reload_objs'
10284           hardcode_direct=no
10285         ;;
10286         motorola)
10287           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10289         ;;
10290       esac
10291       runpath_var='LD_RUN_PATH'
10292       hardcode_shlibpath_var=no
10293       ;;
10294
10295     sysv4.3*)
10296       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297       hardcode_shlibpath_var=no
10298       export_dynamic_flag_spec='-Bexport'
10299       ;;
10300
10301     sysv4*MP*)
10302       if test -d /usr/nec; then
10303         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304         hardcode_shlibpath_var=no
10305         runpath_var=LD_RUN_PATH
10306         hardcode_runpath_var=yes
10307         ld_shlibs=yes
10308       fi
10309       ;;
10310
10311     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10312       no_undefined_flag='${wl}-z,text'
10313       archive_cmds_need_lc=no
10314       hardcode_shlibpath_var=no
10315       runpath_var='LD_RUN_PATH'
10316
10317       if test "$GCC" = yes; then
10318         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320       else
10321         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323       fi
10324       ;;
10325
10326     sysv5* | sco3.2v5* | sco5v6*)
10327       # Note: We can NOT use -z defs as we might desire, because we do not
10328       # link with -lc, and that would cause any symbols used from libc to
10329       # always be unresolved, which means just about no library would
10330       # ever link correctly.  If we're not using GNU ld we use -z text
10331       # though, which does catch some bad symbols but isn't as heavy-handed
10332       # as -z defs.
10333       no_undefined_flag='${wl}-z,text'
10334       allow_undefined_flag='${wl}-z,nodefs'
10335       archive_cmds_need_lc=no
10336       hardcode_shlibpath_var=no
10337       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10338       hardcode_libdir_separator=':'
10339       link_all_deplibs=yes
10340       export_dynamic_flag_spec='${wl}-Bexport'
10341       runpath_var='LD_RUN_PATH'
10342
10343       if test "$GCC" = yes; then
10344         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346       else
10347         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349       fi
10350       ;;
10351
10352     uts4*)
10353       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354       hardcode_libdir_flag_spec='-L$libdir'
10355       hardcode_shlibpath_var=no
10356       ;;
10357
10358     *)
10359       ld_shlibs=no
10360       ;;
10361     esac
10362
10363     if test x$host_vendor = xsni; then
10364       case $host in
10365       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10366         export_dynamic_flag_spec='${wl}-Blargedynsym'
10367         ;;
10368       esac
10369     fi
10370   fi
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10373 $as_echo "$ld_shlibs" >&6; }
10374 test "$ld_shlibs" = no && can_build_shared=no
10375
10376 with_gnu_ld=$with_gnu_ld
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 #
10393 # Do we need to explicitly link libc?
10394 #
10395 case "x$archive_cmds_need_lc" in
10396 x|xyes)
10397   # Assume -lc should be added
10398   archive_cmds_need_lc=yes
10399
10400   if test "$enable_shared" = yes && test "$GCC" = yes; then
10401     case $archive_cmds in
10402     *'~'*)
10403       # FIXME: we may have to deal with multi-command sequences.
10404       ;;
10405     '$CC '*)
10406       # Test whether the compiler implicitly links with -lc since on some
10407       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10408       # to ld, don't add -lc before -lgcc.
10409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10410 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10411       $RM conftest*
10412       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10413
10414       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10415   (eval $ac_compile) 2>&5
10416   ac_status=$?
10417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418   test $ac_status = 0; } 2>conftest.err; then
10419         soname=conftest
10420         lib=conftest
10421         libobjs=conftest.$ac_objext
10422         deplibs=
10423         wl=$lt_prog_compiler_wl
10424         pic_flag=$lt_prog_compiler_pic
10425         compiler_flags=-v
10426         linker_flags=-v
10427         verstring=
10428         output_objdir=.
10429         libname=conftest
10430         lt_save_allow_undefined_flag=$allow_undefined_flag
10431         allow_undefined_flag=
10432         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10433   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10434   ac_status=$?
10435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436   test $ac_status = 0; }
10437         then
10438           archive_cmds_need_lc=no
10439         else
10440           archive_cmds_need_lc=yes
10441         fi
10442         allow_undefined_flag=$lt_save_allow_undefined_flag
10443       else
10444         cat conftest.err 1>&5
10445       fi
10446       $RM conftest*
10447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10448 $as_echo "$archive_cmds_need_lc" >&6; }
10449       ;;
10450     esac
10451   fi
10452   ;;
10453 esac
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10613
10614 if test "$GCC" = yes; then
10615   case $host_os in
10616     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10617     *) lt_awk_arg="/^libraries:/" ;;
10618   esac
10619   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10620   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10621     # if the path contains ";" then we assume it to be the separator
10622     # otherwise default to the standard path separator (i.e. ":") - it is
10623     # assumed that no part of a normal pathname contains ";" but that should
10624     # okay in the real world where ";" in dirpaths is itself problematic.
10625     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10626   else
10627     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10628   fi
10629   # Ok, now we have the path, separated by spaces, we can step through it
10630   # and add multilib dir if necessary.
10631   lt_tmp_lt_search_path_spec=
10632   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10633   for lt_sys_path in $lt_search_path_spec; do
10634     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10635       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10636     else
10637       test -d "$lt_sys_path" && \
10638         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10639     fi
10640   done
10641   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10642 BEGIN {RS=" "; FS="/|\n";} {
10643   lt_foo="";
10644   lt_count=0;
10645   for (lt_i = NF; lt_i > 0; lt_i--) {
10646     if ($lt_i != "" && $lt_i != ".") {
10647       if ($lt_i == "..") {
10648         lt_count++;
10649       } else {
10650         if (lt_count == 0) {
10651           lt_foo="/" $lt_i lt_foo;
10652         } else {
10653           lt_count--;
10654         }
10655       }
10656     }
10657   }
10658   if (lt_foo != "") { lt_freq[lt_foo]++; }
10659   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10660 }'`
10661   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10662 else
10663   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10664 fi
10665 library_names_spec=
10666 libname_spec='lib$name'
10667 soname_spec=
10668 shrext_cmds=".so"
10669 postinstall_cmds=
10670 postuninstall_cmds=
10671 finish_cmds=
10672 finish_eval=
10673 shlibpath_var=
10674 shlibpath_overrides_runpath=unknown
10675 version_type=none
10676 dynamic_linker="$host_os ld.so"
10677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10678 need_lib_prefix=unknown
10679 hardcode_into_libs=no
10680
10681 # when you set need_version to no, make sure it does not cause -set_version
10682 # flags to be left without arguments
10683 need_version=unknown
10684
10685 case $host_os in
10686 aix3*)
10687   version_type=linux
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10689   shlibpath_var=LIBPATH
10690
10691   # AIX 3 has no versioning support, so we append a major version to the name.
10692   soname_spec='${libname}${release}${shared_ext}$major'
10693   ;;
10694
10695 aix[4-9]*)
10696   version_type=linux
10697   need_lib_prefix=no
10698   need_version=no
10699   hardcode_into_libs=yes
10700   if test "$host_cpu" = ia64; then
10701     # AIX 5 supports IA64
10702     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10703     shlibpath_var=LD_LIBRARY_PATH
10704   else
10705     # With GCC up to 2.95.x, collect2 would create an import file
10706     # for dependence libraries.  The import file would start with
10707     # the line `#! .'.  This would cause the generated library to
10708     # depend on `.', always an invalid library.  This was fixed in
10709     # development snapshots of GCC prior to 3.0.
10710     case $host_os in
10711       aix4 | aix4.[01] | aix4.[01].*)
10712       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10713            echo ' yes '
10714            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10715         :
10716       else
10717         can_build_shared=no
10718       fi
10719       ;;
10720     esac
10721     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10722     # soname into executable. Probably we can add versioning support to
10723     # collect2, so additional links can be useful in future.
10724     if test "$aix_use_runtimelinking" = yes; then
10725       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10726       # instead of lib<name>.a to let people know that these are not
10727       # typical AIX shared libraries.
10728       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729     else
10730       # We preserve .a as extension for shared libraries through AIX4.2
10731       # and later when we are not doing run time linking.
10732       library_names_spec='${libname}${release}.a $libname.a'
10733       soname_spec='${libname}${release}${shared_ext}$major'
10734     fi
10735     shlibpath_var=LIBPATH
10736   fi
10737   ;;
10738
10739 amigaos*)
10740   case $host_cpu in
10741   powerpc)
10742     # Since July 2007 AmigaOS4 officially supports .so libraries.
10743     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745     ;;
10746   m68k)
10747     library_names_spec='$libname.ixlibrary $libname.a'
10748     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10749     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'
10750     ;;
10751   esac
10752   ;;
10753
10754 beos*)
10755   library_names_spec='${libname}${shared_ext}'
10756   dynamic_linker="$host_os ld.so"
10757   shlibpath_var=LIBRARY_PATH
10758   ;;
10759
10760 bsdi[45]*)
10761   version_type=linux
10762   need_version=no
10763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764   soname_spec='${libname}${release}${shared_ext}$major'
10765   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10766   shlibpath_var=LD_LIBRARY_PATH
10767   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10768   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10769   # the default ld.so.conf also contains /usr/contrib/lib and
10770   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10771   # libtool to hard-code these into programs
10772   ;;
10773
10774 cygwin* | mingw* | pw32* | cegcc*)
10775   version_type=windows
10776   shrext_cmds=".dll"
10777   need_version=no
10778   need_lib_prefix=no
10779
10780   case $GCC,$host_os in
10781   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10782     library_names_spec='$libname.dll.a'
10783     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10784     postinstall_cmds='base_file=`basename \${file}`~
10785       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10786       dldir=$destdir/`dirname \$dlpath`~
10787       test -d \$dldir || mkdir -p \$dldir~
10788       $install_prog $dir/$dlname \$dldir/$dlname~
10789       chmod a+x \$dldir/$dlname~
10790       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10791         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10792       fi'
10793     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10794       dlpath=$dir/\$dldll~
10795        $RM \$dlpath'
10796     shlibpath_overrides_runpath=yes
10797
10798     case $host_os in
10799     cygwin*)
10800       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10801       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10802       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10803       ;;
10804     mingw* | cegcc*)
10805       # MinGW DLLs use traditional 'lib' prefix
10806       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10807       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10808       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10809         # It is most probably a Windows format PATH printed by
10810         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10811         # path with ; separators, and with drive letters. We can handle the
10812         # drive letters (cygwin fileutils understands them), so leave them,
10813         # especially as we might pass files found there to a mingw objdump,
10814         # which wouldn't understand a cygwinified path. Ahh.
10815         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10816       else
10817         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10818       fi
10819       ;;
10820     pw32*)
10821       # pw32 DLLs use 'pw' prefix rather than 'lib'
10822       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823       ;;
10824     esac
10825     ;;
10826
10827   *)
10828     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10829     ;;
10830   esac
10831   dynamic_linker='Win32 ld.exe'
10832   # FIXME: first we should search . and the directory the executable is in
10833   shlibpath_var=PATH
10834   ;;
10835
10836 darwin* | rhapsody*)
10837   dynamic_linker="$host_os dyld"
10838   version_type=darwin
10839   need_lib_prefix=no
10840   need_version=no
10841   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842   soname_spec='${libname}${release}${major}$shared_ext'
10843   shlibpath_overrides_runpath=yes
10844   shlibpath_var=DYLD_LIBRARY_PATH
10845   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10846
10847   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10849   ;;
10850
10851 dgux*)
10852   version_type=linux
10853   need_lib_prefix=no
10854   need_version=no
10855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856   soname_spec='${libname}${release}${shared_ext}$major'
10857   shlibpath_var=LD_LIBRARY_PATH
10858   ;;
10859
10860 freebsd1*)
10861   dynamic_linker=no
10862   ;;
10863
10864 freebsd* | dragonfly*)
10865   # DragonFly does not have aout.  When/if they implement a new
10866   # versioning mechanism, adjust this.
10867   if test -x /usr/bin/objformat; then
10868     objformat=`/usr/bin/objformat`
10869   else
10870     case $host_os in
10871     freebsd[123]*) objformat=aout ;;
10872     *) objformat=elf ;;
10873     esac
10874   fi
10875   version_type=freebsd-$objformat
10876   case $version_type in
10877     freebsd-elf*)
10878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879       need_version=no
10880       need_lib_prefix=no
10881       ;;
10882     freebsd-*)
10883       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884       need_version=yes
10885       ;;
10886   esac
10887   shlibpath_var=LD_LIBRARY_PATH
10888   case $host_os in
10889   freebsd2*)
10890     shlibpath_overrides_runpath=yes
10891     ;;
10892   freebsd3.[01]* | freebsdelf3.[01]*)
10893     shlibpath_overrides_runpath=yes
10894     hardcode_into_libs=yes
10895     ;;
10896   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898     shlibpath_overrides_runpath=no
10899     hardcode_into_libs=yes
10900     ;;
10901   *) # from 4.6 on, and DragonFly
10902     shlibpath_overrides_runpath=yes
10903     hardcode_into_libs=yes
10904     ;;
10905   esac
10906   ;;
10907
10908 gnu*)
10909   version_type=linux
10910   need_lib_prefix=no
10911   need_version=no
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913   soname_spec='${libname}${release}${shared_ext}$major'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   hardcode_into_libs=yes
10916   ;;
10917
10918 hpux9* | hpux10* | hpux11*)
10919   # Give a soname corresponding to the major version so that dld.sl refuses to
10920   # link against other versions.
10921   version_type=sunos
10922   need_lib_prefix=no
10923   need_version=no
10924   case $host_cpu in
10925   ia64*)
10926     shrext_cmds='.so'
10927     hardcode_into_libs=yes
10928     dynamic_linker="$host_os dld.so"
10929     shlibpath_var=LD_LIBRARY_PATH
10930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932     soname_spec='${libname}${release}${shared_ext}$major'
10933     if test "X$HPUX_IA64_MODE" = X32; then
10934       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10935     else
10936       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10937     fi
10938     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10939     ;;
10940   hppa*64*)
10941     shrext_cmds='.sl'
10942     hardcode_into_libs=yes
10943     dynamic_linker="$host_os dld.sl"
10944     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947     soname_spec='${libname}${release}${shared_ext}$major'
10948     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10950     ;;
10951   *)
10952     shrext_cmds='.sl'
10953     dynamic_linker="$host_os dld.sl"
10954     shlibpath_var=SHLIB_PATH
10955     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957     soname_spec='${libname}${release}${shared_ext}$major'
10958     ;;
10959   esac
10960   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10961   postinstall_cmds='chmod 555 $lib'
10962   ;;
10963
10964 interix[3-9]*)
10965   version_type=linux
10966   need_lib_prefix=no
10967   need_version=no
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10971   shlibpath_var=LD_LIBRARY_PATH
10972   shlibpath_overrides_runpath=no
10973   hardcode_into_libs=yes
10974   ;;
10975
10976 irix5* | irix6* | nonstopux*)
10977   case $host_os in
10978     nonstopux*) version_type=nonstopux ;;
10979     *)
10980         if test "$lt_cv_prog_gnu_ld" = yes; then
10981                 version_type=linux
10982         else
10983                 version_type=irix
10984         fi ;;
10985   esac
10986   need_lib_prefix=no
10987   need_version=no
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10990   case $host_os in
10991   irix5* | nonstopux*)
10992     libsuff= shlibsuff=
10993     ;;
10994   *)
10995     case $LD in # libtool.m4 will add one of these switches to LD
10996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10997       libsuff= shlibsuff= libmagic=32-bit;;
10998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10999       libsuff=32 shlibsuff=N32 libmagic=N32;;
11000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11002     *) libsuff= shlibsuff= libmagic=never-match;;
11003     esac
11004     ;;
11005   esac
11006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11007   shlibpath_overrides_runpath=no
11008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 # No shared lib support for Linux oldld, aout, or coff.
11014 linux*oldld* | linux*aout* | linux*coff*)
11015   dynamic_linker=no
11016   ;;
11017
11018 # This must be Linux ELF.
11019 linux* | k*bsd*-gnu)
11020   version_type=linux
11021   need_lib_prefix=no
11022   need_version=no
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024   soname_spec='${libname}${release}${shared_ext}$major'
11025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=no
11028   # Some binutils ld are patched to set DT_RUNPATH
11029   save_LDFLAGS=$LDFLAGS
11030   save_libdir=$libdir
11031   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11032        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h.  */
11035
11036 int
11037 main ()
11038 {
11039
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"; then :
11045   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11046   shlibpath_overrides_runpath=yes
11047 fi
11048 fi
11049 rm -f core conftest.err conftest.$ac_objext \
11050     conftest$ac_exeext conftest.$ac_ext
11051   LDFLAGS=$save_LDFLAGS
11052   libdir=$save_libdir
11053
11054   # This implies no fast_install, which is unacceptable.
11055   # Some rework will be needed to allow for fast_install
11056   # before this can be enabled.
11057   hardcode_into_libs=yes
11058
11059   # Append ld.so.conf contents to the search path
11060   if test -f /etc/ld.so.conf; then
11061     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' ' '`
11062     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11063   fi
11064
11065   # We used to test for /lib/ld.so.1 and disable shared libraries on
11066   # powerpc, because MkLinux only supported shared libraries with the
11067   # GNU dynamic linker.  Since this was broken with cross compilers,
11068   # most powerpc-linux boxes support dynamic linking these days and
11069   # people can always --disable-shared, the test was removed, and we
11070   # assume the GNU/Linux dynamic linker is in use.
11071   dynamic_linker='GNU/Linux ld.so'
11072   ;;
11073
11074 netbsdelf*-gnu)
11075   version_type=linux
11076   need_lib_prefix=no
11077   need_version=no
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11079   soname_spec='${libname}${release}${shared_ext}$major'
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=no
11082   hardcode_into_libs=yes
11083   dynamic_linker='NetBSD ld.elf_so'
11084   ;;
11085
11086 netbsd*)
11087   version_type=sunos
11088   need_lib_prefix=no
11089   need_version=no
11090   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11093     dynamic_linker='NetBSD (a.out) ld.so'
11094   else
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     dynamic_linker='NetBSD ld.elf_so'
11098   fi
11099   shlibpath_var=LD_LIBRARY_PATH
11100   shlibpath_overrides_runpath=yes
11101   hardcode_into_libs=yes
11102   ;;
11103
11104 newsos6)
11105   version_type=linux
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=yes
11109   ;;
11110
11111 *nto* | *qnx*)
11112   version_type=qnx
11113   need_lib_prefix=no
11114   need_version=no
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   shlibpath_overrides_runpath=no
11119   hardcode_into_libs=yes
11120   dynamic_linker='ldqnx.so'
11121   ;;
11122
11123 openbsd*)
11124   version_type=sunos
11125   sys_lib_dlsearch_path_spec="/usr/lib"
11126   need_lib_prefix=no
11127   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11128   case $host_os in
11129     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11130     *)                          need_version=no  ;;
11131   esac
11132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134   shlibpath_var=LD_LIBRARY_PATH
11135   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11136     case $host_os in
11137       openbsd2.[89] | openbsd2.[89].*)
11138         shlibpath_overrides_runpath=no
11139         ;;
11140       *)
11141         shlibpath_overrides_runpath=yes
11142         ;;
11143       esac
11144   else
11145     shlibpath_overrides_runpath=yes
11146   fi
11147   ;;
11148
11149 os2*)
11150   libname_spec='$name'
11151   shrext_cmds=".dll"
11152   need_lib_prefix=no
11153   library_names_spec='$libname${shared_ext} $libname.a'
11154   dynamic_linker='OS/2 ld.exe'
11155   shlibpath_var=LIBPATH
11156   ;;
11157
11158 osf3* | osf4* | osf5*)
11159   version_type=osf
11160   need_lib_prefix=no
11161   need_version=no
11162   soname_spec='${libname}${release}${shared_ext}$major'
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11166   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11167   ;;
11168
11169 rdos*)
11170   dynamic_linker=no
11171   ;;
11172
11173 solaris*)
11174   version_type=linux
11175   need_lib_prefix=no
11176   need_version=no
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178   soname_spec='${libname}${release}${shared_ext}$major'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   shlibpath_overrides_runpath=yes
11181   hardcode_into_libs=yes
11182   # ldd complains unless libraries are executable
11183   postinstall_cmds='chmod +x $lib'
11184   ;;
11185
11186 sunos4*)
11187   version_type=sunos
11188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11190   shlibpath_var=LD_LIBRARY_PATH
11191   shlibpath_overrides_runpath=yes
11192   if test "$with_gnu_ld" = yes; then
11193     need_lib_prefix=no
11194   fi
11195   need_version=yes
11196   ;;
11197
11198 sysv4 | sysv4.3*)
11199   version_type=linux
11200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201   soname_spec='${libname}${release}${shared_ext}$major'
11202   shlibpath_var=LD_LIBRARY_PATH
11203   case $host_vendor in
11204     sni)
11205       shlibpath_overrides_runpath=no
11206       need_lib_prefix=no
11207       runpath_var=LD_RUN_PATH
11208       ;;
11209     siemens)
11210       need_lib_prefix=no
11211       ;;
11212     motorola)
11213       need_lib_prefix=no
11214       need_version=no
11215       shlibpath_overrides_runpath=no
11216       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11217       ;;
11218   esac
11219   ;;
11220
11221 sysv4*MP*)
11222   if test -d /usr/nec ;then
11223     version_type=linux
11224     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11225     soname_spec='$libname${shared_ext}.$major'
11226     shlibpath_var=LD_LIBRARY_PATH
11227   fi
11228   ;;
11229
11230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11231   version_type=freebsd-elf
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   shlibpath_overrides_runpath=yes
11238   hardcode_into_libs=yes
11239   if test "$with_gnu_ld" = yes; then
11240     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11241   else
11242     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11243     case $host_os in
11244       sco3.2v5*)
11245         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11246         ;;
11247     esac
11248   fi
11249   sys_lib_dlsearch_path_spec='/usr/lib'
11250   ;;
11251
11252 tpf*)
11253   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11254   version_type=linux
11255   need_lib_prefix=no
11256   need_version=no
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258   shlibpath_var=LD_LIBRARY_PATH
11259   shlibpath_overrides_runpath=no
11260   hardcode_into_libs=yes
11261   ;;
11262
11263 uts4*)
11264   version_type=linux
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266   soname_spec='${libname}${release}${shared_ext}$major'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   ;;
11269
11270 *)
11271   dynamic_linker=no
11272   ;;
11273 esac
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11275 $as_echo "$dynamic_linker" >&6; }
11276 test "$dynamic_linker" = no && can_build_shared=no
11277
11278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11279 if test "$GCC" = yes; then
11280   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11281 fi
11282
11283 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11284   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11285 fi
11286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11287   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11378 hardcode_action=
11379 if test -n "$hardcode_libdir_flag_spec" ||
11380    test -n "$runpath_var" ||
11381    test "X$hardcode_automatic" = "Xyes" ; then
11382
11383   # We can hardcode non-existent directories.
11384   if test "$hardcode_direct" != no &&
11385      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11386      # have to relink, otherwise we might link with an installed library
11387      # when we should be linking with a yet-to-be-installed one
11388      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11389      test "$hardcode_minus_L" != no; then
11390     # Linking always hardcodes the temporary library directory.
11391     hardcode_action=relink
11392   else
11393     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11394     hardcode_action=immediate
11395   fi
11396 else
11397   # We cannot hardcode anything, or else we can only hardcode existing
11398   # directories.
11399   hardcode_action=unsupported
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11402 $as_echo "$hardcode_action" >&6; }
11403
11404 if test "$hardcode_action" = relink ||
11405    test "$inherit_rpath" = yes; then
11406   # Fast installation is not supported
11407   enable_fast_install=no
11408 elif test "$shlibpath_overrides_runpath" = yes ||
11409      test "$enable_shared" = no; then
11410   # Fast installation is not necessary
11411   enable_fast_install=needless
11412 fi
11413
11414
11415
11416
11417
11418
11419   if test "x$enable_dlopen" != xyes; then
11420   enable_dlopen=unknown
11421   enable_dlopen_self=unknown
11422   enable_dlopen_self_static=unknown
11423 else
11424   lt_cv_dlopen=no
11425   lt_cv_dlopen_libs=
11426
11427   case $host_os in
11428   beos*)
11429     lt_cv_dlopen="load_add_on"
11430     lt_cv_dlopen_libs=
11431     lt_cv_dlopen_self=yes
11432     ;;
11433
11434   mingw* | pw32* | cegcc*)
11435     lt_cv_dlopen="LoadLibrary"
11436     lt_cv_dlopen_libs=
11437     ;;
11438
11439   cygwin*)
11440     lt_cv_dlopen="dlopen"
11441     lt_cv_dlopen_libs=
11442     ;;
11443
11444   darwin*)
11445   # if libdl is installed we need to link against it
11446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11449   $as_echo_n "(cached) " >&6
11450 else
11451   ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldl  $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h.  */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457    Use char because int might match the return type of a GCC
11458    builtin and then its argument prototype would still apply.  */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char dlopen ();
11463 int
11464 main ()
11465 {
11466 return dlopen ();
11467   ;
11468   return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472   ac_cv_lib_dl_dlopen=yes
11473 else
11474   ac_cv_lib_dl_dlopen=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477     conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11484 else
11485
11486     lt_cv_dlopen="dyld"
11487     lt_cv_dlopen_libs=
11488     lt_cv_dlopen_self=yes
11489
11490 fi
11491
11492     ;;
11493
11494   *)
11495     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11496 if test "x$ac_cv_func_shl_load" = x""yes; then :
11497   lt_cv_dlopen="shl_load"
11498 else
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11500 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11502   $as_echo_n "(cached) " >&6
11503 else
11504   ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-ldld  $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h.  */
11508
11509 /* Override any GCC internal prototype to avoid an error.
11510    Use char because int might match the return type of a GCC
11511    builtin and then its argument prototype would still apply.  */
11512 #ifdef __cplusplus
11513 extern "C"
11514 #endif
11515 char shl_load ();
11516 int
11517 main ()
11518 {
11519 return shl_load ();
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"; then :
11525   ac_cv_lib_dld_shl_load=yes
11526 else
11527   ac_cv_lib_dld_shl_load=no
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext \
11530     conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_lib_save_LIBS
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11536   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11537 else
11538   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11539 if test "x$ac_cv_func_dlopen" = x""yes; then :
11540   lt_cv_dlopen="dlopen"
11541 else
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11545   $as_echo_n "(cached) " >&6
11546 else
11547   ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldl  $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551
11552 /* Override any GCC internal prototype to avoid an error.
11553    Use char because int might match the return type of a GCC
11554    builtin and then its argument prototype would still apply.  */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char dlopen ();
11559 int
11560 main ()
11561 {
11562 return dlopen ();
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568   ac_cv_lib_dl_dlopen=yes
11569 else
11570   ac_cv_lib_dl_dlopen=no
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext \
11573     conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11578 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11582 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11584   $as_echo_n "(cached) " >&6
11585 else
11586   ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld  $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h.  */
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592    Use char because int might match the return type of a GCC
11593    builtin and then its argument prototype would still apply.  */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char dlopen ();
11598 int
11599 main ()
11600 {
11601 return dlopen ();
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607   ac_cv_lib_svld_dlopen=yes
11608 else
11609   ac_cv_lib_svld_dlopen=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext \
11612     conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11616 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11617 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11618   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11619 else
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11622 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11623   $as_echo_n "(cached) " >&6
11624 else
11625   ac_check_lib_save_LIBS=$LIBS
11626 LIBS="-ldld  $LIBS"
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h.  */
11629
11630 /* Override any GCC internal prototype to avoid an error.
11631    Use char because int might match the return type of a GCC
11632    builtin and then its argument prototype would still apply.  */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 char dld_link ();
11637 int
11638 main ()
11639 {
11640 return dld_link ();
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646   ac_cv_lib_dld_dld_link=yes
11647 else
11648   ac_cv_lib_dld_dld_link=no
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext \
11651     conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_lib_save_LIBS
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11655 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11656 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11657   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11658 fi
11659
11660
11661 fi
11662
11663
11664 fi
11665
11666
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675     ;;
11676   esac
11677
11678   if test "x$lt_cv_dlopen" != xno; then
11679     enable_dlopen=yes
11680   else
11681     enable_dlopen=no
11682   fi
11683
11684   case $lt_cv_dlopen in
11685   dlopen)
11686     save_CPPFLAGS="$CPPFLAGS"
11687     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11688
11689     save_LDFLAGS="$LDFLAGS"
11690     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11691
11692     save_LIBS="$LIBS"
11693     LIBS="$lt_cv_dlopen_libs $LIBS"
11694
11695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11696 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11697 if test "${lt_cv_dlopen_self+set}" = set; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700           if test "$cross_compiling" = yes; then :
11701   lt_cv_dlopen_self=cross
11702 else
11703   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11704   lt_status=$lt_dlunknown
11705   cat > conftest.$ac_ext <<_LT_EOF
11706 #line 11706 "configure"
11707 #include "confdefs.h"
11708
11709 #if HAVE_DLFCN_H
11710 #include <dlfcn.h>
11711 #endif
11712
11713 #include <stdio.h>
11714
11715 #ifdef RTLD_GLOBAL
11716 #  define LT_DLGLOBAL           RTLD_GLOBAL
11717 #else
11718 #  ifdef DL_GLOBAL
11719 #    define LT_DLGLOBAL         DL_GLOBAL
11720 #  else
11721 #    define LT_DLGLOBAL         0
11722 #  endif
11723 #endif
11724
11725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11726    find out it does not work in some platform. */
11727 #ifndef LT_DLLAZY_OR_NOW
11728 #  ifdef RTLD_LAZY
11729 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11730 #  else
11731 #    ifdef DL_LAZY
11732 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11733 #    else
11734 #      ifdef RTLD_NOW
11735 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11736 #      else
11737 #        ifdef DL_NOW
11738 #          define LT_DLLAZY_OR_NOW      DL_NOW
11739 #        else
11740 #          define LT_DLLAZY_OR_NOW      0
11741 #        endif
11742 #      endif
11743 #    endif
11744 #  endif
11745 #endif
11746
11747 void fnord() { int i=42;}
11748 int main ()
11749 {
11750   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11751   int status = $lt_dlunknown;
11752
11753   if (self)
11754     {
11755       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11756       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757       /* dlclose (self); */
11758     }
11759   else
11760     puts (dlerror ());
11761
11762   return status;
11763 }
11764 _LT_EOF
11765   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11766   (eval $ac_link) 2>&5
11767   ac_status=$?
11768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11770     (./conftest; exit; ) >&5 2>/dev/null
11771     lt_status=$?
11772     case x$lt_status in
11773       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11774       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11775       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11776     esac
11777   else :
11778     # compilation failed
11779     lt_cv_dlopen_self=no
11780   fi
11781 fi
11782 rm -fr conftest*
11783
11784
11785 fi
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11787 $as_echo "$lt_cv_dlopen_self" >&6; }
11788
11789     if test "x$lt_cv_dlopen_self" = xyes; then
11790       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11792 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11793 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796           if test "$cross_compiling" = yes; then :
11797   lt_cv_dlopen_self_static=cross
11798 else
11799   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11800   lt_status=$lt_dlunknown
11801   cat > conftest.$ac_ext <<_LT_EOF
11802 #line 11802 "configure"
11803 #include "confdefs.h"
11804
11805 #if HAVE_DLFCN_H
11806 #include <dlfcn.h>
11807 #endif
11808
11809 #include <stdio.h>
11810
11811 #ifdef RTLD_GLOBAL
11812 #  define LT_DLGLOBAL           RTLD_GLOBAL
11813 #else
11814 #  ifdef DL_GLOBAL
11815 #    define LT_DLGLOBAL         DL_GLOBAL
11816 #  else
11817 #    define LT_DLGLOBAL         0
11818 #  endif
11819 #endif
11820
11821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11822    find out it does not work in some platform. */
11823 #ifndef LT_DLLAZY_OR_NOW
11824 #  ifdef RTLD_LAZY
11825 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11826 #  else
11827 #    ifdef DL_LAZY
11828 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11829 #    else
11830 #      ifdef RTLD_NOW
11831 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11832 #      else
11833 #        ifdef DL_NOW
11834 #          define LT_DLLAZY_OR_NOW      DL_NOW
11835 #        else
11836 #          define LT_DLLAZY_OR_NOW      0
11837 #        endif
11838 #      endif
11839 #    endif
11840 #  endif
11841 #endif
11842
11843 void fnord() { int i=42;}
11844 int main ()
11845 {
11846   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847   int status = $lt_dlunknown;
11848
11849   if (self)
11850     {
11851       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11852       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853       /* dlclose (self); */
11854     }
11855   else
11856     puts (dlerror ());
11857
11858   return status;
11859 }
11860 _LT_EOF
11861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11862   (eval $ac_link) 2>&5
11863   ac_status=$?
11864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11865   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11866     (./conftest; exit; ) >&5 2>/dev/null
11867     lt_status=$?
11868     case x$lt_status in
11869       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11870       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11871       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11872     esac
11873   else :
11874     # compilation failed
11875     lt_cv_dlopen_self_static=no
11876   fi
11877 fi
11878 rm -fr conftest*
11879
11880
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11883 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11884     fi
11885
11886     CPPFLAGS="$save_CPPFLAGS"
11887     LDFLAGS="$save_LDFLAGS"
11888     LIBS="$save_LIBS"
11889     ;;
11890   esac
11891
11892   case $lt_cv_dlopen_self in
11893   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11894   *) enable_dlopen_self=unknown ;;
11895   esac
11896
11897   case $lt_cv_dlopen_self_static in
11898   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11899   *) enable_dlopen_self_static=unknown ;;
11900   esac
11901 fi
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919 striplib=
11920 old_striplib=
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11922 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11923 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11924   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11925   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928 else
11929 # FIXME - insert some real tests, host_os isn't really good enough
11930   case $host_os in
11931   darwin*)
11932     if test -n "$STRIP" ; then
11933       striplib="$STRIP -x"
11934       old_striplib="$STRIP -S"
11935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; }
11937     else
11938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11940     fi
11941     ;;
11942   *)
11943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945     ;;
11946   esac
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960   # Report which library types will actually be built
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11962 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11964 $as_echo "$can_build_shared" >&6; }
11965
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11967 $as_echo_n "checking whether to build shared libraries... " >&6; }
11968   test "$can_build_shared" = "no" && enable_shared=no
11969
11970   # On AIX, shared libraries and static libraries use the same namespace, and
11971   # are all built from PIC.
11972   case $host_os in
11973   aix3*)
11974     test "$enable_shared" = yes && enable_static=no
11975     if test -n "$RANLIB"; then
11976       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11977       postinstall_cmds='$RANLIB $lib'
11978     fi
11979     ;;
11980
11981   aix[4-9]*)
11982     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11983       test "$enable_shared" = yes && enable_static=no
11984     fi
11985     ;;
11986   esac
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988 $as_echo "$enable_shared" >&6; }
11989
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991 $as_echo_n "checking whether to build static libraries... " >&6; }
11992   # Make sure either enable_shared or enable_static is yes.
11993   test "$enable_shared" = yes || enable_static=yes
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995 $as_echo "$enable_static" >&6; }
11996
11997
11998
11999
12000 fi
12001 ac_ext=c
12002 ac_cpp='$CPP $CPPFLAGS'
12003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006
12007 CC="$lt_save_CC"
12008
12009
12010 ac_ext=cpp
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12015
12016 archive_cmds_need_lc_CXX=no
12017 allow_undefined_flag_CXX=
12018 always_export_symbols_CXX=no
12019 archive_expsym_cmds_CXX=
12020 compiler_needs_object_CXX=no
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_direct_absolute_CXX=no
12024 hardcode_libdir_flag_spec_CXX=
12025 hardcode_libdir_flag_spec_ld_CXX=
12026 hardcode_libdir_separator_CXX=
12027 hardcode_minus_L_CXX=no
12028 hardcode_shlibpath_var_CXX=unsupported
12029 hardcode_automatic_CXX=no
12030 inherit_rpath_CXX=no
12031 module_cmds_CXX=
12032 module_expsym_cmds_CXX=
12033 link_all_deplibs_CXX=unknown
12034 old_archive_cmds_CXX=$old_archive_cmds
12035 no_undefined_flag_CXX=
12036 whole_archive_flag_spec_CXX=
12037 enable_shared_with_static_runtimes_CXX=no
12038
12039 # Source file extension for C++ test sources.
12040 ac_ext=cpp
12041
12042 # Object file extension for compiled C++ test sources.
12043 objext=o
12044 objext_CXX=$objext
12045
12046 # No sense in running all these tests if we already determined that
12047 # the CXX compiler isn't working.  Some variables (like enable_shared)
12048 # are currently assumed to apply to all compilers on this platform,
12049 # and will be corrupted by setting them based on a non-working compiler.
12050 if test "$_lt_caught_CXX_error" != yes; then
12051   # Code to be used in simple compile tests
12052   lt_simple_compile_test_code="int some_variable = 0;"
12053
12054   # Code to be used in simple link tests
12055   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12056
12057   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12058
12059
12060
12061
12062
12063
12064 # If no C compiler was specified, use CC.
12065 LTCC=${LTCC-"$CC"}
12066
12067 # If no C compiler flags were specified, use CFLAGS.
12068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12069
12070 # Allow CC to be a program name with arguments.
12071 compiler=$CC
12072
12073
12074   # save warnings/boilerplate of simple test code
12075   ac_outfile=conftest.$ac_objext
12076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12078 _lt_compiler_boilerplate=`cat conftest.err`
12079 $RM conftest*
12080
12081   ac_outfile=conftest.$ac_objext
12082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12084 _lt_linker_boilerplate=`cat conftest.err`
12085 $RM -r conftest*
12086
12087
12088   # Allow CC to be a program name with arguments.
12089   lt_save_CC=$CC
12090   lt_save_LD=$LD
12091   lt_save_GCC=$GCC
12092   GCC=$GXX
12093   lt_save_with_gnu_ld=$with_gnu_ld
12094   lt_save_path_LD=$lt_cv_path_LD
12095   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12096     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12097   else
12098     $as_unset lt_cv_prog_gnu_ld
12099   fi
12100   if test -n "${lt_cv_path_LDCXX+set}"; then
12101     lt_cv_path_LD=$lt_cv_path_LDCXX
12102   else
12103     $as_unset lt_cv_path_LD
12104   fi
12105   test -z "${LDCXX+set}" || LD=$LDCXX
12106   CC=${CXX-"c++"}
12107   compiler=$CC
12108   compiler_CXX=$CC
12109   for cc_temp in $compiler""; do
12110   case $cc_temp in
12111     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12112     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12113     \-*) ;;
12114     *) break;;
12115   esac
12116 done
12117 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12118
12119
12120   if test -n "$compiler"; then
12121     # We don't want -fno-exception when compiling C++ code, so set the
12122     # no_builtin_flag separately
12123     if test "$GXX" = yes; then
12124       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12125     else
12126       lt_prog_compiler_no_builtin_flag_CXX=
12127     fi
12128
12129     if test "$GXX" = yes; then
12130       # Set up default GNU C++ configuration
12131
12132
12133
12134 # Check whether --with-gnu-ld was given.
12135 if test "${with_gnu_ld+set}" = set; then :
12136   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12137 else
12138   with_gnu_ld=no
12139 fi
12140
12141 ac_prog=ld
12142 if test "$GCC" = yes; then
12143   # Check if gcc -print-prog-name=ld gives a path.
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12145 $as_echo_n "checking for ld used by $CC... " >&6; }
12146   case $host in
12147   *-*-mingw*)
12148     # gcc leaves a trailing carriage return which upsets mingw
12149     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12150   *)
12151     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12152   esac
12153   case $ac_prog in
12154     # Accept absolute paths.
12155     [\\/]* | ?:[\\/]*)
12156       re_direlt='/[^/][^/]*/\.\./'
12157       # Canonicalize the pathname of ld
12158       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12159       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12160         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12161       done
12162       test -z "$LD" && LD="$ac_prog"
12163       ;;
12164   "")
12165     # If it fails, then pretend we aren't using GCC.
12166     ac_prog=ld
12167     ;;
12168   *)
12169     # If it is relative, then search for the first ld in PATH.
12170     with_gnu_ld=unknown
12171     ;;
12172   esac
12173 elif test "$with_gnu_ld" = yes; then
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12175 $as_echo_n "checking for GNU ld... " >&6; }
12176 else
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12178 $as_echo_n "checking for non-GNU ld... " >&6; }
12179 fi
12180 if test "${lt_cv_path_LD+set}" = set; then :
12181   $as_echo_n "(cached) " >&6
12182 else
12183   if test -z "$LD"; then
12184   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12185   for ac_dir in $PATH; do
12186     IFS="$lt_save_ifs"
12187     test -z "$ac_dir" && ac_dir=.
12188     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12189       lt_cv_path_LD="$ac_dir/$ac_prog"
12190       # Check to see if the program is GNU ld.  I'd rather use --version,
12191       # but apparently some variants of GNU ld only accept -v.
12192       # Break only if it was the GNU/non-GNU ld that we prefer.
12193       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12194       *GNU* | *'with BFD'*)
12195         test "$with_gnu_ld" != no && break
12196         ;;
12197       *)
12198         test "$with_gnu_ld" != yes && break
12199         ;;
12200       esac
12201     fi
12202   done
12203   IFS="$lt_save_ifs"
12204 else
12205   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12206 fi
12207 fi
12208
12209 LD="$lt_cv_path_LD"
12210 if test -n "$LD"; then
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12212 $as_echo "$LD" >&6; }
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12219 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12220 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12221   $as_echo_n "(cached) " >&6
12222 else
12223   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12224 case `$LD -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226   lt_cv_prog_gnu_ld=yes
12227   ;;
12228 *)
12229   lt_cv_prog_gnu_ld=no
12230   ;;
12231 esac
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12234 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12235 with_gnu_ld=$lt_cv_prog_gnu_ld
12236
12237
12238
12239
12240
12241
12242
12243       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12244       # archiving commands below assume that GNU ld is being used.
12245       if test "$with_gnu_ld" = yes; then
12246         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247         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'
12248
12249         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12250         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12251
12252         # If archive_cmds runs LD, not CC, wlarc should be empty
12253         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12254         #     investigate it a little bit more. (MM)
12255         wlarc='${wl}'
12256
12257         # ancient GNU ld didn't support --whole-archive et. al.
12258         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12259           $GREP 'no-whole-archive' > /dev/null; then
12260           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12261         else
12262           whole_archive_flag_spec_CXX=
12263         fi
12264       else
12265         with_gnu_ld=no
12266         wlarc=
12267
12268         # A generic and very simple default shared library creation
12269         # command for GNU C++ for the case where it uses the native
12270         # linker, instead of GNU ld.  If possible, this setting should
12271         # overridden to take advantage of the native linker features on
12272         # the platform it is being used on.
12273         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12274       fi
12275
12276       # Commands to make compiler produce verbose output that lists
12277       # what "hidden" libraries, object files and flags are used when
12278       # linking a shared library.
12279       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12280
12281     else
12282       GXX=no
12283       with_gnu_ld=no
12284       wlarc=
12285     fi
12286
12287     # PORTME: fill in a description of your system's C++ link characteristics
12288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12290     ld_shlibs_CXX=yes
12291     case $host_os in
12292       aix3*)
12293         # FIXME: insert proper C++ library support
12294         ld_shlibs_CXX=no
12295         ;;
12296       aix[4-9]*)
12297         if test "$host_cpu" = ia64; then
12298           # On IA64, the linker does run time linking by default, so we don't
12299           # have to do anything special.
12300           aix_use_runtimelinking=no
12301           exp_sym_flag='-Bexport'
12302           no_entry_flag=""
12303         else
12304           aix_use_runtimelinking=no
12305
12306           # Test if we are trying to use run time linking or normal
12307           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12308           # need to do runtime linking.
12309           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12310             for ld_flag in $LDFLAGS; do
12311               case $ld_flag in
12312               *-brtl*)
12313                 aix_use_runtimelinking=yes
12314                 break
12315                 ;;
12316               esac
12317             done
12318             ;;
12319           esac
12320
12321           exp_sym_flag='-bexport'
12322           no_entry_flag='-bnoentry'
12323         fi
12324
12325         # When large executables or shared objects are built, AIX ld can
12326         # have problems creating the table of contents.  If linking a library
12327         # or program results in "error TOC overflow" add -mminimal-toc to
12328         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12329         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12330
12331         archive_cmds_CXX=''
12332         hardcode_direct_CXX=yes
12333         hardcode_direct_absolute_CXX=yes
12334         hardcode_libdir_separator_CXX=':'
12335         link_all_deplibs_CXX=yes
12336         file_list_spec_CXX='${wl}-f,'
12337
12338         if test "$GXX" = yes; then
12339           case $host_os in aix4.[012]|aix4.[012].*)
12340           # We only want to do this on AIX 4.2 and lower, the check
12341           # below for broken collect2 doesn't work under 4.3+
12342           collect2name=`${CC} -print-prog-name=collect2`
12343           if test -f "$collect2name" &&
12344              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12345           then
12346             # We have reworked collect2
12347             :
12348           else
12349             # We have old collect2
12350             hardcode_direct_CXX=unsupported
12351             # It fails to find uninstalled libraries when the uninstalled
12352             # path is not listed in the libpath.  Setting hardcode_minus_L
12353             # to unsupported forces relinking
12354             hardcode_minus_L_CXX=yes
12355             hardcode_libdir_flag_spec_CXX='-L$libdir'
12356             hardcode_libdir_separator_CXX=
12357           fi
12358           esac
12359           shared_flag='-shared'
12360           if test "$aix_use_runtimelinking" = yes; then
12361             shared_flag="$shared_flag "'${wl}-G'
12362           fi
12363         else
12364           # not using gcc
12365           if test "$host_cpu" = ia64; then
12366           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12367           # chokes on -Wl,-G. The following line is correct:
12368           shared_flag='-G'
12369           else
12370             if test "$aix_use_runtimelinking" = yes; then
12371               shared_flag='${wl}-G'
12372             else
12373               shared_flag='${wl}-bM:SRE'
12374             fi
12375           fi
12376         fi
12377
12378         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12379         # It seems that -bexpall does not export symbols beginning with
12380         # underscore (_), so it is better to generate a list of symbols to
12381         # export.
12382         always_export_symbols_CXX=yes
12383         if test "$aix_use_runtimelinking" = yes; then
12384           # Warning - without using the other runtime loading flags (-brtl),
12385           # -berok will link without error, but may produce a broken library.
12386           allow_undefined_flag_CXX='-berok'
12387           # Determine the default libpath from the value encoded in an empty
12388           # executable.
12389           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391
12392 int
12393 main ()
12394 {
12395
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_cxx_try_link "$LINENO"; then :
12401
12402 lt_aix_libpath_sed='
12403     /Import File Strings/,/^$/ {
12404         /^0/ {
12405             s/^0  *\(.*\)$/\1/
12406             p
12407         }
12408     }'
12409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12410 # Check for a 64-bit object if we didn't find anything.
12411 if test -z "$aix_libpath"; then
12412   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 fi
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext \
12416     conftest$ac_exeext conftest.$ac_ext
12417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12418
12419           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12420
12421           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"
12422         else
12423           if test "$host_cpu" = ia64; then
12424             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12425             allow_undefined_flag_CXX="-z nodefs"
12426             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"
12427           else
12428             # Determine the default libpath from the value encoded in an
12429             # empty executable.
12430             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h.  */
12432
12433 int
12434 main ()
12435 {
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_cxx_try_link "$LINENO"; then :
12442
12443 lt_aix_libpath_sed='
12444     /Import File Strings/,/^$/ {
12445         /^0/ {
12446             s/^0  *\(.*\)$/\1/
12447             p
12448         }
12449     }'
12450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 # Check for a 64-bit object if we didn't find anything.
12452 if test -z "$aix_libpath"; then
12453   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454 fi
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457     conftest$ac_exeext conftest.$ac_ext
12458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12459
12460             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12461             # Warning - without using the other run time loading flags,
12462             # -berok will link without error, but may produce a broken library.
12463             no_undefined_flag_CXX=' ${wl}-bernotok'
12464             allow_undefined_flag_CXX=' ${wl}-berok'
12465             # Exported symbols can be pulled into shared objects from archives
12466             whole_archive_flag_spec_CXX='$convenience'
12467             archive_cmds_need_lc_CXX=yes
12468             # This is similar to how AIX traditionally builds its shared
12469             # libraries.
12470             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'
12471           fi
12472         fi
12473         ;;
12474
12475       beos*)
12476         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12477           allow_undefined_flag_CXX=unsupported
12478           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12479           # support --undefined.  This deserves some investigation.  FIXME
12480           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481         else
12482           ld_shlibs_CXX=no
12483         fi
12484         ;;
12485
12486       chorus*)
12487         case $cc_basename in
12488           *)
12489           # FIXME: insert proper C++ library support
12490           ld_shlibs_CXX=no
12491           ;;
12492         esac
12493         ;;
12494
12495       cygwin* | mingw* | pw32* | cegcc*)
12496         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12497         # as there is no search path for DLLs.
12498         hardcode_libdir_flag_spec_CXX='-L$libdir'
12499         allow_undefined_flag_CXX=unsupported
12500         always_export_symbols_CXX=no
12501         enable_shared_with_static_runtimes_CXX=yes
12502
12503         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12504           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'
12505           # If the export-symbols file already is a .def file (1st line
12506           # is EXPORTS), use it as is; otherwise, prepend...
12507           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12508             cp $export_symbols $output_objdir/$soname.def;
12509           else
12510             echo EXPORTS > $output_objdir/$soname.def;
12511             cat $export_symbols >> $output_objdir/$soname.def;
12512           fi~
12513           $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'
12514         else
12515           ld_shlibs_CXX=no
12516         fi
12517         ;;
12518       darwin* | rhapsody*)
12519
12520
12521   archive_cmds_need_lc_CXX=no
12522   hardcode_direct_CXX=no
12523   hardcode_automatic_CXX=yes
12524   hardcode_shlibpath_var_CXX=unsupported
12525   whole_archive_flag_spec_CXX=''
12526   link_all_deplibs_CXX=yes
12527   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12528   case $cc_basename in
12529      ifort*) _lt_dar_can_shared=yes ;;
12530      *) _lt_dar_can_shared=$GCC ;;
12531   esac
12532   if test "$_lt_dar_can_shared" = "yes"; then
12533     output_verbose_link_cmd=echo
12534     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}"
12535     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12536     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}"
12537     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}"
12538        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12539       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}"
12540       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}"
12541     fi
12542
12543   else
12544   ld_shlibs_CXX=no
12545   fi
12546
12547         ;;
12548
12549       dgux*)
12550         case $cc_basename in
12551           ec++*)
12552             # FIXME: insert proper C++ library support
12553             ld_shlibs_CXX=no
12554             ;;
12555           ghcx*)
12556             # Green Hills C++ Compiler
12557             # FIXME: insert proper C++ library support
12558             ld_shlibs_CXX=no
12559             ;;
12560           *)
12561             # FIXME: insert proper C++ library support
12562             ld_shlibs_CXX=no
12563             ;;
12564         esac
12565         ;;
12566
12567       freebsd[12]*)
12568         # C++ shared libraries reported to be fairly broken before
12569         # switch to ELF
12570         ld_shlibs_CXX=no
12571         ;;
12572
12573       freebsd-elf*)
12574         archive_cmds_need_lc_CXX=no
12575         ;;
12576
12577       freebsd* | dragonfly*)
12578         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12579         # conventions
12580         ld_shlibs_CXX=yes
12581         ;;
12582
12583       gnu*)
12584         ;;
12585
12586       hpux9*)
12587         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12588         hardcode_libdir_separator_CXX=:
12589         export_dynamic_flag_spec_CXX='${wl}-E'
12590         hardcode_direct_CXX=yes
12591         hardcode_minus_L_CXX=yes # Not in the search PATH,
12592                                              # but as the default
12593                                              # location of the library.
12594
12595         case $cc_basename in
12596           CC*)
12597             # FIXME: insert proper C++ library support
12598             ld_shlibs_CXX=no
12599             ;;
12600           aCC*)
12601             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'
12602             # Commands to make compiler produce verbose output that lists
12603             # what "hidden" libraries, object files and flags are used when
12604             # linking a shared library.
12605             #
12606             # There doesn't appear to be a way to prevent this compiler from
12607             # explicitly linking system object files so we need to strip them
12608             # from the output so that they don't get included in the library
12609             # dependencies.
12610             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'
12611             ;;
12612           *)
12613             if test "$GXX" = yes; then
12614               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'
12615             else
12616               # FIXME: insert proper C++ library support
12617               ld_shlibs_CXX=no
12618             fi
12619             ;;
12620         esac
12621         ;;
12622
12623       hpux10*|hpux11*)
12624         if test $with_gnu_ld = no; then
12625           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12626           hardcode_libdir_separator_CXX=:
12627
12628           case $host_cpu in
12629             hppa*64*|ia64*)
12630               ;;
12631             *)
12632               export_dynamic_flag_spec_CXX='${wl}-E'
12633               ;;
12634           esac
12635         fi
12636         case $host_cpu in
12637           hppa*64*|ia64*)
12638             hardcode_direct_CXX=no
12639             hardcode_shlibpath_var_CXX=no
12640             ;;
12641           *)
12642             hardcode_direct_CXX=yes
12643             hardcode_direct_absolute_CXX=yes
12644             hardcode_minus_L_CXX=yes # Not in the search PATH,
12645                                                  # but as the default
12646                                                  # location of the library.
12647             ;;
12648         esac
12649
12650         case $cc_basename in
12651           CC*)
12652             # FIXME: insert proper C++ library support
12653             ld_shlibs_CXX=no
12654             ;;
12655           aCC*)
12656             case $host_cpu in
12657               hppa*64*)
12658                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12659                 ;;
12660               ia64*)
12661                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12662                 ;;
12663               *)
12664                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12665                 ;;
12666             esac
12667             # Commands to make compiler produce verbose output that lists
12668             # what "hidden" libraries, object files and flags are used when
12669             # linking a shared library.
12670             #
12671             # There doesn't appear to be a way to prevent this compiler from
12672             # explicitly linking system object files so we need to strip them
12673             # from the output so that they don't get included in the library
12674             # dependencies.
12675             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'
12676             ;;
12677           *)
12678             if test "$GXX" = yes; then
12679               if test $with_gnu_ld = no; then
12680                 case $host_cpu in
12681                   hppa*64*)
12682                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683                     ;;
12684                   ia64*)
12685                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12686                     ;;
12687                   *)
12688                     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'
12689                     ;;
12690                 esac
12691               fi
12692             else
12693               # FIXME: insert proper C++ library support
12694               ld_shlibs_CXX=no
12695             fi
12696             ;;
12697         esac
12698         ;;
12699
12700       interix[3-9]*)
12701         hardcode_direct_CXX=no
12702         hardcode_shlibpath_var_CXX=no
12703         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12704         export_dynamic_flag_spec_CXX='${wl}-E'
12705         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12706         # Instead, shared libraries are loaded at an image base (0x10000000 by
12707         # default) and relocated if they conflict, which is a slow very memory
12708         # consuming and fragmenting process.  To avoid this, we pick a random,
12709         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12710         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12711         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'
12712         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'
12713         ;;
12714       irix5* | irix6*)
12715         case $cc_basename in
12716           CC*)
12717             # SGI C++
12718             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'
12719
12720             # Archives containing C++ object files must be created using
12721             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12722             # necessary to make sure instantiated templates are included
12723             # in the archive.
12724             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12725             ;;
12726           *)
12727             if test "$GXX" = yes; then
12728               if test "$with_gnu_ld" = no; then
12729                 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'
12730               else
12731                 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'
12732               fi
12733             fi
12734             link_all_deplibs_CXX=yes
12735             ;;
12736         esac
12737         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738         hardcode_libdir_separator_CXX=:
12739         inherit_rpath_CXX=yes
12740         ;;
12741
12742       linux* | k*bsd*-gnu)
12743         case $cc_basename in
12744           KCC*)
12745             # Kuck and Associates, Inc. (KAI) C++ Compiler
12746
12747             # KCC will only create a shared library if the output file
12748             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12749             # to its proper name (with version) after linking.
12750             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'
12751             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'
12752             # Commands to make compiler produce verbose output that lists
12753             # what "hidden" libraries, object files and flags are used when
12754             # linking a shared library.
12755             #
12756             # There doesn't appear to be a way to prevent this compiler from
12757             # explicitly linking system object files so we need to strip them
12758             # from the output so that they don't get included in the library
12759             # dependencies.
12760             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'
12761
12762             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12763             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12764
12765             # Archives containing C++ object files must be created using
12766             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12767             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12768             ;;
12769           icpc* | ecpc* )
12770             # Intel C++
12771             with_gnu_ld=yes
12772             # version 8.0 and above of icpc choke on multiply defined symbols
12773             # if we add $predep_objects and $postdep_objects, however 7.1 and
12774             # earlier do not add the objects themselves.
12775             case `$CC -V 2>&1` in
12776               *"Version 7."*)
12777                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778                 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'
12779                 ;;
12780               *)  # Version 8.0 or newer
12781                 tmp_idyn=
12782                 case $host_cpu in
12783                   ia64*) tmp_idyn=' -i_dynamic';;
12784                 esac
12785                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786                 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'
12787                 ;;
12788             esac
12789             archive_cmds_need_lc_CXX=no
12790             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12792             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12793             ;;
12794           pgCC* | pgcpp*)
12795             # Portland Group C++ compiler
12796             case `$CC -V` in
12797             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12798               prelink_cmds_CXX='tpldir=Template.dir~
12799                 rm -rf $tpldir~
12800                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12801                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12802               old_archive_cmds_CXX='tpldir=Template.dir~
12803                 rm -rf $tpldir~
12804                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12805                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12806                 $RANLIB $oldlib'
12807               archive_cmds_CXX='tpldir=Template.dir~
12808                 rm -rf $tpldir~
12809                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12810                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12811               archive_expsym_cmds_CXX='tpldir=Template.dir~
12812                 rm -rf $tpldir~
12813                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12814                 $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'
12815               ;;
12816             *) # Version 6 will use weak symbols
12817               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12818               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'
12819               ;;
12820             esac
12821
12822             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12823             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824             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'
12825             ;;
12826           cxx*)
12827             # Compaq C++
12828             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829             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'
12830
12831             runpath_var=LD_RUN_PATH
12832             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12833             hardcode_libdir_separator_CXX=:
12834
12835             # Commands to make compiler produce verbose output that lists
12836             # what "hidden" libraries, object files and flags are used when
12837             # linking a shared library.
12838             #
12839             # There doesn't appear to be a way to prevent this compiler from
12840             # explicitly linking system object files so we need to strip them
12841             # from the output so that they don't get included in the library
12842             # dependencies.
12843             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'
12844             ;;
12845           xl*)
12846             # IBM XL 8.0 on PPC, with GNU ld
12847             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12849             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12850             if test "x$supports_anon_versioning" = xyes; then
12851               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12852                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12853                 echo "local: *; };" >> $output_objdir/$libname.ver~
12854                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12855             fi
12856             ;;
12857           *)
12858             case `$CC -V 2>&1 | sed 5q` in
12859             *Sun\ C*)
12860               # Sun C++ 5.9
12861               no_undefined_flag_CXX=' -zdefs'
12862               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12863               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'
12864               hardcode_libdir_flag_spec_CXX='-R$libdir'
12865               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'
12866               compiler_needs_object_CXX=yes
12867
12868               # Not sure whether something based on
12869               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12870               # would be better.
12871               output_verbose_link_cmd='echo'
12872
12873               # Archives containing C++ object files must be created using
12874               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12875               # necessary to make sure instantiated templates are included
12876               # in the archive.
12877               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12878               ;;
12879             esac
12880             ;;
12881         esac
12882         ;;
12883
12884       lynxos*)
12885         # FIXME: insert proper C++ library support
12886         ld_shlibs_CXX=no
12887         ;;
12888
12889       m88k*)
12890         # FIXME: insert proper C++ library support
12891         ld_shlibs_CXX=no
12892         ;;
12893
12894       mvs*)
12895         case $cc_basename in
12896           cxx*)
12897             # FIXME: insert proper C++ library support
12898             ld_shlibs_CXX=no
12899             ;;
12900           *)
12901             # FIXME: insert proper C++ library support
12902             ld_shlibs_CXX=no
12903             ;;
12904         esac
12905         ;;
12906
12907       netbsd*)
12908         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12909           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12910           wlarc=
12911           hardcode_libdir_flag_spec_CXX='-R$libdir'
12912           hardcode_direct_CXX=yes
12913           hardcode_shlibpath_var_CXX=no
12914         fi
12915         # Workaround some broken pre-1.5 toolchains
12916         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12917         ;;
12918
12919       *nto* | *qnx*)
12920         ld_shlibs_CXX=yes
12921         ;;
12922
12923       openbsd2*)
12924         # C++ shared libraries are fairly broken
12925         ld_shlibs_CXX=no
12926         ;;
12927
12928       openbsd*)
12929         if test -f /usr/libexec/ld.so; then
12930           hardcode_direct_CXX=yes
12931           hardcode_shlibpath_var_CXX=no
12932           hardcode_direct_absolute_CXX=yes
12933           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12934           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12935           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12936             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12937             export_dynamic_flag_spec_CXX='${wl}-E'
12938             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12939           fi
12940           output_verbose_link_cmd=echo
12941         else
12942           ld_shlibs_CXX=no
12943         fi
12944         ;;
12945
12946       osf3* | osf4* | osf5*)
12947         case $cc_basename in
12948           KCC*)
12949             # Kuck and Associates, Inc. (KAI) C++ Compiler
12950
12951             # KCC will only create a shared library if the output file
12952             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12953             # to its proper name (with version) after linking.
12954             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'
12955
12956             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12957             hardcode_libdir_separator_CXX=:
12958
12959             # Archives containing C++ object files must be created using
12960             # the KAI C++ compiler.
12961             case $host in
12962               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12963               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12964             esac
12965             ;;
12966           RCC*)
12967             # Rational C++ 2.4.1
12968             # FIXME: insert proper C++ library support
12969             ld_shlibs_CXX=no
12970             ;;
12971           cxx*)
12972             case $host in
12973               osf3*)
12974                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12975                 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'
12976                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12977                 ;;
12978               *)
12979                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12980                 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'
12981                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12982                   echo "-hidden">> $lib.exp~
12983                   $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~
12984                   $RM $lib.exp'
12985                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12986                 ;;
12987             esac
12988
12989             hardcode_libdir_separator_CXX=:
12990
12991             # Commands to make compiler produce verbose output that lists
12992             # what "hidden" libraries, object files and flags are used when
12993             # linking a shared library.
12994             #
12995             # There doesn't appear to be a way to prevent this compiler from
12996             # explicitly linking system object files so we need to strip them
12997             # from the output so that they don't get included in the library
12998             # dependencies.
12999             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'
13000             ;;
13001           *)
13002             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13003               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13004               case $host in
13005                 osf3*)
13006                   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'
13007                   ;;
13008                 *)
13009                   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'
13010                   ;;
13011               esac
13012
13013               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13014               hardcode_libdir_separator_CXX=:
13015
13016               # Commands to make compiler produce verbose output that lists
13017               # what "hidden" libraries, object files and flags are used when
13018               # linking a shared library.
13019               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13020
13021             else
13022               # FIXME: insert proper C++ library support
13023               ld_shlibs_CXX=no
13024             fi
13025             ;;
13026         esac
13027         ;;
13028
13029       psos*)
13030         # FIXME: insert proper C++ library support
13031         ld_shlibs_CXX=no
13032         ;;
13033
13034       sunos4*)
13035         case $cc_basename in
13036           CC*)
13037             # Sun C++ 4.x
13038             # FIXME: insert proper C++ library support
13039             ld_shlibs_CXX=no
13040             ;;
13041           lcc*)
13042             # Lucid
13043             # FIXME: insert proper C++ library support
13044             ld_shlibs_CXX=no
13045             ;;
13046           *)
13047             # FIXME: insert proper C++ library support
13048             ld_shlibs_CXX=no
13049             ;;
13050         esac
13051         ;;
13052
13053       solaris*)
13054         case $cc_basename in
13055           CC*)
13056             # Sun C++ 4.2, 5.x and Centerline C++
13057             archive_cmds_need_lc_CXX=yes
13058             no_undefined_flag_CXX=' -zdefs'
13059             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13060             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13061               $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'
13062
13063             hardcode_libdir_flag_spec_CXX='-R$libdir'
13064             hardcode_shlibpath_var_CXX=no
13065             case $host_os in
13066               solaris2.[0-5] | solaris2.[0-5].*) ;;
13067               *)
13068                 # The compiler driver will combine and reorder linker options,
13069                 # but understands `-z linker_flag'.
13070                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13071                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13072                 ;;
13073             esac
13074             link_all_deplibs_CXX=yes
13075
13076             output_verbose_link_cmd='echo'
13077
13078             # Archives containing C++ object files must be created using
13079             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13080             # necessary to make sure instantiated templates are included
13081             # in the archive.
13082             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13083             ;;
13084           gcx*)
13085             # Green Hills C++ Compiler
13086             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13087
13088             # The C++ compiler must be used to create the archive.
13089             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13090             ;;
13091           *)
13092             # GNU C++ compiler with Solaris linker
13093             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13094               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13095               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13096                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13097                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13098                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13099
13100                 # Commands to make compiler produce verbose output that lists
13101                 # what "hidden" libraries, object files and flags are used when
13102                 # linking a shared library.
13103                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13104               else
13105                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13106                 # platform.
13107                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13108                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13109                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13110
13111                 # Commands to make compiler produce verbose output that lists
13112                 # what "hidden" libraries, object files and flags are used when
13113                 # linking a shared library.
13114                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13115               fi
13116
13117               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13118               case $host_os in
13119                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13120                 *)
13121                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13122                   ;;
13123               esac
13124             fi
13125             ;;
13126         esac
13127         ;;
13128
13129     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13130       no_undefined_flag_CXX='${wl}-z,text'
13131       archive_cmds_need_lc_CXX=no
13132       hardcode_shlibpath_var_CXX=no
13133       runpath_var='LD_RUN_PATH'
13134
13135       case $cc_basename in
13136         CC*)
13137           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13138           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139           ;;
13140         *)
13141           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13143           ;;
13144       esac
13145       ;;
13146
13147       sysv5* | sco3.2v5* | sco5v6*)
13148         # Note: We can NOT use -z defs as we might desire, because we do not
13149         # link with -lc, and that would cause any symbols used from libc to
13150         # always be unresolved, which means just about no library would
13151         # ever link correctly.  If we're not using GNU ld we use -z text
13152         # though, which does catch some bad symbols but isn't as heavy-handed
13153         # as -z defs.
13154         no_undefined_flag_CXX='${wl}-z,text'
13155         allow_undefined_flag_CXX='${wl}-z,nodefs'
13156         archive_cmds_need_lc_CXX=no
13157         hardcode_shlibpath_var_CXX=no
13158         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13159         hardcode_libdir_separator_CXX=':'
13160         link_all_deplibs_CXX=yes
13161         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13162         runpath_var='LD_RUN_PATH'
13163
13164         case $cc_basename in
13165           CC*)
13166             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168             ;;
13169           *)
13170             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172             ;;
13173         esac
13174       ;;
13175
13176       tandem*)
13177         case $cc_basename in
13178           NCC*)
13179             # NonStop-UX NCC 3.20
13180             # FIXME: insert proper C++ library support
13181             ld_shlibs_CXX=no
13182             ;;
13183           *)
13184             # FIXME: insert proper C++ library support
13185             ld_shlibs_CXX=no
13186             ;;
13187         esac
13188         ;;
13189
13190       vxworks*)
13191         # FIXME: insert proper C++ library support
13192         ld_shlibs_CXX=no
13193         ;;
13194
13195       *)
13196         # FIXME: insert proper C++ library support
13197         ld_shlibs_CXX=no
13198         ;;
13199     esac
13200
13201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13202 $as_echo "$ld_shlibs_CXX" >&6; }
13203     test "$ld_shlibs_CXX" = no && can_build_shared=no
13204
13205     GCC_CXX="$GXX"
13206     LD_CXX="$LD"
13207
13208     ## CAVEAT EMPTOR:
13209     ## There is no encapsulation within the following macros, do not change
13210     ## the running order or otherwise move them around unless you know exactly
13211     ## what you are doing...
13212     # Dependencies to place before and after the object being linked:
13213 predep_objects_CXX=
13214 postdep_objects_CXX=
13215 predeps_CXX=
13216 postdeps_CXX=
13217 compiler_lib_search_path_CXX=
13218
13219 cat > conftest.$ac_ext <<_LT_EOF
13220 class Foo
13221 {
13222 public:
13223   Foo (void) { a = 0; }
13224 private:
13225   int a;
13226 };
13227 _LT_EOF
13228
13229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13230   (eval $ac_compile) 2>&5
13231   ac_status=$?
13232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13233   test $ac_status = 0; }; then
13234   # Parse the compiler output and extract the necessary
13235   # objects, libraries and library flags.
13236
13237   # Sentinel used to keep track of whether or not we are before
13238   # the conftest object file.
13239   pre_test_object_deps_done=no
13240
13241   for p in `eval "$output_verbose_link_cmd"`; do
13242     case $p in
13243
13244     -L* | -R* | -l*)
13245        # Some compilers place space between "-{L,R}" and the path.
13246        # Remove the space.
13247        if test $p = "-L" ||
13248           test $p = "-R"; then
13249          prev=$p
13250          continue
13251        else
13252          prev=
13253        fi
13254
13255        if test "$pre_test_object_deps_done" = no; then
13256          case $p in
13257          -L* | -R*)
13258            # Internal compiler library paths should come after those
13259            # provided the user.  The postdeps already come after the
13260            # user supplied libs so there is no need to process them.
13261            if test -z "$compiler_lib_search_path_CXX"; then
13262              compiler_lib_search_path_CXX="${prev}${p}"
13263            else
13264              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13265            fi
13266            ;;
13267          # The "-l" case would never come before the object being
13268          # linked, so don't bother handling this case.
13269          esac
13270        else
13271          if test -z "$postdeps_CXX"; then
13272            postdeps_CXX="${prev}${p}"
13273          else
13274            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13275          fi
13276        fi
13277        ;;
13278
13279     *.$objext)
13280        # This assumes that the test object file only shows up
13281        # once in the compiler output.
13282        if test "$p" = "conftest.$objext"; then
13283          pre_test_object_deps_done=yes
13284          continue
13285        fi
13286
13287        if test "$pre_test_object_deps_done" = no; then
13288          if test -z "$predep_objects_CXX"; then
13289            predep_objects_CXX="$p"
13290          else
13291            predep_objects_CXX="$predep_objects_CXX $p"
13292          fi
13293        else
13294          if test -z "$postdep_objects_CXX"; then
13295            postdep_objects_CXX="$p"
13296          else
13297            postdep_objects_CXX="$postdep_objects_CXX $p"
13298          fi
13299        fi
13300        ;;
13301
13302     *) ;; # Ignore the rest.
13303
13304     esac
13305   done
13306
13307   # Clean up.
13308   rm -f a.out a.exe
13309 else
13310   echo "libtool.m4: error: problem compiling CXX test program"
13311 fi
13312
13313 $RM -f confest.$objext
13314
13315 # PORTME: override above test on systems where it is broken
13316 case $host_os in
13317 interix[3-9]*)
13318   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13319   # hack all around it, let's just trust "g++" to DTRT.
13320   predep_objects_CXX=
13321   postdep_objects_CXX=
13322   postdeps_CXX=
13323   ;;
13324
13325 linux*)
13326   case `$CC -V 2>&1 | sed 5q` in
13327   *Sun\ C*)
13328     # Sun C++ 5.9
13329
13330     # The more standards-conforming stlport4 library is
13331     # incompatible with the Cstd library. Avoid specifying
13332     # it if it's in CXXFLAGS. Ignore libCrun as
13333     # -library=stlport4 depends on it.
13334     case " $CXX $CXXFLAGS " in
13335     *" -library=stlport4 "*)
13336       solaris_use_stlport4=yes
13337       ;;
13338     esac
13339
13340     if test "$solaris_use_stlport4" != yes; then
13341       postdeps_CXX='-library=Cstd -library=Crun'
13342     fi
13343     ;;
13344   esac
13345   ;;
13346
13347 solaris*)
13348   case $cc_basename in
13349   CC*)
13350     # The more standards-conforming stlport4 library is
13351     # incompatible with the Cstd library. Avoid specifying
13352     # it if it's in CXXFLAGS. Ignore libCrun as
13353     # -library=stlport4 depends on it.
13354     case " $CXX $CXXFLAGS " in
13355     *" -library=stlport4 "*)
13356       solaris_use_stlport4=yes
13357       ;;
13358     esac
13359
13360     # Adding this requires a known-good setup of shared libraries for
13361     # Sun compiler versions before 5.6, else PIC objects from an old
13362     # archive will be linked into the output, leading to subtle bugs.
13363     if test "$solaris_use_stlport4" != yes; then
13364       postdeps_CXX='-library=Cstd -library=Crun'
13365     fi
13366     ;;
13367   esac
13368   ;;
13369 esac
13370
13371
13372 case " $postdeps_CXX " in
13373 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13374 esac
13375  compiler_lib_search_dirs_CXX=
13376 if test -n "${compiler_lib_search_path_CXX}"; then
13377  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13378 fi
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410     lt_prog_compiler_wl_CXX=
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_static_CXX=
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13415 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13416
13417   # C++ specific cases for pic, static, wl, etc.
13418   if test "$GXX" = yes; then
13419     lt_prog_compiler_wl_CXX='-Wl,'
13420     lt_prog_compiler_static_CXX='-static'
13421
13422     case $host_os in
13423     aix*)
13424       # All AIX code is PIC.
13425       if test "$host_cpu" = ia64; then
13426         # AIX 5 now supports IA64 processor
13427         lt_prog_compiler_static_CXX='-Bstatic'
13428       fi
13429       ;;
13430
13431     amigaos*)
13432       case $host_cpu in
13433       powerpc)
13434             # see comment about AmigaOS4 .so support
13435             lt_prog_compiler_pic_CXX='-fPIC'
13436         ;;
13437       m68k)
13438             # FIXME: we need at least 68020 code to build shared libraries, but
13439             # adding the `-m68020' flag to GCC prevents building anything better,
13440             # like `-m68040'.
13441             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13442         ;;
13443       esac
13444       ;;
13445
13446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13447       # PIC is the default for these OSes.
13448       ;;
13449     mingw* | cygwin* | os2* | pw32* | cegcc*)
13450       # This hack is so that the source file can tell whether it is being
13451       # built for inclusion in a dll (and should export symbols for example).
13452       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13453       # (--disable-auto-import) libraries
13454       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13455       ;;
13456     darwin* | rhapsody*)
13457       # PIC is the default on this platform
13458       # Common symbols not allowed in MH_DYLIB files
13459       lt_prog_compiler_pic_CXX='-fno-common'
13460       ;;
13461     *djgpp*)
13462       # DJGPP does not support shared libraries at all
13463       lt_prog_compiler_pic_CXX=
13464       ;;
13465     interix[3-9]*)
13466       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13467       # Instead, we relocate shared libraries at runtime.
13468       ;;
13469     sysv4*MP*)
13470       if test -d /usr/nec; then
13471         lt_prog_compiler_pic_CXX=-Kconform_pic
13472       fi
13473       ;;
13474     hpux*)
13475       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13476       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13477       # sets the default TLS model and affects inlining.
13478       case $host_cpu in
13479       hppa*64*)
13480         ;;
13481       *)
13482         lt_prog_compiler_pic_CXX='-fPIC'
13483         ;;
13484       esac
13485       ;;
13486     *qnx* | *nto*)
13487       # QNX uses GNU C++, but need to define -shared option too, otherwise
13488       # it will coredump.
13489       lt_prog_compiler_pic_CXX='-fPIC -shared'
13490       ;;
13491     *)
13492       lt_prog_compiler_pic_CXX='-fPIC'
13493       ;;
13494     esac
13495   else
13496     case $host_os in
13497       aix[4-9]*)
13498         # All AIX code is PIC.
13499         if test "$host_cpu" = ia64; then
13500           # AIX 5 now supports IA64 processor
13501           lt_prog_compiler_static_CXX='-Bstatic'
13502         else
13503           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13504         fi
13505         ;;
13506       chorus*)
13507         case $cc_basename in
13508         cxch68*)
13509           # Green Hills C++ Compiler
13510           # _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"
13511           ;;
13512         esac
13513         ;;
13514       dgux*)
13515         case $cc_basename in
13516           ec++*)
13517             lt_prog_compiler_pic_CXX='-KPIC'
13518             ;;
13519           ghcx*)
13520             # Green Hills C++ Compiler
13521             lt_prog_compiler_pic_CXX='-pic'
13522             ;;
13523           *)
13524             ;;
13525         esac
13526         ;;
13527       freebsd* | dragonfly*)
13528         # FreeBSD uses GNU C++
13529         ;;
13530       hpux9* | hpux10* | hpux11*)
13531         case $cc_basename in
13532           CC*)
13533             lt_prog_compiler_wl_CXX='-Wl,'
13534             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13535             if test "$host_cpu" != ia64; then
13536               lt_prog_compiler_pic_CXX='+Z'
13537             fi
13538             ;;
13539           aCC*)
13540             lt_prog_compiler_wl_CXX='-Wl,'
13541             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13542             case $host_cpu in
13543             hppa*64*|ia64*)
13544               # +Z the default
13545               ;;
13546             *)
13547               lt_prog_compiler_pic_CXX='+Z'
13548               ;;
13549             esac
13550             ;;
13551           *)
13552             ;;
13553         esac
13554         ;;
13555       interix*)
13556         # This is c89, which is MS Visual C++ (no shared libs)
13557         # Anyone wants to do a port?
13558         ;;
13559       irix5* | irix6* | nonstopux*)
13560         case $cc_basename in
13561           CC*)
13562             lt_prog_compiler_wl_CXX='-Wl,'
13563             lt_prog_compiler_static_CXX='-non_shared'
13564             # CC pic flag -KPIC is the default.
13565             ;;
13566           *)
13567             ;;
13568         esac
13569         ;;
13570       linux* | k*bsd*-gnu)
13571         case $cc_basename in
13572           KCC*)
13573             # KAI C++ Compiler
13574             lt_prog_compiler_wl_CXX='--backend -Wl,'
13575             lt_prog_compiler_pic_CXX='-fPIC'
13576             ;;
13577           ecpc* )
13578             # old Intel C++ for x86_64 which still supported -KPIC.
13579             lt_prog_compiler_wl_CXX='-Wl,'
13580             lt_prog_compiler_pic_CXX='-KPIC'
13581             lt_prog_compiler_static_CXX='-static'
13582             ;;
13583           icpc* )
13584             # Intel C++, used to be incompatible with GCC.
13585             # ICC 10 doesn't accept -KPIC any more.
13586             lt_prog_compiler_wl_CXX='-Wl,'
13587             lt_prog_compiler_pic_CXX='-fPIC'
13588             lt_prog_compiler_static_CXX='-static'
13589             ;;
13590           pgCC* | pgcpp*)
13591             # Portland Group C++ compiler
13592             lt_prog_compiler_wl_CXX='-Wl,'
13593             lt_prog_compiler_pic_CXX='-fpic'
13594             lt_prog_compiler_static_CXX='-Bstatic'
13595             ;;
13596           cxx*)
13597             # Compaq C++
13598             # Make sure the PIC flag is empty.  It appears that all Alpha
13599             # Linux and Compaq Tru64 Unix objects are PIC.
13600             lt_prog_compiler_pic_CXX=
13601             lt_prog_compiler_static_CXX='-non_shared'
13602             ;;
13603           xlc* | xlC*)
13604             # IBM XL 8.0 on PPC
13605             lt_prog_compiler_wl_CXX='-Wl,'
13606             lt_prog_compiler_pic_CXX='-qpic'
13607             lt_prog_compiler_static_CXX='-qstaticlink'
13608             ;;
13609           *)
13610             case `$CC -V 2>&1 | sed 5q` in
13611             *Sun\ C*)
13612               # Sun C++ 5.9
13613               lt_prog_compiler_pic_CXX='-KPIC'
13614               lt_prog_compiler_static_CXX='-Bstatic'
13615               lt_prog_compiler_wl_CXX='-Qoption ld '
13616               ;;
13617             esac
13618             ;;
13619         esac
13620         ;;
13621       lynxos*)
13622         ;;
13623       m88k*)
13624         ;;
13625       mvs*)
13626         case $cc_basename in
13627           cxx*)
13628             lt_prog_compiler_pic_CXX='-W c,exportall'
13629             ;;
13630           *)
13631             ;;
13632         esac
13633         ;;
13634       netbsd* | netbsdelf*-gnu)
13635         ;;
13636       *qnx* | *nto*)
13637         # QNX uses GNU C++, but need to define -shared option too, otherwise
13638         # it will coredump.
13639         lt_prog_compiler_pic_CXX='-fPIC -shared'
13640         ;;
13641       osf3* | osf4* | osf5*)
13642         case $cc_basename in
13643           KCC*)
13644             lt_prog_compiler_wl_CXX='--backend -Wl,'
13645             ;;
13646           RCC*)
13647             # Rational C++ 2.4.1
13648             lt_prog_compiler_pic_CXX='-pic'
13649             ;;
13650           cxx*)
13651             # Digital/Compaq C++
13652             lt_prog_compiler_wl_CXX='-Wl,'
13653             # Make sure the PIC flag is empty.  It appears that all Alpha
13654             # Linux and Compaq Tru64 Unix objects are PIC.
13655             lt_prog_compiler_pic_CXX=
13656             lt_prog_compiler_static_CXX='-non_shared'
13657             ;;
13658           *)
13659             ;;
13660         esac
13661         ;;
13662       psos*)
13663         ;;
13664       solaris*)
13665         case $cc_basename in
13666           CC*)
13667             # Sun C++ 4.2, 5.x and Centerline C++
13668             lt_prog_compiler_pic_CXX='-KPIC'
13669             lt_prog_compiler_static_CXX='-Bstatic'
13670             lt_prog_compiler_wl_CXX='-Qoption ld '
13671             ;;
13672           gcx*)
13673             # Green Hills C++ Compiler
13674             lt_prog_compiler_pic_CXX='-PIC'
13675             ;;
13676           *)
13677             ;;
13678         esac
13679         ;;
13680       sunos4*)
13681         case $cc_basename in
13682           CC*)
13683             # Sun C++ 4.x
13684             lt_prog_compiler_pic_CXX='-pic'
13685             lt_prog_compiler_static_CXX='-Bstatic'
13686             ;;
13687           lcc*)
13688             # Lucid
13689             lt_prog_compiler_pic_CXX='-pic'
13690             ;;
13691           *)
13692             ;;
13693         esac
13694         ;;
13695       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13696         case $cc_basename in
13697           CC*)
13698             lt_prog_compiler_wl_CXX='-Wl,'
13699             lt_prog_compiler_pic_CXX='-KPIC'
13700             lt_prog_compiler_static_CXX='-Bstatic'
13701             ;;
13702         esac
13703         ;;
13704       tandem*)
13705         case $cc_basename in
13706           NCC*)
13707             # NonStop-UX NCC 3.20
13708             lt_prog_compiler_pic_CXX='-KPIC'
13709             ;;
13710           *)
13711             ;;
13712         esac
13713         ;;
13714       vxworks*)
13715         ;;
13716       *)
13717         lt_prog_compiler_can_build_shared_CXX=no
13718         ;;
13719     esac
13720   fi
13721
13722 case $host_os in
13723   # For platforms which do not support PIC, -DPIC is meaningless:
13724   *djgpp*)
13725     lt_prog_compiler_pic_CXX=
13726     ;;
13727   *)
13728     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13729     ;;
13730 esac
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13732 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13733
13734
13735
13736 #
13737 # Check to make sure the PIC flag actually works.
13738 #
13739 if test -n "$lt_prog_compiler_pic_CXX"; then
13740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13741 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13742 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13743   $as_echo_n "(cached) " >&6
13744 else
13745   lt_cv_prog_compiler_pic_works_CXX=no
13746    ac_outfile=conftest.$ac_objext
13747    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13748    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13749    # Insert the option either (1) after the last *FLAGS variable, or
13750    # (2) before a word containing "conftest.", or (3) at the end.
13751    # Note that $ac_compile itself does not contain backslashes and begins
13752    # with a dollar sign (not a hyphen), so the echo should work correctly.
13753    # The option is referenced via a variable to avoid confusing sed.
13754    lt_compile=`echo "$ac_compile" | $SED \
13755    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13756    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13757    -e 's:$: $lt_compiler_flag:'`
13758    (eval echo "\"\$as_me:13758: $lt_compile\"" >&5)
13759    (eval "$lt_compile" 2>conftest.err)
13760    ac_status=$?
13761    cat conftest.err >&5
13762    echo "$as_me:13762: \$? = $ac_status" >&5
13763    if (exit $ac_status) && test -s "$ac_outfile"; then
13764      # The compiler can only warn and ignore the option if not recognized
13765      # So say no if there are warnings other than the usual output.
13766      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13767      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13768      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13769        lt_cv_prog_compiler_pic_works_CXX=yes
13770      fi
13771    fi
13772    $RM conftest*
13773
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13776 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13777
13778 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13779     case $lt_prog_compiler_pic_CXX in
13780      "" | " "*) ;;
13781      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13782      esac
13783 else
13784     lt_prog_compiler_pic_CXX=
13785      lt_prog_compiler_can_build_shared_CXX=no
13786 fi
13787
13788 fi
13789
13790
13791
13792 #
13793 # Check to make sure the static flag actually works.
13794 #
13795 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13798 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   lt_cv_prog_compiler_static_works_CXX=no
13802    save_LDFLAGS="$LDFLAGS"
13803    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13804    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13805    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13806      # The linker can only warn and ignore the option if not recognized
13807      # So say no if there are warnings
13808      if test -s conftest.err; then
13809        # Append any errors to the config.log.
13810        cat conftest.err 1>&5
13811        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13812        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13813        if diff conftest.exp conftest.er2 >/dev/null; then
13814          lt_cv_prog_compiler_static_works_CXX=yes
13815        fi
13816      else
13817        lt_cv_prog_compiler_static_works_CXX=yes
13818      fi
13819    fi
13820    $RM -r conftest*
13821    LDFLAGS="$save_LDFLAGS"
13822
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13825 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13826
13827 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13828     :
13829 else
13830     lt_prog_compiler_static_CXX=
13831 fi
13832
13833
13834
13835
13836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13838 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13839   $as_echo_n "(cached) " >&6
13840 else
13841   lt_cv_prog_compiler_c_o_CXX=no
13842    $RM -r conftest 2>/dev/null
13843    mkdir conftest
13844    cd conftest
13845    mkdir out
13846    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13847
13848    lt_compiler_flag="-o out/conftest2.$ac_objext"
13849    # Insert the option either (1) after the last *FLAGS variable, or
13850    # (2) before a word containing "conftest.", or (3) at the end.
13851    # Note that $ac_compile itself does not contain backslashes and begins
13852    # with a dollar sign (not a hyphen), so the echo should work correctly.
13853    lt_compile=`echo "$ac_compile" | $SED \
13854    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13855    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13856    -e 's:$: $lt_compiler_flag:'`
13857    (eval echo "\"\$as_me:13857: $lt_compile\"" >&5)
13858    (eval "$lt_compile" 2>out/conftest.err)
13859    ac_status=$?
13860    cat out/conftest.err >&5
13861    echo "$as_me:13861: \$? = $ac_status" >&5
13862    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13863    then
13864      # The compiler can only warn and ignore the option if not recognized
13865      # So say no if there are warnings
13866      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13867      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13868      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13869        lt_cv_prog_compiler_c_o_CXX=yes
13870      fi
13871    fi
13872    chmod u+w . 2>&5
13873    $RM conftest*
13874    # SGI C++ compiler will create directory out/ii_files/ for
13875    # template instantiation
13876    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13877    $RM out/* && rmdir out
13878    cd ..
13879    $RM -r conftest
13880    $RM conftest*
13881
13882 fi
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13884 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13885
13886
13887
13888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13890 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13891   $as_echo_n "(cached) " >&6
13892 else
13893   lt_cv_prog_compiler_c_o_CXX=no
13894    $RM -r conftest 2>/dev/null
13895    mkdir conftest
13896    cd conftest
13897    mkdir out
13898    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13899
13900    lt_compiler_flag="-o out/conftest2.$ac_objext"
13901    # Insert the option either (1) after the last *FLAGS variable, or
13902    # (2) before a word containing "conftest.", or (3) at the end.
13903    # Note that $ac_compile itself does not contain backslashes and begins
13904    # with a dollar sign (not a hyphen), so the echo should work correctly.
13905    lt_compile=`echo "$ac_compile" | $SED \
13906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13908    -e 's:$: $lt_compiler_flag:'`
13909    (eval echo "\"\$as_me:13909: $lt_compile\"" >&5)
13910    (eval "$lt_compile" 2>out/conftest.err)
13911    ac_status=$?
13912    cat out/conftest.err >&5
13913    echo "$as_me:13913: \$? = $ac_status" >&5
13914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13915    then
13916      # The compiler can only warn and ignore the option if not recognized
13917      # So say no if there are warnings
13918      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13921        lt_cv_prog_compiler_c_o_CXX=yes
13922      fi
13923    fi
13924    chmod u+w . 2>&5
13925    $RM conftest*
13926    # SGI C++ compiler will create directory out/ii_files/ for
13927    # template instantiation
13928    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13929    $RM out/* && rmdir out
13930    cd ..
13931    $RM -r conftest
13932    $RM conftest*
13933
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13936 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13937
13938
13939
13940
13941 hard_links="nottested"
13942 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13943   # do not overwrite the value of need_locks provided by the user
13944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13945 $as_echo_n "checking if we can lock with hard links... " >&6; }
13946   hard_links=yes
13947   $RM conftest*
13948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13949   touch conftest.a
13950   ln conftest.a conftest.b 2>&5 || hard_links=no
13951   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13953 $as_echo "$hard_links" >&6; }
13954   if test "$hard_links" = no; then
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13956 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13957     need_locks=warn
13958   fi
13959 else
13960   need_locks=no
13961 fi
13962
13963
13964
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13967
13968   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13969   case $host_os in
13970   aix[4-9]*)
13971     # If we're using GNU nm, then we don't want the "-C" option.
13972     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13973     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13974       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'
13975     else
13976       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'
13977     fi
13978     ;;
13979   pw32*)
13980     export_symbols_cmds_CXX="$ltdll_cmds"
13981   ;;
13982   cygwin* | mingw* | cegcc*)
13983     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'
13984   ;;
13985   linux* | k*bsd*-gnu)
13986     link_all_deplibs_CXX=no
13987   ;;
13988   *)
13989     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13990   ;;
13991   esac
13992   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13995 $as_echo "$ld_shlibs_CXX" >&6; }
13996 test "$ld_shlibs_CXX" = no && can_build_shared=no
13997
13998 with_gnu_ld_CXX=$with_gnu_ld
13999
14000
14001
14002
14003
14004
14005 #
14006 # Do we need to explicitly link libc?
14007 #
14008 case "x$archive_cmds_need_lc_CXX" in
14009 x|xyes)
14010   # Assume -lc should be added
14011   archive_cmds_need_lc_CXX=yes
14012
14013   if test "$enable_shared" = yes && test "$GCC" = yes; then
14014     case $archive_cmds_CXX in
14015     *'~'*)
14016       # FIXME: we may have to deal with multi-command sequences.
14017       ;;
14018     '$CC '*)
14019       # Test whether the compiler implicitly links with -lc since on some
14020       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14021       # to ld, don't add -lc before -lgcc.
14022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14023 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14024       $RM conftest*
14025       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14026
14027       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031   test $ac_status = 0; } 2>conftest.err; then
14032         soname=conftest
14033         lib=conftest
14034         libobjs=conftest.$ac_objext
14035         deplibs=
14036         wl=$lt_prog_compiler_wl_CXX
14037         pic_flag=$lt_prog_compiler_pic_CXX
14038         compiler_flags=-v
14039         linker_flags=-v
14040         verstring=
14041         output_objdir=.
14042         libname=conftest
14043         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14044         allow_undefined_flag_CXX=
14045         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14046   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14047   ac_status=$?
14048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049   test $ac_status = 0; }
14050         then
14051           archive_cmds_need_lc_CXX=no
14052         else
14053           archive_cmds_need_lc_CXX=yes
14054         fi
14055         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14056       else
14057         cat conftest.err 1>&5
14058       fi
14059       $RM conftest*
14060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14061 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14062       ;;
14063     esac
14064   fi
14065   ;;
14066 esac
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14133
14134 library_names_spec=
14135 libname_spec='lib$name'
14136 soname_spec=
14137 shrext_cmds=".so"
14138 postinstall_cmds=
14139 postuninstall_cmds=
14140 finish_cmds=
14141 finish_eval=
14142 shlibpath_var=
14143 shlibpath_overrides_runpath=unknown
14144 version_type=none
14145 dynamic_linker="$host_os ld.so"
14146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14147 need_lib_prefix=unknown
14148 hardcode_into_libs=no
14149
14150 # when you set need_version to no, make sure it does not cause -set_version
14151 # flags to be left without arguments
14152 need_version=unknown
14153
14154 case $host_os in
14155 aix3*)
14156   version_type=linux
14157   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14158   shlibpath_var=LIBPATH
14159
14160   # AIX 3 has no versioning support, so we append a major version to the name.
14161   soname_spec='${libname}${release}${shared_ext}$major'
14162   ;;
14163
14164 aix[4-9]*)
14165   version_type=linux
14166   need_lib_prefix=no
14167   need_version=no
14168   hardcode_into_libs=yes
14169   if test "$host_cpu" = ia64; then
14170     # AIX 5 supports IA64
14171     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14172     shlibpath_var=LD_LIBRARY_PATH
14173   else
14174     # With GCC up to 2.95.x, collect2 would create an import file
14175     # for dependence libraries.  The import file would start with
14176     # the line `#! .'.  This would cause the generated library to
14177     # depend on `.', always an invalid library.  This was fixed in
14178     # development snapshots of GCC prior to 3.0.
14179     case $host_os in
14180       aix4 | aix4.[01] | aix4.[01].*)
14181       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14182            echo ' yes '
14183            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14184         :
14185       else
14186         can_build_shared=no
14187       fi
14188       ;;
14189     esac
14190     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14191     # soname into executable. Probably we can add versioning support to
14192     # collect2, so additional links can be useful in future.
14193     if test "$aix_use_runtimelinking" = yes; then
14194       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14195       # instead of lib<name>.a to let people know that these are not
14196       # typical AIX shared libraries.
14197       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198     else
14199       # We preserve .a as extension for shared libraries through AIX4.2
14200       # and later when we are not doing run time linking.
14201       library_names_spec='${libname}${release}.a $libname.a'
14202       soname_spec='${libname}${release}${shared_ext}$major'
14203     fi
14204     shlibpath_var=LIBPATH
14205   fi
14206   ;;
14207
14208 amigaos*)
14209   case $host_cpu in
14210   powerpc)
14211     # Since July 2007 AmigaOS4 officially supports .so libraries.
14212     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214     ;;
14215   m68k)
14216     library_names_spec='$libname.ixlibrary $libname.a'
14217     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14218     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'
14219     ;;
14220   esac
14221   ;;
14222
14223 beos*)
14224   library_names_spec='${libname}${shared_ext}'
14225   dynamic_linker="$host_os ld.so"
14226   shlibpath_var=LIBRARY_PATH
14227   ;;
14228
14229 bsdi[45]*)
14230   version_type=linux
14231   need_version=no
14232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233   soname_spec='${libname}${release}${shared_ext}$major'
14234   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14235   shlibpath_var=LD_LIBRARY_PATH
14236   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14237   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14238   # the default ld.so.conf also contains /usr/contrib/lib and
14239   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14240   # libtool to hard-code these into programs
14241   ;;
14242
14243 cygwin* | mingw* | pw32* | cegcc*)
14244   version_type=windows
14245   shrext_cmds=".dll"
14246   need_version=no
14247   need_lib_prefix=no
14248
14249   case $GCC,$host_os in
14250   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14251     library_names_spec='$libname.dll.a'
14252     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14253     postinstall_cmds='base_file=`basename \${file}`~
14254       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14255       dldir=$destdir/`dirname \$dlpath`~
14256       test -d \$dldir || mkdir -p \$dldir~
14257       $install_prog $dir/$dlname \$dldir/$dlname~
14258       chmod a+x \$dldir/$dlname~
14259       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14260         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14261       fi'
14262     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14263       dlpath=$dir/\$dldll~
14264        $RM \$dlpath'
14265     shlibpath_overrides_runpath=yes
14266
14267     case $host_os in
14268     cygwin*)
14269       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14270       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14271       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14272       ;;
14273     mingw* | cegcc*)
14274       # MinGW DLLs use traditional 'lib' prefix
14275       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14276       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14277       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14278         # It is most probably a Windows format PATH printed by
14279         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14280         # path with ; separators, and with drive letters. We can handle the
14281         # drive letters (cygwin fileutils understands them), so leave them,
14282         # especially as we might pass files found there to a mingw objdump,
14283         # which wouldn't understand a cygwinified path. Ahh.
14284         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14285       else
14286         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14287       fi
14288       ;;
14289     pw32*)
14290       # pw32 DLLs use 'pw' prefix rather than 'lib'
14291       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14292       ;;
14293     esac
14294     ;;
14295
14296   *)
14297     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14298     ;;
14299   esac
14300   dynamic_linker='Win32 ld.exe'
14301   # FIXME: first we should search . and the directory the executable is in
14302   shlibpath_var=PATH
14303   ;;
14304
14305 darwin* | rhapsody*)
14306   dynamic_linker="$host_os dyld"
14307   version_type=darwin
14308   need_lib_prefix=no
14309   need_version=no
14310   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14311   soname_spec='${libname}${release}${major}$shared_ext'
14312   shlibpath_overrides_runpath=yes
14313   shlibpath_var=DYLD_LIBRARY_PATH
14314   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14315
14316   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14317   ;;
14318
14319 dgux*)
14320   version_type=linux
14321   need_lib_prefix=no
14322   need_version=no
14323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14324   soname_spec='${libname}${release}${shared_ext}$major'
14325   shlibpath_var=LD_LIBRARY_PATH
14326   ;;
14327
14328 freebsd1*)
14329   dynamic_linker=no
14330   ;;
14331
14332 freebsd* | dragonfly*)
14333   # DragonFly does not have aout.  When/if they implement a new
14334   # versioning mechanism, adjust this.
14335   if test -x /usr/bin/objformat; then
14336     objformat=`/usr/bin/objformat`
14337   else
14338     case $host_os in
14339     freebsd[123]*) objformat=aout ;;
14340     *) objformat=elf ;;
14341     esac
14342   fi
14343   version_type=freebsd-$objformat
14344   case $version_type in
14345     freebsd-elf*)
14346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14347       need_version=no
14348       need_lib_prefix=no
14349       ;;
14350     freebsd-*)
14351       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14352       need_version=yes
14353       ;;
14354   esac
14355   shlibpath_var=LD_LIBRARY_PATH
14356   case $host_os in
14357   freebsd2*)
14358     shlibpath_overrides_runpath=yes
14359     ;;
14360   freebsd3.[01]* | freebsdelf3.[01]*)
14361     shlibpath_overrides_runpath=yes
14362     hardcode_into_libs=yes
14363     ;;
14364   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14365   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14366     shlibpath_overrides_runpath=no
14367     hardcode_into_libs=yes
14368     ;;
14369   *) # from 4.6 on, and DragonFly
14370     shlibpath_overrides_runpath=yes
14371     hardcode_into_libs=yes
14372     ;;
14373   esac
14374   ;;
14375
14376 gnu*)
14377   version_type=linux
14378   need_lib_prefix=no
14379   need_version=no
14380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14381   soname_spec='${libname}${release}${shared_ext}$major'
14382   shlibpath_var=LD_LIBRARY_PATH
14383   hardcode_into_libs=yes
14384   ;;
14385
14386 hpux9* | hpux10* | hpux11*)
14387   # Give a soname corresponding to the major version so that dld.sl refuses to
14388   # link against other versions.
14389   version_type=sunos
14390   need_lib_prefix=no
14391   need_version=no
14392   case $host_cpu in
14393   ia64*)
14394     shrext_cmds='.so'
14395     hardcode_into_libs=yes
14396     dynamic_linker="$host_os dld.so"
14397     shlibpath_var=LD_LIBRARY_PATH
14398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400     soname_spec='${libname}${release}${shared_ext}$major'
14401     if test "X$HPUX_IA64_MODE" = X32; then
14402       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14403     else
14404       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14405     fi
14406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14407     ;;
14408   hppa*64*)
14409     shrext_cmds='.sl'
14410     hardcode_into_libs=yes
14411     dynamic_linker="$host_os dld.sl"
14412     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14413     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415     soname_spec='${libname}${release}${shared_ext}$major'
14416     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14417     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14418     ;;
14419   *)
14420     shrext_cmds='.sl'
14421     dynamic_linker="$host_os dld.sl"
14422     shlibpath_var=SHLIB_PATH
14423     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425     soname_spec='${libname}${release}${shared_ext}$major'
14426     ;;
14427   esac
14428   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14429   postinstall_cmds='chmod 555 $lib'
14430   ;;
14431
14432 interix[3-9]*)
14433   version_type=linux
14434   need_lib_prefix=no
14435   need_version=no
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14437   soname_spec='${libname}${release}${shared_ext}$major'
14438   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   shlibpath_overrides_runpath=no
14441   hardcode_into_libs=yes
14442   ;;
14443
14444 irix5* | irix6* | nonstopux*)
14445   case $host_os in
14446     nonstopux*) version_type=nonstopux ;;
14447     *)
14448         if test "$lt_cv_prog_gnu_ld" = yes; then
14449                 version_type=linux
14450         else
14451                 version_type=irix
14452         fi ;;
14453   esac
14454   need_lib_prefix=no
14455   need_version=no
14456   soname_spec='${libname}${release}${shared_ext}$major'
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14458   case $host_os in
14459   irix5* | nonstopux*)
14460     libsuff= shlibsuff=
14461     ;;
14462   *)
14463     case $LD in # libtool.m4 will add one of these switches to LD
14464     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14465       libsuff= shlibsuff= libmagic=32-bit;;
14466     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14467       libsuff=32 shlibsuff=N32 libmagic=N32;;
14468     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14469       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14470     *) libsuff= shlibsuff= libmagic=never-match;;
14471     esac
14472     ;;
14473   esac
14474   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14475   shlibpath_overrides_runpath=no
14476   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14477   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14478   hardcode_into_libs=yes
14479   ;;
14480
14481 # No shared lib support for Linux oldld, aout, or coff.
14482 linux*oldld* | linux*aout* | linux*coff*)
14483   dynamic_linker=no
14484   ;;
14485
14486 # This must be Linux ELF.
14487 linux* | k*bsd*-gnu)
14488   version_type=linux
14489   need_lib_prefix=no
14490   need_version=no
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14494   shlibpath_var=LD_LIBRARY_PATH
14495   shlibpath_overrides_runpath=no
14496   # Some binutils ld are patched to set DT_RUNPATH
14497   save_LDFLAGS=$LDFLAGS
14498   save_libdir=$libdir
14499   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14500        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503
14504 int
14505 main ()
14506 {
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_cxx_try_link "$LINENO"; then :
14513   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14514   shlibpath_overrides_runpath=yes
14515 fi
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext \
14518     conftest$ac_exeext conftest.$ac_ext
14519   LDFLAGS=$save_LDFLAGS
14520   libdir=$save_libdir
14521
14522   # This implies no fast_install, which is unacceptable.
14523   # Some rework will be needed to allow for fast_install
14524   # before this can be enabled.
14525   hardcode_into_libs=yes
14526
14527   # Append ld.so.conf contents to the search path
14528   if test -f /etc/ld.so.conf; then
14529     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' ' '`
14530     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14531   fi
14532
14533   # We used to test for /lib/ld.so.1 and disable shared libraries on
14534   # powerpc, because MkLinux only supported shared libraries with the
14535   # GNU dynamic linker.  Since this was broken with cross compilers,
14536   # most powerpc-linux boxes support dynamic linking these days and
14537   # people can always --disable-shared, the test was removed, and we
14538   # assume the GNU/Linux dynamic linker is in use.
14539   dynamic_linker='GNU/Linux ld.so'
14540   ;;
14541
14542 netbsdelf*-gnu)
14543   version_type=linux
14544   need_lib_prefix=no
14545   need_version=no
14546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14547   soname_spec='${libname}${release}${shared_ext}$major'
14548   shlibpath_var=LD_LIBRARY_PATH
14549   shlibpath_overrides_runpath=no
14550   hardcode_into_libs=yes
14551   dynamic_linker='NetBSD ld.elf_so'
14552   ;;
14553
14554 netbsd*)
14555   version_type=sunos
14556   need_lib_prefix=no
14557   need_version=no
14558   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14560     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14561     dynamic_linker='NetBSD (a.out) ld.so'
14562   else
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     dynamic_linker='NetBSD ld.elf_so'
14566   fi
14567   shlibpath_var=LD_LIBRARY_PATH
14568   shlibpath_overrides_runpath=yes
14569   hardcode_into_libs=yes
14570   ;;
14571
14572 newsos6)
14573   version_type=linux
14574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575   shlibpath_var=LD_LIBRARY_PATH
14576   shlibpath_overrides_runpath=yes
14577   ;;
14578
14579 *nto* | *qnx*)
14580   version_type=qnx
14581   need_lib_prefix=no
14582   need_version=no
14583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   shlibpath_var=LD_LIBRARY_PATH
14586   shlibpath_overrides_runpath=no
14587   hardcode_into_libs=yes
14588   dynamic_linker='ldqnx.so'
14589   ;;
14590
14591 openbsd*)
14592   version_type=sunos
14593   sys_lib_dlsearch_path_spec="/usr/lib"
14594   need_lib_prefix=no
14595   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14596   case $host_os in
14597     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14598     *)                          need_version=no  ;;
14599   esac
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14602   shlibpath_var=LD_LIBRARY_PATH
14603   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14604     case $host_os in
14605       openbsd2.[89] | openbsd2.[89].*)
14606         shlibpath_overrides_runpath=no
14607         ;;
14608       *)
14609         shlibpath_overrides_runpath=yes
14610         ;;
14611       esac
14612   else
14613     shlibpath_overrides_runpath=yes
14614   fi
14615   ;;
14616
14617 os2*)
14618   libname_spec='$name'
14619   shrext_cmds=".dll"
14620   need_lib_prefix=no
14621   library_names_spec='$libname${shared_ext} $libname.a'
14622   dynamic_linker='OS/2 ld.exe'
14623   shlibpath_var=LIBPATH
14624   ;;
14625
14626 osf3* | osf4* | osf5*)
14627   version_type=osf
14628   need_lib_prefix=no
14629   need_version=no
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14634   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14635   ;;
14636
14637 rdos*)
14638   dynamic_linker=no
14639   ;;
14640
14641 solaris*)
14642   version_type=linux
14643   need_lib_prefix=no
14644   need_version=no
14645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646   soname_spec='${libname}${release}${shared_ext}$major'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   shlibpath_overrides_runpath=yes
14649   hardcode_into_libs=yes
14650   # ldd complains unless libraries are executable
14651   postinstall_cmds='chmod +x $lib'
14652   ;;
14653
14654 sunos4*)
14655   version_type=sunos
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14657   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14658   shlibpath_var=LD_LIBRARY_PATH
14659   shlibpath_overrides_runpath=yes
14660   if test "$with_gnu_ld" = yes; then
14661     need_lib_prefix=no
14662   fi
14663   need_version=yes
14664   ;;
14665
14666 sysv4 | sysv4.3*)
14667   version_type=linux
14668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669   soname_spec='${libname}${release}${shared_ext}$major'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   case $host_vendor in
14672     sni)
14673       shlibpath_overrides_runpath=no
14674       need_lib_prefix=no
14675       runpath_var=LD_RUN_PATH
14676       ;;
14677     siemens)
14678       need_lib_prefix=no
14679       ;;
14680     motorola)
14681       need_lib_prefix=no
14682       need_version=no
14683       shlibpath_overrides_runpath=no
14684       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14685       ;;
14686   esac
14687   ;;
14688
14689 sysv4*MP*)
14690   if test -d /usr/nec ;then
14691     version_type=linux
14692     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14693     soname_spec='$libname${shared_ext}.$major'
14694     shlibpath_var=LD_LIBRARY_PATH
14695   fi
14696   ;;
14697
14698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14699   version_type=freebsd-elf
14700   need_lib_prefix=no
14701   need_version=no
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   shlibpath_overrides_runpath=yes
14706   hardcode_into_libs=yes
14707   if test "$with_gnu_ld" = yes; then
14708     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14709   else
14710     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14711     case $host_os in
14712       sco3.2v5*)
14713         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14714         ;;
14715     esac
14716   fi
14717   sys_lib_dlsearch_path_spec='/usr/lib'
14718   ;;
14719
14720 tpf*)
14721   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14722   version_type=linux
14723   need_lib_prefix=no
14724   need_version=no
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   shlibpath_overrides_runpath=no
14728   hardcode_into_libs=yes
14729   ;;
14730
14731 uts4*)
14732   version_type=linux
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   shlibpath_var=LD_LIBRARY_PATH
14736   ;;
14737
14738 *)
14739   dynamic_linker=no
14740   ;;
14741 esac
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14743 $as_echo "$dynamic_linker" >&6; }
14744 test "$dynamic_linker" = no && can_build_shared=no
14745
14746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14747 if test "$GCC" = yes; then
14748   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14749 fi
14750
14751 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14752   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14753 fi
14754 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14755   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14756 fi
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14795 hardcode_action_CXX=
14796 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14797    test -n "$runpath_var_CXX" ||
14798    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14799
14800   # We can hardcode non-existent directories.
14801   if test "$hardcode_direct_CXX" != no &&
14802      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14803      # have to relink, otherwise we might link with an installed library
14804      # when we should be linking with a yet-to-be-installed one
14805      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14806      test "$hardcode_minus_L_CXX" != no; then
14807     # Linking always hardcodes the temporary library directory.
14808     hardcode_action_CXX=relink
14809   else
14810     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14811     hardcode_action_CXX=immediate
14812   fi
14813 else
14814   # We cannot hardcode anything, or else we can only hardcode existing
14815   # directories.
14816   hardcode_action_CXX=unsupported
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14819 $as_echo "$hardcode_action_CXX" >&6; }
14820
14821 if test "$hardcode_action_CXX" = relink ||
14822    test "$inherit_rpath_CXX" = yes; then
14823   # Fast installation is not supported
14824   enable_fast_install=no
14825 elif test "$shlibpath_overrides_runpath" = yes ||
14826      test "$enable_shared" = no; then
14827   # Fast installation is not necessary
14828   enable_fast_install=needless
14829 fi
14830
14831
14832
14833
14834
14835
14836
14837   fi # test -n "$compiler"
14838
14839   CC=$lt_save_CC
14840   LDCXX=$LD
14841   LD=$lt_save_LD
14842   GCC=$lt_save_GCC
14843   with_gnu_ld=$lt_save_with_gnu_ld
14844   lt_cv_path_LDCXX=$lt_cv_path_LD
14845   lt_cv_path_LD=$lt_save_path_LD
14846   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14847   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14848 fi # test "$_lt_caught_CXX_error" != yes
14849
14850 ac_ext=c
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868         ac_config_commands="$ac_config_commands libtool"
14869
14870
14871
14872
14873 # Only expand once:
14874
14875
14876
14877 # Extract the first word of "autogen", so it can be a program name with args.
14878 set dummy autogen; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 $as_echo_n "checking for $ac_word... " >&6; }
14881 if test "${ac_cv_prog_HAVE_AUTOGEN+set}" = set; then :
14882   $as_echo_n "(cached) " >&6
14883 else
14884   if test -n "$HAVE_AUTOGEN"; then
14885   ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
14886 else
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14889 do
14890   IFS=$as_save_IFS
14891   test -z "$as_dir" && as_dir=.
14892     for ac_exec_ext in '' $ac_executable_extensions; do
14893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14894     ac_cv_prog_HAVE_AUTOGEN="yes"
14895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896     break 2
14897   fi
14898 done
14899   done
14900 IFS=$as_save_IFS
14901
14902   test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
14903 fi
14904 fi
14905 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
14906 if test -n "$HAVE_AUTOGEN"; then
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
14908 $as_echo "$HAVE_AUTOGEN" >&6; }
14909 else
14910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14912 fi
14913
14914
14915 # Extract the first word of "wine", so it can be a program name with args.
14916 set dummy wine; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if test "${ac_cv_prog_HAVE_WINE+set}" = set; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   if test -n "$HAVE_WINE"; then
14923   ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
14924 else
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14927 do
14928   IFS=$as_save_IFS
14929   test -z "$as_dir" && as_dir=.
14930     for ac_exec_ext in '' $ac_executable_extensions; do
14931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14932     ac_cv_prog_HAVE_WINE="yes"
14933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14934     break 2
14935   fi
14936 done
14937   done
14938 IFS=$as_save_IFS
14939
14940   test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
14941 fi
14942 fi
14943 HAVE_WINE=$ac_cv_prog_HAVE_WINE
14944 if test -n "$HAVE_WINE"; then
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
14946 $as_echo "$HAVE_WINE" >&6; }
14947 else
14948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14950 fi
14951
14952
14953
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14956 $as_echo_n "checking whether ln -s works... " >&6; }
14957 LN_S=$as_ln_s
14958 if test "$LN_S" = "ln -s"; then
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14960 $as_echo "yes" >&6; }
14961 else
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14963 $as_echo "no, using $LN_S" >&6; }
14964 fi
14965
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14968 $as_echo_n "checking for ANSI C header files... " >&6; }
14969 if test "${ac_cv_header_stdc+set}" = set; then :
14970   $as_echo_n "(cached) " >&6
14971 else
14972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h.  */
14974 #include <stdlib.h>
14975 #include <stdarg.h>
14976 #include <string.h>
14977 #include <float.h>
14978
14979 int
14980 main ()
14981 {
14982
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_compile "$LINENO"; then :
14988   ac_cv_header_stdc=yes
14989 else
14990   ac_cv_header_stdc=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993
14994 if test $ac_cv_header_stdc = yes; then
14995   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h.  */
14998 #include <string.h>
14999
15000 _ACEOF
15001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15002   $EGREP "memchr" >/dev/null 2>&1; then :
15003
15004 else
15005   ac_cv_header_stdc=no
15006 fi
15007 rm -f conftest*
15008
15009 fi
15010
15011 if test $ac_cv_header_stdc = yes; then
15012   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h.  */
15015 #include <stdlib.h>
15016
15017 _ACEOF
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019   $EGREP "free" >/dev/null 2>&1; then :
15020
15021 else
15022   ac_cv_header_stdc=no
15023 fi
15024 rm -f conftest*
15025
15026 fi
15027
15028 if test $ac_cv_header_stdc = yes; then
15029   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15030   if test "$cross_compiling" = yes; then :
15031   :
15032 else
15033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h.  */
15035 #include <ctype.h>
15036 #include <stdlib.h>
15037 #if ((' ' & 0x0FF) == 0x020)
15038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15040 #else
15041 # define ISLOWER(c) \
15042                    (('a' <= (c) && (c) <= 'i') \
15043                      || ('j' <= (c) && (c) <= 'r') \
15044                      || ('s' <= (c) && (c) <= 'z'))
15045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15046 #endif
15047
15048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15049 int
15050 main ()
15051 {
15052   int i;
15053   for (i = 0; i < 256; i++)
15054     if (XOR (islower (i), ISLOWER (i))
15055         || toupper (i) != TOUPPER (i))
15056       return 2;
15057   return 0;
15058 }
15059 _ACEOF
15060 if ac_fn_c_try_run "$LINENO"; then :
15061
15062 else
15063   ac_cv_header_stdc=no
15064 fi
15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15066   conftest.$ac_objext conftest.beam conftest.$ac_ext
15067 fi
15068
15069 fi
15070 fi
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15072 $as_echo "$ac_cv_header_stdc" >&6; }
15073 if test $ac_cv_header_stdc = yes; then
15074
15075 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15076
15077 fi
15078
15079
15080 for ac_header in endian.h
15081 do :
15082   ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
15083 if test "x$ac_cv_header_endian_h" = x""yes; then :
15084   cat >>confdefs.h <<_ACEOF
15085 #define HAVE_ENDIAN_H 1
15086 _ACEOF
15087
15088 fi
15089
15090 done
15091
15092 for ac_header in byteswap.h
15093 do :
15094   ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
15095 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
15096   cat >>confdefs.h <<_ACEOF
15097 #define HAVE_BYTESWAP_H 1
15098 _ACEOF
15099
15100 fi
15101
15102 done
15103
15104 for ac_header in locale.h
15105 do :
15106   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15107 if test "x$ac_cv_header_locale_h" = x""yes; then :
15108   cat >>confdefs.h <<_ACEOF
15109 #define HAVE_LOCALE_H 1
15110 _ACEOF
15111
15112 fi
15113
15114 done
15115
15116 for ac_header in sys/time.h
15117 do :
15118   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15119 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
15120   cat >>confdefs.h <<_ACEOF
15121 #define HAVE_SYS_TIME_H 1
15122 _ACEOF
15123
15124 fi
15125
15126 done
15127
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15130 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15131 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
15132   $as_echo_n "(cached) " >&6
15133 else
15134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h.  */
15136 #include <sys/types.h>
15137 #include <sys/wait.h>
15138 #ifndef WEXITSTATUS
15139 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15140 #endif
15141 #ifndef WIFEXITED
15142 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15143 #endif
15144
15145 int
15146 main ()
15147 {
15148   int s;
15149   wait (&s);
15150   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 if ac_fn_c_try_compile "$LINENO"; then :
15156   ac_cv_header_sys_wait_h=yes
15157 else
15158   ac_cv_header_sys_wait_h=no
15159 fi
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 fi
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15163 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15164 if test $ac_cv_header_sys_wait_h = yes; then
15165
15166 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15167
15168 fi
15169
15170
15171 ac_fn_c_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default"
15172 if test "x$ac_cv_have_decl_S_IRGRP" = x""yes; then :
15173   ac_have_decl=1
15174 else
15175   ac_have_decl=0
15176 fi
15177
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_DECL_S_IRGRP $ac_have_decl
15180 _ACEOF
15181
15182 if test x$ac_cv_have_decl_S_IRGRP = xyes ; then
15183
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_S_IRGRP 1
15186 _ACEOF
15187
15188 else
15189         cat >>confdefs.h <<_ACEOF
15190 #define HAVE_DECL_S_IRGRP 0
15191 _ACEOF
15192
15193         fi
15194
15195  if test "$build_os:$target_os:$host_os:$HAVE_WINE" = "linux-gnu:mingw32msvc:mingw32msvc:yes"; then
15196   LINUX_MINGW_CROSS_TEST_TRUE=
15197   LINUX_MINGW_CROSS_TEST_FALSE='#'
15198 else
15199   LINUX_MINGW_CROSS_TEST_TRUE='#'
15200   LINUX_MINGW_CROSS_TEST_FALSE=
15201 fi
15202
15203
15204 #====================================================================================
15205 # Check for support of the struct hack.
15206
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C99 struct flexible array support" >&5
15208 $as_echo_n "checking C99 struct flexible array support... " >&6; }
15209 if test "${ac_cv_c99_flexible_array+set}" = set; then :
15210   $as_echo_n "(cached) " >&6
15211 else
15212   # Initialize to unknown
15213 ac_cv_c99_flexible_array=no
15214
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217
15218         #include <stdlib.h>
15219         typedef struct {
15220         int k;
15221         char buffer [] ;
15222         } MY_STRUCT ;
15223
15224 int
15225 main ()
15226 {
15227   MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"; then :
15233   ac_cv_c99_flexible_array=yes
15234 else
15235   ac_cv_c99_flexible_array=no
15236
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext \
15239     conftest$ac_exeext conftest.$ac_ext
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_flexible_array" >&5
15242 $as_echo "$ac_cv_c99_flexible_array" >&6; }
15243
15244
15245 if test x$ac_cv_c99_flexible_array = xyes ; then
15246
15247 $as_echo "#define HAVE_FLEXIBLE_ARRAY 1" >>confdefs.h
15248
15249 else
15250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
15251 $as_echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
15252         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** feature known as the flexible array struct member.     ***" >&5
15253 $as_echo "$as_me: WARNING: *** feature known as the flexible array struct member.     ***" >&2;}
15254         $as_echo "#define HAVE_FLEXIBLE_ARRAY 0" >>confdefs.h
15255
15256         fi
15257
15258 #====================================================================================
15259 # Couple of initializations here. Fill in real values later.
15260
15261 SHLIB_VERSION_ARG=""
15262
15263 #====================================================================================
15264 # Finished checking, handle options.
15265
15266 # Check whether --enable-experimental was given.
15267 if test "${enable_experimental+set}" = set; then :
15268   enableval=$enable_experimental;
15269 fi
15270
15271
15272 EXPERIMENTAL_CODE=0
15273 if test x$enable_experimental = xyes ; then
15274         EXPERIMENTAL_CODE=1
15275         fi
15276
15277 cat >>confdefs.h <<_ACEOF
15278 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
15279 _ACEOF
15280
15281
15282 # Check whether --enable-gcc-werror was given.
15283 if test "${enable_gcc_werror+set}" = set; then :
15284   enableval=$enable_gcc_werror;
15285 fi
15286
15287
15288 # Check whether --enable-gcc-pipe was given.
15289 if test "${enable_gcc_pipe+set}" = set; then :
15290   enableval=$enable_gcc_pipe;
15291 fi
15292
15293
15294 # Check whether --enable-gcc-opt was given.
15295 if test "${enable_gcc_opt+set}" = set; then :
15296   enableval=$enable_gcc_opt;
15297 fi
15298
15299
15300 # Check whether --enable-cpu-clip was given.
15301 if test "${enable_cpu_clip+set}" = set; then :
15302   enableval=$enable_cpu_clip;
15303 fi
15304
15305
15306 # Check whether --enable-bow-docs was given.
15307 if test "${enable_bow_docs+set}" = set; then :
15308   enableval=$enable_bow_docs;
15309 fi
15310
15311
15312 # Check whether --enable-sqlite was given.
15313 if test "${enable_sqlite+set}" = set; then :
15314   enableval=$enable_sqlite;
15315 fi
15316
15317
15318 # Check whether --enable-alsa was given.
15319 if test "${enable_alsa+set}" = set; then :
15320   enableval=$enable_alsa;
15321 fi
15322
15323
15324 # Check whether --enable-external-libs was given.
15325 if test "${enable_external_libs+set}" = set; then :
15326   enableval=$enable_external_libs;
15327 fi
15328
15329
15330 # Check whether --enable-octave was given.
15331 if test "${enable_octave+set}" = set; then :
15332   enableval=$enable_octave;
15333 fi
15334
15335
15336 # Check whether --enable-test-coverage was given.
15337 if test "${enable_test_coverage+set}" = set; then :
15338   enableval=$enable_test_coverage;
15339 fi
15340
15341  if test "$enable_test_coverage" = yes; then
15342   ENABLE_TEST_COVERAGE_TRUE=
15343   ENABLE_TEST_COVERAGE_FALSE='#'
15344 else
15345   ENABLE_TEST_COVERAGE_TRUE='#'
15346   ENABLE_TEST_COVERAGE_FALSE=
15347 fi
15348
15349
15350 #====================================================================================
15351 # Check types and their sizes.
15352
15353 # The cast to long int works around a bug in the HP C Compiler
15354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15356 # This bug is HP SR number 8606223364.
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15358 $as_echo_n "checking size of wchar_t... " >&6; }
15359 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
15363
15364 else
15365   if test "$ac_cv_type_wchar_t" = yes; then
15366      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15368 { as_fn_set_status 77
15369 as_fn_error "cannot compute sizeof (wchar_t)
15370 See \`config.log' for more details." "$LINENO" 5; }; }
15371    else
15372      ac_cv_sizeof_wchar_t=0
15373    fi
15374 fi
15375
15376 fi
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15378 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15379
15380
15381
15382 cat >>confdefs.h <<_ACEOF
15383 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15384 _ACEOF
15385
15386
15387 # The cast to long int works around a bug in the HP C Compiler
15388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15390 # This bug is HP SR number 8606223364.
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15392 $as_echo_n "checking size of short... " >&6; }
15393 if test "${ac_cv_sizeof_short+set}" = set; then :
15394   $as_echo_n "(cached) " >&6
15395 else
15396   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15397
15398 else
15399   if test "$ac_cv_type_short" = yes; then
15400      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15402 { as_fn_set_status 77
15403 as_fn_error "cannot compute sizeof (short)
15404 See \`config.log' for more details." "$LINENO" 5; }; }
15405    else
15406      ac_cv_sizeof_short=0
15407    fi
15408 fi
15409
15410 fi
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15412 $as_echo "$ac_cv_sizeof_short" >&6; }
15413
15414
15415
15416 cat >>confdefs.h <<_ACEOF
15417 #define SIZEOF_SHORT $ac_cv_sizeof_short
15418 _ACEOF
15419
15420
15421 # The cast to long int works around a bug in the HP C Compiler
15422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15424 # This bug is HP SR number 8606223364.
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15426 $as_echo_n "checking size of int... " >&6; }
15427 if test "${ac_cv_sizeof_int+set}" = set; then :
15428   $as_echo_n "(cached) " >&6
15429 else
15430   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15431
15432 else
15433   if test "$ac_cv_type_int" = yes; then
15434      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15436 { as_fn_set_status 77
15437 as_fn_error "cannot compute sizeof (int)
15438 See \`config.log' for more details." "$LINENO" 5; }; }
15439    else
15440      ac_cv_sizeof_int=0
15441    fi
15442 fi
15443
15444 fi
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15446 $as_echo "$ac_cv_sizeof_int" >&6; }
15447
15448
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define SIZEOF_INT $ac_cv_sizeof_int
15452 _ACEOF
15453
15454
15455 # The cast to long int works around a bug in the HP C Compiler
15456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15458 # This bug is HP SR number 8606223364.
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15460 $as_echo_n "checking size of long... " >&6; }
15461 if test "${ac_cv_sizeof_long+set}" = set; then :
15462   $as_echo_n "(cached) " >&6
15463 else
15464   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15465
15466 else
15467   if test "$ac_cv_type_long" = yes; then
15468      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15470 { as_fn_set_status 77
15471 as_fn_error "cannot compute sizeof (long)
15472 See \`config.log' for more details." "$LINENO" 5; }; }
15473    else
15474      ac_cv_sizeof_long=0
15475    fi
15476 fi
15477
15478 fi
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15480 $as_echo "$ac_cv_sizeof_long" >&6; }
15481
15482
15483
15484 cat >>confdefs.h <<_ACEOF
15485 #define SIZEOF_LONG $ac_cv_sizeof_long
15486 _ACEOF
15487
15488
15489 # The cast to long int works around a bug in the HP C Compiler
15490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15492 # This bug is HP SR number 8606223364.
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15494 $as_echo_n "checking size of float... " >&6; }
15495 if test "${ac_cv_sizeof_float+set}" = set; then :
15496   $as_echo_n "(cached) " >&6
15497 else
15498   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
15499
15500 else
15501   if test "$ac_cv_type_float" = yes; then
15502      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15504 { as_fn_set_status 77
15505 as_fn_error "cannot compute sizeof (float)
15506 See \`config.log' for more details." "$LINENO" 5; }; }
15507    else
15508      ac_cv_sizeof_float=0
15509    fi
15510 fi
15511
15512 fi
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15514 $as_echo "$ac_cv_sizeof_float" >&6; }
15515
15516
15517
15518 cat >>confdefs.h <<_ACEOF
15519 #define SIZEOF_FLOAT $ac_cv_sizeof_float
15520 _ACEOF
15521
15522
15523 # The cast to long int works around a bug in the HP C Compiler
15524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15526 # This bug is HP SR number 8606223364.
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15528 $as_echo_n "checking size of double... " >&6; }
15529 if test "${ac_cv_sizeof_double+set}" = set; then :
15530   $as_echo_n "(cached) " >&6
15531 else
15532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
15533
15534 else
15535   if test "$ac_cv_type_double" = yes; then
15536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15538 { as_fn_set_status 77
15539 as_fn_error "cannot compute sizeof (double)
15540 See \`config.log' for more details." "$LINENO" 5; }; }
15541    else
15542      ac_cv_sizeof_double=0
15543    fi
15544 fi
15545
15546 fi
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15548 $as_echo "$ac_cv_sizeof_double" >&6; }
15549
15550
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15554 _ACEOF
15555
15556
15557 # The cast to long int works around a bug in the HP C Compiler
15558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15560 # This bug is HP SR number 8606223364.
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15562 $as_echo_n "checking size of void*... " >&6; }
15563 if test "${ac_cv_sizeof_voidp+set}" = set; then :
15564   $as_echo_n "(cached) " >&6
15565 else
15566   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
15567
15568 else
15569   if test "$ac_cv_type_voidp" = yes; then
15570      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15572 { as_fn_set_status 77
15573 as_fn_error "cannot compute sizeof (void*)
15574 See \`config.log' for more details." "$LINENO" 5; }; }
15575    else
15576      ac_cv_sizeof_voidp=0
15577    fi
15578 fi
15579
15580 fi
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15582 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15583
15584
15585
15586 cat >>confdefs.h <<_ACEOF
15587 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15588 _ACEOF
15589
15590
15591 # The cast to long int works around a bug in the HP C Compiler
15592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15594 # This bug is HP SR number 8606223364.
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15596 $as_echo_n "checking size of size_t... " >&6; }
15597 if test "${ac_cv_sizeof_size_t+set}" = set; then :
15598   $as_echo_n "(cached) " >&6
15599 else
15600   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15601
15602 else
15603   if test "$ac_cv_type_size_t" = yes; then
15604      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15606 { as_fn_set_status 77
15607 as_fn_error "cannot compute sizeof (size_t)
15608 See \`config.log' for more details." "$LINENO" 5; }; }
15609    else
15610      ac_cv_sizeof_size_t=0
15611    fi
15612 fi
15613
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15616 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15617
15618
15619
15620 cat >>confdefs.h <<_ACEOF
15621 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15622 _ACEOF
15623
15624
15625 # The cast to long int works around a bug in the HP C Compiler
15626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15628 # This bug is HP SR number 8606223364.
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
15630 $as_echo_n "checking size of int64_t... " >&6; }
15631 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
15632   $as_echo_n "(cached) " >&6
15633 else
15634   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
15635
15636 else
15637   if test "$ac_cv_type_int64_t" = yes; then
15638      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15640 { as_fn_set_status 77
15641 as_fn_error "cannot compute sizeof (int64_t)
15642 See \`config.log' for more details." "$LINENO" 5; }; }
15643    else
15644      ac_cv_sizeof_int64_t=0
15645    fi
15646 fi
15647
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
15650 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
15651
15652
15653
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
15656 _ACEOF
15657
15658
15659 # The cast to long int works around a bug in the HP C Compiler
15660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15662 # This bug is HP SR number 8606223364.
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15664 $as_echo_n "checking size of long long... " >&6; }
15665 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15666   $as_echo_n "(cached) " >&6
15667 else
15668   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
15669
15670 else
15671   if test "$ac_cv_type_long_long" = yes; then
15672      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15674 { as_fn_set_status 77
15675 as_fn_error "cannot compute sizeof (long long)
15676 See \`config.log' for more details." "$LINENO" 5; }; }
15677    else
15678      ac_cv_sizeof_long_long=0
15679    fi
15680 fi
15681
15682 fi
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15684 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15685
15686
15687
15688 cat >>confdefs.h <<_ACEOF
15689 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15690 _ACEOF
15691
15692
15693
15694 #====================================================================================
15695 # Find an appropriate type for sf_count_t.
15696 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
15697 # Unfortunately there is more than one way of ensuring this so need to do some
15698 # pretty rigourous testing here.
15699
15700 unset ac_cv_sizeof_off_t
15701
15702 # The cast to long int works around a bug in the HP C Compiler
15703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15705 # This bug is HP SR number 8606223364.
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15707 $as_echo_n "checking size of off_t... " >&6; }
15708 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15709   $as_echo_n "(cached) " >&6
15710 else
15711   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
15712
15713 else
15714   if test "$ac_cv_type_off_t" = yes; then
15715      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15717 { as_fn_set_status 77
15718 as_fn_error "cannot compute sizeof (off_t)
15719 See \`config.log' for more details." "$LINENO" 5; }; }
15720    else
15721      ac_cv_sizeof_off_t=0
15722    fi
15723 fi
15724
15725 fi
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15727 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15728
15729
15730
15731 cat >>confdefs.h <<_ACEOF
15732 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15733 _ACEOF
15734
15735         # Fake default value.
15736
15737 case "$host_os" in
15738         mingw32msvc | mingw32)
15739                 TYPEOF_SF_COUNT_T="__int64"
15740                 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
15741                 SIZEOF_SF_COUNT_T=8
15742
15743 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
15744
15745                 ;;
15746         *)
15747                 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
15748                         # If sizeof (off_t) is 8, no further checking is needed.
15749                         TYPEOF_SF_COUNT_T="off_t"
15750                         SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
15751                         SIZEOF_SF_COUNT_T=8
15752                 else
15753                         # Check for common 64 bit file offset types.
15754                         # The cast to long int works around a bug in the HP C Compiler
15755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15757 # This bug is HP SR number 8606223364.
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
15759 $as_echo_n "checking size of loff_t... " >&6; }
15760 if test "${ac_cv_sizeof_loff_t+set}" = set; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t"        "$ac_includes_default"; then :
15764
15765 else
15766   if test "$ac_cv_type_loff_t" = yes; then
15767      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15769 { as_fn_set_status 77
15770 as_fn_error "cannot compute sizeof (loff_t)
15771 See \`config.log' for more details." "$LINENO" 5; }; }
15772    else
15773      ac_cv_sizeof_loff_t=0
15774    fi
15775 fi
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
15779 $as_echo "$ac_cv_sizeof_loff_t" >&6; }
15780
15781
15782
15783 cat >>confdefs.h <<_ACEOF
15784 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
15785 _ACEOF
15786
15787         # Fake default value.
15788                         # The cast to long int works around a bug in the HP C Compiler
15789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15791 # This bug is HP SR number 8606223364.
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
15793 $as_echo_n "checking size of off64_t... " >&6; }
15794 if test "${ac_cv_sizeof_off64_t+set}" = set; then :
15795   $as_echo_n "(cached) " >&6
15796 else
15797   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"; then :
15798
15799 else
15800   if test "$ac_cv_type_off64_t" = yes; then
15801      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15803 { as_fn_set_status 77
15804 as_fn_error "cannot compute sizeof (off64_t)
15805 See \`config.log' for more details." "$LINENO" 5; }; }
15806    else
15807      ac_cv_sizeof_off64_t=0
15808    fi
15809 fi
15810
15811 fi
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
15813 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
15814
15815
15816
15817 cat >>confdefs.h <<_ACEOF
15818 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
15819 _ACEOF
15820
15821         # Fake default value.
15822
15823                         TYPEOF_SF_COUNT_T="unknown"
15824                         if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
15825                                 TYPEOF_SF_COUNT_T="loff_t"
15826                                 SIZEOF_SF_COUNT_T=8
15827                         elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
15828                                 TYPEOF_SF_COUNT_T="off64_t"
15829                                 SIZEOF_SF_COUNT_T=8
15830                                 fi
15831
15832                         # Save the old sizeof (off_t) value  and then unset it to see if it
15833                         # changes when Large File Support is enabled.
15834
15835                         pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
15836                         unset ac_cv_sizeof_off_t
15837
15838
15839    # Check whether --enable-largefile was given.
15840 if test "${enable_largefile+set}" = set; then :
15841   enableval=$enable_largefile;
15842 fi
15843
15844    if test "$enable_largefile" != no; then
15845      if test -n "$ac_tool_prefix"; then
15846   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
15847 set dummy ${ac_tool_prefix}getconf; ac_word=$2
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849 $as_echo_n "checking for $ac_word... " >&6; }
15850 if test "${ac_cv_prog_GETCONF+set}" = set; then :
15851   $as_echo_n "(cached) " >&6
15852 else
15853   if test -n "$GETCONF"; then
15854   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
15855 else
15856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15858 do
15859   IFS=$as_save_IFS
15860   test -z "$as_dir" && as_dir=.
15861     for ac_exec_ext in '' $ac_executable_extensions; do
15862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15863     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
15864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15865     break 2
15866   fi
15867 done
15868   done
15869 IFS=$as_save_IFS
15870
15871 fi
15872 fi
15873 GETCONF=$ac_cv_prog_GETCONF
15874 if test -n "$GETCONF"; then
15875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
15876 $as_echo "$GETCONF" >&6; }
15877 else
15878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15880 fi
15881
15882
15883 fi
15884 if test -z "$ac_cv_prog_GETCONF"; then
15885   ac_ct_GETCONF=$GETCONF
15886   # Extract the first word of "getconf", so it can be a program name with args.
15887 set dummy getconf; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
15891   $as_echo_n "(cached) " >&6
15892 else
15893   if test -n "$ac_ct_GETCONF"; then
15894   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
15895 else
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in $PATH
15898 do
15899   IFS=$as_save_IFS
15900   test -z "$as_dir" && as_dir=.
15901     for ac_exec_ext in '' $ac_executable_extensions; do
15902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15903     ac_cv_prog_ac_ct_GETCONF="getconf"
15904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15905     break 2
15906   fi
15907 done
15908   done
15909 IFS=$as_save_IFS
15910
15911 fi
15912 fi
15913 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
15914 if test -n "$ac_ct_GETCONF"; then
15915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
15916 $as_echo "$ac_ct_GETCONF" >&6; }
15917 else
15918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 fi
15921
15922   if test "x$ac_ct_GETCONF" = x; then
15923     GETCONF=""
15924   else
15925     case $cross_compiling:$ac_tool_warned in
15926 yes:)
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15929 ac_tool_warned=yes ;;
15930 esac
15931     GETCONF=$ac_ct_GETCONF
15932   fi
15933 else
15934   GETCONF="$ac_cv_prog_GETCONF"
15935 fi
15936
15937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
15938 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
15939 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
15943         ac_cv_sys_largefile_CFLAGS=no
15944         case "$host_os" in
15945            # IRIX 6.2 and later require cc -n32.
15946            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
15947              if test "$GCC" != yes; then
15948                ac_cv_sys_largefile_CFLAGS=-n32
15949              fi
15950              ac_save_CC="$CC"
15951              CC="$CC $ac_cv_sys_largefile_CFLAGS"
15952              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h.  */
15954
15955 int
15956 main ()
15957 {
15958
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 if ac_fn_c_try_link "$LINENO"; then :
15964
15965 else
15966   ac_cv_sys_largefile_CFLAGS=no
15967 fi
15968 rm -f core conftest.err conftest.$ac_objext \
15969     conftest$ac_exeext conftest.$ac_ext
15970              CC="$ac_save_CC"
15971            esac
15972       }
15973 fi
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
15975 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
15976      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
15977 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
15978 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
15979   $as_echo_n "(cached) " >&6
15980 else
15981   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
15982         ac_cv_sys_largefile_LDFLAGS=no
15983
15984       }
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
15987 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
15988      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
15989 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
15990 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
15991   $as_echo_n "(cached) " >&6
15992 else
15993   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
15994         ac_cv_sys_largefile_LIBS=no
15995
15996       }
15997 fi
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
15999 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
16000
16001      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16002        case "$ac_flag" in
16003        no) ;;
16004        -D_FILE_OFFSET_BITS=*) ;;
16005        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
16006        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
16007        -D?* | -I?*)
16008          case "$ac_flag" in
16009    no) ;;
16010    ?*)
16011      case "$CPPFLAGS" in
16012      '') CPPFLAGS="$ac_flag" ;;
16013      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
16014      esac ;;
16015    esac ;;
16016        *)
16017          case "$ac_flag" in
16018    no) ;;
16019    ?*)
16020      case "$CFLAGS" in
16021      '') CFLAGS="$ac_flag" ;;
16022      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
16023      esac ;;
16024    esac ;;
16025        esac
16026      done
16027      case "$ac_cv_sys_largefile_LDFLAGS" in
16028    no) ;;
16029    ?*)
16030      case "$LDFLAGS" in
16031      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
16032      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
16033      esac ;;
16034    esac
16035      case "$ac_cv_sys_largefile_LIBS" in
16036    no) ;;
16037    ?*)
16038      case "$LIBS" in
16039      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
16040      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
16041      esac ;;
16042    esac
16043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
16044 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
16045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
16046   $as_echo_n "(cached) " >&6
16047 else
16048   ac_cv_sys_file_offset_bits=no
16049
16050       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16051         case "$ac_flag" in
16052         -D_FILE_OFFSET_BITS)
16053           ac_cv_sys_file_offset_bits=1 ;;
16054         -D_FILE_OFFSET_BITS=*)
16055           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16056         esac
16057       done
16058
16059 fi
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16061 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16062    if test "$ac_cv_sys_file_offset_bits" != no; then
16063
16064 cat >>confdefs.h <<_ACEOF
16065 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16066 _ACEOF
16067
16068    fi
16069        case "$host_os" in
16070         # HP-UX 10.20 and later
16071         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
16072           ac_cv_sys_file_offset_bits=64 ;;
16073         esac
16074      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
16075 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
16076 if test "${ac_cv_sys_largefile_source+set}" = set; then :
16077   $as_echo_n "(cached) " >&6
16078 else
16079   ac_cv_sys_largefile_source=no
16080       case "$host_os" in
16081         # HP-UX 10.20 and later
16082         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
16083           ac_cv_sys_largefile_source=1 ;;
16084         esac
16085       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16086         case "$ac_flag" in
16087         -D_LARGEFILE_SOURCE)
16088           ac_cv_sys_largefile_source=1 ;;
16089         -D_LARGEFILE_SOURCE=*)
16090           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16091         esac
16092       done
16093
16094 fi
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16096 $as_echo "$ac_cv_sys_largefile_source" >&6; }
16097    if test "$ac_cv_sys_largefile_source" != no; then
16098
16099 cat >>confdefs.h <<_ACEOF
16100 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16101 _ACEOF
16102
16103    fi
16104      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
16105 $as_echo_n "checking for _LARGE_FILES... " >&6; }
16106 if test "${ac_cv_sys_large_files+set}" = set; then :
16107   $as_echo_n "(cached) " >&6
16108 else
16109   ac_cv_sys_large_files=no
16110       case "$host_os" in
16111         # AIX 4.2 and later
16112         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
16113           ac_cv_sys_large_files=1 ;;
16114         esac
16115       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16116         case "$ac_flag" in
16117         -D_LARGE_FILES)
16118           ac_cv_sys_large_files=1 ;;
16119         -D_LARGE_FILES=*)
16120           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16121         esac
16122       done
16123
16124 fi
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16126 $as_echo "$ac_cv_sys_large_files" >&6; }
16127    if test "$ac_cv_sys_large_files" != no; then
16128
16129 cat >>confdefs.h <<_ACEOF
16130 #define _LARGE_FILES $ac_cv_sys_large_files
16131 _ACEOF
16132
16133    fi
16134    fi
16135
16136
16137                         if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
16138                                 ac_cv_sys_largefile_CFLAGS=""
16139                                 fi
16140                         if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
16141                                 ac_cv_sys_largefile_LDFLAGS=""
16142                                 fi
16143                         if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
16144                                 ac_cv_sys_largefile_LIBS=""
16145                                 fi
16146
16147                         # The cast to long int works around a bug in the HP C Compiler
16148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16150 # This bug is HP SR number 8606223364.
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16152 $as_echo_n "checking size of off_t... " >&6; }
16153 if test "${ac_cv_sizeof_off_t+set}" = set; then :
16154   $as_echo_n "(cached) " >&6
16155 else
16156   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
16157
16158 else
16159   if test "$ac_cv_type_off_t" = yes; then
16160      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16162 { as_fn_set_status 77
16163 as_fn_error "cannot compute sizeof (off_t)
16164 See \`config.log' for more details." "$LINENO" 5; }; }
16165    else
16166      ac_cv_sizeof_off_t=0
16167    fi
16168 fi
16169
16170 fi
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16172 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16173
16174
16175
16176 cat >>confdefs.h <<_ACEOF
16177 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16178 _ACEOF
16179
16180         # Fake default value.
16181
16182                         if test "x$ac_cv_sizeof_off_t" = "x8" ; then
16183                                 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16184                         elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
16185                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This machine does not seem to support 64 bit file offsets." >&5
16186 $as_echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
16187                                 TYPEOF_SF_COUNT_T="off_t"
16188                                 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
16189                         elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
16190                                 echo
16191                                 echo "*** The configure process has determined that this system is capable"
16192                                 echo "*** of Large File Support but has not been able to find a type which"
16193                                 echo "*** is an unambiguous 64 bit file offset."
16194                                 echo "*** Please contact the author to help resolve this problem."
16195                                 echo
16196                                 as_fn_error "Bad file offset type." "$LINENO" 5
16197                                 fi
16198                         fi
16199                 ;;
16200         esac
16201
16202 if test $SIZEOF_SF_COUNT_T = 4 ; then
16203         SF_COUNT_MAX="0x7FFFFFFF"
16204         fi
16205
16206
16207 cat >>confdefs.h <<_ACEOF
16208 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
16209 _ACEOF
16210
16211
16212
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
16216 _ACEOF
16217
16218
16219
16220
16221 cat >>confdefs.h <<_ACEOF
16222 #define SF_COUNT_MAX ${SF_COUNT_MAX}
16223 _ACEOF
16224
16225
16226
16227 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16228 if test "x$ac_cv_type_ssize_t" = x""yes; then :
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_SSIZE_T 1
16232 _ACEOF
16233
16234
16235 fi
16236
16237 # The cast to long int works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
16242 $as_echo_n "checking size of ssize_t... " >&6; }
16243 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
16244   $as_echo_n "(cached) " >&6
16245 else
16246   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
16247
16248 else
16249   if test "$ac_cv_type_ssize_t" = yes; then
16250      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 { as_fn_set_status 77
16253 as_fn_error "cannot compute sizeof (ssize_t)
16254 See \`config.log' for more details." "$LINENO" 5; }; }
16255    else
16256      ac_cv_sizeof_ssize_t=0
16257    fi
16258 fi
16259
16260 fi
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
16262 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
16263
16264
16265
16266 cat >>confdefs.h <<_ACEOF
16267 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
16268 _ACEOF
16269
16270
16271
16272 #====================================================================================
16273 # Determine endian-ness of target processor.
16274
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
16276 $as_echo_n "checking processor byte ordering... " >&6; }
16277 if test "${ac_cv_c_byte_order+set}" = set; then :
16278   $as_echo_n "(cached) " >&6
16279 else
16280   # Initialize to unknown
16281 ac_cv_c_byte_order=unknown
16282
16283 if test x$ac_cv_header_endian_h = xyes ; then
16284
16285         # First try <endian.h> which should set BYTE_ORDER.
16286
16287         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h.  */
16289
16290                 #include <endian.h>
16291                 #if BYTE_ORDER != LITTLE_ENDIAN
16292                         not big endian
16293                 #endif
16294
16295 int
16296 main ()
16297 {
16298 return 0 ;
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304   ac_cv_c_byte_order=little
16305
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext \
16308     conftest$ac_exeext conftest.$ac_ext
16309
16310         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h.  */
16312
16313                 #include <endian.h>
16314                 #if BYTE_ORDER != BIG_ENDIAN
16315                         not big endian
16316                 #endif
16317
16318 int
16319 main ()
16320 {
16321 return 0 ;
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 if ac_fn_c_try_link "$LINENO"; then :
16327   ac_cv_c_byte_order=big
16328
16329 fi
16330 rm -f core conftest.err conftest.$ac_objext \
16331     conftest$ac_exeext conftest.$ac_ext
16332
16333         fi
16334
16335 if test $ac_cv_c_byte_order = unknown ; then
16336
16337         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h.  */
16339
16340                 #include <sys/types.h>
16341                 #include <sys/param.h>
16342                 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16343                         bogus endian macros
16344                 #endif
16345
16346 int
16347 main ()
16348 {
16349 return 0 ;
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 if ac_fn_c_try_link "$LINENO"; then :
16355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h.  */
16357
16358                         #include <sys/types.h>
16359                         #include <sys/param.h>
16360                         #if BYTE_ORDER != LITTLE_ENDIAN
16361                                 not big endian
16362                         #endif
16363
16364 int
16365 main ()
16366 {
16367 return 0 ;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 if ac_fn_c_try_link "$LINENO"; then :
16373   ac_cv_c_byte_order=little
16374
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378
16379                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h.  */
16381
16382                         #include <sys/types.h>
16383                         #include <sys/param.h>
16384                         #if BYTE_ORDER != LITTLE_ENDIAN
16385                                 not big endian
16386                         #endif
16387
16388 int
16389 main ()
16390 {
16391 return 0 ;
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"; then :
16397   ac_cv_c_byte_order=little
16398
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext \
16401     conftest$ac_exeext conftest.$ac_ext
16402
16403
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext \
16406     conftest$ac_exeext conftest.$ac_ext
16407
16408         fi
16409
16410 if test $ac_cv_c_byte_order = unknown ; then
16411         if test $cross_compiling = yes ; then
16412                 # This is the last resort. Try to guess the target processor endian-ness
16413                 # by looking at the target CPU type.
16414
16415                 case "$target_cpu" in
16416                         alpha* | i?86* | mipsel* | ia64*)
16417                                 ac_cv_c_byte_order=little
16418                                 ;;
16419
16420                         m68* | mips* | powerpc* | hppa* | sparc*)
16421                                 ac_cv_c_byte_order=big
16422                                 ;;
16423
16424                         esac
16425
16426         else
16427                 if test "$cross_compiling" = yes; then :
16428   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16430 as_fn_error "cannot run test program while cross compiling
16431 See \`config.log' for more details." "$LINENO" 5; }
16432 else
16433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h.  */
16435
16436                 int main (void)
16437                 {       /* Are we little or big endian?  From Harbison&Steele.  */
16438                         union
16439                         {       long l ;
16440                                 char c [sizeof (long)] ;
16441                         } u ;
16442                         u.l = 1 ;
16443                         return (u.c [sizeof (long) - 1] == 1);
16444                         }
16445
16446 _ACEOF
16447 if ac_fn_c_try_run "$LINENO"; then :
16448
16449 else
16450   ac_cv_c_byte_order=big
16451 fi
16452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16453   conftest.$ac_objext conftest.beam conftest.$ac_ext
16454 fi
16455
16456
16457                 if test "$cross_compiling" = yes; then :
16458   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460 as_fn_error "cannot run test program while cross compiling
16461 See \`config.log' for more details." "$LINENO" 5; }
16462 else
16463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h.  */
16465 int main (void)
16466                 {       /* Are we little or big endian?  From Harbison&Steele.  */
16467                         union
16468                         {       long l ;
16469                                 char c [sizeof (long)] ;
16470                         } u ;
16471                         u.l = 1 ;
16472                         return (u.c [0] == 1);
16473                         }
16474 _ACEOF
16475 if ac_fn_c_try_run "$LINENO"; then :
16476
16477 else
16478   ac_cv_c_byte_order=little
16479 fi
16480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16481   conftest.$ac_objext conftest.beam conftest.$ac_ext
16482 fi
16483
16484                 fi
16485         fi
16486
16487
16488 fi
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
16490 $as_echo "$ac_cv_c_byte_order" >&6; }
16491
16492 if test $ac_cv_c_byte_order = big ; then
16493         ac_cv_c_big_endian=1
16494         ac_cv_c_little_endian=0
16495 elif test $ac_cv_c_byte_order = little ; then
16496         ac_cv_c_big_endian=0
16497         ac_cv_c_little_endian=1
16498 else
16499         ac_cv_c_big_endian=0
16500         ac_cv_c_little_endian=0
16501
16502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16503 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor.       " >&5
16505 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor.       " >&2;}
16506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in  " >&5
16507 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in  " >&2;}
16508         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied.                    " >&5
16509 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied.                    " >&2;}
16510         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16511 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16512         fi
16513
16514
16515
16516
16517
16518 cat >>confdefs.h <<_ACEOF
16519 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
16520 _ACEOF
16521
16522
16523 cat >>confdefs.h <<_ACEOF
16524 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
16525 _ACEOF
16526
16527
16528 cat >>confdefs.h <<_ACEOF
16529 #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
16530 _ACEOF
16531
16532
16533 #====================================================================================
16534 # Check for functions.
16535
16536 for ac_func in malloc calloc realloc free
16537 do :
16538   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16540 eval as_val=\$$as_ac_var
16541    if test "x$as_val" = x""yes; then :
16542   cat >>confdefs.h <<_ACEOF
16543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16544 _ACEOF
16545
16546 fi
16547 done
16548
16549 for ac_func in open read write lseek pread pwrite
16550 do :
16551   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16553 eval as_val=\$$as_ac_var
16554    if test "x$as_val" = x""yes; then :
16555   cat >>confdefs.h <<_ACEOF
16556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16557 _ACEOF
16558
16559 fi
16560 done
16561
16562 for ac_func in fstat ftruncate fsync
16563 do :
16564   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16566 eval as_val=\$$as_ac_var
16567    if test "x$as_val" = x""yes; then :
16568   cat >>confdefs.h <<_ACEOF
16569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16570 _ACEOF
16571
16572 fi
16573 done
16574
16575 for ac_func in snprintf vsnprintf
16576 do :
16577   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16579 eval as_val=\$$as_ac_var
16580    if test "x$as_val" = x""yes; then :
16581   cat >>confdefs.h <<_ACEOF
16582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16583 _ACEOF
16584
16585 fi
16586 done
16587
16588 for ac_func in gmtime gmtime_r localtime localtime_r gettimeofday
16589 do :
16590   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16592 eval as_val=\$$as_ac_var
16593    if test "x$as_val" = x""yes; then :
16594   cat >>confdefs.h <<_ACEOF
16595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 _ACEOF
16597
16598 fi
16599 done
16600
16601 for ac_func in mmap getpagesize
16602 do :
16603   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16605 eval as_val=\$$as_ac_var
16606    if test "x$as_val" = x""yes; then :
16607   cat >>confdefs.h <<_ACEOF
16608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609 _ACEOF
16610
16611 fi
16612 done
16613
16614 for ac_func in setlocale
16615 do :
16616   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16617 if test "x$ac_cv_func_setlocale" = x""yes; then :
16618   cat >>confdefs.h <<_ACEOF
16619 #define HAVE_SETLOCALE 1
16620 _ACEOF
16621
16622 fi
16623 done
16624
16625
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
16627 $as_echo_n "checking for floor in -lm... " >&6; }
16628 if test "${ac_cv_lib_m_floor+set}" = set; then :
16629   $as_echo_n "(cached) " >&6
16630 else
16631   ac_check_lib_save_LIBS=$LIBS
16632 LIBS="-lm  $LIBS"
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h.  */
16635
16636 /* Override any GCC internal prototype to avoid an error.
16637    Use char because int might match the return type of a GCC
16638    builtin and then its argument prototype would still apply.  */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 char floor ();
16643 int
16644 main ()
16645 {
16646 return floor ();
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_link "$LINENO"; then :
16652   ac_cv_lib_m_floor=yes
16653 else
16654   ac_cv_lib_m_floor=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext \
16657     conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
16661 $as_echo "$ac_cv_lib_m_floor" >&6; }
16662 if test "x$ac_cv_lib_m_floor" = x""yes; then :
16663   cat >>confdefs.h <<_ACEOF
16664 #define HAVE_LIBM 1
16665 _ACEOF
16666
16667   LIBS="-lm $LIBS"
16668
16669 fi
16670
16671 for ac_func in floor ceil fmod
16672 do :
16673   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16675 eval as_val=\$$as_ac_var
16676    if test "x$as_val" = x""yes; then :
16677   cat >>confdefs.h <<_ACEOF
16678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16679 _ACEOF
16680
16681 fi
16682 done
16683
16684
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
16686 $as_echo_n "checking for lrint... " >&6; }
16687 if test "${ac_cv_c99_lrint+set}" = set; then :
16688   $as_echo_n "(cached) " >&6
16689 else
16690
16691 lrint_save_CFLAGS=$CFLAGS
16692 CFLAGS="-lm"
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h.  */
16695
16696 #define         _ISOC9X_SOURCE  1
16697 #define         _ISOC99_SOURCE  1
16698 #define         __USE_ISOC99    1
16699 #define         __USE_ISOC9X    1
16700
16701 #include <math.h>
16702
16703 int
16704 main ()
16705 {
16706 if (!lrint(3.14159)) lrint(2.7183);
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_link "$LINENO"; then :
16712   ac_cv_c99_lrint=yes
16713 else
16714   ac_cv_c99_lrint=no
16715 fi
16716 rm -f core conftest.err conftest.$ac_objext \
16717     conftest$ac_exeext conftest.$ac_ext
16718
16719 CFLAGS=$lrint_save_CFLAGS
16720
16721
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
16724 $as_echo "$ac_cv_c99_lrint" >&6; }
16725
16726 if test "$ac_cv_c99_lrint" = yes; then
16727
16728 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
16729
16730 fi
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
16733 $as_echo_n "checking for lrintf... " >&6; }
16734 if test "${ac_cv_c99_lrintf+set}" = set; then :
16735   $as_echo_n "(cached) " >&6
16736 else
16737
16738 lrintf_save_CFLAGS=$CFLAGS
16739 CFLAGS="-lm"
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h.  */
16742
16743 #define         _ISOC9X_SOURCE  1
16744 #define         _ISOC99_SOURCE  1
16745 #define         __USE_ISOC99    1
16746 #define         __USE_ISOC9X    1
16747
16748 #include <math.h>
16749
16750 int
16751 main ()
16752 {
16753 if (!lrintf(3.14159)) lrintf(2.7183);
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"; then :
16759   ac_cv_c99_lrintf=yes
16760 else
16761   ac_cv_c99_lrintf=no
16762 fi
16763 rm -f core conftest.err conftest.$ac_objext \
16764     conftest$ac_exeext conftest.$ac_ext
16765
16766 CFLAGS=$lrintf_save_CFLAGS
16767
16768
16769 fi
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
16771 $as_echo "$ac_cv_c99_lrintf" >&6; }
16772
16773 if test "$ac_cv_c99_lrintf" = yes; then
16774
16775 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
16776
16777 fi
16778
16779
16780 #====================================================================================
16781 # Check for requirements for building plugins for other languages/enviroments.
16782
16783 if test x$cross_compiling = xno ; then
16784         if test x$enable_octave = xno ; then
16785                  if false; then
16786   BUILD_OCTAVE_MOD_TRUE=
16787   BUILD_OCTAVE_MOD_FALSE='#'
16788 else
16789   BUILD_OCTAVE_MOD_TRUE='#'
16790   BUILD_OCTAVE_MOD_FALSE=
16791 fi
16792
16793         else
16794
16795
16796 OCTAVE_BUILD=no
16797
16798
16799
16800
16801 # Check whether --with-octave was given.
16802 if test "${with_octave+set}" = set; then :
16803   withval=$with_octave;  with_octave=$withval
16804 fi
16805
16806
16807 test -z "$with_octave" && with_octave=octave
16808
16809 # Extract the first word of "$with_octave", so it can be a program name with args.
16810 set dummy $with_octave; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if test "${ac_cv_prog_HAVE_OCTAVE+set}" = set; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   if test -n "$HAVE_OCTAVE"; then
16817   ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
16818 else
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822   IFS=$as_save_IFS
16823   test -z "$as_dir" && as_dir=.
16824     for ac_exec_ext in '' $ac_executable_extensions; do
16825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16826     ac_cv_prog_HAVE_OCTAVE="yes"
16827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828     break 2
16829   fi
16830 done
16831   done
16832 IFS=$as_save_IFS
16833
16834   test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
16835 fi
16836 fi
16837 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
16838 if test -n "$HAVE_OCTAVE"; then
16839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
16840 $as_echo "$HAVE_OCTAVE" >&6; }
16841 else
16842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16844 fi
16845
16846
16847
16848 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
16849         OCTAVE=$with_octave
16850
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
16852 $as_echo_n "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
16853 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
16855 $as_echo "$OCTAVE_VERSION" >&6; }
16856
16857
16858         fi
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868 # Check whether --with-mkoctfile was given.
16869 if test "${with_mkoctfile+set}" = set; then :
16870   withval=$with_mkoctfile;  with_mkoctfile=$withval
16871 fi
16872
16873
16874 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
16875
16876 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
16877 set dummy $with_mkoctfile; ac_word=$2
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16879 $as_echo_n "checking for $ac_word... " >&6; }
16880 if test "${ac_cv_prog_HAVE_MKOCTFILE+set}" = set; then :
16881   $as_echo_n "(cached) " >&6
16882 else
16883   if test -n "$HAVE_MKOCTFILE"; then
16884   ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
16885 else
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16888 do
16889   IFS=$as_save_IFS
16890   test -z "$as_dir" && as_dir=.
16891     for ac_exec_ext in '' $ac_executable_extensions; do
16892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16893     ac_cv_prog_HAVE_MKOCTFILE="yes"
16894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16895     break 2
16896   fi
16897 done
16898   done
16899 IFS=$as_save_IFS
16900
16901   test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
16902 fi
16903 fi
16904 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
16905 if test -n "$HAVE_MKOCTFILE"; then
16906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
16907 $as_echo "$HAVE_MKOCTFILE" >&6; }
16908 else
16909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 $as_echo "no" >&6; }
16911 fi
16912
16913
16914
16915 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
16916         MKOCTFILE=$with_mkoctfile
16917
16918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
16919 $as_echo_n "checking for version of $MKOCTFILE... " >&6; }
16920         MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
16921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
16922 $as_echo "$MKOCTFILE_VERSION" >&6; }
16923         fi
16924
16925
16926
16927
16928
16929
16930
16931
16932 # Check whether --with-octave-config was given.
16933 if test "${with_octave_config+set}" = set; then :
16934   withval=$with_octave_config;  with_octave_config=$withval
16935 fi
16936
16937
16938 test -z "$with_octave_config" && with_octave_config=octave-config
16939
16940 # Extract the first word of "$with_octave_config", so it can be a program name with args.
16941 set dummy $with_octave_config; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if test "${ac_cv_prog_HAVE_OCTAVE_CONFIG+set}" = set; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   if test -n "$HAVE_OCTAVE_CONFIG"; then
16948   ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
16949 else
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16952 do
16953   IFS=$as_save_IFS
16954   test -z "$as_dir" && as_dir=.
16955     for ac_exec_ext in '' $ac_executable_extensions; do
16956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16957     ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
16958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959     break 2
16960   fi
16961 done
16962   done
16963 IFS=$as_save_IFS
16964
16965   test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
16966 fi
16967 fi
16968 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
16969 if test -n "$HAVE_OCTAVE_CONFIG"; then
16970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
16971 $as_echo "$HAVE_OCTAVE_CONFIG" >&6; }
16972 else
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16975 fi
16976
16977
16978
16979 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
16980         OCTAVE_CONFIG=$with_octave_config
16981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
16982 $as_echo_n "checking for version of $OCTAVE_CONFIG... " >&6; }
16983         OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
16984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
16985 $as_echo "$OCTAVE_CONFIG_VERSION" >&6; }
16986         fi
16987
16988
16989
16990
16991
16992
16993 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
16994
16995 if test "x$prog_concat" = "xyesyesyes" ; then
16996         if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
16997                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
16998 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
16999                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built.       **" >&5
17000 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built.       **" >&2;}
17001         elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
17002                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
17003 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
17004                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built.           **" >&5
17005 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built.           **" >&2;}
17006         else
17007                 case "$MKOCTFILE_VERSION" in
17008                         2.*)
17009                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
17010 $as_echo "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
17011                                 ;;
17012                         3.0.*)
17013                                 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
17014                                 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
17015
17016                                 OCTAVE_BUILD=yes
17017                                 ;;
17018                         *)
17019                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
17020 $as_echo "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
17021                                 ;;
17022                                 esac
17023                 fi
17024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
17025 $as_echo "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
17026         fi
17027
17028
17029
17030
17031
17032
17033  if test "x$OCTAVE_BUILD" = xyes; then
17034   BUILD_OCTAVE_MOD_TRUE=
17035   BUILD_OCTAVE_MOD_FALSE='#'
17036 else
17037   BUILD_OCTAVE_MOD_TRUE='#'
17038   BUILD_OCTAVE_MOD_FALSE=
17039 fi
17040
17041
17042
17043                 fi
17044 else
17045          if false; then
17046   BUILD_OCTAVE_MOD_TRUE=
17047   BUILD_OCTAVE_MOD_FALSE='#'
17048 else
17049   BUILD_OCTAVE_MOD_TRUE='#'
17050   BUILD_OCTAVE_MOD_FALSE=
17051 fi
17052
17053         fi
17054
17055 #====================================================================================
17056 # Check for Ogg, Vorbis and FLAC.
17057
17058 HAVE_EXTERNAL_LIBS=0
17059 EXTERNAL_CFLAGS=""
17060 EXTERNAL_LIBS=""
17061
17062 # Check for pkg-config outside the if statement.
17063
17064
17065 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17066         if test -n "$ac_tool_prefix"; then
17067   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17068 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17070 $as_echo_n "checking for $ac_word... " >&6; }
17071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17072   $as_echo_n "(cached) " >&6
17073 else
17074   case $PKG_CONFIG in
17075   [\\/]* | ?:[\\/]*)
17076   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17077   ;;
17078   *)
17079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in $PATH
17081 do
17082   IFS=$as_save_IFS
17083   test -z "$as_dir" && as_dir=.
17084     for ac_exec_ext in '' $ac_executable_extensions; do
17085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17086     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17088     break 2
17089   fi
17090 done
17091   done
17092 IFS=$as_save_IFS
17093
17094   ;;
17095 esac
17096 fi
17097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17098 if test -n "$PKG_CONFIG"; then
17099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17100 $as_echo "$PKG_CONFIG" >&6; }
17101 else
17102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17104 fi
17105
17106
17107 fi
17108 if test -z "$ac_cv_path_PKG_CONFIG"; then
17109   ac_pt_PKG_CONFIG=$PKG_CONFIG
17110   # Extract the first word of "pkg-config", so it can be a program name with args.
17111 set dummy pkg-config; ac_word=$2
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17113 $as_echo_n "checking for $ac_word... " >&6; }
17114 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17115   $as_echo_n "(cached) " >&6
17116 else
17117   case $ac_pt_PKG_CONFIG in
17118   [\\/]* | ?:[\\/]*)
17119   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17120   ;;
17121   *)
17122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17123 for as_dir in $PATH
17124 do
17125   IFS=$as_save_IFS
17126   test -z "$as_dir" && as_dir=.
17127     for ac_exec_ext in '' $ac_executable_extensions; do
17128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17129     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17131     break 2
17132   fi
17133 done
17134   done
17135 IFS=$as_save_IFS
17136
17137   ;;
17138 esac
17139 fi
17140 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17141 if test -n "$ac_pt_PKG_CONFIG"; then
17142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17143 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17144 else
17145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146 $as_echo "no" >&6; }
17147 fi
17148
17149   if test "x$ac_pt_PKG_CONFIG" = x; then
17150     PKG_CONFIG=""
17151   else
17152     case $cross_compiling:$ac_tool_warned in
17153 yes:)
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17156 ac_tool_warned=yes ;;
17157 esac
17158     PKG_CONFIG=$ac_pt_PKG_CONFIG
17159   fi
17160 else
17161   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17162 fi
17163
17164 fi
17165 if test -n "$PKG_CONFIG"; then
17166         _pkg_min_version=0.9.0
17167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17168 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17169         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17171 $as_echo "yes" >&6; }
17172         else
17173                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17175                 PKG_CONFIG=""
17176         fi
17177
17178 fi
17179
17180 if test x$enable_external_libs = xno ; then
17181         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
17182 $as_echo "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
17183 else
17184
17185 pkg_failed=no
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.2.1 " >&5
17187 $as_echo_n "checking for flac >= 1.2.1 ... " >&6; }
17188
17189 if test -n "$PKG_CONFIG"; then
17190     if test -n "$FLAC_CFLAGS"; then
17191         pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
17192     else
17193         if test -n "$PKG_CONFIG" && \
17194     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
17195   ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
17196   ac_status=$?
17197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17198   test $ac_status = 0; }; then
17199   pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null`
17200 else
17201   pkg_failed=yes
17202 fi
17203     fi
17204 else
17205         pkg_failed=untried
17206 fi
17207 if test -n "$PKG_CONFIG"; then
17208     if test -n "$FLAC_LIBS"; then
17209         pkg_cv_FLAC_LIBS="$FLAC_LIBS"
17210     else
17211         if test -n "$PKG_CONFIG" && \
17212     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
17213   ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
17214   ac_status=$?
17215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17216   test $ac_status = 0; }; then
17217   pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null`
17218 else
17219   pkg_failed=yes
17220 fi
17221     fi
17222 else
17223         pkg_failed=untried
17224 fi
17225
17226
17227
17228 if test $pkg_failed = yes; then
17229
17230 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17231         _pkg_short_errors_supported=yes
17232 else
17233         _pkg_short_errors_supported=no
17234 fi
17235         if test $_pkg_short_errors_supported = yes; then
17236                 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.2.1"`
17237         else
17238                 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.2.1"`
17239         fi
17240         # Put the nasty error message in config.log where it belongs
17241         echo "$FLAC_PKG_ERRORS" >&5
17242
17243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245                 ac_cv_flac=no
17246 elif test $pkg_failed = untried; then
17247         ac_cv_flac=no
17248 else
17249         FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
17250         FLAC_LIBS=$pkg_cv_FLAC_LIBS
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253         ac_cv_flac=yes
17254 fi
17255
17256 pkg_failed=no
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.1.3 " >&5
17258 $as_echo_n "checking for ogg >= 1.1.3 ... " >&6; }
17259
17260 if test -n "$PKG_CONFIG"; then
17261     if test -n "$OGG_CFLAGS"; then
17262         pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
17263     else
17264         if test -n "$PKG_CONFIG" && \
17265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
17266   ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
17267   ac_status=$?
17268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17269   test $ac_status = 0; }; then
17270   pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1.3" 2>/dev/null`
17271 else
17272   pkg_failed=yes
17273 fi
17274     fi
17275 else
17276         pkg_failed=untried
17277 fi
17278 if test -n "$PKG_CONFIG"; then
17279     if test -n "$OGG_LIBS"; then
17280         pkg_cv_OGG_LIBS="$OGG_LIBS"
17281     else
17282         if test -n "$PKG_CONFIG" && \
17283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
17284   ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
17285   ac_status=$?
17286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287   test $ac_status = 0; }; then
17288   pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1.3" 2>/dev/null`
17289 else
17290   pkg_failed=yes
17291 fi
17292     fi
17293 else
17294         pkg_failed=untried
17295 fi
17296
17297
17298
17299 if test $pkg_failed = yes; then
17300
17301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17302         _pkg_short_errors_supported=yes
17303 else
17304         _pkg_short_errors_supported=no
17305 fi
17306         if test $_pkg_short_errors_supported = yes; then
17307                 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1.3"`
17308         else
17309                 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1.3"`
17310         fi
17311         # Put the nasty error message in config.log where it belongs
17312         echo "$OGG_PKG_ERRORS" >&5
17313
17314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315 $as_echo "no" >&6; }
17316                 ac_cv_ogg=no
17317 elif test $pkg_failed = untried; then
17318         ac_cv_ogg=no
17319 else
17320         OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
17321         OGG_LIBS=$pkg_cv_OGG_LIBS
17322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17323 $as_echo "yes" >&6; }
17324         ac_cv_ogg=yes
17325 fi
17326
17327         # Vorbis versions earlier than 1.2.3 have bugs that cause the libsndfile
17328         # test suite to fail on MIPS, PowerPC and others.
17329         # See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
17330
17331 pkg_failed=no
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
17333 $as_echo_n "checking for vorbis >= 1.2.3 ... " >&6; }
17334
17335 if test -n "$PKG_CONFIG"; then
17336     if test -n "$VORBIS_CFLAGS"; then
17337         pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
17338     else
17339         if test -n "$PKG_CONFIG" && \
17340     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
17341   ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
17342   ac_status=$?
17343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17344   test $ac_status = 0; }; then
17345   pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
17346 else
17347   pkg_failed=yes
17348 fi
17349     fi
17350 else
17351         pkg_failed=untried
17352 fi
17353 if test -n "$PKG_CONFIG"; then
17354     if test -n "$VORBIS_LIBS"; then
17355         pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
17356     else
17357         if test -n "$PKG_CONFIG" && \
17358     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
17359   ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
17360   ac_status=$?
17361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362   test $ac_status = 0; }; then
17363   pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
17364 else
17365   pkg_failed=yes
17366 fi
17367     fi
17368 else
17369         pkg_failed=untried
17370 fi
17371
17372
17373
17374 if test $pkg_failed = yes; then
17375
17376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17377         _pkg_short_errors_supported=yes
17378 else
17379         _pkg_short_errors_supported=no
17380 fi
17381         if test $_pkg_short_errors_supported = yes; then
17382                 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
17383         else
17384                 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
17385         fi
17386         # Put the nasty error message in config.log where it belongs
17387         echo "$VORBIS_PKG_ERRORS" >&5
17388
17389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17391                 ac_cv_vorbis=no
17392 elif test $pkg_failed = untried; then
17393         ac_cv_vorbis=no
17394 else
17395         VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
17396         VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
17397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17398 $as_echo "yes" >&6; }
17399         ac_cv_vorbis=yes
17400 fi
17401
17402 pkg_failed=no
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
17404 $as_echo_n "checking for vorbisenc >= 1.2.3 ... " >&6; }
17405
17406 if test -n "$PKG_CONFIG"; then
17407     if test -n "$VORBISENC_CFLAGS"; then
17408         pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
17409     else
17410         if test -n "$PKG_CONFIG" && \
17411     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
17412   ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
17413   ac_status=$?
17414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415   test $ac_status = 0; }; then
17416   pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
17417 else
17418   pkg_failed=yes
17419 fi
17420     fi
17421 else
17422         pkg_failed=untried
17423 fi
17424 if test -n "$PKG_CONFIG"; then
17425     if test -n "$VORBISENC_LIBS"; then
17426         pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
17427     else
17428         if test -n "$PKG_CONFIG" && \
17429     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
17430   ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
17431   ac_status=$?
17432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433   test $ac_status = 0; }; then
17434   pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
17435 else
17436   pkg_failed=yes
17437 fi
17438     fi
17439 else
17440         pkg_failed=untried
17441 fi
17442
17443
17444
17445 if test $pkg_failed = yes; then
17446
17447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17448         _pkg_short_errors_supported=yes
17449 else
17450         _pkg_short_errors_supported=no
17451 fi
17452         if test $_pkg_short_errors_supported = yes; then
17453                 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
17454         else
17455                 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
17456         fi
17457         # Put the nasty error message in config.log where it belongs
17458         echo "$VORBISENC_PKG_ERRORS" >&5
17459
17460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17462                 ac_cv_vorbisenc=no
17463 elif test $pkg_failed = untried; then
17464         ac_cv_vorbisenc=no
17465 else
17466         VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
17467         VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
17468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17469 $as_echo "yes" >&6; }
17470         ac_cv_vorbisenc=yes
17471 fi
17472         enable_external_libs=yes
17473         fi
17474
17475 if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
17476         HAVE_EXTERNAL_LIBS=1
17477         enable_external_libs=yes
17478
17479         EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS"
17480         EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS"
17481 else
17482         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17483
17484 *** One or more of the external libraries (ie libflac, libogg and
17485 *** libvorbis) is either missing (possibly only the development
17486 *** headers) or is of an unsupported version.
17487 ***
17488 *** Unfortunately, for ease of maintenance, the external libs
17489 *** are an all or nothing affair.
17490 " >&5
17491 $as_echo "$as_me: WARNING:
17492
17493 *** One or more of the external libraries (ie libflac, libogg and
17494 *** libvorbis) is either missing (possibly only the development
17495 *** headers) or is of an unsupported version.
17496 ***
17497 *** Unfortunately, for ease of maintenance, the external libs
17498 *** are an all or nothing affair.
17499 " >&2;}
17500         enable_external_libs=no
17501         fi
17502
17503
17504 cat >>confdefs.h <<_ACEOF
17505 #define HAVE_EXTERNAL_LIBS $HAVE_EXTERNAL_LIBS
17506 _ACEOF
17507
17508
17509 #====================================================================================
17510 # Check for libsqlite3 (only used in regtest).
17511
17512 ac_cv_sqlite3=no
17513 if test x$enable_sqlite != xno ; then
17514
17515 pkg_failed=no
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
17517 $as_echo_n "checking for sqlite3 >= 3.2 ... " >&6; }
17518
17519 if test -n "$PKG_CONFIG"; then
17520     if test -n "$SQLITE3_CFLAGS"; then
17521         pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
17522     else
17523         if test -n "$PKG_CONFIG" && \
17524     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
17525   ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
17526   ac_status=$?
17527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528   test $ac_status = 0; }; then
17529   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
17530 else
17531   pkg_failed=yes
17532 fi
17533     fi
17534 else
17535         pkg_failed=untried
17536 fi
17537 if test -n "$PKG_CONFIG"; then
17538     if test -n "$SQLITE3_LIBS"; then
17539         pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
17540     else
17541         if test -n "$PKG_CONFIG" && \
17542     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
17543   ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
17544   ac_status=$?
17545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546   test $ac_status = 0; }; then
17547   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
17548 else
17549   pkg_failed=yes
17550 fi
17551     fi
17552 else
17553         pkg_failed=untried
17554 fi
17555
17556
17557
17558 if test $pkg_failed = yes; then
17559
17560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17561         _pkg_short_errors_supported=yes
17562 else
17563         _pkg_short_errors_supported=no
17564 fi
17565         if test $_pkg_short_errors_supported = yes; then
17566                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
17567         else
17568                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
17569         fi
17570         # Put the nasty error message in config.log where it belongs
17571         echo "$SQLITE3_PKG_ERRORS" >&5
17572
17573         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17574 $as_echo "no" >&6; }
17575                 ac_cv_sqlite3=no
17576 elif test $pkg_failed = untried; then
17577         ac_cv_sqlite3=no
17578 else
17579         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
17580         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
17581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582 $as_echo "yes" >&6; }
17583         ac_cv_sqlite3=yes
17584 fi
17585         fi
17586
17587 if test x$ac_cv_sqlite3 = "xyes" ; then
17588         HAVE_SQLITE3=1
17589 else
17590         HAVE_SQLITE3=0
17591         fi
17592
17593
17594 cat >>confdefs.h <<_ACEOF
17595 #define HAVE_SQLITE3 $HAVE_SQLITE3
17596 _ACEOF
17597
17598
17599 #====================================================================================
17600 # Determine if the processor can do clipping on float to int conversions.
17601
17602 if test x$enable_cpu_clip != "xno" ; then
17603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
17604 $as_echo_n "checking processor clipping capabilities... " >&6; }
17605 if test "${ac_cv_c_clip_type+set}" = set; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608   # Initialize to unknown
17609 ac_cv_c_clip_positive=unknown
17610 ac_cv_c_clip_negative=unknown
17611
17612
17613 if test $ac_cv_c_clip_positive = unknown ; then
17614         if test "$cross_compiling" = yes; then :
17615   ac_cv_c_clip_positive=unknown
17616
17617 else
17618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h.  */
17620
17621         #define _ISOC9X_SOURCE  1
17622         #define _ISOC99_SOURCE  1
17623         #define __USE_ISOC99    1
17624         #define __USE_ISOC9X    1
17625         #include <math.h>
17626         int main (void)
17627         {       double  fval ;
17628                 int k, ival ;
17629
17630                 fval = 1.0 * 0x7FFFFFFF ;
17631                 for (k = 0 ; k < 100 ; k++)
17632                 {       ival = (lrint (fval)) >> 24 ;
17633                         if (ival != 127)
17634                                 return 1 ;
17635
17636                         fval *= 1.2499999 ;
17637                         } ;
17638
17639                         return 0 ;
17640                 }
17641
17642 _ACEOF
17643 if ac_fn_c_try_run "$LINENO"; then :
17644   ac_cv_c_clip_positive=yes
17645 else
17646   ac_cv_c_clip_positive=no
17647 fi
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17649   conftest.$ac_objext conftest.beam conftest.$ac_ext
17650 fi
17651
17652
17653         if test "$cross_compiling" = yes; then :
17654   ac_cv_c_clip_negative=unknown
17655
17656 else
17657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h.  */
17659
17660         #define _ISOC9X_SOURCE  1
17661         #define _ISOC99_SOURCE  1
17662         #define __USE_ISOC99    1
17663         #define __USE_ISOC9X    1
17664         #include <math.h>
17665         int main (void)
17666         {       double  fval ;
17667                 int k, ival ;
17668
17669                 fval = -8.0 * 0x10000000 ;
17670                 for (k = 0 ; k < 100 ; k++)
17671                 {       ival = (lrint (fval)) >> 24 ;
17672                         if (ival != -128)
17673                                 return 1 ;
17674
17675                         fval *= 1.2499999 ;
17676                         } ;
17677
17678                         return 0 ;
17679                 }
17680
17681 _ACEOF
17682 if ac_fn_c_try_run "$LINENO"; then :
17683   ac_cv_c_clip_negative=yes
17684 else
17685   ac_cv_c_clip_negative=no
17686 fi
17687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688   conftest.$ac_objext conftest.beam conftest.$ac_ext
17689 fi
17690
17691         fi
17692
17693 if test $ac_cv_c_clip_positive = yes ; then
17694         ac_cv_c_clip_positive=1
17695 else
17696         ac_cv_c_clip_positive=0
17697         fi
17698
17699 if test $ac_cv_c_clip_negative = yes ; then
17700         ac_cv_c_clip_negative=1
17701 else
17702         ac_cv_c_clip_negative=0
17703         fi
17704
17705
17706 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
17707         "00")
17708                 ac_cv_c_clip_type="none"
17709                 ;;
17710         "10")
17711                 ac_cv_c_clip_type="positive"
17712                 ;;
17713         "01")
17714                 ac_cv_c_clip_type="negative"
17715                 ;;
17716         "11")
17717                 ac_cv_c_clip_type="both"
17718                 ;;
17719         esac
17720
17721
17722
17723 fi
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
17725 $as_echo "$ac_cv_c_clip_type" >&6; }
17726
17727
17728
17729 else
17730         echo "checking processor clipping capabilities... disabled"
17731         ac_cv_c_clip_positive=0
17732         ac_cv_c_clip_negative=0
17733         fi
17734
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
17738 _ACEOF
17739
17740
17741 cat >>confdefs.h <<_ACEOF
17742 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
17743 _ACEOF
17744
17745
17746 #====================================================================================
17747 # Target OS specific stuff.
17748
17749 OS_SPECIFIC_CFLAGS=""
17750 OS_SPECIFIC_LINKS=""
17751 os_is_win32=0
17752 os_is_macosx=0
17753 use_windows_api=0
17754
17755 case "$host_os" in
17756         darwin* | rhapsody*)
17757                 os_is_macosx=1
17758                 OS_SPECIFIC_CFLAGS="-fpascal-strings -I/Developer/Headers/FlatCarbon"
17759                 OS_SPECIFIC_LINKS="-framework CoreAudio"
17760                 ;;
17761         mingw*)
17762                 os_is_win32=1
17763                 use_windows_api=1
17764                 OS_SPECIFIC_LINKS="-lwinmm"
17765                 ;;
17766         esac
17767
17768
17769 cat >>confdefs.h <<_ACEOF
17770 #define OS_IS_WIN32 ${os_is_win32}
17771 _ACEOF
17772
17773
17774 cat >>confdefs.h <<_ACEOF
17775 #define OS_IS_MACOSX ${os_is_macosx}
17776 _ACEOF
17777
17778
17779 cat >>confdefs.h <<_ACEOF
17780 #define USE_WINDOWS_API ${use_windows_api}
17781 _ACEOF
17782
17783
17784 #====================================================================================
17785 # Check for ALSA.
17786
17787 ALSA_LIBS=""
17788
17789 if test x$enable_alsa != xno ; then
17790         for ac_header in alsa/asoundlib.h
17791 do :
17792   ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
17793 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
17794   cat >>confdefs.h <<_ACEOF
17795 #define HAVE_ALSA_ASOUNDLIB_H 1
17796 _ACEOF
17797
17798 fi
17799
17800 done
17801
17802         if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
17803                 ALSA_LIBS="-lasound"
17804                 enable_alsa=yes
17805                 fi
17806         fi
17807
17808 #====================================================================================
17809 # Test for sanity when cross-compiling.
17810
17811 if test x$cross_compiling = xyes ; then
17812         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17813 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17814         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
17815 $as_echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
17816         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and sizeof (int) == 4. If this is not the case there is no    " >&5
17817 $as_echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no    " >&2;}
17818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chance of this working. Please contact the mantainer.         " >&5
17819 $as_echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer.         " >&2;}
17820         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17821 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17822         fi
17823
17824 if test $ac_cv_sizeof_short != 2 ; then
17825         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17826 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17827         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2.                                          " >&5
17828 $as_echo "$as_me: WARNING: *** sizeof (short) != 2.                                          " >&2;}
17829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17830 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17831         fi
17832
17833 if test $ac_cv_sizeof_int != 4 ; then
17834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17835 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17836         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4                                             " >&5
17837 $as_echo "$as_me: WARNING: *** sizeof (int) != 4                                             " >&2;}
17838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17839 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17840         fi
17841
17842 if test $ac_cv_sizeof_float != 4 ; then
17843         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17844 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17845         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4.                                          " >&5
17846 $as_echo "$as_me: WARNING: *** sizeof (float) != 4.                                          " >&2;}
17847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17848 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17849         fi
17850
17851 if test $ac_cv_sizeof_double != 8 ; then
17852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17853 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17854         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8.                                         " >&5
17855 $as_echo "$as_me: WARNING: *** sizeof (double) != 8.                                         " >&2;}
17856         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17857 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17858         fi
17859
17860 if test x"$ac_cv_prog_HAVE_AUTOGEN" = "xno" ; then
17861         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
17862 $as_echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
17863         touch tests/*.c tests/*.h
17864         fi
17865
17866 #====================================================================================
17867 # Settings for the HTML documentation.
17868
17869 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
17870
17871 if test $prefix = "NONE" ; then
17872         htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
17873 else
17874         htmldocdir=$prefix/share/doc/libsndfile1-dev/html
17875         fi
17876
17877 if test x$enable_bow_docs = "xyes" ; then
17878         HTML_BGCOLOUR="white"
17879         HTML_FGCOLOUR="black"
17880 else
17881         HTML_BGCOLOUR="black"
17882         HTML_FGCOLOUR="white"
17883         fi
17884
17885 #====================================================================================
17886 # Now use the information from the checking stage.
17887
17888 win32_target_dll=0
17889 COMPILER_IS_GCC=0
17890
17891 if test x$ac_cv_c_compiler_gnu = xyes ; then
17892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=gnu99" >&5
17893 $as_echo_n "checking if $CC accepts -std=gnu99... " >&6; }
17894         ac_add_cflags__old_cflags="$CFLAGS"
17895         CFLAGS="$CFLAGS -std=gnu99"
17896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h.  */
17898
17899                         #include <stdio.h>
17900
17901 int
17902 main ()
17903 {
17904 puts("Hello, World!"); return 0;
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17912 else
17913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915                 CFLAGS="$ac_add_cflags__old_cflags"
17916
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919     conftest$ac_exeext conftest.$ac_ext
17920
17921
17922
17923 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
17924
17925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
17926 $as_echo_n "checking for version of $CC... " >&6; }
17927         GCC_VERSION=`$CC -dumpversion`
17928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
17929 $as_echo "$GCC_VERSION" >&6; }
17930
17931                 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
17932         GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
17933                 fi
17934
17935
17936
17937
17938
17939
17940
17941         if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
17942                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
17943 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
17944                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&5
17945 $as_echo "$as_me: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&2;}
17946                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** reason but the maintainers do not see it as a bug.         **" >&5
17947 $as_echo "$as_me: WARNING: ** reason but the maintainers do not see it as a bug.         **" >&2;}
17948                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995      **" >&5
17949 $as_echo "$as_me: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995      **" >&2;}
17950                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Using -fgnu-inline to avoid this stupidity.                **" >&5
17951 $as_echo "$as_me: WARNING: ** Using -fgnu-inline to avoid this stupidity.                **" >&2;}
17952                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
17953 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
17954                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
17955 $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
17956         ac_add_cflags__old_cflags="$CFLAGS"
17957         CFLAGS="$CFLAGS -fgnu89-inline"
17958         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h.  */
17960
17961                         #include <stdio.h>
17962
17963 int
17964 main ()
17965 {
17966 puts("Hello, World!"); return 0;
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17973 $as_echo "yes" >&6; }
17974 else
17975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977                 CFLAGS="$ac_add_cflags__old_cflags"
17978
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982
17983                 fi
17984
17985         CFLAGS="$CFLAGS -Wall"
17986         CXXFLAGS="$CXXFLAGS -Wall"
17987
17988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra" >&5
17989 $as_echo_n "checking if $CC accepts -Wextra... " >&6; }
17990         ac_add_cflags__old_cflags="$CFLAGS"
17991         CFLAGS="$CFLAGS -Wextra"
17992         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h.  */
17994
17995                         #include <stdio.h>
17996
17997 int
17998 main ()
17999 {
18000 puts("Hello, World!"); return 0;
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18007 $as_echo "yes" >&6; }
18008 else
18009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010 $as_echo "no" >&6; }
18011                 CFLAGS="$ac_add_cflags__old_cflags"
18012
18013 fi
18014 rm -f core conftest.err conftest.$ac_objext \
18015     conftest$ac_exeext conftest.$ac_ext
18016
18017
18018         ac_ext=cpp
18019 ac_cpp='$CXXCPP $CPPFLAGS'
18020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18023
18024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra" >&5
18025 $as_echo_n "checking if $CXX accepts -Wextra... " >&6; }
18026         ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
18027         CXXFLAGS="$CXXFLAGS -Wextra"
18028         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h.  */
18030
18031                         #include <cstdio>
18032
18033 int
18034 main ()
18035 {
18036 puts("Hello, World!"); return 0;
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041 if ac_fn_cxx_try_link "$LINENO"; then :
18042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18043 $as_echo "yes" >&6; }
18044 else
18045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 $as_echo "no" >&6; }
18047                 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
18048
18049 fi
18050 rm -f core conftest.err conftest.$ac_objext \
18051     conftest$ac_exeext conftest.$ac_ext
18052
18053         ac_ext=c
18054 ac_cpp='$CPP $CPPFLAGS'
18055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058
18059
18060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
18061 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
18062         ac_add_cflags__old_cflags="$CFLAGS"
18063         CFLAGS="$CFLAGS -Wdeclaration-after-statement"
18064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h.  */
18066
18067                         #include <stdio.h>
18068
18069 int
18070 main ()
18071 {
18072 puts("Hello, World!"); return 0;
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 if ac_fn_c_try_link "$LINENO"; then :
18078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18079 $as_echo "yes" >&6; }
18080 else
18081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18083                 CFLAGS="$ac_add_cflags__old_cflags"
18084
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext \
18087     conftest$ac_exeext conftest.$ac_ext
18088
18089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpointer-arith" >&5
18090 $as_echo_n "checking if $CC accepts -Wpointer-arith... " >&6; }
18091         ac_add_cflags__old_cflags="$CFLAGS"
18092         CFLAGS="$CFLAGS -Wpointer-arith"
18093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h.  */
18095
18096                         #include <stdio.h>
18097
18098 int
18099 main ()
18100 {
18101 puts("Hello, World!"); return 0;
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18108 $as_echo "yes" >&6; }
18109 else
18110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 $as_echo "no" >&6; }
18112                 CFLAGS="$ac_add_cflags__old_cflags"
18113
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext \
18116     conftest$ac_exeext conftest.$ac_ext
18117
18118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funsigned-char" >&5
18119 $as_echo_n "checking if $CC accepts -funsigned-char... " >&6; }
18120         ac_add_cflags__old_cflags="$CFLAGS"
18121         CFLAGS="$CFLAGS -funsigned-char"
18122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h.  */
18124
18125                         #include <stdio.h>
18126
18127 int
18128 main ()
18129 {
18130 puts("Hello, World!"); return 0;
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 if ac_fn_c_try_link "$LINENO"; then :
18136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138 else
18139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18141                 CFLAGS="$ac_add_cflags__old_cflags"
18142
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext \
18145     conftest$ac_exeext conftest.$ac_ext
18146
18147
18148         if test x$enable_gcc_werror = "xyes" ; then
18149                 CFLAGS="-Werror $CFLAGS"
18150                 CXXFLAGS="-Werror $CXXFLAGS"
18151                 fi
18152
18153         if test x$enable_test_coverage = "xyes" ; then
18154                 # MN_ADD_CFLAGS([-ftest-coverage])
18155                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -coverage" >&5
18156 $as_echo_n "checking if $CC accepts -coverage... " >&6; }
18157         ac_add_cflags__old_cflags="$CFLAGS"
18158         CFLAGS="$CFLAGS -coverage"
18159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h.  */
18161
18162                         #include <stdio.h>
18163
18164 int
18165 main ()
18166 {
18167 puts("Hello, World!"); return 0;
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 if ac_fn_c_try_link "$LINENO"; then :
18173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174 $as_echo "yes" >&6; }
18175 else
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178                 CFLAGS="$ac_add_cflags__old_cflags"
18179
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext \
18182     conftest$ac_exeext conftest.$ac_ext
18183
18184                 fi
18185
18186         CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings "
18187         # -Wundef -Wmissing-declarations -Winline -Wconversion"
18188         CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo "
18189
18190         if test "x$enable_gcc_opt" = "xno" ; then
18191                 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
18192                 CFLAGS=$temp_CFLAGS
18193                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
18194 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
18195                 fi
18196
18197         # OS specific tweaks.
18198         case "$host_os" in
18199                 darwin* | rhapsody*)
18200                         # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
18201                         # System headers on these systems are broken.
18202                         temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall -pedantic//" | sed "s/-Wshadow//" | sed "s/-Waggregate-return//"`
18203                         CFLAGS=$temp_CFLAGS
18204                         SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
18205                         ;;
18206                 linux*)
18207                         SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.linux"
18208                         ;;
18209                 mingw*)
18210                         # Linker flag '-Wl,--out-implib' does not work with mingw cross compiler
18211                         # so we don't use it here.
18212                         SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def"
18213                         win32_target_dll=1
18214                         if test x"$enable_shared" = xno ; then
18215                                 win32_target_dll=0
18216                                 fi
18217                         ;;
18218                 os2*)
18219                         SHLIB_VERSION_ARG="-Wl,-export-symbols \$(srcdir)/Symbols.os2"
18220                         ;;
18221                 *)
18222                         ;;
18223                 esac
18224         if test x$enable_gcc_pipe != "xno" ; then
18225                 CFLAGS="$CFLAGS -pipe"
18226                 fi
18227
18228         COMPILER_IS_GCC=1
18229         fi
18230
18231
18232 cat >>confdefs.h <<_ACEOF
18233 #define WIN32_TARGET_DLL ${win32_target_dll}
18234 _ACEOF
18235
18236
18237 cat >>confdefs.h <<_ACEOF
18238 #define COMPILER_IS_GCC ${COMPILER_IS_GCC}
18239 _ACEOF
18240
18241
18242 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
18243
18244 if test x"$CFLAGS" = x ; then
18245         echo "Error in configure script. CFLAGS has been screwed up."
18246         exit
18247         fi
18248
18249 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
18250
18251 #-------------------------------------------------------------------------------
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270 # Shave make automake/libtool output much less verbose and much more
18271 # readable. See : git://git.lespiau.name/shave
18272
18273
18274   # Check whether --enable-shave was given.
18275 if test "${enable_shave+set}" = set; then :
18276   enableval=$enable_shave;
18277 else
18278   enable_shave=yes
18279
18280 fi
18281
18282
18283
18284   if test x"$enable_shave" = xyes; then
18285         shavedir="$ac_pwd"
18286
18287
18288         MAKEFLAGS=-s
18289
18290     AM_MAKEFLAGS='`test -z $V && echo -s`'
18291
18292
18293         # Extract the first word of "sed", so it can be a program name with args.
18294 set dummy sed; ac_word=$2
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18296 $as_echo_n "checking for $ac_word... " >&6; }
18297 if test "${ac_cv_prog_SED+set}" = set; then :
18298   $as_echo_n "(cached) " >&6
18299 else
18300   if test -n "$SED"; then
18301   ac_cv_prog_SED="$SED" # Let the user override the test.
18302 else
18303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18304 for as_dir in $PATH
18305 do
18306   IFS=$as_save_IFS
18307   test -z "$as_dir" && as_dir=.
18308     for ac_exec_ext in '' $ac_executable_extensions; do
18309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18310     ac_cv_prog_SED="sed"
18311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18312     break 2
18313   fi
18314 done
18315   done
18316 IFS=$as_save_IFS
18317
18318   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
18319 fi
18320 fi
18321 SED=$ac_cv_prog_SED
18322 if test -n "$SED"; then
18323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
18324 $as_echo "$SED" >&6; }
18325 else
18326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18328 fi
18329
18330
18331
18332         SHAVE_SAVED_LIBTOOL=$LIBTOOL
18333     LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
18334
18335
18336         SHAVE_SAVED_CC=$CC
18337     SHAVE_SAVED_CXX=$CXX
18338     SHAVE_SAVED_FC=$FC
18339     SHAVE_SAVED_F77=$F77
18340     SHAVE_SAVED_OBJC=$OBJC
18341     CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
18342     CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
18343     FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
18344     F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
18345     OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
18346
18347
18348
18349
18350
18351
18352     V=@
18353   else
18354     V=1
18355   fi
18356   Q='$(V:1=)'
18357
18358
18359
18360
18361 ac_config_files="$ac_config_files shave shave-libtool src/sndfile.h src/Makefile src/GSM610/Makefile src/G72x/Makefile man/Makefile examples/Makefile tests/Makefile regtest/Makefile M4/Makefile doc/Makefile Win32/Makefile Octave/Makefile programs/Makefile doc/libsndfile.css Makefile libsndfile.spec sndfile.pc tests/test_wrapper.sh build-test-tarball.mk"
18362
18363 cat >confcache <<\_ACEOF
18364 # This file is a shell script that caches the results of configure
18365 # tests run on this system so they can be shared between configure
18366 # scripts and configure runs, see configure's option --config-cache.
18367 # It is not useful on other systems.  If it contains results you don't
18368 # want to keep, you may remove or edit it.
18369 #
18370 # config.status only pays attention to the cache file if you give it
18371 # the --recheck option to rerun configure.
18372 #
18373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18375 # following values.
18376
18377 _ACEOF
18378
18379 # The following way of writing the cache mishandles newlines in values,
18380 # but we know of no workaround that is simple, portable, and efficient.
18381 # So, we kill variables containing newlines.
18382 # Ultrix sh set writes to stderr and can't be redirected directly,
18383 # and sets the high bit in the cache file unless we assign to the vars.
18384 (
18385   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18386     eval ac_val=\$$ac_var
18387     case $ac_val in #(
18388     *${as_nl}*)
18389       case $ac_var in #(
18390       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18392       esac
18393       case $ac_var in #(
18394       _ | IFS | as_nl) ;; #(
18395       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18396       *) { eval $ac_var=; unset $ac_var;} ;;
18397       esac ;;
18398     esac
18399   done
18400
18401   (set) 2>&1 |
18402     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18403     *${as_nl}ac_space=\ *)
18404       # `set' does not quote correctly, so add quotes: double-quote
18405       # substitution turns \\\\ into \\, and sed turns \\ into \.
18406       sed -n \
18407         "s/'/'\\\\''/g;
18408           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18409       ;; #(
18410     *)
18411       # `set' quotes correctly as required by POSIX, so do not add quotes.
18412       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18413       ;;
18414     esac |
18415     sort
18416 ) |
18417   sed '
18418      /^ac_cv_env_/b end
18419      t clear
18420      :clear
18421      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18422      t end
18423      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18424      :end' >>confcache
18425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18426   if test -w "$cache_file"; then
18427     test "x$cache_file" != "x/dev/null" &&
18428       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18429 $as_echo "$as_me: updating cache $cache_file" >&6;}
18430     cat confcache >$cache_file
18431   else
18432     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18433 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18434   fi
18435 fi
18436 rm -f confcache
18437
18438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18439 # Let make expand exec_prefix.
18440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18441
18442 DEFS=-DHAVE_CONFIG_H
18443
18444 ac_libobjs=
18445 ac_ltlibobjs=
18446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18447   # 1. Remove the extension, and $U if already installed.
18448   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18449   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18450   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18451   #    will be set to the directory where LIBOBJS objects are built.
18452   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18453   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18454 done
18455 LIBOBJS=$ac_libobjs
18456
18457 LTLIBOBJS=$ac_ltlibobjs
18458
18459
18460  if test -n "$EXEEXT"; then
18461   am__EXEEXT_TRUE=
18462   am__EXEEXT_FALSE='#'
18463 else
18464   am__EXEEXT_TRUE='#'
18465   am__EXEEXT_FALSE=
18466 fi
18467
18468 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18469   as_fn_error "conditional \"AMDEP\" was never defined.
18470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18471 fi
18472 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18473   as_fn_error "conditional \"am__fastdepCC\" was never defined.
18474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18475 fi
18476 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18477   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18479 fi
18480 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18481   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18483 fi
18484 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
18485   as_fn_error "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
18486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18487 fi
18488 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
18489   as_fn_error "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
18490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18491 fi
18492 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18493   as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18495 fi
18496 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18497   as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18499 fi
18500 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18501   as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18503 fi
18504
18505 : ${CONFIG_STATUS=./config.status}
18506 ac_write_fail=0
18507 ac_clean_files_save=$ac_clean_files
18508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18511 as_write_fail=0
18512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18513 #! $SHELL
18514 # Generated by $as_me.
18515 # Run this file to recreate the current configuration.
18516 # Compiler output produced by configure, useful for debugging
18517 # configure, is in config.log if it exists.
18518
18519 debug=false
18520 ac_cs_recheck=false
18521 ac_cs_silent=false
18522
18523 SHELL=\${CONFIG_SHELL-$SHELL}
18524 export SHELL
18525 _ASEOF
18526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18527 ## -------------------- ##
18528 ## M4sh Initialization. ##
18529 ## -------------------- ##
18530
18531 # Be more Bourne compatible
18532 DUALCASE=1; export DUALCASE # for MKS sh
18533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18534   emulate sh
18535   NULLCMD=:
18536   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18537   # is contrary to our usage.  Disable this feature.
18538   alias -g '${1+"$@"}'='"$@"'
18539   setopt NO_GLOB_SUBST
18540 else
18541   case `(set -o) 2>/dev/null` in #(
18542   *posix*) :
18543     set -o posix ;; #(
18544   *) :
18545      ;;
18546 esac
18547 fi
18548
18549
18550 as_nl='
18551 '
18552 export as_nl
18553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18554 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18557 # Prefer a ksh shell builtin over an external printf program on Solaris,
18558 # but without wasting forks for bash or zsh.
18559 if test -z "$BASH_VERSION$ZSH_VERSION" \
18560     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18561   as_echo='print -r --'
18562   as_echo_n='print -rn --'
18563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18564   as_echo='printf %s\n'
18565   as_echo_n='printf %s'
18566 else
18567   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18568     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18569     as_echo_n='/usr/ucb/echo -n'
18570   else
18571     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18572     as_echo_n_body='eval
18573       arg=$1;
18574       case $arg in #(
18575       *"$as_nl"*)
18576         expr "X$arg" : "X\\(.*\\)$as_nl";
18577         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18578       esac;
18579       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18580     '
18581     export as_echo_n_body
18582     as_echo_n='sh -c $as_echo_n_body as_echo'
18583   fi
18584   export as_echo_body
18585   as_echo='sh -c $as_echo_body as_echo'
18586 fi
18587
18588 # The user is always right.
18589 if test "${PATH_SEPARATOR+set}" != set; then
18590   PATH_SEPARATOR=:
18591   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18592     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18593       PATH_SEPARATOR=';'
18594   }
18595 fi
18596
18597
18598 # IFS
18599 # We need space, tab and new line, in precisely that order.  Quoting is
18600 # there to prevent editors from complaining about space-tab.
18601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18602 # splitting by setting IFS to empty value.)
18603 IFS=" ""        $as_nl"
18604
18605 # Find who we are.  Look in the path if we contain no directory separator.
18606 case $0 in #((
18607   *[\\/]* ) as_myself=$0 ;;
18608   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18609 for as_dir in $PATH
18610 do
18611   IFS=$as_save_IFS
18612   test -z "$as_dir" && as_dir=.
18613     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18614   done
18615 IFS=$as_save_IFS
18616
18617      ;;
18618 esac
18619 # We did not find ourselves, most probably we were run as `sh COMMAND'
18620 # in which case we are not to be found in the path.
18621 if test "x$as_myself" = x; then
18622   as_myself=$0
18623 fi
18624 if test ! -f "$as_myself"; then
18625   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18626   exit 1
18627 fi
18628
18629 # Unset variables that we do not need and which cause bugs (e.g. in
18630 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18631 # suppresses any "Segmentation fault" message there.  '((' could
18632 # trigger a bug in pdksh 5.2.14.
18633 for as_var in BASH_ENV ENV MAIL MAILPATH
18634 do eval test x\${$as_var+set} = xset \
18635   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18636 done
18637 PS1='$ '
18638 PS2='> '
18639 PS4='+ '
18640
18641 # NLS nuisances.
18642 LC_ALL=C
18643 export LC_ALL
18644 LANGUAGE=C
18645 export LANGUAGE
18646
18647 # CDPATH.
18648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18649
18650
18651 # as_fn_error ERROR [LINENO LOG_FD]
18652 # ---------------------------------
18653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18655 # script with status $?, using 1 if that was 0.
18656 as_fn_error ()
18657 {
18658   as_status=$?; test $as_status -eq 0 && as_status=1
18659   if test "$3"; then
18660     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18661     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18662   fi
18663   $as_echo "$as_me: error: $1" >&2
18664   as_fn_exit $as_status
18665 } # as_fn_error
18666
18667
18668 # as_fn_set_status STATUS
18669 # -----------------------
18670 # Set $? to STATUS, without forking.
18671 as_fn_set_status ()
18672 {
18673   return $1
18674 } # as_fn_set_status
18675
18676 # as_fn_exit STATUS
18677 # -----------------
18678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18679 as_fn_exit ()
18680 {
18681   set +e
18682   as_fn_set_status $1
18683   exit $1
18684 } # as_fn_exit
18685
18686 # as_fn_unset VAR
18687 # ---------------
18688 # Portably unset VAR.
18689 as_fn_unset ()
18690 {
18691   { eval $1=; unset $1;}
18692 }
18693 as_unset=as_fn_unset
18694 # as_fn_append VAR VALUE
18695 # ----------------------
18696 # Append the text in VALUE to the end of the definition contained in VAR. Take
18697 # advantage of any shell optimizations that allow amortized linear growth over
18698 # repeated appends, instead of the typical quadratic growth present in naive
18699 # implementations.
18700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18701   eval 'as_fn_append ()
18702   {
18703     eval $1+=\$2
18704   }'
18705 else
18706   as_fn_append ()
18707   {
18708     eval $1=\$$1\$2
18709   }
18710 fi # as_fn_append
18711
18712 # as_fn_arith ARG...
18713 # ------------------
18714 # Perform arithmetic evaluation on the ARGs, and store the result in the
18715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18716 # must be portable across $(()) and expr.
18717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18718   eval 'as_fn_arith ()
18719   {
18720     as_val=$(( $* ))
18721   }'
18722 else
18723   as_fn_arith ()
18724   {
18725     as_val=`expr "$@" || test $? -eq 1`
18726   }
18727 fi # as_fn_arith
18728
18729
18730 if expr a : '\(a\)' >/dev/null 2>&1 &&
18731    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18732   as_expr=expr
18733 else
18734   as_expr=false
18735 fi
18736
18737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18738   as_basename=basename
18739 else
18740   as_basename=false
18741 fi
18742
18743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18744   as_dirname=dirname
18745 else
18746   as_dirname=false
18747 fi
18748
18749 as_me=`$as_basename -- "$0" ||
18750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18751          X"$0" : 'X\(//\)$' \| \
18752          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18753 $as_echo X/"$0" |
18754     sed '/^.*\/\([^/][^/]*\)\/*$/{
18755             s//\1/
18756             q
18757           }
18758           /^X\/\(\/\/\)$/{
18759             s//\1/
18760             q
18761           }
18762           /^X\/\(\/\).*/{
18763             s//\1/
18764             q
18765           }
18766           s/.*/./; q'`
18767
18768 # Avoid depending upon Character Ranges.
18769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18772 as_cr_digits='0123456789'
18773 as_cr_alnum=$as_cr_Letters$as_cr_digits
18774
18775 ECHO_C= ECHO_N= ECHO_T=
18776 case `echo -n x` in #(((((
18777 -n*)
18778   case `echo 'xy\c'` in
18779   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18780   xy)  ECHO_C='\c';;
18781   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18782        ECHO_T=' ';;
18783   esac;;
18784 *)
18785   ECHO_N='-n';;
18786 esac
18787
18788 rm -f conf$$ conf$$.exe conf$$.file
18789 if test -d conf$$.dir; then
18790   rm -f conf$$.dir/conf$$.file
18791 else
18792   rm -f conf$$.dir
18793   mkdir conf$$.dir 2>/dev/null
18794 fi
18795 if (echo >conf$$.file) 2>/dev/null; then
18796   if ln -s conf$$.file conf$$ 2>/dev/null; then
18797     as_ln_s='ln -s'
18798     # ... but there are two gotchas:
18799     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18800     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18801     # In both cases, we have to default to `cp -p'.
18802     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18803       as_ln_s='cp -p'
18804   elif ln conf$$.file conf$$ 2>/dev/null; then
18805     as_ln_s=ln
18806   else
18807     as_ln_s='cp -p'
18808   fi
18809 else
18810   as_ln_s='cp -p'
18811 fi
18812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18813 rmdir conf$$.dir 2>/dev/null
18814
18815
18816 # as_fn_mkdir_p
18817 # -------------
18818 # Create "$as_dir" as a directory, including parents if necessary.
18819 as_fn_mkdir_p ()
18820 {
18821
18822   case $as_dir in #(
18823   -*) as_dir=./$as_dir;;
18824   esac
18825   test -d "$as_dir" || eval $as_mkdir_p || {
18826     as_dirs=
18827     while :; do
18828       case $as_dir in #(
18829       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18830       *) as_qdir=$as_dir;;
18831       esac
18832       as_dirs="'$as_qdir' $as_dirs"
18833       as_dir=`$as_dirname -- "$as_dir" ||
18834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18835          X"$as_dir" : 'X\(//\)[^/]' \| \
18836          X"$as_dir" : 'X\(//\)$' \| \
18837          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X"$as_dir" |
18839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18840             s//\1/
18841             q
18842           }
18843           /^X\(\/\/\)[^/].*/{
18844             s//\1/
18845             q
18846           }
18847           /^X\(\/\/\)$/{
18848             s//\1/
18849             q
18850           }
18851           /^X\(\/\).*/{
18852             s//\1/
18853             q
18854           }
18855           s/.*/./; q'`
18856       test -d "$as_dir" && break
18857     done
18858     test -z "$as_dirs" || eval "mkdir $as_dirs"
18859   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18860
18861
18862 } # as_fn_mkdir_p
18863 if mkdir -p . 2>/dev/null; then
18864   as_mkdir_p='mkdir -p "$as_dir"'
18865 else
18866   test -d ./-p && rmdir ./-p
18867   as_mkdir_p=false
18868 fi
18869
18870 if test -x / >/dev/null 2>&1; then
18871   as_test_x='test -x'
18872 else
18873   if ls -dL / >/dev/null 2>&1; then
18874     as_ls_L_option=L
18875   else
18876     as_ls_L_option=
18877   fi
18878   as_test_x='
18879     eval sh -c '\''
18880       if test -d "$1"; then
18881         test -d "$1/.";
18882       else
18883         case $1 in #(
18884         -*)set "./$1";;
18885         esac;
18886         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18887         ???[sx]*):;;*)false;;esac;fi
18888     '\'' sh
18889   '
18890 fi
18891 as_executable_p=$as_test_x
18892
18893 # Sed expression to map a string onto a valid CPP name.
18894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18895
18896 # Sed expression to map a string onto a valid variable name.
18897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18898
18899
18900 exec 6>&1
18901 ## ----------------------------------- ##
18902 ## Main body of $CONFIG_STATUS script. ##
18903 ## ----------------------------------- ##
18904 _ASEOF
18905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18906
18907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18908 # Save the log message, to keep $0 and so on meaningful, and to
18909 # report actual input values of CONFIG_FILES etc. instead of their
18910 # values after options handling.
18911 ac_log="
18912 This file was extended by libsndfile $as_me 1.0.21, which was
18913 generated by GNU Autoconf 2.64.  Invocation command line was
18914
18915   CONFIG_FILES    = $CONFIG_FILES
18916   CONFIG_HEADERS  = $CONFIG_HEADERS
18917   CONFIG_LINKS    = $CONFIG_LINKS
18918   CONFIG_COMMANDS = $CONFIG_COMMANDS
18919   $ $0 $@
18920
18921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18922 "
18923
18924 _ACEOF
18925
18926 case $ac_config_files in *"
18927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18928 esac
18929
18930 case $ac_config_headers in *"
18931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18932 esac
18933
18934
18935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18936 # Files that config.status was made for.
18937 config_files="$ac_config_files"
18938 config_headers="$ac_config_headers"
18939 config_commands="$ac_config_commands"
18940
18941 _ACEOF
18942
18943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18944 ac_cs_usage="\
18945 \`$as_me' instantiates files and other configuration actions
18946 from templates according to the current configuration.  Unless the files
18947 and actions are specified as TAGs, all are instantiated by default.
18948
18949 Usage: $0 [OPTION]... [TAG]...
18950
18951   -h, --help       print this help, then exit
18952   -V, --version    print version number and configuration settings, then exit
18953   -q, --quiet, --silent
18954                    do not print progress messages
18955   -d, --debug      don't remove temporary files
18956       --recheck    update $as_me by reconfiguring in the same conditions
18957       --file=FILE[:TEMPLATE]
18958                    instantiate the configuration file FILE
18959       --header=FILE[:TEMPLATE]
18960                    instantiate the configuration header FILE
18961
18962 Configuration files:
18963 $config_files
18964
18965 Configuration headers:
18966 $config_headers
18967
18968 Configuration commands:
18969 $config_commands
18970
18971 Report bugs to <erikd@mega-nerd.com>."
18972
18973 _ACEOF
18974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18975 ac_cs_version="\\
18976 libsndfile config.status 1.0.21
18977 configured by $0, generated by GNU Autoconf 2.64,
18978   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18979
18980 Copyright (C) 2009 Free Software Foundation, Inc.
18981 This config.status script is free software; the Free Software Foundation
18982 gives unlimited permission to copy, distribute and modify it."
18983
18984 ac_pwd='$ac_pwd'
18985 srcdir='$srcdir'
18986 INSTALL='$INSTALL'
18987 MKDIR_P='$MKDIR_P'
18988 AWK='$AWK'
18989 test -n "\$AWK" || AWK=awk
18990 _ACEOF
18991
18992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18993 # The default lists apply if the user does not specify any file.
18994 ac_need_defaults=:
18995 while test $# != 0
18996 do
18997   case $1 in
18998   --*=*)
18999     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19000     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19001     ac_shift=:
19002     ;;
19003   *)
19004     ac_option=$1
19005     ac_optarg=$2
19006     ac_shift=shift
19007     ;;
19008   esac
19009
19010   case $ac_option in
19011   # Handling of the options.
19012   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19013     ac_cs_recheck=: ;;
19014   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19015     $as_echo "$ac_cs_version"; exit ;;
19016   --debug | --debu | --deb | --de | --d | -d )
19017     debug=: ;;
19018   --file | --fil | --fi | --f )
19019     $ac_shift
19020     case $ac_optarg in
19021     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19022     esac
19023     as_fn_append CONFIG_FILES " '$ac_optarg'"
19024     ac_need_defaults=false;;
19025   --header | --heade | --head | --hea )
19026     $ac_shift
19027     case $ac_optarg in
19028     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19029     esac
19030     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19031     ac_need_defaults=false;;
19032   --he | --h)
19033     # Conflict between --help and --header
19034     as_fn_error "ambiguous option: \`$1'
19035 Try \`$0 --help' for more information.";;
19036   --help | --hel | -h )
19037     $as_echo "$ac_cs_usage"; exit ;;
19038   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19039   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19040     ac_cs_silent=: ;;
19041
19042   # This is an error.
19043   -*) as_fn_error "unrecognized option: \`$1'
19044 Try \`$0 --help' for more information." ;;
19045
19046   *) as_fn_append ac_config_targets " $1"
19047      ac_need_defaults=false ;;
19048
19049   esac
19050   shift
19051 done
19052
19053 ac_configure_extra_args=
19054
19055 if $ac_cs_silent; then
19056   exec 6>/dev/null
19057   ac_configure_extra_args="$ac_configure_extra_args --silent"
19058 fi
19059
19060 _ACEOF
19061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062 if \$ac_cs_recheck; then
19063   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19064   shift
19065   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19066   CONFIG_SHELL='$SHELL'
19067   export CONFIG_SHELL
19068   exec "\$@"
19069 fi
19070
19071 _ACEOF
19072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19073 exec 5>>config.log
19074 {
19075   echo
19076   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19077 ## Running $as_me. ##
19078 _ASBOX
19079   $as_echo "$ac_log"
19080 } >&5
19081
19082 _ACEOF
19083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084 #
19085 # INIT-COMMANDS
19086 #
19087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19088
19089
19090 # The HP-UX ksh and POSIX shell print the target directory to stdout
19091 # if CDPATH is set.
19092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19093
19094 sed_quote_subst='$sed_quote_subst'
19095 double_quote_subst='$double_quote_subst'
19096 delay_variable_subst='$delay_variable_subst'
19097 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19098 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19099 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19100 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19101 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19102 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19103 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19104 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19105 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19106 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19107 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19108 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19109 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19110 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19111 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19112 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19113 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19114 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19115 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19116 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19117 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19118 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19119 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19120 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19121 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19122 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19123 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19124 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19125 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19126 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19127 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19128 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19129 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19130 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19131 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19132 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19133 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19134 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19135 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19136 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19137 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19138 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19139 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19140 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19141 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"`'
19142 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"`'
19143 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19144 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19145 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19146 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19147 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19148 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19149 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19150 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19151 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19152 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19153 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19154 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19155 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19156 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19157 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19158 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19159 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19160 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19161 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19162 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19163 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19164 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19165 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19166 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19167 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19168 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19169 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19170 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19171 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19172 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19173 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19174 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19175 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19176 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19177 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19178 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19179 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19180 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19181 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19182 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19183 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19184 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19185 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19186 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19187 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19188 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19189 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19190 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19191 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19192 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19193 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19194 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19195 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19196 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19197 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19198 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19199 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19200 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19201 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19202 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19203 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19204 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19205 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19206 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19207 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19208 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19209 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19210 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19211 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19212 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19213 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19214 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19215 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19216 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19217 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19218 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19219 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19220 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19221 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19222 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19223 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19224 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19225 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19226 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19227 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19228 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19229 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19230 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19231 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19232 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19233 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19234 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19235 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19236 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19237 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19238 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19239 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19240 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19241 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19242 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19243 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19244 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19245 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19246 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19247 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19248 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19249 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19250 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19251 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19252 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19253 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19254 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19255 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19256 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19257 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19258 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19259 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19260 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19261 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19262 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19263 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19264 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19265 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19266 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19267 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19268
19269 LTCC='$LTCC'
19270 LTCFLAGS='$LTCFLAGS'
19271 compiler='$compiler_DEFAULT'
19272
19273 # Quote evaled strings.
19274 for var in SED \
19275 GREP \
19276 EGREP \
19277 FGREP \
19278 LD \
19279 NM \
19280 LN_S \
19281 lt_SP2NL \
19282 lt_NL2SP \
19283 reload_flag \
19284 OBJDUMP \
19285 deplibs_check_method \
19286 file_magic_cmd \
19287 AR \
19288 AR_FLAGS \
19289 STRIP \
19290 RANLIB \
19291 CC \
19292 CFLAGS \
19293 compiler \
19294 lt_cv_sys_global_symbol_pipe \
19295 lt_cv_sys_global_symbol_to_cdecl \
19296 lt_cv_sys_global_symbol_to_c_name_address \
19297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19298 SHELL \
19299 ECHO \
19300 lt_prog_compiler_no_builtin_flag \
19301 lt_prog_compiler_wl \
19302 lt_prog_compiler_pic \
19303 lt_prog_compiler_static \
19304 lt_cv_prog_compiler_c_o \
19305 need_locks \
19306 DSYMUTIL \
19307 NMEDIT \
19308 LIPO \
19309 OTOOL \
19310 OTOOL64 \
19311 shrext_cmds \
19312 export_dynamic_flag_spec \
19313 whole_archive_flag_spec \
19314 compiler_needs_object \
19315 with_gnu_ld \
19316 allow_undefined_flag \
19317 no_undefined_flag \
19318 hardcode_libdir_flag_spec \
19319 hardcode_libdir_flag_spec_ld \
19320 hardcode_libdir_separator \
19321 fix_srcfile_path \
19322 exclude_expsyms \
19323 include_expsyms \
19324 file_list_spec \
19325 variables_saved_for_relink \
19326 libname_spec \
19327 library_names_spec \
19328 soname_spec \
19329 finish_eval \
19330 old_striplib \
19331 striplib \
19332 compiler_lib_search_dirs \
19333 predep_objects \
19334 postdep_objects \
19335 predeps \
19336 postdeps \
19337 compiler_lib_search_path \
19338 LD_CXX \
19339 compiler_CXX \
19340 lt_prog_compiler_no_builtin_flag_CXX \
19341 lt_prog_compiler_wl_CXX \
19342 lt_prog_compiler_pic_CXX \
19343 lt_prog_compiler_static_CXX \
19344 lt_cv_prog_compiler_c_o_CXX \
19345 export_dynamic_flag_spec_CXX \
19346 whole_archive_flag_spec_CXX \
19347 compiler_needs_object_CXX \
19348 with_gnu_ld_CXX \
19349 allow_undefined_flag_CXX \
19350 no_undefined_flag_CXX \
19351 hardcode_libdir_flag_spec_CXX \
19352 hardcode_libdir_flag_spec_ld_CXX \
19353 hardcode_libdir_separator_CXX \
19354 fix_srcfile_path_CXX \
19355 exclude_expsyms_CXX \
19356 include_expsyms_CXX \
19357 file_list_spec_CXX \
19358 compiler_lib_search_dirs_CXX \
19359 predep_objects_CXX \
19360 postdep_objects_CXX \
19361 predeps_CXX \
19362 postdeps_CXX \
19363 compiler_lib_search_path_CXX; do
19364     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19365     *[\\\\\\\`\\"\\\$]*)
19366       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19367       ;;
19368     *)
19369       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19370       ;;
19371     esac
19372 done
19373
19374 # Double-quote double-evaled strings.
19375 for var in reload_cmds \
19376 old_postinstall_cmds \
19377 old_postuninstall_cmds \
19378 old_archive_cmds \
19379 extract_expsyms_cmds \
19380 old_archive_from_new_cmds \
19381 old_archive_from_expsyms_cmds \
19382 archive_cmds \
19383 archive_expsym_cmds \
19384 module_cmds \
19385 module_expsym_cmds \
19386 export_symbols_cmds \
19387 prelink_cmds \
19388 postinstall_cmds \
19389 postuninstall_cmds \
19390 finish_cmds \
19391 sys_lib_search_path_spec \
19392 sys_lib_dlsearch_path_spec \
19393 old_archive_cmds_CXX \
19394 old_archive_from_new_cmds_CXX \
19395 old_archive_from_expsyms_cmds_CXX \
19396 archive_cmds_CXX \
19397 archive_expsym_cmds_CXX \
19398 module_cmds_CXX \
19399 module_expsym_cmds_CXX \
19400 export_symbols_cmds_CXX \
19401 prelink_cmds_CXX; do
19402     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19403     *[\\\\\\\`\\"\\\$]*)
19404       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19405       ;;
19406     *)
19407       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19408       ;;
19409     esac
19410 done
19411
19412 # Fix-up fallback echo if it was mangled by the above quoting rules.
19413 case \$lt_ECHO in
19414 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19415   ;;
19416 esac
19417
19418 ac_aux_dir='$ac_aux_dir'
19419 xsi_shell='$xsi_shell'
19420 lt_shell_append='$lt_shell_append'
19421
19422 # See if we are running on zsh, and set the options which allow our
19423 # commands through without removal of \ escapes INIT.
19424 if test -n "\${ZSH_VERSION+set}" ; then
19425    setopt NO_GLOB_SUBST
19426 fi
19427
19428
19429     PACKAGE='$PACKAGE'
19430     VERSION='$VERSION'
19431     TIMESTAMP='$TIMESTAMP'
19432     RM='$RM'
19433     ofile='$ofile'
19434
19435
19436
19437
19438
19439
19440 _ACEOF
19441
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443
19444 # Handling of arguments.
19445 for ac_config_target in $ac_config_targets
19446 do
19447   case $ac_config_target in
19448     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19449     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19450     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19451     "shave") CONFIG_FILES="$CONFIG_FILES shave" ;;
19452     "shave-libtool") CONFIG_FILES="$CONFIG_FILES shave-libtool" ;;
19453     "src/sndfile.h") CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
19454     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19455     "src/GSM610/Makefile") CONFIG_FILES="$CONFIG_FILES src/GSM610/Makefile" ;;
19456     "src/G72x/Makefile") CONFIG_FILES="$CONFIG_FILES src/G72x/Makefile" ;;
19457     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19458     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19459     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19460     "regtest/Makefile") CONFIG_FILES="$CONFIG_FILES regtest/Makefile" ;;
19461     "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
19462     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19463     "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
19464     "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
19465     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19466     "doc/libsndfile.css") CONFIG_FILES="$CONFIG_FILES doc/libsndfile.css" ;;
19467     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19468     "libsndfile.spec") CONFIG_FILES="$CONFIG_FILES libsndfile.spec" ;;
19469     "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
19470     "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
19471     "build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES build-test-tarball.mk" ;;
19472
19473   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19474   esac
19475 done
19476
19477
19478 # If the user did not use the arguments to specify the items to instantiate,
19479 # then the envvar interface is used.  Set only those that are not.
19480 # We use the long form for the default assignment because of an extremely
19481 # bizarre bug on SunOS 4.1.3.
19482 if $ac_need_defaults; then
19483   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19484   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19485   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19486 fi
19487
19488 # Have a temporary directory for convenience.  Make it in the build tree
19489 # simply because there is no reason against having it here, and in addition,
19490 # creating and moving files from /tmp can sometimes cause problems.
19491 # Hook for its removal unless debugging.
19492 # Note that there is a small window in which the directory will not be cleaned:
19493 # after its creation but before its name has been assigned to `$tmp'.
19494 $debug ||
19495 {
19496   tmp=
19497   trap 'exit_status=$?
19498   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19499 ' 0
19500   trap 'as_fn_exit 1' 1 2 13 15
19501 }
19502 # Create a (secure) tmp directory for tmp files.
19503
19504 {
19505   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19506   test -n "$tmp" && test -d "$tmp"
19507 }  ||
19508 {
19509   tmp=./conf$$-$RANDOM
19510   (umask 077 && mkdir "$tmp")
19511 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19512
19513 # Set up the scripts for CONFIG_FILES section.
19514 # No need to generate them if there are no CONFIG_FILES.
19515 # This happens for instance with `./config.status config.h'.
19516 if test -n "$CONFIG_FILES"; then
19517
19518
19519 ac_cr=`echo X | tr X '\015'`
19520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19521 # But we know of no other shell where ac_cr would be empty at this
19522 # point, so we can use a bashism as a fallback.
19523 if test "x$ac_cr" = x; then
19524   eval ac_cr=\$\'\\r\'
19525 fi
19526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19528   ac_cs_awk_cr='\r'
19529 else
19530   ac_cs_awk_cr=$ac_cr
19531 fi
19532
19533 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19534 _ACEOF
19535
19536
19537 {
19538   echo "cat >conf$$subs.awk <<_ACEOF" &&
19539   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19540   echo "_ACEOF"
19541 } >conf$$subs.sh ||
19542   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19544 ac_delim='%!_!# '
19545 for ac_last_try in false false false false false :; do
19546   . ./conf$$subs.sh ||
19547     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19548
19549   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19550   if test $ac_delim_n = $ac_delim_num; then
19551     break
19552   elif $ac_last_try; then
19553     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19554   else
19555     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19556   fi
19557 done
19558 rm -f conf$$subs.sh
19559
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19562 _ACEOF
19563 sed -n '
19564 h
19565 s/^/S["/; s/!.*/"]=/
19566 p
19567 g
19568 s/^[^!]*!//
19569 :repl
19570 t repl
19571 s/'"$ac_delim"'$//
19572 t delim
19573 :nl
19574 h
19575 s/\(.\{148\}\).*/\1/
19576 t more1
19577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19578 p
19579 n
19580 b repl
19581 :more1
19582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19583 p
19584 g
19585 s/.\{148\}//
19586 t nl
19587 :delim
19588 h
19589 s/\(.\{148\}\).*/\1/
19590 t more2
19591 s/["\\]/\\&/g; s/^/"/; s/$/"/
19592 p
19593 b
19594 :more2
19595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19596 p
19597 g
19598 s/.\{148\}//
19599 t delim
19600 ' <conf$$subs.awk | sed '
19601 /^[^""]/{
19602   N
19603   s/\n//
19604 }
19605 ' >>$CONFIG_STATUS || ac_write_fail=1
19606 rm -f conf$$subs.awk
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19608 _ACAWK
19609 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19610   for (key in S) S_is_set[key] = 1
19611   FS = "\a"
19612
19613 }
19614 {
19615   line = $ 0
19616   nfields = split(line, field, "@")
19617   substed = 0
19618   len = length(field[1])
19619   for (i = 2; i < nfields; i++) {
19620     key = field[i]
19621     keylen = length(key)
19622     if (S_is_set[key]) {
19623       value = S[key]
19624       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19625       len += length(value) + length(field[++i])
19626       substed = 1
19627     } else
19628       len += 1 + keylen
19629   }
19630
19631   print line
19632 }
19633
19634 _ACAWK
19635 _ACEOF
19636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19638   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19639 else
19640   cat
19641 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19642   || as_fn_error "could not setup config files machinery" "$LINENO" 5
19643 _ACEOF
19644
19645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19647 # trailing colons and then remove the whole line if VPATH becomes empty
19648 # (actually we leave an empty line to preserve line numbers).
19649 if test "x$srcdir" = x.; then
19650   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19651 s/:*\$(srcdir):*/:/
19652 s/:*\${srcdir}:*/:/
19653 s/:*@srcdir@:*/:/
19654 s/^\([^=]*=[     ]*\):*/\1/
19655 s/:*$//
19656 s/^[^=]*=[       ]*$//
19657 }'
19658 fi
19659
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661 fi # test -n "$CONFIG_FILES"
19662
19663 # Set up the scripts for CONFIG_HEADERS section.
19664 # No need to generate them if there are no CONFIG_HEADERS.
19665 # This happens for instance with `./config.status Makefile'.
19666 if test -n "$CONFIG_HEADERS"; then
19667 cat >"$tmp/defines.awk" <<\_ACAWK ||
19668 BEGIN {
19669 _ACEOF
19670
19671 # Transform confdefs.h into an awk script `defines.awk', embedded as
19672 # here-document in config.status, that substitutes the proper values into
19673 # config.h.in to produce config.h.
19674
19675 # Create a delimiter string that does not exist in confdefs.h, to ease
19676 # handling of long lines.
19677 ac_delim='%!_!# '
19678 for ac_last_try in false false :; do
19679   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19680   if test -z "$ac_t"; then
19681     break
19682   elif $ac_last_try; then
19683     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19684   else
19685     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19686   fi
19687 done
19688
19689 # For the awk script, D is an array of macro values keyed by name,
19690 # likewise P contains macro parameters if any.  Preserve backslash
19691 # newline sequences.
19692
19693 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19694 sed -n '
19695 s/.\{148\}/&'"$ac_delim"'/g
19696 t rset
19697 :rset
19698 s/^[     ]*#[    ]*define[       ][      ]*/ /
19699 t def
19700 d
19701 :def
19702 s/\\$//
19703 t bsnl
19704 s/["\\]/\\&/g
19705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19706 D["\1"]=" \3"/p
19707 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19708 d
19709 :bsnl
19710 s/["\\]/\\&/g
19711 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19712 D["\1"]=" \3\\\\\\n"\\/p
19713 t cont
19714 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19715 t cont
19716 d
19717 :cont
19718 n
19719 s/.\{148\}/&'"$ac_delim"'/g
19720 t clear
19721 :clear
19722 s/\\$//
19723 t bsnlc
19724 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19725 d
19726 :bsnlc
19727 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19728 b cont
19729 ' <confdefs.h | sed '
19730 s/'"$ac_delim"'/"\\\
19731 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19732
19733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19734   for (key in D) D_is_set[key] = 1
19735   FS = "\a"
19736 }
19737 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19738   line = \$ 0
19739   split(line, arg, " ")
19740   if (arg[1] == "#") {
19741     defundef = arg[2]
19742     mac1 = arg[3]
19743   } else {
19744     defundef = substr(arg[1], 2)
19745     mac1 = arg[2]
19746   }
19747   split(mac1, mac2, "(") #)
19748   macro = mac2[1]
19749   prefix = substr(line, 1, index(line, defundef) - 1)
19750   if (D_is_set[macro]) {
19751     # Preserve the white space surrounding the "#".
19752     print prefix "define", macro P[macro] D[macro]
19753     next
19754   } else {
19755     # Replace #undef with comments.  This is necessary, for example,
19756     # in the case of _POSIX_SOURCE, which is predefined and required
19757     # on some systems where configure will not decide to define it.
19758     if (defundef == "undef") {
19759       print "/*", prefix defundef, macro, "*/"
19760       next
19761     }
19762   }
19763 }
19764 { print }
19765 _ACAWK
19766 _ACEOF
19767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19768   as_fn_error "could not setup config headers machinery" "$LINENO" 5
19769 fi # test -n "$CONFIG_HEADERS"
19770
19771
19772 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19773 shift
19774 for ac_tag
19775 do
19776   case $ac_tag in
19777   :[FHLC]) ac_mode=$ac_tag; continue;;
19778   esac
19779   case $ac_mode$ac_tag in
19780   :[FHL]*:*);;
19781   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19782   :[FH]-) ac_tag=-:-;;
19783   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19784   esac
19785   ac_save_IFS=$IFS
19786   IFS=:
19787   set x $ac_tag
19788   IFS=$ac_save_IFS
19789   shift
19790   ac_file=$1
19791   shift
19792
19793   case $ac_mode in
19794   :L) ac_source=$1;;
19795   :[FH])
19796     ac_file_inputs=
19797     for ac_f
19798     do
19799       case $ac_f in
19800       -) ac_f="$tmp/stdin";;
19801       *) # Look for the file first in the build tree, then in the source tree
19802          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19803          # because $ac_f cannot contain `:'.
19804          test -f "$ac_f" ||
19805            case $ac_f in
19806            [\\/$]*) false;;
19807            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19808            esac ||
19809            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19810       esac
19811       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19812       as_fn_append ac_file_inputs " '$ac_f'"
19813     done
19814
19815     # Let's still pretend it is `configure' which instantiates (i.e., don't
19816     # use $as_me), people would be surprised to read:
19817     #    /* config.h.  Generated by config.status.  */
19818     configure_input='Generated from '`
19819           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19820         `' by configure.'
19821     if test x"$ac_file" != x-; then
19822       configure_input="$ac_file.  $configure_input"
19823       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19824 $as_echo "$as_me: creating $ac_file" >&6;}
19825     fi
19826     # Neutralize special characters interpreted by sed in replacement strings.
19827     case $configure_input in #(
19828     *\&* | *\|* | *\\* )
19829        ac_sed_conf_input=`$as_echo "$configure_input" |
19830        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19831     *) ac_sed_conf_input=$configure_input;;
19832     esac
19833
19834     case $ac_tag in
19835     *:-:* | *:-) cat >"$tmp/stdin" \
19836       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19837     esac
19838     ;;
19839   esac
19840
19841   ac_dir=`$as_dirname -- "$ac_file" ||
19842 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843          X"$ac_file" : 'X\(//\)[^/]' \| \
19844          X"$ac_file" : 'X\(//\)$' \| \
19845          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19846 $as_echo X"$ac_file" |
19847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19848             s//\1/
19849             q
19850           }
19851           /^X\(\/\/\)[^/].*/{
19852             s//\1/
19853             q
19854           }
19855           /^X\(\/\/\)$/{
19856             s//\1/
19857             q
19858           }
19859           /^X\(\/\).*/{
19860             s//\1/
19861             q
19862           }
19863           s/.*/./; q'`
19864   as_dir="$ac_dir"; as_fn_mkdir_p
19865   ac_builddir=.
19866
19867 case "$ac_dir" in
19868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19869 *)
19870   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19871   # A ".." for each directory in $ac_dir_suffix.
19872   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19873   case $ac_top_builddir_sub in
19874   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19875   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19876   esac ;;
19877 esac
19878 ac_abs_top_builddir=$ac_pwd
19879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19880 # for backward compatibility:
19881 ac_top_builddir=$ac_top_build_prefix
19882
19883 case $srcdir in
19884   .)  # We are building in place.
19885     ac_srcdir=.
19886     ac_top_srcdir=$ac_top_builddir_sub
19887     ac_abs_top_srcdir=$ac_pwd ;;
19888   [\\/]* | ?:[\\/]* )  # Absolute name.
19889     ac_srcdir=$srcdir$ac_dir_suffix;
19890     ac_top_srcdir=$srcdir
19891     ac_abs_top_srcdir=$srcdir ;;
19892   *) # Relative name.
19893     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19894     ac_top_srcdir=$ac_top_build_prefix$srcdir
19895     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19896 esac
19897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19898
19899
19900   case $ac_mode in
19901   :F)
19902   #
19903   # CONFIG_FILE
19904   #
19905
19906   case $INSTALL in
19907   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19908   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19909   esac
19910   ac_MKDIR_P=$MKDIR_P
19911   case $MKDIR_P in
19912   [\\/$]* | ?:[\\/]* ) ;;
19913   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19914   esac
19915 _ACEOF
19916
19917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918 # If the template does not know about datarootdir, expand it.
19919 # FIXME: This hack should be removed a few years after 2.60.
19920 ac_datarootdir_hack=; ac_datarootdir_seen=
19921 ac_sed_dataroot='
19922 /datarootdir/ {
19923   p
19924   q
19925 }
19926 /@datadir@/p
19927 /@docdir@/p
19928 /@infodir@/p
19929 /@localedir@/p
19930 /@mandir@/p'
19931 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19932 *datarootdir*) ac_datarootdir_seen=yes;;
19933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19934   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19935 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19936 _ACEOF
19937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938   ac_datarootdir_hack='
19939   s&@datadir@&$datadir&g
19940   s&@docdir@&$docdir&g
19941   s&@infodir@&$infodir&g
19942   s&@localedir@&$localedir&g
19943   s&@mandir@&$mandir&g
19944   s&\\\${datarootdir}&$datarootdir&g' ;;
19945 esac
19946 _ACEOF
19947
19948 # Neutralize VPATH when `$srcdir' = `.'.
19949 # Shell code in configure.ac might set extrasub.
19950 # FIXME: do we really want to maintain this feature?
19951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19952 ac_sed_extra="$ac_vpsub
19953 $extrasub
19954 _ACEOF
19955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19956 :t
19957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19958 s|@configure_input@|$ac_sed_conf_input|;t t
19959 s&@top_builddir@&$ac_top_builddir_sub&;t t
19960 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19961 s&@srcdir@&$ac_srcdir&;t t
19962 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19963 s&@top_srcdir@&$ac_top_srcdir&;t t
19964 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19965 s&@builddir@&$ac_builddir&;t t
19966 s&@abs_builddir@&$ac_abs_builddir&;t t
19967 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19968 s&@INSTALL@&$ac_INSTALL&;t t
19969 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19970 $ac_datarootdir_hack
19971 "
19972 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19973   || as_fn_error "could not create $ac_file" "$LINENO" 5
19974
19975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19976   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19977   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19978   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19979 which seems to be undefined.  Please make sure it is defined." >&5
19980 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19981 which seems to be undefined.  Please make sure it is defined." >&2;}
19982
19983   rm -f "$tmp/stdin"
19984   case $ac_file in
19985   -) cat "$tmp/out" && rm -f "$tmp/out";;
19986   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19987   esac \
19988   || as_fn_error "could not create $ac_file" "$LINENO" 5
19989  ;;
19990   :H)
19991   #
19992   # CONFIG_HEADER
19993   #
19994   if test x"$ac_file" != x-; then
19995     {
19996       $as_echo "/* $configure_input  */" \
19997       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19998     } >"$tmp/config.h" \
19999       || as_fn_error "could not create $ac_file" "$LINENO" 5
20000     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20001       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20002 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20003     else
20004       rm -f "$ac_file"
20005       mv "$tmp/config.h" "$ac_file" \
20006         || as_fn_error "could not create $ac_file" "$LINENO" 5
20007     fi
20008   else
20009     $as_echo "/* $configure_input  */" \
20010       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20011       || as_fn_error "could not create -" "$LINENO" 5
20012   fi
20013 # Compute "$ac_file"'s index in $config_headers.
20014 _am_arg="$ac_file"
20015 _am_stamp_count=1
20016 for _am_header in $config_headers :; do
20017   case $_am_header in
20018     $_am_arg | $_am_arg:* )
20019       break ;;
20020     * )
20021       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20022   esac
20023 done
20024 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20025 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20026          X"$_am_arg" : 'X\(//\)[^/]' \| \
20027          X"$_am_arg" : 'X\(//\)$' \| \
20028          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20029 $as_echo X"$_am_arg" |
20030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20031             s//\1/
20032             q
20033           }
20034           /^X\(\/\/\)[^/].*/{
20035             s//\1/
20036             q
20037           }
20038           /^X\(\/\/\)$/{
20039             s//\1/
20040             q
20041           }
20042           /^X\(\/\).*/{
20043             s//\1/
20044             q
20045           }
20046           s/.*/./; q'`/stamp-h$_am_stamp_count
20047  ;;
20048
20049   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20050 $as_echo "$as_me: executing $ac_file commands" >&6;}
20051  ;;
20052   esac
20053
20054
20055   case $ac_file$ac_mode in
20056     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20057   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20058   # are listed without --file.  Let's play safe and only enable the eval
20059   # if we detect the quoting.
20060   case $CONFIG_FILES in
20061   *\'*) eval set x "$CONFIG_FILES" ;;
20062   *)   set x $CONFIG_FILES ;;
20063   esac
20064   shift
20065   for mf
20066   do
20067     # Strip MF so we end up with the name of the file.
20068     mf=`echo "$mf" | sed -e 's/:.*$//'`
20069     # Check whether this is an Automake generated Makefile or not.
20070     # We used to match only the files named `Makefile.in', but
20071     # some people rename them; so instead we look at the file content.
20072     # Grep'ing the first line is not enough: some people post-process
20073     # each Makefile.in and add a new line on top of each file to say so.
20074     # Grep'ing the whole file is not good either: AIX grep has a line
20075     # limit of 2048, but all sed's we know have understand at least 4000.
20076     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20077       dirpart=`$as_dirname -- "$mf" ||
20078 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20079          X"$mf" : 'X\(//\)[^/]' \| \
20080          X"$mf" : 'X\(//\)$' \| \
20081          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20082 $as_echo X"$mf" |
20083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20084             s//\1/
20085             q
20086           }
20087           /^X\(\/\/\)[^/].*/{
20088             s//\1/
20089             q
20090           }
20091           /^X\(\/\/\)$/{
20092             s//\1/
20093             q
20094           }
20095           /^X\(\/\).*/{
20096             s//\1/
20097             q
20098           }
20099           s/.*/./; q'`
20100     else
20101       continue
20102     fi
20103     # Extract the definition of DEPDIR, am__include, and am__quote
20104     # from the Makefile without running `make'.
20105     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20106     test -z "$DEPDIR" && continue
20107     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20108     test -z "am__include" && continue
20109     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20110     # When using ansi2knr, U may be empty or an underscore; expand it
20111     U=`sed -n 's/^U = //p' < "$mf"`
20112     # Find all dependency output files, they are included files with
20113     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20114     # simplest approach to changing $(DEPDIR) to its actual value in the
20115     # expansion.
20116     for file in `sed -n "
20117       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20118          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20119       # Make sure the directory exists.
20120       test -f "$dirpart/$file" && continue
20121       fdir=`$as_dirname -- "$file" ||
20122 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20123          X"$file" : 'X\(//\)[^/]' \| \
20124          X"$file" : 'X\(//\)$' \| \
20125          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20126 $as_echo X"$file" |
20127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20128             s//\1/
20129             q
20130           }
20131           /^X\(\/\/\)[^/].*/{
20132             s//\1/
20133             q
20134           }
20135           /^X\(\/\/\)$/{
20136             s//\1/
20137             q
20138           }
20139           /^X\(\/\).*/{
20140             s//\1/
20141             q
20142           }
20143           s/.*/./; q'`
20144       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20145       # echo "creating $dirpart/$file"
20146       echo '# dummy' > "$dirpart/$file"
20147     done
20148   done
20149 }
20150  ;;
20151     "libtool":C)
20152
20153     # See if we are running on zsh, and set the options which allow our
20154     # commands through without removal of \ escapes.
20155     if test -n "${ZSH_VERSION+set}" ; then
20156       setopt NO_GLOB_SUBST
20157     fi
20158
20159     cfgfile="${ofile}T"
20160     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20161     $RM "$cfgfile"
20162
20163     cat <<_LT_EOF >> "$cfgfile"
20164 #! $SHELL
20165
20166 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20167 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20170 #
20171 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20172 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20173 #   Written by Gordon Matzigkeit, 1996
20174 #
20175 #   This file is part of GNU Libtool.
20176 #
20177 # GNU Libtool is free software; you can redistribute it and/or
20178 # modify it under the terms of the GNU General Public License as
20179 # published by the Free Software Foundation; either version 2 of
20180 # the License, or (at your option) any later version.
20181 #
20182 # As a special exception to the GNU General Public License,
20183 # if you distribute this file as part of a program or library that
20184 # is built using GNU Libtool, you may include this file under the
20185 # same distribution terms that you use for the rest of that program.
20186 #
20187 # GNU Libtool is distributed in the hope that it will be useful,
20188 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20190 # GNU General Public License for more details.
20191 #
20192 # You should have received a copy of the GNU General Public License
20193 # along with GNU Libtool; see the file COPYING.  If not, a copy
20194 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20195 # obtained by writing to the Free Software Foundation, Inc.,
20196 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20197
20198
20199 # The names of the tagged configurations supported by this script.
20200 available_tags="CXX "
20201
20202 # ### BEGIN LIBTOOL CONFIG
20203
20204 # Which release of libtool.m4 was used?
20205 macro_version=$macro_version
20206 macro_revision=$macro_revision
20207
20208 # Whether or not to build shared libraries.
20209 build_libtool_libs=$enable_shared
20210
20211 # Whether or not to build static libraries.
20212 build_old_libs=$enable_static
20213
20214 # What type of objects to build.
20215 pic_mode=$pic_mode
20216
20217 # Whether or not to optimize for fast installation.
20218 fast_install=$enable_fast_install
20219
20220 # The host system.
20221 host_alias=$host_alias
20222 host=$host
20223 host_os=$host_os
20224
20225 # The build system.
20226 build_alias=$build_alias
20227 build=$build
20228 build_os=$build_os
20229
20230 # A sed program that does not truncate output.
20231 SED=$lt_SED
20232
20233 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20234 Xsed="\$SED -e 1s/^X//"
20235
20236 # A grep program that handles long lines.
20237 GREP=$lt_GREP
20238
20239 # An ERE matcher.
20240 EGREP=$lt_EGREP
20241
20242 # A literal string matcher.
20243 FGREP=$lt_FGREP
20244
20245 # A BSD- or MS-compatible name lister.
20246 NM=$lt_NM
20247
20248 # Whether we need soft or hard links.
20249 LN_S=$lt_LN_S
20250
20251 # What is the maximum length of a command?
20252 max_cmd_len=$max_cmd_len
20253
20254 # Object file suffix (normally "o").
20255 objext=$ac_objext
20256
20257 # Executable file suffix (normally "").
20258 exeext=$exeext
20259
20260 # whether the shell understands "unset".
20261 lt_unset=$lt_unset
20262
20263 # turn spaces into newlines.
20264 SP2NL=$lt_lt_SP2NL
20265
20266 # turn newlines into spaces.
20267 NL2SP=$lt_lt_NL2SP
20268
20269 # How to create reloadable object files.
20270 reload_flag=$lt_reload_flag
20271 reload_cmds=$lt_reload_cmds
20272
20273 # An object symbol dumper.
20274 OBJDUMP=$lt_OBJDUMP
20275
20276 # Method to check whether dependent libraries are shared objects.
20277 deplibs_check_method=$lt_deplibs_check_method
20278
20279 # Command to use when deplibs_check_method == "file_magic".
20280 file_magic_cmd=$lt_file_magic_cmd
20281
20282 # The archiver.
20283 AR=$lt_AR
20284 AR_FLAGS=$lt_AR_FLAGS
20285
20286 # A symbol stripping program.
20287 STRIP=$lt_STRIP
20288
20289 # Commands used to install an old-style archive.
20290 RANLIB=$lt_RANLIB
20291 old_postinstall_cmds=$lt_old_postinstall_cmds
20292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20293
20294 # A C compiler.
20295 LTCC=$lt_CC
20296
20297 # LTCC compiler flags.
20298 LTCFLAGS=$lt_CFLAGS
20299
20300 # Take the output of nm and produce a listing of raw symbols and C names.
20301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20302
20303 # Transform the output of nm in a proper C declaration.
20304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20305
20306 # Transform the output of nm in a C name address pair.
20307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20308
20309 # Transform the output of nm in a C name address pair when lib prefix is needed.
20310 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20311
20312 # The name of the directory that contains temporary libtool files.
20313 objdir=$objdir
20314
20315 # Shell to use when invoking shell scripts.
20316 SHELL=$lt_SHELL
20317
20318 # An echo program that does not interpret backslashes.
20319 ECHO=$lt_ECHO
20320
20321 # Used to examine libraries when file_magic_cmd begins with "file".
20322 MAGIC_CMD=$MAGIC_CMD
20323
20324 # Must we lock files when doing compilation?
20325 need_locks=$lt_need_locks
20326
20327 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20328 DSYMUTIL=$lt_DSYMUTIL
20329
20330 # Tool to change global to local symbols on Mac OS X.
20331 NMEDIT=$lt_NMEDIT
20332
20333 # Tool to manipulate fat objects and archives on Mac OS X.
20334 LIPO=$lt_LIPO
20335
20336 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20337 OTOOL=$lt_OTOOL
20338
20339 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20340 OTOOL64=$lt_OTOOL64
20341
20342 # Old archive suffix (normally "a").
20343 libext=$libext
20344
20345 # Shared library suffix (normally ".so").
20346 shrext_cmds=$lt_shrext_cmds
20347
20348 # The commands to extract the exported symbol list from a shared archive.
20349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20350
20351 # Variables whose values should be saved in libtool wrapper scripts and
20352 # restored at link time.
20353 variables_saved_for_relink=$lt_variables_saved_for_relink
20354
20355 # Do we need the "lib" prefix for modules?
20356 need_lib_prefix=$need_lib_prefix
20357
20358 # Do we need a version for libraries?
20359 need_version=$need_version
20360
20361 # Library versioning type.
20362 version_type=$version_type
20363
20364 # Shared library runtime path variable.
20365 runpath_var=$runpath_var
20366
20367 # Shared library path variable.
20368 shlibpath_var=$shlibpath_var
20369
20370 # Is shlibpath searched before the hard-coded library search path?
20371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20372
20373 # Format of library name prefix.
20374 libname_spec=$lt_libname_spec
20375
20376 # List of archive names.  First name is the real one, the rest are links.
20377 # The last name is the one that the linker finds with -lNAME
20378 library_names_spec=$lt_library_names_spec
20379
20380 # The coded name of the library, if different from the real name.
20381 soname_spec=$lt_soname_spec
20382
20383 # Command to use after installation of a shared archive.
20384 postinstall_cmds=$lt_postinstall_cmds
20385
20386 # Command to use after uninstallation of a shared archive.
20387 postuninstall_cmds=$lt_postuninstall_cmds
20388
20389 # Commands used to finish a libtool library installation in a directory.
20390 finish_cmds=$lt_finish_cmds
20391
20392 # As "finish_cmds", except a single script fragment to be evaled but
20393 # not shown.
20394 finish_eval=$lt_finish_eval
20395
20396 # Whether we should hardcode library paths into libraries.
20397 hardcode_into_libs=$hardcode_into_libs
20398
20399 # Compile-time system search path for libraries.
20400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20401
20402 # Run-time system search path for libraries.
20403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20404
20405 # Whether dlopen is supported.
20406 dlopen_support=$enable_dlopen
20407
20408 # Whether dlopen of programs is supported.
20409 dlopen_self=$enable_dlopen_self
20410
20411 # Whether dlopen of statically linked programs is supported.
20412 dlopen_self_static=$enable_dlopen_self_static
20413
20414 # Commands to strip libraries.
20415 old_striplib=$lt_old_striplib
20416 striplib=$lt_striplib
20417
20418
20419 # The linker used to build libraries.
20420 LD=$lt_LD
20421
20422 # Commands used to build an old-style archive.
20423 old_archive_cmds=$lt_old_archive_cmds
20424
20425 # A language specific compiler.
20426 CC=$lt_compiler
20427
20428 # Is the compiler the GNU compiler?
20429 with_gcc=$GCC
20430
20431 # Compiler flag to turn off builtin functions.
20432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20433
20434 # How to pass a linker flag through the compiler.
20435 wl=$lt_lt_prog_compiler_wl
20436
20437 # Additional compiler flags for building library objects.
20438 pic_flag=$lt_lt_prog_compiler_pic
20439
20440 # Compiler flag to prevent dynamic linking.
20441 link_static_flag=$lt_lt_prog_compiler_static
20442
20443 # Does compiler simultaneously support -c and -o options?
20444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20445
20446 # Whether or not to add -lc for building shared libraries.
20447 build_libtool_need_lc=$archive_cmds_need_lc
20448
20449 # Whether or not to disallow shared libs when runtime libs are static.
20450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20451
20452 # Compiler flag to allow reflexive dlopens.
20453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20454
20455 # Compiler flag to generate shared objects directly from archives.
20456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20457
20458 # Whether the compiler copes with passing no objects directly.
20459 compiler_needs_object=$lt_compiler_needs_object
20460
20461 # Create an old-style archive from a shared archive.
20462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20463
20464 # Create a temporary old-style archive to link instead of a shared archive.
20465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20466
20467 # Commands used to build a shared archive.
20468 archive_cmds=$lt_archive_cmds
20469 archive_expsym_cmds=$lt_archive_expsym_cmds
20470
20471 # Commands used to build a loadable module if different from building
20472 # a shared archive.
20473 module_cmds=$lt_module_cmds
20474 module_expsym_cmds=$lt_module_expsym_cmds
20475
20476 # Whether we are building with GNU ld or not.
20477 with_gnu_ld=$lt_with_gnu_ld
20478
20479 # Flag that allows shared libraries with undefined symbols to be built.
20480 allow_undefined_flag=$lt_allow_undefined_flag
20481
20482 # Flag that enforces no undefined symbols.
20483 no_undefined_flag=$lt_no_undefined_flag
20484
20485 # Flag to hardcode \$libdir into a binary during linking.
20486 # This must work even if \$libdir does not exist
20487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20488
20489 # If ld is used when linking, flag to hardcode \$libdir into a binary
20490 # during linking.  This must work even if \$libdir does not exist.
20491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20492
20493 # Whether we need a single "-rpath" flag with a separated argument.
20494 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20495
20496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20497 # DIR into the resulting binary.
20498 hardcode_direct=$hardcode_direct
20499
20500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20501 # DIR into the resulting binary and the resulting library dependency is
20502 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20503 # library is relocated.
20504 hardcode_direct_absolute=$hardcode_direct_absolute
20505
20506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20507 # into the resulting binary.
20508 hardcode_minus_L=$hardcode_minus_L
20509
20510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20511 # into the resulting binary.
20512 hardcode_shlibpath_var=$hardcode_shlibpath_var
20513
20514 # Set to "yes" if building a shared library automatically hardcodes DIR
20515 # into the library and all subsequent libraries and executables linked
20516 # against it.
20517 hardcode_automatic=$hardcode_automatic
20518
20519 # Set to yes if linker adds runtime paths of dependent libraries
20520 # to runtime path list.
20521 inherit_rpath=$inherit_rpath
20522
20523 # Whether libtool must link a program against all its dependency libraries.
20524 link_all_deplibs=$link_all_deplibs
20525
20526 # Fix the shell variable \$srcfile for the compiler.
20527 fix_srcfile_path=$lt_fix_srcfile_path
20528
20529 # Set to "yes" if exported symbols are required.
20530 always_export_symbols=$always_export_symbols
20531
20532 # The commands to list exported symbols.
20533 export_symbols_cmds=$lt_export_symbols_cmds
20534
20535 # Symbols that should not be listed in the preloaded symbols.
20536 exclude_expsyms=$lt_exclude_expsyms
20537
20538 # Symbols that must always be exported.
20539 include_expsyms=$lt_include_expsyms
20540
20541 # Commands necessary for linking programs (against libraries) with templates.
20542 prelink_cmds=$lt_prelink_cmds
20543
20544 # Specify filename containing input files.
20545 file_list_spec=$lt_file_list_spec
20546
20547 # How to hardcode a shared library path into an executable.
20548 hardcode_action=$hardcode_action
20549
20550 # The directories searched by this compiler when creating a shared library.
20551 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20552
20553 # Dependencies to place before and after the objects being linked to
20554 # create a shared library.
20555 predep_objects=$lt_predep_objects
20556 postdep_objects=$lt_postdep_objects
20557 predeps=$lt_predeps
20558 postdeps=$lt_postdeps
20559
20560 # The library search path used internally by the compiler when linking
20561 # a shared library.
20562 compiler_lib_search_path=$lt_compiler_lib_search_path
20563
20564 # ### END LIBTOOL CONFIG
20565
20566 _LT_EOF
20567
20568   case $host_os in
20569   aix3*)
20570     cat <<\_LT_EOF >> "$cfgfile"
20571 # AIX sometimes has problems with the GCC collect2 program.  For some
20572 # reason, if we set the COLLECT_NAMES environment variable, the problems
20573 # vanish in a puff of smoke.
20574 if test "X${COLLECT_NAMES+set}" != Xset; then
20575   COLLECT_NAMES=
20576   export COLLECT_NAMES
20577 fi
20578 _LT_EOF
20579     ;;
20580   esac
20581
20582
20583 ltmain="$ac_aux_dir/ltmain.sh"
20584
20585
20586   # We use sed instead of cat because bash on DJGPP gets confused if
20587   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20588   # text mode, it properly converts lines to CR/LF.  This bash problem
20589   # is reportedly fixed, but why not run on old versions too?
20590   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20591     || (rm -f "$cfgfile"; exit 1)
20592
20593   case $xsi_shell in
20594   yes)
20595     cat << \_LT_EOF >> "$cfgfile"
20596
20597 # func_dirname file append nondir_replacement
20598 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20599 # otherwise set result to NONDIR_REPLACEMENT.
20600 func_dirname ()
20601 {
20602   case ${1} in
20603     */*) func_dirname_result="${1%/*}${2}" ;;
20604     *  ) func_dirname_result="${3}" ;;
20605   esac
20606 }
20607
20608 # func_basename file
20609 func_basename ()
20610 {
20611   func_basename_result="${1##*/}"
20612 }
20613
20614 # func_dirname_and_basename file append nondir_replacement
20615 # perform func_basename and func_dirname in a single function
20616 # call:
20617 #   dirname:  Compute the dirname of FILE.  If nonempty,
20618 #             add APPEND to the result, otherwise set result
20619 #             to NONDIR_REPLACEMENT.
20620 #             value returned in "$func_dirname_result"
20621 #   basename: Compute filename of FILE.
20622 #             value retuned in "$func_basename_result"
20623 # Implementation must be kept synchronized with func_dirname
20624 # and func_basename. For efficiency, we do not delegate to
20625 # those functions but instead duplicate the functionality here.
20626 func_dirname_and_basename ()
20627 {
20628   case ${1} in
20629     */*) func_dirname_result="${1%/*}${2}" ;;
20630     *  ) func_dirname_result="${3}" ;;
20631   esac
20632   func_basename_result="${1##*/}"
20633 }
20634
20635 # func_stripname prefix suffix name
20636 # strip PREFIX and SUFFIX off of NAME.
20637 # PREFIX and SUFFIX must not contain globbing or regex special
20638 # characters, hashes, percent signs, but SUFFIX may contain a leading
20639 # dot (in which case that matches only a dot).
20640 func_stripname ()
20641 {
20642   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20643   # positional parameters, so assign one to ordinary parameter first.
20644   func_stripname_result=${3}
20645   func_stripname_result=${func_stripname_result#"${1}"}
20646   func_stripname_result=${func_stripname_result%"${2}"}
20647 }
20648
20649 # func_opt_split
20650 func_opt_split ()
20651 {
20652   func_opt_split_opt=${1%%=*}
20653   func_opt_split_arg=${1#*=}
20654 }
20655
20656 # func_lo2o object
20657 func_lo2o ()
20658 {
20659   case ${1} in
20660     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20661     *)    func_lo2o_result=${1} ;;
20662   esac
20663 }
20664
20665 # func_xform libobj-or-source
20666 func_xform ()
20667 {
20668   func_xform_result=${1%.*}.lo
20669 }
20670
20671 # func_arith arithmetic-term...
20672 func_arith ()
20673 {
20674   func_arith_result=$(( $* ))
20675 }
20676
20677 # func_len string
20678 # STRING may not start with a hyphen.
20679 func_len ()
20680 {
20681   func_len_result=${#1}
20682 }
20683
20684 _LT_EOF
20685     ;;
20686   *) # Bourne compatible functions.
20687     cat << \_LT_EOF >> "$cfgfile"
20688
20689 # func_dirname file append nondir_replacement
20690 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20691 # otherwise set result to NONDIR_REPLACEMENT.
20692 func_dirname ()
20693 {
20694   # Extract subdirectory from the argument.
20695   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20696   if test "X$func_dirname_result" = "X${1}"; then
20697     func_dirname_result="${3}"
20698   else
20699     func_dirname_result="$func_dirname_result${2}"
20700   fi
20701 }
20702
20703 # func_basename file
20704 func_basename ()
20705 {
20706   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20707 }
20708
20709
20710 # func_stripname prefix suffix name
20711 # strip PREFIX and SUFFIX off of NAME.
20712 # PREFIX and SUFFIX must not contain globbing or regex special
20713 # characters, hashes, percent signs, but SUFFIX may contain a leading
20714 # dot (in which case that matches only a dot).
20715 # func_strip_suffix prefix name
20716 func_stripname ()
20717 {
20718   case ${2} in
20719     .*) func_stripname_result=`$ECHO "X${3}" \
20720            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20721     *)  func_stripname_result=`$ECHO "X${3}" \
20722            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20723   esac
20724 }
20725
20726 # sed scripts:
20727 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20728 my_sed_long_arg='1s/^-[^=]*=//'
20729
20730 # func_opt_split
20731 func_opt_split ()
20732 {
20733   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20734   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20735 }
20736
20737 # func_lo2o object
20738 func_lo2o ()
20739 {
20740   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20741 }
20742
20743 # func_xform libobj-or-source
20744 func_xform ()
20745 {
20746   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20747 }
20748
20749 # func_arith arithmetic-term...
20750 func_arith ()
20751 {
20752   func_arith_result=`expr "$@"`
20753 }
20754
20755 # func_len string
20756 # STRING may not start with a hyphen.
20757 func_len ()
20758 {
20759   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20760 }
20761
20762 _LT_EOF
20763 esac
20764
20765 case $lt_shell_append in
20766   yes)
20767     cat << \_LT_EOF >> "$cfgfile"
20768
20769 # func_append var value
20770 # Append VALUE to the end of shell variable VAR.
20771 func_append ()
20772 {
20773   eval "$1+=\$2"
20774 }
20775 _LT_EOF
20776     ;;
20777   *)
20778     cat << \_LT_EOF >> "$cfgfile"
20779
20780 # func_append var value
20781 # Append VALUE to the end of shell variable VAR.
20782 func_append ()
20783 {
20784   eval "$1=\$$1\$2"
20785 }
20786
20787 _LT_EOF
20788     ;;
20789   esac
20790
20791
20792   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20793     || (rm -f "$cfgfile"; exit 1)
20794
20795   mv -f "$cfgfile" "$ofile" ||
20796     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20797   chmod +x "$ofile"
20798
20799
20800     cat <<_LT_EOF >> "$ofile"
20801
20802 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20803
20804 # The linker used to build libraries.
20805 LD=$lt_LD_CXX
20806
20807 # Commands used to build an old-style archive.
20808 old_archive_cmds=$lt_old_archive_cmds_CXX
20809
20810 # A language specific compiler.
20811 CC=$lt_compiler_CXX
20812
20813 # Is the compiler the GNU compiler?
20814 with_gcc=$GCC_CXX
20815
20816 # Compiler flag to turn off builtin functions.
20817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20818
20819 # How to pass a linker flag through the compiler.
20820 wl=$lt_lt_prog_compiler_wl_CXX
20821
20822 # Additional compiler flags for building library objects.
20823 pic_flag=$lt_lt_prog_compiler_pic_CXX
20824
20825 # Compiler flag to prevent dynamic linking.
20826 link_static_flag=$lt_lt_prog_compiler_static_CXX
20827
20828 # Does compiler simultaneously support -c and -o options?
20829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20830
20831 # Whether or not to add -lc for building shared libraries.
20832 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20833
20834 # Whether or not to disallow shared libs when runtime libs are static.
20835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20836
20837 # Compiler flag to allow reflexive dlopens.
20838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20839
20840 # Compiler flag to generate shared objects directly from archives.
20841 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20842
20843 # Whether the compiler copes with passing no objects directly.
20844 compiler_needs_object=$lt_compiler_needs_object_CXX
20845
20846 # Create an old-style archive from a shared archive.
20847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20848
20849 # Create a temporary old-style archive to link instead of a shared archive.
20850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20851
20852 # Commands used to build a shared archive.
20853 archive_cmds=$lt_archive_cmds_CXX
20854 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20855
20856 # Commands used to build a loadable module if different from building
20857 # a shared archive.
20858 module_cmds=$lt_module_cmds_CXX
20859 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20860
20861 # Whether we are building with GNU ld or not.
20862 with_gnu_ld=$lt_with_gnu_ld_CXX
20863
20864 # Flag that allows shared libraries with undefined symbols to be built.
20865 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20866
20867 # Flag that enforces no undefined symbols.
20868 no_undefined_flag=$lt_no_undefined_flag_CXX
20869
20870 # Flag to hardcode \$libdir into a binary during linking.
20871 # This must work even if \$libdir does not exist
20872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20873
20874 # If ld is used when linking, flag to hardcode \$libdir into a binary
20875 # during linking.  This must work even if \$libdir does not exist.
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20877
20878 # Whether we need a single "-rpath" flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20880
20881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20882 # DIR into the resulting binary.
20883 hardcode_direct=$hardcode_direct_CXX
20884
20885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20886 # DIR into the resulting binary and the resulting library dependency is
20887 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20888 # library is relocated.
20889 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20890
20891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20892 # into the resulting binary.
20893 hardcode_minus_L=$hardcode_minus_L_CXX
20894
20895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20896 # into the resulting binary.
20897 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20898
20899 # Set to "yes" if building a shared library automatically hardcodes DIR
20900 # into the library and all subsequent libraries and executables linked
20901 # against it.
20902 hardcode_automatic=$hardcode_automatic_CXX
20903
20904 # Set to yes if linker adds runtime paths of dependent libraries
20905 # to runtime path list.
20906 inherit_rpath=$inherit_rpath_CXX
20907
20908 # Whether libtool must link a program against all its dependency libraries.
20909 link_all_deplibs=$link_all_deplibs_CXX
20910
20911 # Fix the shell variable \$srcfile for the compiler.
20912 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20913
20914 # Set to "yes" if exported symbols are required.
20915 always_export_symbols=$always_export_symbols_CXX
20916
20917 # The commands to list exported symbols.
20918 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20919
20920 # Symbols that should not be listed in the preloaded symbols.
20921 exclude_expsyms=$lt_exclude_expsyms_CXX
20922
20923 # Symbols that must always be exported.
20924 include_expsyms=$lt_include_expsyms_CXX
20925
20926 # Commands necessary for linking programs (against libraries) with templates.
20927 prelink_cmds=$lt_prelink_cmds_CXX
20928
20929 # Specify filename containing input files.
20930 file_list_spec=$lt_file_list_spec_CXX
20931
20932 # How to hardcode a shared library path into an executable.
20933 hardcode_action=$hardcode_action_CXX
20934
20935 # The directories searched by this compiler when creating a shared library.
20936 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20937
20938 # Dependencies to place before and after the objects being linked to
20939 # create a shared library.
20940 predep_objects=$lt_predep_objects_CXX
20941 postdep_objects=$lt_postdep_objects_CXX
20942 predeps=$lt_predeps_CXX
20943 postdeps=$lt_postdeps_CXX
20944
20945 # The library search path used internally by the compiler when linking
20946 # a shared library.
20947 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20948
20949 # ### END LIBTOOL TAG CONFIG: CXX
20950 _LT_EOF
20951
20952  ;;
20953
20954   esac
20955 done # for ac_tag
20956
20957
20958 as_fn_exit 0
20959 _ACEOF
20960 ac_clean_files=$ac_clean_files_save
20961
20962 test $ac_write_fail = 0 ||
20963   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20964
20965
20966 # configure is writing to config.log, and then calls config.status.
20967 # config.status does its own redirection, appending to config.log.
20968 # Unfortunately, on DOS this fails, as config.log is still kept open
20969 # by configure, so config.status won't be able to write to it; its
20970 # output is simply discarded.  So we exec the FD to /dev/null,
20971 # effectively closing config.log, so it can be properly (re)opened and
20972 # appended to by config.status.  When coming back to configure, we
20973 # need to make the FD available again.
20974 if test "$no_create" != yes; then
20975   ac_cs_success=:
20976   ac_config_status_args=
20977   test "$silent" = yes &&
20978     ac_config_status_args="$ac_config_status_args --quiet"
20979   exec 5>/dev/null
20980   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20981   exec 5>>config.log
20982   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20983   # would make configure fail if this is the last instruction.
20984   $ac_cs_success || as_fn_exit $?
20985 fi
20986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20989 fi
20990
20991
20992 # Make sure these are executable.
20993 chmod u+x tests/test_wrapper.sh build-test-tarball.mk
20994
20995 #====================================================================================
20996
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20998 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
20999
21000   Configuration summary :
21001
21002     libsndfile cersion : .................. ${VERSION}
21003
21004     Host CPU : ............................ ${host_cpu}
21005     Host Vendor : ......................... ${host_vendor}
21006     Host OS : ............................. ${host_os}
21007
21008     Experimental code : ................... ${enable_experimental:-no}
21009     Using ALSA in example programs : ...... ${enable_alsa:-no}
21010     External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
21011 " >&5
21012 $as_echo "
21013 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
21014
21015   Configuration summary :
21016
21017     libsndfile cersion : .................. ${VERSION}
21018
21019     Host CPU : ............................ ${host_cpu}
21020     Host Vendor : ......................... ${host_vendor}
21021     Host OS : ............................. ${host_os}
21022
21023     Experimental code : ................... ${enable_experimental:-no}
21024     Using ALSA in example programs : ...... ${enable_alsa:-no}
21025     External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
21026 " >&6; }
21027
21028
21029 if test x$ac_cv_c_compiler_gnu = xyes ; then
21030         echo -e "  Tools :\n"
21031         echo "    Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
21032         echo "    GCC version : ......................... ${GCC_VERSION}"
21033         if test $GCC_MAJOR_VERSION -lt 3 ; then
21034                 echo -e "\n    ** This compiler version allows applications to write"
21035                 echo "    ** to static strings within the library."
21036                 echo "    ** Compile with GCC version 3.X or above to avoid this problem."
21037                 fi
21038         fi
21039
21040 if test $libdir = "\${exec_prefix}/lib" ; then
21041         libdir="$prefix/lib"
21042         fi
21043
21044 if test $bindir = "\${exec_prefix}/bin" ; then
21045         bindir="$prefix/bin"
21046         fi
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21049   Installation directories :
21050
21051     Library directory : ................... $libdir
21052     Program directory : ................... $bindir
21053     Pkgconfig directory : ................. $libdir/pkgconfig
21054     HTML docs directory : ................. $htmldocdir
21055 " >&5
21056 $as_echo "
21057   Installation directories :
21058
21059     Library directory : ................... $libdir
21060     Program directory : ................... $bindir
21061     Pkgconfig directory : ................. $libdir/pkgconfig
21062     HTML docs directory : ................. $htmldocdir
21063 " >&6; }
21064
21065 if test x$prefix != "x/usr" ; then
21066         echo "Compiling some other packages against libsndfile may require"
21067         echo -e "the addition of \"$libdir/pkgconfig\" to the"
21068         echo -e "PKG_CONFIG_PATH environment variable.\n"
21069         fi
21070
21071 (cd src && make genfiles)
21072 (cd tests && make genfiles)