Examples Makefile.
[Faustine.git] / interpretor / lib / src / libsndfile-1.0.25 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libsndfile 1.0.25.
4 #
5 # Report bugs to <sndfile@mega-nerd.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: sndfile@mega-nerd.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libsndfile'
572 PACKAGE_TARNAME='libsndfile'
573 PACKAGE_VERSION='1.0.25'
574 PACKAGE_STRING='libsndfile 1.0.25'
575 PACKAGE_BUGREPORT='sndfile@mega-nerd.com'
576 PACKAGE_URL='http://www.mega-nerd.com/libsndfile/'
577
578 ac_unique_file="src/sndfile.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBTOOL_DEPS
620 EXTERNAL_LIBS
621 EXTERNAL_CFLAGS
622 SNDIO_LIBS
623 ALSA_LIBS
624 OS_SPECIFIC_LINKS
625 OS_SPECIFIC_CFLAGS
626 WIN_RC_VERSION
627 CLEAN_VERSION
628 SHARED_VERSION_INFO
629 SHLIB_VERSION_ARG
630 HTML_FGCOLOUR
631 HTML_BGCOLOUR
632 htmldocdir
633 HOST_TRIPLET
634 GCC_MINOR_VERSION
635 GCC_MAJOR_VERSION
636 GCC_VERSION
637 USE_WIN_VERSION_FILE_FALSE
638 USE_WIN_VERSION_FILE_TRUE
639 SQLITE3_LIBS
640 SQLITE3_CFLAGS
641 VORBISENC_LIBS
642 VORBISENC_CFLAGS
643 VORBIS_LIBS
644 VORBIS_CFLAGS
645 SPEEX_LIBS
646 SPEEX_CFLAGS
647 OGG_LIBS
648 OGG_CFLAGS
649 FLAC_LIBS
650 FLAC_CFLAGS
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 OCTAVE_DEST_MDIR
655 OCTAVE_DEST_ODIR
656 OCTAVE_CONFIG_VERSION
657 OCTAVE_CONFIG
658 HAVE_OCTAVE_CONFIG
659 MKOCTFILE_VERSION
660 MKOCTFILE
661 HAVE_MKOCTFILE
662 OCTAVE
663 OCTAVE_VERSION
664 HAVE_OCTAVE
665 BUILD_OCTAVE_MOD_FALSE
666 BUILD_OCTAVE_MOD_TRUE
667 SF_COUNT_MAX
668 SIZEOF_SF_COUNT_T
669 TYPEOF_SF_COUNT_T
670 GETCONF
671 ENABLE_TEST_COVERAGE_FALSE
672 ENABLE_TEST_COVERAGE_TRUE
673 LINUX_MINGW_CROSS_TEST_FALSE
674 LINUX_MINGW_CROSS_TEST_TRUE
675 HAVE_WINE
676 HAVE_AUTOGEN
677 RC
678 CXXCPP
679 CPP
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 ac_ct_AR
688 AR
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 LIBTOOL
700 SED
701 am__fastdepCXX_FALSE
702 am__fastdepCXX_TRUE
703 CXXDEPMODE
704 ac_ct_CXX
705 CXXFLAGS
706 CXX
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 ACLOCAL_AMFLAGS
725 AM_BACKSLASH
726 AM_DEFAULT_VERBOSITY
727 AM_DEFAULT_V
728 AM_V
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_silent_rules
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_experimental
815 enable_gcc_werror
816 enable_gcc_pipe
817 enable_gcc_opt
818 enable_cpu_clip
819 enable_bow_docs
820 enable_sqlite
821 enable_alsa
822 enable_external_libs
823 enable_octave
824 enable_test_coverage
825 enable_largefile
826 with_octave
827 with_mkoctfile
828 with_octave_config
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CXX
839 CXXFLAGS
840 CCC
841 CPP
842 CXXCPP
843 PKG_CONFIG
844 PKG_CONFIG_PATH
845 PKG_CONFIG_LIBDIR
846 FLAC_CFLAGS
847 FLAC_LIBS
848 OGG_CFLAGS
849 OGG_LIBS
850 SPEEX_CFLAGS
851 SPEEX_LIBS
852 VORBIS_CFLAGS
853 VORBIS_LIBS
854 VORBISENC_CFLAGS
855 VORBISENC_LIBS
856 SQLITE3_CFLAGS
857 SQLITE3_LIBS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used" >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures libsndfile 1.0.25 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libsndfile]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 --target=TARGET configure for building compilers for TARGET [HOST]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of libsndfile 1.0.25:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-silent-rules less verbose build output (undo: `make V=1')
1480 --disable-silent-rules verbose build output (undo: `make V=0')
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-experimental enable experimental code
1489 --enable-gcc-werror enable -Werror in all Makefiles
1490 --disable-gcc-pipe disable gcc -pipe option
1491 --disable-gcc-opt disable gcc optimisations
1492 --disable-cpu-clip disable tricky cpu specific clipper
1493 --enable-bow-docs enable black-on-white html docs
1494 --disable-sqlite disable use of sqlite
1495 --disable-alsa disable use of ALSA
1496 --disable-external-libs disable use of FLAC, Ogg and Vorbis [[default=no]]
1497 --enable-octave disable building of GNU Octave module
1498 --enable-test-coverage enable test coverage
1499 --disable-largefile omit support for large files
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot=DIR Search for dependent libraries within DIR
1508 (or the compiler's sysroot if not specified).
1509 --with-octave choose the octave version
1510 --with-mkoctfile choose the mkoctfile version
1511 --with-octave-config choose the octave-config version
1512
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CPP C preprocessor
1524 CXXCPP C++ preprocessor
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1531 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1532 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1533 OGG_LIBS linker flags for OGG, overriding pkg-config
1534 SPEEX_CFLAGS
1535 C compiler flags for SPEEX, overriding pkg-config
1536 SPEEX_LIBS linker flags for SPEEX, overriding pkg-config
1537 VORBIS_CFLAGS
1538 C compiler flags for VORBIS, overriding pkg-config
1539 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1540 VORBISENC_CFLAGS
1541 C compiler flags for VORBISENC, overriding pkg-config
1542 VORBISENC_LIBS
1543 linker flags for VORBISENC, overriding pkg-config
1544 SQLITE3_CFLAGS
1545 C compiler flags for SQLITE3, overriding pkg-config
1546 SQLITE3_LIBS
1547 linker flags for SQLITE3, overriding pkg-config
1548
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1551
1552 Report bugs to <sndfile@mega-nerd.com>.
1553 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615 cat <<\_ACEOF
1616 libsndfile configure 1.0.25
1617 generated by GNU Autoconf 2.68
1618
1619 Copyright (C) 2010 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623 exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_compile
1667
1668 # ac_fn_cxx_try_compile LINENO
1669 # ----------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_cxx_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_cxx_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_cxx_try_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 $as_test_x conftest$ac_exeext
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_cpp ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_cpp
1819
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1824 ac_fn_c_try_run ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=$ac_status
1855 fi
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_run
1861
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1878
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1883
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1889
1890 #undef $2
1891
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1905
1906 int
1907 main ()
1908 {
1909 return $2 ();
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_func
1928
1929 # ac_fn_cxx_try_cpp LINENO
1930 # ------------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_cpp ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } > conftest.i && {
1951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960 fi
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_cpp
1965
1966 # ac_fn_cxx_try_link LINENO
1967 # -------------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_link ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 rm -f conftest.$ac_objext conftest$ac_exeext
1973 if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>conftest.err
1981 ac_status=$?
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1986 fi
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && {
1989 test -z "$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 } && test -s conftest$ac_exeext && {
1992 test "$cross_compiling" = yes ||
1993 $as_test_x conftest$ac_exeext
1994 }; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=1
2001 fi
2002 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2003 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2004 # interfere with the next link command; also delete a directory that is
2005 # left behind by Apple's compiler. We do this before executing the actions.
2006 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2009
2010 } # ac_fn_cxx_try_link
2011
2012 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2013 # -------------------------------------------------------
2014 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2015 # the include files in INCLUDES and setting the cache variable VAR
2016 # accordingly.
2017 ac_fn_c_check_header_mongrel ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if eval \${$3+:} false; then :
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 fi
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 else
2030 # Is the header compilable?
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2032 $as_echo_n "checking $2 usability... " >&6; }
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 ac_header_compiler=yes
2040 else
2041 ac_header_compiler=no
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2045 $as_echo "$ac_header_compiler" >&6; }
2046
2047 # Is the header present?
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2049 $as_echo_n "checking $2 presence... " >&6; }
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 #include <$2>
2053 _ACEOF
2054 if ac_fn_c_try_cpp "$LINENO"; then :
2055 ac_header_preproc=yes
2056 else
2057 ac_header_preproc=no
2058 fi
2059 rm -f conftest.err conftest.i conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2061 $as_echo "$ac_header_preproc" >&6; }
2062
2063 # So? What about this header?
2064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2065 yes:no: )
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2067 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070 ;;
2071 no:yes:* )
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2073 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2075 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2077 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2079 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 ( $as_echo "## ------------------------------------ ##
2083 ## Report this to sndfile@mega-nerd.com ##
2084 ## ------------------------------------ ##"
2085 ) | sed "s/^/$as_me: WARNING: /" >&2
2086 ;;
2087 esac
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 eval "$3=\$ac_header_compiler"
2094 fi
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 fi
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101 } # ac_fn_c_check_header_mongrel
2102
2103 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2104 # ---------------------------------------------
2105 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2106 # accordingly.
2107 ac_fn_c_check_decl ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 as_decl_name=`echo $2|sed 's/ *(.*//'`
2111 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2113 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 int
2121 main ()
2122 {
2123 #ifndef $as_decl_name
2124 #ifdef __cplusplus
2125 (void) $as_decl_use;
2126 #else
2127 (void) $as_decl_name;
2128 #endif
2129 #endif
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 eval "$3=yes"
2137 else
2138 eval "$3=no"
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 fi
2142 eval ac_res=\$$3
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_decl
2148
2149 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2150 # --------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_c_compute_int ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 int
2179 main ()
2180 {
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2183
2184 ;
2185 return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2195 fi
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2225
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2237 fi
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2259
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2283 int
2284 main ()
2285 {
2286
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2291 {
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2296 }
2297 else
2298 {
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2303 }
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2307
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_c_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2316 fi
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2320
2321 fi
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
2324
2325 } # ac_fn_c_compute_int
2326
2327 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2328 # -------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_c_check_type ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if eval \${$3+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=no"
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $4
2343 int
2344 main ()
2345 {
2346 if (sizeof ($2))
2347 return 0;
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 if (sizeof (($2)))
2360 return 0;
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2366
2367 else
2368 eval "$3=yes"
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378
2379 } # ac_fn_c_check_type
2380 cat >config.log <<_ACEOF
2381 This file contains any messages produced by compilers while
2382 running configure, to aid debugging if configure makes a mistake.
2383
2384 It was created by libsndfile $as_me 1.0.25, which was
2385 generated by GNU Autoconf 2.68. Invocation command line was
2386
2387 $ $0 $@
2388
2389 _ACEOF
2390 exec 5>>config.log
2391 {
2392 cat <<_ASUNAME
2393 ## --------- ##
2394 ## Platform. ##
2395 ## --------- ##
2396
2397 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2398 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2399 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2400 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2401 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2402
2403 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2404 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2405
2406 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2407 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2408 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2409 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2410 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2411 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2412 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2413
2414 _ASUNAME
2415
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 $as_echo "PATH: $as_dir"
2422 done
2423 IFS=$as_save_IFS
2424
2425 } >&5
2426
2427 cat >&5 <<_ACEOF
2428
2429
2430 ## ----------- ##
2431 ## Core tests. ##
2432 ## ----------- ##
2433
2434 _ACEOF
2435
2436
2437 # Keep a trace of the command line.
2438 # Strip out --no-create and --no-recursion so they do not pile up.
2439 # Strip out --silent because we don't want to record it for future runs.
2440 # Also quote any args containing shell meta-characters.
2441 # Make two passes to allow for proper duplicate-argument suppression.
2442 ac_configure_args=
2443 ac_configure_args0=
2444 ac_configure_args1=
2445 ac_must_keep_next=false
2446 for ac_pass in 1 2
2447 do
2448 for ac_arg
2449 do
2450 case $ac_arg in
2451 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2453 | -silent | --silent | --silen | --sile | --sil)
2454 continue ;;
2455 *\'*)
2456 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 esac
2458 case $ac_pass in
2459 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2460 2)
2461 as_fn_append ac_configure_args1 " '$ac_arg'"
2462 if test $ac_must_keep_next = true; then
2463 ac_must_keep_next=false # Got value, back to normal.
2464 else
2465 case $ac_arg in
2466 *=* | --config-cache | -C | -disable-* | --disable-* \
2467 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2468 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2469 | -with-* | --with-* | -without-* | --without-* | --x)
2470 case "$ac_configure_args0 " in
2471 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2472 esac
2473 ;;
2474 -* ) ac_must_keep_next=true ;;
2475 esac
2476 fi
2477 as_fn_append ac_configure_args " '$ac_arg'"
2478 ;;
2479 esac
2480 done
2481 done
2482 { ac_configure_args0=; unset ac_configure_args0;}
2483 { ac_configure_args1=; unset ac_configure_args1;}
2484
2485 # When interrupted or exit'd, cleanup temporary files, and complete
2486 # config.log. We remove comments because anyway the quotes in there
2487 # would cause problems or look ugly.
2488 # WARNING: Use '\'' to represent an apostrophe within the trap.
2489 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2490 trap 'exit_status=$?
2491 # Save into config.log some information that might help in debugging.
2492 {
2493 echo
2494
2495 $as_echo "## ---------------- ##
2496 ## Cache variables. ##
2497 ## ---------------- ##"
2498 echo
2499 # The following way of writing the cache mishandles newlines in values,
2500 (
2501 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2502 eval ac_val=\$$ac_var
2503 case $ac_val in #(
2504 *${as_nl}*)
2505 case $ac_var in #(
2506 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2507 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2508 esac
2509 case $ac_var in #(
2510 _ | IFS | as_nl) ;; #(
2511 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2512 *) { eval $ac_var=; unset $ac_var;} ;;
2513 esac ;;
2514 esac
2515 done
2516 (set) 2>&1 |
2517 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2518 *${as_nl}ac_space=\ *)
2519 sed -n \
2520 "s/'\''/'\''\\\\'\'''\''/g;
2521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2522 ;; #(
2523 *)
2524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2525 ;;
2526 esac |
2527 sort
2528 )
2529 echo
2530
2531 $as_echo "## ----------------- ##
2532 ## Output variables. ##
2533 ## ----------------- ##"
2534 echo
2535 for ac_var in $ac_subst_vars
2536 do
2537 eval ac_val=\$$ac_var
2538 case $ac_val in
2539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 esac
2541 $as_echo "$ac_var='\''$ac_val'\''"
2542 done | sort
2543 echo
2544
2545 if test -n "$ac_subst_files"; then
2546 $as_echo "## ------------------- ##
2547 ## File substitutions. ##
2548 ## ------------------- ##"
2549 echo
2550 for ac_var in $ac_subst_files
2551 do
2552 eval ac_val=\$$ac_var
2553 case $ac_val in
2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555 esac
2556 $as_echo "$ac_var='\''$ac_val'\''"
2557 done | sort
2558 echo
2559 fi
2560
2561 if test -s confdefs.h; then
2562 $as_echo "## ----------- ##
2563 ## confdefs.h. ##
2564 ## ----------- ##"
2565 echo
2566 cat confdefs.h
2567 echo
2568 fi
2569 test "$ac_signal" != 0 &&
2570 $as_echo "$as_me: caught signal $ac_signal"
2571 $as_echo "$as_me: exit $exit_status"
2572 } >&5
2573 rm -f core *.core core.conftest.* &&
2574 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2575 exit $exit_status
2576 ' 0
2577 for ac_signal in 1 2 13 15; do
2578 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2579 done
2580 ac_signal=0
2581
2582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2583 rm -f -r conftest* confdefs.h
2584
2585 $as_echo "/* confdefs.h */" > confdefs.h
2586
2587 # Predefined preprocessor variables.
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_NAME "$PACKAGE_NAME"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_STRING "$PACKAGE_STRING"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2607 _ACEOF
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define PACKAGE_URL "$PACKAGE_URL"
2611 _ACEOF
2612
2613
2614 # Let the site file select an alternate cache file if it wants to.
2615 # Prefer an explicitly selected file to automatically selected ones.
2616 ac_site_file1=NONE
2617 ac_site_file2=NONE
2618 if test -n "$CONFIG_SITE"; then
2619 # We do not want a PATH search for config.site.
2620 case $CONFIG_SITE in #((
2621 -*) ac_site_file1=./$CONFIG_SITE;;
2622 */*) ac_site_file1=$CONFIG_SITE;;
2623 *) ac_site_file1=./$CONFIG_SITE;;
2624 esac
2625 elif test "x$prefix" != xNONE; then
2626 ac_site_file1=$prefix/share/config.site
2627 ac_site_file2=$prefix/etc/config.site
2628 else
2629 ac_site_file1=$ac_default_prefix/share/config.site
2630 ac_site_file2=$ac_default_prefix/etc/config.site
2631 fi
2632 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2633 do
2634 test "x$ac_site_file" = xNONE && continue
2635 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2637 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2638 sed 's/^/| /' "$ac_site_file" >&5
2639 . "$ac_site_file" \
2640 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "failed to load site script $ac_site_file
2643 See \`config.log' for more details" "$LINENO" 5; }
2644 fi
2645 done
2646
2647 if test -r "$cache_file"; then
2648 # Some versions of bash will fail to source /dev/null (special files
2649 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2650 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2652 $as_echo "$as_me: loading cache $cache_file" >&6;}
2653 case $cache_file in
2654 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2655 *) . "./$cache_file";;
2656 esac
2657 fi
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2660 $as_echo "$as_me: creating cache $cache_file" >&6;}
2661 >$cache_file
2662 fi
2663
2664 # Check that the precious variables saved in the cache have kept the same
2665 # value.
2666 ac_cache_corrupted=false
2667 for ac_var in $ac_precious_vars; do
2668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669 eval ac_new_set=\$ac_env_${ac_var}_set
2670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671 eval ac_new_val=\$ac_env_${ac_var}_value
2672 case $ac_old_set,$ac_new_set in
2673 set,)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,set)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2681 ,);;
2682 *)
2683 if test "x$ac_old_val" != "x$ac_new_val"; then
2684 # differences in whitespace do not lead to failure.
2685 ac_old_val_w=`echo x $ac_old_val`
2686 ac_new_val_w=`echo x $ac_new_val`
2687 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690 ac_cache_corrupted=:
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694 eval $ac_var=\$ac_old_val
2695 fi
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2697 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2699 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2700 fi;;
2701 esac
2702 # Pass precious variables to config.status.
2703 if test "$ac_new_set" = set; then
2704 case $ac_new_val in
2705 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 *) ac_arg=$ac_var=$ac_new_val ;;
2707 esac
2708 case " $ac_configure_args " in
2709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2710 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711 esac
2712 fi
2713 done
2714 if $ac_cache_corrupted; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2719 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2720 fi
2721 ## -------------------- ##
2722 ## Main body of script. ##
2723 ## -------------------- ##
2724
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732
2733 # Put config stuff in Cfg.
2734 ac_aux_dir=
2735 for ac_dir in Cfg "$srcdir"/Cfg; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749 done
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2752 fi
2753
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2761
2762
2763
2764
2765 # Make sure we can run config.sub.
2766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770 $as_echo_n "checking build system type... " >&6; }
2771 if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784 $as_echo "$ac_cv_build" >&6; }
2785 case $ac_cv_build in
2786 *-*-*) ;;
2787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 esac
2789 build=$ac_cv_build
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_build
2792 shift
2793 build_cpu=$1
2794 build_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 build_os=$*
2799 IFS=$ac_save_IFS
2800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804 $as_echo_n "checking host system type... " >&6; }
2805 if ${ac_cv_host+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test "x$host_alias" = x; then
2809 ac_cv_host=$ac_cv_build
2810 else
2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 fi
2814
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817 $as_echo "$ac_cv_host" >&6; }
2818 case $ac_cv_host in
2819 *-*-*) ;;
2820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 esac
2822 host=$ac_cv_host
2823 ac_save_IFS=$IFS; IFS='-'
2824 set x $ac_cv_host
2825 shift
2826 host_cpu=$1
2827 host_vendor=$2
2828 shift; shift
2829 # Remember, the first character of IFS is used to create $*,
2830 # except with old shells:
2831 host_os=$*
2832 IFS=$ac_save_IFS
2833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2837 $as_echo_n "checking target system type... " >&6; }
2838 if ${ac_cv_target+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test "x$target_alias" = x; then
2842 ac_cv_target=$ac_cv_host
2843 else
2844 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2846 fi
2847
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2850 $as_echo "$ac_cv_target" >&6; }
2851 case $ac_cv_target in
2852 *-*-*) ;;
2853 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2854 esac
2855 target=$ac_cv_target
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_target
2858 shift
2859 target_cpu=$1
2860 target_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 target_os=$*
2865 IFS=$ac_save_IFS
2866 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2867
2868
2869 # The aliases save the names the user supplied, while $host etc.
2870 # will get canonicalized.
2871 test -n "$target_alias" &&
2872 test "$program_prefix$program_suffix$program_transform_name" = \
2873 NONENONEs,x,x, &&
2874 program_prefix=${target_alias}-
2875
2876
2877 ac_config_headers="$ac_config_headers src/config.h"
2878
2879
2880 am__api_version='1.11'
2881
2882 # Find a good install program. We prefer a C program (faster),
2883 # so one script is as good as another. But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2888 # AIX /bin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in #((
2909 ./ | .// | /[cC]/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2912 /usr/ucb/* ) ;;
2913 *)
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2916 # by default.
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2923 :
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2927 :
2928 else
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one > conftest.one
2931 echo two > conftest.two
2932 mkdir conftest.dir
2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2934 test -s conftest.one && test -s conftest.two &&
2935 test -s conftest.dir/conftest.one &&
2936 test -s conftest.dir/conftest.two
2937 then
2938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2939 break 3
2940 fi
2941 fi
2942 fi
2943 done
2944 done
2945 ;;
2946 esac
2947
2948 done
2949 IFS=$as_save_IFS
2950
2951 rm -rf conftest.one conftest.two conftest.dir
2952
2953 fi
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL=$ac_cv_path_install
2956 else
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 INSTALL=$ac_install_sh
2962 fi
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2966
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2977 # Just in case
2978 sleep 1
2979 echo timestamp > conftest.file
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2982 am_lf='
2983 '
2984 case `pwd` in
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987 esac
2988 case $srcdir in
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2991 esac
2992
2993 # Do `set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2997 # directory).
2998 if (
2999 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000 if test "$*" = "X"; then
3001 # -L didn't work.
3002 set X `ls -t "$srcdir/configure" conftest.file`
3003 fi
3004 rm -f conftest.file
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3007
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3014 fi
3015
3016 test "$2" = conftest.file
3017 )
3018 then
3019 # Ok.
3020 :
3021 else
3022 as_fn_error $? "newly created file is older than distributed files!
3023 Check your system clock" "$LINENO" 5
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3026 $as_echo "yes" >&6; }
3027 test "$program_prefix" != NONE &&
3028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029 # Use a double $ so make ignores it.
3030 test "$program_suffix" != NONE &&
3031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032 # Double any \ or $.
3033 # By default was `s,x,x', remove it if useless.
3034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3036
3037 # expand $ac_aux_dir to an absolute path
3038 am_aux_dir=`cd $ac_aux_dir && pwd`
3039
3040 if test x"${MISSING+set}" != xset; then
3041 case $am_aux_dir in
3042 *\ * | *\ *)
3043 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3044 *)
3045 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3046 esac
3047 fi
3048 # Use eval to expand $SHELL
3049 if eval "$MISSING --run true"; then
3050 am_missing_run="$MISSING --run "
3051 else
3052 am_missing_run=
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3054 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3055 fi
3056
3057 if test x"${install_sh}" != xset; then
3058 case $am_aux_dir in
3059 *\ * | *\ *)
3060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3061 *)
3062 install_sh="\${SHELL} $am_aux_dir/install-sh"
3063 esac
3064 fi
3065
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_STRIP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 $as_echo "$STRIP" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$ac_cv_prog_STRIP"; then
3111 ac_ct_STRIP=$STRIP
3112 # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$ac_ct_STRIP"; then
3120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_ac_ct_STRIP="strip"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140 if test -n "$ac_ct_STRIP"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142 $as_echo "$ac_ct_STRIP" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148 if test "x$ac_ct_STRIP" = x; then
3149 STRIP=":"
3150 else
3151 case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157 STRIP=$ac_ct_STRIP
3158 fi
3159 else
3160 STRIP="$ac_cv_prog_STRIP"
3161 fi
3162
3163 fi
3164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3165
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169 if ${ac_cv_path_mkdir+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in mkdir gmkdir; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181 'mkdir (GNU coreutils) '* | \
3182 'mkdir (coreutils) '* | \
3183 'mkdir (fileutils) '4.1*)
3184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185 break 3;;
3186 esac
3187 done
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193
3194 test -d ./--version && rmdir ./--version
3195 if test "${ac_cv_path_mkdir+set}" = set; then
3196 MKDIR_P="$ac_cv_path_mkdir -p"
3197 else
3198 # As a last resort, use the slow shell script. Don't cache a
3199 # value for MKDIR_P within a source directory, because that will
3200 # break other packages using the cache if that directory is
3201 # removed, or if the value is a relative name.
3202 MKDIR_P="$ac_install_sh -d"
3203 fi
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 $as_echo "$MKDIR_P" >&6; }
3207
3208 mkdir_p="$MKDIR_P"
3209 case $mkdir_p in
3210 [\\/$]* | ?:[\\/]*) ;;
3211 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3212 esac
3213
3214 for ac_prog in gawk mawk nawk awk
3215 do
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_AWK+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$AWK"; then
3224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_AWK="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 AWK=$ac_cv_prog_AWK
3244 if test -n "$AWK"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246 $as_echo "$AWK" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 test -n "$AWK" && break
3254 done
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3258 set x ${MAKE-make}
3259 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3260 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 cat >conftest.make <<\_ACEOF
3264 SHELL = /bin/sh
3265 all:
3266 @echo '@@@%%%=$(MAKE)=@@@%%%'
3267 _ACEOF
3268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3270 *@@@%%%=?*=@@@%%%*)
3271 eval ac_cv_prog_make_${ac_make}_set=yes;;
3272 *)
3273 eval ac_cv_prog_make_${ac_make}_set=no;;
3274 esac
3275 rm -f conftest.make
3276 fi
3277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280 SET_MAKE=
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 SET_MAKE="MAKE=${MAKE-make}"
3285 fi
3286
3287 rm -rf .tst 2>/dev/null
3288 mkdir .tst 2>/dev/null
3289 if test -d .tst; then
3290 am__leading_dot=.
3291 else
3292 am__leading_dot=_
3293 fi
3294 rmdir .tst 2>/dev/null
3295
3296 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3298 # is not polluted with repeated "-I."
3299 am__isrc=' -I$(srcdir)'
3300 # test to see if srcdir already configured
3301 if test -f $srcdir/config.status; then
3302 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3303 fi
3304 fi
3305
3306 # test whether we have cygpath
3307 if test -z "$CYGPATH_W"; then
3308 if (cygpath --version) >/dev/null 2>/dev/null; then
3309 CYGPATH_W='cygpath -w'
3310 else
3311 CYGPATH_W=echo
3312 fi
3313 fi
3314
3315
3316 # Define the identity of the package.
3317 PACKAGE=$PACKAGE_NAME
3318 VERSION=$PACKAGE_VERSION
3319
3320
3321 cat >>confdefs.h <<_ACEOF
3322 #define PACKAGE "$PACKAGE"
3323 _ACEOF
3324
3325
3326 cat >>confdefs.h <<_ACEOF
3327 #define VERSION "$VERSION"
3328 _ACEOF
3329
3330 # Some tools Automake needs.
3331
3332 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333
3334
3335 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336
3337
3338 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339
3340
3341 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342
3343
3344 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3345
3346 # We need awk for the "check" target. The system "awk" is bad on
3347 # some platforms.
3348 # Always define AMTAR for backward compatibility. Yes, it's still used
3349 # in the wild :-( We should find a proper way to deprecate it ...
3350 AMTAR='$${TAR-tar}'
3351
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3353
3354
3355
3356
3357
3358 # Check whether --enable-silent-rules was given.
3359 if test "${enable_silent_rules+set}" = set; then :
3360 enableval=$enable_silent_rules;
3361 fi
3362
3363 case $enable_silent_rules in
3364 yes) AM_DEFAULT_VERBOSITY=0;;
3365 no) AM_DEFAULT_VERBOSITY=1;;
3366 *) AM_DEFAULT_VERBOSITY=0;;
3367 esac
3368 am_make=${MAKE-make}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3370 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3371 if ${am_cv_make_support_nested_variables+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if $as_echo 'TRUE=$(BAR$(V))
3375 BAR0=false
3376 BAR1=true
3377 V=1
3378 am__doit:
3379 @$(TRUE)
3380 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3381 am_cv_make_support_nested_variables=yes
3382 else
3383 am_cv_make_support_nested_variables=no
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3387 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3388 if test $am_cv_make_support_nested_variables = yes; then
3389 AM_V='$(V)'
3390 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3391 else
3392 AM_V=$AM_DEFAULT_VERBOSITY
3393 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3394 fi
3395 AM_BACKSLASH='\'
3396
3397
3398 ACLOCAL_AMFLAGS="-I M4"
3399
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$ac_cv_prog_CC"; then
3453 ac_ct_CC=$CC
3454 # Extract the first word of "gcc", so it can be a program name with args.
3455 set dummy gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_ac_ct_CC="gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3484 $as_echo "$ac_ct_CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 CC=$ac_ct_CC
3500 fi
3501 else
3502 CC="$ac_cv_prog_CC"
3503 fi
3504
3505 if test -z "$CC"; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}cc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC="${ac_tool_prefix}cc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544 fi
3545 fi
3546 if test -z "$CC"; then
3547 # Extract the first word of "cc", so it can be a program name with args.
3548 set dummy cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 ac_prog_rejected=no
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3566 ac_prog_rejected=yes
3567 continue
3568 fi
3569 ac_cv_prog_CC="cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 if test $ac_prog_rejected = yes; then
3578 # We found a bogon in the path, so make sure we never use it.
3579 set dummy $ac_cv_prog_CC
3580 shift
3581 if test $# != 0; then
3582 # We chose a different compiler from the bogus one.
3583 # However, it has the same basename, so the bogon will be chosen
3584 # first if we set CC to just the basename; use the full file name.
3585 shift
3586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3587 fi
3588 fi
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601 fi
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 for ac_prog in cl.exe
3605 do
3606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643 test -n "$CC" && break
3644 done
3645 fi
3646 if test -z "$CC"; then
3647 ac_ct_CC=$CC
3648 for ac_prog in cl.exe
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$ac_ct_CC"; then
3658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_ac_ct_CC="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3678 if test -n "$ac_ct_CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3680 $as_echo "$ac_ct_CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687 test -n "$ac_ct_CC" && break
3688 done
3689
3690 if test "x$ac_ct_CC" = x; then
3691 CC=""
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694 yes:)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697 ac_tool_warned=yes ;;
3698 esac
3699 CC=$ac_ct_CC
3700 fi
3701 fi
3702
3703 fi
3704
3705
3706 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "no acceptable C compiler found in \$PATH
3709 See \`config.log' for more details" "$LINENO" 5; }
3710
3711 # Provide some information about the compiler.
3712 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3713 set X $ac_compile
3714 ac_compiler=$2
3715 for ac_option in --version -v -V -qversion; do
3716 { { ac_try="$ac_compiler $ac_option >&5"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3724 ac_status=$?
3725 if test -s conftest.err; then
3726 sed '10a\
3727 ... rest of stderr output deleted ...
3728 10q' conftest.err >conftest.er1
3729 cat conftest.er1 >&5
3730 fi
3731 rm -f conftest.er1 conftest.err
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }
3734 done
3735
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 ac_clean_files_save=$ac_clean_files
3748 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3749 # Try to create an executable without -o first, disregard a.out.
3750 # It will help us diagnose broken compilers, and finding out an intuition
3751 # of exeext.
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3753 $as_echo_n "checking whether the C compiler works... " >&6; }
3754 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3755
3756 # The possible output files:
3757 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3758
3759 ac_rmfiles=
3760 for ac_file in $ac_files
3761 do
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3765 esac
3766 done
3767 rm -f $ac_rmfiles
3768
3769 if { { ac_try="$ac_link_default"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link_default") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3783 # so that the user can short-circuit this test for compilers unknown to
3784 # Autoconf.
3785 for ac_file in $ac_files ''
3786 do
3787 test -f "$ac_file" || continue
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3790 ;;
3791 [ab].out )
3792 # We found the default executable, but exeext='' is most
3793 # certainly right.
3794 break;;
3795 *.* )
3796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3797 then :; else
3798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 fi
3800 # We set ac_cv_exeext here because the later test for it is not
3801 # safe: cross compilers may not add the suffix if given an `-o'
3802 # argument, so we may need to know it at that point already.
3803 # Even if this section looks crufty: it has the advantage of
3804 # actually working.
3805 break;;
3806 * )
3807 break;;
3808 esac
3809 done
3810 test "$ac_cv_exeext" = no && ac_cv_exeext=
3811
3812 else
3813 ac_file=''
3814 fi
3815 if test -z "$ac_file"; then :
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error 77 "C compiler cannot create executables
3824 See \`config.log' for more details" "$LINENO" 5; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830 $as_echo_n "checking for C compiler default output file name... " >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3832 $as_echo "$ac_file" >&6; }
3833 ac_exeext=$ac_cv_exeext
3834
3835 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3836 ac_clean_files=$ac_clean_files_save
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3838 $as_echo_n "checking for suffix of executables... " >&6; }
3839 if { { ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3851 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3852 # work properly (i.e., refer to `conftest.exe'), while it won't with
3853 # `rm'.
3854 for ac_file in conftest.exe conftest conftest.*; do
3855 test -f "$ac_file" || continue
3856 case $ac_file in
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 break;;
3860 * ) break;;
3861 esac
3862 done
3863 else
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3867 See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 rm -f conftest conftest$ac_cv_exeext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3871 $as_echo "$ac_cv_exeext" >&6; }
3872
3873 rm -f conftest.$ac_ext
3874 EXEEXT=$ac_cv_exeext
3875 ac_exeext=$EXEEXT
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <stdio.h>
3879 int
3880 main ()
3881 {
3882 FILE *f = fopen ("conftest.out", "w");
3883 return ferror (f) || fclose (f) != 0;
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 ac_clean_files="$ac_clean_files conftest.out"
3890 # Check that the compiler produces executables we can run. If not, either
3891 # the compiler is broken, or we cross compile.
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3893 $as_echo_n "checking whether we are cross compiling... " >&6; }
3894 if test "$cross_compiling" != yes; then
3895 { { ac_try="$ac_link"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }
3906 if { ac_try='./conftest$ac_cv_exeext'
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: $cross_compiling" >&5
3931 $as_echo "$cross_compiling" >&6; }
3932
3933 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3934 ac_clean_files=$ac_clean_files_save
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3936 $as_echo_n "checking for suffix of object files... " >&6; }
3937 if ${ac_cv_objext+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942
3943 int
3944 main ()
3945 {
3946
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.o conftest.obj
3952 if { { ac_try="$ac_compile"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_compile") 2>&5
3960 ac_status=$?
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 for ac_file in conftest.o conftest.obj conftest.*; do
3964 test -f "$ac_file" || continue;
3965 case $ac_file in
3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3968 break;;
3969 esac
3970 done
3971 else
3972 $as_echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "cannot compute suffix of object files: cannot compile
3978 See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3983 $as_echo "$ac_cv_objext" >&6; }
3984 OBJEXT=$ac_cv_objext
3985 ac_objext=$OBJEXT
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3987 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3988 if ${ac_cv_c_compiler_gnu+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993
3994 int
3995 main ()
3996 {
3997 #ifndef __GNUC__
3998 choke me
3999 #endif
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006 ac_compiler_gnu=yes
4007 else
4008 ac_compiler_gnu=no
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4012
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4015 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4016 if test $ac_compiler_gnu = yes; then
4017 GCC=yes
4018 else
4019 GCC=
4020 fi
4021 ac_test_CFLAGS=${CFLAGS+set}
4022 ac_save_CFLAGS=$CFLAGS
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4024 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4025 if ${ac_cv_prog_cc_g+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 ac_save_c_werror_flag=$ac_c_werror_flag
4029 ac_c_werror_flag=yes
4030 ac_cv_prog_cc_g=no
4031 CFLAGS="-g"
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 int
4036 main ()
4037 {
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044 ac_cv_prog_cc_g=yes
4045 else
4046 CFLAGS=""
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059
4060 else
4061 ac_c_werror_flag=$ac_save_c_werror_flag
4062 CFLAGS="-g"
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065
4066 int
4067 main ()
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_prog_cc_g=yes
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 fi
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_c_werror_flag=$ac_save_c_werror_flag
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4085 $as_echo "$ac_cv_prog_cc_g" >&6; }
4086 if test "$ac_test_CFLAGS" = set; then
4087 CFLAGS=$ac_save_CFLAGS
4088 elif test $ac_cv_prog_cc_g = yes; then
4089 if test "$GCC" = yes; then
4090 CFLAGS="-g -O2"
4091 else
4092 CFLAGS="-g"
4093 fi
4094 else
4095 if test "$GCC" = yes; then
4096 CFLAGS="-O2"
4097 else
4098 CFLAGS=
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4102 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4103 if ${ac_cv_prog_cc_c89+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 ac_cv_prog_cc_c89=no
4107 ac_save_CC=$CC
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdarg.h>
4111 #include <stdio.h>
4112 #include <sys/types.h>
4113 #include <sys/stat.h>
4114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4115 struct buf { int x; };
4116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4117 static char *e (p, i)
4118 char **p;
4119 int i;
4120 {
4121 return p[i];
4122 }
4123 static char *f (char * (*g) (char **, int), char **p, ...)
4124 {
4125 char *s;
4126 va_list v;
4127 va_start (v,p);
4128 s = g (p, va_arg (v,int));
4129 va_end (v);
4130 return s;
4131 }
4132
4133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4134 function prototypes and stuff, but not '\xHH' hex character constants.
4135 These don't provoke an error unfortunately, instead are silently treated
4136 as 'x'. The following induces an error, until -std is added to get
4137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4138 array size at least. It's necessary to write '\x00'==0 to get something
4139 that's true only with -std. */
4140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4141
4142 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4143 inside strings and character constants. */
4144 #define FOO(x) 'x'
4145 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4146
4147 int test (int i, double x);
4148 struct s1 {int (*f) (int a);};
4149 struct s2 {int (*f) (double a);};
4150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 int argc;
4152 char **argv;
4153 int
4154 main ()
4155 {
4156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4162 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163 do
4164 CC="$ac_save_CC $ac_arg"
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_c89=$ac_arg
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext
4169 test "x$ac_cv_prog_cc_c89" != "xno" && break
4170 done
4171 rm -f conftest.$ac_ext
4172 CC=$ac_save_CC
4173
4174 fi
4175 # AC_CACHE_VAL
4176 case "x$ac_cv_prog_cc_c89" in
4177 x)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4179 $as_echo "none needed" >&6; } ;;
4180 xno)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4182 $as_echo "unsupported" >&6; } ;;
4183 *)
4184 CC="$CC $ac_cv_prog_cc_c89"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4186 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4187 esac
4188 if test "x$ac_cv_prog_cc_c89" != xno; then :
4189
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 DEPDIR="${am__leading_dot}deps"
4198
4199 ac_config_commands="$ac_config_commands depfiles"
4200
4201
4202 am_make=${MAKE-make}
4203 cat > confinc << 'END'
4204 am__doit:
4205 @echo this is the am__doit target
4206 .PHONY: am__doit
4207 END
4208 # If we don't find an include directive, just comment out the code.
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4210 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4211 am__include="#"
4212 am__quote=
4213 _am_result=none
4214 # First try GNU make style include.
4215 echo "include confinc" > confmf
4216 # Ignore all kinds of additional output from `make'.
4217 case `$am_make -s -f confmf 2> /dev/null` in #(
4218 *the\ am__doit\ target*)
4219 am__include=include
4220 am__quote=
4221 _am_result=GNU
4222 ;;
4223 esac
4224 # Now try BSD make style include.
4225 if test "$am__include" = "#"; then
4226 echo '.include "confinc"' > confmf
4227 case `$am_make -s -f confmf 2> /dev/null` in #(
4228 *the\ am__doit\ target*)
4229 am__include=.include
4230 am__quote="\""
4231 _am_result=BSD
4232 ;;
4233 esac
4234 fi
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4238 $as_echo "$_am_result" >&6; }
4239 rm -f confinc confmf
4240
4241 # Check whether --enable-dependency-tracking was given.
4242 if test "${enable_dependency_tracking+set}" = set; then :
4243 enableval=$enable_dependency_tracking;
4244 fi
4245
4246 if test "x$enable_dependency_tracking" != xno; then
4247 am_depcomp="$ac_aux_dir/depcomp"
4248 AMDEPBACKSLASH='\'
4249 am__nodep='_no'
4250 fi
4251 if test "x$enable_dependency_tracking" != xno; then
4252 AMDEP_TRUE=
4253 AMDEP_FALSE='#'
4254 else
4255 AMDEP_TRUE='#'
4256 AMDEP_FALSE=
4257 fi
4258
4259
4260
4261 depcc="$CC" am_compiler_list=
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4264 $as_echo_n "checking dependency style of $depcc... " >&6; }
4265 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4269 # We make a subdir and do the tests there. Otherwise we can end up
4270 # making bogus files that we don't know about and never remove. For
4271 # instance it was reported that on HP-UX the gcc test will end up
4272 # making a dummy file named `D' -- because `-MD' means `put the output
4273 # in D'.
4274 rm -rf conftest.dir
4275 mkdir conftest.dir
4276 # Copy depcomp to subdir because otherwise we won't find it if we're
4277 # using a relative directory.
4278 cp "$am_depcomp" conftest.dir
4279 cd conftest.dir
4280 # We will build objects and dependencies in a subdirectory because
4281 # it helps to detect inapplicable dependency modes. For instance
4282 # both Tru64's cc and ICC support -MD to output dependencies as a
4283 # side effect of compilation, but ICC will put the dependencies in
4284 # the current directory while Tru64 will put them in the object
4285 # directory.
4286 mkdir sub
4287
4288 am_cv_CC_dependencies_compiler_type=none
4289 if test "$am_compiler_list" = ""; then
4290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4291 fi
4292 am__universal=false
4293 case " $depcc " in #(
4294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4295 esac
4296
4297 for depmode in $am_compiler_list; do
4298 # Setup a source with many dependencies, because some compilers
4299 # like to wrap large dependency lists on column 80 (with \), and
4300 # we should not choose a depcomp mode which is confused by this.
4301 #
4302 # We need to recreate these files for each test, as the compiler may
4303 # overwrite some of them when testing with obscure command lines.
4304 # This happens at least with the AIX C compiler.
4305 : > sub/conftest.c
4306 for i in 1 2 3 4 5 6; do
4307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4308 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4309 # Solaris 8's {/usr,}/bin/sh.
4310 touch sub/conftst$i.h
4311 done
4312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4313
4314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4315 # mode. It turns out that the SunPro C++ compiler does not properly
4316 # handle `-M -o', and we need to detect this. Also, some Intel
4317 # versions had trouble with output in subdirs
4318 am__obj=sub/conftest.${OBJEXT-o}
4319 am__minus_obj="-o $am__obj"
4320 case $depmode in
4321 gcc)
4322 # This depmode causes a compiler race in universal mode.
4323 test "$am__universal" = false || continue
4324 ;;
4325 nosideeffect)
4326 # after this tag, mechanisms are not by side-effect, so they'll
4327 # only be used when explicitly requested
4328 if test "x$enable_dependency_tracking" = xyes; then
4329 continue
4330 else
4331 break
4332 fi
4333 ;;
4334 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4335 # This compiler won't grok `-c -o', but also, the minuso test has
4336 # not run yet. These depmodes are late enough in the game, and
4337 # so weak that their functioning should not be impacted.
4338 am__obj=conftest.${OBJEXT-o}
4339 am__minus_obj=
4340 ;;
4341 none) break ;;
4342 esac
4343 if depmode=$depmode \
4344 source=sub/conftest.c object=$am__obj \
4345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4347 >/dev/null 2>conftest.err &&
4348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4352 # icc doesn't choke on unknown options, it will just issue warnings
4353 # or remarks (even with -Werror). So we grep stderr for any message
4354 # that says an option was ignored or not supported.
4355 # When given -MP, icc 7.0 and 7.1 complain thusly:
4356 # icc: Command line warning: ignoring option '-M'; no argument required
4357 # The diagnosis changed in icc 8.0:
4358 # icc: Command line remark: option '-MP' not supported
4359 if (grep 'ignoring option' conftest.err ||
4360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4361 am_cv_CC_dependencies_compiler_type=$depmode
4362 break
4363 fi
4364 fi
4365 done
4366
4367 cd ..
4368 rm -rf conftest.dir
4369 else
4370 am_cv_CC_dependencies_compiler_type=none
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4377
4378 if
4379 test "x$enable_dependency_tracking" != xno \
4380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4381 am__fastdepCC_TRUE=
4382 am__fastdepCC_FALSE='#'
4383 else
4384 am__fastdepCC_TRUE='#'
4385 am__fastdepCC_FALSE=
4386 fi
4387
4388
4389 if test "x$CC" != xcc; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4391 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4394 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4395 fi
4396 set dummy $CC; ac_cc=`$as_echo "$2" |
4397 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4398 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403
4404 int
4405 main ()
4406 {
4407
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 # Make sure it works both with $CC and with simple cc.
4413 # We do the test twice because some compilers refuse to overwrite an
4414 # existing .o file with -o, though they will create one.
4415 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4416 rm -f conftest2.*
4417 if { { case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_try") 2>&5
4424 ac_status=$?
4425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; } &&
4427 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_try") 2>&5
4434 ac_status=$?
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; };
4437 then
4438 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4439 if test "x$CC" != xcc; then
4440 # Test first that cc exists at all.
4441 if { ac_try='cc -c conftest.$ac_ext >&5'
4442 { { case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }; }; then
4452 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4453 rm -f conftest2.*
4454 if { { case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; } &&
4464 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_try") 2>&5
4471 ac_status=$?
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; };
4474 then
4475 # cc works too.
4476 :
4477 else
4478 # cc exists but doesn't like -o.
4479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4480 fi
4481 fi
4482 fi
4483 else
4484 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4485 fi
4486 rm -f core conftest*
4487
4488 fi
4489 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4491 $as_echo "yes" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495
4496 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4497
4498 fi
4499
4500 # FIXME: we rely on the cache variable name because
4501 # there is no other way.
4502 set dummy $CC
4503 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4504 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4505 if test "$am_t" != yes; then
4506 # Losing compiler, so override with the script.
4507 # FIXME: It is wrong to rewrite CC.
4508 # But if we don't then we get into trouble of one sort or another.
4509 # A longer-term fix would be to have automake use am__CC in this case,
4510 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4511 CC="$am_aux_dir/compile $CC"
4512 fi
4513
4514
4515 ac_ext=cpp
4516 ac_cpp='$CXXCPP $CPPFLAGS'
4517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4520 if test -z "$CXX"; then
4521 if test -n "$CCC"; then
4522 CXX=$CCC
4523 else
4524 if test -n "$ac_tool_prefix"; then
4525 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 do
4527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_CXX+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$CXX"; then
4535 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 CXX=$ac_cv_prog_CXX
4555 if test -n "$CXX"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4557 $as_echo "$CXX" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 test -n "$CXX" && break
4565 done
4566 fi
4567 if test -z "$CXX"; then
4568 ac_ct_CXX=$CXX
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_prog", so it can be a program name with args.
4572 set dummy $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 ${ac_cv_prog_ac_ct_CXX+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$ac_ct_CXX"; then
4579 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4599 if test -n "$ac_ct_CXX"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4601 $as_echo "$ac_ct_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 "$ac_ct_CXX" && break
4609 done
4610
4611 if test "x$ac_ct_CXX" = x; then
4612 CXX="g++"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 CXX=$ac_ct_CXX
4621 fi
4622 fi
4623
4624 fi
4625 fi
4626 # Provide some information about the compiler.
4627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4628 set X $ac_compile
4629 ac_compiler=$2
4630 for ac_option in --version -v -V -qversion; do
4631 { { ac_try="$ac_compiler $ac_option >&5"
4632 case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4639 ac_status=$?
4640 if test -s conftest.err; then
4641 sed '10a\
4642 ... rest of stderr output deleted ...
4643 10q' conftest.err >conftest.er1
4644 cat conftest.er1 >&5
4645 fi
4646 rm -f conftest.er1 conftest.err
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; }
4649 done
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4652 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4653 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662 #ifndef __GNUC__
4663 choke me
4664 #endif
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_cxx_try_compile "$LINENO"; then :
4671 ac_compiler_gnu=yes
4672 else
4673 ac_compiler_gnu=no
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4680 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4681 if test $ac_compiler_gnu = yes; then
4682 GXX=yes
4683 else
4684 GXX=
4685 fi
4686 ac_test_CXXFLAGS=${CXXFLAGS+set}
4687 ac_save_CXXFLAGS=$CXXFLAGS
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4689 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4690 if ${ac_cv_prog_cxx_g+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4694 ac_cxx_werror_flag=yes
4695 ac_cv_prog_cxx_g=no
4696 CXXFLAGS="-g"
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main ()
4702 {
4703
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 if ac_fn_cxx_try_compile "$LINENO"; then :
4709 ac_cv_prog_cxx_g=yes
4710 else
4711 CXXFLAGS=""
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724
4725 else
4726 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4727 CXXFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4740 ac_cv_prog_cxx_g=yes
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4750 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4751 if test "$ac_test_CXXFLAGS" = set; then
4752 CXXFLAGS=$ac_save_CXXFLAGS
4753 elif test $ac_cv_prog_cxx_g = yes; then
4754 if test "$GXX" = yes; then
4755 CXXFLAGS="-g -O2"
4756 else
4757 CXXFLAGS="-g"
4758 fi
4759 else
4760 if test "$GXX" = yes; then
4761 CXXFLAGS="-O2"
4762 else
4763 CXXFLAGS=
4764 fi
4765 fi
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771
4772 depcc="$CXX" am_compiler_list=
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4775 $as_echo_n "checking dependency style of $depcc... " >&6; }
4776 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4780 # We make a subdir and do the tests there. Otherwise we can end up
4781 # making bogus files that we don't know about and never remove. For
4782 # instance it was reported that on HP-UX the gcc test will end up
4783 # making a dummy file named `D' -- because `-MD' means `put the output
4784 # in D'.
4785 rm -rf conftest.dir
4786 mkdir conftest.dir
4787 # Copy depcomp to subdir because otherwise we won't find it if we're
4788 # using a relative directory.
4789 cp "$am_depcomp" conftest.dir
4790 cd conftest.dir
4791 # We will build objects and dependencies in a subdirectory because
4792 # it helps to detect inapplicable dependency modes. For instance
4793 # both Tru64's cc and ICC support -MD to output dependencies as a
4794 # side effect of compilation, but ICC will put the dependencies in
4795 # the current directory while Tru64 will put them in the object
4796 # directory.
4797 mkdir sub
4798
4799 am_cv_CXX_dependencies_compiler_type=none
4800 if test "$am_compiler_list" = ""; then
4801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4802 fi
4803 am__universal=false
4804 case " $depcc " in #(
4805 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4806 esac
4807
4808 for depmode in $am_compiler_list; do
4809 # Setup a source with many dependencies, because some compilers
4810 # like to wrap large dependency lists on column 80 (with \), and
4811 # we should not choose a depcomp mode which is confused by this.
4812 #
4813 # We need to recreate these files for each test, as the compiler may
4814 # overwrite some of them when testing with obscure command lines.
4815 # This happens at least with the AIX C compiler.
4816 : > sub/conftest.c
4817 for i in 1 2 3 4 5 6; do
4818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4820 # Solaris 8's {/usr,}/bin/sh.
4821 touch sub/conftst$i.h
4822 done
4823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4824
4825 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4826 # mode. It turns out that the SunPro C++ compiler does not properly
4827 # handle `-M -o', and we need to detect this. Also, some Intel
4828 # versions had trouble with output in subdirs
4829 am__obj=sub/conftest.${OBJEXT-o}
4830 am__minus_obj="-o $am__obj"
4831 case $depmode in
4832 gcc)
4833 # This depmode causes a compiler race in universal mode.
4834 test "$am__universal" = false || continue
4835 ;;
4836 nosideeffect)
4837 # after this tag, mechanisms are not by side-effect, so they'll
4838 # only be used when explicitly requested
4839 if test "x$enable_dependency_tracking" = xyes; then
4840 continue
4841 else
4842 break
4843 fi
4844 ;;
4845 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4846 # This compiler won't grok `-c -o', but also, the minuso test has
4847 # not run yet. These depmodes are late enough in the game, and
4848 # so weak that their functioning should not be impacted.
4849 am__obj=conftest.${OBJEXT-o}
4850 am__minus_obj=
4851 ;;
4852 none) break ;;
4853 esac
4854 if depmode=$depmode \
4855 source=sub/conftest.c object=$am__obj \
4856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4857 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4858 >/dev/null 2>conftest.err &&
4859 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4860 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4861 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4862 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4863 # icc doesn't choke on unknown options, it will just issue warnings
4864 # or remarks (even with -Werror). So we grep stderr for any message
4865 # that says an option was ignored or not supported.
4866 # When given -MP, icc 7.0 and 7.1 complain thusly:
4867 # icc: Command line warning: ignoring option '-M'; no argument required
4868 # The diagnosis changed in icc 8.0:
4869 # icc: Command line remark: option '-MP' not supported
4870 if (grep 'ignoring option' conftest.err ||
4871 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4872 am_cv_CXX_dependencies_compiler_type=$depmode
4873 break
4874 fi
4875 fi
4876 done
4877
4878 cd ..
4879 rm -rf conftest.dir
4880 else
4881 am_cv_CXX_dependencies_compiler_type=none
4882 fi
4883
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4886 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4887 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4888
4889 if
4890 test "x$enable_dependency_tracking" != xno \
4891 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4892 am__fastdepCXX_TRUE=
4893 am__fastdepCXX_FALSE='#'
4894 else
4895 am__fastdepCXX_TRUE='#'
4896 am__fastdepCXX_FALSE=
4897 fi
4898
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4901 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4902 if ${ac_cv_path_SED+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4906 for ac_i in 1 2 3 4 5 6 7; do
4907 ac_script="$ac_script$as_nl$ac_script"
4908 done
4909 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4910 { ac_script=; unset ac_script;}
4911 if test -z "$SED"; then
4912 ac_path_SED_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_prog in sed gsed; do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4922 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4923 # Check for GNU ac_path_SED and select it if it is found.
4924 # Check for GNU $ac_path_SED
4925 case `"$ac_path_SED" --version 2>&1` in
4926 *GNU*)
4927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4928 *)
4929 ac_count=0
4930 $as_echo_n 0123456789 >"conftest.in"
4931 while :
4932 do
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 $as_echo '' >> "conftest.nl"
4937 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 as_fn_arith $ac_count + 1 && ac_count=$as_val
4940 if test $ac_count -gt ${ac_path_SED_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_SED="$ac_path_SED"
4943 ac_path_SED_max=$ac_count
4944 fi
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4947 done
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4950
4951 $ac_path_SED_found && break 3
4952 done
4953 done
4954 done
4955 IFS=$as_save_IFS
4956 if test -z "$ac_cv_path_SED"; then
4957 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4958 fi
4959 else
4960 ac_cv_path_SED=$SED
4961 fi
4962
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4965 $as_echo "$ac_cv_path_SED" >&6; }
4966 SED="$ac_cv_path_SED"
4967 rm -f conftest.sed
4968
4969
4970 # Do not check for F77.
4971
4972 case `pwd` in
4973 *\ * | *\ *)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4975 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4976 esac
4977
4978
4979
4980 macro_version='2.4'
4981 macro_revision='1.3293'
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 ltmain="$ac_aux_dir/ltmain.sh"
4996
4997 # Backslashify metacharacters that are still active within
4998 # double-quoted strings.
4999 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5000
5001 # Same as above, but do not quote variable references.
5002 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5003
5004 # Sed substitution to delay expansion of an escaped shell variable in a
5005 # double_quote_subst'ed string.
5006 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5007
5008 # Sed substitution to delay expansion of an escaped single quote.
5009 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5010
5011 # Sed substitution to avoid accidental globbing in evaled expressions
5012 no_glob_subst='s/\*/\\\*/g'
5013
5014 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5015 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5016 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5019 $as_echo_n "checking how to print strings... " >&6; }
5020 # Test print first, because it will be a builtin if present.
5021 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5022 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5023 ECHO='print -r --'
5024 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5025 ECHO='printf %s\n'
5026 else
5027 # Use this function as a fallback that always works.
5028 func_fallback_echo ()
5029 {
5030 eval 'cat <<_LTECHO_EOF
5031 $1
5032 _LTECHO_EOF'
5033 }
5034 ECHO='func_fallback_echo'
5035 fi
5036
5037 # func_echo_all arg...
5038 # Invoke $ECHO with all args, space-separated.
5039 func_echo_all ()
5040 {
5041 $ECHO ""
5042 }
5043
5044 case "$ECHO" in
5045 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5046 $as_echo "printf" >&6; } ;;
5047 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5048 $as_echo "print -r" >&6; } ;;
5049 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5050 $as_echo "cat" >&6; } ;;
5051 esac
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5067 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5068 if ${ac_cv_path_SED+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5072 for ac_i in 1 2 3 4 5 6 7; do
5073 ac_script="$ac_script$as_nl$ac_script"
5074 done
5075 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5076 { ac_script=; unset ac_script;}
5077 if test -z "$SED"; then
5078 ac_path_SED_found=false
5079 # Loop through the user's path and test for each of PROGNAME-LIST
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_prog in sed gsed; do
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5088 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5089 # Check for GNU ac_path_SED and select it if it is found.
5090 # Check for GNU $ac_path_SED
5091 case `"$ac_path_SED" --version 2>&1` in
5092 *GNU*)
5093 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5094 *)
5095 ac_count=0
5096 $as_echo_n 0123456789 >"conftest.in"
5097 while :
5098 do
5099 cat "conftest.in" "conftest.in" >"conftest.tmp"
5100 mv "conftest.tmp" "conftest.in"
5101 cp "conftest.in" "conftest.nl"
5102 $as_echo '' >> "conftest.nl"
5103 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5105 as_fn_arith $ac_count + 1 && ac_count=$as_val
5106 if test $ac_count -gt ${ac_path_SED_max-0}; then
5107 # Best one so far, save it but keep looking for a better one
5108 ac_cv_path_SED="$ac_path_SED"
5109 ac_path_SED_max=$ac_count
5110 fi
5111 # 10*(2^10) chars as input seems more than enough
5112 test $ac_count -gt 10 && break
5113 done
5114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5115 esac
5116
5117 $ac_path_SED_found && break 3
5118 done
5119 done
5120 done
5121 IFS=$as_save_IFS
5122 if test -z "$ac_cv_path_SED"; then
5123 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5124 fi
5125 else
5126 ac_cv_path_SED=$SED
5127 fi
5128
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5131 $as_echo "$ac_cv_path_SED" >&6; }
5132 SED="$ac_cv_path_SED"
5133 rm -f conftest.sed
5134
5135 test -z "$SED" && SED=sed
5136 Xsed="$SED -e 1s/^X//"
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5149 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5150 if ${ac_cv_path_GREP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -z "$GREP"; then
5154 ac_path_GREP_found=false
5155 # Loop through the user's path and test for each of PROGNAME-LIST
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_prog in grep ggrep; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5164 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5165 # Check for GNU ac_path_GREP and select it if it is found.
5166 # Check for GNU $ac_path_GREP
5167 case `"$ac_path_GREP" --version 2>&1` in
5168 *GNU*)
5169 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5170 *)
5171 ac_count=0
5172 $as_echo_n 0123456789 >"conftest.in"
5173 while :
5174 do
5175 cat "conftest.in" "conftest.in" >"conftest.tmp"
5176 mv "conftest.tmp" "conftest.in"
5177 cp "conftest.in" "conftest.nl"
5178 $as_echo 'GREP' >> "conftest.nl"
5179 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5181 as_fn_arith $ac_count + 1 && ac_count=$as_val
5182 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5183 # Best one so far, save it but keep looking for a better one
5184 ac_cv_path_GREP="$ac_path_GREP"
5185 ac_path_GREP_max=$ac_count
5186 fi
5187 # 10*(2^10) chars as input seems more than enough
5188 test $ac_count -gt 10 && break
5189 done
5190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 esac
5192
5193 $ac_path_GREP_found && break 3
5194 done
5195 done
5196 done
5197 IFS=$as_save_IFS
5198 if test -z "$ac_cv_path_GREP"; then
5199 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5200 fi
5201 else
5202 ac_cv_path_GREP=$GREP
5203 fi
5204
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5207 $as_echo "$ac_cv_path_GREP" >&6; }
5208 GREP="$ac_cv_path_GREP"
5209
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5212 $as_echo_n "checking for egrep... " >&6; }
5213 if ${ac_cv_path_EGREP+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5217 then ac_cv_path_EGREP="$GREP -E"
5218 else
5219 if test -z "$EGREP"; then
5220 ac_path_EGREP_found=false
5221 # Loop through the user's path and test for each of PROGNAME-LIST
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_prog in egrep; do
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5230 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5231 # Check for GNU ac_path_EGREP and select it if it is found.
5232 # Check for GNU $ac_path_EGREP
5233 case `"$ac_path_EGREP" --version 2>&1` in
5234 *GNU*)
5235 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5236 *)
5237 ac_count=0
5238 $as_echo_n 0123456789 >"conftest.in"
5239 while :
5240 do
5241 cat "conftest.in" "conftest.in" >"conftest.tmp"
5242 mv "conftest.tmp" "conftest.in"
5243 cp "conftest.in" "conftest.nl"
5244 $as_echo 'EGREP' >> "conftest.nl"
5245 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5247 as_fn_arith $ac_count + 1 && ac_count=$as_val
5248 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5249 # Best one so far, save it but keep looking for a better one
5250 ac_cv_path_EGREP="$ac_path_EGREP"
5251 ac_path_EGREP_max=$ac_count
5252 fi
5253 # 10*(2^10) chars as input seems more than enough
5254 test $ac_count -gt 10 && break
5255 done
5256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5257 esac
5258
5259 $ac_path_EGREP_found && break 3
5260 done
5261 done
5262 done
5263 IFS=$as_save_IFS
5264 if test -z "$ac_cv_path_EGREP"; then
5265 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5266 fi
5267 else
5268 ac_cv_path_EGREP=$EGREP
5269 fi
5270
5271 fi
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5274 $as_echo "$ac_cv_path_EGREP" >&6; }
5275 EGREP="$ac_cv_path_EGREP"
5276
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5279 $as_echo_n "checking for fgrep... " >&6; }
5280 if ${ac_cv_path_FGREP+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5284 then ac_cv_path_FGREP="$GREP -F"
5285 else
5286 if test -z "$FGREP"; then
5287 ac_path_FGREP_found=false
5288 # Loop through the user's path and test for each of PROGNAME-LIST
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_prog in fgrep; do
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5297 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5298 # Check for GNU ac_path_FGREP and select it if it is found.
5299 # Check for GNU $ac_path_FGREP
5300 case `"$ac_path_FGREP" --version 2>&1` in
5301 *GNU*)
5302 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5303 *)
5304 ac_count=0
5305 $as_echo_n 0123456789 >"conftest.in"
5306 while :
5307 do
5308 cat "conftest.in" "conftest.in" >"conftest.tmp"
5309 mv "conftest.tmp" "conftest.in"
5310 cp "conftest.in" "conftest.nl"
5311 $as_echo 'FGREP' >> "conftest.nl"
5312 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5314 as_fn_arith $ac_count + 1 && ac_count=$as_val
5315 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5316 # Best one so far, save it but keep looking for a better one
5317 ac_cv_path_FGREP="$ac_path_FGREP"
5318 ac_path_FGREP_max=$ac_count
5319 fi
5320 # 10*(2^10) chars as input seems more than enough
5321 test $ac_count -gt 10 && break
5322 done
5323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5324 esac
5325
5326 $ac_path_FGREP_found && break 3
5327 done
5328 done
5329 done
5330 IFS=$as_save_IFS
5331 if test -z "$ac_cv_path_FGREP"; then
5332 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5333 fi
5334 else
5335 ac_cv_path_FGREP=$FGREP
5336 fi
5337
5338 fi
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5341 $as_echo "$ac_cv_path_FGREP" >&6; }
5342 FGREP="$ac_cv_path_FGREP"
5343
5344
5345 test -z "$GREP" && GREP=grep
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 # Check whether --with-gnu-ld was given.
5366 if test "${with_gnu_ld+set}" = set; then :
5367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5368 else
5369 with_gnu_ld=no
5370 fi
5371
5372 ac_prog=ld
5373 if test "$GCC" = yes; then
5374 # Check if gcc -print-prog-name=ld gives a path.
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5376 $as_echo_n "checking for ld used by $CC... " >&6; }
5377 case $host in
5378 *-*-mingw*)
5379 # gcc leaves a trailing carriage return which upsets mingw
5380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5381 *)
5382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5383 esac
5384 case $ac_prog in
5385 # Accept absolute paths.
5386 [\\/]* | ?:[\\/]*)
5387 re_direlt='/[^/][^/]*/\.\./'
5388 # Canonicalize the pathname of ld
5389 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5390 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5391 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5392 done
5393 test -z "$LD" && LD="$ac_prog"
5394 ;;
5395 "")
5396 # If it fails, then pretend we aren't using GCC.
5397 ac_prog=ld
5398 ;;
5399 *)
5400 # If it is relative, then search for the first ld in PATH.
5401 with_gnu_ld=unknown
5402 ;;
5403 esac
5404 elif test "$with_gnu_ld" = yes; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5406 $as_echo_n "checking for GNU ld... " >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5409 $as_echo_n "checking for non-GNU ld... " >&6; }
5410 fi
5411 if ${lt_cv_path_LD+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -z "$LD"; then
5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416 for ac_dir in $PATH; do
5417 IFS="$lt_save_ifs"
5418 test -z "$ac_dir" && ac_dir=.
5419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5420 lt_cv_path_LD="$ac_dir/$ac_prog"
5421 # Check to see if the program is GNU ld. I'd rather use --version,
5422 # but apparently some variants of GNU ld only accept -v.
5423 # Break only if it was the GNU/non-GNU ld that we prefer.
5424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5425 *GNU* | *'with BFD'*)
5426 test "$with_gnu_ld" != no && break
5427 ;;
5428 *)
5429 test "$with_gnu_ld" != yes && break
5430 ;;
5431 esac
5432 fi
5433 done
5434 IFS="$lt_save_ifs"
5435 else
5436 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5437 fi
5438 fi
5439
5440 LD="$lt_cv_path_LD"
5441 if test -n "$LD"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5443 $as_echo "$LD" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5450 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5451 if ${lt_cv_prog_gnu_ld+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5455 case `$LD -v 2>&1 </dev/null` in
5456 *GNU* | *'with BFD'*)
5457 lt_cv_prog_gnu_ld=yes
5458 ;;
5459 *)
5460 lt_cv_prog_gnu_ld=no
5461 ;;
5462 esac
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5465 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5466 with_gnu_ld=$lt_cv_prog_gnu_ld
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5477 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5478 if ${lt_cv_path_NM+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$NM"; then
5482 # Let the user override the test.
5483 lt_cv_path_NM="$NM"
5484 else
5485 lt_nm_to_check="${ac_tool_prefix}nm"
5486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5487 lt_nm_to_check="$lt_nm_to_check nm"
5488 fi
5489 for lt_tmp_nm in $lt_nm_to_check; do
5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5492 IFS="$lt_save_ifs"
5493 test -z "$ac_dir" && ac_dir=.
5494 tmp_nm="$ac_dir/$lt_tmp_nm"
5495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5496 # Check to see if the nm accepts a BSD-compat flag.
5497 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5498 # nm: unknown option "B" ignored
5499 # Tru64's nm complains that /dev/null is an invalid object file
5500 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5501 */dev/null* | *'Invalid file or object type'*)
5502 lt_cv_path_NM="$tmp_nm -B"
5503 break
5504 ;;
5505 *)
5506 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5507 */dev/null*)
5508 lt_cv_path_NM="$tmp_nm -p"
5509 break
5510 ;;
5511 *)
5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513 continue # so that we can try to find one that supports BSD flags
5514 ;;
5515 esac
5516 ;;
5517 esac
5518 fi
5519 done
5520 IFS="$lt_save_ifs"
5521 done
5522 : ${lt_cv_path_NM=no}
5523 fi
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5526 $as_echo "$lt_cv_path_NM" >&6; }
5527 if test "$lt_cv_path_NM" != "no"; then
5528 NM="$lt_cv_path_NM"
5529 else
5530 # Didn't find any BSD compatible name lister, look for dumpbin.
5531 if test -n "$DUMPBIN"; then :
5532 # Let the user override the test.
5533 else
5534 if test -n "$ac_tool_prefix"; then
5535 for ac_prog in dumpbin "link -dump"
5536 do
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_DUMPBIN+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$DUMPBIN"; then
5545 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 DUMPBIN=$ac_cv_prog_DUMPBIN
5565 if test -n "$DUMPBIN"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5567 $as_echo "$DUMPBIN" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574 test -n "$DUMPBIN" && break
5575 done
5576 fi
5577 if test -z "$DUMPBIN"; then
5578 ac_ct_DUMPBIN=$DUMPBIN
5579 for ac_prog in dumpbin "link -dump"
5580 do
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$ac_ct_DUMPBIN"; then
5589 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5609 if test -n "$ac_ct_DUMPBIN"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5611 $as_echo "$ac_ct_DUMPBIN" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618 test -n "$ac_ct_DUMPBIN" && break
5619 done
5620
5621 if test "x$ac_ct_DUMPBIN" = x; then
5622 DUMPBIN=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 DUMPBIN=$ac_ct_DUMPBIN
5631 fi
5632 fi
5633
5634 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5635 *COFF*)
5636 DUMPBIN="$DUMPBIN -symbols"
5637 ;;
5638 *)
5639 DUMPBIN=:
5640 ;;
5641 esac
5642 fi
5643
5644 if test "$DUMPBIN" != ":"; then
5645 NM="$DUMPBIN"
5646 fi
5647 fi
5648 test -z "$NM" && NM=nm
5649
5650
5651
5652
5653
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5656 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5657 if ${lt_cv_nm_interface+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 lt_cv_nm_interface="BSD nm"
5661 echo "int some_variable = 0;" > conftest.$ac_ext
5662 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5663 (eval "$ac_compile" 2>conftest.err)
5664 cat conftest.err >&5
5665 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5666 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5667 cat conftest.err >&5
5668 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5669 cat conftest.out >&5
5670 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5671 lt_cv_nm_interface="MS dumpbin"
5672 fi
5673 rm -f conftest*
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5676 $as_echo "$lt_cv_nm_interface" >&6; }
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5679 $as_echo_n "checking whether ln -s works... " >&6; }
5680 LN_S=$as_ln_s
5681 if test "$LN_S" = "ln -s"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683 $as_echo "yes" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5686 $as_echo "no, using $LN_S" >&6; }
5687 fi
5688
5689 # find the maximum length of command line arguments
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5691 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5692 if ${lt_cv_sys_max_cmd_len+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 i=0
5696 teststring="ABCD"
5697
5698 case $build_os in
5699 msdosdjgpp*)
5700 # On DJGPP, this test can blow up pretty badly due to problems in libc
5701 # (any single argument exceeding 2000 bytes causes a buffer overrun
5702 # during glob expansion). Even if it were fixed, the result of this
5703 # check would be larger than it should be.
5704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5705 ;;
5706
5707 gnu*)
5708 # Under GNU Hurd, this test is not required because there is
5709 # no limit to the length of command line arguments.
5710 # Libtool will interpret -1 as no limit whatsoever
5711 lt_cv_sys_max_cmd_len=-1;
5712 ;;
5713
5714 cygwin* | mingw* | cegcc*)
5715 # On Win9x/ME, this test blows up -- it succeeds, but takes
5716 # about 5 minutes as the teststring grows exponentially.
5717 # Worse, since 9x/ME are not pre-emptively multitasking,
5718 # you end up with a "frozen" computer, even though with patience
5719 # the test eventually succeeds (with a max line length of 256k).
5720 # Instead, let's just punt: use the minimum linelength reported by
5721 # all of the supported platforms: 8192 (on NT/2K/XP).
5722 lt_cv_sys_max_cmd_len=8192;
5723 ;;
5724
5725 mint*)
5726 # On MiNT this can take a long time and run out of memory.
5727 lt_cv_sys_max_cmd_len=8192;
5728 ;;
5729
5730 amigaos*)
5731 # On AmigaOS with pdksh, this test takes hours, literally.
5732 # So we just punt and use a minimum line length of 8192.
5733 lt_cv_sys_max_cmd_len=8192;
5734 ;;
5735
5736 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5737 # This has been around since 386BSD, at least. Likely further.
5738 if test -x /sbin/sysctl; then
5739 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5740 elif test -x /usr/sbin/sysctl; then
5741 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5742 else
5743 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5744 fi
5745 # And add a safety zone
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5748 ;;
5749
5750 interix*)
5751 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5752 lt_cv_sys_max_cmd_len=196608
5753 ;;
5754
5755 osf*)
5756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5758 # nice to cause kernel panics so lets avoid the loop below.
5759 # First set a reasonable default.
5760 lt_cv_sys_max_cmd_len=16384
5761 #
5762 if test -x /sbin/sysconfig; then
5763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5764 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5765 esac
5766 fi
5767 ;;
5768 sco3.2v5*)
5769 lt_cv_sys_max_cmd_len=102400
5770 ;;
5771 sysv5* | sco5v6* | sysv4.2uw2*)
5772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5773 if test -n "$kargmax"; then
5774 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5775 else
5776 lt_cv_sys_max_cmd_len=32768
5777 fi
5778 ;;
5779 *)
5780 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5781 if test -n "$lt_cv_sys_max_cmd_len"; then
5782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5784 else
5785 # Make teststring a little bigger before we do anything with it.
5786 # a 1K string should be a reasonable start.
5787 for i in 1 2 3 4 5 6 7 8 ; do
5788 teststring=$teststring$teststring
5789 done
5790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5791 # If test is not a shell built-in, we'll probably end up computing a
5792 # maximum length that is only half of the actual maximum length, but
5793 # we can't tell.
5794 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5795 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5796 test $i != 17 # 1/2 MB should be enough
5797 do
5798 i=`expr $i + 1`
5799 teststring=$teststring$teststring
5800 done
5801 # Only check the string length outside the loop.
5802 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5803 teststring=
5804 # Add a significant safety factor because C++ compilers can tack on
5805 # massive amounts of additional arguments before passing them to the
5806 # linker. It appears as though 1/2 is a usable value.
5807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5808 fi
5809 ;;
5810 esac
5811
5812 fi
5813
5814 if test -n $lt_cv_sys_max_cmd_len ; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5816 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5819 $as_echo "none" >&6; }
5820 fi
5821 max_cmd_len=$lt_cv_sys_max_cmd_len
5822
5823
5824
5825
5826
5827
5828 : ${CP="cp -f"}
5829 : ${MV="mv -f"}
5830 : ${RM="rm -f"}
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5833 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5834 # Try some XSI features
5835 xsi_shell=no
5836 ( _lt_dummy="a/b/c"
5837 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5838 = c,a/b,b/c, \
5839 && eval 'test $(( 1 + 1 )) -eq 2 \
5840 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5841 && xsi_shell=yes
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5843 $as_echo "$xsi_shell" >&6; }
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5847 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5848 lt_shell_append=no
5849 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5850 >/dev/null 2>&1 \
5851 && lt_shell_append=yes
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5853 $as_echo "$lt_shell_append" >&6; }
5854
5855
5856 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5857 lt_unset=unset
5858 else
5859 lt_unset=false
5860 fi
5861
5862
5863
5864
5865
5866 # test EBCDIC or ASCII
5867 case `echo X|tr X '\101'` in
5868 A) # ASCII based system
5869 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5870 lt_SP2NL='tr \040 \012'
5871 lt_NL2SP='tr \015\012 \040\040'
5872 ;;
5873 *) # EBCDIC based system
5874 lt_SP2NL='tr \100 \n'
5875 lt_NL2SP='tr \r\n \100\100'
5876 ;;
5877 esac
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5888 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5889 if ${lt_cv_to_host_file_cmd+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 case $host in
5893 *-*-mingw* )
5894 case $build in
5895 *-*-mingw* ) # actually msys
5896 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5897 ;;
5898 *-*-cygwin* )
5899 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5900 ;;
5901 * ) # otherwise, assume *nix
5902 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5903 ;;
5904 esac
5905 ;;
5906 *-*-cygwin* )
5907 case $build in
5908 *-*-mingw* ) # actually msys
5909 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5910 ;;
5911 *-*-cygwin* )
5912 lt_cv_to_host_file_cmd=func_convert_file_noop
5913 ;;
5914 * ) # otherwise, assume *nix
5915 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5916 ;;
5917 esac
5918 ;;
5919 * ) # unhandled hosts (and "normal" native builds)
5920 lt_cv_to_host_file_cmd=func_convert_file_noop
5921 ;;
5922 esac
5923
5924 fi
5925
5926 to_host_file_cmd=$lt_cv_to_host_file_cmd
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5928 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5929
5930
5931
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5935 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5936 if ${lt_cv_to_tool_file_cmd+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 #assume ordinary cross tools, or native build.
5940 lt_cv_to_tool_file_cmd=func_convert_file_noop
5941 case $host in
5942 *-*-mingw* )
5943 case $build in
5944 *-*-mingw* ) # actually msys
5945 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5946 ;;
5947 esac
5948 ;;
5949 esac
5950
5951 fi
5952
5953 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5955 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5956
5957
5958
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5962 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5963 if ${lt_cv_ld_reload_flag+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 lt_cv_ld_reload_flag='-r'
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5969 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5970 reload_flag=$lt_cv_ld_reload_flag
5971 case $reload_flag in
5972 "" | " "*) ;;
5973 *) reload_flag=" $reload_flag" ;;
5974 esac
5975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5976 case $host_os in
5977 cygwin* | mingw* | pw32* | cegcc*)
5978 if test "$GCC" != yes; then
5979 reload_cmds=false
5980 fi
5981 ;;
5982 darwin*)
5983 if test "$GCC" = yes; then
5984 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5985 else
5986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5987 fi
5988 ;;
5989 esac
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_OBJDUMP+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$OBJDUMP"; then
6008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 OBJDUMP=$ac_cv_prog_OBJDUMP
6028 if test -n "$OBJDUMP"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6030 $as_echo "$OBJDUMP" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036
6037 fi
6038 if test -z "$ac_cv_prog_OBJDUMP"; then
6039 ac_ct_OBJDUMP=$OBJDUMP
6040 # Extract the first word of "objdump", so it can be a program name with args.
6041 set dummy objdump; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if test -n "$ac_ct_OBJDUMP"; then
6048 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6068 if test -n "$ac_ct_OBJDUMP"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6070 $as_echo "$ac_ct_OBJDUMP" >&6; }
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075
6076 if test "x$ac_ct_OBJDUMP" = x; then
6077 OBJDUMP="false"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 OBJDUMP=$ac_ct_OBJDUMP
6086 fi
6087 else
6088 OBJDUMP="$ac_cv_prog_OBJDUMP"
6089 fi
6090
6091 test -z "$OBJDUMP" && OBJDUMP=objdump
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6102 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6103 if ${lt_cv_deplibs_check_method+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 lt_cv_file_magic_cmd='$MAGIC_CMD'
6107 lt_cv_file_magic_test_file=
6108 lt_cv_deplibs_check_method='unknown'
6109 # Need to set the preceding variable on all platforms that support
6110 # interlibrary dependencies.
6111 # 'none' -- dependencies not supported.
6112 # `unknown' -- same as none, but documents that we really don't know.
6113 # 'pass_all' -- all dependencies passed with no checks.
6114 # 'test_compile' -- check by making test program.
6115 # 'file_magic [[regex]]' -- check by looking for files in library path
6116 # which responds to the $file_magic_cmd with a given extended regex.
6117 # If you have `file' or equivalent on your system and you're not sure
6118 # whether `pass_all' will *always* work, you probably want this one.
6119
6120 case $host_os in
6121 aix[4-9]*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 beos*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 bsdi[45]*)
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6131 lt_cv_file_magic_cmd='/usr/bin/file -L'
6132 lt_cv_file_magic_test_file=/shlib/libc.so
6133 ;;
6134
6135 cygwin*)
6136 # func_win32_libid is a shell function defined in ltmain.sh
6137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6138 lt_cv_file_magic_cmd='func_win32_libid'
6139 ;;
6140
6141 mingw* | pw32*)
6142 # Base MSYS/MinGW do not provide the 'file' command needed by
6143 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6144 # unless we find 'file', for example because we are cross-compiling.
6145 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6146 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148 lt_cv_file_magic_cmd='func_win32_libid'
6149 else
6150 # Keep this pattern in sync with the one in func_win32_libid.
6151 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6152 lt_cv_file_magic_cmd='$OBJDUMP -f'
6153 fi
6154 ;;
6155
6156 cegcc*)
6157 # use the weaker test based on 'objdump'. See mingw*.
6158 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6159 lt_cv_file_magic_cmd='$OBJDUMP -f'
6160 ;;
6161
6162 darwin* | rhapsody*)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165
6166 freebsd* | dragonfly*)
6167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168 case $host_cpu in
6169 i*86 )
6170 # Not sure whether the presence of OpenBSD here was a mistake.
6171 # Let's accept both of them until this is cleared up.
6172 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6173 lt_cv_file_magic_cmd=/usr/bin/file
6174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6175 ;;
6176 esac
6177 else
6178 lt_cv_deplibs_check_method=pass_all
6179 fi
6180 ;;
6181
6182 gnu*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185
6186 haiku*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 hpux10.20* | hpux11*)
6191 lt_cv_file_magic_cmd=/usr/bin/file
6192 case $host_cpu in
6193 ia64*)
6194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6195 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6196 ;;
6197 hppa*64*)
6198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6199 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6200 ;;
6201 *)
6202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6203 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6204 ;;
6205 esac
6206 ;;
6207
6208 interix[3-9]*)
6209 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6211 ;;
6212
6213 irix5* | irix6* | nonstopux*)
6214 case $LD in
6215 *-32|*"-32 ") libmagic=32-bit;;
6216 *-n32|*"-n32 ") libmagic=N32;;
6217 *-64|*"-64 ") libmagic=64-bit;;
6218 *) libmagic=never-match;;
6219 esac
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 # This must be Linux ELF.
6224 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228 netbsd* | netbsdelf*-gnu)
6229 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6231 else
6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6233 fi
6234 ;;
6235
6236 newos6*)
6237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6238 lt_cv_file_magic_cmd=/usr/bin/file
6239 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6240 ;;
6241
6242 *nto* | *qnx*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246 openbsd*)
6247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6249 else
6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6251 fi
6252 ;;
6253
6254 osf3* | osf4* | osf5*)
6255 lt_cv_deplibs_check_method=pass_all
6256 ;;
6257
6258 rdos*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 solaris*)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265
6266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6267 lt_cv_deplibs_check_method=pass_all
6268 ;;
6269
6270 sysv4 | sysv4.3*)
6271 case $host_vendor in
6272 motorola)
6273 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]'
6274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6275 ;;
6276 ncr)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279 sequent)
6280 lt_cv_file_magic_cmd='/bin/file'
6281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6282 ;;
6283 sni)
6284 lt_cv_file_magic_cmd='/bin/file'
6285 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6286 lt_cv_file_magic_test_file=/lib/libc.so
6287 ;;
6288 siemens)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291 pc)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294 esac
6295 ;;
6296
6297 tpf*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300 esac
6301
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6304 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6305
6306 file_magic_glob=
6307 want_nocaseglob=no
6308 if test "$build" = "$host"; then
6309 case $host_os in
6310 mingw* | pw32*)
6311 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6312 want_nocaseglob=yes
6313 else
6314 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6315 fi
6316 ;;
6317 esac
6318 fi
6319
6320 file_magic_cmd=$lt_cv_file_magic_cmd
6321 deplibs_check_method=$lt_cv_deplibs_check_method
6322 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_DLLTOOL+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$DLLTOOL"; then
6354 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 DLLTOOL=$ac_cv_prog_DLLTOOL
6374 if test -n "$DLLTOOL"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6376 $as_echo "$DLLTOOL" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_DLLTOOL"; then
6385 ac_ct_DLLTOOL=$DLLTOOL
6386 # Extract the first word of "dlltool", so it can be a program name with args.
6387 set dummy dlltool; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_DLLTOOL"; then
6394 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6414 if test -n "$ac_ct_DLLTOOL"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6416 $as_echo "$ac_ct_DLLTOOL" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422 if test "x$ac_ct_DLLTOOL" = x; then
6423 DLLTOOL="false"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 DLLTOOL=$ac_ct_DLLTOOL
6432 fi
6433 else
6434 DLLTOOL="$ac_cv_prog_DLLTOOL"
6435 fi
6436
6437 test -z "$DLLTOOL" && DLLTOOL=dlltool
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6449 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6450 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 lt_cv_sharedlib_from_linklib_cmd='unknown'
6454
6455 case $host_os in
6456 cygwin* | mingw* | pw32* | cegcc*)
6457 # two different shell functions defined in ltmain.sh
6458 # decide which to use based on capabilities of $DLLTOOL
6459 case `$DLLTOOL --help 2>&1` in
6460 *--identify-strict*)
6461 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6462 ;;
6463 *)
6464 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6465 ;;
6466 esac
6467 ;;
6468 *)
6469 # fallback: assume linklib IS sharedlib
6470 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6471 ;;
6472 esac
6473
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6476 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6477 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6478 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488 for ac_prog in ar
6489 do
6490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_AR+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$AR"; then
6498 ac_cv_prog_AR="$AR" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 AR=$ac_cv_prog_AR
6518 if test -n "$AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6520 $as_echo "$AR" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526
6527 test -n "$AR" && break
6528 done
6529 fi
6530 if test -z "$AR"; then
6531 ac_ct_AR=$AR
6532 for ac_prog in ar
6533 do
6534 # Extract the first word of "$ac_prog", so it can be a program name with args.
6535 set dummy $ac_prog; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$ac_ct_AR"; then
6542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_ac_ct_AR="$ac_prog"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562 if test -n "$ac_ct_AR"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564 $as_echo "$ac_ct_AR" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 test -n "$ac_ct_AR" && break
6572 done
6573
6574 if test "x$ac_ct_AR" = x; then
6575 AR="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583 AR=$ac_ct_AR
6584 fi
6585 fi
6586
6587 : ${AR=ar}
6588 : ${AR_FLAGS=cru}
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6601 $as_echo_n "checking for archiver @FILE support... " >&6; }
6602 if ${lt_cv_ar_at_file+:} false; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 lt_cv_ar_at_file=no
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main ()
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 echo conftest.$ac_objext > conftest.lst
6619 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621 (eval $lt_ar_try) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
6625 if test "$ac_status" -eq 0; then
6626 # Ensure the archiver fails upon bogus file names.
6627 rm -f conftest.$ac_objext libconftest.a
6628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6629 (eval $lt_ar_try) 2>&5
6630 ac_status=$?
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }
6633 if test "$ac_status" -ne 0; then
6634 lt_cv_ar_at_file=@
6635 fi
6636 fi
6637 rm -f conftest.* libconftest.a
6638
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6644 $as_echo "$lt_cv_ar_at_file" >&6; }
6645
6646 if test "x$lt_cv_ar_at_file" = xno; then
6647 archiver_list_spec=
6648 else
6649 archiver_list_spec=$lt_cv_ar_at_file
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658 if test -n "$ac_tool_prefix"; then
6659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}strip; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_STRIP+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$STRIP"; then
6667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 STRIP=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6689 $as_echo "$STRIP" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696 fi
6697 if test -z "$ac_cv_prog_STRIP"; then
6698 ac_ct_STRIP=$STRIP
6699 # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$ac_ct_STRIP"; then
6707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_STRIP="strip"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6727 if test -n "$ac_ct_STRIP"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6729 $as_echo "$ac_ct_STRIP" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735 if test "x$ac_ct_STRIP" = x; then
6736 STRIP=":"
6737 else
6738 case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744 STRIP=$ac_ct_STRIP
6745 fi
6746 else
6747 STRIP="$ac_cv_prog_STRIP"
6748 fi
6749
6750 test -z "$STRIP" && STRIP=:
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_RANLIB+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$RANLIB"; then
6766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 RANLIB=$ac_cv_prog_RANLIB
6786 if test -n "$RANLIB"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6788 $as_echo "$RANLIB" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_RANLIB"; then
6797 ac_ct_RANLIB=$RANLIB
6798 # Extract the first word of "ranlib", so it can be a program name with args.
6799 set dummy ranlib; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_RANLIB"; then
6806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_RANLIB="ranlib"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826 if test -n "$ac_ct_RANLIB"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6828 $as_echo "$ac_ct_RANLIB" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834 if test "x$ac_ct_RANLIB" = x; then
6835 RANLIB=":"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 RANLIB=$ac_ct_RANLIB
6844 fi
6845 else
6846 RANLIB="$ac_cv_prog_RANLIB"
6847 fi
6848
6849 test -z "$RANLIB" && RANLIB=:
6850
6851
6852
6853
6854
6855
6856 # Determine commands to create old-style static archives.
6857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6858 old_postinstall_cmds='chmod 644 $oldlib'
6859 old_postuninstall_cmds=
6860
6861 if test -n "$RANLIB"; then
6862 case $host_os in
6863 openbsd*)
6864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6865 ;;
6866 *)
6867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6868 ;;
6869 esac
6870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 fi
6872
6873 case $host_os in
6874 darwin*)
6875 lock_old_archive_extraction=yes ;;
6876 *)
6877 lock_old_archive_extraction=no ;;
6878 esac
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 # If no C compiler was specified, use CC.
6919 LTCC=${LTCC-"$CC"}
6920
6921 # If no C compiler flags were specified, use CFLAGS.
6922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6923
6924 # Allow CC to be a program name with arguments.
6925 compiler=$CC
6926
6927
6928 # Check for command to grab the raw symbol name followed by C symbol from nm.
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6930 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6931 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934
6935 # These are sane defaults that work on at least a few old systems.
6936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6937
6938 # Character class describing NM global symbol codes.
6939 symcode='[BCDEGRST]'
6940
6941 # Regexp to match symbols that can be accessed directly from C.
6942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944 # Define system-specific variables.
6945 case $host_os in
6946 aix*)
6947 symcode='[BCDT]'
6948 ;;
6949 cygwin* | mingw* | pw32* | cegcc*)
6950 symcode='[ABCDGISTW]'
6951 ;;
6952 hpux*)
6953 if test "$host_cpu" = ia64; then
6954 symcode='[ABCDEGRST]'
6955 fi
6956 ;;
6957 irix* | nonstopux*)
6958 symcode='[BCDEGRST]'
6959 ;;
6960 osf*)
6961 symcode='[BCDEGQRST]'
6962 ;;
6963 solaris*)
6964 symcode='[BDRT]'
6965 ;;
6966 sco3.2v5*)
6967 symcode='[DT]'
6968 ;;
6969 sysv4.2uw2*)
6970 symcode='[DT]'
6971 ;;
6972 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973 symcode='[ABDT]'
6974 ;;
6975 sysv4)
6976 symcode='[DFNSTU]'
6977 ;;
6978 esac
6979
6980 # If we're using GNU nm, then use its standard symbol codes.
6981 case `$NM -V 2>&1` in
6982 *GNU* | *'with BFD'*)
6983 symcode='[ABCDGIRSTW]' ;;
6984 esac
6985
6986 # Transform an extracted symbol line into a proper C declaration.
6987 # Some systems (esp. on ia64) link data and code symbols differently,
6988 # so use this general approach.
6989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6990
6991 # Transform an extracted symbol line into symbol name and symbol address
6992 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6993 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'"
6994
6995 # Handle CRLF in mingw tool chain
6996 opt_cr=
6997 case $build_os in
6998 mingw*)
6999 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7000 ;;
7001 esac
7002
7003 # Try without a prefix underscore, then with it.
7004 for ac_symprfx in "" "_"; do
7005
7006 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7007 symxfrm="\\1 $ac_symprfx\\2 \\2"
7008
7009 # Write the raw and C identifiers.
7010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7011 # Fake it for dumpbin and say T for any non-static function
7012 # and D for any global variable.
7013 # Also find C++ and __fastcall symbols from MSVC++,
7014 # which start with @ or ?.
7015 lt_cv_sys_global_symbol_pipe="$AWK '"\
7016 " {last_section=section; section=\$ 3};"\
7017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7018 " \$ 0!~/External *\|/{next};"\
7019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7020 " {if(hide[section]) next};"\
7021 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7022 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7023 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7024 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7025 " ' prfx=^$ac_symprfx"
7026 else
7027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7028 fi
7029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7030
7031 # Check to see that the pipe works correctly.
7032 pipe_works=no
7033
7034 rm -f conftest*
7035 cat > conftest.$ac_ext <<_LT_EOF
7036 #ifdef __cplusplus
7037 extern "C" {
7038 #endif
7039 char nm_test_var;
7040 void nm_test_func(void);
7041 void nm_test_func(void){}
7042 #ifdef __cplusplus
7043 }
7044 #endif
7045 int main(){nm_test_var='a';nm_test_func();return(0);}
7046 _LT_EOF
7047
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 # Now try to grab the symbols.
7054 nlist=conftest.nm
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; } && test -s "$nlist"; then
7060 # Try sorting and uniquifying the output.
7061 if sort "$nlist" | uniq > "$nlist"T; then
7062 mv -f "$nlist"T "$nlist"
7063 else
7064 rm -f "$nlist"T
7065 fi
7066
7067 # Make sure that we snagged all the symbols we need.
7068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7070 cat <<_LT_EOF > conftest.$ac_ext
7071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7072 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7073 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7074 relocations are performed -- see ld's documentation on pseudo-relocs. */
7075 # define LT_DLSYM_CONST
7076 #elif defined(__osf__)
7077 /* This system does not cope well with relocations in const data. */
7078 # define LT_DLSYM_CONST
7079 #else
7080 # define LT_DLSYM_CONST const
7081 #endif
7082
7083 #ifdef __cplusplus
7084 extern "C" {
7085 #endif
7086
7087 _LT_EOF
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7090
7091 cat <<_LT_EOF >> conftest.$ac_ext
7092
7093 /* The mapping between symbol names and symbols. */
7094 LT_DLSYM_CONST struct {
7095 const char *name;
7096 void *address;
7097 }
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7099 {
7100 { "@PROGRAM@", (void *) 0 },
7101 _LT_EOF
7102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7104 {0, (void *) 0}
7105 };
7106
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7111 }
7112 #endif
7113
7114 #ifdef __cplusplus
7115 }
7116 #endif
7117 _LT_EOF
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_globsym_save_LIBS=$LIBS
7121 lt_globsym_save_CFLAGS=$CFLAGS
7122 LIBS="conftstm.$ac_objext"
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7125 (eval $ac_link) 2>&5
7126 ac_status=$?
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7129 pipe_works=yes
7130 fi
7131 LIBS=$lt_globsym_save_LIBS
7132 CFLAGS=$lt_globsym_save_CFLAGS
7133 else
7134 echo "cannot find nm_test_func in $nlist" >&5
7135 fi
7136 else
7137 echo "cannot find nm_test_var in $nlist" >&5
7138 fi
7139 else
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7141 fi
7142 else
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7145 fi
7146 rm -rf conftest* conftst*
7147
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test "$pipe_works" = yes; then
7150 break
7151 else
7152 lt_cv_sys_global_symbol_pipe=
7153 fi
7154 done
7155
7156 fi
7157
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7160 fi
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7163 $as_echo "failed" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7166 $as_echo "ok" >&6; }
7167 fi
7168
7169 # Response file support.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 nm_file_list_spec='@'
7172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7173 nm_file_list_spec='@'
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7203 $as_echo_n "checking for sysroot... " >&6; }
7204
7205 # Check whether --with-sysroot was given.
7206 if test "${with_sysroot+set}" = set; then :
7207 withval=$with_sysroot;
7208 else
7209 with_sysroot=no
7210 fi
7211
7212
7213 lt_sysroot=
7214 case ${with_sysroot} in #(
7215 yes)
7216 if test "$GCC" = yes; then
7217 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7218 fi
7219 ;; #(
7220 /*)
7221 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7222 ;; #(
7223 no|'')
7224 ;; #(
7225 *)
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7227 $as_echo "${with_sysroot}" >&6; }
7228 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7229 ;;
7230 esac
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7233 $as_echo "${lt_sysroot:-no}" >&6; }
7234
7235
7236
7237
7238
7239 # Check whether --enable-libtool-lock was given.
7240 if test "${enable_libtool_lock+set}" = set; then :
7241 enableval=$enable_libtool_lock;
7242 fi
7243
7244 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7245
7246 # Some flags need to be propagated to the compiler or linker for good
7247 # libtool support.
7248 case $host in
7249 ia64-*-hpux*)
7250 # Find out which ABI we are using.
7251 echo 'int i;' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *ELF-32*)
7259 HPUX_IA64_MODE="32"
7260 ;;
7261 *ELF-64*)
7262 HPUX_IA64_MODE="64"
7263 ;;
7264 esac
7265 fi
7266 rm -rf conftest*
7267 ;;
7268 *-*-irix6*)
7269 # Find out which ABI we are using.
7270 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7272 (eval $ac_compile) 2>&5
7273 ac_status=$?
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; }; then
7276 if test "$lt_cv_prog_gnu_ld" = yes; then
7277 case `/usr/bin/file conftest.$ac_objext` in
7278 *32-bit*)
7279 LD="${LD-ld} -melf32bsmip"
7280 ;;
7281 *N32*)
7282 LD="${LD-ld} -melf32bmipn32"
7283 ;;
7284 *64-bit*)
7285 LD="${LD-ld} -melf64bmip"
7286 ;;
7287 esac
7288 else
7289 case `/usr/bin/file conftest.$ac_objext` in
7290 *32-bit*)
7291 LD="${LD-ld} -32"
7292 ;;
7293 *N32*)
7294 LD="${LD-ld} -n32"
7295 ;;
7296 *64-bit*)
7297 LD="${LD-ld} -64"
7298 ;;
7299 esac
7300 fi
7301 fi
7302 rm -rf conftest*
7303 ;;
7304
7305 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7306 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7307 # Find out which ABI we are using.
7308 echo 'int i;' > conftest.$ac_ext
7309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7310 (eval $ac_compile) 2>&5
7311 ac_status=$?
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 case `/usr/bin/file conftest.o` in
7315 *32-bit*)
7316 case $host in
7317 x86_64-*kfreebsd*-gnu)
7318 LD="${LD-ld} -m elf_i386_fbsd"
7319 ;;
7320 x86_64-*linux*)
7321 LD="${LD-ld} -m elf_i386"
7322 ;;
7323 ppc64-*linux*|powerpc64-*linux*)
7324 LD="${LD-ld} -m elf32ppclinux"
7325 ;;
7326 s390x-*linux*)
7327 LD="${LD-ld} -m elf_s390"
7328 ;;
7329 sparc64-*linux*)
7330 LD="${LD-ld} -m elf32_sparc"
7331 ;;
7332 esac
7333 ;;
7334 *64-bit*)
7335 case $host in
7336 x86_64-*kfreebsd*-gnu)
7337 LD="${LD-ld} -m elf_x86_64_fbsd"
7338 ;;
7339 x86_64-*linux*)
7340 LD="${LD-ld} -m elf_x86_64"
7341 ;;
7342 ppc*-*linux*|powerpc*-*linux*)
7343 LD="${LD-ld} -m elf64ppc"
7344 ;;
7345 s390*-*linux*|s390*-*tpf*)
7346 LD="${LD-ld} -m elf64_s390"
7347 ;;
7348 sparc*-*linux*)
7349 LD="${LD-ld} -m elf64_sparc"
7350 ;;
7351 esac
7352 ;;
7353 esac
7354 fi
7355 rm -rf conftest*
7356 ;;
7357
7358 *-*-sco3.2v5*)
7359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7360 SAVE_CFLAGS="$CFLAGS"
7361 CFLAGS="$CFLAGS -belf"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7363 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7364 if ${lt_cv_cc_needs_belf+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375
7376 int
7377 main ()
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"; then :
7385 lt_cv_cc_needs_belf=yes
7386 else
7387 lt_cv_cc_needs_belf=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 ac_ext=c
7392 ac_cpp='$CPP $CPPFLAGS'
7393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7396
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7399 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7400 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7401 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7402 CFLAGS="$SAVE_CFLAGS"
7403 fi
7404 ;;
7405 sparc*-*solaris*)
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.o` in
7414 *64-bit*)
7415 case $lt_cv_prog_gnu_ld in
7416 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7417 *)
7418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7419 LD="${LD-ld} -64"
7420 fi
7421 ;;
7422 esac
7423 ;;
7424 esac
7425 fi
7426 rm -rf conftest*
7427 ;;
7428 esac
7429
7430 need_locks="$enable_libtool_lock"
7431
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}mt; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$MANIFEST_TOOL"; then
7441 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7461 if test -n "$MANIFEST_TOOL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7463 $as_echo "$MANIFEST_TOOL" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7472 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7473 # Extract the first word of "mt", so it can be a program name with args.
7474 set dummy mt; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$ac_ct_MANIFEST_TOOL"; then
7481 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7501 if test -n "$ac_ct_MANIFEST_TOOL"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7503 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7510 MANIFEST_TOOL=":"
7511 else
7512 case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7519 fi
7520 else
7521 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7522 fi
7523
7524 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7526 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7527 if ${lt_cv_path_mainfest_tool+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 lt_cv_path_mainfest_tool=no
7531 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7532 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7533 cat conftest.err >&5
7534 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7535 lt_cv_path_mainfest_tool=yes
7536 fi
7537 rm -f conftest*
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7540 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7541 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7542 MANIFEST_TOOL=:
7543 fi
7544
7545
7546
7547
7548
7549
7550 case $host_os in
7551 rhapsody* | darwin*)
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$DSYMUTIL"; then
7561 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7581 if test -n "$DSYMUTIL"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7583 $as_echo "$DSYMUTIL" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589
7590 fi
7591 if test -z "$ac_cv_prog_DSYMUTIL"; then
7592 ac_ct_DSYMUTIL=$DSYMUTIL
7593 # Extract the first word of "dsymutil", so it can be a program name with args.
7594 set dummy dsymutil; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_DSYMUTIL"; then
7601 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7621 if test -n "$ac_ct_DSYMUTIL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7623 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629 if test "x$ac_ct_DSYMUTIL" = x; then
7630 DSYMUTIL=":"
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638 DSYMUTIL=$ac_ct_DSYMUTIL
7639 fi
7640 else
7641 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7642 fi
7643
7644 if test -n "$ac_tool_prefix"; then
7645 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_NMEDIT+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 if test -n "$NMEDIT"; then
7653 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 NMEDIT=$ac_cv_prog_NMEDIT
7673 if test -n "$NMEDIT"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7675 $as_echo "$NMEDIT" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681
7682 fi
7683 if test -z "$ac_cv_prog_NMEDIT"; then
7684 ac_ct_NMEDIT=$NMEDIT
7685 # Extract the first word of "nmedit", so it can be a program name with args.
7686 set dummy nmedit; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 if test -n "$ac_ct_NMEDIT"; then
7693 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7713 if test -n "$ac_ct_NMEDIT"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7715 $as_echo "$ac_ct_NMEDIT" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721 if test "x$ac_ct_NMEDIT" = x; then
7722 NMEDIT=":"
7723 else
7724 case $cross_compiling:$ac_tool_warned in
7725 yes:)
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728 ac_tool_warned=yes ;;
7729 esac
7730 NMEDIT=$ac_ct_NMEDIT
7731 fi
7732 else
7733 NMEDIT="$ac_cv_prog_NMEDIT"
7734 fi
7735
7736 if test -n "$ac_tool_prefix"; then
7737 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7738 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_LIPO+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$LIPO"; then
7745 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 LIPO=$ac_cv_prog_LIPO
7765 if test -n "$LIPO"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7767 $as_echo "$LIPO" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773
7774 fi
7775 if test -z "$ac_cv_prog_LIPO"; then
7776 ac_ct_LIPO=$LIPO
7777 # Extract the first word of "lipo", so it can be a program name with args.
7778 set dummy lipo; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$ac_ct_LIPO"; then
7785 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_ac_ct_LIPO="lipo"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798 done
7799 done
7800 IFS=$as_save_IFS
7801
7802 fi
7803 fi
7804 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7805 if test -n "$ac_ct_LIPO"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7807 $as_echo "$ac_ct_LIPO" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813 if test "x$ac_ct_LIPO" = x; then
7814 LIPO=":"
7815 else
7816 case $cross_compiling:$ac_tool_warned in
7817 yes:)
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7821 esac
7822 LIPO=$ac_ct_LIPO
7823 fi
7824 else
7825 LIPO="$ac_cv_prog_LIPO"
7826 fi
7827
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}otool; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_OTOOL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$OTOOL"; then
7837 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 OTOOL=$ac_cv_prog_OTOOL
7857 if test -n "$OTOOL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7859 $as_echo "$OTOOL" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 fi
7867 if test -z "$ac_cv_prog_OTOOL"; then
7868 ac_ct_OTOOL=$OTOOL
7869 # Extract the first word of "otool", so it can be a program name with args.
7870 set dummy otool; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$ac_ct_OTOOL"; then
7877 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_prog_ac_ct_OTOOL="otool"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890 done
7891 done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7897 if test -n "$ac_ct_OTOOL"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7899 $as_echo "$ac_ct_OTOOL" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7903 fi
7904
7905 if test "x$ac_ct_OTOOL" = x; then
7906 OTOOL=":"
7907 else
7908 case $cross_compiling:$ac_tool_warned in
7909 yes:)
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7913 esac
7914 OTOOL=$ac_ct_OTOOL
7915 fi
7916 else
7917 OTOOL="$ac_cv_prog_OTOOL"
7918 fi
7919
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_OTOOL64+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$OTOOL64"; then
7929 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 OTOOL64=$ac_cv_prog_OTOOL64
7949 if test -n "$OTOOL64"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7951 $as_echo "$OTOOL64" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958 fi
7959 if test -z "$ac_cv_prog_OTOOL64"; then
7960 ac_ct_OTOOL64=$OTOOL64
7961 # Extract the first word of "otool64", so it can be a program name with args.
7962 set dummy otool64; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_OTOOL64"; then
7969 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_prog_ac_ct_OTOOL64="otool64"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7989 if test -n "$ac_ct_OTOOL64"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7991 $as_echo "$ac_ct_OTOOL64" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997 if test "x$ac_ct_OTOOL64" = x; then
7998 OTOOL64=":"
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 OTOOL64=$ac_ct_OTOOL64
8007 fi
8008 else
8009 OTOOL64="$ac_cv_prog_OTOOL64"
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8039 $as_echo_n "checking for -single_module linker flag... " >&6; }
8040 if ${lt_cv_apple_cc_single_mod+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 lt_cv_apple_cc_single_mod=no
8044 if test -z "${LT_MULTI_MODULE}"; then
8045 # By default we will add the -single_module flag. You can override
8046 # by either setting the environment variable LT_MULTI_MODULE
8047 # non-empty at configure time, or by adding -multi_module to the
8048 # link flags.
8049 rm -rf libconftest.dylib*
8050 echo "int foo(void){return 1;}" > conftest.c
8051 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8052 -dynamiclib -Wl,-single_module conftest.c" >&5
8053 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8054 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8055 _lt_result=$?
8056 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8057 lt_cv_apple_cc_single_mod=yes
8058 else
8059 cat conftest.err >&5
8060 fi
8061 rm -rf libconftest.dylib*
8062 rm -f conftest.*
8063 fi
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8066 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8068 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8069 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 lt_cv_ld_exported_symbols_list=no
8073 save_LDFLAGS=$LDFLAGS
8074 echo "_main" > conftest.sym
8075 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078
8079 int
8080 main ()
8081 {
8082
8083 ;
8084 return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_link "$LINENO"; then :
8088 lt_cv_ld_exported_symbols_list=yes
8089 else
8090 lt_cv_ld_exported_symbols_list=no
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext \
8093 conftest$ac_exeext conftest.$ac_ext
8094 LDFLAGS="$save_LDFLAGS"
8095
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8098 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8100 $as_echo_n "checking for -force_load linker flag... " >&6; }
8101 if ${lt_cv_ld_force_load+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 lt_cv_ld_force_load=no
8105 cat > conftest.c << _LT_EOF
8106 int forced_loaded() { return 2;}
8107 _LT_EOF
8108 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8109 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8110 echo "$AR cru libconftest.a conftest.o" >&5
8111 $AR cru libconftest.a conftest.o 2>&5
8112 echo "$RANLIB libconftest.a" >&5
8113 $RANLIB libconftest.a 2>&5
8114 cat > conftest.c << _LT_EOF
8115 int main() { return 0;}
8116 _LT_EOF
8117 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8118 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8119 _lt_result=$?
8120 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8121 lt_cv_ld_force_load=yes
8122 else
8123 cat conftest.err >&5
8124 fi
8125 rm -f conftest.err libconftest.a conftest conftest.c
8126 rm -rf conftest.dSYM
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8130 $as_echo "$lt_cv_ld_force_load" >&6; }
8131 case $host_os in
8132 rhapsody* | darwin1.[012])
8133 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8134 darwin1.*)
8135 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8136 darwin*) # darwin 5.x on
8137 # if running on 10.5 or later, the deployment target defaults
8138 # to the OS version, if on x86, and 10.4, the deployment
8139 # target defaults to 10.4. Don't you love it?
8140 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8141 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8142 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8143 10.[012]*)
8144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8145 10.*)
8146 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8147 esac
8148 ;;
8149 esac
8150 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8151 _lt_dar_single_mod='$single_module'
8152 fi
8153 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8154 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8155 else
8156 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8157 fi
8158 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8159 _lt_dsymutil='~$DSYMUTIL $lib || :'
8160 else
8161 _lt_dsymutil=
8162 fi
8163 ;;
8164 esac
8165
8166 ac_ext=c
8167 ac_cpp='$CPP $CPPFLAGS'
8168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8172 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8173 # On Suns, sometimes $CPP names a directory.
8174 if test -n "$CPP" && test -d "$CPP"; then
8175 CPP=
8176 fi
8177 if test -z "$CPP"; then
8178 if ${ac_cv_prog_CPP+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 # Double quotes because CPP needs to be expanded
8182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8183 do
8184 ac_preproc_ok=false
8185 for ac_c_preproc_warn_flag in '' yes
8186 do
8187 # Use a header file that comes with gcc, so configuring glibc
8188 # with a fresh cross-compiler works.
8189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 # <limits.h> exists even on freestanding compilers.
8191 # On the NeXT, cc -E runs the code through the compiler's parser,
8192 # not just through cpp. "Syntax error" is here to catch this case.
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #ifdef __STDC__
8196 # include <limits.h>
8197 #else
8198 # include <assert.h>
8199 #endif
8200 Syntax error
8201 _ACEOF
8202 if ac_fn_c_try_cpp "$LINENO"; then :
8203
8204 else
8205 # Broken: fails on valid input.
8206 continue
8207 fi
8208 rm -f conftest.err conftest.i conftest.$ac_ext
8209
8210 # OK, works on sane cases. Now check whether nonexistent headers
8211 # can be detected and how.
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <ac_nonexistent.h>
8215 _ACEOF
8216 if ac_fn_c_try_cpp "$LINENO"; then :
8217 # Broken: success on invalid input.
8218 continue
8219 else
8220 # Passes both tests.
8221 ac_preproc_ok=:
8222 break
8223 fi
8224 rm -f conftest.err conftest.i conftest.$ac_ext
8225
8226 done
8227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8228 rm -f conftest.i conftest.err conftest.$ac_ext
8229 if $ac_preproc_ok; then :
8230 break
8231 fi
8232
8233 done
8234 ac_cv_prog_CPP=$CPP
8235
8236 fi
8237 CPP=$ac_cv_prog_CPP
8238 else
8239 ac_cv_prog_CPP=$CPP
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8242 $as_echo "$CPP" >&6; }
8243 ac_preproc_ok=false
8244 for ac_c_preproc_warn_flag in '' yes
8245 do
8246 # Use a header file that comes with gcc, so configuring glibc
8247 # with a fresh cross-compiler works.
8248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 # <limits.h> exists even on freestanding compilers.
8250 # On the NeXT, cc -E runs the code through the compiler's parser,
8251 # not just through cpp. "Syntax error" is here to catch this case.
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 #ifdef __STDC__
8255 # include <limits.h>
8256 #else
8257 # include <assert.h>
8258 #endif
8259 Syntax error
8260 _ACEOF
8261 if ac_fn_c_try_cpp "$LINENO"; then :
8262
8263 else
8264 # Broken: fails on valid input.
8265 continue
8266 fi
8267 rm -f conftest.err conftest.i conftest.$ac_ext
8268
8269 # OK, works on sane cases. Now check whether nonexistent headers
8270 # can be detected and how.
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <ac_nonexistent.h>
8274 _ACEOF
8275 if ac_fn_c_try_cpp "$LINENO"; then :
8276 # Broken: success on invalid input.
8277 continue
8278 else
8279 # Passes both tests.
8280 ac_preproc_ok=:
8281 break
8282 fi
8283 rm -f conftest.err conftest.i conftest.$ac_ext
8284
8285 done
8286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8287 rm -f conftest.i conftest.err conftest.$ac_ext
8288 if $ac_preproc_ok; then :
8289
8290 else
8291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8293 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8294 See \`config.log' for more details" "$LINENO" 5; }
8295 fi
8296
8297 ac_ext=c
8298 ac_cpp='$CPP $CPPFLAGS'
8299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8302
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8305 $as_echo_n "checking for ANSI C header files... " >&6; }
8306 if ${ac_cv_header_stdc+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 #include <stdlib.h>
8312 #include <stdarg.h>
8313 #include <string.h>
8314 #include <float.h>
8315
8316 int
8317 main ()
8318 {
8319
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"; then :
8325 ac_cv_header_stdc=yes
8326 else
8327 ac_cv_header_stdc=no
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330
8331 if test $ac_cv_header_stdc = yes; then
8332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 #include <string.h>
8336
8337 _ACEOF
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339 $EGREP "memchr" >/dev/null 2>&1; then :
8340
8341 else
8342 ac_cv_header_stdc=no
8343 fi
8344 rm -f conftest*
8345
8346 fi
8347
8348 if test $ac_cv_header_stdc = yes; then
8349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <stdlib.h>
8353
8354 _ACEOF
8355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356 $EGREP "free" >/dev/null 2>&1; then :
8357
8358 else
8359 ac_cv_header_stdc=no
8360 fi
8361 rm -f conftest*
8362
8363 fi
8364
8365 if test $ac_cv_header_stdc = yes; then
8366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8367 if test "$cross_compiling" = yes; then :
8368 :
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <ctype.h>
8373 #include <stdlib.h>
8374 #if ((' ' & 0x0FF) == 0x020)
8375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8377 #else
8378 # define ISLOWER(c) \
8379 (('a' <= (c) && (c) <= 'i') \
8380 || ('j' <= (c) && (c) <= 'r') \
8381 || ('s' <= (c) && (c) <= 'z'))
8382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8383 #endif
8384
8385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8386 int
8387 main ()
8388 {
8389 int i;
8390 for (i = 0; i < 256; i++)
8391 if (XOR (islower (i), ISLOWER (i))
8392 || toupper (i) != TOUPPER (i))
8393 return 2;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_run "$LINENO"; then :
8398
8399 else
8400 ac_cv_header_stdc=no
8401 fi
8402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8403 conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405
8406 fi
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8409 $as_echo "$ac_cv_header_stdc" >&6; }
8410 if test $ac_cv_header_stdc = yes; then
8411
8412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8413
8414 fi
8415
8416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8418 inttypes.h stdint.h unistd.h
8419 do :
8420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8422 "
8423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8424 cat >>confdefs.h <<_ACEOF
8425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8426 _ACEOF
8427
8428 fi
8429
8430 done
8431
8432
8433 for ac_header in dlfcn.h
8434 do :
8435 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8436 "
8437 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_DLFCN_H 1
8440 _ACEOF
8441
8442 fi
8443
8444 done
8445
8446
8447
8448
8449 func_stripname_cnf ()
8450 {
8451 case ${2} in
8452 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8453 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8454 esac
8455 } # func_stripname_cnf
8456
8457
8458
8459
8460
8461 # Set options
8462
8463
8464
8465 enable_dlopen=no
8466
8467
8468 enable_win32_dll=no
8469
8470
8471 # Check whether --enable-shared was given.
8472 if test "${enable_shared+set}" = set; then :
8473 enableval=$enable_shared; p=${PACKAGE-default}
8474 case $enableval in
8475 yes) enable_shared=yes ;;
8476 no) enable_shared=no ;;
8477 *)
8478 enable_shared=no
8479 # Look at the argument we got. We use all the common list separators.
8480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8481 for pkg in $enableval; do
8482 IFS="$lt_save_ifs"
8483 if test "X$pkg" = "X$p"; then
8484 enable_shared=yes
8485 fi
8486 done
8487 IFS="$lt_save_ifs"
8488 ;;
8489 esac
8490 else
8491 enable_shared=yes
8492 fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 # Check whether --enable-static was given.
8503 if test "${enable_static+set}" = set; then :
8504 enableval=$enable_static; p=${PACKAGE-default}
8505 case $enableval in
8506 yes) enable_static=yes ;;
8507 no) enable_static=no ;;
8508 *)
8509 enable_static=no
8510 # Look at the argument we got. We use all the common list separators.
8511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8512 for pkg in $enableval; do
8513 IFS="$lt_save_ifs"
8514 if test "X$pkg" = "X$p"; then
8515 enable_static=yes
8516 fi
8517 done
8518 IFS="$lt_save_ifs"
8519 ;;
8520 esac
8521 else
8522 enable_static=yes
8523 fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534 # Check whether --with-pic was given.
8535 if test "${with_pic+set}" = set; then :
8536 withval=$with_pic; pic_mode="$withval"
8537 else
8538 pic_mode=default
8539 fi
8540
8541
8542 test -z "$pic_mode" && pic_mode=default
8543
8544
8545
8546
8547
8548
8549
8550 # Check whether --enable-fast-install was given.
8551 if test "${enable_fast_install+set}" = set; then :
8552 enableval=$enable_fast_install; p=${PACKAGE-default}
8553 case $enableval in
8554 yes) enable_fast_install=yes ;;
8555 no) enable_fast_install=no ;;
8556 *)
8557 enable_fast_install=no
8558 # Look at the argument we got. We use all the common list separators.
8559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8560 for pkg in $enableval; do
8561 IFS="$lt_save_ifs"
8562 if test "X$pkg" = "X$p"; then
8563 enable_fast_install=yes
8564 fi
8565 done
8566 IFS="$lt_save_ifs"
8567 ;;
8568 esac
8569 else
8570 enable_fast_install=yes
8571 fi
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583 # This can be used to rebuild libtool when needed
8584 LIBTOOL_DEPS="$ltmain"
8585
8586 # Always use our own libtool.
8587 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614 test -z "$LN_S" && LN_S="ln -s"
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 if test -n "${ZSH_VERSION+set}" ; then
8630 setopt NO_GLOB_SUBST
8631 fi
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8634 $as_echo_n "checking for objdir... " >&6; }
8635 if ${lt_cv_objdir+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 rm -f .libs 2>/dev/null
8639 mkdir .libs 2>/dev/null
8640 if test -d .libs; then
8641 lt_cv_objdir=.libs
8642 else
8643 # MS-DOS does not allow filenames that begin with a dot.
8644 lt_cv_objdir=_libs
8645 fi
8646 rmdir .libs 2>/dev/null
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8649 $as_echo "$lt_cv_objdir" >&6; }
8650 objdir=$lt_cv_objdir
8651
8652
8653
8654
8655
8656 cat >>confdefs.h <<_ACEOF
8657 #define LT_OBJDIR "$lt_cv_objdir/"
8658 _ACEOF
8659
8660
8661
8662
8663 case $host_os in
8664 aix3*)
8665 # AIX sometimes has problems with the GCC collect2 program. For some
8666 # reason, if we set the COLLECT_NAMES environment variable, the problems
8667 # vanish in a puff of smoke.
8668 if test "X${COLLECT_NAMES+set}" != Xset; then
8669 COLLECT_NAMES=
8670 export COLLECT_NAMES
8671 fi
8672 ;;
8673 esac
8674
8675 # Global variables:
8676 ofile=libtool
8677 can_build_shared=yes
8678
8679 # All known linkers require a `.a' archive for static linking (except MSVC,
8680 # which needs '.lib').
8681 libext=a
8682
8683 with_gnu_ld="$lt_cv_prog_gnu_ld"
8684
8685 old_CC="$CC"
8686 old_CFLAGS="$CFLAGS"
8687
8688 # Set sane defaults for various variables
8689 test -z "$CC" && CC=cc
8690 test -z "$LTCC" && LTCC=$CC
8691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8692 test -z "$LD" && LD=ld
8693 test -z "$ac_objext" && ac_objext=o
8694
8695 for cc_temp in $compiler""; do
8696 case $cc_temp in
8697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8699 \-*) ;;
8700 *) break;;
8701 esac
8702 done
8703 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8704
8705
8706 # Only perform the check for file, if the check method requires it
8707 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8708 case $deplibs_check_method in
8709 file_magic*)
8710 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8712 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8713 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 case $MAGIC_CMD in
8717 [\\/*] | ?:[\\/]*)
8718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8719 ;;
8720 *)
8721 lt_save_MAGIC_CMD="$MAGIC_CMD"
8722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8724 for ac_dir in $ac_dummy; do
8725 IFS="$lt_save_ifs"
8726 test -z "$ac_dir" && ac_dir=.
8727 if test -f $ac_dir/${ac_tool_prefix}file; then
8728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8729 if test -n "$file_magic_test_file"; then
8730 case $deplibs_check_method in
8731 "file_magic "*)
8732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8735 $EGREP "$file_magic_regex" > /dev/null; then
8736 :
8737 else
8738 cat <<_LT_EOF 1>&2
8739
8740 *** Warning: the command libtool uses to detect shared libraries,
8741 *** $file_magic_cmd, produces output that libtool cannot recognize.
8742 *** The result is that libtool may fail to recognize shared libraries
8743 *** as such. This will affect the creation of libtool libraries that
8744 *** depend on shared libraries, but programs linked with such libtool
8745 *** libraries will work regardless of this problem. Nevertheless, you
8746 *** may want to report the problem to your system manager and/or to
8747 *** bug-libtool@gnu.org
8748
8749 _LT_EOF
8750 fi ;;
8751 esac
8752 fi
8753 break
8754 fi
8755 done
8756 IFS="$lt_save_ifs"
8757 MAGIC_CMD="$lt_save_MAGIC_CMD"
8758 ;;
8759 esac
8760 fi
8761
8762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8763 if test -n "$MAGIC_CMD"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8765 $as_echo "$MAGIC_CMD" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770
8771
8772
8773
8774
8775 if test -z "$lt_cv_path_MAGIC_CMD"; then
8776 if test -n "$ac_tool_prefix"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8778 $as_echo_n "checking for file... " >&6; }
8779 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 case $MAGIC_CMD in
8783 [\\/*] | ?:[\\/]*)
8784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8785 ;;
8786 *)
8787 lt_save_MAGIC_CMD="$MAGIC_CMD"
8788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8789 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8790 for ac_dir in $ac_dummy; do
8791 IFS="$lt_save_ifs"
8792 test -z "$ac_dir" && ac_dir=.
8793 if test -f $ac_dir/file; then
8794 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8795 if test -n "$file_magic_test_file"; then
8796 case $deplibs_check_method in
8797 "file_magic "*)
8798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8801 $EGREP "$file_magic_regex" > /dev/null; then
8802 :
8803 else
8804 cat <<_LT_EOF 1>&2
8805
8806 *** Warning: the command libtool uses to detect shared libraries,
8807 *** $file_magic_cmd, produces output that libtool cannot recognize.
8808 *** The result is that libtool may fail to recognize shared libraries
8809 *** as such. This will affect the creation of libtool libraries that
8810 *** depend on shared libraries, but programs linked with such libtool
8811 *** libraries will work regardless of this problem. Nevertheless, you
8812 *** may want to report the problem to your system manager and/or to
8813 *** bug-libtool@gnu.org
8814
8815 _LT_EOF
8816 fi ;;
8817 esac
8818 fi
8819 break
8820 fi
8821 done
8822 IFS="$lt_save_ifs"
8823 MAGIC_CMD="$lt_save_MAGIC_CMD"
8824 ;;
8825 esac
8826 fi
8827
8828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8829 if test -n "$MAGIC_CMD"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8831 $as_echo "$MAGIC_CMD" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837
8838 else
8839 MAGIC_CMD=:
8840 fi
8841 fi
8842
8843 fi
8844 ;;
8845 esac
8846
8847 # Use C for the default configuration in the libtool script
8848
8849 lt_save_CC="$CC"
8850 ac_ext=c
8851 ac_cpp='$CPP $CPPFLAGS'
8852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8855
8856
8857 # Source file extension for C test sources.
8858 ac_ext=c
8859
8860 # Object file extension for compiled C test sources.
8861 objext=o
8862 objext=$objext
8863
8864 # Code to be used in simple compile tests
8865 lt_simple_compile_test_code="int some_variable = 0;"
8866
8867 # Code to be used in simple link tests
8868 lt_simple_link_test_code='int main(){return(0);}'
8869
8870
8871
8872
8873
8874
8875
8876 # If no C compiler was specified, use CC.
8877 LTCC=${LTCC-"$CC"}
8878
8879 # If no C compiler flags were specified, use CFLAGS.
8880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8881
8882 # Allow CC to be a program name with arguments.
8883 compiler=$CC
8884
8885 # Save the default compiler, since it gets overwritten when the other
8886 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8887 compiler_DEFAULT=$CC
8888
8889 # save warnings/boilerplate of simple test code
8890 ac_outfile=conftest.$ac_objext
8891 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8893 _lt_compiler_boilerplate=`cat conftest.err`
8894 $RM conftest*
8895
8896 ac_outfile=conftest.$ac_objext
8897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8899 _lt_linker_boilerplate=`cat conftest.err`
8900 $RM -r conftest*
8901
8902
8903 ## CAVEAT EMPTOR:
8904 ## There is no encapsulation within the following macros, do not change
8905 ## the running order or otherwise move them around unless you know exactly
8906 ## what you are doing...
8907 if test -n "$compiler"; then
8908
8909 lt_prog_compiler_no_builtin_flag=
8910
8911 if test "$GCC" = yes; then
8912 case $cc_basename in
8913 nvcc*)
8914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8915 *)
8916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8917 esac
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8920 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8921 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 lt_cv_prog_compiler_rtti_exceptions=no
8925 ac_outfile=conftest.$ac_objext
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="-fno-rtti -fno-exceptions"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 # The option is referenced via a variable to avoid confusing sed.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>conftest.err)
8939 ac_status=$?
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s "$ac_outfile"; then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings other than the usual output.
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_rtti_exceptions=yes
8949 fi
8950 fi
8951 $RM conftest*
8952
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8955 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8956
8957 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8958 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8959 else
8960 :
8961 fi
8962
8963 fi
8964
8965
8966
8967
8968
8969
8970 lt_prog_compiler_wl=
8971 lt_prog_compiler_pic=
8972 lt_prog_compiler_static=
8973
8974
8975 if test "$GCC" = yes; then
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_static='-static'
8978
8979 case $host_os in
8980 aix*)
8981 # All AIX code is PIC.
8982 if test "$host_cpu" = ia64; then
8983 # AIX 5 now supports IA64 processor
8984 lt_prog_compiler_static='-Bstatic'
8985 fi
8986 ;;
8987
8988 amigaos*)
8989 case $host_cpu in
8990 powerpc)
8991 # see comment about AmigaOS4 .so support
8992 lt_prog_compiler_pic='-fPIC'
8993 ;;
8994 m68k)
8995 # FIXME: we need at least 68020 code to build shared libraries, but
8996 # adding the `-m68020' flag to GCC prevents building anything better,
8997 # like `-m68040'.
8998 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8999 ;;
9000 esac
9001 ;;
9002
9003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9004 # PIC is the default for these OSes.
9005 ;;
9006
9007 mingw* | cygwin* | pw32* | os2* | cegcc*)
9008 # This hack is so that the source file can tell whether it is being
9009 # built for inclusion in a dll (and should export symbols for example).
9010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9011 # (--disable-auto-import) libraries
9012 lt_prog_compiler_pic='-DDLL_EXPORT'
9013 ;;
9014
9015 darwin* | rhapsody*)
9016 # PIC is the default on this platform
9017 # Common symbols not allowed in MH_DYLIB files
9018 lt_prog_compiler_pic='-fno-common'
9019 ;;
9020
9021 haiku*)
9022 # PIC is the default for Haiku.
9023 # The "-static" flag exists, but is broken.
9024 lt_prog_compiler_static=
9025 ;;
9026
9027 hpux*)
9028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9030 # sets the default TLS model and affects inlining.
9031 case $host_cpu in
9032 hppa*64*)
9033 # +Z the default
9034 ;;
9035 *)
9036 lt_prog_compiler_pic='-fPIC'
9037 ;;
9038 esac
9039 ;;
9040
9041 interix[3-9]*)
9042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9043 # Instead, we relocate shared libraries at runtime.
9044 ;;
9045
9046 msdosdjgpp*)
9047 # Just because we use GCC doesn't mean we suddenly get shared libraries
9048 # on systems that don't support them.
9049 lt_prog_compiler_can_build_shared=no
9050 enable_shared=no
9051 ;;
9052
9053 *nto* | *qnx*)
9054 # QNX uses GNU C++, but need to define -shared option too, otherwise
9055 # it will coredump.
9056 lt_prog_compiler_pic='-fPIC -shared'
9057 ;;
9058
9059 sysv4*MP*)
9060 if test -d /usr/nec; then
9061 lt_prog_compiler_pic=-Kconform_pic
9062 fi
9063 ;;
9064
9065 *)
9066 lt_prog_compiler_pic='-fPIC'
9067 ;;
9068 esac
9069
9070 case $cc_basename in
9071 nvcc*) # Cuda Compiler Driver 2.2
9072 lt_prog_compiler_wl='-Xlinker '
9073 lt_prog_compiler_pic='-Xcompiler -fPIC'
9074 ;;
9075 esac
9076 else
9077 # PORTME Check for flag to pass linker flags through the system compiler.
9078 case $host_os in
9079 aix*)
9080 lt_prog_compiler_wl='-Wl,'
9081 if test "$host_cpu" = ia64; then
9082 # AIX 5 now supports IA64 processor
9083 lt_prog_compiler_static='-Bstatic'
9084 else
9085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9086 fi
9087 ;;
9088
9089 mingw* | cygwin* | pw32* | os2* | cegcc*)
9090 # This hack is so that the source file can tell whether it is being
9091 # built for inclusion in a dll (and should export symbols for example).
9092 lt_prog_compiler_pic='-DDLL_EXPORT'
9093 ;;
9094
9095 hpux9* | hpux10* | hpux11*)
9096 lt_prog_compiler_wl='-Wl,'
9097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9098 # not for PA HP-UX.
9099 case $host_cpu in
9100 hppa*64*|ia64*)
9101 # +Z the default
9102 ;;
9103 *)
9104 lt_prog_compiler_pic='+Z'
9105 ;;
9106 esac
9107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9108 lt_prog_compiler_static='${wl}-a ${wl}archive'
9109 ;;
9110
9111 irix5* | irix6* | nonstopux*)
9112 lt_prog_compiler_wl='-Wl,'
9113 # PIC (with -KPIC) is the default.
9114 lt_prog_compiler_static='-non_shared'
9115 ;;
9116
9117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9118 case $cc_basename in
9119 # old Intel for x86_64 which still supported -KPIC.
9120 ecc*)
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_pic='-KPIC'
9123 lt_prog_compiler_static='-static'
9124 ;;
9125 # icc used to be incompatible with GCC.
9126 # ICC 10 doesn't accept -KPIC any more.
9127 icc* | ifort*)
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_pic='-fPIC'
9130 lt_prog_compiler_static='-static'
9131 ;;
9132 # Lahey Fortran 8.1.
9133 lf95*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='--shared'
9136 lt_prog_compiler_static='--static'
9137 ;;
9138 nagfor*)
9139 # NAG Fortran compiler
9140 lt_prog_compiler_wl='-Wl,-Wl,,'
9141 lt_prog_compiler_pic='-PIC'
9142 lt_prog_compiler_static='-Bstatic'
9143 ;;
9144 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9145 # Portland Group compilers (*not* the Pentium gcc compiler,
9146 # which looks to be a dead project)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-fpic'
9149 lt_prog_compiler_static='-Bstatic'
9150 ;;
9151 ccc*)
9152 lt_prog_compiler_wl='-Wl,'
9153 # All Alpha code is PIC.
9154 lt_prog_compiler_static='-non_shared'
9155 ;;
9156 xl* | bgxl* | bgf* | mpixl*)
9157 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9158 lt_prog_compiler_wl='-Wl,'
9159 lt_prog_compiler_pic='-qpic'
9160 lt_prog_compiler_static='-qstaticlink'
9161 ;;
9162 *)
9163 case `$CC -V 2>&1 | sed 5q` in
9164 *Sun\ F* | *Sun*Fortran*)
9165 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9166 lt_prog_compiler_pic='-KPIC'
9167 lt_prog_compiler_static='-Bstatic'
9168 lt_prog_compiler_wl=''
9169 ;;
9170 *Sun\ C*)
9171 # Sun C 5.9
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl='-Wl,'
9175 ;;
9176 esac
9177 ;;
9178 esac
9179 ;;
9180
9181 newsos6)
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185
9186 *nto* | *qnx*)
9187 # QNX uses GNU C++, but need to define -shared option too, otherwise
9188 # it will coredump.
9189 lt_prog_compiler_pic='-fPIC -shared'
9190 ;;
9191
9192 osf3* | osf4* | osf5*)
9193 lt_prog_compiler_wl='-Wl,'
9194 # All OSF/1 code is PIC.
9195 lt_prog_compiler_static='-non_shared'
9196 ;;
9197
9198 rdos*)
9199 lt_prog_compiler_static='-non_shared'
9200 ;;
9201
9202 solaris*)
9203 lt_prog_compiler_pic='-KPIC'
9204 lt_prog_compiler_static='-Bstatic'
9205 case $cc_basename in
9206 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9207 lt_prog_compiler_wl='-Qoption ld ';;
9208 *)
9209 lt_prog_compiler_wl='-Wl,';;
9210 esac
9211 ;;
9212
9213 sunos4*)
9214 lt_prog_compiler_wl='-Qoption ld '
9215 lt_prog_compiler_pic='-PIC'
9216 lt_prog_compiler_static='-Bstatic'
9217 ;;
9218
9219 sysv4 | sysv4.2uw2* | sysv4.3*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-Bstatic'
9223 ;;
9224
9225 sysv4*MP*)
9226 if test -d /usr/nec ;then
9227 lt_prog_compiler_pic='-Kconform_pic'
9228 lt_prog_compiler_static='-Bstatic'
9229 fi
9230 ;;
9231
9232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-KPIC'
9235 lt_prog_compiler_static='-Bstatic'
9236 ;;
9237
9238 unicos*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_can_build_shared=no
9241 ;;
9242
9243 uts4*)
9244 lt_prog_compiler_pic='-pic'
9245 lt_prog_compiler_static='-Bstatic'
9246 ;;
9247
9248 *)
9249 lt_prog_compiler_can_build_shared=no
9250 ;;
9251 esac
9252 fi
9253
9254 case $host_os in
9255 # For platforms which do not support PIC, -DPIC is meaningless:
9256 *djgpp*)
9257 lt_prog_compiler_pic=
9258 ;;
9259 *)
9260 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9261 ;;
9262 esac
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9265 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9266 if ${lt_cv_prog_compiler_pic+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9272 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9273 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9274
9275 #
9276 # Check to make sure the PIC flag actually works.
9277 #
9278 if test -n "$lt_prog_compiler_pic"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9280 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9281 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 lt_cv_prog_compiler_pic_works=no
9285 ac_outfile=conftest.$ac_objext
9286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9288 # Insert the option either (1) after the last *FLAGS variable, or
9289 # (2) before a word containing "conftest.", or (3) at the end.
9290 # Note that $ac_compile itself does not contain backslashes and begins
9291 # with a dollar sign (not a hyphen), so the echo should work correctly.
9292 # The option is referenced via a variable to avoid confusing sed.
9293 lt_compile=`echo "$ac_compile" | $SED \
9294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296 -e 's:$: $lt_compiler_flag:'`
9297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9298 (eval "$lt_compile" 2>conftest.err)
9299 ac_status=$?
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 if (exit $ac_status) && test -s "$ac_outfile"; then
9303 # The compiler can only warn and ignore the option if not recognized
9304 # So say no if there are warnings other than the usual output.
9305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308 lt_cv_prog_compiler_pic_works=yes
9309 fi
9310 fi
9311 $RM conftest*
9312
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9315 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9316
9317 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9318 case $lt_prog_compiler_pic in
9319 "" | " "*) ;;
9320 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321 esac
9322 else
9323 lt_prog_compiler_pic=
9324 lt_prog_compiler_can_build_shared=no
9325 fi
9326
9327 fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 #
9340 # Check to make sure the static flag actually works.
9341 #
9342 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9345 if ${lt_cv_prog_compiler_static_works+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 lt_cv_prog_compiler_static_works=no
9349 save_LDFLAGS="$LDFLAGS"
9350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9353 # The linker can only warn and ignore the option if not recognized
9354 # So say no if there are warnings
9355 if test -s conftest.err; then
9356 # Append any errors to the config.log.
9357 cat conftest.err 1>&5
9358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9360 if diff conftest.exp conftest.er2 >/dev/null; then
9361 lt_cv_prog_compiler_static_works=yes
9362 fi
9363 else
9364 lt_cv_prog_compiler_static_works=yes
9365 fi
9366 fi
9367 $RM -r conftest*
9368 LDFLAGS="$save_LDFLAGS"
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9372 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9373
9374 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9375 :
9376 else
9377 lt_prog_compiler_static=
9378 fi
9379
9380
9381
9382
9383
9384
9385
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9388 if ${lt_cv_prog_compiler_c_o+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 lt_cv_prog_compiler_c_o=no
9392 $RM -r conftest 2>/dev/null
9393 mkdir conftest
9394 cd conftest
9395 mkdir out
9396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9397
9398 lt_compiler_flag="-o out/conftest2.$ac_objext"
9399 # Insert the option either (1) after the last *FLAGS variable, or
9400 # (2) before a word containing "conftest.", or (3) at the end.
9401 # Note that $ac_compile itself does not contain backslashes and begins
9402 # with a dollar sign (not a hyphen), so the echo should work correctly.
9403 lt_compile=`echo "$ac_compile" | $SED \
9404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9406 -e 's:$: $lt_compiler_flag:'`
9407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9408 (eval "$lt_compile" 2>out/conftest.err)
9409 ac_status=$?
9410 cat out/conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9413 then
9414 # The compiler can only warn and ignore the option if not recognized
9415 # So say no if there are warnings
9416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9419 lt_cv_prog_compiler_c_o=yes
9420 fi
9421 fi
9422 chmod u+w . 2>&5
9423 $RM conftest*
9424 # SGI C++ compiler will create directory out/ii_files/ for
9425 # template instantiation
9426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9427 $RM out/* && rmdir out
9428 cd ..
9429 $RM -r conftest
9430 $RM conftest*
9431
9432 fi
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9435
9436
9437
9438
9439
9440
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9442 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9443 if ${lt_cv_prog_compiler_c_o+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 lt_cv_prog_compiler_c_o=no
9447 $RM -r conftest 2>/dev/null
9448 mkdir conftest
9449 cd conftest
9450 mkdir out
9451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453 lt_compiler_flag="-o out/conftest2.$ac_objext"
9454 # Insert the option either (1) after the last *FLAGS variable, or
9455 # (2) before a word containing "conftest.", or (3) at the end.
9456 # Note that $ac_compile itself does not contain backslashes and begins
9457 # with a dollar sign (not a hyphen), so the echo should work correctly.
9458 lt_compile=`echo "$ac_compile" | $SED \
9459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9461 -e 's:$: $lt_compiler_flag:'`
9462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9463 (eval "$lt_compile" 2>out/conftest.err)
9464 ac_status=$?
9465 cat out/conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9468 then
9469 # The compiler can only warn and ignore the option if not recognized
9470 # So say no if there are warnings
9471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9474 lt_cv_prog_compiler_c_o=yes
9475 fi
9476 fi
9477 chmod u+w . 2>&5
9478 $RM conftest*
9479 # SGI C++ compiler will create directory out/ii_files/ for
9480 # template instantiation
9481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9482 $RM out/* && rmdir out
9483 cd ..
9484 $RM -r conftest
9485 $RM conftest*
9486
9487 fi
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9489 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9490
9491
9492
9493
9494 hard_links="nottested"
9495 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9496 # do not overwrite the value of need_locks provided by the user
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9498 $as_echo_n "checking if we can lock with hard links... " >&6; }
9499 hard_links=yes
9500 $RM conftest*
9501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9502 touch conftest.a
9503 ln conftest.a conftest.b 2>&5 || hard_links=no
9504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9506 $as_echo "$hard_links" >&6; }
9507 if test "$hard_links" = no; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9509 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9510 need_locks=warn
9511 fi
9512 else
9513 need_locks=no
9514 fi
9515
9516
9517
9518
9519
9520
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9523
9524 runpath_var=
9525 allow_undefined_flag=
9526 always_export_symbols=no
9527 archive_cmds=
9528 archive_expsym_cmds=
9529 compiler_needs_object=no
9530 enable_shared_with_static_runtimes=no
9531 export_dynamic_flag_spec=
9532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9533 hardcode_automatic=no
9534 hardcode_direct=no
9535 hardcode_direct_absolute=no
9536 hardcode_libdir_flag_spec=
9537 hardcode_libdir_flag_spec_ld=
9538 hardcode_libdir_separator=
9539 hardcode_minus_L=no
9540 hardcode_shlibpath_var=unsupported
9541 inherit_rpath=no
9542 link_all_deplibs=unknown
9543 module_cmds=
9544 module_expsym_cmds=
9545 old_archive_from_new_cmds=
9546 old_archive_from_expsyms_cmds=
9547 thread_safe_flag_spec=
9548 whole_archive_flag_spec=
9549 # include_expsyms should be a list of space-separated symbols to be *always*
9550 # included in the symbol list
9551 include_expsyms=
9552 # exclude_expsyms can be an extended regexp of symbols to exclude
9553 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9555 # as well as any symbol that contains `d'.
9556 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9558 # platforms (ab)use it in PIC code, but their linkers get confused if
9559 # the symbol is explicitly referenced. Since portable code cannot
9560 # rely on this symbol name, it's probably fine to never include it in
9561 # preloaded symbol tables.
9562 # Exclude shared library initialization/finalization symbols.
9563 extract_expsyms_cmds=
9564
9565 case $host_os in
9566 cygwin* | mingw* | pw32* | cegcc*)
9567 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9568 # When not using gcc, we currently assume that we are using
9569 # Microsoft Visual C++.
9570 if test "$GCC" != yes; then
9571 with_gnu_ld=no
9572 fi
9573 ;;
9574 interix*)
9575 # we just hope/assume this is gcc and not c89 (= MSVC++)
9576 with_gnu_ld=yes
9577 ;;
9578 openbsd*)
9579 with_gnu_ld=no
9580 ;;
9581 linux* | k*bsd*-gnu | gnu*)
9582 link_all_deplibs=no
9583 ;;
9584 esac
9585
9586 ld_shlibs=yes
9587
9588 # On some targets, GNU ld is compatible enough with the native linker
9589 # that we're better off using the native interface for both.
9590 lt_use_gnu_ld_interface=no
9591 if test "$with_gnu_ld" = yes; then
9592 case $host_os in
9593 aix*)
9594 # The AIX port of GNU ld has always aspired to compatibility
9595 # with the native linker. However, as the warning in the GNU ld
9596 # block says, versions before 2.19.5* couldn't really create working
9597 # shared libraries, regardless of the interface used.
9598 case `$LD -v 2>&1` in
9599 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9600 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9601 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9602 *)
9603 lt_use_gnu_ld_interface=yes
9604 ;;
9605 esac
9606 ;;
9607 *)
9608 lt_use_gnu_ld_interface=yes
9609 ;;
9610 esac
9611 fi
9612
9613 if test "$lt_use_gnu_ld_interface" = yes; then
9614 # If archive_cmds runs LD, not CC, wlarc should be empty
9615 wlarc='${wl}'
9616
9617 # Set some defaults for GNU ld with shared library support. These
9618 # are reset later if shared libraries are not supported. Putting them
9619 # here allows them to be overridden if necessary.
9620 runpath_var=LD_RUN_PATH
9621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622 export_dynamic_flag_spec='${wl}--export-dynamic'
9623 # ancient GNU ld didn't support --whole-archive et. al.
9624 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9625 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9626 else
9627 whole_archive_flag_spec=
9628 fi
9629 supports_anon_versioning=no
9630 case `$LD -v 2>&1` in
9631 *GNU\ gold*) supports_anon_versioning=yes ;;
9632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9635 *\ 2.11.*) ;; # other 2.11 versions
9636 *) supports_anon_versioning=yes ;;
9637 esac
9638
9639 # See if GNU ld supports shared libraries.
9640 case $host_os in
9641 aix[3-9]*)
9642 # On AIX/PPC, the GNU linker is very broken
9643 if test "$host_cpu" != ia64; then
9644 ld_shlibs=no
9645 cat <<_LT_EOF 1>&2
9646
9647 *** Warning: the GNU linker, at least up to release 2.19, is reported
9648 *** to be unable to reliably create shared libraries on AIX.
9649 *** Therefore, libtool is disabling shared libraries support. If you
9650 *** really care for shared libraries, you may want to install binutils
9651 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9652 *** You will then need to restart the configuration process.
9653
9654 _LT_EOF
9655 fi
9656 ;;
9657
9658 amigaos*)
9659 case $host_cpu in
9660 powerpc)
9661 # see comment about AmigaOS4 .so support
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds=''
9664 ;;
9665 m68k)
9666 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)'
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_minus_L=yes
9669 ;;
9670 esac
9671 ;;
9672
9673 beos*)
9674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675 allow_undefined_flag=unsupported
9676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9677 # support --undefined. This deserves some investigation. FIXME
9678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679 else
9680 ld_shlibs=no
9681 fi
9682 ;;
9683
9684 cygwin* | mingw* | pw32* | cegcc*)
9685 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9686 # as there is no search path for DLLs.
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 export_dynamic_flag_spec='${wl}--export-all-symbols'
9689 allow_undefined_flag=unsupported
9690 always_export_symbols=no
9691 enable_shared_with_static_runtimes=yes
9692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9693 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9694
9695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697 # If the export-symbols file already is a .def file (1st line
9698 # is EXPORTS), use it as is; otherwise, prepend...
9699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9700 cp $export_symbols $output_objdir/$soname.def;
9701 else
9702 echo EXPORTS > $output_objdir/$soname.def;
9703 cat $export_symbols >> $output_objdir/$soname.def;
9704 fi~
9705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706 else
9707 ld_shlibs=no
9708 fi
9709 ;;
9710
9711 haiku*)
9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 link_all_deplibs=yes
9714 ;;
9715
9716 interix[3-9]*)
9717 hardcode_direct=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720 export_dynamic_flag_spec='${wl}-E'
9721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9722 # Instead, shared libraries are loaded at an image base (0x10000000 by
9723 # default) and relocated if they conflict, which is a slow very memory
9724 # consuming and fragmenting process. To avoid this, we pick a random,
9725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9728 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'
9729 ;;
9730
9731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9732 tmp_diet=no
9733 if test "$host_os" = linux-dietlibc; then
9734 case $cc_basename in
9735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9736 esac
9737 fi
9738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9739 && test "$tmp_diet" = no
9740 then
9741 tmp_addflag=' $pic_flag'
9742 tmp_sharedflag='-shared'
9743 case $cc_basename,$host_cpu in
9744 pgcc*) # Portland Group C compiler
9745 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9746 tmp_addflag=' $pic_flag'
9747 ;;
9748 pgf77* | pgf90* | pgf95* | pgfortran*)
9749 # Portland Group f77 and f90 compilers
9750 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9751 tmp_addflag=' $pic_flag -Mnomain' ;;
9752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9753 tmp_addflag=' -i_dynamic' ;;
9754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9755 tmp_addflag=' -i_dynamic -nofor_main' ;;
9756 ifc* | ifort*) # Intel Fortran compiler
9757 tmp_addflag=' -nofor_main' ;;
9758 lf95*) # Lahey Fortran 8.1
9759 whole_archive_flag_spec=
9760 tmp_sharedflag='--shared' ;;
9761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9762 tmp_sharedflag='-qmkshrobj'
9763 tmp_addflag= ;;
9764 nvcc*) # Cuda Compiler Driver 2.2
9765 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9766 compiler_needs_object=yes
9767 ;;
9768 esac
9769 case `$CC -V 2>&1 | sed 5q` in
9770 *Sun\ C*) # Sun C 5.9
9771 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9772 compiler_needs_object=yes
9773 tmp_sharedflag='-G' ;;
9774 *Sun\ F*) # Sun Fortran 8.3
9775 tmp_sharedflag='-G' ;;
9776 esac
9777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778
9779 if test "x$supports_anon_versioning" = xyes; then
9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782 echo "local: *; };" >> $output_objdir/$libname.ver~
9783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9784 fi
9785
9786 case $cc_basename in
9787 xlf* | bgf* | bgxlf* | mpixlf*)
9788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9789 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9790 hardcode_libdir_flag_spec=
9791 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9792 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9793 if test "x$supports_anon_versioning" = xyes; then
9794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9796 echo "local: *; };" >> $output_objdir/$libname.ver~
9797 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9798 fi
9799 ;;
9800 esac
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805
9806 netbsd* | netbsdelf*-gnu)
9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9809 wlarc=
9810 else
9811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813 fi
9814 ;;
9815
9816 solaris*)
9817 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9818 ld_shlibs=no
9819 cat <<_LT_EOF 1>&2
9820
9821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9822 *** create shared libraries on Solaris systems. Therefore, libtool
9823 *** is disabling shared libraries support. We urge you to upgrade GNU
9824 *** binutils to release 2.9.1 or newer. Another option is to modify
9825 *** your PATH or compiler configuration so that the native linker is
9826 *** used, and then restart.
9827
9828 _LT_EOF
9829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
9837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9838 case `$LD -v 2>&1` in
9839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9840 ld_shlibs=no
9841 cat <<_LT_EOF 1>&2
9842
9843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9844 *** reliably create shared libraries on SCO systems. Therefore, libtool
9845 *** is disabling shared libraries support. We urge you to upgrade GNU
9846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9847 *** your PATH or compiler configuration so that the native linker is
9848 *** used, and then restart.
9849
9850 _LT_EOF
9851 ;;
9852 *)
9853 # For security reasons, it is highly recommended that you always
9854 # use absolute paths for naming shared libraries, and exclude the
9855 # DT_RUNPATH tag from executables and libraries. But doing so
9856 # requires that you compile everything twice, which is a pain.
9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9861 else
9862 ld_shlibs=no
9863 fi
9864 ;;
9865 esac
9866 ;;
9867
9868 sunos4*)
9869 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 wlarc=
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 *)
9876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879 else
9880 ld_shlibs=no
9881 fi
9882 ;;
9883 esac
9884
9885 if test "$ld_shlibs" = no; then
9886 runpath_var=
9887 hardcode_libdir_flag_spec=
9888 export_dynamic_flag_spec=
9889 whole_archive_flag_spec=
9890 fi
9891 else
9892 # PORTME fill in a description of your system's linker (not GNU ld)
9893 case $host_os in
9894 aix3*)
9895 allow_undefined_flag=unsupported
9896 always_export_symbols=yes
9897 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'
9898 # Note: this linker hardcodes the directories in LIBPATH if there
9899 # are no directories specified by -L.
9900 hardcode_minus_L=yes
9901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9902 # Neither direct hardcoding nor static linking is supported with a
9903 # broken collect2.
9904 hardcode_direct=unsupported
9905 fi
9906 ;;
9907
9908 aix[4-9]*)
9909 if test "$host_cpu" = ia64; then
9910 # On IA64, the linker does run time linking by default, so we don't
9911 # have to do anything special.
9912 aix_use_runtimelinking=no
9913 exp_sym_flag='-Bexport'
9914 no_entry_flag=""
9915 else
9916 # If we're using GNU nm, then we don't want the "-C" option.
9917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9918 # Also, AIX nm treats weak defined symbols like other global
9919 # defined symbols, whereas GNU nm marks them as "W".
9920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9921 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9922 else
9923 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'
9924 fi
9925 aix_use_runtimelinking=no
9926
9927 # Test if we are trying to use run time linking or normal
9928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9929 # need to do runtime linking.
9930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9931 for ld_flag in $LDFLAGS; do
9932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9933 aix_use_runtimelinking=yes
9934 break
9935 fi
9936 done
9937 ;;
9938 esac
9939
9940 exp_sym_flag='-bexport'
9941 no_entry_flag='-bnoentry'
9942 fi
9943
9944 # When large executables or shared objects are built, AIX ld can
9945 # have problems creating the table of contents. If linking a library
9946 # or program results in "error TOC overflow" add -mminimal-toc to
9947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9949
9950 archive_cmds=''
9951 hardcode_direct=yes
9952 hardcode_direct_absolute=yes
9953 hardcode_libdir_separator=':'
9954 link_all_deplibs=yes
9955 file_list_spec='${wl}-f,'
9956
9957 if test "$GCC" = yes; then
9958 case $host_os in aix4.[012]|aix4.[012].*)
9959 # We only want to do this on AIX 4.2 and lower, the check
9960 # below for broken collect2 doesn't work under 4.3+
9961 collect2name=`${CC} -print-prog-name=collect2`
9962 if test -f "$collect2name" &&
9963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9964 then
9965 # We have reworked collect2
9966 :
9967 else
9968 # We have old collect2
9969 hardcode_direct=unsupported
9970 # It fails to find uninstalled libraries when the uninstalled
9971 # path is not listed in the libpath. Setting hardcode_minus_L
9972 # to unsupported forces relinking
9973 hardcode_minus_L=yes
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_libdir_separator=
9976 fi
9977 ;;
9978 esac
9979 shared_flag='-shared'
9980 if test "$aix_use_runtimelinking" = yes; then
9981 shared_flag="$shared_flag "'${wl}-G'
9982 fi
9983 link_all_deplibs=no
9984 else
9985 # not using gcc
9986 if test "$host_cpu" = ia64; then
9987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9988 # chokes on -Wl,-G. The following line is correct:
9989 shared_flag='-G'
9990 else
9991 if test "$aix_use_runtimelinking" = yes; then
9992 shared_flag='${wl}-G'
9993 else
9994 shared_flag='${wl}-bM:SRE'
9995 fi
9996 fi
9997 fi
9998
9999 export_dynamic_flag_spec='${wl}-bexpall'
10000 # It seems that -bexpall does not export symbols beginning with
10001 # underscore (_), so it is better to generate a list of symbols to export.
10002 always_export_symbols=yes
10003 if test "$aix_use_runtimelinking" = yes; then
10004 # Warning - without using the other runtime loading flags (-brtl),
10005 # -berok will link without error, but may produce a broken library.
10006 allow_undefined_flag='-berok'
10007 # Determine the default libpath from the value encoded in an
10008 # empty executable.
10009 if test "${lt_cv_aix_libpath+set}" = set; then
10010 aix_libpath=$lt_cv_aix_libpath
10011 else
10012 if ${lt_cv_aix_libpath_+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017
10018 int
10019 main ()
10020 {
10021
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 if ac_fn_c_try_link "$LINENO"; then :
10027
10028 lt_aix_libpath_sed='
10029 /Import File Strings/,/^$/ {
10030 /^0/ {
10031 s/^0 *\([^ ]*\) *$/\1/
10032 p
10033 }
10034 }'
10035 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10036 # Check for a 64-bit object if we didn't find anything.
10037 if test -z "$lt_cv_aix_libpath_"; then
10038 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10039 fi
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 if test -z "$lt_cv_aix_libpath_"; then
10044 lt_cv_aix_libpath_="/usr/lib:/lib"
10045 fi
10046
10047 fi
10048
10049 aix_libpath=$lt_cv_aix_libpath_
10050 fi
10051
10052 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10053 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10054 else
10055 if test "$host_cpu" = ia64; then
10056 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10057 allow_undefined_flag="-z nodefs"
10058 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"
10059 else
10060 # Determine the default libpath from the value encoded in an
10061 # empty executable.
10062 if test "${lt_cv_aix_libpath+set}" = set; then
10063 aix_libpath=$lt_cv_aix_libpath
10064 else
10065 if ${lt_cv_aix_libpath_+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070
10071 int
10072 main ()
10073 {
10074
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080
10081 lt_aix_libpath_sed='
10082 /Import File Strings/,/^$/ {
10083 /^0/ {
10084 s/^0 *\([^ ]*\) *$/\1/
10085 p
10086 }
10087 }'
10088 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10089 # Check for a 64-bit object if we didn't find anything.
10090 if test -z "$lt_cv_aix_libpath_"; then
10091 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10092 fi
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 if test -z "$lt_cv_aix_libpath_"; then
10097 lt_cv_aix_libpath_="/usr/lib:/lib"
10098 fi
10099
10100 fi
10101
10102 aix_libpath=$lt_cv_aix_libpath_
10103 fi
10104
10105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10106 # Warning - without using the other run time loading flags,
10107 # -berok will link without error, but may produce a broken library.
10108 no_undefined_flag=' ${wl}-bernotok'
10109 allow_undefined_flag=' ${wl}-berok'
10110 if test "$with_gnu_ld" = yes; then
10111 # We only use this code for GNU lds that support --whole-archive.
10112 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10113 else
10114 # Exported symbols can be pulled into shared objects from archives
10115 whole_archive_flag_spec='$convenience'
10116 fi
10117 archive_cmds_need_lc=yes
10118 # This is similar to how AIX traditionally builds its shared libraries.
10119 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'
10120 fi
10121 fi
10122 ;;
10123
10124 amigaos*)
10125 case $host_cpu in
10126 powerpc)
10127 # see comment about AmigaOS4 .so support
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129 archive_expsym_cmds=''
10130 ;;
10131 m68k)
10132 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)'
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_minus_L=yes
10135 ;;
10136 esac
10137 ;;
10138
10139 bsdi[45]*)
10140 export_dynamic_flag_spec=-rdynamic
10141 ;;
10142
10143 cygwin* | mingw* | pw32* | cegcc*)
10144 # When not using gcc, we currently assume that we are using
10145 # Microsoft Visual C++.
10146 # hardcode_libdir_flag_spec is actually meaningless, as there is
10147 # no search path for DLLs.
10148 case $cc_basename in
10149 cl*)
10150 # Native MSVC
10151 hardcode_libdir_flag_spec=' '
10152 allow_undefined_flag=unsupported
10153 always_export_symbols=yes
10154 file_list_spec='@'
10155 # Tell ltmain to make .lib files, not .a files.
10156 libext=lib
10157 # Tell ltmain to make .dll files, not .so files.
10158 shrext_cmds=".dll"
10159 # FIXME: Setting linknames here is a bad hack.
10160 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10161 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10162 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10163 else
10164 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10165 fi~
10166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10167 linknames='
10168 # The linker will not automatically build a static lib if we build a DLL.
10169 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10170 enable_shared_with_static_runtimes=yes
10171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10172 # Don't use ranlib
10173 old_postinstall_cmds='chmod 644 $oldlib'
10174 postlink_cmds='lt_outputfile="@OUTPUT@"~
10175 lt_tool_outputfile="@TOOL_OUTPUT@"~
10176 case $lt_outputfile in
10177 *.exe|*.EXE) ;;
10178 *)
10179 lt_outputfile="$lt_outputfile.exe"
10180 lt_tool_outputfile="$lt_tool_outputfile.exe"
10181 ;;
10182 esac~
10183 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10185 $RM "$lt_outputfile.manifest";
10186 fi'
10187 ;;
10188 *)
10189 # Assume MSVC wrapper
10190 hardcode_libdir_flag_spec=' '
10191 allow_undefined_flag=unsupported
10192 # Tell ltmain to make .lib files, not .a files.
10193 libext=lib
10194 # Tell ltmain to make .dll files, not .so files.
10195 shrext_cmds=".dll"
10196 # FIXME: Setting linknames here is a bad hack.
10197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10198 # The linker will automatically build a .lib file if we build a DLL.
10199 old_archive_from_new_cmds='true'
10200 # FIXME: Should let the user specify the lib program.
10201 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10202 enable_shared_with_static_runtimes=yes
10203 ;;
10204 esac
10205 ;;
10206
10207 darwin* | rhapsody*)
10208
10209
10210 archive_cmds_need_lc=no
10211 hardcode_direct=no
10212 hardcode_automatic=yes
10213 hardcode_shlibpath_var=unsupported
10214 if test "$lt_cv_ld_force_load" = "yes"; then
10215 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10216 else
10217 whole_archive_flag_spec=''
10218 fi
10219 link_all_deplibs=yes
10220 allow_undefined_flag="$_lt_dar_allow_undefined"
10221 case $cc_basename in
10222 ifort*) _lt_dar_can_shared=yes ;;
10223 *) _lt_dar_can_shared=$GCC ;;
10224 esac
10225 if test "$_lt_dar_can_shared" = "yes"; then
10226 output_verbose_link_cmd=func_echo_all
10227 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10228 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10229 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}"
10230 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}"
10231
10232 else
10233 ld_shlibs=no
10234 fi
10235
10236 ;;
10237
10238 dgux*)
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_libdir_flag_spec='-L$libdir'
10241 hardcode_shlibpath_var=no
10242 ;;
10243
10244 freebsd1*)
10245 ld_shlibs=no
10246 ;;
10247
10248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10249 # support. Future versions do this automatically, but an explicit c++rt0.o
10250 # does not break anything, and helps significantly (at the cost of a little
10251 # extra space).
10252 freebsd2.2*)
10253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10254 hardcode_libdir_flag_spec='-R$libdir'
10255 hardcode_direct=yes
10256 hardcode_shlibpath_var=no
10257 ;;
10258
10259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10260 freebsd2*)
10261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_direct=yes
10263 hardcode_minus_L=yes
10264 hardcode_shlibpath_var=no
10265 ;;
10266
10267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10268 freebsd* | dragonfly*)
10269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10270 hardcode_libdir_flag_spec='-R$libdir'
10271 hardcode_direct=yes
10272 hardcode_shlibpath_var=no
10273 ;;
10274
10275 hpux9*)
10276 if test "$GCC" = yes; then
10277 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10278 else
10279 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'
10280 fi
10281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10282 hardcode_libdir_separator=:
10283 hardcode_direct=yes
10284
10285 # hardcode_minus_L: Not really in the search PATH,
10286 # but as the default location of the library.
10287 hardcode_minus_L=yes
10288 export_dynamic_flag_spec='${wl}-E'
10289 ;;
10290
10291 hpux10*)
10292 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10293 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10294 else
10295 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10296 fi
10297 if test "$with_gnu_ld" = no; then
10298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10299 hardcode_libdir_flag_spec_ld='+b $libdir'
10300 hardcode_libdir_separator=:
10301 hardcode_direct=yes
10302 hardcode_direct_absolute=yes
10303 export_dynamic_flag_spec='${wl}-E'
10304 # hardcode_minus_L: Not really in the search PATH,
10305 # but as the default location of the library.
10306 hardcode_minus_L=yes
10307 fi
10308 ;;
10309
10310 hpux11*)
10311 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10312 case $host_cpu in
10313 hppa*64*)
10314 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 ;;
10316 ia64*)
10317 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10318 ;;
10319 *)
10320 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 ;;
10322 esac
10323 else
10324 case $host_cpu in
10325 hppa*64*)
10326 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 ;;
10328 ia64*)
10329 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10330 ;;
10331 *)
10332
10333 # Older versions of the 11.00 compiler do not understand -b yet
10334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10336 $as_echo_n "checking if $CC understands -b... " >&6; }
10337 if ${lt_cv_prog_compiler__b+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 lt_cv_prog_compiler__b=no
10341 save_LDFLAGS="$LDFLAGS"
10342 LDFLAGS="$LDFLAGS -b"
10343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10345 # The linker can only warn and ignore the option if not recognized
10346 # So say no if there are warnings
10347 if test -s conftest.err; then
10348 # Append any errors to the config.log.
10349 cat conftest.err 1>&5
10350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10352 if diff conftest.exp conftest.er2 >/dev/null; then
10353 lt_cv_prog_compiler__b=yes
10354 fi
10355 else
10356 lt_cv_prog_compiler__b=yes
10357 fi
10358 fi
10359 $RM -r conftest*
10360 LDFLAGS="$save_LDFLAGS"
10361
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10364 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10365
10366 if test x"$lt_cv_prog_compiler__b" = xyes; then
10367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368 else
10369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10370 fi
10371
10372 ;;
10373 esac
10374 fi
10375 if test "$with_gnu_ld" = no; then
10376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10377 hardcode_libdir_separator=:
10378
10379 case $host_cpu in
10380 hppa*64*|ia64*)
10381 hardcode_direct=no
10382 hardcode_shlibpath_var=no
10383 ;;
10384 *)
10385 hardcode_direct=yes
10386 hardcode_direct_absolute=yes
10387 export_dynamic_flag_spec='${wl}-E'
10388
10389 # hardcode_minus_L: Not really in the search PATH,
10390 # but as the default location of the library.
10391 hardcode_minus_L=yes
10392 ;;
10393 esac
10394 fi
10395 ;;
10396
10397 irix5* | irix6* | nonstopux*)
10398 if test "$GCC" = yes; then
10399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10400 # Try to use the -exported_symbol ld option, if it does not
10401 # work, assume that -exports_file does not work either and
10402 # implicitly export all symbols.
10403 # This should be the same for all languages, so no per-tag cache variable.
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10405 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10406 if ${lt_cv_irix_exported_symbol+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 save_LDFLAGS="$LDFLAGS"
10410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 int foo (void) { return 0; }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416 lt_cv_irix_exported_symbol=yes
10417 else
10418 lt_cv_irix_exported_symbol=no
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LDFLAGS="$save_LDFLAGS"
10423 fi
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10425 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10426 if test "$lt_cv_irix_exported_symbol" = yes; then
10427 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10428 fi
10429 else
10430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10432 fi
10433 archive_cmds_need_lc='no'
10434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436 inherit_rpath=yes
10437 link_all_deplibs=yes
10438 ;;
10439
10440 netbsd* | netbsdelf*-gnu)
10441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10443 else
10444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10445 fi
10446 hardcode_libdir_flag_spec='-R$libdir'
10447 hardcode_direct=yes
10448 hardcode_shlibpath_var=no
10449 ;;
10450
10451 newsos6)
10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 hardcode_direct=yes
10454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10455 hardcode_libdir_separator=:
10456 hardcode_shlibpath_var=no
10457 ;;
10458
10459 *nto* | *qnx*)
10460 ;;
10461
10462 openbsd*)
10463 if test -f /usr/libexec/ld.so; then
10464 hardcode_direct=yes
10465 hardcode_shlibpath_var=no
10466 hardcode_direct_absolute=yes
10467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10471 export_dynamic_flag_spec='${wl}-E'
10472 else
10473 case $host_os in
10474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_libdir_flag_spec='-R$libdir'
10477 ;;
10478 *)
10479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10481 ;;
10482 esac
10483 fi
10484 else
10485 ld_shlibs=no
10486 fi
10487 ;;
10488
10489 os2*)
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_minus_L=yes
10492 allow_undefined_flag=unsupported
10493 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'
10494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10495 ;;
10496
10497 osf3*)
10498 if test "$GCC" = yes; then
10499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10500 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10501 else
10502 allow_undefined_flag=' -expect_unresolved \*'
10503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10504 fi
10505 archive_cmds_need_lc='no'
10506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508 ;;
10509
10510 osf4* | osf5*) # as osf3* with the addition of -msym flag
10511 if test "$GCC" = yes; then
10512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10513 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10515 else
10516 allow_undefined_flag=' -expect_unresolved \*'
10517 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10518 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~
10519 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10520
10521 # Both c and cxx compiler support -rpath directly
10522 hardcode_libdir_flag_spec='-rpath $libdir'
10523 fi
10524 archive_cmds_need_lc='no'
10525 hardcode_libdir_separator=:
10526 ;;
10527
10528 solaris*)
10529 no_undefined_flag=' -z defs'
10530 if test "$GCC" = yes; then
10531 wlarc='${wl}'
10532 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10535 else
10536 case `$CC -V 2>&1` in
10537 *"Compilers 5.0"*)
10538 wlarc=''
10539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10542 ;;
10543 *)
10544 wlarc='${wl}'
10545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10548 ;;
10549 esac
10550 fi
10551 hardcode_libdir_flag_spec='-R$libdir'
10552 hardcode_shlibpath_var=no
10553 case $host_os in
10554 solaris2.[0-5] | solaris2.[0-5].*) ;;
10555 *)
10556 # The compiler driver will combine and reorder linker options,
10557 # but understands `-z linker_flag'. GCC discards it without `$wl',
10558 # but is careful enough not to reorder.
10559 # Supported since Solaris 2.6 (maybe 2.5.1?)
10560 if test "$GCC" = yes; then
10561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10562 else
10563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10564 fi
10565 ;;
10566 esac
10567 link_all_deplibs=yes
10568 ;;
10569
10570 sunos4*)
10571 if test "x$host_vendor" = xsequent; then
10572 # Use $CC to link under sequent, because it throws in some extra .o
10573 # files that make .init and .fini sections work.
10574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10575 else
10576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10577 fi
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_direct=yes
10580 hardcode_minus_L=yes
10581 hardcode_shlibpath_var=no
10582 ;;
10583
10584 sysv4)
10585 case $host_vendor in
10586 sni)
10587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_direct=yes # is this really true???
10589 ;;
10590 siemens)
10591 ## LD is ld it makes a PLAMLIB
10592 ## CC just makes a GrossModule.
10593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10594 reload_cmds='$CC -r -o $output$reload_objs'
10595 hardcode_direct=no
10596 ;;
10597 motorola)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10600 ;;
10601 esac
10602 runpath_var='LD_RUN_PATH'
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 sysv4.3*)
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 export_dynamic_flag_spec='-Bexport'
10610 ;;
10611
10612 sysv4*MP*)
10613 if test -d /usr/nec; then
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_shlibpath_var=no
10616 runpath_var=LD_RUN_PATH
10617 hardcode_runpath_var=yes
10618 ld_shlibs=yes
10619 fi
10620 ;;
10621
10622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10623 no_undefined_flag='${wl}-z,text'
10624 archive_cmds_need_lc=no
10625 hardcode_shlibpath_var=no
10626 runpath_var='LD_RUN_PATH'
10627
10628 if test "$GCC" = yes; then
10629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 else
10632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 fi
10635 ;;
10636
10637 sysv5* | sco3.2v5* | sco5v6*)
10638 # Note: We can NOT use -z defs as we might desire, because we do not
10639 # link with -lc, and that would cause any symbols used from libc to
10640 # always be unresolved, which means just about no library would
10641 # ever link correctly. If we're not using GNU ld we use -z text
10642 # though, which does catch some bad symbols but isn't as heavy-handed
10643 # as -z defs.
10644 no_undefined_flag='${wl}-z,text'
10645 allow_undefined_flag='${wl}-z,nodefs'
10646 archive_cmds_need_lc=no
10647 hardcode_shlibpath_var=no
10648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10649 hardcode_libdir_separator=':'
10650 link_all_deplibs=yes
10651 export_dynamic_flag_spec='${wl}-Bexport'
10652 runpath_var='LD_RUN_PATH'
10653
10654 if test "$GCC" = yes; then
10655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 fi
10661 ;;
10662
10663 uts4*)
10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_libdir_flag_spec='-L$libdir'
10666 hardcode_shlibpath_var=no
10667 ;;
10668
10669 *)
10670 ld_shlibs=no
10671 ;;
10672 esac
10673
10674 if test x$host_vendor = xsni; then
10675 case $host in
10676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10677 export_dynamic_flag_spec='${wl}-Blargedynsym'
10678 ;;
10679 esac
10680 fi
10681 fi
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10684 $as_echo "$ld_shlibs" >&6; }
10685 test "$ld_shlibs" = no && can_build_shared=no
10686
10687 with_gnu_ld=$with_gnu_ld
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 #
10704 # Do we need to explicitly link libc?
10705 #
10706 case "x$archive_cmds_need_lc" in
10707 x|xyes)
10708 # Assume -lc should be added
10709 archive_cmds_need_lc=yes
10710
10711 if test "$enable_shared" = yes && test "$GCC" = yes; then
10712 case $archive_cmds in
10713 *'~'*)
10714 # FIXME: we may have to deal with multi-command sequences.
10715 ;;
10716 '$CC '*)
10717 # Test whether the compiler implicitly links with -lc since on some
10718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10719 # to ld, don't add -lc before -lgcc.
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10722 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 $RM conftest*
10726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10727
10728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10729 (eval $ac_compile) 2>&5
10730 ac_status=$?
10731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732 test $ac_status = 0; } 2>conftest.err; then
10733 soname=conftest
10734 lib=conftest
10735 libobjs=conftest.$ac_objext
10736 deplibs=
10737 wl=$lt_prog_compiler_wl
10738 pic_flag=$lt_prog_compiler_pic
10739 compiler_flags=-v
10740 linker_flags=-v
10741 verstring=
10742 output_objdir=.
10743 libname=conftest
10744 lt_save_allow_undefined_flag=$allow_undefined_flag
10745 allow_undefined_flag=
10746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10748 ac_status=$?
10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; }
10751 then
10752 lt_cv_archive_cmds_need_lc=no
10753 else
10754 lt_cv_archive_cmds_need_lc=yes
10755 fi
10756 allow_undefined_flag=$lt_save_allow_undefined_flag
10757 else
10758 cat conftest.err 1>&5
10759 fi
10760 $RM conftest*
10761
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10764 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10766 ;;
10767 esac
10768 fi
10769 ;;
10770 esac
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10930
10931 if test "$GCC" = yes; then
10932 case $host_os in
10933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10934 *) lt_awk_arg="/^libraries:/" ;;
10935 esac
10936 case $host_os in
10937 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10938 *) lt_sed_strip_eq="s,=/,/,g" ;;
10939 esac
10940 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10941 case $lt_search_path_spec in
10942 *\;*)
10943 # if the path contains ";" then we assume it to be the separator
10944 # otherwise default to the standard path separator (i.e. ":") - it is
10945 # assumed that no part of a normal pathname contains ";" but that should
10946 # okay in the real world where ";" in dirpaths is itself problematic.
10947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10948 ;;
10949 *)
10950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10951 ;;
10952 esac
10953 # Ok, now we have the path, separated by spaces, we can step through it
10954 # and add multilib dir if necessary.
10955 lt_tmp_lt_search_path_spec=
10956 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957 for lt_sys_path in $lt_search_path_spec; do
10958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10960 else
10961 test -d "$lt_sys_path" && \
10962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10963 fi
10964 done
10965 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10966 BEGIN {RS=" "; FS="/|\n";} {
10967 lt_foo="";
10968 lt_count=0;
10969 for (lt_i = NF; lt_i > 0; lt_i--) {
10970 if ($lt_i != "" && $lt_i != ".") {
10971 if ($lt_i == "..") {
10972 lt_count++;
10973 } else {
10974 if (lt_count == 0) {
10975 lt_foo="/" $lt_i lt_foo;
10976 } else {
10977 lt_count--;
10978 }
10979 }
10980 }
10981 }
10982 if (lt_foo != "") { lt_freq[lt_foo]++; }
10983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10984 }'`
10985 # AWK program above erroneously prepends '/' to C:/dos/paths
10986 # for these hosts.
10987 case $host_os in
10988 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10990 esac
10991 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10992 else
10993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10994 fi
10995 library_names_spec=
10996 libname_spec='lib$name'
10997 soname_spec=
10998 shrext_cmds=".so"
10999 postinstall_cmds=
11000 postuninstall_cmds=
11001 finish_cmds=
11002 finish_eval=
11003 shlibpath_var=
11004 shlibpath_overrides_runpath=unknown
11005 version_type=none
11006 dynamic_linker="$host_os ld.so"
11007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11008 need_lib_prefix=unknown
11009 hardcode_into_libs=no
11010
11011 # when you set need_version to no, make sure it does not cause -set_version
11012 # flags to be left without arguments
11013 need_version=unknown
11014
11015 case $host_os in
11016 aix3*)
11017 version_type=linux
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11019 shlibpath_var=LIBPATH
11020
11021 # AIX 3 has no versioning support, so we append a major version to the name.
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 ;;
11024
11025 aix[4-9]*)
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 hardcode_into_libs=yes
11030 if test "$host_cpu" = ia64; then
11031 # AIX 5 supports IA64
11032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 else
11035 # With GCC up to 2.95.x, collect2 would create an import file
11036 # for dependence libraries. The import file would start with
11037 # the line `#! .'. This would cause the generated library to
11038 # depend on `.', always an invalid library. This was fixed in
11039 # development snapshots of GCC prior to 3.0.
11040 case $host_os in
11041 aix4 | aix4.[01] | aix4.[01].*)
11042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11043 echo ' yes '
11044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11045 :
11046 else
11047 can_build_shared=no
11048 fi
11049 ;;
11050 esac
11051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11052 # soname into executable. Probably we can add versioning support to
11053 # collect2, so additional links can be useful in future.
11054 if test "$aix_use_runtimelinking" = yes; then
11055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11056 # instead of lib<name>.a to let people know that these are not
11057 # typical AIX shared libraries.
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 else
11060 # We preserve .a as extension for shared libraries through AIX4.2
11061 # and later when we are not doing run time linking.
11062 library_names_spec='${libname}${release}.a $libname.a'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 fi
11065 shlibpath_var=LIBPATH
11066 fi
11067 ;;
11068
11069 amigaos*)
11070 case $host_cpu in
11071 powerpc)
11072 # Since July 2007 AmigaOS4 officially supports .so libraries.
11073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 ;;
11076 m68k)
11077 library_names_spec='$libname.ixlibrary $libname.a'
11078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11079 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11080 ;;
11081 esac
11082 ;;
11083
11084 beos*)
11085 library_names_spec='${libname}${shared_ext}'
11086 dynamic_linker="$host_os ld.so"
11087 shlibpath_var=LIBRARY_PATH
11088 ;;
11089
11090 bsdi[45]*)
11091 version_type=linux
11092 need_version=no
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11099 # the default ld.so.conf also contains /usr/contrib/lib and
11100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11101 # libtool to hard-code these into programs
11102 ;;
11103
11104 cygwin* | mingw* | pw32* | cegcc*)
11105 version_type=windows
11106 shrext_cmds=".dll"
11107 need_version=no
11108 need_lib_prefix=no
11109
11110 case $GCC,$cc_basename in
11111 yes,*)
11112 # gcc
11113 library_names_spec='$libname.dll.a'
11114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11115 postinstall_cmds='base_file=`basename \${file}`~
11116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11117 dldir=$destdir/`dirname \$dlpath`~
11118 test -d \$dldir || mkdir -p \$dldir~
11119 $install_prog $dir/$dlname \$dldir/$dlname~
11120 chmod a+x \$dldir/$dlname~
11121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11123 fi'
11124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11125 dlpath=$dir/\$dldll~
11126 $RM \$dlpath'
11127 shlibpath_overrides_runpath=yes
11128
11129 case $host_os in
11130 cygwin*)
11131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133
11134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11135 ;;
11136 mingw* | cegcc*)
11137 # MinGW DLLs use traditional 'lib' prefix
11138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139 ;;
11140 pw32*)
11141 # pw32 DLLs use 'pw' prefix rather than 'lib'
11142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143 ;;
11144 esac
11145 dynamic_linker='Win32 ld.exe'
11146 ;;
11147
11148 *,cl*)
11149 # Native MSVC
11150 libname_spec='$name'
11151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11152 library_names_spec='${libname}.dll.lib'
11153
11154 case $build_os in
11155 mingw*)
11156 sys_lib_search_path_spec=
11157 lt_save_ifs=$IFS
11158 IFS=';'
11159 for lt_path in $LIB
11160 do
11161 IFS=$lt_save_ifs
11162 # Let DOS variable expansion print the short 8.3 style file name.
11163 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11165 done
11166 IFS=$lt_save_ifs
11167 # Convert to MSYS style.
11168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11169 ;;
11170 cygwin*)
11171 # Convert to unix form, then to dos form, then back to unix form
11172 # but this time dos style (no spaces!) so that the unix form looks
11173 # like /cygdrive/c/PROGRA~1:/cygdr...
11174 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11175 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11176 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11177 ;;
11178 *)
11179 sys_lib_search_path_spec="$LIB"
11180 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11181 # It is most probably a Windows format PATH.
11182 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11183 else
11184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11185 fi
11186 # FIXME: find the short name or the path components, as spaces are
11187 # common. (e.g. "Program Files" -> "PROGRA~1")
11188 ;;
11189 esac
11190
11191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11192 postinstall_cmds='base_file=`basename \${file}`~
11193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11194 dldir=$destdir/`dirname \$dlpath`~
11195 test -d \$dldir || mkdir -p \$dldir~
11196 $install_prog $dir/$dlname \$dldir/$dlname'
11197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11198 dlpath=$dir/\$dldll~
11199 $RM \$dlpath'
11200 shlibpath_overrides_runpath=yes
11201 dynamic_linker='Win32 link.exe'
11202 ;;
11203
11204 *)
11205 # Assume MSVC wrapper
11206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11207 dynamic_linker='Win32 ld.exe'
11208 ;;
11209 esac
11210 # FIXME: first we should search . and the directory the executable is in
11211 shlibpath_var=PATH
11212 ;;
11213
11214 darwin* | rhapsody*)
11215 dynamic_linker="$host_os dyld"
11216 version_type=darwin
11217 need_lib_prefix=no
11218 need_version=no
11219 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11220 soname_spec='${libname}${release}${major}$shared_ext'
11221 shlibpath_overrides_runpath=yes
11222 shlibpath_var=DYLD_LIBRARY_PATH
11223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11224
11225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11227 ;;
11228
11229 dgux*)
11230 version_type=linux
11231 need_lib_prefix=no
11232 need_version=no
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 ;;
11237
11238 freebsd1*)
11239 dynamic_linker=no
11240 ;;
11241
11242 freebsd* | dragonfly*)
11243 # DragonFly does not have aout. When/if they implement a new
11244 # versioning mechanism, adjust this.
11245 if test -x /usr/bin/objformat; then
11246 objformat=`/usr/bin/objformat`
11247 else
11248 case $host_os in
11249 freebsd[123]*) objformat=aout ;;
11250 *) objformat=elf ;;
11251 esac
11252 fi
11253 version_type=freebsd-$objformat
11254 case $version_type in
11255 freebsd-elf*)
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257 need_version=no
11258 need_lib_prefix=no
11259 ;;
11260 freebsd-*)
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11262 need_version=yes
11263 ;;
11264 esac
11265 shlibpath_var=LD_LIBRARY_PATH
11266 case $host_os in
11267 freebsd2*)
11268 shlibpath_overrides_runpath=yes
11269 ;;
11270 freebsd3.[01]* | freebsdelf3.[01]*)
11271 shlibpath_overrides_runpath=yes
11272 hardcode_into_libs=yes
11273 ;;
11274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11276 shlibpath_overrides_runpath=no
11277 hardcode_into_libs=yes
11278 ;;
11279 *) # from 4.6 on, and DragonFly
11280 shlibpath_overrides_runpath=yes
11281 hardcode_into_libs=yes
11282 ;;
11283 esac
11284 ;;
11285
11286 gnu*)
11287 version_type=linux
11288 need_lib_prefix=no
11289 need_version=no
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=no
11294 hardcode_into_libs=yes
11295 ;;
11296
11297 haiku*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 dynamic_linker="$host_os runtime_loader"
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 shlibpath_var=LIBRARY_PATH
11305 shlibpath_overrides_runpath=yes
11306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11307 hardcode_into_libs=yes
11308 ;;
11309
11310 hpux9* | hpux10* | hpux11*)
11311 # Give a soname corresponding to the major version so that dld.sl refuses to
11312 # link against other versions.
11313 version_type=sunos
11314 need_lib_prefix=no
11315 need_version=no
11316 case $host_cpu in
11317 ia64*)
11318 shrext_cmds='.so'
11319 hardcode_into_libs=yes
11320 dynamic_linker="$host_os dld.so"
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 if test "X$HPUX_IA64_MODE" = X32; then
11326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11327 else
11328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11329 fi
11330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11331 ;;
11332 hppa*64*)
11333 shrext_cmds='.sl'
11334 hardcode_into_libs=yes
11335 dynamic_linker="$host_os dld.sl"
11336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11342 ;;
11343 *)
11344 shrext_cmds='.sl'
11345 dynamic_linker="$host_os dld.sl"
11346 shlibpath_var=SHLIB_PATH
11347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 ;;
11351 esac
11352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11353 postinstall_cmds='chmod 555 $lib'
11354 # or fails outright, so override atomically:
11355 install_override_mode=555
11356 ;;
11357
11358 interix[3-9]*)
11359 version_type=linux
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 shlibpath_overrides_runpath=no
11367 hardcode_into_libs=yes
11368 ;;
11369
11370 irix5* | irix6* | nonstopux*)
11371 case $host_os in
11372 nonstopux*) version_type=nonstopux ;;
11373 *)
11374 if test "$lt_cv_prog_gnu_ld" = yes; then
11375 version_type=linux
11376 else
11377 version_type=irix
11378 fi ;;
11379 esac
11380 need_lib_prefix=no
11381 need_version=no
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11384 case $host_os in
11385 irix5* | nonstopux*)
11386 libsuff= shlibsuff=
11387 ;;
11388 *)
11389 case $LD in # libtool.m4 will add one of these switches to LD
11390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11391 libsuff= shlibsuff= libmagic=32-bit;;
11392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11393 libsuff=32 shlibsuff=N32 libmagic=N32;;
11394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11396 *) libsuff= shlibsuff= libmagic=never-match;;
11397 esac
11398 ;;
11399 esac
11400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11401 shlibpath_overrides_runpath=no
11402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11404 hardcode_into_libs=yes
11405 ;;
11406
11407 # No shared lib support for Linux oldld, aout, or coff.
11408 linux*oldld* | linux*aout* | linux*coff*)
11409 dynamic_linker=no
11410 ;;
11411
11412 # This must be Linux ELF.
11413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11414 version_type=linux
11415 need_lib_prefix=no
11416 need_version=no
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=no
11422
11423 # Some binutils ld are patched to set DT_RUNPATH
11424 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 lt_cv_shlibpath_overrides_runpath=no
11428 save_LDFLAGS=$LDFLAGS
11429 save_libdir=$libdir
11430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434
11435 int
11436 main ()
11437 {
11438
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11445 lt_cv_shlibpath_overrides_runpath=yes
11446 fi
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LDFLAGS=$save_LDFLAGS
11451 libdir=$save_libdir
11452
11453 fi
11454
11455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11456
11457 # This implies no fast_install, which is unacceptable.
11458 # Some rework will be needed to allow for fast_install
11459 # before this can be enabled.
11460 hardcode_into_libs=yes
11461
11462 # Append ld.so.conf contents to the search path
11463 if test -f /etc/ld.so.conf; then
11464 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;s/"//g;/^$/d' | tr '\n' ' '`
11465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11466 fi
11467
11468 # We used to test for /lib/ld.so.1 and disable shared libraries on
11469 # powerpc, because MkLinux only supported shared libraries with the
11470 # GNU dynamic linker. Since this was broken with cross compilers,
11471 # most powerpc-linux boxes support dynamic linking these days and
11472 # people can always --disable-shared, the test was removed, and we
11473 # assume the GNU/Linux dynamic linker is in use.
11474 dynamic_linker='GNU/Linux ld.so'
11475 ;;
11476
11477 netbsdelf*-gnu)
11478 version_type=linux
11479 need_lib_prefix=no
11480 need_version=no
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=no
11485 hardcode_into_libs=yes
11486 dynamic_linker='NetBSD ld.elf_so'
11487 ;;
11488
11489 netbsd*)
11490 version_type=sunos
11491 need_lib_prefix=no
11492 need_version=no
11493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11496 dynamic_linker='NetBSD (a.out) ld.so'
11497 else
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 dynamic_linker='NetBSD ld.elf_so'
11501 fi
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 hardcode_into_libs=yes
11505 ;;
11506
11507 newsos6)
11508 version_type=linux
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 ;;
11513
11514 *nto* | *qnx*)
11515 version_type=qnx
11516 need_lib_prefix=no
11517 need_version=no
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=no
11522 hardcode_into_libs=yes
11523 dynamic_linker='ldqnx.so'
11524 ;;
11525
11526 openbsd*)
11527 version_type=sunos
11528 sys_lib_dlsearch_path_spec="/usr/lib"
11529 need_lib_prefix=no
11530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11531 case $host_os in
11532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11533 *) need_version=no ;;
11534 esac
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11539 case $host_os in
11540 openbsd2.[89] | openbsd2.[89].*)
11541 shlibpath_overrides_runpath=no
11542 ;;
11543 *)
11544 shlibpath_overrides_runpath=yes
11545 ;;
11546 esac
11547 else
11548 shlibpath_overrides_runpath=yes
11549 fi
11550 ;;
11551
11552 os2*)
11553 libname_spec='$name'
11554 shrext_cmds=".dll"
11555 need_lib_prefix=no
11556 library_names_spec='$libname${shared_ext} $libname.a'
11557 dynamic_linker='OS/2 ld.exe'
11558 shlibpath_var=LIBPATH
11559 ;;
11560
11561 osf3* | osf4* | osf5*)
11562 version_type=osf
11563 need_lib_prefix=no
11564 need_version=no
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11570 ;;
11571
11572 rdos*)
11573 dynamic_linker=no
11574 ;;
11575
11576 solaris*)
11577 version_type=linux
11578 need_lib_prefix=no
11579 need_version=no
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11584 hardcode_into_libs=yes
11585 # ldd complains unless libraries are executable
11586 postinstall_cmds='chmod +x $lib'
11587 ;;
11588
11589 sunos4*)
11590 version_type=sunos
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595 if test "$with_gnu_ld" = yes; then
11596 need_lib_prefix=no
11597 fi
11598 need_version=yes
11599 ;;
11600
11601 sysv4 | sysv4.3*)
11602 version_type=linux
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 case $host_vendor in
11607 sni)
11608 shlibpath_overrides_runpath=no
11609 need_lib_prefix=no
11610 runpath_var=LD_RUN_PATH
11611 ;;
11612 siemens)
11613 need_lib_prefix=no
11614 ;;
11615 motorola)
11616 need_lib_prefix=no
11617 need_version=no
11618 shlibpath_overrides_runpath=no
11619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11620 ;;
11621 esac
11622 ;;
11623
11624 sysv4*MP*)
11625 if test -d /usr/nec ;then
11626 version_type=linux
11627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11628 soname_spec='$libname${shared_ext}.$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 fi
11631 ;;
11632
11633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11634 version_type=freebsd-elf
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=yes
11641 hardcode_into_libs=yes
11642 if test "$with_gnu_ld" = yes; then
11643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11644 else
11645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11646 case $host_os in
11647 sco3.2v5*)
11648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11649 ;;
11650 esac
11651 fi
11652 sys_lib_dlsearch_path_spec='/usr/lib'
11653 ;;
11654
11655 tpf*)
11656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11657 version_type=linux
11658 need_lib_prefix=no
11659 need_version=no
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 ;;
11665
11666 uts4*)
11667 version_type=linux
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 ;;
11672
11673 *)
11674 dynamic_linker=no
11675 ;;
11676 esac
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11678 $as_echo "$dynamic_linker" >&6; }
11679 test "$dynamic_linker" = no && can_build_shared=no
11680
11681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11682 if test "$GCC" = yes; then
11683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11684 fi
11685
11686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11688 fi
11689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11691 fi
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11786 hardcode_action=
11787 if test -n "$hardcode_libdir_flag_spec" ||
11788 test -n "$runpath_var" ||
11789 test "X$hardcode_automatic" = "Xyes" ; then
11790
11791 # We can hardcode non-existent directories.
11792 if test "$hardcode_direct" != no &&
11793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794 # have to relink, otherwise we might link with an installed library
11795 # when we should be linking with a yet-to-be-installed one
11796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11797 test "$hardcode_minus_L" != no; then
11798 # Linking always hardcodes the temporary library directory.
11799 hardcode_action=relink
11800 else
11801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802 hardcode_action=immediate
11803 fi
11804 else
11805 # We cannot hardcode anything, or else we can only hardcode existing
11806 # directories.
11807 hardcode_action=unsupported
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11810 $as_echo "$hardcode_action" >&6; }
11811
11812 if test "$hardcode_action" = relink ||
11813 test "$inherit_rpath" = yes; then
11814 # Fast installation is not supported
11815 enable_fast_install=no
11816 elif test "$shlibpath_overrides_runpath" = yes ||
11817 test "$enable_shared" = no; then
11818 # Fast installation is not necessary
11819 enable_fast_install=needless
11820 fi
11821
11822
11823
11824
11825
11826
11827 if test "x$enable_dlopen" != xyes; then
11828 enable_dlopen=unknown
11829 enable_dlopen_self=unknown
11830 enable_dlopen_self_static=unknown
11831 else
11832 lt_cv_dlopen=no
11833 lt_cv_dlopen_libs=
11834
11835 case $host_os in
11836 beos*)
11837 lt_cv_dlopen="load_add_on"
11838 lt_cv_dlopen_libs=
11839 lt_cv_dlopen_self=yes
11840 ;;
11841
11842 mingw* | pw32* | cegcc*)
11843 lt_cv_dlopen="LoadLibrary"
11844 lt_cv_dlopen_libs=
11845 ;;
11846
11847 cygwin*)
11848 lt_cv_dlopen="dlopen"
11849 lt_cv_dlopen_libs=
11850 ;;
11851
11852 darwin*)
11853 # if libdl is installed we need to link against it
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11856 if ${ac_cv_lib_dl_dlopen+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldl $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char dlopen ();
11871 int
11872 main ()
11873 {
11874 return dlopen ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 ac_cv_lib_dl_dlopen=yes
11881 else
11882 ac_cv_lib_dl_dlopen=no
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11890 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11892 else
11893
11894 lt_cv_dlopen="dyld"
11895 lt_cv_dlopen_libs=
11896 lt_cv_dlopen_self=yes
11897
11898 fi
11899
11900 ;;
11901
11902 *)
11903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11904 if test "x$ac_cv_func_shl_load" = xyes; then :
11905 lt_cv_dlopen="shl_load"
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11909 if ${ac_cv_lib_dld_shl_load+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-ldld $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char shl_load ();
11924 int
11925 main ()
11926 {
11927 return shl_load ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_dld_shl_load=yes
11934 else
11935 ac_cv_lib_dld_shl_load=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11945 else
11946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11947 if test "x$ac_cv_func_dlopen" = xyes; then :
11948 lt_cv_dlopen="dlopen"
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11952 if ${ac_cv_lib_dl_dlopen+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 ac_check_lib_save_LIBS=$LIBS
11956 LIBS="-ldl $LIBS"
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char dlopen ();
11967 int
11968 main ()
11969 {
11970 return dlopen ();
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_lib_dl_dlopen=yes
11977 else
11978 ac_cv_lib_dl_dlopen=no
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 LIBS=$ac_check_lib_save_LIBS
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11991 if ${ac_cv_lib_svld_dlopen+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-lsvld $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char dlopen ();
12006 int
12007 main ()
12008 {
12009 return dlopen ();
12010 ;
12011 return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_svld_dlopen=yes
12016 else
12017 ac_cv_lib_svld_dlopen=no
12018 fi
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12030 if ${ac_cv_lib_dld_dld_link+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldld $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char dld_link ();
12045 int
12046 main ()
12047 {
12048 return dld_link ();
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_dld_link=yes
12055 else
12056 ac_cv_lib_dld_dld_link=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12066 fi
12067
12068
12069 fi
12070
12071
12072 fi
12073
12074
12075 fi
12076
12077
12078 fi
12079
12080
12081 fi
12082
12083 ;;
12084 esac
12085
12086 if test "x$lt_cv_dlopen" != xno; then
12087 enable_dlopen=yes
12088 else
12089 enable_dlopen=no
12090 fi
12091
12092 case $lt_cv_dlopen in
12093 dlopen)
12094 save_CPPFLAGS="$CPPFLAGS"
12095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12096
12097 save_LDFLAGS="$LDFLAGS"
12098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12099
12100 save_LIBS="$LIBS"
12101 LIBS="$lt_cv_dlopen_libs $LIBS"
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12105 if ${lt_cv_dlopen_self+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 if test "$cross_compiling" = yes; then :
12109 lt_cv_dlopen_self=cross
12110 else
12111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12112 lt_status=$lt_dlunknown
12113 cat > conftest.$ac_ext <<_LT_EOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116
12117 #if HAVE_DLFCN_H
12118 #include <dlfcn.h>
12119 #endif
12120
12121 #include <stdio.h>
12122
12123 #ifdef RTLD_GLOBAL
12124 # define LT_DLGLOBAL RTLD_GLOBAL
12125 #else
12126 # ifdef DL_GLOBAL
12127 # define LT_DLGLOBAL DL_GLOBAL
12128 # else
12129 # define LT_DLGLOBAL 0
12130 # endif
12131 #endif
12132
12133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12134 find out it does not work in some platform. */
12135 #ifndef LT_DLLAZY_OR_NOW
12136 # ifdef RTLD_LAZY
12137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12138 # else
12139 # ifdef DL_LAZY
12140 # define LT_DLLAZY_OR_NOW DL_LAZY
12141 # else
12142 # ifdef RTLD_NOW
12143 # define LT_DLLAZY_OR_NOW RTLD_NOW
12144 # else
12145 # ifdef DL_NOW
12146 # define LT_DLLAZY_OR_NOW DL_NOW
12147 # else
12148 # define LT_DLLAZY_OR_NOW 0
12149 # endif
12150 # endif
12151 # endif
12152 # endif
12153 #endif
12154
12155 /* When -fvisbility=hidden is used, assume the code has been annotated
12156 correspondingly for the symbols needed. */
12157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12158 int fnord () __attribute__((visibility("default")));
12159 #endif
12160
12161 int fnord () { return 42; }
12162 int main ()
12163 {
12164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165 int status = $lt_dlunknown;
12166
12167 if (self)
12168 {
12169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12170 else
12171 {
12172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12173 else puts (dlerror ());
12174 }
12175 /* dlclose (self); */
12176 }
12177 else
12178 puts (dlerror ());
12179
12180 return status;
12181 }
12182 _LT_EOF
12183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12184 (eval $ac_link) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12188 (./conftest; exit; ) >&5 2>/dev/null
12189 lt_status=$?
12190 case x$lt_status in
12191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12194 esac
12195 else :
12196 # compilation failed
12197 lt_cv_dlopen_self=no
12198 fi
12199 fi
12200 rm -fr conftest*
12201
12202
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12205 $as_echo "$lt_cv_dlopen_self" >&6; }
12206
12207 if test "x$lt_cv_dlopen_self" = xyes; then
12208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12211 if ${lt_cv_dlopen_self_static+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if test "$cross_compiling" = yes; then :
12215 lt_cv_dlopen_self_static=cross
12216 else
12217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12218 lt_status=$lt_dlunknown
12219 cat > conftest.$ac_ext <<_LT_EOF
12220 #line $LINENO "configure"
12221 #include "confdefs.h"
12222
12223 #if HAVE_DLFCN_H
12224 #include <dlfcn.h>
12225 #endif
12226
12227 #include <stdio.h>
12228
12229 #ifdef RTLD_GLOBAL
12230 # define LT_DLGLOBAL RTLD_GLOBAL
12231 #else
12232 # ifdef DL_GLOBAL
12233 # define LT_DLGLOBAL DL_GLOBAL
12234 # else
12235 # define LT_DLGLOBAL 0
12236 # endif
12237 #endif
12238
12239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12240 find out it does not work in some platform. */
12241 #ifndef LT_DLLAZY_OR_NOW
12242 # ifdef RTLD_LAZY
12243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12244 # else
12245 # ifdef DL_LAZY
12246 # define LT_DLLAZY_OR_NOW DL_LAZY
12247 # else
12248 # ifdef RTLD_NOW
12249 # define LT_DLLAZY_OR_NOW RTLD_NOW
12250 # else
12251 # ifdef DL_NOW
12252 # define LT_DLLAZY_OR_NOW DL_NOW
12253 # else
12254 # define LT_DLLAZY_OR_NOW 0
12255 # endif
12256 # endif
12257 # endif
12258 # endif
12259 #endif
12260
12261 /* When -fvisbility=hidden is used, assume the code has been annotated
12262 correspondingly for the symbols needed. */
12263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12264 int fnord () __attribute__((visibility("default")));
12265 #endif
12266
12267 int fnord () { return 42; }
12268 int main ()
12269 {
12270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12271 int status = $lt_dlunknown;
12272
12273 if (self)
12274 {
12275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12276 else
12277 {
12278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12279 else puts (dlerror ());
12280 }
12281 /* dlclose (self); */
12282 }
12283 else
12284 puts (dlerror ());
12285
12286 return status;
12287 }
12288 _LT_EOF
12289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12290 (eval $ac_link) 2>&5
12291 ac_status=$?
12292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12294 (./conftest; exit; ) >&5 2>/dev/null
12295 lt_status=$?
12296 case x$lt_status in
12297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12300 esac
12301 else :
12302 # compilation failed
12303 lt_cv_dlopen_self_static=no
12304 fi
12305 fi
12306 rm -fr conftest*
12307
12308
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12312 fi
12313
12314 CPPFLAGS="$save_CPPFLAGS"
12315 LDFLAGS="$save_LDFLAGS"
12316 LIBS="$save_LIBS"
12317 ;;
12318 esac
12319
12320 case $lt_cv_dlopen_self in
12321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12322 *) enable_dlopen_self=unknown ;;
12323 esac
12324
12325 case $lt_cv_dlopen_self_static in
12326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12327 *) enable_dlopen_self_static=unknown ;;
12328 esac
12329 fi
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 striplib=
12348 old_striplib=
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356 else
12357 # FIXME - insert some real tests, host_os isn't really good enough
12358 case $host_os in
12359 darwin*)
12360 if test -n "$STRIP" ; then
12361 striplib="$STRIP -x"
12362 old_striplib="$STRIP -S"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364 $as_echo "yes" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12368 fi
12369 ;;
12370 *)
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373 ;;
12374 esac
12375 fi
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 # Report which library types will actually be built
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12392 $as_echo "$can_build_shared" >&6; }
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12395 $as_echo_n "checking whether to build shared libraries... " >&6; }
12396 test "$can_build_shared" = "no" && enable_shared=no
12397
12398 # On AIX, shared libraries and static libraries use the same namespace, and
12399 # are all built from PIC.
12400 case $host_os in
12401 aix3*)
12402 test "$enable_shared" = yes && enable_static=no
12403 if test -n "$RANLIB"; then
12404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12405 postinstall_cmds='$RANLIB $lib'
12406 fi
12407 ;;
12408
12409 aix[4-9]*)
12410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12411 test "$enable_shared" = yes && enable_static=no
12412 fi
12413 ;;
12414 esac
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12416 $as_echo "$enable_shared" >&6; }
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12419 $as_echo_n "checking whether to build static libraries... " >&6; }
12420 # Make sure either enable_shared or enable_static is yes.
12421 test "$enable_shared" = yes || enable_static=yes
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12423 $as_echo "$enable_static" >&6; }
12424
12425
12426
12427
12428 fi
12429 ac_ext=c
12430 ac_cpp='$CPP $CPPFLAGS'
12431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12434
12435 CC="$lt_save_CC"
12436
12437 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12438 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12439 (test "X$CXX" != "Xg++"))) ; then
12440 ac_ext=cpp
12441 ac_cpp='$CXXCPP $CPPFLAGS'
12442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12446 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12447 if test -z "$CXXCPP"; then
12448 if ${ac_cv_prog_CXXCPP+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 # Double quotes because CXXCPP needs to be expanded
12452 for CXXCPP in "$CXX -E" "/lib/cpp"
12453 do
12454 ac_preproc_ok=false
12455 for ac_cxx_preproc_warn_flag in '' yes
12456 do
12457 # Use a header file that comes with gcc, so configuring glibc
12458 # with a fresh cross-compiler works.
12459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12460 # <limits.h> exists even on freestanding compilers.
12461 # On the NeXT, cc -E runs the code through the compiler's parser,
12462 # not just through cpp. "Syntax error" is here to catch this case.
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 #ifdef __STDC__
12466 # include <limits.h>
12467 #else
12468 # include <assert.h>
12469 #endif
12470 Syntax error
12471 _ACEOF
12472 if ac_fn_cxx_try_cpp "$LINENO"; then :
12473
12474 else
12475 # Broken: fails on valid input.
12476 continue
12477 fi
12478 rm -f conftest.err conftest.i conftest.$ac_ext
12479
12480 # OK, works on sane cases. Now check whether nonexistent headers
12481 # can be detected and how.
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 #include <ac_nonexistent.h>
12485 _ACEOF
12486 if ac_fn_cxx_try_cpp "$LINENO"; then :
12487 # Broken: success on invalid input.
12488 continue
12489 else
12490 # Passes both tests.
12491 ac_preproc_ok=:
12492 break
12493 fi
12494 rm -f conftest.err conftest.i conftest.$ac_ext
12495
12496 done
12497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12498 rm -f conftest.i conftest.err conftest.$ac_ext
12499 if $ac_preproc_ok; then :
12500 break
12501 fi
12502
12503 done
12504 ac_cv_prog_CXXCPP=$CXXCPP
12505
12506 fi
12507 CXXCPP=$ac_cv_prog_CXXCPP
12508 else
12509 ac_cv_prog_CXXCPP=$CXXCPP
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12512 $as_echo "$CXXCPP" >&6; }
12513 ac_preproc_ok=false
12514 for ac_cxx_preproc_warn_flag in '' yes
12515 do
12516 # Use a header file that comes with gcc, so configuring glibc
12517 # with a fresh cross-compiler works.
12518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519 # <limits.h> exists even on freestanding compilers.
12520 # On the NeXT, cc -E runs the code through the compiler's parser,
12521 # not just through cpp. "Syntax error" is here to catch this case.
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524 #ifdef __STDC__
12525 # include <limits.h>
12526 #else
12527 # include <assert.h>
12528 #endif
12529 Syntax error
12530 _ACEOF
12531 if ac_fn_cxx_try_cpp "$LINENO"; then :
12532
12533 else
12534 # Broken: fails on valid input.
12535 continue
12536 fi
12537 rm -f conftest.err conftest.i conftest.$ac_ext
12538
12539 # OK, works on sane cases. Now check whether nonexistent headers
12540 # can be detected and how.
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 #include <ac_nonexistent.h>
12544 _ACEOF
12545 if ac_fn_cxx_try_cpp "$LINENO"; then :
12546 # Broken: success on invalid input.
12547 continue
12548 else
12549 # Passes both tests.
12550 ac_preproc_ok=:
12551 break
12552 fi
12553 rm -f conftest.err conftest.i conftest.$ac_ext
12554
12555 done
12556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12557 rm -f conftest.i conftest.err conftest.$ac_ext
12558 if $ac_preproc_ok; then :
12559
12560 else
12561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12563 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12564 See \`config.log' for more details" "$LINENO" 5; }
12565 fi
12566
12567 ac_ext=c
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572
12573 else
12574 _lt_caught_CXX_error=yes
12575 fi
12576
12577 ac_ext=cpp
12578 ac_cpp='$CXXCPP $CPPFLAGS'
12579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12582
12583 archive_cmds_need_lc_CXX=no
12584 allow_undefined_flag_CXX=
12585 always_export_symbols_CXX=no
12586 archive_expsym_cmds_CXX=
12587 compiler_needs_object_CXX=no
12588 export_dynamic_flag_spec_CXX=
12589 hardcode_direct_CXX=no
12590 hardcode_direct_absolute_CXX=no
12591 hardcode_libdir_flag_spec_CXX=
12592 hardcode_libdir_flag_spec_ld_CXX=
12593 hardcode_libdir_separator_CXX=
12594 hardcode_minus_L_CXX=no
12595 hardcode_shlibpath_var_CXX=unsupported
12596 hardcode_automatic_CXX=no
12597 inherit_rpath_CXX=no
12598 module_cmds_CXX=
12599 module_expsym_cmds_CXX=
12600 link_all_deplibs_CXX=unknown
12601 old_archive_cmds_CXX=$old_archive_cmds
12602 reload_flag_CXX=$reload_flag
12603 reload_cmds_CXX=$reload_cmds
12604 no_undefined_flag_CXX=
12605 whole_archive_flag_spec_CXX=
12606 enable_shared_with_static_runtimes_CXX=no
12607
12608 # Source file extension for C++ test sources.
12609 ac_ext=cpp
12610
12611 # Object file extension for compiled C++ test sources.
12612 objext=o
12613 objext_CXX=$objext
12614
12615 # No sense in running all these tests if we already determined that
12616 # the CXX compiler isn't working. Some variables (like enable_shared)
12617 # are currently assumed to apply to all compilers on this platform,
12618 # and will be corrupted by setting them based on a non-working compiler.
12619 if test "$_lt_caught_CXX_error" != yes; then
12620 # Code to be used in simple compile tests
12621 lt_simple_compile_test_code="int some_variable = 0;"
12622
12623 # Code to be used in simple link tests
12624 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12625
12626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12627
12628
12629
12630
12631
12632
12633 # If no C compiler was specified, use CC.
12634 LTCC=${LTCC-"$CC"}
12635
12636 # If no C compiler flags were specified, use CFLAGS.
12637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12638
12639 # Allow CC to be a program name with arguments.
12640 compiler=$CC
12641
12642
12643 # save warnings/boilerplate of simple test code
12644 ac_outfile=conftest.$ac_objext
12645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12647 _lt_compiler_boilerplate=`cat conftest.err`
12648 $RM conftest*
12649
12650 ac_outfile=conftest.$ac_objext
12651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12653 _lt_linker_boilerplate=`cat conftest.err`
12654 $RM -r conftest*
12655
12656
12657 # Allow CC to be a program name with arguments.
12658 lt_save_CC=$CC
12659 lt_save_CFLAGS=$CFLAGS
12660 lt_save_LD=$LD
12661 lt_save_GCC=$GCC
12662 GCC=$GXX
12663 lt_save_with_gnu_ld=$with_gnu_ld
12664 lt_save_path_LD=$lt_cv_path_LD
12665 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12666 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12667 else
12668 $as_unset lt_cv_prog_gnu_ld
12669 fi
12670 if test -n "${lt_cv_path_LDCXX+set}"; then
12671 lt_cv_path_LD=$lt_cv_path_LDCXX
12672 else
12673 $as_unset lt_cv_path_LD
12674 fi
12675 test -z "${LDCXX+set}" || LD=$LDCXX
12676 CC=${CXX-"c++"}
12677 CFLAGS=$CXXFLAGS
12678 compiler=$CC
12679 compiler_CXX=$CC
12680 for cc_temp in $compiler""; do
12681 case $cc_temp in
12682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12684 \-*) ;;
12685 *) break;;
12686 esac
12687 done
12688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12689
12690
12691 if test -n "$compiler"; then
12692 # We don't want -fno-exception when compiling C++ code, so set the
12693 # no_builtin_flag separately
12694 if test "$GXX" = yes; then
12695 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12696 else
12697 lt_prog_compiler_no_builtin_flag_CXX=
12698 fi
12699
12700 if test "$GXX" = yes; then
12701 # Set up default GNU C++ configuration
12702
12703
12704
12705 # Check whether --with-gnu-ld was given.
12706 if test "${with_gnu_ld+set}" = set; then :
12707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12708 else
12709 with_gnu_ld=no
12710 fi
12711
12712 ac_prog=ld
12713 if test "$GCC" = yes; then
12714 # Check if gcc -print-prog-name=ld gives a path.
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12716 $as_echo_n "checking for ld used by $CC... " >&6; }
12717 case $host in
12718 *-*-mingw*)
12719 # gcc leaves a trailing carriage return which upsets mingw
12720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12721 *)
12722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12723 esac
12724 case $ac_prog in
12725 # Accept absolute paths.
12726 [\\/]* | ?:[\\/]*)
12727 re_direlt='/[^/][^/]*/\.\./'
12728 # Canonicalize the pathname of ld
12729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12732 done
12733 test -z "$LD" && LD="$ac_prog"
12734 ;;
12735 "")
12736 # If it fails, then pretend we aren't using GCC.
12737 ac_prog=ld
12738 ;;
12739 *)
12740 # If it is relative, then search for the first ld in PATH.
12741 with_gnu_ld=unknown
12742 ;;
12743 esac
12744 elif test "$with_gnu_ld" = yes; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12746 $as_echo_n "checking for GNU ld... " >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12749 $as_echo_n "checking for non-GNU ld... " >&6; }
12750 fi
12751 if ${lt_cv_path_LD+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test -z "$LD"; then
12755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12756 for ac_dir in $PATH; do
12757 IFS="$lt_save_ifs"
12758 test -z "$ac_dir" && ac_dir=.
12759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12760 lt_cv_path_LD="$ac_dir/$ac_prog"
12761 # Check to see if the program is GNU ld. I'd rather use --version,
12762 # but apparently some variants of GNU ld only accept -v.
12763 # Break only if it was the GNU/non-GNU ld that we prefer.
12764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12765 *GNU* | *'with BFD'*)
12766 test "$with_gnu_ld" != no && break
12767 ;;
12768 *)
12769 test "$with_gnu_ld" != yes && break
12770 ;;
12771 esac
12772 fi
12773 done
12774 IFS="$lt_save_ifs"
12775 else
12776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12777 fi
12778 fi
12779
12780 LD="$lt_cv_path_LD"
12781 if test -n "$LD"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12783 $as_echo "$LD" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12791 if ${lt_cv_prog_gnu_ld+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12795 case `$LD -v 2>&1 </dev/null` in
12796 *GNU* | *'with BFD'*)
12797 lt_cv_prog_gnu_ld=yes
12798 ;;
12799 *)
12800 lt_cv_prog_gnu_ld=no
12801 ;;
12802 esac
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12806 with_gnu_ld=$lt_cv_prog_gnu_ld
12807
12808
12809
12810
12811
12812
12813
12814 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12815 # archiving commands below assume that GNU ld is being used.
12816 if test "$with_gnu_ld" = yes; then
12817 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12819
12820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822
12823 # If archive_cmds runs LD, not CC, wlarc should be empty
12824 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12825 # investigate it a little bit more. (MM)
12826 wlarc='${wl}'
12827
12828 # ancient GNU ld didn't support --whole-archive et. al.
12829 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12830 $GREP 'no-whole-archive' > /dev/null; then
12831 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12832 else
12833 whole_archive_flag_spec_CXX=
12834 fi
12835 else
12836 with_gnu_ld=no
12837 wlarc=
12838
12839 # A generic and very simple default shared library creation
12840 # command for GNU C++ for the case where it uses the native
12841 # linker, instead of GNU ld. If possible, this setting should
12842 # overridden to take advantage of the native linker features on
12843 # the platform it is being used on.
12844 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12845 fi
12846
12847 # Commands to make compiler produce verbose output that lists
12848 # what "hidden" libraries, object files and flags are used when
12849 # linking a shared library.
12850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12851
12852 else
12853 GXX=no
12854 with_gnu_ld=no
12855 wlarc=
12856 fi
12857
12858 # PORTME: fill in a description of your system's C++ link characteristics
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12860 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12861 ld_shlibs_CXX=yes
12862 case $host_os in
12863 aix3*)
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12866 ;;
12867 aix[4-9]*)
12868 if test "$host_cpu" = ia64; then
12869 # On IA64, the linker does run time linking by default, so we don't
12870 # have to do anything special.
12871 aix_use_runtimelinking=no
12872 exp_sym_flag='-Bexport'
12873 no_entry_flag=""
12874 else
12875 aix_use_runtimelinking=no
12876
12877 # Test if we are trying to use run time linking or normal
12878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12879 # need to do runtime linking.
12880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12881 for ld_flag in $LDFLAGS; do
12882 case $ld_flag in
12883 *-brtl*)
12884 aix_use_runtimelinking=yes
12885 break
12886 ;;
12887 esac
12888 done
12889 ;;
12890 esac
12891
12892 exp_sym_flag='-bexport'
12893 no_entry_flag='-bnoentry'
12894 fi
12895
12896 # When large executables or shared objects are built, AIX ld can
12897 # have problems creating the table of contents. If linking a library
12898 # or program results in "error TOC overflow" add -mminimal-toc to
12899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12901
12902 archive_cmds_CXX=''
12903 hardcode_direct_CXX=yes
12904 hardcode_direct_absolute_CXX=yes
12905 hardcode_libdir_separator_CXX=':'
12906 link_all_deplibs_CXX=yes
12907 file_list_spec_CXX='${wl}-f,'
12908
12909 if test "$GXX" = yes; then
12910 case $host_os in aix4.[012]|aix4.[012].*)
12911 # We only want to do this on AIX 4.2 and lower, the check
12912 # below for broken collect2 doesn't work under 4.3+
12913 collect2name=`${CC} -print-prog-name=collect2`
12914 if test -f "$collect2name" &&
12915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12916 then
12917 # We have reworked collect2
12918 :
12919 else
12920 # We have old collect2
12921 hardcode_direct_CXX=unsupported
12922 # It fails to find uninstalled libraries when the uninstalled
12923 # path is not listed in the libpath. Setting hardcode_minus_L
12924 # to unsupported forces relinking
12925 hardcode_minus_L_CXX=yes
12926 hardcode_libdir_flag_spec_CXX='-L$libdir'
12927 hardcode_libdir_separator_CXX=
12928 fi
12929 esac
12930 shared_flag='-shared'
12931 if test "$aix_use_runtimelinking" = yes; then
12932 shared_flag="$shared_flag "'${wl}-G'
12933 fi
12934 else
12935 # not using gcc
12936 if test "$host_cpu" = ia64; then
12937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12938 # chokes on -Wl,-G. The following line is correct:
12939 shared_flag='-G'
12940 else
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag='${wl}-G'
12943 else
12944 shared_flag='${wl}-bM:SRE'
12945 fi
12946 fi
12947 fi
12948
12949 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12950 # It seems that -bexpall does not export symbols beginning with
12951 # underscore (_), so it is better to generate a list of symbols to
12952 # export.
12953 always_export_symbols_CXX=yes
12954 if test "$aix_use_runtimelinking" = yes; then
12955 # Warning - without using the other runtime loading flags (-brtl),
12956 # -berok will link without error, but may produce a broken library.
12957 allow_undefined_flag_CXX='-berok'
12958 # Determine the default libpath from the value encoded in an empty
12959 # executable.
12960 if test "${lt_cv_aix_libpath+set}" = set; then
12961 aix_libpath=$lt_cv_aix_libpath
12962 else
12963 if ${lt_cv_aix_libpath__CXX+:} false; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12968
12969 int
12970 main ()
12971 {
12972
12973 ;
12974 return 0;
12975 }
12976 _ACEOF
12977 if ac_fn_cxx_try_link "$LINENO"; then :
12978
12979 lt_aix_libpath_sed='
12980 /Import File Strings/,/^$/ {
12981 /^0/ {
12982 s/^0 *\([^ ]*\) *$/\1/
12983 p
12984 }
12985 }'
12986 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987 # Check for a 64-bit object if we didn't find anything.
12988 if test -z "$lt_cv_aix_libpath__CXX"; then
12989 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990 fi
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 if test -z "$lt_cv_aix_libpath__CXX"; then
12995 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12996 fi
12997
12998 fi
12999
13000 aix_libpath=$lt_cv_aix_libpath__CXX
13001 fi
13002
13003 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13004
13005 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13006 else
13007 if test "$host_cpu" = ia64; then
13008 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13009 allow_undefined_flag_CXX="-z nodefs"
13010 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"
13011 else
13012 # Determine the default libpath from the value encoded in an
13013 # empty executable.
13014 if test "${lt_cv_aix_libpath+set}" = set; then
13015 aix_libpath=$lt_cv_aix_libpath
13016 else
13017 if ${lt_cv_aix_libpath__CXX+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022
13023 int
13024 main ()
13025 {
13026
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_cxx_try_link "$LINENO"; then :
13032
13033 lt_aix_libpath_sed='
13034 /Import File Strings/,/^$/ {
13035 /^0/ {
13036 s/^0 *\([^ ]*\) *$/\1/
13037 p
13038 }
13039 }'
13040 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13041 # Check for a 64-bit object if we didn't find anything.
13042 if test -z "$lt_cv_aix_libpath__CXX"; then
13043 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 fi
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13048 if test -z "$lt_cv_aix_libpath__CXX"; then
13049 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13050 fi
13051
13052 fi
13053
13054 aix_libpath=$lt_cv_aix_libpath__CXX
13055 fi
13056
13057 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13058 # Warning - without using the other run time loading flags,
13059 # -berok will link without error, but may produce a broken library.
13060 no_undefined_flag_CXX=' ${wl}-bernotok'
13061 allow_undefined_flag_CXX=' ${wl}-berok'
13062 if test "$with_gnu_ld" = yes; then
13063 # We only use this code for GNU lds that support --whole-archive.
13064 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13065 else
13066 # Exported symbols can be pulled into shared objects from archives
13067 whole_archive_flag_spec_CXX='$convenience'
13068 fi
13069 archive_cmds_need_lc_CXX=yes
13070 # This is similar to how AIX traditionally builds its shared
13071 # libraries.
13072 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'
13073 fi
13074 fi
13075 ;;
13076
13077 beos*)
13078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13079 allow_undefined_flag_CXX=unsupported
13080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13081 # support --undefined. This deserves some investigation. FIXME
13082 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13083 else
13084 ld_shlibs_CXX=no
13085 fi
13086 ;;
13087
13088 chorus*)
13089 case $cc_basename in
13090 *)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 esac
13095 ;;
13096
13097 cygwin* | mingw* | pw32* | cegcc*)
13098 case $GXX,$cc_basename in
13099 ,cl* | no,cl*)
13100 # Native MSVC
13101 # hardcode_libdir_flag_spec is actually meaningless, as there is
13102 # no search path for DLLs.
13103 hardcode_libdir_flag_spec_CXX=' '
13104 allow_undefined_flag_CXX=unsupported
13105 always_export_symbols_CXX=yes
13106 file_list_spec_CXX='@'
13107 # Tell ltmain to make .lib files, not .a files.
13108 libext=lib
13109 # Tell ltmain to make .dll files, not .so files.
13110 shrext_cmds=".dll"
13111 # FIXME: Setting linknames here is a bad hack.
13112 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13113 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13114 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13115 else
13116 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13117 fi~
13118 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13119 linknames='
13120 # The linker will not automatically build a static lib if we build a DLL.
13121 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13122 enable_shared_with_static_runtimes_CXX=yes
13123 # Don't use ranlib
13124 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13125 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13126 lt_tool_outputfile="@TOOL_OUTPUT@"~
13127 case $lt_outputfile in
13128 *.exe|*.EXE) ;;
13129 *)
13130 lt_outputfile="$lt_outputfile.exe"
13131 lt_tool_outputfile="$lt_tool_outputfile.exe"
13132 ;;
13133 esac~
13134 func_to_tool_file "$lt_outputfile"~
13135 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13136 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13137 $RM "$lt_outputfile.manifest";
13138 fi'
13139 ;;
13140 *)
13141 # g++
13142 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13143 # as there is no search path for DLLs.
13144 hardcode_libdir_flag_spec_CXX='-L$libdir'
13145 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13146 allow_undefined_flag_CXX=unsupported
13147 always_export_symbols_CXX=no
13148 enable_shared_with_static_runtimes_CXX=yes
13149
13150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13151 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'
13152 # If the export-symbols file already is a .def file (1st line
13153 # is EXPORTS), use it as is; otherwise, prepend...
13154 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13155 cp $export_symbols $output_objdir/$soname.def;
13156 else
13157 echo EXPORTS > $output_objdir/$soname.def;
13158 cat $export_symbols >> $output_objdir/$soname.def;
13159 fi~
13160 $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'
13161 else
13162 ld_shlibs_CXX=no
13163 fi
13164 ;;
13165 esac
13166 ;;
13167 darwin* | rhapsody*)
13168
13169
13170 archive_cmds_need_lc_CXX=no
13171 hardcode_direct_CXX=no
13172 hardcode_automatic_CXX=yes
13173 hardcode_shlibpath_var_CXX=unsupported
13174 if test "$lt_cv_ld_force_load" = "yes"; then
13175 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13176 else
13177 whole_archive_flag_spec_CXX=''
13178 fi
13179 link_all_deplibs_CXX=yes
13180 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13181 case $cc_basename in
13182 ifort*) _lt_dar_can_shared=yes ;;
13183 *) _lt_dar_can_shared=$GCC ;;
13184 esac
13185 if test "$_lt_dar_can_shared" = "yes"; then
13186 output_verbose_link_cmd=func_echo_all
13187 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}"
13188 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13189 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}"
13190 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}"
13191 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13192 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}"
13193 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}"
13194 fi
13195
13196 else
13197 ld_shlibs_CXX=no
13198 fi
13199
13200 ;;
13201
13202 dgux*)
13203 case $cc_basename in
13204 ec++*)
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208 ghcx*)
13209 # Green Hills C++ Compiler
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13212 ;;
13213 *)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 esac
13218 ;;
13219
13220 freebsd[12]*)
13221 # C++ shared libraries reported to be fairly broken before
13222 # switch to ELF
13223 ld_shlibs_CXX=no
13224 ;;
13225
13226 freebsd-elf*)
13227 archive_cmds_need_lc_CXX=no
13228 ;;
13229
13230 freebsd* | dragonfly*)
13231 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13232 # conventions
13233 ld_shlibs_CXX=yes
13234 ;;
13235
13236 gnu*)
13237 ;;
13238
13239 haiku*)
13240 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 link_all_deplibs_CXX=yes
13242 ;;
13243
13244 hpux9*)
13245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_separator_CXX=:
13247 export_dynamic_flag_spec_CXX='${wl}-E'
13248 hardcode_direct_CXX=yes
13249 hardcode_minus_L_CXX=yes # Not in the search PATH,
13250 # but as the default
13251 # location of the library.
13252
13253 case $cc_basename in
13254 CC*)
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 ;;
13258 aCC*)
13259 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'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 #
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13267 # dependencies.
13268 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; func_echo_all "$list"'
13269 ;;
13270 *)
13271 if test "$GXX" = yes; then
13272 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13273 else
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13276 fi
13277 ;;
13278 esac
13279 ;;
13280
13281 hpux10*|hpux11*)
13282 if test $with_gnu_ld = no; then
13283 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13285
13286 case $host_cpu in
13287 hppa*64*|ia64*)
13288 ;;
13289 *)
13290 export_dynamic_flag_spec_CXX='${wl}-E'
13291 ;;
13292 esac
13293 fi
13294 case $host_cpu in
13295 hppa*64*|ia64*)
13296 hardcode_direct_CXX=no
13297 hardcode_shlibpath_var_CXX=no
13298 ;;
13299 *)
13300 hardcode_direct_CXX=yes
13301 hardcode_direct_absolute_CXX=yes
13302 hardcode_minus_L_CXX=yes # Not in the search PATH,
13303 # but as the default
13304 # location of the library.
13305 ;;
13306 esac
13307
13308 case $cc_basename in
13309 CC*)
13310 # FIXME: insert proper C++ library support
13311 ld_shlibs_CXX=no
13312 ;;
13313 aCC*)
13314 case $host_cpu in
13315 hppa*64*)
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13317 ;;
13318 ia64*)
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320 ;;
13321 *)
13322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323 ;;
13324 esac
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13328 #
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13332 # dependencies.
13333 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; func_echo_all "$list"'
13334 ;;
13335 *)
13336 if test "$GXX" = yes; then
13337 if test $with_gnu_ld = no; then
13338 case $host_cpu in
13339 hppa*64*)
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341 ;;
13342 ia64*)
13343 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344 ;;
13345 *)
13346 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13347 ;;
13348 esac
13349 fi
13350 else
13351 # FIXME: insert proper C++ library support
13352 ld_shlibs_CXX=no
13353 fi
13354 ;;
13355 esac
13356 ;;
13357
13358 interix[3-9]*)
13359 hardcode_direct_CXX=no
13360 hardcode_shlibpath_var_CXX=no
13361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13362 export_dynamic_flag_spec_CXX='${wl}-E'
13363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13364 # Instead, shared libraries are loaded at an image base (0x10000000 by
13365 # default) and relocated if they conflict, which is a slow very memory
13366 # consuming and fragmenting process. To avoid this, we pick a random,
13367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13369 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'
13370 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'
13371 ;;
13372 irix5* | irix6*)
13373 case $cc_basename in
13374 CC*)
13375 # SGI C++
13376 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13377
13378 # Archives containing C++ object files must be created using
13379 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13383 ;;
13384 *)
13385 if test "$GXX" = yes; then
13386 if test "$with_gnu_ld" = no; then
13387 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13388 else
13389 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13390 fi
13391 fi
13392 link_all_deplibs_CXX=yes
13393 ;;
13394 esac
13395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13396 hardcode_libdir_separator_CXX=:
13397 inherit_rpath_CXX=yes
13398 ;;
13399
13400 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13401 case $cc_basename in
13402 KCC*)
13403 # Kuck and Associates, Inc. (KAI) C++ Compiler
13404
13405 # KCC will only create a shared library if the output file
13406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13407 # to its proper name (with version) after linking.
13408 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'
13409 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'
13410 # Commands to make compiler produce verbose output that lists
13411 # what "hidden" libraries, object files and flags are used when
13412 # linking a shared library.
13413 #
13414 # There doesn't appear to be a way to prevent this compiler from
13415 # explicitly linking system object files so we need to strip them
13416 # from the output so that they don't get included in the library
13417 # dependencies.
13418 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; func_echo_all "$list"'
13419
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422
13423 # Archives containing C++ object files must be created using
13424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13425 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13426 ;;
13427 icpc* | ecpc* )
13428 # Intel C++
13429 with_gnu_ld=yes
13430 # version 8.0 and above of icpc choke on multiply defined symbols
13431 # if we add $predep_objects and $postdep_objects, however 7.1 and
13432 # earlier do not add the objects themselves.
13433 case `$CC -V 2>&1` in
13434 *"Version 7."*)
13435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 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'
13437 ;;
13438 *) # Version 8.0 or newer
13439 tmp_idyn=
13440 case $host_cpu in
13441 ia64*) tmp_idyn=' -i_dynamic';;
13442 esac
13443 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13445 ;;
13446 esac
13447 archive_cmds_need_lc_CXX=no
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13451 ;;
13452 pgCC* | pgcpp*)
13453 # Portland Group C++ compiler
13454 case `$CC -V` in
13455 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13456 prelink_cmds_CXX='tpldir=Template.dir~
13457 rm -rf $tpldir~
13458 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13459 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13460 old_archive_cmds_CXX='tpldir=Template.dir~
13461 rm -rf $tpldir~
13462 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13463 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13464 $RANLIB $oldlib'
13465 archive_cmds_CXX='tpldir=Template.dir~
13466 rm -rf $tpldir~
13467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13469 archive_expsym_cmds_CXX='tpldir=Template.dir~
13470 rm -rf $tpldir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13472 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13473 ;;
13474 *) # Version 6 and above use weak symbols
13475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476 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'
13477 ;;
13478 esac
13479
13480 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13483 ;;
13484 cxx*)
13485 # Compaq C++
13486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13487 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'
13488
13489 runpath_var=LD_RUN_PATH
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491 hardcode_libdir_separator_CXX=:
13492
13493 # Commands to make compiler produce verbose output that lists
13494 # what "hidden" libraries, object files and flags are used when
13495 # linking a shared library.
13496 #
13497 # There doesn't appear to be a way to prevent this compiler from
13498 # explicitly linking system object files so we need to strip them
13499 # from the output so that they don't get included in the library
13500 # dependencies.
13501 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13502 ;;
13503 xl* | mpixl* | bgxl*)
13504 # IBM XL 8.0 on PPC, with GNU ld
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13507 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 if test "x$supports_anon_versioning" = xyes; then
13509 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13511 echo "local: *; };" >> $output_objdir/$libname.ver~
13512 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13513 fi
13514 ;;
13515 *)
13516 case `$CC -V 2>&1 | sed 5q` in
13517 *Sun\ C*)
13518 # Sun C++ 5.9
13519 no_undefined_flag_CXX=' -zdefs'
13520 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521 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'
13522 hardcode_libdir_flag_spec_CXX='-R$libdir'
13523 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13524 compiler_needs_object_CXX=yes
13525
13526 # Not sure whether something based on
13527 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13528 # would be better.
13529 output_verbose_link_cmd='func_echo_all'
13530
13531 # Archives containing C++ object files must be created using
13532 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13533 # necessary to make sure instantiated templates are included
13534 # in the archive.
13535 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13536 ;;
13537 esac
13538 ;;
13539 esac
13540 ;;
13541
13542 lynxos*)
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546
13547 m88k*)
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551
13552 mvs*)
13553 case $cc_basename in
13554 cxx*)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558 *)
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 ;;
13562 esac
13563 ;;
13564
13565 netbsd*)
13566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13567 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13568 wlarc=
13569 hardcode_libdir_flag_spec_CXX='-R$libdir'
13570 hardcode_direct_CXX=yes
13571 hardcode_shlibpath_var_CXX=no
13572 fi
13573 # Workaround some broken pre-1.5 toolchains
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13575 ;;
13576
13577 *nto* | *qnx*)
13578 ld_shlibs_CXX=yes
13579 ;;
13580
13581 openbsd2*)
13582 # C++ shared libraries are fairly broken
13583 ld_shlibs_CXX=no
13584 ;;
13585
13586 openbsd*)
13587 if test -f /usr/libexec/ld.so; then
13588 hardcode_direct_CXX=yes
13589 hardcode_shlibpath_var_CXX=no
13590 hardcode_direct_absolute_CXX=yes
13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13594 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13595 export_dynamic_flag_spec_CXX='${wl}-E'
13596 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13597 fi
13598 output_verbose_link_cmd=func_echo_all
13599 else
13600 ld_shlibs_CXX=no
13601 fi
13602 ;;
13603
13604 osf3* | osf4* | osf5*)
13605 case $cc_basename in
13606 KCC*)
13607 # Kuck and Associates, Inc. (KAI) C++ Compiler
13608
13609 # KCC will only create a shared library if the output file
13610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13611 # to its proper name (with version) after linking.
13612 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'
13613
13614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13615 hardcode_libdir_separator_CXX=:
13616
13617 # Archives containing C++ object files must be created using
13618 # the KAI C++ compiler.
13619 case $host in
13620 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13621 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13622 esac
13623 ;;
13624 RCC*)
13625 # Rational C++ 2.4.1
13626 # FIXME: insert proper C++ library support
13627 ld_shlibs_CXX=no
13628 ;;
13629 cxx*)
13630 case $host in
13631 osf3*)
13632 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13633 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635 ;;
13636 *)
13637 allow_undefined_flag_CXX=' -expect_unresolved \*'
13638 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13640 echo "-hidden">> $lib.exp~
13641 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13642 $RM $lib.exp'
13643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13644 ;;
13645 esac
13646
13647 hardcode_libdir_separator_CXX=:
13648
13649 # Commands to make compiler produce verbose output that lists
13650 # what "hidden" libraries, object files and flags are used when
13651 # linking a shared library.
13652 #
13653 # There doesn't appear to be a way to prevent this compiler from
13654 # explicitly linking system object files so we need to strip them
13655 # from the output so that they don't get included in the library
13656 # dependencies.
13657 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13658 ;;
13659 *)
13660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13662 case $host in
13663 osf3*)
13664 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13665 ;;
13666 *)
13667 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13668 ;;
13669 esac
13670
13671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672 hardcode_libdir_separator_CXX=:
13673
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
13677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13678
13679 else
13680 # FIXME: insert proper C++ library support
13681 ld_shlibs_CXX=no
13682 fi
13683 ;;
13684 esac
13685 ;;
13686
13687 psos*)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 ;;
13691
13692 sunos4*)
13693 case $cc_basename in
13694 CC*)
13695 # Sun C++ 4.x
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 ;;
13699 lcc*)
13700 # Lucid
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704 *)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 esac
13709 ;;
13710
13711 solaris*)
13712 case $cc_basename in
13713 CC* | sunCC*)
13714 # Sun C++ 4.2, 5.x and Centerline C++
13715 archive_cmds_need_lc_CXX=yes
13716 no_undefined_flag_CXX=' -zdefs'
13717 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $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'
13720
13721 hardcode_libdir_flag_spec_CXX='-R$libdir'
13722 hardcode_shlibpath_var_CXX=no
13723 case $host_os in
13724 solaris2.[0-5] | solaris2.[0-5].*) ;;
13725 *)
13726 # The compiler driver will combine and reorder linker options,
13727 # but understands `-z linker_flag'.
13728 # Supported since Solaris 2.6 (maybe 2.5.1?)
13729 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13730 ;;
13731 esac
13732 link_all_deplibs_CXX=yes
13733
13734 output_verbose_link_cmd='func_echo_all'
13735
13736 # Archives containing C++ object files must be created using
13737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13738 # necessary to make sure instantiated templates are included
13739 # in the archive.
13740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13741 ;;
13742 gcx*)
13743 # Green Hills C++ Compiler
13744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13745
13746 # The C++ compiler must be used to create the archive.
13747 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13748 ;;
13749 *)
13750 # GNU C++ compiler with Solaris linker
13751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13752 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13753 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13754 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13757
13758 # Commands to make compiler produce verbose output that lists
13759 # what "hidden" libraries, object files and flags are used when
13760 # linking a shared library.
13761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13762 else
13763 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13764 # platform.
13765 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13767 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13768
13769 # Commands to make compiler produce verbose output that lists
13770 # what "hidden" libraries, object files and flags are used when
13771 # linking a shared library.
13772 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13773 fi
13774
13775 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13776 case $host_os in
13777 solaris2.[0-5] | solaris2.[0-5].*) ;;
13778 *)
13779 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13780 ;;
13781 esac
13782 fi
13783 ;;
13784 esac
13785 ;;
13786
13787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13788 no_undefined_flag_CXX='${wl}-z,text'
13789 archive_cmds_need_lc_CXX=no
13790 hardcode_shlibpath_var_CXX=no
13791 runpath_var='LD_RUN_PATH'
13792
13793 case $cc_basename in
13794 CC*)
13795 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 ;;
13798 *)
13799 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 ;;
13802 esac
13803 ;;
13804
13805 sysv5* | sco3.2v5* | sco5v6*)
13806 # Note: We can NOT use -z defs as we might desire, because we do not
13807 # link with -lc, and that would cause any symbols used from libc to
13808 # always be unresolved, which means just about no library would
13809 # ever link correctly. If we're not using GNU ld we use -z text
13810 # though, which does catch some bad symbols but isn't as heavy-handed
13811 # as -z defs.
13812 no_undefined_flag_CXX='${wl}-z,text'
13813 allow_undefined_flag_CXX='${wl}-z,nodefs'
13814 archive_cmds_need_lc_CXX=no
13815 hardcode_shlibpath_var_CXX=no
13816 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13817 hardcode_libdir_separator_CXX=':'
13818 link_all_deplibs_CXX=yes
13819 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13820 runpath_var='LD_RUN_PATH'
13821
13822 case $cc_basename in
13823 CC*)
13824 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13827 '"$old_archive_cmds_CXX"
13828 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13829 '"$reload_cmds_CXX"
13830 ;;
13831 *)
13832 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 ;;
13835 esac
13836 ;;
13837
13838 tandem*)
13839 case $cc_basename in
13840 NCC*)
13841 # NonStop-UX NCC 3.20
13842 # FIXME: insert proper C++ library support
13843 ld_shlibs_CXX=no
13844 ;;
13845 *)
13846 # FIXME: insert proper C++ library support
13847 ld_shlibs_CXX=no
13848 ;;
13849 esac
13850 ;;
13851
13852 vxworks*)
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13855 ;;
13856
13857 *)
13858 # FIXME: insert proper C++ library support
13859 ld_shlibs_CXX=no
13860 ;;
13861 esac
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13864 $as_echo "$ld_shlibs_CXX" >&6; }
13865 test "$ld_shlibs_CXX" = no && can_build_shared=no
13866
13867 GCC_CXX="$GXX"
13868 LD_CXX="$LD"
13869
13870 ## CAVEAT EMPTOR:
13871 ## There is no encapsulation within the following macros, do not change
13872 ## the running order or otherwise move them around unless you know exactly
13873 ## what you are doing...
13874 # Dependencies to place before and after the object being linked:
13875 predep_objects_CXX=
13876 postdep_objects_CXX=
13877 predeps_CXX=
13878 postdeps_CXX=
13879 compiler_lib_search_path_CXX=
13880
13881 cat > conftest.$ac_ext <<_LT_EOF
13882 class Foo
13883 {
13884 public:
13885 Foo (void) { a = 0; }
13886 private:
13887 int a;
13888 };
13889 _LT_EOF
13890
13891
13892 _lt_libdeps_save_CFLAGS=$CFLAGS
13893 case "$CC $CFLAGS " in #(
13894 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13895 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13896 esac
13897
13898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13899 (eval $ac_compile) 2>&5
13900 ac_status=$?
13901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; }; then
13903 # Parse the compiler output and extract the necessary
13904 # objects, libraries and library flags.
13905
13906 # Sentinel used to keep track of whether or not we are before
13907 # the conftest object file.
13908 pre_test_object_deps_done=no
13909
13910 for p in `eval "$output_verbose_link_cmd"`; do
13911 case ${prev}${p} in
13912
13913 -L* | -R* | -l*)
13914 # Some compilers place space between "-{L,R}" and the path.
13915 # Remove the space.
13916 if test $p = "-L" ||
13917 test $p = "-R"; then
13918 prev=$p
13919 continue
13920 fi
13921
13922 # Expand the sysroot to ease extracting the directories later.
13923 if test -z "$prev"; then
13924 case $p in
13925 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13926 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13927 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13928 esac
13929 fi
13930 case $p in
13931 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13932 esac
13933 if test "$pre_test_object_deps_done" = no; then
13934 case ${prev} in
13935 -L | -R)
13936 # Internal compiler library paths should come after those
13937 # provided the user. The postdeps already come after the
13938 # user supplied libs so there is no need to process them.
13939 if test -z "$compiler_lib_search_path_CXX"; then
13940 compiler_lib_search_path_CXX="${prev}${p}"
13941 else
13942 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13943 fi
13944 ;;
13945 # The "-l" case would never come before the object being
13946 # linked, so don't bother handling this case.
13947 esac
13948 else
13949 if test -z "$postdeps_CXX"; then
13950 postdeps_CXX="${prev}${p}"
13951 else
13952 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13953 fi
13954 fi
13955 prev=
13956 ;;
13957
13958 *.lto.$objext) ;; # Ignore GCC LTO objects
13959 *.$objext)
13960 # This assumes that the test object file only shows up
13961 # once in the compiler output.
13962 if test "$p" = "conftest.$objext"; then
13963 pre_test_object_deps_done=yes
13964 continue
13965 fi
13966
13967 if test "$pre_test_object_deps_done" = no; then
13968 if test -z "$predep_objects_CXX"; then
13969 predep_objects_CXX="$p"
13970 else
13971 predep_objects_CXX="$predep_objects_CXX $p"
13972 fi
13973 else
13974 if test -z "$postdep_objects_CXX"; then
13975 postdep_objects_CXX="$p"
13976 else
13977 postdep_objects_CXX="$postdep_objects_CXX $p"
13978 fi
13979 fi
13980 ;;
13981
13982 *) ;; # Ignore the rest.
13983
13984 esac
13985 done
13986
13987 # Clean up.
13988 rm -f a.out a.exe
13989 else
13990 echo "libtool.m4: error: problem compiling CXX test program"
13991 fi
13992
13993 $RM -f confest.$objext
13994 CFLAGS=$_lt_libdeps_save_CFLAGS
13995
13996 # PORTME: override above test on systems where it is broken
13997 case $host_os in
13998 interix[3-9]*)
13999 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14000 # hack all around it, let's just trust "g++" to DTRT.
14001 predep_objects_CXX=
14002 postdep_objects_CXX=
14003 postdeps_CXX=
14004 ;;
14005
14006 linux*)
14007 case `$CC -V 2>&1 | sed 5q` in
14008 *Sun\ C*)
14009 # Sun C++ 5.9
14010
14011 # The more standards-conforming stlport4 library is
14012 # incompatible with the Cstd library. Avoid specifying
14013 # it if it's in CXXFLAGS. Ignore libCrun as
14014 # -library=stlport4 depends on it.
14015 case " $CXX $CXXFLAGS " in
14016 *" -library=stlport4 "*)
14017 solaris_use_stlport4=yes
14018 ;;
14019 esac
14020
14021 if test "$solaris_use_stlport4" != yes; then
14022 postdeps_CXX='-library=Cstd -library=Crun'
14023 fi
14024 ;;
14025 esac
14026 ;;
14027
14028 solaris*)
14029 case $cc_basename in
14030 CC* | sunCC*)
14031 # The more standards-conforming stlport4 library is
14032 # incompatible with the Cstd library. Avoid specifying
14033 # it if it's in CXXFLAGS. Ignore libCrun as
14034 # -library=stlport4 depends on it.
14035 case " $CXX $CXXFLAGS " in
14036 *" -library=stlport4 "*)
14037 solaris_use_stlport4=yes
14038 ;;
14039 esac
14040
14041 # Adding this requires a known-good setup of shared libraries for
14042 # Sun compiler versions before 5.6, else PIC objects from an old
14043 # archive will be linked into the output, leading to subtle bugs.
14044 if test "$solaris_use_stlport4" != yes; then
14045 postdeps_CXX='-library=Cstd -library=Crun'
14046 fi
14047 ;;
14048 esac
14049 ;;
14050 esac
14051
14052
14053 case " $postdeps_CXX " in
14054 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14055 esac
14056 compiler_lib_search_dirs_CXX=
14057 if test -n "${compiler_lib_search_path_CXX}"; then
14058 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14059 fi
14060
14061
14062
14063
14064
14065
14066
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 lt_prog_compiler_wl_CXX=
14092 lt_prog_compiler_pic_CXX=
14093 lt_prog_compiler_static_CXX=
14094
14095
14096 # C++ specific cases for pic, static, wl, etc.
14097 if test "$GXX" = yes; then
14098 lt_prog_compiler_wl_CXX='-Wl,'
14099 lt_prog_compiler_static_CXX='-static'
14100
14101 case $host_os in
14102 aix*)
14103 # All AIX code is PIC.
14104 if test "$host_cpu" = ia64; then
14105 # AIX 5 now supports IA64 processor
14106 lt_prog_compiler_static_CXX='-Bstatic'
14107 fi
14108 ;;
14109
14110 amigaos*)
14111 case $host_cpu in
14112 powerpc)
14113 # see comment about AmigaOS4 .so support
14114 lt_prog_compiler_pic_CXX='-fPIC'
14115 ;;
14116 m68k)
14117 # FIXME: we need at least 68020 code to build shared libraries, but
14118 # adding the `-m68020' flag to GCC prevents building anything better,
14119 # like `-m68040'.
14120 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14121 ;;
14122 esac
14123 ;;
14124
14125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14126 # PIC is the default for these OSes.
14127 ;;
14128 mingw* | cygwin* | os2* | pw32* | cegcc*)
14129 # This hack is so that the source file can tell whether it is being
14130 # built for inclusion in a dll (and should export symbols for example).
14131 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14132 # (--disable-auto-import) libraries
14133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14134 ;;
14135 darwin* | rhapsody*)
14136 # PIC is the default on this platform
14137 # Common symbols not allowed in MH_DYLIB files
14138 lt_prog_compiler_pic_CXX='-fno-common'
14139 ;;
14140 *djgpp*)
14141 # DJGPP does not support shared libraries at all
14142 lt_prog_compiler_pic_CXX=
14143 ;;
14144 haiku*)
14145 # PIC is the default for Haiku.
14146 # The "-static" flag exists, but is broken.
14147 lt_prog_compiler_static_CXX=
14148 ;;
14149 interix[3-9]*)
14150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14151 # Instead, we relocate shared libraries at runtime.
14152 ;;
14153 sysv4*MP*)
14154 if test -d /usr/nec; then
14155 lt_prog_compiler_pic_CXX=-Kconform_pic
14156 fi
14157 ;;
14158 hpux*)
14159 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14160 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14161 # sets the default TLS model and affects inlining.
14162 case $host_cpu in
14163 hppa*64*)
14164 ;;
14165 *)
14166 lt_prog_compiler_pic_CXX='-fPIC'
14167 ;;
14168 esac
14169 ;;
14170 *qnx* | *nto*)
14171 # QNX uses GNU C++, but need to define -shared option too, otherwise
14172 # it will coredump.
14173 lt_prog_compiler_pic_CXX='-fPIC -shared'
14174 ;;
14175 *)
14176 lt_prog_compiler_pic_CXX='-fPIC'
14177 ;;
14178 esac
14179 else
14180 case $host_os in
14181 aix[4-9]*)
14182 # All AIX code is PIC.
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static_CXX='-Bstatic'
14186 else
14187 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14188 fi
14189 ;;
14190 chorus*)
14191 case $cc_basename in
14192 cxch68*)
14193 # Green Hills C++ Compiler
14194 # _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"
14195 ;;
14196 esac
14197 ;;
14198 mingw* | cygwin* | os2* | pw32* | cegcc*)
14199 # This hack is so that the source file can tell whether it is being
14200 # built for inclusion in a dll (and should export symbols for example).
14201 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14202 ;;
14203 dgux*)
14204 case $cc_basename in
14205 ec++*)
14206 lt_prog_compiler_pic_CXX='-KPIC'
14207 ;;
14208 ghcx*)
14209 # Green Hills C++ Compiler
14210 lt_prog_compiler_pic_CXX='-pic'
14211 ;;
14212 *)
14213 ;;
14214 esac
14215 ;;
14216 freebsd* | dragonfly*)
14217 # FreeBSD uses GNU C++
14218 ;;
14219 hpux9* | hpux10* | hpux11*)
14220 case $cc_basename in
14221 CC*)
14222 lt_prog_compiler_wl_CXX='-Wl,'
14223 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14224 if test "$host_cpu" != ia64; then
14225 lt_prog_compiler_pic_CXX='+Z'
14226 fi
14227 ;;
14228 aCC*)
14229 lt_prog_compiler_wl_CXX='-Wl,'
14230 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14231 case $host_cpu in
14232 hppa*64*|ia64*)
14233 # +Z the default
14234 ;;
14235 *)
14236 lt_prog_compiler_pic_CXX='+Z'
14237 ;;
14238 esac
14239 ;;
14240 *)
14241 ;;
14242 esac
14243 ;;
14244 interix*)
14245 # This is c89, which is MS Visual C++ (no shared libs)
14246 # Anyone wants to do a port?
14247 ;;
14248 irix5* | irix6* | nonstopux*)
14249 case $cc_basename in
14250 CC*)
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_static_CXX='-non_shared'
14253 # CC pic flag -KPIC is the default.
14254 ;;
14255 *)
14256 ;;
14257 esac
14258 ;;
14259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14260 case $cc_basename in
14261 KCC*)
14262 # KAI C++ Compiler
14263 lt_prog_compiler_wl_CXX='--backend -Wl,'
14264 lt_prog_compiler_pic_CXX='-fPIC'
14265 ;;
14266 ecpc* )
14267 # old Intel C++ for x86_64 which still supported -KPIC.
14268 lt_prog_compiler_wl_CXX='-Wl,'
14269 lt_prog_compiler_pic_CXX='-KPIC'
14270 lt_prog_compiler_static_CXX='-static'
14271 ;;
14272 icpc* )
14273 # Intel C++, used to be incompatible with GCC.
14274 # ICC 10 doesn't accept -KPIC any more.
14275 lt_prog_compiler_wl_CXX='-Wl,'
14276 lt_prog_compiler_pic_CXX='-fPIC'
14277 lt_prog_compiler_static_CXX='-static'
14278 ;;
14279 pgCC* | pgcpp*)
14280 # Portland Group C++ compiler
14281 lt_prog_compiler_wl_CXX='-Wl,'
14282 lt_prog_compiler_pic_CXX='-fpic'
14283 lt_prog_compiler_static_CXX='-Bstatic'
14284 ;;
14285 cxx*)
14286 # Compaq C++
14287 # Make sure the PIC flag is empty. It appears that all Alpha
14288 # Linux and Compaq Tru64 Unix objects are PIC.
14289 lt_prog_compiler_pic_CXX=
14290 lt_prog_compiler_static_CXX='-non_shared'
14291 ;;
14292 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14293 # IBM XL 8.0, 9.0 on PPC and BlueGene
14294 lt_prog_compiler_wl_CXX='-Wl,'
14295 lt_prog_compiler_pic_CXX='-qpic'
14296 lt_prog_compiler_static_CXX='-qstaticlink'
14297 ;;
14298 *)
14299 case `$CC -V 2>&1 | sed 5q` in
14300 *Sun\ C*)
14301 # Sun C++ 5.9
14302 lt_prog_compiler_pic_CXX='-KPIC'
14303 lt_prog_compiler_static_CXX='-Bstatic'
14304 lt_prog_compiler_wl_CXX='-Qoption ld '
14305 ;;
14306 esac
14307 ;;
14308 esac
14309 ;;
14310 lynxos*)
14311 ;;
14312 m88k*)
14313 ;;
14314 mvs*)
14315 case $cc_basename in
14316 cxx*)
14317 lt_prog_compiler_pic_CXX='-W c,exportall'
14318 ;;
14319 *)
14320 ;;
14321 esac
14322 ;;
14323 netbsd* | netbsdelf*-gnu)
14324 ;;
14325 *qnx* | *nto*)
14326 # QNX uses GNU C++, but need to define -shared option too, otherwise
14327 # it will coredump.
14328 lt_prog_compiler_pic_CXX='-fPIC -shared'
14329 ;;
14330 osf3* | osf4* | osf5*)
14331 case $cc_basename in
14332 KCC*)
14333 lt_prog_compiler_wl_CXX='--backend -Wl,'
14334 ;;
14335 RCC*)
14336 # Rational C++ 2.4.1
14337 lt_prog_compiler_pic_CXX='-pic'
14338 ;;
14339 cxx*)
14340 # Digital/Compaq C++
14341 lt_prog_compiler_wl_CXX='-Wl,'
14342 # Make sure the PIC flag is empty. It appears that all Alpha
14343 # Linux and Compaq Tru64 Unix objects are PIC.
14344 lt_prog_compiler_pic_CXX=
14345 lt_prog_compiler_static_CXX='-non_shared'
14346 ;;
14347 *)
14348 ;;
14349 esac
14350 ;;
14351 psos*)
14352 ;;
14353 solaris*)
14354 case $cc_basename in
14355 CC* | sunCC*)
14356 # Sun C++ 4.2, 5.x and Centerline C++
14357 lt_prog_compiler_pic_CXX='-KPIC'
14358 lt_prog_compiler_static_CXX='-Bstatic'
14359 lt_prog_compiler_wl_CXX='-Qoption ld '
14360 ;;
14361 gcx*)
14362 # Green Hills C++ Compiler
14363 lt_prog_compiler_pic_CXX='-PIC'
14364 ;;
14365 *)
14366 ;;
14367 esac
14368 ;;
14369 sunos4*)
14370 case $cc_basename in
14371 CC*)
14372 # Sun C++ 4.x
14373 lt_prog_compiler_pic_CXX='-pic'
14374 lt_prog_compiler_static_CXX='-Bstatic'
14375 ;;
14376 lcc*)
14377 # Lucid
14378 lt_prog_compiler_pic_CXX='-pic'
14379 ;;
14380 *)
14381 ;;
14382 esac
14383 ;;
14384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14385 case $cc_basename in
14386 CC*)
14387 lt_prog_compiler_wl_CXX='-Wl,'
14388 lt_prog_compiler_pic_CXX='-KPIC'
14389 lt_prog_compiler_static_CXX='-Bstatic'
14390 ;;
14391 esac
14392 ;;
14393 tandem*)
14394 case $cc_basename in
14395 NCC*)
14396 # NonStop-UX NCC 3.20
14397 lt_prog_compiler_pic_CXX='-KPIC'
14398 ;;
14399 *)
14400 ;;
14401 esac
14402 ;;
14403 vxworks*)
14404 ;;
14405 *)
14406 lt_prog_compiler_can_build_shared_CXX=no
14407 ;;
14408 esac
14409 fi
14410
14411 case $host_os in
14412 # For platforms which do not support PIC, -DPIC is meaningless:
14413 *djgpp*)
14414 lt_prog_compiler_pic_CXX=
14415 ;;
14416 *)
14417 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14418 ;;
14419 esac
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14423 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14429 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14430 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14431
14432 #
14433 # Check to make sure the PIC flag actually works.
14434 #
14435 if test -n "$lt_prog_compiler_pic_CXX"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14437 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14438 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 lt_cv_prog_compiler_pic_works_CXX=no
14442 ac_outfile=conftest.$ac_objext
14443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14444 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14445 # Insert the option either (1) after the last *FLAGS variable, or
14446 # (2) before a word containing "conftest.", or (3) at the end.
14447 # Note that $ac_compile itself does not contain backslashes and begins
14448 # with a dollar sign (not a hyphen), so the echo should work correctly.
14449 # The option is referenced via a variable to avoid confusing sed.
14450 lt_compile=`echo "$ac_compile" | $SED \
14451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14453 -e 's:$: $lt_compiler_flag:'`
14454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14455 (eval "$lt_compile" 2>conftest.err)
14456 ac_status=$?
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 if (exit $ac_status) && test -s "$ac_outfile"; then
14460 # The compiler can only warn and ignore the option if not recognized
14461 # So say no if there are warnings other than the usual output.
14462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14465 lt_cv_prog_compiler_pic_works_CXX=yes
14466 fi
14467 fi
14468 $RM conftest*
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14472 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14473
14474 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14475 case $lt_prog_compiler_pic_CXX in
14476 "" | " "*) ;;
14477 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14478 esac
14479 else
14480 lt_prog_compiler_pic_CXX=
14481 lt_prog_compiler_can_build_shared_CXX=no
14482 fi
14483
14484 fi
14485
14486
14487
14488
14489
14490 #
14491 # Check to make sure the static flag actually works.
14492 #
14493 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14496 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 lt_cv_prog_compiler_static_works_CXX=no
14500 save_LDFLAGS="$LDFLAGS"
14501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14502 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14504 # The linker can only warn and ignore the option if not recognized
14505 # So say no if there are warnings
14506 if test -s conftest.err; then
14507 # Append any errors to the config.log.
14508 cat conftest.err 1>&5
14509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14511 if diff conftest.exp conftest.er2 >/dev/null; then
14512 lt_cv_prog_compiler_static_works_CXX=yes
14513 fi
14514 else
14515 lt_cv_prog_compiler_static_works_CXX=yes
14516 fi
14517 fi
14518 $RM -r conftest*
14519 LDFLAGS="$save_LDFLAGS"
14520
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14523 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14524
14525 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14526 :
14527 else
14528 lt_prog_compiler_static_CXX=
14529 fi
14530
14531
14532
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14536 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 lt_cv_prog_compiler_c_o_CXX=no
14540 $RM -r conftest 2>/dev/null
14541 mkdir conftest
14542 cd conftest
14543 mkdir out
14544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14545
14546 lt_compiler_flag="-o out/conftest2.$ac_objext"
14547 # Insert the option either (1) after the last *FLAGS variable, or
14548 # (2) before a word containing "conftest.", or (3) at the end.
14549 # Note that $ac_compile itself does not contain backslashes and begins
14550 # with a dollar sign (not a hyphen), so the echo should work correctly.
14551 lt_compile=`echo "$ac_compile" | $SED \
14552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14554 -e 's:$: $lt_compiler_flag:'`
14555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14556 (eval "$lt_compile" 2>out/conftest.err)
14557 ac_status=$?
14558 cat out/conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14561 then
14562 # The compiler can only warn and ignore the option if not recognized
14563 # So say no if there are warnings
14564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14567 lt_cv_prog_compiler_c_o_CXX=yes
14568 fi
14569 fi
14570 chmod u+w . 2>&5
14571 $RM conftest*
14572 # SGI C++ compiler will create directory out/ii_files/ for
14573 # template instantiation
14574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14575 $RM out/* && rmdir out
14576 cd ..
14577 $RM -r conftest
14578 $RM conftest*
14579
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14582 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14583
14584
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14588 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 lt_cv_prog_compiler_c_o_CXX=no
14592 $RM -r conftest 2>/dev/null
14593 mkdir conftest
14594 cd conftest
14595 mkdir out
14596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14597
14598 lt_compiler_flag="-o out/conftest2.$ac_objext"
14599 # Insert the option either (1) after the last *FLAGS variable, or
14600 # (2) before a word containing "conftest.", or (3) at the end.
14601 # Note that $ac_compile itself does not contain backslashes and begins
14602 # with a dollar sign (not a hyphen), so the echo should work correctly.
14603 lt_compile=`echo "$ac_compile" | $SED \
14604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14606 -e 's:$: $lt_compiler_flag:'`
14607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14608 (eval "$lt_compile" 2>out/conftest.err)
14609 ac_status=$?
14610 cat out/conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14613 then
14614 # The compiler can only warn and ignore the option if not recognized
14615 # So say no if there are warnings
14616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14619 lt_cv_prog_compiler_c_o_CXX=yes
14620 fi
14621 fi
14622 chmod u+w . 2>&5
14623 $RM conftest*
14624 # SGI C++ compiler will create directory out/ii_files/ for
14625 # template instantiation
14626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14627 $RM out/* && rmdir out
14628 cd ..
14629 $RM -r conftest
14630 $RM conftest*
14631
14632 fi
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14634 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14635
14636
14637
14638
14639 hard_links="nottested"
14640 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14641 # do not overwrite the value of need_locks provided by the user
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14643 $as_echo_n "checking if we can lock with hard links... " >&6; }
14644 hard_links=yes
14645 $RM conftest*
14646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14647 touch conftest.a
14648 ln conftest.a conftest.b 2>&5 || hard_links=no
14649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14651 $as_echo "$hard_links" >&6; }
14652 if test "$hard_links" = no; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14655 need_locks=warn
14656 fi
14657 else
14658 need_locks=no
14659 fi
14660
14661
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14665
14666 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14667 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14668 case $host_os in
14669 aix[4-9]*)
14670 # If we're using GNU nm, then we don't want the "-C" option.
14671 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14672 # Also, AIX nm treats weak defined symbols like other global defined
14673 # symbols, whereas GNU nm marks them as "W".
14674 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14675 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14676 else
14677 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'
14678 fi
14679 ;;
14680 pw32*)
14681 export_symbols_cmds_CXX="$ltdll_cmds"
14682 ;;
14683 cygwin* | mingw* | cegcc*)
14684 case $cc_basename in
14685 cl*) ;;
14686 *)
14687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14688 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14689 ;;
14690 esac
14691 ;;
14692 linux* | k*bsd*-gnu | gnu*)
14693 link_all_deplibs_CXX=no
14694 ;;
14695 *)
14696 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14697 ;;
14698 esac
14699
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14701 $as_echo "$ld_shlibs_CXX" >&6; }
14702 test "$ld_shlibs_CXX" = no && can_build_shared=no
14703
14704 with_gnu_ld_CXX=$with_gnu_ld
14705
14706
14707
14708
14709
14710
14711 #
14712 # Do we need to explicitly link libc?
14713 #
14714 case "x$archive_cmds_need_lc_CXX" in
14715 x|xyes)
14716 # Assume -lc should be added
14717 archive_cmds_need_lc_CXX=yes
14718
14719 if test "$enable_shared" = yes && test "$GCC" = yes; then
14720 case $archive_cmds_CXX in
14721 *'~'*)
14722 # FIXME: we may have to deal with multi-command sequences.
14723 ;;
14724 '$CC '*)
14725 # Test whether the compiler implicitly links with -lc since on some
14726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14727 # to ld, don't add -lc before -lgcc.
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14729 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14730 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 $RM conftest*
14734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735
14736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14737 (eval $ac_compile) 2>&5
14738 ac_status=$?
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; } 2>conftest.err; then
14741 soname=conftest
14742 lib=conftest
14743 libobjs=conftest.$ac_objext
14744 deplibs=
14745 wl=$lt_prog_compiler_wl_CXX
14746 pic_flag=$lt_prog_compiler_pic_CXX
14747 compiler_flags=-v
14748 linker_flags=-v
14749 verstring=
14750 output_objdir=.
14751 libname=conftest
14752 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14753 allow_undefined_flag_CXX=
14754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14755 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14756 ac_status=$?
14757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14758 test $ac_status = 0; }
14759 then
14760 lt_cv_archive_cmds_need_lc_CXX=no
14761 else
14762 lt_cv_archive_cmds_need_lc_CXX=yes
14763 fi
14764 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14765 else
14766 cat conftest.err 1>&5
14767 fi
14768 $RM conftest*
14769
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14772 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14773 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14774 ;;
14775 esac
14776 fi
14777 ;;
14778 esac
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14844 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14845
14846 library_names_spec=
14847 libname_spec='lib$name'
14848 soname_spec=
14849 shrext_cmds=".so"
14850 postinstall_cmds=
14851 postuninstall_cmds=
14852 finish_cmds=
14853 finish_eval=
14854 shlibpath_var=
14855 shlibpath_overrides_runpath=unknown
14856 version_type=none
14857 dynamic_linker="$host_os ld.so"
14858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14859 need_lib_prefix=unknown
14860 hardcode_into_libs=no
14861
14862 # when you set need_version to no, make sure it does not cause -set_version
14863 # flags to be left without arguments
14864 need_version=unknown
14865
14866 case $host_os in
14867 aix3*)
14868 version_type=linux
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14870 shlibpath_var=LIBPATH
14871
14872 # AIX 3 has no versioning support, so we append a major version to the name.
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 ;;
14875
14876 aix[4-9]*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 hardcode_into_libs=yes
14881 if test "$host_cpu" = ia64; then
14882 # AIX 5 supports IA64
14883 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 else
14886 # With GCC up to 2.95.x, collect2 would create an import file
14887 # for dependence libraries. The import file would start with
14888 # the line `#! .'. This would cause the generated library to
14889 # depend on `.', always an invalid library. This was fixed in
14890 # development snapshots of GCC prior to 3.0.
14891 case $host_os in
14892 aix4 | aix4.[01] | aix4.[01].*)
14893 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14894 echo ' yes '
14895 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14896 :
14897 else
14898 can_build_shared=no
14899 fi
14900 ;;
14901 esac
14902 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14903 # soname into executable. Probably we can add versioning support to
14904 # collect2, so additional links can be useful in future.
14905 if test "$aix_use_runtimelinking" = yes; then
14906 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14907 # instead of lib<name>.a to let people know that these are not
14908 # typical AIX shared libraries.
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 else
14911 # We preserve .a as extension for shared libraries through AIX4.2
14912 # and later when we are not doing run time linking.
14913 library_names_spec='${libname}${release}.a $libname.a'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 fi
14916 shlibpath_var=LIBPATH
14917 fi
14918 ;;
14919
14920 amigaos*)
14921 case $host_cpu in
14922 powerpc)
14923 # Since July 2007 AmigaOS4 officially supports .so libraries.
14924 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 ;;
14927 m68k)
14928 library_names_spec='$libname.ixlibrary $libname.a'
14929 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14931 ;;
14932 esac
14933 ;;
14934
14935 beos*)
14936 library_names_spec='${libname}${shared_ext}'
14937 dynamic_linker="$host_os ld.so"
14938 shlibpath_var=LIBRARY_PATH
14939 ;;
14940
14941 bsdi[45]*)
14942 version_type=linux
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14950 # the default ld.so.conf also contains /usr/contrib/lib and
14951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14952 # libtool to hard-code these into programs
14953 ;;
14954
14955 cygwin* | mingw* | pw32* | cegcc*)
14956 version_type=windows
14957 shrext_cmds=".dll"
14958 need_version=no
14959 need_lib_prefix=no
14960
14961 case $GCC,$cc_basename in
14962 yes,*)
14963 # gcc
14964 library_names_spec='$libname.dll.a'
14965 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14966 postinstall_cmds='base_file=`basename \${file}`~
14967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14968 dldir=$destdir/`dirname \$dlpath`~
14969 test -d \$dldir || mkdir -p \$dldir~
14970 $install_prog $dir/$dlname \$dldir/$dlname~
14971 chmod a+x \$dldir/$dlname~
14972 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14973 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14974 fi'
14975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14976 dlpath=$dir/\$dldll~
14977 $RM \$dlpath'
14978 shlibpath_overrides_runpath=yes
14979
14980 case $host_os in
14981 cygwin*)
14982 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14983 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14984
14985 ;;
14986 mingw* | cegcc*)
14987 # MinGW DLLs use traditional 'lib' prefix
14988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14989 ;;
14990 pw32*)
14991 # pw32 DLLs use 'pw' prefix rather than 'lib'
14992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14993 ;;
14994 esac
14995 dynamic_linker='Win32 ld.exe'
14996 ;;
14997
14998 *,cl*)
14999 # Native MSVC
15000 libname_spec='$name'
15001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15002 library_names_spec='${libname}.dll.lib'
15003
15004 case $build_os in
15005 mingw*)
15006 sys_lib_search_path_spec=
15007 lt_save_ifs=$IFS
15008 IFS=';'
15009 for lt_path in $LIB
15010 do
15011 IFS=$lt_save_ifs
15012 # Let DOS variable expansion print the short 8.3 style file name.
15013 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15014 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15015 done
15016 IFS=$lt_save_ifs
15017 # Convert to MSYS style.
15018 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15019 ;;
15020 cygwin*)
15021 # Convert to unix form, then to dos form, then back to unix form
15022 # but this time dos style (no spaces!) so that the unix form looks
15023 # like /cygdrive/c/PROGRA~1:/cygdr...
15024 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15025 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15026 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15027 ;;
15028 *)
15029 sys_lib_search_path_spec="$LIB"
15030 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15031 # It is most probably a Windows format PATH.
15032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15033 else
15034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15035 fi
15036 # FIXME: find the short name or the path components, as spaces are
15037 # common. (e.g. "Program Files" -> "PROGRA~1")
15038 ;;
15039 esac
15040
15041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15042 postinstall_cmds='base_file=`basename \${file}`~
15043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15044 dldir=$destdir/`dirname \$dlpath`~
15045 test -d \$dldir || mkdir -p \$dldir~
15046 $install_prog $dir/$dlname \$dldir/$dlname'
15047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15048 dlpath=$dir/\$dldll~
15049 $RM \$dlpath'
15050 shlibpath_overrides_runpath=yes
15051 dynamic_linker='Win32 link.exe'
15052 ;;
15053
15054 *)
15055 # Assume MSVC wrapper
15056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15057 dynamic_linker='Win32 ld.exe'
15058 ;;
15059 esac
15060 # FIXME: first we should search . and the directory the executable is in
15061 shlibpath_var=PATH
15062 ;;
15063
15064 darwin* | rhapsody*)
15065 dynamic_linker="$host_os dyld"
15066 version_type=darwin
15067 need_lib_prefix=no
15068 need_version=no
15069 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15070 soname_spec='${libname}${release}${major}$shared_ext'
15071 shlibpath_overrides_runpath=yes
15072 shlibpath_var=DYLD_LIBRARY_PATH
15073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15074
15075 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15076 ;;
15077
15078 dgux*)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 ;;
15086
15087 freebsd1*)
15088 dynamic_linker=no
15089 ;;
15090
15091 freebsd* | dragonfly*)
15092 # DragonFly does not have aout. When/if they implement a new
15093 # versioning mechanism, adjust this.
15094 if test -x /usr/bin/objformat; then
15095 objformat=`/usr/bin/objformat`
15096 else
15097 case $host_os in
15098 freebsd[123]*) objformat=aout ;;
15099 *) objformat=elf ;;
15100 esac
15101 fi
15102 version_type=freebsd-$objformat
15103 case $version_type in
15104 freebsd-elf*)
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15106 need_version=no
15107 need_lib_prefix=no
15108 ;;
15109 freebsd-*)
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15111 need_version=yes
15112 ;;
15113 esac
15114 shlibpath_var=LD_LIBRARY_PATH
15115 case $host_os in
15116 freebsd2*)
15117 shlibpath_overrides_runpath=yes
15118 ;;
15119 freebsd3.[01]* | freebsdelf3.[01]*)
15120 shlibpath_overrides_runpath=yes
15121 hardcode_into_libs=yes
15122 ;;
15123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15125 shlibpath_overrides_runpath=no
15126 hardcode_into_libs=yes
15127 ;;
15128 *) # from 4.6 on, and DragonFly
15129 shlibpath_overrides_runpath=yes
15130 hardcode_into_libs=yes
15131 ;;
15132 esac
15133 ;;
15134
15135 gnu*)
15136 version_type=linux
15137 need_lib_prefix=no
15138 need_version=no
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=no
15143 hardcode_into_libs=yes
15144 ;;
15145
15146 haiku*)
15147 version_type=linux
15148 need_lib_prefix=no
15149 need_version=no
15150 dynamic_linker="$host_os runtime_loader"
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LIBRARY_PATH
15154 shlibpath_overrides_runpath=yes
15155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15156 hardcode_into_libs=yes
15157 ;;
15158
15159 hpux9* | hpux10* | hpux11*)
15160 # Give a soname corresponding to the major version so that dld.sl refuses to
15161 # link against other versions.
15162 version_type=sunos
15163 need_lib_prefix=no
15164 need_version=no
15165 case $host_cpu in
15166 ia64*)
15167 shrext_cmds='.so'
15168 hardcode_into_libs=yes
15169 dynamic_linker="$host_os dld.so"
15170 shlibpath_var=LD_LIBRARY_PATH
15171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 if test "X$HPUX_IA64_MODE" = X32; then
15175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15176 else
15177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15178 fi
15179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15180 ;;
15181 hppa*64*)
15182 shrext_cmds='.sl'
15183 hardcode_into_libs=yes
15184 dynamic_linker="$host_os dld.sl"
15185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15191 ;;
15192 *)
15193 shrext_cmds='.sl'
15194 dynamic_linker="$host_os dld.sl"
15195 shlibpath_var=SHLIB_PATH
15196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 ;;
15200 esac
15201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15202 postinstall_cmds='chmod 555 $lib'
15203 # or fails outright, so override atomically:
15204 install_override_mode=555
15205 ;;
15206
15207 interix[3-9]*)
15208 version_type=linux
15209 need_lib_prefix=no
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=no
15216 hardcode_into_libs=yes
15217 ;;
15218
15219 irix5* | irix6* | nonstopux*)
15220 case $host_os in
15221 nonstopux*) version_type=nonstopux ;;
15222 *)
15223 if test "$lt_cv_prog_gnu_ld" = yes; then
15224 version_type=linux
15225 else
15226 version_type=irix
15227 fi ;;
15228 esac
15229 need_lib_prefix=no
15230 need_version=no
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15233 case $host_os in
15234 irix5* | nonstopux*)
15235 libsuff= shlibsuff=
15236 ;;
15237 *)
15238 case $LD in # libtool.m4 will add one of these switches to LD
15239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15240 libsuff= shlibsuff= libmagic=32-bit;;
15241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15242 libsuff=32 shlibsuff=N32 libmagic=N32;;
15243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15245 *) libsuff= shlibsuff= libmagic=never-match;;
15246 esac
15247 ;;
15248 esac
15249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15250 shlibpath_overrides_runpath=no
15251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15253 hardcode_into_libs=yes
15254 ;;
15255
15256 # No shared lib support for Linux oldld, aout, or coff.
15257 linux*oldld* | linux*aout* | linux*coff*)
15258 dynamic_linker=no
15259 ;;
15260
15261 # This must be Linux ELF.
15262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=no
15271
15272 # Some binutils ld are patched to set DT_RUNPATH
15273 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15274 $as_echo_n "(cached) " >&6
15275 else
15276 lt_cv_shlibpath_overrides_runpath=no
15277 save_LDFLAGS=$LDFLAGS
15278 save_libdir=$libdir
15279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283
15284 int
15285 main ()
15286 {
15287
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_cxx_try_link "$LINENO"; then :
15293 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15294 lt_cv_shlibpath_overrides_runpath=yes
15295 fi
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext conftest.$ac_ext
15299 LDFLAGS=$save_LDFLAGS
15300 libdir=$save_libdir
15301
15302 fi
15303
15304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15305
15306 # This implies no fast_install, which is unacceptable.
15307 # Some rework will be needed to allow for fast_install
15308 # before this can be enabled.
15309 hardcode_into_libs=yes
15310
15311 # Append ld.so.conf contents to the search path
15312 if test -f /etc/ld.so.conf; then
15313 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;s/"//g;/^$/d' | tr '\n' ' '`
15314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15315 fi
15316
15317 # We used to test for /lib/ld.so.1 and disable shared libraries on
15318 # powerpc, because MkLinux only supported shared libraries with the
15319 # GNU dynamic linker. Since this was broken with cross compilers,
15320 # most powerpc-linux boxes support dynamic linking these days and
15321 # people can always --disable-shared, the test was removed, and we
15322 # assume the GNU/Linux dynamic linker is in use.
15323 dynamic_linker='GNU/Linux ld.so'
15324 ;;
15325
15326 netbsdelf*-gnu)
15327 version_type=linux
15328 need_lib_prefix=no
15329 need_version=no
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 shlibpath_overrides_runpath=no
15334 hardcode_into_libs=yes
15335 dynamic_linker='NetBSD ld.elf_so'
15336 ;;
15337
15338 netbsd*)
15339 version_type=sunos
15340 need_lib_prefix=no
15341 need_version=no
15342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345 dynamic_linker='NetBSD (a.out) ld.so'
15346 else
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 dynamic_linker='NetBSD ld.elf_so'
15350 fi
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15354 ;;
15355
15356 newsos6)
15357 version_type=linux
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 shlibpath_overrides_runpath=yes
15361 ;;
15362
15363 *nto* | *qnx*)
15364 version_type=qnx
15365 need_lib_prefix=no
15366 need_version=no
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=no
15371 hardcode_into_libs=yes
15372 dynamic_linker='ldqnx.so'
15373 ;;
15374
15375 openbsd*)
15376 version_type=sunos
15377 sys_lib_dlsearch_path_spec="/usr/lib"
15378 need_lib_prefix=no
15379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15380 case $host_os in
15381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15382 *) need_version=no ;;
15383 esac
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15388 case $host_os in
15389 openbsd2.[89] | openbsd2.[89].*)
15390 shlibpath_overrides_runpath=no
15391 ;;
15392 *)
15393 shlibpath_overrides_runpath=yes
15394 ;;
15395 esac
15396 else
15397 shlibpath_overrides_runpath=yes
15398 fi
15399 ;;
15400
15401 os2*)
15402 libname_spec='$name'
15403 shrext_cmds=".dll"
15404 need_lib_prefix=no
15405 library_names_spec='$libname${shared_ext} $libname.a'
15406 dynamic_linker='OS/2 ld.exe'
15407 shlibpath_var=LIBPATH
15408 ;;
15409
15410 osf3* | osf4* | osf5*)
15411 version_type=osf
15412 need_lib_prefix=no
15413 need_version=no
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15419 ;;
15420
15421 rdos*)
15422 dynamic_linker=no
15423 ;;
15424
15425 solaris*)
15426 version_type=linux
15427 need_lib_prefix=no
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes
15433 hardcode_into_libs=yes
15434 # ldd complains unless libraries are executable
15435 postinstall_cmds='chmod +x $lib'
15436 ;;
15437
15438 sunos4*)
15439 version_type=sunos
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 if test "$with_gnu_ld" = yes; then
15445 need_lib_prefix=no
15446 fi
15447 need_version=yes
15448 ;;
15449
15450 sysv4 | sysv4.3*)
15451 version_type=linux
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 case $host_vendor in
15456 sni)
15457 shlibpath_overrides_runpath=no
15458 need_lib_prefix=no
15459 runpath_var=LD_RUN_PATH
15460 ;;
15461 siemens)
15462 need_lib_prefix=no
15463 ;;
15464 motorola)
15465 need_lib_prefix=no
15466 need_version=no
15467 shlibpath_overrides_runpath=no
15468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15469 ;;
15470 esac
15471 ;;
15472
15473 sysv4*MP*)
15474 if test -d /usr/nec ;then
15475 version_type=linux
15476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15477 soname_spec='$libname${shared_ext}.$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 fi
15480 ;;
15481
15482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15483 version_type=freebsd-elf
15484 need_lib_prefix=no
15485 need_version=no
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=yes
15490 hardcode_into_libs=yes
15491 if test "$with_gnu_ld" = yes; then
15492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15493 else
15494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15495 case $host_os in
15496 sco3.2v5*)
15497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15498 ;;
15499 esac
15500 fi
15501 sys_lib_dlsearch_path_spec='/usr/lib'
15502 ;;
15503
15504 tpf*)
15505 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15506 version_type=linux
15507 need_lib_prefix=no
15508 need_version=no
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=no
15512 hardcode_into_libs=yes
15513 ;;
15514
15515 uts4*)
15516 version_type=linux
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 ;;
15521
15522 *)
15523 dynamic_linker=no
15524 ;;
15525 esac
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15527 $as_echo "$dynamic_linker" >&6; }
15528 test "$dynamic_linker" = no && can_build_shared=no
15529
15530 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15531 if test "$GCC" = yes; then
15532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15533 fi
15534
15535 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15536 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15537 fi
15538 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15539 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15540 fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15580 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15581 hardcode_action_CXX=
15582 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15583 test -n "$runpath_var_CXX" ||
15584 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15585
15586 # We can hardcode non-existent directories.
15587 if test "$hardcode_direct_CXX" != no &&
15588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15589 # have to relink, otherwise we might link with an installed library
15590 # when we should be linking with a yet-to-be-installed one
15591 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15592 test "$hardcode_minus_L_CXX" != no; then
15593 # Linking always hardcodes the temporary library directory.
15594 hardcode_action_CXX=relink
15595 else
15596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15597 hardcode_action_CXX=immediate
15598 fi
15599 else
15600 # We cannot hardcode anything, or else we can only hardcode existing
15601 # directories.
15602 hardcode_action_CXX=unsupported
15603 fi
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15605 $as_echo "$hardcode_action_CXX" >&6; }
15606
15607 if test "$hardcode_action_CXX" = relink ||
15608 test "$inherit_rpath_CXX" = yes; then
15609 # Fast installation is not supported
15610 enable_fast_install=no
15611 elif test "$shlibpath_overrides_runpath" = yes ||
15612 test "$enable_shared" = no; then
15613 # Fast installation is not necessary
15614 enable_fast_install=needless
15615 fi
15616
15617
15618
15619
15620
15621
15622
15623 fi # test -n "$compiler"
15624
15625 CC=$lt_save_CC
15626 CFLAGS=$lt_save_CFLAGS
15627 LDCXX=$LD
15628 LD=$lt_save_LD
15629 GCC=$lt_save_GCC
15630 with_gnu_ld=$lt_save_with_gnu_ld
15631 lt_cv_path_LDCXX=$lt_cv_path_LD
15632 lt_cv_path_LD=$lt_save_path_LD
15633 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15634 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15635 fi # test "$_lt_caught_CXX_error" != yes
15636
15637 ac_ext=c
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655 ac_config_commands="$ac_config_commands libtool"
15656
15657
15658
15659
15660 # Only expand once:
15661
15662
15663 if test -n "$ac_tool_prefix"; then
15664 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15665 set dummy ${ac_tool_prefix}windres; ac_word=$2
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15667 $as_echo_n "checking for $ac_word... " >&6; }
15668 if ${ac_cv_prog_RC+:} false; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 if test -n "$RC"; then
15672 ac_cv_prog_RC="$RC" # Let the user override the test.
15673 else
15674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675 for as_dir in $PATH
15676 do
15677 IFS=$as_save_IFS
15678 test -z "$as_dir" && as_dir=.
15679 for ac_exec_ext in '' $ac_executable_extensions; do
15680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15681 ac_cv_prog_RC="${ac_tool_prefix}windres"
15682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15683 break 2
15684 fi
15685 done
15686 done
15687 IFS=$as_save_IFS
15688
15689 fi
15690 fi
15691 RC=$ac_cv_prog_RC
15692 if test -n "$RC"; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15694 $as_echo "$RC" >&6; }
15695 else
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15697 $as_echo "no" >&6; }
15698 fi
15699
15700
15701 fi
15702 if test -z "$ac_cv_prog_RC"; then
15703 ac_ct_RC=$RC
15704 # Extract the first word of "windres", so it can be a program name with args.
15705 set dummy windres; ac_word=$2
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15707 $as_echo_n "checking for $ac_word... " >&6; }
15708 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 if test -n "$ac_ct_RC"; then
15712 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15713 else
15714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15715 for as_dir in $PATH
15716 do
15717 IFS=$as_save_IFS
15718 test -z "$as_dir" && as_dir=.
15719 for ac_exec_ext in '' $ac_executable_extensions; do
15720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15721 ac_cv_prog_ac_ct_RC="windres"
15722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15723 break 2
15724 fi
15725 done
15726 done
15727 IFS=$as_save_IFS
15728
15729 fi
15730 fi
15731 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15732 if test -n "$ac_ct_RC"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15734 $as_echo "$ac_ct_RC" >&6; }
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15738 fi
15739
15740 if test "x$ac_ct_RC" = x; then
15741 RC=""
15742 else
15743 case $cross_compiling:$ac_tool_warned in
15744 yes:)
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15747 ac_tool_warned=yes ;;
15748 esac
15749 RC=$ac_ct_RC
15750 fi
15751 else
15752 RC="$ac_cv_prog_RC"
15753 fi
15754
15755
15756
15757 # Source file extension for RC test sources.
15758 ac_ext=rc
15759
15760 # Object file extension for compiled RC test sources.
15761 objext=o
15762 objext_RC=$objext
15763
15764 # Code to be used in simple compile tests
15765 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15766
15767 # Code to be used in simple link tests
15768 lt_simple_link_test_code="$lt_simple_compile_test_code"
15769
15770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15771
15772
15773
15774
15775
15776
15777 # If no C compiler was specified, use CC.
15778 LTCC=${LTCC-"$CC"}
15779
15780 # If no C compiler flags were specified, use CFLAGS.
15781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15782
15783 # Allow CC to be a program name with arguments.
15784 compiler=$CC
15785
15786
15787 # save warnings/boilerplate of simple test code
15788 ac_outfile=conftest.$ac_objext
15789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15791 _lt_compiler_boilerplate=`cat conftest.err`
15792 $RM conftest*
15793
15794 ac_outfile=conftest.$ac_objext
15795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_linker_boilerplate=`cat conftest.err`
15798 $RM -r conftest*
15799
15800
15801 # Allow CC to be a program name with arguments.
15802 lt_save_CC="$CC"
15803 lt_save_CFLAGS=$CFLAGS
15804 lt_save_GCC=$GCC
15805 GCC=
15806 CC=${RC-"windres"}
15807 CFLAGS=
15808 compiler=$CC
15809 compiler_RC=$CC
15810 for cc_temp in $compiler""; do
15811 case $cc_temp in
15812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15814 \-*) ;;
15815 *) break;;
15816 esac
15817 done
15818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15819
15820 lt_cv_prog_compiler_c_o_RC=yes
15821
15822 if test -n "$compiler"; then
15823 :
15824
15825
15826
15827 fi
15828
15829 GCC=$lt_save_GCC
15830 ac_ext=c
15831 ac_cpp='$CPP $CPPFLAGS'
15832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15835
15836 CC=$lt_save_CC
15837 CFLAGS=$lt_save_CFLAGS
15838
15839
15840 # Extract the first word of "autogen", so it can be a program name with args.
15841 set dummy autogen; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15843 $as_echo_n "checking for $ac_word... " >&6; }
15844 if ${ac_cv_prog_HAVE_AUTOGEN+:} false; then :
15845 $as_echo_n "(cached) " >&6
15846 else
15847 if test -n "$HAVE_AUTOGEN"; then
15848 ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
15849 else
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851 for as_dir in $PATH
15852 do
15853 IFS=$as_save_IFS
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15857 ac_cv_prog_HAVE_AUTOGEN="yes"
15858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15859 break 2
15860 fi
15861 done
15862 done
15863 IFS=$as_save_IFS
15864
15865 test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
15866 fi
15867 fi
15868 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
15869 if test -n "$HAVE_AUTOGEN"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
15871 $as_echo "$HAVE_AUTOGEN" >&6; }
15872 else
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15875 fi
15876
15877
15878 # Extract the first word of "wine", so it can be a program name with args.
15879 set dummy wine; ac_word=$2
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15881 $as_echo_n "checking for $ac_word... " >&6; }
15882 if ${ac_cv_prog_HAVE_WINE+:} false; then :
15883 $as_echo_n "(cached) " >&6
15884 else
15885 if test -n "$HAVE_WINE"; then
15886 ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
15887 else
15888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $PATH
15890 do
15891 IFS=$as_save_IFS
15892 test -z "$as_dir" && as_dir=.
15893 for ac_exec_ext in '' $ac_executable_extensions; do
15894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15895 ac_cv_prog_HAVE_WINE="yes"
15896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15897 break 2
15898 fi
15899 done
15900 done
15901 IFS=$as_save_IFS
15902
15903 test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
15904 fi
15905 fi
15906 HAVE_WINE=$ac_cv_prog_HAVE_WINE
15907 if test -n "$HAVE_WINE"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
15909 $as_echo "$HAVE_WINE" >&6; }
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913 fi
15914
15915
15916
15917
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15919 $as_echo_n "checking whether ln -s works... " >&6; }
15920 LN_S=$as_ln_s
15921 if test "$LN_S" = "ln -s"; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15923 $as_echo "yes" >&6; }
15924 else
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15926 $as_echo "no, using $LN_S" >&6; }
15927 fi
15928
15929
15930 #------------------------------------------------------------------------------------
15931 # Rules for library version information:
15932 #
15933 # 1. Start with version information of `0:0:0' for each libtool library.
15934 # 2. Update the version information only immediately before a public release of
15935 # your software. More frequent updates are unnecessary, and only guarantee
15936 # that the current interface number gets larger faster.
15937 # 3. If the library source code has changed at all since the last update, then
15938 # increment revision (`c:r:a' becomes `c:r+1:a').
15939 # 4. If any interfaces have been added, removed, or changed since the last update,
15940 # increment current, and set revision to 0.
15941 # 5. If any interfaces have been added since the last public release, then increment
15942 # age.
15943 # 6. If any interfaces have been removed since the last public release, then set age
15944 # to 0.
15945
15946 CLEAN_VERSION=`echo $PACKAGE_VERSION | $SED "s/p.*//"`
15947 VERSION_MINOR=`echo $CLEAN_VERSION | $SED "s/.*\.//"`
15948
15949 SHARED_VERSION_INFO="1:$VERSION_MINOR:0"
15950
15951 #------------------------------------------------------------------------------------
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15954 $as_echo_n "checking for ANSI C header files... " >&6; }
15955 if ${ac_cv_header_stdc+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <stdlib.h>
15961 #include <stdarg.h>
15962 #include <string.h>
15963 #include <float.h>
15964
15965 int
15966 main ()
15967 {
15968
15969 ;
15970 return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974 ac_cv_header_stdc=yes
15975 else
15976 ac_cv_header_stdc=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979
15980 if test $ac_cv_header_stdc = yes; then
15981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15984 #include <string.h>
15985
15986 _ACEOF
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "memchr" >/dev/null 2>&1; then :
15989
15990 else
15991 ac_cv_header_stdc=no
15992 fi
15993 rm -f conftest*
15994
15995 fi
15996
15997 if test $ac_cv_header_stdc = yes; then
15998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001 #include <stdlib.h>
16002
16003 _ACEOF
16004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16005 $EGREP "free" >/dev/null 2>&1; then :
16006
16007 else
16008 ac_cv_header_stdc=no
16009 fi
16010 rm -f conftest*
16011
16012 fi
16013
16014 if test $ac_cv_header_stdc = yes; then
16015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16016 if test "$cross_compiling" = yes; then :
16017 :
16018 else
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16021 #include <ctype.h>
16022 #include <stdlib.h>
16023 #if ((' ' & 0x0FF) == 0x020)
16024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16026 #else
16027 # define ISLOWER(c) \
16028 (('a' <= (c) && (c) <= 'i') \
16029 || ('j' <= (c) && (c) <= 'r') \
16030 || ('s' <= (c) && (c) <= 'z'))
16031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16032 #endif
16033
16034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16035 int
16036 main ()
16037 {
16038 int i;
16039 for (i = 0; i < 256; i++)
16040 if (XOR (islower (i), ISLOWER (i))
16041 || toupper (i) != TOUPPER (i))
16042 return 2;
16043 return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_run "$LINENO"; then :
16047
16048 else
16049 ac_cv_header_stdc=no
16050 fi
16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16052 conftest.$ac_objext conftest.beam conftest.$ac_ext
16053 fi
16054
16055 fi
16056 fi
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16058 $as_echo "$ac_cv_header_stdc" >&6; }
16059 if test $ac_cv_header_stdc = yes; then
16060
16061 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16062
16063 fi
16064
16065
16066 for ac_header in endian.h
16067 do :
16068 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16069 if test "x$ac_cv_header_endian_h" = xyes; then :
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_ENDIAN_H 1
16072 _ACEOF
16073
16074 fi
16075
16076 done
16077
16078 for ac_header in byteswap.h
16079 do :
16080 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
16081 if test "x$ac_cv_header_byteswap_h" = xyes; then :
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_BYTESWAP_H 1
16084 _ACEOF
16085
16086 fi
16087
16088 done
16089
16090 for ac_header in locale.h
16091 do :
16092 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16093 if test "x$ac_cv_header_locale_h" = xyes; then :
16094 cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LOCALE_H 1
16096 _ACEOF
16097
16098 fi
16099
16100 done
16101
16102 for ac_header in sys/time.h
16103 do :
16104 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16105 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16106 cat >>confdefs.h <<_ACEOF
16107 #define HAVE_SYS_TIME_H 1
16108 _ACEOF
16109
16110 fi
16111
16112 done
16113
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16116 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16117 if ${ac_cv_header_sys_wait_h+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <sys/types.h>
16123 #include <sys/wait.h>
16124 #ifndef WEXITSTATUS
16125 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16126 #endif
16127 #ifndef WIFEXITED
16128 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16129 #endif
16130
16131 int
16132 main ()
16133 {
16134 int s;
16135 wait (&s);
16136 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16137 ;
16138 return 0;
16139 }
16140 _ACEOF
16141 if ac_fn_c_try_compile "$LINENO"; then :
16142 ac_cv_header_sys_wait_h=yes
16143 else
16144 ac_cv_header_sys_wait_h=no
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 fi
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16149 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16150 if test $ac_cv_header_sys_wait_h = yes; then
16151
16152 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16153
16154 fi
16155
16156
16157 ac_fn_c_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default"
16158 if test "x$ac_cv_have_decl_S_IRGRP" = xyes; then :
16159 ac_have_decl=1
16160 else
16161 ac_have_decl=0
16162 fi
16163
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_DECL_S_IRGRP $ac_have_decl
16166 _ACEOF
16167
16168 if test x$ac_cv_have_decl_S_IRGRP = xyes ; then
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define HAVE_DECL_S_IRGRP 1
16172 _ACEOF
16173
16174 else
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_DECL_S_IRGRP 0
16177 _ACEOF
16178
16179 fi
16180
16181 if test "$build_os:$target_os:$host_os:$HAVE_WINE" = "linux-gnu:mingw32msvc:mingw32msvc:yes"; then
16182 LINUX_MINGW_CROSS_TEST_TRUE=
16183 LINUX_MINGW_CROSS_TEST_FALSE='#'
16184 else
16185 LINUX_MINGW_CROSS_TEST_TRUE='#'
16186 LINUX_MINGW_CROSS_TEST_FALSE=
16187 fi
16188
16189
16190 #====================================================================================
16191 # Check for support of the struct hack.
16192
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C99 struct flexible array support" >&5
16194 $as_echo_n "checking C99 struct flexible array support... " >&6; }
16195 if ${ac_cv_c99_flexible_array+:} false; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 # Initialize to unknown
16199 ac_cv_c99_flexible_array=no
16200
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203
16204 #include <stdlib.h>
16205 typedef struct {
16206 int k;
16207 char buffer [] ;
16208 } MY_STRUCT ;
16209
16210 int
16211 main ()
16212 {
16213 MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
16214 ;
16215 return 0;
16216 }
16217 _ACEOF
16218 if ac_fn_c_try_link "$LINENO"; then :
16219 ac_cv_c99_flexible_array=yes
16220 else
16221 ac_cv_c99_flexible_array=no
16222
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226 fi
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_flexible_array" >&5
16228 $as_echo "$ac_cv_c99_flexible_array" >&6; }
16229
16230
16231 if test x$ac_cv_c99_flexible_array = xyes ; then
16232
16233 $as_echo "#define HAVE_FLEXIBLE_ARRAY 1" >>confdefs.h
16234
16235 else
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
16237 $as_echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** feature known as the flexible array struct member. ***" >&5
16239 $as_echo "$as_me: WARNING: *** feature known as the flexible array struct member. ***" >&2;}
16240 $as_echo "#define HAVE_FLEXIBLE_ARRAY 0" >>confdefs.h
16241
16242 fi
16243
16244 #====================================================================================
16245 # Couple of initializations here. Fill in real values later.
16246
16247 SHLIB_VERSION_ARG=""
16248
16249 #====================================================================================
16250 # Finished checking, handle options.
16251
16252 # Check whether --enable-experimental was given.
16253 if test "${enable_experimental+set}" = set; then :
16254 enableval=$enable_experimental;
16255 fi
16256
16257
16258 EXPERIMENTAL_CODE=0
16259 if test x$enable_experimental = xyes ; then
16260 EXPERIMENTAL_CODE=1
16261 fi
16262
16263 cat >>confdefs.h <<_ACEOF
16264 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
16265 _ACEOF
16266
16267
16268 # Check whether --enable-gcc-werror was given.
16269 if test "${enable_gcc_werror+set}" = set; then :
16270 enableval=$enable_gcc_werror;
16271 fi
16272
16273
16274 # Check whether --enable-gcc-pipe was given.
16275 if test "${enable_gcc_pipe+set}" = set; then :
16276 enableval=$enable_gcc_pipe;
16277 fi
16278
16279
16280 # Check whether --enable-gcc-opt was given.
16281 if test "${enable_gcc_opt+set}" = set; then :
16282 enableval=$enable_gcc_opt;
16283 fi
16284
16285
16286 # Check whether --enable-cpu-clip was given.
16287 if test "${enable_cpu_clip+set}" = set; then :
16288 enableval=$enable_cpu_clip;
16289 fi
16290
16291
16292 # Check whether --enable-bow-docs was given.
16293 if test "${enable_bow_docs+set}" = set; then :
16294 enableval=$enable_bow_docs;
16295 fi
16296
16297
16298 # Check whether --enable-sqlite was given.
16299 if test "${enable_sqlite+set}" = set; then :
16300 enableval=$enable_sqlite;
16301 fi
16302
16303
16304 # Check whether --enable-alsa was given.
16305 if test "${enable_alsa+set}" = set; then :
16306 enableval=$enable_alsa;
16307 fi
16308
16309
16310 # Check whether --enable-external-libs was given.
16311 if test "${enable_external_libs+set}" = set; then :
16312 enableval=$enable_external_libs;
16313 fi
16314
16315
16316 # Check whether --enable-octave was given.
16317 if test "${enable_octave+set}" = set; then :
16318 enableval=$enable_octave;
16319 fi
16320
16321
16322 # Check whether --enable-test-coverage was given.
16323 if test "${enable_test_coverage+set}" = set; then :
16324 enableval=$enable_test_coverage;
16325 fi
16326
16327 if test "$enable_test_coverage" = yes; then
16328 ENABLE_TEST_COVERAGE_TRUE=
16329 ENABLE_TEST_COVERAGE_FALSE='#'
16330 else
16331 ENABLE_TEST_COVERAGE_TRUE='#'
16332 ENABLE_TEST_COVERAGE_FALSE=
16333 fi
16334
16335
16336 #====================================================================================
16337 # Check types and their sizes.
16338
16339 # The cast to long int works around a bug in the HP C Compiler
16340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16342 # This bug is HP SR number 8606223364.
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
16344 $as_echo_n "checking size of wchar_t... " >&6; }
16345 if ${ac_cv_sizeof_wchar_t+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
16349
16350 else
16351 if test "$ac_cv_type_wchar_t" = yes; then
16352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16354 as_fn_error 77 "cannot compute sizeof (wchar_t)
16355 See \`config.log' for more details" "$LINENO" 5; }
16356 else
16357 ac_cv_sizeof_wchar_t=0
16358 fi
16359 fi
16360
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
16363 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
16364
16365
16366
16367 cat >>confdefs.h <<_ACEOF
16368 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
16369 _ACEOF
16370
16371
16372 # The cast to long int works around a bug in the HP C Compiler
16373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16375 # This bug is HP SR number 8606223364.
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16377 $as_echo_n "checking size of short... " >&6; }
16378 if ${ac_cv_sizeof_short+:} false; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16382
16383 else
16384 if test "$ac_cv_type_short" = yes; then
16385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16387 as_fn_error 77 "cannot compute sizeof (short)
16388 See \`config.log' for more details" "$LINENO" 5; }
16389 else
16390 ac_cv_sizeof_short=0
16391 fi
16392 fi
16393
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16396 $as_echo "$ac_cv_sizeof_short" >&6; }
16397
16398
16399
16400 cat >>confdefs.h <<_ACEOF
16401 #define SIZEOF_SHORT $ac_cv_sizeof_short
16402 _ACEOF
16403
16404
16405 # The cast to long int works around a bug in the HP C Compiler
16406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16408 # This bug is HP SR number 8606223364.
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16410 $as_echo_n "checking size of int... " >&6; }
16411 if ${ac_cv_sizeof_int+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16415
16416 else
16417 if test "$ac_cv_type_int" = yes; then
16418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16420 as_fn_error 77 "cannot compute sizeof (int)
16421 See \`config.log' for more details" "$LINENO" 5; }
16422 else
16423 ac_cv_sizeof_int=0
16424 fi
16425 fi
16426
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16429 $as_echo "$ac_cv_sizeof_int" >&6; }
16430
16431
16432
16433 cat >>confdefs.h <<_ACEOF
16434 #define SIZEOF_INT $ac_cv_sizeof_int
16435 _ACEOF
16436
16437
16438 # The cast to long int works around a bug in the HP C Compiler
16439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16441 # This bug is HP SR number 8606223364.
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16443 $as_echo_n "checking size of long... " >&6; }
16444 if ${ac_cv_sizeof_long+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16448
16449 else
16450 if test "$ac_cv_type_long" = yes; then
16451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16453 as_fn_error 77 "cannot compute sizeof (long)
16454 See \`config.log' for more details" "$LINENO" 5; }
16455 else
16456 ac_cv_sizeof_long=0
16457 fi
16458 fi
16459
16460 fi
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16462 $as_echo "$ac_cv_sizeof_long" >&6; }
16463
16464
16465
16466 cat >>confdefs.h <<_ACEOF
16467 #define SIZEOF_LONG $ac_cv_sizeof_long
16468 _ACEOF
16469
16470
16471 # The cast to long int works around a bug in the HP C Compiler
16472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16474 # This bug is HP SR number 8606223364.
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16476 $as_echo_n "checking size of float... " >&6; }
16477 if ${ac_cv_sizeof_float+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
16481
16482 else
16483 if test "$ac_cv_type_float" = yes; then
16484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16486 as_fn_error 77 "cannot compute sizeof (float)
16487 See \`config.log' for more details" "$LINENO" 5; }
16488 else
16489 ac_cv_sizeof_float=0
16490 fi
16491 fi
16492
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16495 $as_echo "$ac_cv_sizeof_float" >&6; }
16496
16497
16498
16499 cat >>confdefs.h <<_ACEOF
16500 #define SIZEOF_FLOAT $ac_cv_sizeof_float
16501 _ACEOF
16502
16503
16504 # The cast to long int works around a bug in the HP C Compiler
16505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16507 # This bug is HP SR number 8606223364.
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16509 $as_echo_n "checking size of double... " >&6; }
16510 if ${ac_cv_sizeof_double+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16514
16515 else
16516 if test "$ac_cv_type_double" = yes; then
16517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16519 as_fn_error 77 "cannot compute sizeof (double)
16520 See \`config.log' for more details" "$LINENO" 5; }
16521 else
16522 ac_cv_sizeof_double=0
16523 fi
16524 fi
16525
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16528 $as_echo "$ac_cv_sizeof_double" >&6; }
16529
16530
16531
16532 cat >>confdefs.h <<_ACEOF
16533 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
16534 _ACEOF
16535
16536
16537 # The cast to long int works around a bug in the HP C Compiler
16538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16540 # This bug is HP SR number 8606223364.
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16542 $as_echo_n "checking size of void*... " >&6; }
16543 if ${ac_cv_sizeof_voidp+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16547
16548 else
16549 if test "$ac_cv_type_voidp" = yes; then
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16552 as_fn_error 77 "cannot compute sizeof (void*)
16553 See \`config.log' for more details" "$LINENO" 5; }
16554 else
16555 ac_cv_sizeof_voidp=0
16556 fi
16557 fi
16558
16559 fi
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16561 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16562
16563
16564
16565 cat >>confdefs.h <<_ACEOF
16566 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16567 _ACEOF
16568
16569
16570 # The cast to long int works around a bug in the HP C Compiler
16571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16573 # This bug is HP SR number 8606223364.
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16575 $as_echo_n "checking size of size_t... " >&6; }
16576 if ${ac_cv_sizeof_size_t+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578 else
16579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16580
16581 else
16582 if test "$ac_cv_type_size_t" = yes; then
16583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16585 as_fn_error 77 "cannot compute sizeof (size_t)
16586 See \`config.log' for more details" "$LINENO" 5; }
16587 else
16588 ac_cv_sizeof_size_t=0
16589 fi
16590 fi
16591
16592 fi
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16594 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16595
16596
16597
16598 cat >>confdefs.h <<_ACEOF
16599 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16600 _ACEOF
16601
16602
16603 # The cast to long int works around a bug in the HP C Compiler
16604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16606 # This bug is HP SR number 8606223364.
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
16608 $as_echo_n "checking size of int64_t... " >&6; }
16609 if ${ac_cv_sizeof_int64_t+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
16613
16614 else
16615 if test "$ac_cv_type_int64_t" = yes; then
16616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16618 as_fn_error 77 "cannot compute sizeof (int64_t)
16619 See \`config.log' for more details" "$LINENO" 5; }
16620 else
16621 ac_cv_sizeof_int64_t=0
16622 fi
16623 fi
16624
16625 fi
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
16627 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
16628
16629
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
16633 _ACEOF
16634
16635
16636 # The cast to long int works around a bug in the HP C Compiler
16637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16639 # This bug is HP SR number 8606223364.
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16641 $as_echo_n "checking size of long long... " >&6; }
16642 if ${ac_cv_sizeof_long_long+:} false; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16646
16647 else
16648 if test "$ac_cv_type_long_long" = yes; then
16649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16651 as_fn_error 77 "cannot compute sizeof (long long)
16652 See \`config.log' for more details" "$LINENO" 5; }
16653 else
16654 ac_cv_sizeof_long_long=0
16655 fi
16656 fi
16657
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16660 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16661
16662
16663
16664 cat >>confdefs.h <<_ACEOF
16665 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16666 _ACEOF
16667
16668
16669
16670 #====================================================================================
16671 # Find an appropriate type for sf_count_t.
16672 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
16673 # Unfortunately there is more than one way of ensuring this so need to do some
16674 # pretty rigourous testing here.
16675
16676 unset ac_cv_sizeof_off_t
16677
16678 # The cast to long int works around a bug in the HP C Compiler
16679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16681 # This bug is HP SR number 8606223364.
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16683 $as_echo_n "checking size of off_t... " >&6; }
16684 if ${ac_cv_sizeof_off_t+:} false; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16688
16689 else
16690 if test "$ac_cv_type_off_t" = yes; then
16691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16693 as_fn_error 77 "cannot compute sizeof (off_t)
16694 See \`config.log' for more details" "$LINENO" 5; }
16695 else
16696 ac_cv_sizeof_off_t=0
16697 fi
16698 fi
16699
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16702 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16703
16704
16705
16706 cat >>confdefs.h <<_ACEOF
16707 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16708 _ACEOF
16709
16710 # Fake default value.
16711
16712 case "$host_os" in
16713 mingw32msvc | mingw32)
16714 TYPEOF_SF_COUNT_T="__int64"
16715 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16716 SIZEOF_SF_COUNT_T=8
16717
16718 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
16719
16720 ;;
16721 *)
16722 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
16723 # If sizeof (off_t) is 8, no further checking is needed.
16724 TYPEOF_SF_COUNT_T="int64_t"
16725 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16726 SIZEOF_SF_COUNT_T=8
16727 else
16728 # Check for common 64 bit file offset types.
16729 # The cast to long int works around a bug in the HP C Compiler
16730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16732 # This bug is HP SR number 8606223364.
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
16734 $as_echo_n "checking size of loff_t... " >&6; }
16735 if ${ac_cv_sizeof_loff_t+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t" "$ac_includes_default"; then :
16739
16740 else
16741 if test "$ac_cv_type_loff_t" = yes; then
16742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16744 as_fn_error 77 "cannot compute sizeof (loff_t)
16745 See \`config.log' for more details" "$LINENO" 5; }
16746 else
16747 ac_cv_sizeof_loff_t=0
16748 fi
16749 fi
16750
16751 fi
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
16753 $as_echo "$ac_cv_sizeof_loff_t" >&6; }
16754
16755
16756
16757 cat >>confdefs.h <<_ACEOF
16758 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
16759 _ACEOF
16760
16761 # Fake default value.
16762 # The cast to long int works around a bug in the HP C Compiler
16763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16765 # This bug is HP SR number 8606223364.
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
16767 $as_echo_n "checking size of off64_t... " >&6; }
16768 if ${ac_cv_sizeof_off64_t+:} false; then :
16769 $as_echo_n "(cached) " >&6
16770 else
16771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
16772
16773 else
16774 if test "$ac_cv_type_off64_t" = yes; then
16775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16777 as_fn_error 77 "cannot compute sizeof (off64_t)
16778 See \`config.log' for more details" "$LINENO" 5; }
16779 else
16780 ac_cv_sizeof_off64_t=0
16781 fi
16782 fi
16783
16784 fi
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
16786 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
16787
16788
16789
16790 cat >>confdefs.h <<_ACEOF
16791 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
16792 _ACEOF
16793
16794 # Fake default value.
16795
16796 TYPEOF_SF_COUNT_T="unknown"
16797 if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
16798 TYPEOF_SF_COUNT_T="int64_t"
16799 SIZEOF_SF_COUNT_T=8
16800 elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
16801 TYPEOF_SF_COUNT_T="int64_t"
16802 SIZEOF_SF_COUNT_T=8
16803 fi
16804
16805 # Save the old sizeof (off_t) value and then unset it to see if it
16806 # changes when Large File Support is enabled.
16807
16808 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
16809 unset ac_cv_sizeof_off_t
16810
16811
16812 # Check whether --enable-largefile was given.
16813 if test "${enable_largefile+set}" = set; then :
16814 enableval=$enable_largefile;
16815 fi
16816
16817 if test "$enable_largefile" != no; then
16818 if test -n "$ac_tool_prefix"; then
16819 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
16820 set dummy ${ac_tool_prefix}getconf; ac_word=$2
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822 $as_echo_n "checking for $ac_word... " >&6; }
16823 if ${ac_cv_prog_GETCONF+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 if test -n "$GETCONF"; then
16827 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
16828 else
16829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16830 for as_dir in $PATH
16831 do
16832 IFS=$as_save_IFS
16833 test -z "$as_dir" && as_dir=.
16834 for ac_exec_ext in '' $ac_executable_extensions; do
16835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16836 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16838 break 2
16839 fi
16840 done
16841 done
16842 IFS=$as_save_IFS
16843
16844 fi
16845 fi
16846 GETCONF=$ac_cv_prog_GETCONF
16847 if test -n "$GETCONF"; then
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
16849 $as_echo "$GETCONF" >&6; }
16850 else
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852 $as_echo "no" >&6; }
16853 fi
16854
16855
16856 fi
16857 if test -z "$ac_cv_prog_GETCONF"; then
16858 ac_ct_GETCONF=$GETCONF
16859 # Extract the first word of "getconf", so it can be a program name with args.
16860 set dummy getconf; ac_word=$2
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16862 $as_echo_n "checking for $ac_word... " >&6; }
16863 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
16864 $as_echo_n "(cached) " >&6
16865 else
16866 if test -n "$ac_ct_GETCONF"; then
16867 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
16868 else
16869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16870 for as_dir in $PATH
16871 do
16872 IFS=$as_save_IFS
16873 test -z "$as_dir" && as_dir=.
16874 for ac_exec_ext in '' $ac_executable_extensions; do
16875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16876 ac_cv_prog_ac_ct_GETCONF="getconf"
16877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16878 break 2
16879 fi
16880 done
16881 done
16882 IFS=$as_save_IFS
16883
16884 fi
16885 fi
16886 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
16887 if test -n "$ac_ct_GETCONF"; then
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
16889 $as_echo "$ac_ct_GETCONF" >&6; }
16890 else
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16892 $as_echo "no" >&6; }
16893 fi
16894
16895 if test "x$ac_ct_GETCONF" = x; then
16896 GETCONF=""
16897 else
16898 case $cross_compiling:$ac_tool_warned in
16899 yes:)
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16902 ac_tool_warned=yes ;;
16903 esac
16904 GETCONF=$ac_ct_GETCONF
16905 fi
16906 else
16907 GETCONF="$ac_cv_prog_GETCONF"
16908 fi
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
16911 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
16912 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
16913 $as_echo_n "(cached) " >&6
16914 else
16915 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
16916 ac_cv_sys_largefile_CFLAGS=no
16917 case "$host_os" in
16918 # IRIX 6.2 and later require cc -n32.
16919 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
16920 if test "$GCC" != yes; then
16921 ac_cv_sys_largefile_CFLAGS=-n32
16922 fi
16923 ac_save_CC="$CC"
16924 CC="$CC $ac_cv_sys_largefile_CFLAGS"
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16927
16928 int
16929 main ()
16930 {
16931
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 if ac_fn_c_try_link "$LINENO"; then :
16937
16938 else
16939 ac_cv_sys_largefile_CFLAGS=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext \
16942 conftest$ac_exeext conftest.$ac_ext
16943 CC="$ac_save_CC"
16944 esac
16945 }
16946 fi
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
16948 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
16950 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
16951 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
16952 $as_echo_n "(cached) " >&6
16953 else
16954 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
16955 ac_cv_sys_largefile_LDFLAGS=no
16956
16957 }
16958 fi
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
16960 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
16962 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
16963 if ${ac_cv_sys_largefile_LIBS+:} false; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
16967 ac_cv_sys_largefile_LIBS=no
16968
16969 }
16970 fi
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
16972 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
16973
16974 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16975 case "$ac_flag" in
16976 no) ;;
16977 -D_FILE_OFFSET_BITS=*) ;;
16978 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
16979 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
16980 -D?* | -I?*)
16981 case "$ac_flag" in
16982 no) ;;
16983 ?*)
16984 case "$CPPFLAGS" in
16985 '') CPPFLAGS="$ac_flag" ;;
16986 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
16987 esac ;;
16988 esac ;;
16989 *)
16990 case "$ac_flag" in
16991 no) ;;
16992 ?*)
16993 case "$CFLAGS" in
16994 '') CFLAGS="$ac_flag" ;;
16995 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
16996 esac ;;
16997 esac ;;
16998 esac
16999 done
17000 case "$ac_cv_sys_largefile_LDFLAGS" in
17001 no) ;;
17002 ?*)
17003 case "$LDFLAGS" in
17004 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17005 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17006 esac ;;
17007 esac
17008 case "$ac_cv_sys_largefile_LIBS" in
17009 no) ;;
17010 ?*)
17011 case "$LIBS" in
17012 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17013 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17014 esac ;;
17015 esac
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
17017 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
17018 if ${ac_cv_sys_file_offset_bits+:} false; then :
17019 $as_echo_n "(cached) " >&6
17020 else
17021 ac_cv_sys_file_offset_bits=no
17022
17023 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17024 case "$ac_flag" in
17025 -D_FILE_OFFSET_BITS)
17026 ac_cv_sys_file_offset_bits=1 ;;
17027 -D_FILE_OFFSET_BITS=*)
17028 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17029 esac
17030 done
17031
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17034 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17035 if test "$ac_cv_sys_file_offset_bits" != no; then
17036
17037 cat >>confdefs.h <<_ACEOF
17038 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17039 _ACEOF
17040
17041 fi
17042 case "$host_os" in
17043 # HP-UX 10.20 and later
17044 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
17045 ac_cv_sys_file_offset_bits=64 ;;
17046 esac
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
17048 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
17049 if ${ac_cv_sys_largefile_source+:} false; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 ac_cv_sys_largefile_source=no
17053 case "$host_os" in
17054 # HP-UX 10.20 and later
17055 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
17056 ac_cv_sys_largefile_source=1 ;;
17057 esac
17058 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17059 case "$ac_flag" in
17060 -D_LARGEFILE_SOURCE)
17061 ac_cv_sys_largefile_source=1 ;;
17062 -D_LARGEFILE_SOURCE=*)
17063 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17064 esac
17065 done
17066
17067 fi
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17069 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17070 if test "$ac_cv_sys_largefile_source" != no; then
17071
17072 cat >>confdefs.h <<_ACEOF
17073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17074 _ACEOF
17075
17076 fi
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
17078 $as_echo_n "checking for _LARGE_FILES... " >&6; }
17079 if ${ac_cv_sys_large_files+:} false; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 ac_cv_sys_large_files=no
17083 case "$host_os" in
17084 # AIX 4.2 and later
17085 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
17086 ac_cv_sys_large_files=1 ;;
17087 esac
17088 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17089 case "$ac_flag" in
17090 -D_LARGE_FILES)
17091 ac_cv_sys_large_files=1 ;;
17092 -D_LARGE_FILES=*)
17093 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17094 esac
17095 done
17096
17097 fi
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17099 $as_echo "$ac_cv_sys_large_files" >&6; }
17100 if test "$ac_cv_sys_large_files" != no; then
17101
17102 cat >>confdefs.h <<_ACEOF
17103 #define _LARGE_FILES $ac_cv_sys_large_files
17104 _ACEOF
17105
17106 fi
17107 fi
17108
17109
17110 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
17111 ac_cv_sys_largefile_CFLAGS=""
17112 fi
17113 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
17114 ac_cv_sys_largefile_LDFLAGS=""
17115 fi
17116 if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
17117 ac_cv_sys_largefile_LIBS=""
17118 fi
17119
17120 # The cast to long int works around a bug in the HP C Compiler
17121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17123 # This bug is HP SR number 8606223364.
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17125 $as_echo_n "checking size of off_t... " >&6; }
17126 if ${ac_cv_sizeof_off_t+:} false; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
17130
17131 else
17132 if test "$ac_cv_type_off_t" = yes; then
17133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17135 as_fn_error 77 "cannot compute sizeof (off_t)
17136 See \`config.log' for more details" "$LINENO" 5; }
17137 else
17138 ac_cv_sizeof_off_t=0
17139 fi
17140 fi
17141
17142 fi
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17144 $as_echo "$ac_cv_sizeof_off_t" >&6; }
17145
17146
17147
17148 cat >>confdefs.h <<_ACEOF
17149 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17150 _ACEOF
17151
17152 # Fake default value.
17153
17154 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
17155 TYPEOF_SF_COUNT_T="int64_t"
17156 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17157 elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This machine does not seem to support 64 bit file offsets." >&5
17159 $as_echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
17160 TYPEOF_SF_COUNT_T="off_t"
17161 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
17162 elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
17163 echo
17164 echo "*** The configure process has determined that this system is capable"
17165 echo "*** of Large File Support but has not been able to find a type which"
17166 echo "*** is an unambiguous 64 bit file offset."
17167 echo "*** Please contact the author to help resolve this problem."
17168 echo
17169 as_fn_error $? "Bad file offset type." "$LINENO" 5
17170 fi
17171 fi
17172 ;;
17173 esac
17174
17175 if test $SIZEOF_SF_COUNT_T = 4 ; then
17176 SF_COUNT_MAX="0x7FFFFFFF"
17177 fi
17178
17179
17180 cat >>confdefs.h <<_ACEOF
17181 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
17182 _ACEOF
17183
17184
17185
17186
17187 cat >>confdefs.h <<_ACEOF
17188 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
17189 _ACEOF
17190
17191
17192
17193
17194 cat >>confdefs.h <<_ACEOF
17195 #define SF_COUNT_MAX ${SF_COUNT_MAX}
17196 _ACEOF
17197
17198
17199
17200 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17201 if test "x$ac_cv_type_ssize_t" = xyes; then :
17202
17203 cat >>confdefs.h <<_ACEOF
17204 #define HAVE_SSIZE_T 1
17205 _ACEOF
17206
17207
17208 fi
17209
17210 # The cast to long int works around a bug in the HP C Compiler
17211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17213 # This bug is HP SR number 8606223364.
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
17215 $as_echo_n "checking size of ssize_t... " >&6; }
17216 if ${ac_cv_sizeof_ssize_t+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
17220
17221 else
17222 if test "$ac_cv_type_ssize_t" = yes; then
17223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17225 as_fn_error 77 "cannot compute sizeof (ssize_t)
17226 See \`config.log' for more details" "$LINENO" 5; }
17227 else
17228 ac_cv_sizeof_ssize_t=0
17229 fi
17230 fi
17231
17232 fi
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
17234 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
17235
17236
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
17240 _ACEOF
17241
17242
17243
17244 #====================================================================================
17245 # Determine endian-ness of target processor.
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
17248 $as_echo_n "checking processor byte ordering... " >&6; }
17249 if ${ac_cv_c_byte_order+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 # Initialize to unknown
17253 ac_cv_c_byte_order=unknown
17254
17255 if test x$ac_cv_header_endian_h = xyes ; then
17256
17257 # First try <endian.h> which should set BYTE_ORDER.
17258
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261
17262 #include <endian.h>
17263 #if BYTE_ORDER != LITTLE_ENDIAN
17264 not big endian
17265 #endif
17266
17267 int
17268 main ()
17269 {
17270 return 0 ;
17271 ;
17272 return 0;
17273 }
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"; then :
17276 ac_cv_c_byte_order=little
17277
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284
17285 #include <endian.h>
17286 #if BYTE_ORDER != BIG_ENDIAN
17287 not big endian
17288 #endif
17289
17290 int
17291 main ()
17292 {
17293 return 0 ;
17294 ;
17295 return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 ac_cv_c_byte_order=big
17300
17301 fi
17302 rm -f core conftest.err conftest.$ac_objext \
17303 conftest$ac_exeext conftest.$ac_ext
17304
17305 fi
17306
17307 if test $ac_cv_c_byte_order = unknown ; then
17308
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311
17312 #include <sys/types.h>
17313 #include <sys/param.h>
17314 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17315 bogus endian macros
17316 #endif
17317
17318 int
17319 main ()
17320 {
17321 return 0 ;
17322 ;
17323 return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_link "$LINENO"; then :
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329
17330 #include <sys/types.h>
17331 #include <sys/param.h>
17332 #if BYTE_ORDER != LITTLE_ENDIAN
17333 not big endian
17334 #endif
17335
17336 int
17337 main ()
17338 {
17339 return 0 ;
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_link "$LINENO"; then :
17345 ac_cv_c_byte_order=little
17346
17347 fi
17348 rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17350
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17353
17354 #include <sys/types.h>
17355 #include <sys/param.h>
17356 #if BYTE_ORDER != LITTLE_ENDIAN
17357 not big endian
17358 #endif
17359
17360 int
17361 main ()
17362 {
17363 return 0 ;
17364 ;
17365 return 0;
17366 }
17367 _ACEOF
17368 if ac_fn_c_try_link "$LINENO"; then :
17369 ac_cv_c_byte_order=little
17370
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17374
17375
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379
17380 fi
17381
17382 if test $ac_cv_c_byte_order = unknown ; then
17383 if test $cross_compiling = yes ; then
17384 # This is the last resort. Try to guess the target processor endian-ness
17385 # by looking at the target CPU type.
17386
17387 case "$target_cpu" in
17388 alpha* | i?86* | mipsel* | ia64*)
17389 ac_cv_c_byte_order=little
17390 ;;
17391
17392 m68* | mips* | powerpc* | hppa* | sparc*)
17393 ac_cv_c_byte_order=big
17394 ;;
17395
17396 esac
17397
17398 else
17399 if test "$cross_compiling" = yes; then :
17400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17402 as_fn_error $? "cannot run test program while cross compiling
17403 See \`config.log' for more details" "$LINENO" 5; }
17404 else
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407
17408 int main (void)
17409 { /* Are we little or big endian? From Harbison&Steele. */
17410 union
17411 { long l ;
17412 char c [sizeof (long)] ;
17413 } u ;
17414 u.l = 1 ;
17415 return (u.c [sizeof (long) - 1] == 1);
17416 }
17417
17418 _ACEOF
17419 if ac_fn_c_try_run "$LINENO"; then :
17420
17421 else
17422 ac_cv_c_byte_order=big
17423 fi
17424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17425 conftest.$ac_objext conftest.beam conftest.$ac_ext
17426 fi
17427
17428
17429 if test "$cross_compiling" = yes; then :
17430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17432 as_fn_error $? "cannot run test program while cross compiling
17433 See \`config.log' for more details" "$LINENO" 5; }
17434 else
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17437 int main (void)
17438 { /* Are we little or big endian? From Harbison&Steele. */
17439 union
17440 { long l ;
17441 char c [sizeof (long)] ;
17442 } u ;
17443 u.l = 1 ;
17444 return (u.c [0] == 1);
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_run "$LINENO"; then :
17448
17449 else
17450 ac_cv_c_byte_order=little
17451 fi
17452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17453 conftest.$ac_objext conftest.beam conftest.$ac_ext
17454 fi
17455
17456 fi
17457 fi
17458
17459
17460 fi
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
17462 $as_echo "$ac_cv_c_byte_order" >&6; }
17463
17464 if test $ac_cv_c_byte_order = big ; then
17465 ac_cv_c_big_endian=1
17466 ac_cv_c_little_endian=0
17467 elif test $ac_cv_c_byte_order = little ; then
17468 ac_cv_c_big_endian=0
17469 ac_cv_c_little_endian=1
17470 else
17471 ac_cv_c_big_endian=0
17472 ac_cv_c_little_endian=0
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17475 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
17477 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
17479 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
17481 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17483 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17484 fi
17485
17486
17487
17488
17489
17490 cat >>confdefs.h <<_ACEOF
17491 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
17492 _ACEOF
17493
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
17497 _ACEOF
17498
17499
17500 cat >>confdefs.h <<_ACEOF
17501 #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
17502 _ACEOF
17503
17504
17505 #====================================================================================
17506 # Check for functions.
17507
17508 for ac_func in malloc calloc realloc free
17509 do :
17510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17513 cat >>confdefs.h <<_ACEOF
17514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 _ACEOF
17516
17517 fi
17518 done
17519
17520 for ac_func in open read write lseek pread pwrite
17521 do :
17522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17524 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17525 cat >>confdefs.h <<_ACEOF
17526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17527 _ACEOF
17528
17529 fi
17530 done
17531
17532 for ac_func in fstat ftruncate fsync
17533 do :
17534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17537 cat >>confdefs.h <<_ACEOF
17538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17539 _ACEOF
17540
17541 fi
17542 done
17543
17544 for ac_func in snprintf vsnprintf
17545 do :
17546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17547 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17548 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17549 cat >>confdefs.h <<_ACEOF
17550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17551 _ACEOF
17552
17553 fi
17554 done
17555
17556 for ac_func in gmtime gmtime_r localtime localtime_r gettimeofday
17557 do :
17558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17561 cat >>confdefs.h <<_ACEOF
17562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17563 _ACEOF
17564
17565 fi
17566 done
17567
17568 for ac_func in mmap getpagesize
17569 do :
17570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17572 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17573 cat >>confdefs.h <<_ACEOF
17574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17575 _ACEOF
17576
17577 fi
17578 done
17579
17580 for ac_func in setlocale
17581 do :
17582 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
17583 if test "x$ac_cv_func_setlocale" = xyes; then :
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_SETLOCALE 1
17586 _ACEOF
17587
17588 fi
17589 done
17590
17591 for ac_func in pipe waitpid
17592 do :
17593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17596 cat >>confdefs.h <<_ACEOF
17597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17598 _ACEOF
17599
17600 fi
17601 done
17602
17603
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
17605 $as_echo_n "checking for floor in -lm... " >&6; }
17606 if ${ac_cv_lib_m_floor+:} false; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 ac_check_lib_save_LIBS=$LIBS
17610 LIBS="-lm $LIBS"
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613
17614 /* Override any GCC internal prototype to avoid an error.
17615 Use char because int might match the return type of a GCC
17616 builtin and then its argument prototype would still apply. */
17617 #ifdef __cplusplus
17618 extern "C"
17619 #endif
17620 char floor ();
17621 int
17622 main ()
17623 {
17624 return floor ();
17625 ;
17626 return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_link "$LINENO"; then :
17630 ac_cv_lib_m_floor=yes
17631 else
17632 ac_cv_lib_m_floor=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17636 LIBS=$ac_check_lib_save_LIBS
17637 fi
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
17639 $as_echo "$ac_cv_lib_m_floor" >&6; }
17640 if test "x$ac_cv_lib_m_floor" = xyes; then :
17641 cat >>confdefs.h <<_ACEOF
17642 #define HAVE_LIBM 1
17643 _ACEOF
17644
17645 LIBS="-lm $LIBS"
17646
17647 fi
17648
17649 for ac_func in floor ceil fmod
17650 do :
17651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17654 cat >>confdefs.h <<_ACEOF
17655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 _ACEOF
17657
17658 fi
17659 done
17660
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
17663 $as_echo_n "checking for lrint... " >&6; }
17664 if ${ac_cv_c99_lrint+:} false; then :
17665 $as_echo_n "(cached) " >&6
17666 else
17667
17668 lrint_save_CFLAGS=$CFLAGS
17669 CFLAGS="-lm"
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672
17673 #define _ISOC9X_SOURCE 1
17674 #define _ISOC99_SOURCE 1
17675 #define __USE_ISOC99 1
17676 #define __USE_ISOC9X 1
17677
17678 #include <math.h>
17679
17680 int
17681 main ()
17682 {
17683 if (!lrint(3.14159)) lrint(2.7183);
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 ac_cv_c99_lrint=yes
17690 else
17691 ac_cv_c99_lrint=no
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695
17696 CFLAGS=$lrint_save_CFLAGS
17697
17698
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
17701 $as_echo "$ac_cv_c99_lrint" >&6; }
17702
17703 if test "$ac_cv_c99_lrint" = yes; then
17704
17705 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
17706
17707 fi
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
17710 $as_echo_n "checking for lrintf... " >&6; }
17711 if ${ac_cv_c99_lrintf+:} false; then :
17712 $as_echo_n "(cached) " >&6
17713 else
17714
17715 lrintf_save_CFLAGS=$CFLAGS
17716 CFLAGS="-lm"
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719
17720 #define _ISOC9X_SOURCE 1
17721 #define _ISOC99_SOURCE 1
17722 #define __USE_ISOC99 1
17723 #define __USE_ISOC9X 1
17724
17725 #include <math.h>
17726
17727 int
17728 main ()
17729 {
17730 if (!lrintf(3.14159)) lrintf(2.7183);
17731 ;
17732 return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_c99_lrintf=yes
17737 else
17738 ac_cv_c99_lrintf=no
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742
17743 CFLAGS=$lrintf_save_CFLAGS
17744
17745
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
17748 $as_echo "$ac_cv_c99_lrintf" >&6; }
17749
17750 if test "$ac_cv_c99_lrintf" = yes; then
17751
17752 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
17753
17754 fi
17755
17756
17757 #====================================================================================
17758 # Check for requirements for building plugins for other languages/enviroments.
17759
17760 if test x$cross_compiling = xno ; then
17761 if test x$enable_octave = xno ; then
17762 if false; then
17763 BUILD_OCTAVE_MOD_TRUE=
17764 BUILD_OCTAVE_MOD_FALSE='#'
17765 else
17766 BUILD_OCTAVE_MOD_TRUE='#'
17767 BUILD_OCTAVE_MOD_FALSE=
17768 fi
17769
17770 else
17771
17772
17773 OCTAVE_BUILD=no
17774
17775
17776
17777
17778 # Check whether --with-octave was given.
17779 if test "${with_octave+set}" = set; then :
17780 withval=$with_octave; with_octave=$withval
17781 fi
17782
17783
17784 test -z "$with_octave" && with_octave=octave
17785
17786 # Extract the first word of "$with_octave", so it can be a program name with args.
17787 set dummy $with_octave; ac_word=$2
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17789 $as_echo_n "checking for $ac_word... " >&6; }
17790 if ${ac_cv_prog_HAVE_OCTAVE+:} false; then :
17791 $as_echo_n "(cached) " >&6
17792 else
17793 if test -n "$HAVE_OCTAVE"; then
17794 ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
17795 else
17796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17797 for as_dir in $PATH
17798 do
17799 IFS=$as_save_IFS
17800 test -z "$as_dir" && as_dir=.
17801 for ac_exec_ext in '' $ac_executable_extensions; do
17802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17803 ac_cv_prog_HAVE_OCTAVE="yes"
17804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17805 break 2
17806 fi
17807 done
17808 done
17809 IFS=$as_save_IFS
17810
17811 test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
17812 fi
17813 fi
17814 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
17815 if test -n "$HAVE_OCTAVE"; then
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
17817 $as_echo "$HAVE_OCTAVE" >&6; }
17818 else
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17820 $as_echo "no" >&6; }
17821 fi
17822
17823
17824
17825 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
17826 OCTAVE=$with_octave
17827
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
17829 $as_echo_n "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
17830 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
17832 $as_echo "$OCTAVE_VERSION" >&6; }
17833
17834
17835 fi
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845 # Check whether --with-mkoctfile was given.
17846 if test "${with_mkoctfile+set}" = set; then :
17847 withval=$with_mkoctfile; with_mkoctfile=$withval
17848 fi
17849
17850
17851 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
17852
17853 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
17854 set dummy $with_mkoctfile; ac_word=$2
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17856 $as_echo_n "checking for $ac_word... " >&6; }
17857 if ${ac_cv_prog_HAVE_MKOCTFILE+:} false; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 if test -n "$HAVE_MKOCTFILE"; then
17861 ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
17862 else
17863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17864 for as_dir in $PATH
17865 do
17866 IFS=$as_save_IFS
17867 test -z "$as_dir" && as_dir=.
17868 for ac_exec_ext in '' $ac_executable_extensions; do
17869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17870 ac_cv_prog_HAVE_MKOCTFILE="yes"
17871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17872 break 2
17873 fi
17874 done
17875 done
17876 IFS=$as_save_IFS
17877
17878 test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
17879 fi
17880 fi
17881 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
17882 if test -n "$HAVE_MKOCTFILE"; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
17884 $as_echo "$HAVE_MKOCTFILE" >&6; }
17885 else
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888 fi
17889
17890
17891
17892 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
17893 MKOCTFILE=$with_mkoctfile
17894
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
17896 $as_echo_n "checking for version of $MKOCTFILE... " >&6; }
17897 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
17899 $as_echo "$MKOCTFILE_VERSION" >&6; }
17900 fi
17901
17902
17903
17904
17905
17906
17907
17908
17909 # Check whether --with-octave-config was given.
17910 if test "${with_octave_config+set}" = set; then :
17911 withval=$with_octave_config; with_octave_config=$withval
17912 fi
17913
17914
17915 test -z "$with_octave_config" && with_octave_config=octave-config
17916
17917 # Extract the first word of "$with_octave_config", so it can be a program name with args.
17918 set dummy $with_octave_config; ac_word=$2
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17920 $as_echo_n "checking for $ac_word... " >&6; }
17921 if ${ac_cv_prog_HAVE_OCTAVE_CONFIG+:} false; then :
17922 $as_echo_n "(cached) " >&6
17923 else
17924 if test -n "$HAVE_OCTAVE_CONFIG"; then
17925 ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
17926 else
17927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17929 do
17930 IFS=$as_save_IFS
17931 test -z "$as_dir" && as_dir=.
17932 for ac_exec_ext in '' $ac_executable_extensions; do
17933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17934 ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
17935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17936 break 2
17937 fi
17938 done
17939 done
17940 IFS=$as_save_IFS
17941
17942 test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
17943 fi
17944 fi
17945 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
17946 if test -n "$HAVE_OCTAVE_CONFIG"; then
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
17948 $as_echo "$HAVE_OCTAVE_CONFIG" >&6; }
17949 else
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 $as_echo "no" >&6; }
17952 fi
17953
17954
17955
17956 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
17957 OCTAVE_CONFIG=$with_octave_config
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
17959 $as_echo_n "checking for version of $OCTAVE_CONFIG... " >&6; }
17960 OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
17962 $as_echo "$OCTAVE_CONFIG_VERSION" >&6; }
17963 fi
17964
17965
17966
17967
17968
17969
17970 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
17971
17972 if test "x$prog_concat" = "xyesyesyes" ; then
17973 if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
17975 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17977 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17978 elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
17980 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17982 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17983 else
17984 case "$MKOCTFILE_VERSION" in
17985 2.*)
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
17987 $as_echo "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
17988 ;;
17989 3.0.*)
17990 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
17991 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
17992
17993 OCTAVE_BUILD=yes
17994 ;;
17995 *)
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
17997 $as_echo "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
17998 ;;
17999 esac
18000 fi
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
18002 $as_echo "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
18003 fi
18004
18005
18006
18007
18008
18009
18010 if test "x$OCTAVE_BUILD" = xyes; then
18011 BUILD_OCTAVE_MOD_TRUE=
18012 BUILD_OCTAVE_MOD_FALSE='#'
18013 else
18014 BUILD_OCTAVE_MOD_TRUE='#'
18015 BUILD_OCTAVE_MOD_FALSE=
18016 fi
18017
18018
18019
18020 fi
18021 else
18022 if false; then
18023 BUILD_OCTAVE_MOD_TRUE=
18024 BUILD_OCTAVE_MOD_FALSE='#'
18025 else
18026 BUILD_OCTAVE_MOD_TRUE='#'
18027 BUILD_OCTAVE_MOD_FALSE=
18028 fi
18029
18030 fi
18031
18032 #====================================================================================
18033 # Check for Ogg, Vorbis and FLAC.
18034
18035 HAVE_EXTERNAL_LIBS=0
18036 EXTERNAL_CFLAGS=""
18037 EXTERNAL_LIBS=""
18038
18039 # Check for pkg-config outside the if statement.
18040
18041
18042
18043
18044
18045
18046
18047 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18048 if test -n "$ac_tool_prefix"; then
18049 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18050 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18052 $as_echo_n "checking for $ac_word... " >&6; }
18053 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 case $PKG_CONFIG in
18057 [\\/]* | ?:[\\/]*)
18058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18059 ;;
18060 *)
18061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18062 for as_dir in $PATH
18063 do
18064 IFS=$as_save_IFS
18065 test -z "$as_dir" && as_dir=.
18066 for ac_exec_ext in '' $ac_executable_extensions; do
18067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18070 break 2
18071 fi
18072 done
18073 done
18074 IFS=$as_save_IFS
18075
18076 ;;
18077 esac
18078 fi
18079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18080 if test -n "$PKG_CONFIG"; then
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18082 $as_echo "$PKG_CONFIG" >&6; }
18083 else
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18085 $as_echo "no" >&6; }
18086 fi
18087
18088
18089 fi
18090 if test -z "$ac_cv_path_PKG_CONFIG"; then
18091 ac_pt_PKG_CONFIG=$PKG_CONFIG
18092 # Extract the first word of "pkg-config", so it can be a program name with args.
18093 set dummy pkg-config; ac_word=$2
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18095 $as_echo_n "checking for $ac_word... " >&6; }
18096 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18097 $as_echo_n "(cached) " >&6
18098 else
18099 case $ac_pt_PKG_CONFIG in
18100 [\\/]* | ?:[\\/]*)
18101 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18102 ;;
18103 *)
18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18106 do
18107 IFS=$as_save_IFS
18108 test -z "$as_dir" && as_dir=.
18109 for ac_exec_ext in '' $ac_executable_extensions; do
18110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18111 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18113 break 2
18114 fi
18115 done
18116 done
18117 IFS=$as_save_IFS
18118
18119 ;;
18120 esac
18121 fi
18122 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18123 if test -n "$ac_pt_PKG_CONFIG"; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18125 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18126 else
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128 $as_echo "no" >&6; }
18129 fi
18130
18131 if test "x$ac_pt_PKG_CONFIG" = x; then
18132 PKG_CONFIG=""
18133 else
18134 case $cross_compiling:$ac_tool_warned in
18135 yes:)
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18138 ac_tool_warned=yes ;;
18139 esac
18140 PKG_CONFIG=$ac_pt_PKG_CONFIG
18141 fi
18142 else
18143 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18144 fi
18145
18146 fi
18147 if test -n "$PKG_CONFIG"; then
18148 _pkg_min_version=0.9.0
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18150 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18151 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18153 $as_echo "yes" >&6; }
18154 else
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18157 PKG_CONFIG=""
18158 fi
18159 fi
18160
18161 if test -n "$PKG_CONFIG" ; then
18162 if test x$enable_external_libs = xno ; then
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
18164 $as_echo "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
18165 else
18166
18167 pkg_failed=no
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.2.1 " >&5
18169 $as_echo_n "checking for flac >= 1.2.1 ... " >&6; }
18170
18171 if test -n "$FLAC_CFLAGS"; then
18172 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
18173 elif test -n "$PKG_CONFIG"; then
18174 if test -n "$PKG_CONFIG" && \
18175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
18176 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
18177 ac_status=$?
18178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18179 test $ac_status = 0; }; then
18180 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null`
18181 test "x$?" != "x0" && pkg_failed=yes
18182 else
18183 pkg_failed=yes
18184 fi
18185 else
18186 pkg_failed=untried
18187 fi
18188 if test -n "$FLAC_LIBS"; then
18189 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
18190 elif test -n "$PKG_CONFIG"; then
18191 if test -n "$PKG_CONFIG" && \
18192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
18193 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
18194 ac_status=$?
18195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18196 test $ac_status = 0; }; then
18197 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null`
18198 test "x$?" != "x0" && pkg_failed=yes
18199 else
18200 pkg_failed=yes
18201 fi
18202 else
18203 pkg_failed=untried
18204 fi
18205
18206
18207
18208 if test $pkg_failed = yes; then
18209
18210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18211 _pkg_short_errors_supported=yes
18212 else
18213 _pkg_short_errors_supported=no
18214 fi
18215 if test $_pkg_short_errors_supported = yes; then
18216 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.2.1"`
18217 else
18218 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.2.1"`
18219 fi
18220 # Put the nasty error message in config.log where it belongs
18221 echo "$FLAC_PKG_ERRORS" >&5
18222
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224 $as_echo "no" >&6; }
18225 ac_cv_flac=no
18226 elif test $pkg_failed = untried; then
18227 ac_cv_flac=no
18228 else
18229 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
18230 FLAC_LIBS=$pkg_cv_FLAC_LIBS
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232 $as_echo "yes" >&6; }
18233 ac_cv_flac=yes
18234 fi
18235
18236 # Make sure the FLAC_CFLAGS value is sane.
18237 FLAC_CFLAGS=`echo $FLAC_CLFAGS | $SED "s/FLAC$//"`
18238
18239
18240 pkg_failed=no
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.1.3 " >&5
18242 $as_echo_n "checking for ogg >= 1.1.3 ... " >&6; }
18243
18244 if test -n "$OGG_CFLAGS"; then
18245 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
18246 elif test -n "$PKG_CONFIG"; then
18247 if test -n "$PKG_CONFIG" && \
18248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
18249 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
18250 ac_status=$?
18251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18252 test $ac_status = 0; }; then
18253 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1.3" 2>/dev/null`
18254 test "x$?" != "x0" && pkg_failed=yes
18255 else
18256 pkg_failed=yes
18257 fi
18258 else
18259 pkg_failed=untried
18260 fi
18261 if test -n "$OGG_LIBS"; then
18262 pkg_cv_OGG_LIBS="$OGG_LIBS"
18263 elif test -n "$PKG_CONFIG"; then
18264 if test -n "$PKG_CONFIG" && \
18265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
18266 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
18267 ac_status=$?
18268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18269 test $ac_status = 0; }; then
18270 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1.3" 2>/dev/null`
18271 test "x$?" != "x0" && pkg_failed=yes
18272 else
18273 pkg_failed=yes
18274 fi
18275 else
18276 pkg_failed=untried
18277 fi
18278
18279
18280
18281 if test $pkg_failed = yes; then
18282
18283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18284 _pkg_short_errors_supported=yes
18285 else
18286 _pkg_short_errors_supported=no
18287 fi
18288 if test $_pkg_short_errors_supported = yes; then
18289 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1.3"`
18290 else
18291 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1.3"`
18292 fi
18293 # Put the nasty error message in config.log where it belongs
18294 echo "$OGG_PKG_ERRORS" >&5
18295
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18297 $as_echo "no" >&6; }
18298 ac_cv_ogg=no
18299 elif test $pkg_failed = untried; then
18300 ac_cv_ogg=no
18301 else
18302 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
18303 OGG_LIBS=$pkg_cv_OGG_LIBS
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18305 $as_echo "yes" >&6; }
18306 ac_cv_ogg=yes
18307 fi
18308
18309 if test x$enable_experimental = xyes ; then
18310
18311 pkg_failed=no
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex >= 1.2 " >&5
18313 $as_echo_n "checking for speex >= 1.2 ... " >&6; }
18314
18315 if test -n "$SPEEX_CFLAGS"; then
18316 pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
18317 elif test -n "$PKG_CONFIG"; then
18318 if test -n "$PKG_CONFIG" && \
18319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
18320 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
18321 ac_status=$?
18322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18323 test $ac_status = 0; }; then
18324 pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.2" 2>/dev/null`
18325 test "x$?" != "x0" && pkg_failed=yes
18326 else
18327 pkg_failed=yes
18328 fi
18329 else
18330 pkg_failed=untried
18331 fi
18332 if test -n "$SPEEX_LIBS"; then
18333 pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
18334 elif test -n "$PKG_CONFIG"; then
18335 if test -n "$PKG_CONFIG" && \
18336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
18337 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
18338 ac_status=$?
18339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18340 test $ac_status = 0; }; then
18341 pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.2" 2>/dev/null`
18342 test "x$?" != "x0" && pkg_failed=yes
18343 else
18344 pkg_failed=yes
18345 fi
18346 else
18347 pkg_failed=untried
18348 fi
18349
18350
18351
18352 if test $pkg_failed = yes; then
18353
18354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18355 _pkg_short_errors_supported=yes
18356 else
18357 _pkg_short_errors_supported=no
18358 fi
18359 if test $_pkg_short_errors_supported = yes; then
18360 SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.2"`
18361 else
18362 SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.2"`
18363 fi
18364 # Put the nasty error message in config.log where it belongs
18365 echo "$SPEEX_PKG_ERRORS" >&5
18366
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18368 $as_echo "no" >&6; }
18369 ac_cv_speex=no
18370 elif test $pkg_failed = untried; then
18371 ac_cv_speex=no
18372 else
18373 SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
18374 SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18376 $as_echo "yes" >&6; }
18377 ac_cv_speex=yes
18378 fi
18379 else
18380 SPEEX_CFLAGS=""
18381 SPEEX_LIBS=""
18382 fi
18383
18384 # Vorbis versions earlier than 1.2.3 have bugs that cause the libsndfile
18385 # test suite to fail on MIPS, PowerPC and others.
18386 # See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
18387
18388 pkg_failed=no
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
18390 $as_echo_n "checking for vorbis >= 1.2.3 ... " >&6; }
18391
18392 if test -n "$VORBIS_CFLAGS"; then
18393 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
18394 elif test -n "$PKG_CONFIG"; then
18395 if test -n "$PKG_CONFIG" && \
18396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
18397 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
18398 ac_status=$?
18399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18400 test $ac_status = 0; }; then
18401 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
18402 test "x$?" != "x0" && pkg_failed=yes
18403 else
18404 pkg_failed=yes
18405 fi
18406 else
18407 pkg_failed=untried
18408 fi
18409 if test -n "$VORBIS_LIBS"; then
18410 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
18411 elif test -n "$PKG_CONFIG"; then
18412 if test -n "$PKG_CONFIG" && \
18413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
18414 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
18415 ac_status=$?
18416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18417 test $ac_status = 0; }; then
18418 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
18419 test "x$?" != "x0" && pkg_failed=yes
18420 else
18421 pkg_failed=yes
18422 fi
18423 else
18424 pkg_failed=untried
18425 fi
18426
18427
18428
18429 if test $pkg_failed = yes; then
18430
18431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18432 _pkg_short_errors_supported=yes
18433 else
18434 _pkg_short_errors_supported=no
18435 fi
18436 if test $_pkg_short_errors_supported = yes; then
18437 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
18438 else
18439 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
18440 fi
18441 # Put the nasty error message in config.log where it belongs
18442 echo "$VORBIS_PKG_ERRORS" >&5
18443
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445 $as_echo "no" >&6; }
18446 ac_cv_vorbis=no
18447 elif test $pkg_failed = untried; then
18448 ac_cv_vorbis=no
18449 else
18450 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
18451 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453 $as_echo "yes" >&6; }
18454 ac_cv_vorbis=yes
18455 fi
18456
18457 pkg_failed=no
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
18459 $as_echo_n "checking for vorbisenc >= 1.2.3 ... " >&6; }
18460
18461 if test -n "$VORBISENC_CFLAGS"; then
18462 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
18463 elif test -n "$PKG_CONFIG"; then
18464 if test -n "$PKG_CONFIG" && \
18465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
18466 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
18467 ac_status=$?
18468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18469 test $ac_status = 0; }; then
18470 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
18471 test "x$?" != "x0" && pkg_failed=yes
18472 else
18473 pkg_failed=yes
18474 fi
18475 else
18476 pkg_failed=untried
18477 fi
18478 if test -n "$VORBISENC_LIBS"; then
18479 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
18480 elif test -n "$PKG_CONFIG"; then
18481 if test -n "$PKG_CONFIG" && \
18482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
18483 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18486 test $ac_status = 0; }; then
18487 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
18488 test "x$?" != "x0" && pkg_failed=yes
18489 else
18490 pkg_failed=yes
18491 fi
18492 else
18493 pkg_failed=untried
18494 fi
18495
18496
18497
18498 if test $pkg_failed = yes; then
18499
18500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18501 _pkg_short_errors_supported=yes
18502 else
18503 _pkg_short_errors_supported=no
18504 fi
18505 if test $_pkg_short_errors_supported = yes; then
18506 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
18507 else
18508 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
18509 fi
18510 # Put the nasty error message in config.log where it belongs
18511 echo "$VORBISENC_PKG_ERRORS" >&5
18512
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18514 $as_echo "no" >&6; }
18515 ac_cv_vorbisenc=no
18516 elif test $pkg_failed = untried; then
18517 ac_cv_vorbisenc=no
18518 else
18519 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
18520 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18522 $as_echo "yes" >&6; }
18523 ac_cv_vorbisenc=yes
18524 fi
18525 enable_external_libs=yes
18526 fi
18527
18528 if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
18529 HAVE_EXTERNAL_LIBS=1
18530 enable_external_libs=yes
18531
18532 EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
18533 EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
18534 else
18535 echo
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&5
18537 $as_echo "$as_me: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&2;}
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libvorbis) is either missing (possibly only the development" >&5
18539 $as_echo "$as_me: WARNING: *** libvorbis) is either missing (possibly only the development" >&2;}
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** headers) or is of an unsupported version." >&5
18541 $as_echo "$as_me: WARNING: *** headers) or is of an unsupported version." >&2;}
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
18543 $as_echo "$as_me: WARNING: ***" >&2;}
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&5
18545 $as_echo "$as_me: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&2;}
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** are an all or nothing affair." >&5
18547 $as_echo "$as_me: WARNING: *** are an all or nothing affair." >&2;}
18548 echo
18549 enable_external_libs=no
18550 fi
18551 fi
18552
18553
18554 cat >>confdefs.h <<_ACEOF
18555 #define HAVE_EXTERNAL_LIBS $HAVE_EXTERNAL_LIBS
18556 _ACEOF
18557
18558
18559 #====================================================================================
18560 # Check for libsqlite3 (only used in regtest).
18561
18562 ac_cv_sqlite3=no
18563 if test x$enable_sqlite != xno ; then
18564
18565 pkg_failed=no
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
18567 $as_echo_n "checking for sqlite3 >= 3.2 ... " >&6; }
18568
18569 if test -n "$SQLITE3_CFLAGS"; then
18570 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
18571 elif test -n "$PKG_CONFIG"; then
18572 if test -n "$PKG_CONFIG" && \
18573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
18574 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
18575 ac_status=$?
18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18577 test $ac_status = 0; }; then
18578 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
18579 test "x$?" != "x0" && pkg_failed=yes
18580 else
18581 pkg_failed=yes
18582 fi
18583 else
18584 pkg_failed=untried
18585 fi
18586 if test -n "$SQLITE3_LIBS"; then
18587 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
18588 elif test -n "$PKG_CONFIG"; then
18589 if test -n "$PKG_CONFIG" && \
18590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
18591 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
18592 ac_status=$?
18593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18594 test $ac_status = 0; }; then
18595 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
18596 test "x$?" != "x0" && pkg_failed=yes
18597 else
18598 pkg_failed=yes
18599 fi
18600 else
18601 pkg_failed=untried
18602 fi
18603
18604
18605
18606 if test $pkg_failed = yes; then
18607
18608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18609 _pkg_short_errors_supported=yes
18610 else
18611 _pkg_short_errors_supported=no
18612 fi
18613 if test $_pkg_short_errors_supported = yes; then
18614 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
18615 else
18616 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
18617 fi
18618 # Put the nasty error message in config.log where it belongs
18619 echo "$SQLITE3_PKG_ERRORS" >&5
18620
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18623 ac_cv_sqlite3=no
18624 elif test $pkg_failed = untried; then
18625 ac_cv_sqlite3=no
18626 else
18627 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
18628 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630 $as_echo "yes" >&6; }
18631 ac_cv_sqlite3=yes
18632 fi
18633 fi
18634
18635 if test x$ac_cv_sqlite3 = "xyes" ; then
18636 HAVE_SQLITE3=1
18637 else
18638 HAVE_SQLITE3=0
18639 fi
18640
18641
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_SQLITE3 $HAVE_SQLITE3
18644 _ACEOF
18645
18646
18647 #====================================================================================
18648 # Determine if the processor can do clipping on float to int conversions.
18649
18650 if test x$enable_cpu_clip != "xno" ; then
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
18652 $as_echo_n "checking processor clipping capabilities... " >&6; }
18653 if ${ac_cv_c_clip_type+:} false; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656 # Initialize to unknown
18657 ac_cv_c_clip_positive=unknown
18658 ac_cv_c_clip_negative=unknown
18659
18660
18661 if test $ac_cv_c_clip_positive = unknown ; then
18662 if test "$cross_compiling" = yes; then :
18663 ac_cv_c_clip_positive=unknown
18664
18665 else
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668
18669 #define _ISOC9X_SOURCE 1
18670 #define _ISOC99_SOURCE 1
18671 #define __USE_ISOC99 1
18672 #define __USE_ISOC9X 1
18673 #include <math.h>
18674 int main (void)
18675 { double fval ;
18676 int k, ival ;
18677
18678 fval = 1.0 * 0x7FFFFFFF ;
18679 for (k = 0 ; k < 100 ; k++)
18680 { ival = (lrint (fval)) >> 24 ;
18681 if (ival != 127)
18682 return 1 ;
18683
18684 fval *= 1.2499999 ;
18685 } ;
18686
18687 return 0 ;
18688 }
18689
18690 _ACEOF
18691 if ac_fn_c_try_run "$LINENO"; then :
18692 ac_cv_c_clip_positive=yes
18693 else
18694 ac_cv_c_clip_positive=no
18695 fi
18696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18697 conftest.$ac_objext conftest.beam conftest.$ac_ext
18698 fi
18699
18700
18701 if test "$cross_compiling" = yes; then :
18702 ac_cv_c_clip_negative=unknown
18703
18704 else
18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706 /* end confdefs.h. */
18707
18708 #define _ISOC9X_SOURCE 1
18709 #define _ISOC99_SOURCE 1
18710 #define __USE_ISOC99 1
18711 #define __USE_ISOC9X 1
18712 #include <math.h>
18713 int main (void)
18714 { double fval ;
18715 int k, ival ;
18716
18717 fval = -8.0 * 0x10000000 ;
18718 for (k = 0 ; k < 100 ; k++)
18719 { ival = (lrint (fval)) >> 24 ;
18720 if (ival != -128)
18721 return 1 ;
18722
18723 fval *= 1.2499999 ;
18724 } ;
18725
18726 return 0 ;
18727 }
18728
18729 _ACEOF
18730 if ac_fn_c_try_run "$LINENO"; then :
18731 ac_cv_c_clip_negative=yes
18732 else
18733 ac_cv_c_clip_negative=no
18734 fi
18735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18736 conftest.$ac_objext conftest.beam conftest.$ac_ext
18737 fi
18738
18739 fi
18740
18741 if test $ac_cv_c_clip_positive = yes ; then
18742 ac_cv_c_clip_positive=1
18743 else
18744 ac_cv_c_clip_positive=0
18745 fi
18746
18747 if test $ac_cv_c_clip_negative = yes ; then
18748 ac_cv_c_clip_negative=1
18749 else
18750 ac_cv_c_clip_negative=0
18751 fi
18752
18753
18754 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
18755 "00")
18756 ac_cv_c_clip_type="none"
18757 ;;
18758 "10")
18759 ac_cv_c_clip_type="positive"
18760 ;;
18761 "01")
18762 ac_cv_c_clip_type="negative"
18763 ;;
18764 "11")
18765 ac_cv_c_clip_type="both"
18766 ;;
18767 esac
18768
18769
18770
18771 fi
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
18773 $as_echo "$ac_cv_c_clip_type" >&6; }
18774
18775
18776
18777 else
18778 echo "checking processor clipping capabilities... disabled"
18779 ac_cv_c_clip_positive=0
18780 ac_cv_c_clip_negative=0
18781 fi
18782
18783
18784 cat >>confdefs.h <<_ACEOF
18785 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
18786 _ACEOF
18787
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
18791 _ACEOF
18792
18793
18794 #====================================================================================
18795 # Target OS specific stuff.
18796
18797 OS_SPECIFIC_CFLAGS=""
18798 OS_SPECIFIC_LINKS=""
18799 os_is_win32=0
18800 os_is_macosx=0
18801 use_windows_api=0
18802
18803 case "$host_os" in
18804 darwin* | rhapsody*)
18805 os_is_macosx=1
18806 OS_SPECIFIC_CFLAGS="-I/Developer/Headers/FlatCarbon"
18807 OS_SPECIFIC_LINKS="-framework CoreAudio"
18808 ;;
18809 mingw*)
18810 os_is_win32=1
18811 use_windows_api=1
18812 OS_SPECIFIC_LINKS="-lwinmm"
18813 ;;
18814 esac
18815
18816
18817 cat >>confdefs.h <<_ACEOF
18818 #define OS_IS_WIN32 ${os_is_win32}
18819 _ACEOF
18820
18821
18822 cat >>confdefs.h <<_ACEOF
18823 #define OS_IS_MACOSX ${os_is_macosx}
18824 _ACEOF
18825
18826
18827 cat >>confdefs.h <<_ACEOF
18828 #define USE_WINDOWS_API ${use_windows_api}
18829 _ACEOF
18830
18831
18832 if test ${use_windows_api} -eq 1; then
18833 USE_WIN_VERSION_FILE_TRUE=
18834 USE_WIN_VERSION_FILE_FALSE='#'
18835 else
18836 USE_WIN_VERSION_FILE_TRUE='#'
18837 USE_WIN_VERSION_FILE_FALSE=
18838 fi
18839
18840
18841 #====================================================================================
18842 # Check for ALSA.
18843
18844 ALSA_LIBS=""
18845
18846 if test x$enable_alsa != xno ; then
18847 for ac_header in alsa/asoundlib.h
18848 do :
18849 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
18850 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
18851 cat >>confdefs.h <<_ACEOF
18852 #define HAVE_ALSA_ASOUNDLIB_H 1
18853 _ACEOF
18854
18855 fi
18856
18857 done
18858
18859 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
18860 ALSA_LIBS="-lasound"
18861 enable_alsa=yes
18862 fi
18863 fi
18864
18865 #====================================================================================
18866 # Check for OpenBSD's sndio.
18867
18868 SNDIO_LIBS=""
18869 for ac_header in sndio.h
18870 do :
18871 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18872 if test "x$ac_cv_header_sndio_h" = xyes; then :
18873 cat >>confdefs.h <<_ACEOF
18874 #define HAVE_SNDIO_H 1
18875 _ACEOF
18876
18877 fi
18878
18879 done
18880
18881 if test x$ac_cv_header_sndio_h = xyes ; then
18882 SNDIO_LIBS="-lsndio"
18883 fi
18884
18885 #====================================================================================
18886 # Test for sanity when cross-compiling.
18887
18888 if test x$cross_compiling = xyes ; then
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18890 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
18892 $as_echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&5
18894 $as_echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&2;}
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chance of this working. Please contact the mantainer. " >&5
18896 $as_echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer. " >&2;}
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18898 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18899 fi
18900
18901 if test $ac_cv_sizeof_short != 2 ; then
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18903 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2. " >&5
18905 $as_echo "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18907 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18908 fi
18909
18910 if test $ac_cv_sizeof_int != 4 ; then
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18912 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4 " >&5
18914 $as_echo "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18916 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18917 fi
18918
18919 if test $ac_cv_sizeof_float != 4 ; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18921 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4. " >&5
18923 $as_echo "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18925 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18926 fi
18927
18928 if test $ac_cv_sizeof_double != 8 ; then
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18930 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8. " >&5
18932 $as_echo "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18934 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18935 fi
18936
18937 if test x"$ac_cv_prog_HAVE_AUTOGEN" = "xno" ; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
18939 $as_echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
18940 touch tests/*.c tests/*.h
18941 fi
18942
18943 #====================================================================================
18944 # Settings for the HTML documentation.
18945
18946 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
18947
18948 if test $prefix = "NONE" ; then
18949 htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
18950 else
18951 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
18952 fi
18953
18954 if test x$enable_bow_docs = "xyes" ; then
18955 HTML_BGCOLOUR="white"
18956 HTML_FGCOLOUR="black"
18957 else
18958 HTML_BGCOLOUR="black"
18959 HTML_FGCOLOUR="white"
18960 fi
18961
18962 #====================================================================================
18963 # Now use the information from the checking stage.
18964
18965 win32_target_dll=0
18966 COMPILER_IS_GCC=0
18967
18968 if test x$ac_cv_c_compiler_gnu = xyes ; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=gnu99" >&5
18970 $as_echo_n "checking if $CC accepts -std=gnu99... " >&6; }
18971 ac_add_cflags__old_cflags="$CFLAGS"
18972 CFLAGS="-std=gnu99"
18973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974 /* end confdefs.h. */
18975
18976 #include <stdio.h>
18977
18978 int
18979 main ()
18980 {
18981 puts("Hello, World!"); return 0;
18982 ;
18983 return 0;
18984 }
18985 _ACEOF
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988 $as_echo "yes" >&6; }
18989 CFLAGS="$ac_add_cflags__old_cflags -std=gnu99"
18990 else
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18992 $as_echo "no" >&6; }
18993 CFLAGS="$ac_add_cflags__old_cflags"
18994
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998
18999
19000
19001 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
19002
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
19004 $as_echo_n "checking for version of $CC... " >&6; }
19005 GCC_VERSION=`$CC -dumpversion`
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
19007 $as_echo "$GCC_VERSION" >&6; }
19008
19009 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
19010 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
19011 fi
19012
19013
19014
19015
19016
19017
19018
19019 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
19021 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&5
19023 $as_echo "$as_me: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&2;}
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** reason but the maintainers do not see it as a bug. **" >&5
19025 $as_echo "$as_me: WARNING: ** reason but the maintainers do not see it as a bug. **" >&2;}
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&5
19027 $as_echo "$as_me: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&2;}
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&5
19029 $as_echo "$as_me: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&2;}
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
19031 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
19033 $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
19034 ac_add_cflags__old_cflags="$CFLAGS"
19035 CFLAGS="-fgnu89-inline"
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038
19039 #include <stdio.h>
19040
19041 int
19042 main ()
19043 {
19044 puts("Hello, World!"); return 0;
19045 ;
19046 return 0;
19047 }
19048 _ACEOF
19049 if ac_fn_c_try_link "$LINENO"; then :
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19051 $as_echo "yes" >&6; }
19052 CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline"
19053 else
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19055 $as_echo "no" >&6; }
19056 CFLAGS="$ac_add_cflags__old_cflags"
19057
19058 fi
19059 rm -f core conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19061
19062 fi
19063
19064 CFLAGS="$CFLAGS -Wall"
19065 CXXFLAGS="$CXXFLAGS -Wall"
19066
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra" >&5
19068 $as_echo_n "checking if $CC accepts -Wextra... " >&6; }
19069 ac_add_cflags__old_cflags="$CFLAGS"
19070 CFLAGS="-Wextra"
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073
19074 #include <stdio.h>
19075
19076 int
19077 main ()
19078 {
19079 puts("Hello, World!"); return 0;
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 if ac_fn_c_try_link "$LINENO"; then :
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19086 $as_echo "yes" >&6; }
19087 CFLAGS="$ac_add_cflags__old_cflags -Wextra"
19088 else
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090 $as_echo "no" >&6; }
19091 CFLAGS="$ac_add_cflags__old_cflags"
19092
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19096
19097
19098 ac_ext=cpp
19099 ac_cpp='$CXXCPP $CPPFLAGS'
19100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra" >&5
19105 $as_echo_n "checking if $CXX accepts -Wextra... " >&6; }
19106
19107 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
19108 CXXFLAGS="-Wextra"
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111
19112 #include <cstdio>
19113
19114 int
19115 main ()
19116 {
19117 puts("Hello, World!"); return 0;
19118 ;
19119 return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_cxx_try_link "$LINENO"; then :
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19124 $as_echo "yes" >&6; }
19125 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Wextra"
19126 else
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19129 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
19130
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134
19135 ac_ext=c
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
19143 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
19144 ac_add_cflags__old_cflags="$CFLAGS"
19145 CFLAGS="-Wdeclaration-after-statement"
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148
19149 #include <stdio.h>
19150
19151 int
19152 main ()
19153 {
19154 puts("Hello, World!"); return 0;
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 if ac_fn_c_try_link "$LINENO"; then :
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 $as_echo "yes" >&6; }
19162 CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement"
19163 else
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165 $as_echo "no" >&6; }
19166 CFLAGS="$ac_add_cflags__old_cflags"
19167
19168 fi
19169 rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpointer-arith" >&5
19173 $as_echo_n "checking if $CC accepts -Wpointer-arith... " >&6; }
19174 ac_add_cflags__old_cflags="$CFLAGS"
19175 CFLAGS="-Wpointer-arith"
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h. */
19178
19179 #include <stdio.h>
19180
19181 int
19182 main ()
19183 {
19184 puts("Hello, World!"); return 0;
19185 ;
19186 return 0;
19187 }
19188 _ACEOF
19189 if ac_fn_c_try_link "$LINENO"; then :
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19191 $as_echo "yes" >&6; }
19192 CFLAGS="$ac_add_cflags__old_cflags -Wpointer-arith"
19193 else
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19195 $as_echo "no" >&6; }
19196 CFLAGS="$ac_add_cflags__old_cflags"
19197
19198 fi
19199 rm -f core conftest.err conftest.$ac_objext \
19200 conftest$ac_exeext conftest.$ac_ext
19201
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funsigned-char" >&5
19203 $as_echo_n "checking if $CC accepts -funsigned-char... " >&6; }
19204 ac_add_cflags__old_cflags="$CFLAGS"
19205 CFLAGS="-funsigned-char"
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208
19209 #include <stdio.h>
19210
19211 int
19212 main ()
19213 {
19214 puts("Hello, World!"); return 0;
19215 ;
19216 return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"; then :
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19221 $as_echo "yes" >&6; }
19222 CFLAGS="$ac_add_cflags__old_cflags -funsigned-char"
19223 else
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19225 $as_echo "no" >&6; }
19226 CFLAGS="$ac_add_cflags__old_cflags"
19227
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext \
19230 conftest$ac_exeext conftest.$ac_ext
19231
19232
19233 if test x$enable_gcc_werror = "xyes" ; then
19234 CFLAGS="-Werror $CFLAGS"
19235 CXXFLAGS="-Werror $CXXFLAGS"
19236 fi
19237
19238 if test x$enable_test_coverage = "xyes" ; then
19239 # MN_ADD_CFLAGS([-ftest-coverage])
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -coverage" >&5
19241 $as_echo_n "checking if $CC accepts -coverage... " >&6; }
19242 ac_add_cflags__old_cflags="$CFLAGS"
19243 CFLAGS="-coverage"
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246
19247 #include <stdio.h>
19248
19249 int
19250 main ()
19251 {
19252 puts("Hello, World!"); return 0;
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19259 $as_echo "yes" >&6; }
19260 CFLAGS="$ac_add_cflags__old_cflags -coverage"
19261 else
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263 $as_echo "no" >&6; }
19264 CFLAGS="$ac_add_cflags__old_cflags"
19265
19266 fi
19267 rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269
19270 fi
19271
19272 CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -Wundef "
19273 # -Wundef -Wmissing-declarations -Winline -Wconversion"
19274 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wundef "
19275
19276 if test "x$enable_gcc_opt" = "xno" ; then
19277 temp_CFLAGS=`echo $CFLAGS | $SED "s/O2/O0/"`
19278 CFLAGS=$temp_CFLAGS
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
19280 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
19281 fi
19282
19283 # OS specific tweaks.
19284 case "$host_os" in
19285 darwin* | rhapsody*)
19286 # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
19287 # System headers on these systems are broken.
19288 temp_CFLAGS=`echo $CFLAGS | $SED "s/-Wall -pedantic//" | $SED "s/-Wshadow//" | $SED "s/-Waggregate-return//"`
19289 CFLAGS=$temp_CFLAGS
19290 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
19291 ;;
19292 linux*|kfreebsd*-gnu*|gnu*)
19293 SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.gnu-binutils"
19294 ;;
19295 mingw*)
19296 # Linker flag '-Wl,--out-implib' does not work with mingw cross compiler
19297 # so we don't use it here.
19298 SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def"
19299 win32_target_dll=1
19300 if test x"$enable_shared" = xno ; then
19301 win32_target_dll=0
19302 fi
19303 ;;
19304 os2*)
19305 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(srcdir)/Symbols.os2"
19306 ;;
19307 *)
19308 ;;
19309 esac
19310 if test x$enable_gcc_pipe != "xno" ; then
19311 CFLAGS="$CFLAGS -pipe"
19312 fi
19313
19314 COMPILER_IS_GCC=1
19315 fi
19316
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define WIN32_TARGET_DLL ${win32_target_dll}
19320 _ACEOF
19321
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define COMPILER_IS_GCC ${COMPILER_IS_GCC}
19325 _ACEOF
19326
19327
19328 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
19329
19330 if test x"$CFLAGS" = x ; then
19331 echo "Error in configure script. CFLAGS has been screwed up."
19332 exit
19333 fi
19334
19335 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
19336
19337 if test "$HOST_TRIPLET" = "x86_64-w64-mingw32" ; then
19338 OS_SPECIFIC_LINKS=" -static-libgcc $OS_SPECIFIC_LINKS"
19339 fi
19340
19341 WIN_RC_VERSION=`echo $PACKAGE_VERSION | $SED -e "s/p.*//" -e "s/\./,/g"`
19342
19343 #-------------------------------------------------------------------------------
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366 ac_config_files="$ac_config_files src/Makefile man/Makefile examples/Makefile tests/Makefile regtest/Makefile M4/Makefile doc/Makefile Win32/Makefile Octave/Makefile programs/Makefile Makefile src/version-metadata.rc tests/test_wrapper.sh tests/pedantic-header-test.sh doc/libsndfile.css build-test-tarball.mk libsndfile.spec sndfile.pc src/sndfile.h"
19367
19368 cat >confcache <<\_ACEOF
19369 # This file is a shell script that caches the results of configure
19370 # tests run on this system so they can be shared between configure
19371 # scripts and configure runs, see configure's option --config-cache.
19372 # It is not useful on other systems. If it contains results you don't
19373 # want to keep, you may remove or edit it.
19374 #
19375 # config.status only pays attention to the cache file if you give it
19376 # the --recheck option to rerun configure.
19377 #
19378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19380 # following values.
19381
19382 _ACEOF
19383
19384 # The following way of writing the cache mishandles newlines in values,
19385 # but we know of no workaround that is simple, portable, and efficient.
19386 # So, we kill variables containing newlines.
19387 # Ultrix sh set writes to stderr and can't be redirected directly,
19388 # and sets the high bit in the cache file unless we assign to the vars.
19389 (
19390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19391 eval ac_val=\$$ac_var
19392 case $ac_val in #(
19393 *${as_nl}*)
19394 case $ac_var in #(
19395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19397 esac
19398 case $ac_var in #(
19399 _ | IFS | as_nl) ;; #(
19400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19401 *) { eval $ac_var=; unset $ac_var;} ;;
19402 esac ;;
19403 esac
19404 done
19405
19406 (set) 2>&1 |
19407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19408 *${as_nl}ac_space=\ *)
19409 # `set' does not quote correctly, so add quotes: double-quote
19410 # substitution turns \\\\ into \\, and sed turns \\ into \.
19411 sed -n \
19412 "s/'/'\\\\''/g;
19413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19414 ;; #(
19415 *)
19416 # `set' quotes correctly as required by POSIX, so do not add quotes.
19417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19418 ;;
19419 esac |
19420 sort
19421 ) |
19422 sed '
19423 /^ac_cv_env_/b end
19424 t clear
19425 :clear
19426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19427 t end
19428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19429 :end' >>confcache
19430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19431 if test -w "$cache_file"; then
19432 if test "x$cache_file" != "x/dev/null"; then
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19434 $as_echo "$as_me: updating cache $cache_file" >&6;}
19435 if test ! -f "$cache_file" || test -h "$cache_file"; then
19436 cat confcache >"$cache_file"
19437 else
19438 case $cache_file in #(
19439 */* | ?:*)
19440 mv -f confcache "$cache_file"$$ &&
19441 mv -f "$cache_file"$$ "$cache_file" ;; #(
19442 *)
19443 mv -f confcache "$cache_file" ;;
19444 esac
19445 fi
19446 fi
19447 else
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19450 fi
19451 fi
19452 rm -f confcache
19453
19454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19455 # Let make expand exec_prefix.
19456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19457
19458 DEFS=-DHAVE_CONFIG_H
19459
19460 ac_libobjs=
19461 ac_ltlibobjs=
19462 U=
19463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19464 # 1. Remove the extension, and $U if already installed.
19465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19466 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19468 # will be set to the directory where LIBOBJS objects are built.
19469 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19470 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19471 done
19472 LIBOBJS=$ac_libobjs
19473
19474 LTLIBOBJS=$ac_ltlibobjs
19475
19476
19477 if test -n "$EXEEXT"; then
19478 am__EXEEXT_TRUE=
19479 am__EXEEXT_FALSE='#'
19480 else
19481 am__EXEEXT_TRUE='#'
19482 am__EXEEXT_FALSE=
19483 fi
19484
19485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19486 as_fn_error $? "conditional \"AMDEP\" was never defined.
19487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19488 fi
19489 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19492 fi
19493 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19494 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19496 fi
19497 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
19498 as_fn_error $? "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
19499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19500 fi
19501 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
19502 as_fn_error $? "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
19503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19504 fi
19505 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19506 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19508 fi
19509 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19510 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19512 fi
19513 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19514 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19516 fi
19517 if test -z "${USE_WIN_VERSION_FILE_TRUE}" && test -z "${USE_WIN_VERSION_FILE_FALSE}"; then
19518 as_fn_error $? "conditional \"USE_WIN_VERSION_FILE\" was never defined.
19519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19520 fi
19521
19522 : "${CONFIG_STATUS=./config.status}"
19523 ac_write_fail=0
19524 ac_clean_files_save=$ac_clean_files
19525 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19527 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19528 as_write_fail=0
19529 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19530 #! $SHELL
19531 # Generated by $as_me.
19532 # Run this file to recreate the current configuration.
19533 # Compiler output produced by configure, useful for debugging
19534 # configure, is in config.log if it exists.
19535
19536 debug=false
19537 ac_cs_recheck=false
19538 ac_cs_silent=false
19539
19540 SHELL=\${CONFIG_SHELL-$SHELL}
19541 export SHELL
19542 _ASEOF
19543 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19544 ## -------------------- ##
19545 ## M4sh Initialization. ##
19546 ## -------------------- ##
19547
19548 # Be more Bourne compatible
19549 DUALCASE=1; export DUALCASE # for MKS sh
19550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19551 emulate sh
19552 NULLCMD=:
19553 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19554 # is contrary to our usage. Disable this feature.
19555 alias -g '${1+"$@"}'='"$@"'
19556 setopt NO_GLOB_SUBST
19557 else
19558 case `(set -o) 2>/dev/null` in #(
19559 *posix*) :
19560 set -o posix ;; #(
19561 *) :
19562 ;;
19563 esac
19564 fi
19565
19566
19567 as_nl='
19568 '
19569 export as_nl
19570 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19571 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19574 # Prefer a ksh shell builtin over an external printf program on Solaris,
19575 # but without wasting forks for bash or zsh.
19576 if test -z "$BASH_VERSION$ZSH_VERSION" \
19577 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19578 as_echo='print -r --'
19579 as_echo_n='print -rn --'
19580 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19581 as_echo='printf %s\n'
19582 as_echo_n='printf %s'
19583 else
19584 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19585 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19586 as_echo_n='/usr/ucb/echo -n'
19587 else
19588 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19589 as_echo_n_body='eval
19590 arg=$1;
19591 case $arg in #(
19592 *"$as_nl"*)
19593 expr "X$arg" : "X\\(.*\\)$as_nl";
19594 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19595 esac;
19596 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19597 '
19598 export as_echo_n_body
19599 as_echo_n='sh -c $as_echo_n_body as_echo'
19600 fi
19601 export as_echo_body
19602 as_echo='sh -c $as_echo_body as_echo'
19603 fi
19604
19605 # The user is always right.
19606 if test "${PATH_SEPARATOR+set}" != set; then
19607 PATH_SEPARATOR=:
19608 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19609 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19610 PATH_SEPARATOR=';'
19611 }
19612 fi
19613
19614
19615 # IFS
19616 # We need space, tab and new line, in precisely that order. Quoting is
19617 # there to prevent editors from complaining about space-tab.
19618 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19619 # splitting by setting IFS to empty value.)
19620 IFS=" "" $as_nl"
19621
19622 # Find who we are. Look in the path if we contain no directory separator.
19623 as_myself=
19624 case $0 in #((
19625 *[\\/]* ) as_myself=$0 ;;
19626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19627 for as_dir in $PATH
19628 do
19629 IFS=$as_save_IFS
19630 test -z "$as_dir" && as_dir=.
19631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19632 done
19633 IFS=$as_save_IFS
19634
19635 ;;
19636 esac
19637 # We did not find ourselves, most probably we were run as `sh COMMAND'
19638 # in which case we are not to be found in the path.
19639 if test "x$as_myself" = x; then
19640 as_myself=$0
19641 fi
19642 if test ! -f "$as_myself"; then
19643 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19644 exit 1
19645 fi
19646
19647 # Unset variables that we do not need and which cause bugs (e.g. in
19648 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19649 # suppresses any "Segmentation fault" message there. '((' could
19650 # trigger a bug in pdksh 5.2.14.
19651 for as_var in BASH_ENV ENV MAIL MAILPATH
19652 do eval test x\${$as_var+set} = xset \
19653 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19654 done
19655 PS1='$ '
19656 PS2='> '
19657 PS4='+ '
19658
19659 # NLS nuisances.
19660 LC_ALL=C
19661 export LC_ALL
19662 LANGUAGE=C
19663 export LANGUAGE
19664
19665 # CDPATH.
19666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19667
19668
19669 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19670 # ----------------------------------------
19671 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19672 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19673 # script with STATUS, using 1 if that was 0.
19674 as_fn_error ()
19675 {
19676 as_status=$1; test $as_status -eq 0 && as_status=1
19677 if test "$4"; then
19678 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19679 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19680 fi
19681 $as_echo "$as_me: error: $2" >&2
19682 as_fn_exit $as_status
19683 } # as_fn_error
19684
19685
19686 # as_fn_set_status STATUS
19687 # -----------------------
19688 # Set $? to STATUS, without forking.
19689 as_fn_set_status ()
19690 {
19691 return $1
19692 } # as_fn_set_status
19693
19694 # as_fn_exit STATUS
19695 # -----------------
19696 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19697 as_fn_exit ()
19698 {
19699 set +e
19700 as_fn_set_status $1
19701 exit $1
19702 } # as_fn_exit
19703
19704 # as_fn_unset VAR
19705 # ---------------
19706 # Portably unset VAR.
19707 as_fn_unset ()
19708 {
19709 { eval $1=; unset $1;}
19710 }
19711 as_unset=as_fn_unset
19712 # as_fn_append VAR VALUE
19713 # ----------------------
19714 # Append the text in VALUE to the end of the definition contained in VAR. Take
19715 # advantage of any shell optimizations that allow amortized linear growth over
19716 # repeated appends, instead of the typical quadratic growth present in naive
19717 # implementations.
19718 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19719 eval 'as_fn_append ()
19720 {
19721 eval $1+=\$2
19722 }'
19723 else
19724 as_fn_append ()
19725 {
19726 eval $1=\$$1\$2
19727 }
19728 fi # as_fn_append
19729
19730 # as_fn_arith ARG...
19731 # ------------------
19732 # Perform arithmetic evaluation on the ARGs, and store the result in the
19733 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19734 # must be portable across $(()) and expr.
19735 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19736 eval 'as_fn_arith ()
19737 {
19738 as_val=$(( $* ))
19739 }'
19740 else
19741 as_fn_arith ()
19742 {
19743 as_val=`expr "$@" || test $? -eq 1`
19744 }
19745 fi # as_fn_arith
19746
19747
19748 if expr a : '\(a\)' >/dev/null 2>&1 &&
19749 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19750 as_expr=expr
19751 else
19752 as_expr=false
19753 fi
19754
19755 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19756 as_basename=basename
19757 else
19758 as_basename=false
19759 fi
19760
19761 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19762 as_dirname=dirname
19763 else
19764 as_dirname=false
19765 fi
19766
19767 as_me=`$as_basename -- "$0" ||
19768 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19769 X"$0" : 'X\(//\)$' \| \
19770 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19771 $as_echo X/"$0" |
19772 sed '/^.*\/\([^/][^/]*\)\/*$/{
19773 s//\1/
19774 q
19775 }
19776 /^X\/\(\/\/\)$/{
19777 s//\1/
19778 q
19779 }
19780 /^X\/\(\/\).*/{
19781 s//\1/
19782 q
19783 }
19784 s/.*/./; q'`
19785
19786 # Avoid depending upon Character Ranges.
19787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19790 as_cr_digits='0123456789'
19791 as_cr_alnum=$as_cr_Letters$as_cr_digits
19792
19793 ECHO_C= ECHO_N= ECHO_T=
19794 case `echo -n x` in #(((((
19795 -n*)
19796 case `echo 'xy\c'` in
19797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19798 xy) ECHO_C='\c';;
19799 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19800 ECHO_T=' ';;
19801 esac;;
19802 *)
19803 ECHO_N='-n';;
19804 esac
19805
19806 rm -f conf$$ conf$$.exe conf$$.file
19807 if test -d conf$$.dir; then
19808 rm -f conf$$.dir/conf$$.file
19809 else
19810 rm -f conf$$.dir
19811 mkdir conf$$.dir 2>/dev/null
19812 fi
19813 if (echo >conf$$.file) 2>/dev/null; then
19814 if ln -s conf$$.file conf$$ 2>/dev/null; then
19815 as_ln_s='ln -s'
19816 # ... but there are two gotchas:
19817 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19818 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19819 # In both cases, we have to default to `cp -p'.
19820 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19821 as_ln_s='cp -p'
19822 elif ln conf$$.file conf$$ 2>/dev/null; then
19823 as_ln_s=ln
19824 else
19825 as_ln_s='cp -p'
19826 fi
19827 else
19828 as_ln_s='cp -p'
19829 fi
19830 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19831 rmdir conf$$.dir 2>/dev/null
19832
19833
19834 # as_fn_mkdir_p
19835 # -------------
19836 # Create "$as_dir" as a directory, including parents if necessary.
19837 as_fn_mkdir_p ()
19838 {
19839
19840 case $as_dir in #(
19841 -*) as_dir=./$as_dir;;
19842 esac
19843 test -d "$as_dir" || eval $as_mkdir_p || {
19844 as_dirs=
19845 while :; do
19846 case $as_dir in #(
19847 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19848 *) as_qdir=$as_dir;;
19849 esac
19850 as_dirs="'$as_qdir' $as_dirs"
19851 as_dir=`$as_dirname -- "$as_dir" ||
19852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19853 X"$as_dir" : 'X\(//\)[^/]' \| \
19854 X"$as_dir" : 'X\(//\)$' \| \
19855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19856 $as_echo X"$as_dir" |
19857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19858 s//\1/
19859 q
19860 }
19861 /^X\(\/\/\)[^/].*/{
19862 s//\1/
19863 q
19864 }
19865 /^X\(\/\/\)$/{
19866 s//\1/
19867 q
19868 }
19869 /^X\(\/\).*/{
19870 s//\1/
19871 q
19872 }
19873 s/.*/./; q'`
19874 test -d "$as_dir" && break
19875 done
19876 test -z "$as_dirs" || eval "mkdir $as_dirs"
19877 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19878
19879
19880 } # as_fn_mkdir_p
19881 if mkdir -p . 2>/dev/null; then
19882 as_mkdir_p='mkdir -p "$as_dir"'
19883 else
19884 test -d ./-p && rmdir ./-p
19885 as_mkdir_p=false
19886 fi
19887
19888 if test -x / >/dev/null 2>&1; then
19889 as_test_x='test -x'
19890 else
19891 if ls -dL / >/dev/null 2>&1; then
19892 as_ls_L_option=L
19893 else
19894 as_ls_L_option=
19895 fi
19896 as_test_x='
19897 eval sh -c '\''
19898 if test -d "$1"; then
19899 test -d "$1/.";
19900 else
19901 case $1 in #(
19902 -*)set "./$1";;
19903 esac;
19904 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19905 ???[sx]*):;;*)false;;esac;fi
19906 '\'' sh
19907 '
19908 fi
19909 as_executable_p=$as_test_x
19910
19911 # Sed expression to map a string onto a valid CPP name.
19912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19913
19914 # Sed expression to map a string onto a valid variable name.
19915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19916
19917
19918 exec 6>&1
19919 ## ----------------------------------- ##
19920 ## Main body of $CONFIG_STATUS script. ##
19921 ## ----------------------------------- ##
19922 _ASEOF
19923 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19924
19925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19926 # Save the log message, to keep $0 and so on meaningful, and to
19927 # report actual input values of CONFIG_FILES etc. instead of their
19928 # values after options handling.
19929 ac_log="
19930 This file was extended by libsndfile $as_me 1.0.25, which was
19931 generated by GNU Autoconf 2.68. Invocation command line was
19932
19933 CONFIG_FILES = $CONFIG_FILES
19934 CONFIG_HEADERS = $CONFIG_HEADERS
19935 CONFIG_LINKS = $CONFIG_LINKS
19936 CONFIG_COMMANDS = $CONFIG_COMMANDS
19937 $ $0 $@
19938
19939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19940 "
19941
19942 _ACEOF
19943
19944 case $ac_config_files in *"
19945 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19946 esac
19947
19948 case $ac_config_headers in *"
19949 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19950 esac
19951
19952
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 # Files that config.status was made for.
19955 config_files="$ac_config_files"
19956 config_headers="$ac_config_headers"
19957 config_commands="$ac_config_commands"
19958
19959 _ACEOF
19960
19961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19962 ac_cs_usage="\
19963 \`$as_me' instantiates files and other configuration actions
19964 from templates according to the current configuration. Unless the files
19965 and actions are specified as TAGs, all are instantiated by default.
19966
19967 Usage: $0 [OPTION]... [TAG]...
19968
19969 -h, --help print this help, then exit
19970 -V, --version print version number and configuration settings, then exit
19971 --config print configuration, then exit
19972 -q, --quiet, --silent
19973 do not print progress messages
19974 -d, --debug don't remove temporary files
19975 --recheck update $as_me by reconfiguring in the same conditions
19976 --file=FILE[:TEMPLATE]
19977 instantiate the configuration file FILE
19978 --header=FILE[:TEMPLATE]
19979 instantiate the configuration header FILE
19980
19981 Configuration files:
19982 $config_files
19983
19984 Configuration headers:
19985 $config_headers
19986
19987 Configuration commands:
19988 $config_commands
19989
19990 Report bugs to <sndfile@mega-nerd.com>.
19991 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>."
19992
19993 _ACEOF
19994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19995 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19996 ac_cs_version="\\
19997 libsndfile config.status 1.0.25
19998 configured by $0, generated by GNU Autoconf 2.68,
19999 with options \\"\$ac_cs_config\\"
20000
20001 Copyright (C) 2010 Free Software Foundation, Inc.
20002 This config.status script is free software; the Free Software Foundation
20003 gives unlimited permission to copy, distribute and modify it."
20004
20005 ac_pwd='$ac_pwd'
20006 srcdir='$srcdir'
20007 INSTALL='$INSTALL'
20008 MKDIR_P='$MKDIR_P'
20009 AWK='$AWK'
20010 test -n "\$AWK" || AWK=awk
20011 _ACEOF
20012
20013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20014 # The default lists apply if the user does not specify any file.
20015 ac_need_defaults=:
20016 while test $# != 0
20017 do
20018 case $1 in
20019 --*=?*)
20020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20021 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20022 ac_shift=:
20023 ;;
20024 --*=)
20025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20026 ac_optarg=
20027 ac_shift=:
20028 ;;
20029 *)
20030 ac_option=$1
20031 ac_optarg=$2
20032 ac_shift=shift
20033 ;;
20034 esac
20035
20036 case $ac_option in
20037 # Handling of the options.
20038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20039 ac_cs_recheck=: ;;
20040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20041 $as_echo "$ac_cs_version"; exit ;;
20042 --config | --confi | --conf | --con | --co | --c )
20043 $as_echo "$ac_cs_config"; exit ;;
20044 --debug | --debu | --deb | --de | --d | -d )
20045 debug=: ;;
20046 --file | --fil | --fi | --f )
20047 $ac_shift
20048 case $ac_optarg in
20049 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20050 '') as_fn_error $? "missing file argument" ;;
20051 esac
20052 as_fn_append CONFIG_FILES " '$ac_optarg'"
20053 ac_need_defaults=false;;
20054 --header | --heade | --head | --hea )
20055 $ac_shift
20056 case $ac_optarg in
20057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20058 esac
20059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20060 ac_need_defaults=false;;
20061 --he | --h)
20062 # Conflict between --help and --header
20063 as_fn_error $? "ambiguous option: \`$1'
20064 Try \`$0 --help' for more information.";;
20065 --help | --hel | -h )
20066 $as_echo "$ac_cs_usage"; exit ;;
20067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20069 ac_cs_silent=: ;;
20070
20071 # This is an error.
20072 -*) as_fn_error $? "unrecognized option: \`$1'
20073 Try \`$0 --help' for more information." ;;
20074
20075 *) as_fn_append ac_config_targets " $1"
20076 ac_need_defaults=false ;;
20077
20078 esac
20079 shift
20080 done
20081
20082 ac_configure_extra_args=
20083
20084 if $ac_cs_silent; then
20085 exec 6>/dev/null
20086 ac_configure_extra_args="$ac_configure_extra_args --silent"
20087 fi
20088
20089 _ACEOF
20090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20091 if \$ac_cs_recheck; then
20092 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20093 shift
20094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20095 CONFIG_SHELL='$SHELL'
20096 export CONFIG_SHELL
20097 exec "\$@"
20098 fi
20099
20100 _ACEOF
20101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20102 exec 5>>config.log
20103 {
20104 echo
20105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20106 ## Running $as_me. ##
20107 _ASBOX
20108 $as_echo "$ac_log"
20109 } >&5
20110
20111 _ACEOF
20112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113 #
20114 # INIT-COMMANDS
20115 #
20116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20117
20118
20119 # The HP-UX ksh and POSIX shell print the target directory to stdout
20120 # if CDPATH is set.
20121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20122
20123 sed_quote_subst='$sed_quote_subst'
20124 double_quote_subst='$double_quote_subst'
20125 delay_variable_subst='$delay_variable_subst'
20126 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20127 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20128 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20129 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20130 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20131 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20132 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20133 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20134 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20135 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20136 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20137 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20138 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20139 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20140 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20141 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20142 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20143 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20144 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20145 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20146 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20147 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20148 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20149 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20150 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20151 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20152 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20153 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20154 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20155 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20156 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20157 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20158 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20159 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20160 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20161 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20162 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20163 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20164 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20165 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20167 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20168 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20169 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20170 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20171 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20172 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20173 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20174 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20175 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20176 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20177 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20178 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20180 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20182 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20183 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20216 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20217 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20218 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20219 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20220 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20221 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20222 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20223 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20224 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20225 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20226 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20227 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20228 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20229 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20230 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20231 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20232 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20233 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20234 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20235 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20236 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20237 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20238 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20239 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20240 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20241 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20242 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20243 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20244 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20245 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20246 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20247 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20248 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20249 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20250 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20251 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20252 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20253 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20254 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20255 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20256 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20257 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20258 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20259 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20260 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20261 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20262 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20263 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20264 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20265 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20266 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20267 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20268 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20269 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20270 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20271 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20272 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20273 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20274 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20275 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20276 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20277 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20278 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20279 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20280 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20281 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20282 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20283 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20284 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20285 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20286 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20287 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20288 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20289 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20290 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20291 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20292 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20293 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20294 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20295 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20296 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20297 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20298 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20299 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20300 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20301 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20302 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20303 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20304 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20305 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20306 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20307 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20308 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20309 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20310 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20311 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20312 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20313 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20314 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20315 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
20316 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20317 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20318 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20319 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20320 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20321 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20322 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20323 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20324 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20325 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20326 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20327 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20328 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20329 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20330 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20331 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20332 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20333 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20334 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20335 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20336 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20337 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20338 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20339 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20340 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20341 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20342 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20343 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20344 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20345 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20346 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20347 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20348 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20349 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20350 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20351 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20352 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20353 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20354 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20355 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20356 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20357 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20358 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20359 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20360
20361 LTCC='$LTCC'
20362 LTCFLAGS='$LTCFLAGS'
20363 compiler='$compiler_DEFAULT'
20364
20365 # A function that is used when there is no print builtin or printf.
20366 func_fallback_echo ()
20367 {
20368 eval 'cat <<_LTECHO_EOF
20369 \$1
20370 _LTECHO_EOF'
20371 }
20372
20373 # Quote evaled strings.
20374 for var in SHELL \
20375 ECHO \
20376 SED \
20377 GREP \
20378 EGREP \
20379 FGREP \
20380 LD \
20381 NM \
20382 LN_S \
20383 lt_SP2NL \
20384 lt_NL2SP \
20385 reload_flag \
20386 OBJDUMP \
20387 deplibs_check_method \
20388 file_magic_cmd \
20389 file_magic_glob \
20390 want_nocaseglob \
20391 DLLTOOL \
20392 sharedlib_from_linklib_cmd \
20393 AR \
20394 AR_FLAGS \
20395 archiver_list_spec \
20396 STRIP \
20397 RANLIB \
20398 CC \
20399 CFLAGS \
20400 compiler \
20401 lt_cv_sys_global_symbol_pipe \
20402 lt_cv_sys_global_symbol_to_cdecl \
20403 lt_cv_sys_global_symbol_to_c_name_address \
20404 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20405 nm_file_list_spec \
20406 lt_prog_compiler_no_builtin_flag \
20407 lt_prog_compiler_pic \
20408 lt_prog_compiler_wl \
20409 lt_prog_compiler_static \
20410 lt_cv_prog_compiler_c_o \
20411 need_locks \
20412 MANIFEST_TOOL \
20413 DSYMUTIL \
20414 NMEDIT \
20415 LIPO \
20416 OTOOL \
20417 OTOOL64 \
20418 shrext_cmds \
20419 export_dynamic_flag_spec \
20420 whole_archive_flag_spec \
20421 compiler_needs_object \
20422 with_gnu_ld \
20423 allow_undefined_flag \
20424 no_undefined_flag \
20425 hardcode_libdir_flag_spec \
20426 hardcode_libdir_flag_spec_ld \
20427 hardcode_libdir_separator \
20428 exclude_expsyms \
20429 include_expsyms \
20430 file_list_spec \
20431 variables_saved_for_relink \
20432 libname_spec \
20433 library_names_spec \
20434 soname_spec \
20435 install_override_mode \
20436 finish_eval \
20437 old_striplib \
20438 striplib \
20439 compiler_lib_search_dirs \
20440 predep_objects \
20441 postdep_objects \
20442 predeps \
20443 postdeps \
20444 compiler_lib_search_path \
20445 LD_CXX \
20446 LD_RC \
20447 reload_flag_CXX \
20448 reload_flag_RC \
20449 compiler_CXX \
20450 compiler_RC \
20451 lt_prog_compiler_no_builtin_flag_CXX \
20452 lt_prog_compiler_no_builtin_flag_RC \
20453 lt_prog_compiler_pic_CXX \
20454 lt_prog_compiler_pic_RC \
20455 lt_prog_compiler_wl_CXX \
20456 lt_prog_compiler_wl_RC \
20457 lt_prog_compiler_static_CXX \
20458 lt_prog_compiler_static_RC \
20459 lt_cv_prog_compiler_c_o_CXX \
20460 lt_cv_prog_compiler_c_o_RC \
20461 export_dynamic_flag_spec_CXX \
20462 export_dynamic_flag_spec_RC \
20463 whole_archive_flag_spec_CXX \
20464 whole_archive_flag_spec_RC \
20465 compiler_needs_object_CXX \
20466 compiler_needs_object_RC \
20467 with_gnu_ld_CXX \
20468 with_gnu_ld_RC \
20469 allow_undefined_flag_CXX \
20470 allow_undefined_flag_RC \
20471 no_undefined_flag_CXX \
20472 no_undefined_flag_RC \
20473 hardcode_libdir_flag_spec_CXX \
20474 hardcode_libdir_flag_spec_RC \
20475 hardcode_libdir_flag_spec_ld_CXX \
20476 hardcode_libdir_flag_spec_ld_RC \
20477 hardcode_libdir_separator_CXX \
20478 hardcode_libdir_separator_RC \
20479 exclude_expsyms_CXX \
20480 exclude_expsyms_RC \
20481 include_expsyms_CXX \
20482 include_expsyms_RC \
20483 file_list_spec_CXX \
20484 file_list_spec_RC \
20485 compiler_lib_search_dirs_CXX \
20486 compiler_lib_search_dirs_RC \
20487 predep_objects_CXX \
20488 predep_objects_RC \
20489 postdep_objects_CXX \
20490 postdep_objects_RC \
20491 predeps_CXX \
20492 predeps_RC \
20493 postdeps_CXX \
20494 postdeps_RC \
20495 compiler_lib_search_path_CXX \
20496 compiler_lib_search_path_RC; do
20497 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20498 *[\\\\\\\`\\"\\\$]*)
20499 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20500 ;;
20501 *)
20502 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20503 ;;
20504 esac
20505 done
20506
20507 # Double-quote double-evaled strings.
20508 for var in reload_cmds \
20509 old_postinstall_cmds \
20510 old_postuninstall_cmds \
20511 old_archive_cmds \
20512 extract_expsyms_cmds \
20513 old_archive_from_new_cmds \
20514 old_archive_from_expsyms_cmds \
20515 archive_cmds \
20516 archive_expsym_cmds \
20517 module_cmds \
20518 module_expsym_cmds \
20519 export_symbols_cmds \
20520 prelink_cmds \
20521 postlink_cmds \
20522 postinstall_cmds \
20523 postuninstall_cmds \
20524 finish_cmds \
20525 sys_lib_search_path_spec \
20526 sys_lib_dlsearch_path_spec \
20527 reload_cmds_CXX \
20528 reload_cmds_RC \
20529 old_archive_cmds_CXX \
20530 old_archive_cmds_RC \
20531 old_archive_from_new_cmds_CXX \
20532 old_archive_from_new_cmds_RC \
20533 old_archive_from_expsyms_cmds_CXX \
20534 old_archive_from_expsyms_cmds_RC \
20535 archive_cmds_CXX \
20536 archive_cmds_RC \
20537 archive_expsym_cmds_CXX \
20538 archive_expsym_cmds_RC \
20539 module_cmds_CXX \
20540 module_cmds_RC \
20541 module_expsym_cmds_CXX \
20542 module_expsym_cmds_RC \
20543 export_symbols_cmds_CXX \
20544 export_symbols_cmds_RC \
20545 prelink_cmds_CXX \
20546 prelink_cmds_RC \
20547 postlink_cmds_CXX \
20548 postlink_cmds_RC; do
20549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20550 *[\\\\\\\`\\"\\\$]*)
20551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20552 ;;
20553 *)
20554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20555 ;;
20556 esac
20557 done
20558
20559 ac_aux_dir='$ac_aux_dir'
20560 xsi_shell='$xsi_shell'
20561 lt_shell_append='$lt_shell_append'
20562
20563 # See if we are running on zsh, and set the options which allow our
20564 # commands through without removal of \ escapes INIT.
20565 if test -n "\${ZSH_VERSION+set}" ; then
20566 setopt NO_GLOB_SUBST
20567 fi
20568
20569
20570 PACKAGE='$PACKAGE'
20571 VERSION='$VERSION'
20572 TIMESTAMP='$TIMESTAMP'
20573 RM='$RM'
20574 ofile='$ofile'
20575
20576
20577
20578
20579
20580
20581
20582
20583 _ACEOF
20584
20585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20586
20587 # Handling of arguments.
20588 for ac_config_target in $ac_config_targets
20589 do
20590 case $ac_config_target in
20591 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20593 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20594 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20595 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20596 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20597 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20598 "regtest/Makefile") CONFIG_FILES="$CONFIG_FILES regtest/Makefile" ;;
20599 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
20600 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20601 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
20602 "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
20603 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20604 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20605 "src/version-metadata.rc") CONFIG_FILES="$CONFIG_FILES src/version-metadata.rc" ;;
20606 "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
20607 "tests/pedantic-header-test.sh") CONFIG_FILES="$CONFIG_FILES tests/pedantic-header-test.sh" ;;
20608 "doc/libsndfile.css") CONFIG_FILES="$CONFIG_FILES doc/libsndfile.css" ;;
20609 "build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES build-test-tarball.mk" ;;
20610 "libsndfile.spec") CONFIG_FILES="$CONFIG_FILES libsndfile.spec" ;;
20611 "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
20612 "src/sndfile.h") CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
20613
20614 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20615 esac
20616 done
20617
20618
20619 # If the user did not use the arguments to specify the items to instantiate,
20620 # then the envvar interface is used. Set only those that are not.
20621 # We use the long form for the default assignment because of an extremely
20622 # bizarre bug on SunOS 4.1.3.
20623 if $ac_need_defaults; then
20624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20627 fi
20628
20629 # Have a temporary directory for convenience. Make it in the build tree
20630 # simply because there is no reason against having it here, and in addition,
20631 # creating and moving files from /tmp can sometimes cause problems.
20632 # Hook for its removal unless debugging.
20633 # Note that there is a small window in which the directory will not be cleaned:
20634 # after its creation but before its name has been assigned to `$tmp'.
20635 $debug ||
20636 {
20637 tmp= ac_tmp=
20638 trap 'exit_status=$?
20639 : "${ac_tmp:=$tmp}"
20640 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20641 ' 0
20642 trap 'as_fn_exit 1' 1 2 13 15
20643 }
20644 # Create a (secure) tmp directory for tmp files.
20645
20646 {
20647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20648 test -d "$tmp"
20649 } ||
20650 {
20651 tmp=./conf$$-$RANDOM
20652 (umask 077 && mkdir "$tmp")
20653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20654 ac_tmp=$tmp
20655
20656 # Set up the scripts for CONFIG_FILES section.
20657 # No need to generate them if there are no CONFIG_FILES.
20658 # This happens for instance with `./config.status config.h'.
20659 if test -n "$CONFIG_FILES"; then
20660
20661
20662 ac_cr=`echo X | tr X '\015'`
20663 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20664 # But we know of no other shell where ac_cr would be empty at this
20665 # point, so we can use a bashism as a fallback.
20666 if test "x$ac_cr" = x; then
20667 eval ac_cr=\$\'\\r\'
20668 fi
20669 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20670 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20671 ac_cs_awk_cr='\\r'
20672 else
20673 ac_cs_awk_cr=$ac_cr
20674 fi
20675
20676 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20677 _ACEOF
20678
20679
20680 {
20681 echo "cat >conf$$subs.awk <<_ACEOF" &&
20682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20683 echo "_ACEOF"
20684 } >conf$$subs.sh ||
20685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20687 ac_delim='%!_!# '
20688 for ac_last_try in false false false false false :; do
20689 . ./conf$$subs.sh ||
20690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20691
20692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20693 if test $ac_delim_n = $ac_delim_num; then
20694 break
20695 elif $ac_last_try; then
20696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20697 else
20698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20699 fi
20700 done
20701 rm -f conf$$subs.sh
20702
20703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20704 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20705 _ACEOF
20706 sed -n '
20707 h
20708 s/^/S["/; s/!.*/"]=/
20709 p
20710 g
20711 s/^[^!]*!//
20712 :repl
20713 t repl
20714 s/'"$ac_delim"'$//
20715 t delim
20716 :nl
20717 h
20718 s/\(.\{148\}\)..*/\1/
20719 t more1
20720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20721 p
20722 n
20723 b repl
20724 :more1
20725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20726 p
20727 g
20728 s/.\{148\}//
20729 t nl
20730 :delim
20731 h
20732 s/\(.\{148\}\)..*/\1/
20733 t more2
20734 s/["\\]/\\&/g; s/^/"/; s/$/"/
20735 p
20736 b
20737 :more2
20738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20739 p
20740 g
20741 s/.\{148\}//
20742 t delim
20743 ' <conf$$subs.awk | sed '
20744 /^[^""]/{
20745 N
20746 s/\n//
20747 }
20748 ' >>$CONFIG_STATUS || ac_write_fail=1
20749 rm -f conf$$subs.awk
20750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751 _ACAWK
20752 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20753 for (key in S) S_is_set[key] = 1
20754 FS = "\a"
20755
20756 }
20757 {
20758 line = $ 0
20759 nfields = split(line, field, "@")
20760 substed = 0
20761 len = length(field[1])
20762 for (i = 2; i < nfields; i++) {
20763 key = field[i]
20764 keylen = length(key)
20765 if (S_is_set[key]) {
20766 value = S[key]
20767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20768 len += length(value) + length(field[++i])
20769 substed = 1
20770 } else
20771 len += 1 + keylen
20772 }
20773
20774 print line
20775 }
20776
20777 _ACAWK
20778 _ACEOF
20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20781 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20782 else
20783 cat
20784 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20785 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20786 _ACEOF
20787
20788 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20789 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20790 # trailing colons and then remove the whole line if VPATH becomes empty
20791 # (actually we leave an empty line to preserve line numbers).
20792 if test "x$srcdir" = x.; then
20793 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20794 h
20795 s///
20796 s/^/:/
20797 s/[ ]*$/:/
20798 s/:\$(srcdir):/:/g
20799 s/:\${srcdir}:/:/g
20800 s/:@srcdir@:/:/g
20801 s/^:*//
20802 s/:*$//
20803 x
20804 s/\(=[ ]*\).*/\1/
20805 G
20806 s/\n//
20807 s/^[^=]*=[ ]*$//
20808 }'
20809 fi
20810
20811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812 fi # test -n "$CONFIG_FILES"
20813
20814 # Set up the scripts for CONFIG_HEADERS section.
20815 # No need to generate them if there are no CONFIG_HEADERS.
20816 # This happens for instance with `./config.status Makefile'.
20817 if test -n "$CONFIG_HEADERS"; then
20818 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20819 BEGIN {
20820 _ACEOF
20821
20822 # Transform confdefs.h into an awk script `defines.awk', embedded as
20823 # here-document in config.status, that substitutes the proper values into
20824 # config.h.in to produce config.h.
20825
20826 # Create a delimiter string that does not exist in confdefs.h, to ease
20827 # handling of long lines.
20828 ac_delim='%!_!# '
20829 for ac_last_try in false false :; do
20830 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20831 if test -z "$ac_tt"; then
20832 break
20833 elif $ac_last_try; then
20834 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20835 else
20836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20837 fi
20838 done
20839
20840 # For the awk script, D is an array of macro values keyed by name,
20841 # likewise P contains macro parameters if any. Preserve backslash
20842 # newline sequences.
20843
20844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20845 sed -n '
20846 s/.\{148\}/&'"$ac_delim"'/g
20847 t rset
20848 :rset
20849 s/^[ ]*#[ ]*define[ ][ ]*/ /
20850 t def
20851 d
20852 :def
20853 s/\\$//
20854 t bsnl
20855 s/["\\]/\\&/g
20856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20857 D["\1"]=" \3"/p
20858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20859 d
20860 :bsnl
20861 s/["\\]/\\&/g
20862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20863 D["\1"]=" \3\\\\\\n"\\/p
20864 t cont
20865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20866 t cont
20867 d
20868 :cont
20869 n
20870 s/.\{148\}/&'"$ac_delim"'/g
20871 t clear
20872 :clear
20873 s/\\$//
20874 t bsnlc
20875 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20876 d
20877 :bsnlc
20878 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20879 b cont
20880 ' <confdefs.h | sed '
20881 s/'"$ac_delim"'/"\\\
20882 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20883
20884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20885 for (key in D) D_is_set[key] = 1
20886 FS = "\a"
20887 }
20888 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20889 line = \$ 0
20890 split(line, arg, " ")
20891 if (arg[1] == "#") {
20892 defundef = arg[2]
20893 mac1 = arg[3]
20894 } else {
20895 defundef = substr(arg[1], 2)
20896 mac1 = arg[2]
20897 }
20898 split(mac1, mac2, "(") #)
20899 macro = mac2[1]
20900 prefix = substr(line, 1, index(line, defundef) - 1)
20901 if (D_is_set[macro]) {
20902 # Preserve the white space surrounding the "#".
20903 print prefix "define", macro P[macro] D[macro]
20904 next
20905 } else {
20906 # Replace #undef with comments. This is necessary, for example,
20907 # in the case of _POSIX_SOURCE, which is predefined and required
20908 # on some systems where configure will not decide to define it.
20909 if (defundef == "undef") {
20910 print "/*", prefix defundef, macro, "*/"
20911 next
20912 }
20913 }
20914 }
20915 { print }
20916 _ACAWK
20917 _ACEOF
20918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20919 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20920 fi # test -n "$CONFIG_HEADERS"
20921
20922
20923 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20924 shift
20925 for ac_tag
20926 do
20927 case $ac_tag in
20928 :[FHLC]) ac_mode=$ac_tag; continue;;
20929 esac
20930 case $ac_mode$ac_tag in
20931 :[FHL]*:*);;
20932 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20933 :[FH]-) ac_tag=-:-;;
20934 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20935 esac
20936 ac_save_IFS=$IFS
20937 IFS=:
20938 set x $ac_tag
20939 IFS=$ac_save_IFS
20940 shift
20941 ac_file=$1
20942 shift
20943
20944 case $ac_mode in
20945 :L) ac_source=$1;;
20946 :[FH])
20947 ac_file_inputs=
20948 for ac_f
20949 do
20950 case $ac_f in
20951 -) ac_f="$ac_tmp/stdin";;
20952 *) # Look for the file first in the build tree, then in the source tree
20953 # (if the path is not absolute). The absolute path cannot be DOS-style,
20954 # because $ac_f cannot contain `:'.
20955 test -f "$ac_f" ||
20956 case $ac_f in
20957 [\\/$]*) false;;
20958 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20959 esac ||
20960 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20961 esac
20962 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20963 as_fn_append ac_file_inputs " '$ac_f'"
20964 done
20965
20966 # Let's still pretend it is `configure' which instantiates (i.e., don't
20967 # use $as_me), people would be surprised to read:
20968 # /* config.h. Generated by config.status. */
20969 configure_input='Generated from '`
20970 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20971 `' by configure.'
20972 if test x"$ac_file" != x-; then
20973 configure_input="$ac_file. $configure_input"
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20975 $as_echo "$as_me: creating $ac_file" >&6;}
20976 fi
20977 # Neutralize special characters interpreted by sed in replacement strings.
20978 case $configure_input in #(
20979 *\&* | *\|* | *\\* )
20980 ac_sed_conf_input=`$as_echo "$configure_input" |
20981 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20982 *) ac_sed_conf_input=$configure_input;;
20983 esac
20984
20985 case $ac_tag in
20986 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20988 esac
20989 ;;
20990 esac
20991
20992 ac_dir=`$as_dirname -- "$ac_file" ||
20993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994 X"$ac_file" : 'X\(//\)[^/]' \| \
20995 X"$ac_file" : 'X\(//\)$' \| \
20996 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20997 $as_echo X"$ac_file" |
20998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20999 s//\1/
21000 q
21001 }
21002 /^X\(\/\/\)[^/].*/{
21003 s//\1/
21004 q
21005 }
21006 /^X\(\/\/\)$/{
21007 s//\1/
21008 q
21009 }
21010 /^X\(\/\).*/{
21011 s//\1/
21012 q
21013 }
21014 s/.*/./; q'`
21015 as_dir="$ac_dir"; as_fn_mkdir_p
21016 ac_builddir=.
21017
21018 case "$ac_dir" in
21019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21020 *)
21021 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21022 # A ".." for each directory in $ac_dir_suffix.
21023 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21024 case $ac_top_builddir_sub in
21025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21027 esac ;;
21028 esac
21029 ac_abs_top_builddir=$ac_pwd
21030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21031 # for backward compatibility:
21032 ac_top_builddir=$ac_top_build_prefix
21033
21034 case $srcdir in
21035 .) # We are building in place.
21036 ac_srcdir=.
21037 ac_top_srcdir=$ac_top_builddir_sub
21038 ac_abs_top_srcdir=$ac_pwd ;;
21039 [\\/]* | ?:[\\/]* ) # Absolute name.
21040 ac_srcdir=$srcdir$ac_dir_suffix;
21041 ac_top_srcdir=$srcdir
21042 ac_abs_top_srcdir=$srcdir ;;
21043 *) # Relative name.
21044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21045 ac_top_srcdir=$ac_top_build_prefix$srcdir
21046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21047 esac
21048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21049
21050
21051 case $ac_mode in
21052 :F)
21053 #
21054 # CONFIG_FILE
21055 #
21056
21057 case $INSTALL in
21058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21060 esac
21061 ac_MKDIR_P=$MKDIR_P
21062 case $MKDIR_P in
21063 [\\/$]* | ?:[\\/]* ) ;;
21064 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21065 esac
21066 _ACEOF
21067
21068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21069 # If the template does not know about datarootdir, expand it.
21070 # FIXME: This hack should be removed a few years after 2.60.
21071 ac_datarootdir_hack=; ac_datarootdir_seen=
21072 ac_sed_dataroot='
21073 /datarootdir/ {
21074 p
21075 q
21076 }
21077 /@datadir@/p
21078 /@docdir@/p
21079 /@infodir@/p
21080 /@localedir@/p
21081 /@mandir@/p'
21082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21083 *datarootdir*) ac_datarootdir_seen=yes;;
21084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21087 _ACEOF
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 ac_datarootdir_hack='
21090 s&@datadir@&$datadir&g
21091 s&@docdir@&$docdir&g
21092 s&@infodir@&$infodir&g
21093 s&@localedir@&$localedir&g
21094 s&@mandir@&$mandir&g
21095 s&\\\${datarootdir}&$datarootdir&g' ;;
21096 esac
21097 _ACEOF
21098
21099 # Neutralize VPATH when `$srcdir' = `.'.
21100 # Shell code in configure.ac might set extrasub.
21101 # FIXME: do we really want to maintain this feature?
21102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21103 ac_sed_extra="$ac_vpsub
21104 $extrasub
21105 _ACEOF
21106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21107 :t
21108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21109 s|@configure_input@|$ac_sed_conf_input|;t t
21110 s&@top_builddir@&$ac_top_builddir_sub&;t t
21111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21112 s&@srcdir@&$ac_srcdir&;t t
21113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21114 s&@top_srcdir@&$ac_top_srcdir&;t t
21115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21116 s&@builddir@&$ac_builddir&;t t
21117 s&@abs_builddir@&$ac_abs_builddir&;t t
21118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21119 s&@INSTALL@&$ac_INSTALL&;t t
21120 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21121 $ac_datarootdir_hack
21122 "
21123 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21124 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21125
21126 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21127 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21128 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21129 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21131 which seems to be undefined. Please make sure it is defined" >&5
21132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21133 which seems to be undefined. Please make sure it is defined" >&2;}
21134
21135 rm -f "$ac_tmp/stdin"
21136 case $ac_file in
21137 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21138 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21139 esac \
21140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21141 ;;
21142 :H)
21143 #
21144 # CONFIG_HEADER
21145 #
21146 if test x"$ac_file" != x-; then
21147 {
21148 $as_echo "/* $configure_input */" \
21149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21150 } >"$ac_tmp/config.h" \
21151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21152 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21154 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21155 else
21156 rm -f "$ac_file"
21157 mv "$ac_tmp/config.h" "$ac_file" \
21158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21159 fi
21160 else
21161 $as_echo "/* $configure_input */" \
21162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21163 || as_fn_error $? "could not create -" "$LINENO" 5
21164 fi
21165 # Compute "$ac_file"'s index in $config_headers.
21166 _am_arg="$ac_file"
21167 _am_stamp_count=1
21168 for _am_header in $config_headers :; do
21169 case $_am_header in
21170 $_am_arg | $_am_arg:* )
21171 break ;;
21172 * )
21173 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21174 esac
21175 done
21176 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21177 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$_am_arg" : 'X\(//\)[^/]' \| \
21179 X"$_am_arg" : 'X\(//\)$' \| \
21180 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21181 $as_echo X"$_am_arg" |
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)[^/].*/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\/\)$/{
21191 s//\1/
21192 q
21193 }
21194 /^X\(\/\).*/{
21195 s//\1/
21196 q
21197 }
21198 s/.*/./; q'`/stamp-h$_am_stamp_count
21199 ;;
21200
21201 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21202 $as_echo "$as_me: executing $ac_file commands" >&6;}
21203 ;;
21204 esac
21205
21206
21207 case $ac_file$ac_mode in
21208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21209 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21210 # are listed without --file. Let's play safe and only enable the eval
21211 # if we detect the quoting.
21212 case $CONFIG_FILES in
21213 *\'*) eval set x "$CONFIG_FILES" ;;
21214 *) set x $CONFIG_FILES ;;
21215 esac
21216 shift
21217 for mf
21218 do
21219 # Strip MF so we end up with the name of the file.
21220 mf=`echo "$mf" | sed -e 's/:.*$//'`
21221 # Check whether this is an Automake generated Makefile or not.
21222 # We used to match only the files named `Makefile.in', but
21223 # some people rename them; so instead we look at the file content.
21224 # Grep'ing the first line is not enough: some people post-process
21225 # each Makefile.in and add a new line on top of each file to say so.
21226 # Grep'ing the whole file is not good either: AIX grep has a line
21227 # limit of 2048, but all sed's we know have understand at least 4000.
21228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21229 dirpart=`$as_dirname -- "$mf" ||
21230 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21231 X"$mf" : 'X\(//\)[^/]' \| \
21232 X"$mf" : 'X\(//\)$' \| \
21233 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21234 $as_echo X"$mf" |
21235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\/\)[^/].*/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\/\)$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\).*/{
21248 s//\1/
21249 q
21250 }
21251 s/.*/./; q'`
21252 else
21253 continue
21254 fi
21255 # Extract the definition of DEPDIR, am__include, and am__quote
21256 # from the Makefile without running `make'.
21257 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21258 test -z "$DEPDIR" && continue
21259 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21260 test -z "am__include" && continue
21261 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21262 # When using ansi2knr, U may be empty or an underscore; expand it
21263 U=`sed -n 's/^U = //p' < "$mf"`
21264 # Find all dependency output files, they are included files with
21265 # $(DEPDIR) in their names. We invoke sed twice because it is the
21266 # simplest approach to changing $(DEPDIR) to its actual value in the
21267 # expansion.
21268 for file in `sed -n "
21269 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21270 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21271 # Make sure the directory exists.
21272 test -f "$dirpart/$file" && continue
21273 fdir=`$as_dirname -- "$file" ||
21274 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$file" : 'X\(//\)[^/]' \| \
21276 X"$file" : 'X\(//\)$' \| \
21277 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21278 $as_echo X"$file" |
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280 s//\1/
21281 q
21282 }
21283 /^X\(\/\/\)[^/].*/{
21284 s//\1/
21285 q
21286 }
21287 /^X\(\/\/\)$/{
21288 s//\1/
21289 q
21290 }
21291 /^X\(\/\).*/{
21292 s//\1/
21293 q
21294 }
21295 s/.*/./; q'`
21296 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21297 # echo "creating $dirpart/$file"
21298 echo '# dummy' > "$dirpart/$file"
21299 done
21300 done
21301 }
21302 ;;
21303 "libtool":C)
21304
21305 # See if we are running on zsh, and set the options which allow our
21306 # commands through without removal of \ escapes.
21307 if test -n "${ZSH_VERSION+set}" ; then
21308 setopt NO_GLOB_SUBST
21309 fi
21310
21311 cfgfile="${ofile}T"
21312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21313 $RM "$cfgfile"
21314
21315 cat <<_LT_EOF >> "$cfgfile"
21316 #! $SHELL
21317
21318 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21319 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21321 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21322 #
21323 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21324 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21325 # Inc.
21326 # Written by Gordon Matzigkeit, 1996
21327 #
21328 # This file is part of GNU Libtool.
21329 #
21330 # GNU Libtool is free software; you can redistribute it and/or
21331 # modify it under the terms of the GNU General Public License as
21332 # published by the Free Software Foundation; either version 2 of
21333 # the License, or (at your option) any later version.
21334 #
21335 # As a special exception to the GNU General Public License,
21336 # if you distribute this file as part of a program or library that
21337 # is built using GNU Libtool, you may include this file under the
21338 # same distribution terms that you use for the rest of that program.
21339 #
21340 # GNU Libtool is distributed in the hope that it will be useful,
21341 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21343 # GNU General Public License for more details.
21344 #
21345 # You should have received a copy of the GNU General Public License
21346 # along with GNU Libtool; see the file COPYING. If not, a copy
21347 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21348 # obtained by writing to the Free Software Foundation, Inc.,
21349 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21350
21351
21352 # The names of the tagged configurations supported by this script.
21353 available_tags="CXX RC "
21354
21355 # ### BEGIN LIBTOOL CONFIG
21356
21357 # Which release of libtool.m4 was used?
21358 macro_version=$macro_version
21359 macro_revision=$macro_revision
21360
21361 # Whether or not to build shared libraries.
21362 build_libtool_libs=$enable_shared
21363
21364 # Whether or not to build static libraries.
21365 build_old_libs=$enable_static
21366
21367 # What type of objects to build.
21368 pic_mode=$pic_mode
21369
21370 # Whether or not to optimize for fast installation.
21371 fast_install=$enable_fast_install
21372
21373 # Shell to use when invoking shell scripts.
21374 SHELL=$lt_SHELL
21375
21376 # An echo program that protects backslashes.
21377 ECHO=$lt_ECHO
21378
21379 # The host system.
21380 host_alias=$host_alias
21381 host=$host
21382 host_os=$host_os
21383
21384 # The build system.
21385 build_alias=$build_alias
21386 build=$build
21387 build_os=$build_os
21388
21389 # A sed program that does not truncate output.
21390 SED=$lt_SED
21391
21392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21393 Xsed="\$SED -e 1s/^X//"
21394
21395 # A grep program that handles long lines.
21396 GREP=$lt_GREP
21397
21398 # An ERE matcher.
21399 EGREP=$lt_EGREP
21400
21401 # A literal string matcher.
21402 FGREP=$lt_FGREP
21403
21404 # A BSD- or MS-compatible name lister.
21405 NM=$lt_NM
21406
21407 # Whether we need soft or hard links.
21408 LN_S=$lt_LN_S
21409
21410 # What is the maximum length of a command?
21411 max_cmd_len=$max_cmd_len
21412
21413 # Object file suffix (normally "o").
21414 objext=$ac_objext
21415
21416 # Executable file suffix (normally "").
21417 exeext=$exeext
21418
21419 # whether the shell understands "unset".
21420 lt_unset=$lt_unset
21421
21422 # turn spaces into newlines.
21423 SP2NL=$lt_lt_SP2NL
21424
21425 # turn newlines into spaces.
21426 NL2SP=$lt_lt_NL2SP
21427
21428 # convert \$build file names to \$host format.
21429 to_host_file_cmd=$lt_cv_to_host_file_cmd
21430
21431 # convert \$build files to toolchain format.
21432 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21433
21434 # An object symbol dumper.
21435 OBJDUMP=$lt_OBJDUMP
21436
21437 # Method to check whether dependent libraries are shared objects.
21438 deplibs_check_method=$lt_deplibs_check_method
21439
21440 # Command to use when deplibs_check_method = "file_magic".
21441 file_magic_cmd=$lt_file_magic_cmd
21442
21443 # How to find potential files when deplibs_check_method = "file_magic".
21444 file_magic_glob=$lt_file_magic_glob
21445
21446 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21447 want_nocaseglob=$lt_want_nocaseglob
21448
21449 # DLL creation program.
21450 DLLTOOL=$lt_DLLTOOL
21451
21452 # Command to associate shared and link libraries.
21453 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21454
21455 # The archiver.
21456 AR=$lt_AR
21457
21458 # Flags to create an archive.
21459 AR_FLAGS=$lt_AR_FLAGS
21460
21461 # How to feed a file listing to the archiver.
21462 archiver_list_spec=$lt_archiver_list_spec
21463
21464 # A symbol stripping program.
21465 STRIP=$lt_STRIP
21466
21467 # Commands used to install an old-style archive.
21468 RANLIB=$lt_RANLIB
21469 old_postinstall_cmds=$lt_old_postinstall_cmds
21470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21471
21472 # Whether to use a lock for old archive extraction.
21473 lock_old_archive_extraction=$lock_old_archive_extraction
21474
21475 # A C compiler.
21476 LTCC=$lt_CC
21477
21478 # LTCC compiler flags.
21479 LTCFLAGS=$lt_CFLAGS
21480
21481 # Take the output of nm and produce a listing of raw symbols and C names.
21482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21483
21484 # Transform the output of nm in a proper C declaration.
21485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21486
21487 # Transform the output of nm in a C name address pair.
21488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21489
21490 # Transform the output of nm in a C name address pair when lib prefix is needed.
21491 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21492
21493 # Specify filename containing input files for \$NM.
21494 nm_file_list_spec=$lt_nm_file_list_spec
21495
21496 # The root where to search for dependent libraries,and in which our libraries should be installed.
21497 lt_sysroot=$lt_sysroot
21498
21499 # The name of the directory that contains temporary libtool files.
21500 objdir=$objdir
21501
21502 # Used to examine libraries when file_magic_cmd begins with "file".
21503 MAGIC_CMD=$MAGIC_CMD
21504
21505 # Must we lock files when doing compilation?
21506 need_locks=$lt_need_locks
21507
21508 # Manifest tool.
21509 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21510
21511 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21512 DSYMUTIL=$lt_DSYMUTIL
21513
21514 # Tool to change global to local symbols on Mac OS X.
21515 NMEDIT=$lt_NMEDIT
21516
21517 # Tool to manipulate fat objects and archives on Mac OS X.
21518 LIPO=$lt_LIPO
21519
21520 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21521 OTOOL=$lt_OTOOL
21522
21523 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21524 OTOOL64=$lt_OTOOL64
21525
21526 # Old archive suffix (normally "a").
21527 libext=$libext
21528
21529 # Shared library suffix (normally ".so").
21530 shrext_cmds=$lt_shrext_cmds
21531
21532 # The commands to extract the exported symbol list from a shared archive.
21533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21534
21535 # Variables whose values should be saved in libtool wrapper scripts and
21536 # restored at link time.
21537 variables_saved_for_relink=$lt_variables_saved_for_relink
21538
21539 # Do we need the "lib" prefix for modules?
21540 need_lib_prefix=$need_lib_prefix
21541
21542 # Do we need a version for libraries?
21543 need_version=$need_version
21544
21545 # Library versioning type.
21546 version_type=$version_type
21547
21548 # Shared library runtime path variable.
21549 runpath_var=$runpath_var
21550
21551 # Shared library path variable.
21552 shlibpath_var=$shlibpath_var
21553
21554 # Is shlibpath searched before the hard-coded library search path?
21555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21556
21557 # Format of library name prefix.
21558 libname_spec=$lt_libname_spec
21559
21560 # List of archive names. First name is the real one, the rest are links.
21561 # The last name is the one that the linker finds with -lNAME
21562 library_names_spec=$lt_library_names_spec
21563
21564 # The coded name of the library, if different from the real name.
21565 soname_spec=$lt_soname_spec
21566
21567 # Permission mode override for installation of shared libraries.
21568 install_override_mode=$lt_install_override_mode
21569
21570 # Command to use after installation of a shared archive.
21571 postinstall_cmds=$lt_postinstall_cmds
21572
21573 # Command to use after uninstallation of a shared archive.
21574 postuninstall_cmds=$lt_postuninstall_cmds
21575
21576 # Commands used to finish a libtool library installation in a directory.
21577 finish_cmds=$lt_finish_cmds
21578
21579 # As "finish_cmds", except a single script fragment to be evaled but
21580 # not shown.
21581 finish_eval=$lt_finish_eval
21582
21583 # Whether we should hardcode library paths into libraries.
21584 hardcode_into_libs=$hardcode_into_libs
21585
21586 # Compile-time system search path for libraries.
21587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21588
21589 # Run-time system search path for libraries.
21590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21591
21592 # Whether dlopen is supported.
21593 dlopen_support=$enable_dlopen
21594
21595 # Whether dlopen of programs is supported.
21596 dlopen_self=$enable_dlopen_self
21597
21598 # Whether dlopen of statically linked programs is supported.
21599 dlopen_self_static=$enable_dlopen_self_static
21600
21601 # Commands to strip libraries.
21602 old_striplib=$lt_old_striplib
21603 striplib=$lt_striplib
21604
21605
21606 # The linker used to build libraries.
21607 LD=$lt_LD
21608
21609 # How to create reloadable object files.
21610 reload_flag=$lt_reload_flag
21611 reload_cmds=$lt_reload_cmds
21612
21613 # Commands used to build an old-style archive.
21614 old_archive_cmds=$lt_old_archive_cmds
21615
21616 # A language specific compiler.
21617 CC=$lt_compiler
21618
21619 # Is the compiler the GNU compiler?
21620 with_gcc=$GCC
21621
21622 # Compiler flag to turn off builtin functions.
21623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21624
21625 # Additional compiler flags for building library objects.
21626 pic_flag=$lt_lt_prog_compiler_pic
21627
21628 # How to pass a linker flag through the compiler.
21629 wl=$lt_lt_prog_compiler_wl
21630
21631 # Compiler flag to prevent dynamic linking.
21632 link_static_flag=$lt_lt_prog_compiler_static
21633
21634 # Does compiler simultaneously support -c and -o options?
21635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21636
21637 # Whether or not to add -lc for building shared libraries.
21638 build_libtool_need_lc=$archive_cmds_need_lc
21639
21640 # Whether or not to disallow shared libs when runtime libs are static.
21641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21642
21643 # Compiler flag to allow reflexive dlopens.
21644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21645
21646 # Compiler flag to generate shared objects directly from archives.
21647 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21648
21649 # Whether the compiler copes with passing no objects directly.
21650 compiler_needs_object=$lt_compiler_needs_object
21651
21652 # Create an old-style archive from a shared archive.
21653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21654
21655 # Create a temporary old-style archive to link instead of a shared archive.
21656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21657
21658 # Commands used to build a shared archive.
21659 archive_cmds=$lt_archive_cmds
21660 archive_expsym_cmds=$lt_archive_expsym_cmds
21661
21662 # Commands used to build a loadable module if different from building
21663 # a shared archive.
21664 module_cmds=$lt_module_cmds
21665 module_expsym_cmds=$lt_module_expsym_cmds
21666
21667 # Whether we are building with GNU ld or not.
21668 with_gnu_ld=$lt_with_gnu_ld
21669
21670 # Flag that allows shared libraries with undefined symbols to be built.
21671 allow_undefined_flag=$lt_allow_undefined_flag
21672
21673 # Flag that enforces no undefined symbols.
21674 no_undefined_flag=$lt_no_undefined_flag
21675
21676 # Flag to hardcode \$libdir into a binary during linking.
21677 # This must work even if \$libdir does not exist
21678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21679
21680 # If ld is used when linking, flag to hardcode \$libdir into a binary
21681 # during linking. This must work even if \$libdir does not exist.
21682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21683
21684 # Whether we need a single "-rpath" flag with a separated argument.
21685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21686
21687 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21688 # DIR into the resulting binary.
21689 hardcode_direct=$hardcode_direct
21690
21691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21692 # DIR into the resulting binary and the resulting library dependency is
21693 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21694 # library is relocated.
21695 hardcode_direct_absolute=$hardcode_direct_absolute
21696
21697 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21698 # into the resulting binary.
21699 hardcode_minus_L=$hardcode_minus_L
21700
21701 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21702 # into the resulting binary.
21703 hardcode_shlibpath_var=$hardcode_shlibpath_var
21704
21705 # Set to "yes" if building a shared library automatically hardcodes DIR
21706 # into the library and all subsequent libraries and executables linked
21707 # against it.
21708 hardcode_automatic=$hardcode_automatic
21709
21710 # Set to yes if linker adds runtime paths of dependent libraries
21711 # to runtime path list.
21712 inherit_rpath=$inherit_rpath
21713
21714 # Whether libtool must link a program against all its dependency libraries.
21715 link_all_deplibs=$link_all_deplibs
21716
21717 # Set to "yes" if exported symbols are required.
21718 always_export_symbols=$always_export_symbols
21719
21720 # The commands to list exported symbols.
21721 export_symbols_cmds=$lt_export_symbols_cmds
21722
21723 # Symbols that should not be listed in the preloaded symbols.
21724 exclude_expsyms=$lt_exclude_expsyms
21725
21726 # Symbols that must always be exported.
21727 include_expsyms=$lt_include_expsyms
21728
21729 # Commands necessary for linking programs (against libraries) with templates.
21730 prelink_cmds=$lt_prelink_cmds
21731
21732 # Commands necessary for finishing linking programs.
21733 postlink_cmds=$lt_postlink_cmds
21734
21735 # Specify filename containing input files.
21736 file_list_spec=$lt_file_list_spec
21737
21738 # How to hardcode a shared library path into an executable.
21739 hardcode_action=$hardcode_action
21740
21741 # The directories searched by this compiler when creating a shared library.
21742 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21743
21744 # Dependencies to place before and after the objects being linked to
21745 # create a shared library.
21746 predep_objects=$lt_predep_objects
21747 postdep_objects=$lt_postdep_objects
21748 predeps=$lt_predeps
21749 postdeps=$lt_postdeps
21750
21751 # The library search path used internally by the compiler when linking
21752 # a shared library.
21753 compiler_lib_search_path=$lt_compiler_lib_search_path
21754
21755 # ### END LIBTOOL CONFIG
21756
21757 _LT_EOF
21758
21759 case $host_os in
21760 aix3*)
21761 cat <<\_LT_EOF >> "$cfgfile"
21762 # AIX sometimes has problems with the GCC collect2 program. For some
21763 # reason, if we set the COLLECT_NAMES environment variable, the problems
21764 # vanish in a puff of smoke.
21765 if test "X${COLLECT_NAMES+set}" != Xset; then
21766 COLLECT_NAMES=
21767 export COLLECT_NAMES
21768 fi
21769 _LT_EOF
21770 ;;
21771 esac
21772
21773
21774 ltmain="$ac_aux_dir/ltmain.sh"
21775
21776
21777 # We use sed instead of cat because bash on DJGPP gets confused if
21778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21779 # text mode, it properly converts lines to CR/LF. This bash problem
21780 # is reportedly fixed, but why not run on old versions too?
21781 sed '$q' "$ltmain" >> "$cfgfile" \
21782 || (rm -f "$cfgfile"; exit 1)
21783
21784 if test x"$xsi_shell" = xyes; then
21785 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21786 func_dirname ()\
21787 {\
21788 \ case ${1} in\
21789 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21790 \ * ) func_dirname_result="${3}" ;;\
21791 \ esac\
21792 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21793 && mv -f "$cfgfile.tmp" "$cfgfile" \
21794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21795 test 0 -eq $? || _lt_function_replace_fail=:
21796
21797
21798 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21799 func_basename ()\
21800 {\
21801 \ func_basename_result="${1##*/}"\
21802 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21803 && mv -f "$cfgfile.tmp" "$cfgfile" \
21804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21805 test 0 -eq $? || _lt_function_replace_fail=:
21806
21807
21808 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21809 func_dirname_and_basename ()\
21810 {\
21811 \ case ${1} in\
21812 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21813 \ * ) func_dirname_result="${3}" ;;\
21814 \ esac\
21815 \ func_basename_result="${1##*/}"\
21816 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21817 && mv -f "$cfgfile.tmp" "$cfgfile" \
21818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21819 test 0 -eq $? || _lt_function_replace_fail=:
21820
21821
21822 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21823 func_stripname ()\
21824 {\
21825 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21826 \ # positional parameters, so assign one to ordinary parameter first.\
21827 \ func_stripname_result=${3}\
21828 \ func_stripname_result=${func_stripname_result#"${1}"}\
21829 \ func_stripname_result=${func_stripname_result%"${2}"}\
21830 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21831 && mv -f "$cfgfile.tmp" "$cfgfile" \
21832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21833 test 0 -eq $? || _lt_function_replace_fail=:
21834
21835
21836 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21837 func_split_long_opt ()\
21838 {\
21839 \ func_split_long_opt_name=${1%%=*}\
21840 \ func_split_long_opt_arg=${1#*=}\
21841 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21842 && mv -f "$cfgfile.tmp" "$cfgfile" \
21843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21844 test 0 -eq $? || _lt_function_replace_fail=:
21845
21846
21847 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21848 func_split_short_opt ()\
21849 {\
21850 \ func_split_short_opt_arg=${1#??}\
21851 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21852 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21853 && mv -f "$cfgfile.tmp" "$cfgfile" \
21854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21855 test 0 -eq $? || _lt_function_replace_fail=:
21856
21857
21858 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21859 func_lo2o ()\
21860 {\
21861 \ case ${1} in\
21862 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21863 \ *) func_lo2o_result=${1} ;;\
21864 \ esac\
21865 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21866 && mv -f "$cfgfile.tmp" "$cfgfile" \
21867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21868 test 0 -eq $? || _lt_function_replace_fail=:
21869
21870
21871 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21872 func_xform ()\
21873 {\
21874 func_xform_result=${1%.*}.lo\
21875 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21876 && mv -f "$cfgfile.tmp" "$cfgfile" \
21877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21878 test 0 -eq $? || _lt_function_replace_fail=:
21879
21880
21881 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21882 func_arith ()\
21883 {\
21884 func_arith_result=$(( $* ))\
21885 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21886 && mv -f "$cfgfile.tmp" "$cfgfile" \
21887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21888 test 0 -eq $? || _lt_function_replace_fail=:
21889
21890
21891 sed -e '/^func_len ()$/,/^} # func_len /c\
21892 func_len ()\
21893 {\
21894 func_len_result=${#1}\
21895 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21896 && mv -f "$cfgfile.tmp" "$cfgfile" \
21897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21898 test 0 -eq $? || _lt_function_replace_fail=:
21899
21900 fi
21901
21902 if test x"$lt_shell_append" = xyes; then
21903 sed -e '/^func_append ()$/,/^} # func_append /c\
21904 func_append ()\
21905 {\
21906 eval "${1}+=\\${2}"\
21907 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21908 && mv -f "$cfgfile.tmp" "$cfgfile" \
21909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21910 test 0 -eq $? || _lt_function_replace_fail=:
21911
21912
21913 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21914 func_append_quoted ()\
21915 {\
21916 \ func_quote_for_eval "${2}"\
21917 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21918 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21919 && mv -f "$cfgfile.tmp" "$cfgfile" \
21920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21921 test 0 -eq $? || _lt_function_replace_fail=:
21922
21923
21924 # Save a `func_append' function call where possible by direct use of '+='
21925 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21926 && mv -f "$cfgfile.tmp" "$cfgfile" \
21927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21928 test 0 -eq $? || _lt_function_replace_fail=:
21929 else
21930 # Save a `func_append' function call even when '+=' is not available
21931 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21932 && mv -f "$cfgfile.tmp" "$cfgfile" \
21933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21934 test 0 -eq $? || _lt_function_replace_fail=:
21935 fi
21936
21937 if test x"$_lt_function_replace_fail" = x":"; then
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21939 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21940 fi
21941
21942
21943 mv -f "$cfgfile" "$ofile" ||
21944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21945 chmod +x "$ofile"
21946
21947
21948 cat <<_LT_EOF >> "$ofile"
21949
21950 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21951
21952 # The linker used to build libraries.
21953 LD=$lt_LD_CXX
21954
21955 # How to create reloadable object files.
21956 reload_flag=$lt_reload_flag_CXX
21957 reload_cmds=$lt_reload_cmds_CXX
21958
21959 # Commands used to build an old-style archive.
21960 old_archive_cmds=$lt_old_archive_cmds_CXX
21961
21962 # A language specific compiler.
21963 CC=$lt_compiler_CXX
21964
21965 # Is the compiler the GNU compiler?
21966 with_gcc=$GCC_CXX
21967
21968 # Compiler flag to turn off builtin functions.
21969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21970
21971 # Additional compiler flags for building library objects.
21972 pic_flag=$lt_lt_prog_compiler_pic_CXX
21973
21974 # How to pass a linker flag through the compiler.
21975 wl=$lt_lt_prog_compiler_wl_CXX
21976
21977 # Compiler flag to prevent dynamic linking.
21978 link_static_flag=$lt_lt_prog_compiler_static_CXX
21979
21980 # Does compiler simultaneously support -c and -o options?
21981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21982
21983 # Whether or not to add -lc for building shared libraries.
21984 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21985
21986 # Whether or not to disallow shared libs when runtime libs are static.
21987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21988
21989 # Compiler flag to allow reflexive dlopens.
21990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21991
21992 # Compiler flag to generate shared objects directly from archives.
21993 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21994
21995 # Whether the compiler copes with passing no objects directly.
21996 compiler_needs_object=$lt_compiler_needs_object_CXX
21997
21998 # Create an old-style archive from a shared archive.
21999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22000
22001 # Create a temporary old-style archive to link instead of a shared archive.
22002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22003
22004 # Commands used to build a shared archive.
22005 archive_cmds=$lt_archive_cmds_CXX
22006 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22007
22008 # Commands used to build a loadable module if different from building
22009 # a shared archive.
22010 module_cmds=$lt_module_cmds_CXX
22011 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22012
22013 # Whether we are building with GNU ld or not.
22014 with_gnu_ld=$lt_with_gnu_ld_CXX
22015
22016 # Flag that allows shared libraries with undefined symbols to be built.
22017 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22018
22019 # Flag that enforces no undefined symbols.
22020 no_undefined_flag=$lt_no_undefined_flag_CXX
22021
22022 # Flag to hardcode \$libdir into a binary during linking.
22023 # This must work even if \$libdir does not exist
22024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22025
22026 # If ld is used when linking, flag to hardcode \$libdir into a binary
22027 # during linking. This must work even if \$libdir does not exist.
22028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22029
22030 # Whether we need a single "-rpath" flag with a separated argument.
22031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22032
22033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22034 # DIR into the resulting binary.
22035 hardcode_direct=$hardcode_direct_CXX
22036
22037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22038 # DIR into the resulting binary and the resulting library dependency is
22039 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22040 # library is relocated.
22041 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22042
22043 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22044 # into the resulting binary.
22045 hardcode_minus_L=$hardcode_minus_L_CXX
22046
22047 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22048 # into the resulting binary.
22049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22050
22051 # Set to "yes" if building a shared library automatically hardcodes DIR
22052 # into the library and all subsequent libraries and executables linked
22053 # against it.
22054 hardcode_automatic=$hardcode_automatic_CXX
22055
22056 # Set to yes if linker adds runtime paths of dependent libraries
22057 # to runtime path list.
22058 inherit_rpath=$inherit_rpath_CXX
22059
22060 # Whether libtool must link a program against all its dependency libraries.
22061 link_all_deplibs=$link_all_deplibs_CXX
22062
22063 # Set to "yes" if exported symbols are required.
22064 always_export_symbols=$always_export_symbols_CXX
22065
22066 # The commands to list exported symbols.
22067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22068
22069 # Symbols that should not be listed in the preloaded symbols.
22070 exclude_expsyms=$lt_exclude_expsyms_CXX
22071
22072 # Symbols that must always be exported.
22073 include_expsyms=$lt_include_expsyms_CXX
22074
22075 # Commands necessary for linking programs (against libraries) with templates.
22076 prelink_cmds=$lt_prelink_cmds_CXX
22077
22078 # Commands necessary for finishing linking programs.
22079 postlink_cmds=$lt_postlink_cmds_CXX
22080
22081 # Specify filename containing input files.
22082 file_list_spec=$lt_file_list_spec_CXX
22083
22084 # How to hardcode a shared library path into an executable.
22085 hardcode_action=$hardcode_action_CXX
22086
22087 # The directories searched by this compiler when creating a shared library.
22088 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22089
22090 # Dependencies to place before and after the objects being linked to
22091 # create a shared library.
22092 predep_objects=$lt_predep_objects_CXX
22093 postdep_objects=$lt_postdep_objects_CXX
22094 predeps=$lt_predeps_CXX
22095 postdeps=$lt_postdeps_CXX
22096
22097 # The library search path used internally by the compiler when linking
22098 # a shared library.
22099 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22100
22101 # ### END LIBTOOL TAG CONFIG: CXX
22102 _LT_EOF
22103
22104
22105 cat <<_LT_EOF >> "$ofile"
22106
22107 # ### BEGIN LIBTOOL TAG CONFIG: RC
22108
22109 # The linker used to build libraries.
22110 LD=$lt_LD_RC
22111
22112 # How to create reloadable object files.
22113 reload_flag=$lt_reload_flag_RC
22114 reload_cmds=$lt_reload_cmds_RC
22115
22116 # Commands used to build an old-style archive.
22117 old_archive_cmds=$lt_old_archive_cmds_RC
22118
22119 # A language specific compiler.
22120 CC=$lt_compiler_RC
22121
22122 # Is the compiler the GNU compiler?
22123 with_gcc=$GCC_RC
22124
22125 # Compiler flag to turn off builtin functions.
22126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22127
22128 # Additional compiler flags for building library objects.
22129 pic_flag=$lt_lt_prog_compiler_pic_RC
22130
22131 # How to pass a linker flag through the compiler.
22132 wl=$lt_lt_prog_compiler_wl_RC
22133
22134 # Compiler flag to prevent dynamic linking.
22135 link_static_flag=$lt_lt_prog_compiler_static_RC
22136
22137 # Does compiler simultaneously support -c and -o options?
22138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22139
22140 # Whether or not to add -lc for building shared libraries.
22141 build_libtool_need_lc=$archive_cmds_need_lc_RC
22142
22143 # Whether or not to disallow shared libs when runtime libs are static.
22144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22145
22146 # Compiler flag to allow reflexive dlopens.
22147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22148
22149 # Compiler flag to generate shared objects directly from archives.
22150 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22151
22152 # Whether the compiler copes with passing no objects directly.
22153 compiler_needs_object=$lt_compiler_needs_object_RC
22154
22155 # Create an old-style archive from a shared archive.
22156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22157
22158 # Create a temporary old-style archive to link instead of a shared archive.
22159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22160
22161 # Commands used to build a shared archive.
22162 archive_cmds=$lt_archive_cmds_RC
22163 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22164
22165 # Commands used to build a loadable module if different from building
22166 # a shared archive.
22167 module_cmds=$lt_module_cmds_RC
22168 module_expsym_cmds=$lt_module_expsym_cmds_RC
22169
22170 # Whether we are building with GNU ld or not.
22171 with_gnu_ld=$lt_with_gnu_ld_RC
22172
22173 # Flag that allows shared libraries with undefined symbols to be built.
22174 allow_undefined_flag=$lt_allow_undefined_flag_RC
22175
22176 # Flag that enforces no undefined symbols.
22177 no_undefined_flag=$lt_no_undefined_flag_RC
22178
22179 # Flag to hardcode \$libdir into a binary during linking.
22180 # This must work even if \$libdir does not exist
22181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22182
22183 # If ld is used when linking, flag to hardcode \$libdir into a binary
22184 # during linking. This must work even if \$libdir does not exist.
22185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22186
22187 # Whether we need a single "-rpath" flag with a separated argument.
22188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22189
22190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22191 # DIR into the resulting binary.
22192 hardcode_direct=$hardcode_direct_RC
22193
22194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22195 # DIR into the resulting binary and the resulting library dependency is
22196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22197 # library is relocated.
22198 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22199
22200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22201 # into the resulting binary.
22202 hardcode_minus_L=$hardcode_minus_L_RC
22203
22204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22205 # into the resulting binary.
22206 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22207
22208 # Set to "yes" if building a shared library automatically hardcodes DIR
22209 # into the library and all subsequent libraries and executables linked
22210 # against it.
22211 hardcode_automatic=$hardcode_automatic_RC
22212
22213 # Set to yes if linker adds runtime paths of dependent libraries
22214 # to runtime path list.
22215 inherit_rpath=$inherit_rpath_RC
22216
22217 # Whether libtool must link a program against all its dependency libraries.
22218 link_all_deplibs=$link_all_deplibs_RC
22219
22220 # Set to "yes" if exported symbols are required.
22221 always_export_symbols=$always_export_symbols_RC
22222
22223 # The commands to list exported symbols.
22224 export_symbols_cmds=$lt_export_symbols_cmds_RC
22225
22226 # Symbols that should not be listed in the preloaded symbols.
22227 exclude_expsyms=$lt_exclude_expsyms_RC
22228
22229 # Symbols that must always be exported.
22230 include_expsyms=$lt_include_expsyms_RC
22231
22232 # Commands necessary for linking programs (against libraries) with templates.
22233 prelink_cmds=$lt_prelink_cmds_RC
22234
22235 # Commands necessary for finishing linking programs.
22236 postlink_cmds=$lt_postlink_cmds_RC
22237
22238 # Specify filename containing input files.
22239 file_list_spec=$lt_file_list_spec_RC
22240
22241 # How to hardcode a shared library path into an executable.
22242 hardcode_action=$hardcode_action_RC
22243
22244 # The directories searched by this compiler when creating a shared library.
22245 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22246
22247 # Dependencies to place before and after the objects being linked to
22248 # create a shared library.
22249 predep_objects=$lt_predep_objects_RC
22250 postdep_objects=$lt_postdep_objects_RC
22251 predeps=$lt_predeps_RC
22252 postdeps=$lt_postdeps_RC
22253
22254 # The library search path used internally by the compiler when linking
22255 # a shared library.
22256 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22257
22258 # ### END LIBTOOL TAG CONFIG: RC
22259 _LT_EOF
22260
22261 ;;
22262
22263 esac
22264 done # for ac_tag
22265
22266
22267 as_fn_exit 0
22268 _ACEOF
22269 ac_clean_files=$ac_clean_files_save
22270
22271 test $ac_write_fail = 0 ||
22272 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22273
22274
22275 # configure is writing to config.log, and then calls config.status.
22276 # config.status does its own redirection, appending to config.log.
22277 # Unfortunately, on DOS this fails, as config.log is still kept open
22278 # by configure, so config.status won't be able to write to it; its
22279 # output is simply discarded. So we exec the FD to /dev/null,
22280 # effectively closing config.log, so it can be properly (re)opened and
22281 # appended to by config.status. When coming back to configure, we
22282 # need to make the FD available again.
22283 if test "$no_create" != yes; then
22284 ac_cs_success=:
22285 ac_config_status_args=
22286 test "$silent" = yes &&
22287 ac_config_status_args="$ac_config_status_args --quiet"
22288 exec 5>/dev/null
22289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22290 exec 5>>config.log
22291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22292 # would make configure fail if this is the last instruction.
22293 $ac_cs_success || as_fn_exit 1
22294 fi
22295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22297 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22298 fi
22299
22300
22301 # Make sure these are executable.
22302 chmod u+x tests/test_wrapper.sh build-test-tarball.mk
22303
22304 #====================================================================================
22305
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22307 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
22308
22309 Configuration summary :
22310
22311 libsndfile version : .................. ${VERSION}
22312
22313 Host CPU : ............................ ${host_cpu}
22314 Host Vendor : ......................... ${host_vendor}
22315 Host OS : ............................. ${host_os}
22316
22317 Experimental code : ................... ${enable_experimental:-no}
22318 Using ALSA in example programs : ...... ${enable_alsa:-no}
22319 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
22320 " >&5
22321 $as_echo "
22322 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
22323
22324 Configuration summary :
22325
22326 libsndfile version : .................. ${VERSION}
22327
22328 Host CPU : ............................ ${host_cpu}
22329 Host Vendor : ......................... ${host_vendor}
22330 Host OS : ............................. ${host_os}
22331
22332 Experimental code : ................... ${enable_experimental:-no}
22333 Using ALSA in example programs : ...... ${enable_alsa:-no}
22334 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
22335 " >&6; }
22336
22337 if test -z "$PKG_CONFIG" ; then
22338 echo " *****************************************************************"
22339 echo " *** The pkg-config program is missing. ***"
22340 echo " *** External FLAC/Ogg/Vorbis libs cannot be found without it. ***"
22341 echo " *** http://pkg-config.freedesktop.org/wiki/ ***"
22342 echo " *****************************************************************"
22343 echo
22344 fi
22345
22346 if test x$ac_cv_c_compiler_gnu = xyes ; then
22347 echo " Tools :"
22348 echo
22349 echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
22350 echo " GCC version : ......................... ${GCC_VERSION}"
22351 if test $GCC_MAJOR_VERSION -lt 3 ; then
22352 echo "\n"
22353 echo " ** This compiler version allows applications to write"
22354 echo " ** to static strings within the library."
22355 echo " ** Compile with GCC version 3.X or above to avoid this problem."
22356 fi
22357 fi
22358
22359 if test $libdir = "\${exec_prefix}/lib" ; then
22360 libdir="$prefix/lib"
22361 fi
22362
22363 if test $bindir = "\${exec_prefix}/bin" ; then
22364 bindir="$prefix/bin"
22365 fi
22366
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22368 Installation directories :
22369
22370 Library directory : ................... $libdir
22371 Program directory : ................... $bindir
22372 Pkgconfig directory : ................. $libdir/pkgconfig
22373 HTML docs directory : ................. $htmldocdir
22374 " >&5
22375 $as_echo "
22376 Installation directories :
22377
22378 Library directory : ................... $libdir
22379 Program directory : ................... $bindir
22380 Pkgconfig directory : ................. $libdir/pkgconfig
22381 HTML docs directory : ................. $htmldocdir
22382 " >&6; }
22383
22384 if test x$prefix != "x/usr" ; then
22385 echo "Compiling some other packages against libsndfile may require"
22386 echo "the addition of '$libdir/pkgconfig' to the"
22387 echo "PKG_CONFIG_PATH environment variable."
22388 echo
22389 fi
22390
22391 (cd src && make genfiles)
22392 (cd tests && make genfiles)