6591791fc78852b1beeb3be2fba29f63d5ebe4c0
[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 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 ACLOCAL_AMFLAGS
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_experimental
812 enable_gcc_werror
813 enable_gcc_pipe
814 enable_gcc_opt
815 enable_cpu_clip
816 enable_bow_docs
817 enable_sqlite
818 enable_alsa
819 enable_external_libs
820 enable_octave
821 enable_test_coverage
822 enable_largefile
823 with_octave
824 with_mkoctfile
825 with_octave_config
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CXX
836 CXXFLAGS
837 CCC
838 CPP
839 CXXCPP
840 PKG_CONFIG
841 PKG_CONFIG_PATH
842 PKG_CONFIG_LIBDIR
843 FLAC_CFLAGS
844 FLAC_LIBS
845 OGG_CFLAGS
846 OGG_LIBS
847 SPEEX_CFLAGS
848 SPEEX_LIBS
849 VORBIS_CFLAGS
850 VORBIS_LIBS
851 VORBISENC_CFLAGS
852 VORBISENC_LIBS
853 SQLITE3_CFLAGS
854 SQLITE3_LIBS'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used" >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures libsndfile 1.0.25 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libsndfile]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of libsndfile 1.0.25:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: `make V=1')
1477 --disable-silent-rules verbose build output (undo: `make V=0')
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-experimental enable experimental code
1486 --enable-gcc-werror enable -Werror in all Makefiles
1487 --disable-gcc-pipe disable gcc -pipe option
1488 --disable-gcc-opt disable gcc optimisations
1489 --disable-cpu-clip disable tricky cpu specific clipper
1490 --enable-bow-docs enable black-on-white html docs
1491 --disable-sqlite disable use of sqlite
1492 --disable-alsa disable use of ALSA
1493 --disable-external-libs disable use of FLAC, Ogg and Vorbis [[default=no]]
1494 --enable-octave disable building of GNU Octave module
1495 --enable-test-coverage enable test coverage
1496 --disable-largefile omit support for large files
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506 --with-octave choose the octave version
1507 --with-mkoctfile choose the mkoctfile version
1508 --with-octave-config choose the octave-config version
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CPP C preprocessor
1521 CXXCPP C++ preprocessor
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1528 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1529 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1530 OGG_LIBS linker flags for OGG, overriding pkg-config
1531 SPEEX_CFLAGS
1532 C compiler flags for SPEEX, overriding pkg-config
1533 SPEEX_LIBS linker flags for SPEEX, overriding pkg-config
1534 VORBIS_CFLAGS
1535 C compiler flags for VORBIS, overriding pkg-config
1536 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1537 VORBISENC_CFLAGS
1538 C compiler flags for VORBISENC, overriding pkg-config
1539 VORBISENC_LIBS
1540 linker flags for VORBISENC, overriding pkg-config
1541 SQLITE3_CFLAGS
1542 C compiler flags for SQLITE3, overriding pkg-config
1543 SQLITE3_LIBS
1544 linker flags for SQLITE3, overriding pkg-config
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <sndfile@mega-nerd.com>.
1550 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 libsndfile configure 1.0.25
1614 generated by GNU Autoconf 2.68
1615
1616 Copyright (C) 2010 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620 exit
1621 fi
1622
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1626
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_compile
1664
1665 # ac_fn_cxx_try_compile LINENO
1666 # ----------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_cxx_try_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext
1672 if { { ac_try="$ac_compile"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_cxx_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_cxx_try_compile
1702
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_link ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 $as_test_x conftest$ac_exeext
1731 }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_link
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_cpp ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_cpp
1816
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1821 ac_fn_c_try_run ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=$ac_status
1852 fi
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_run
1858
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1875
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1880
1881 #ifdef __STDC__
1882 # include <limits.h>
1883 #else
1884 # include <assert.h>
1885 #endif
1886
1887 #undef $2
1888
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1892 #ifdef __cplusplus
1893 extern "C"
1894 #endif
1895 char $2 ();
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1900 choke me
1901 #endif
1902
1903 int
1904 main ()
1905 {
1906 return $2 ();
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_link "$LINENO"; then :
1912 eval "$3=yes"
1913 else
1914 eval "$3=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_check_func
1925
1926 # ac_fn_cxx_try_cpp LINENO
1927 # ------------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_cxx_try_cpp ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } > conftest.i && {
1948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957 fi
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_cxx_try_cpp
1962
1963 # ac_fn_cxx_try_link LINENO
1964 # -------------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_link ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_cxx_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 $as_test_x conftest$ac_exeext
1991 }; then :
1992 ac_retval=0
1993 else
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1
1998 fi
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2006
2007 } # ac_fn_cxx_try_link
2008
2009 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2012 # the include files in INCLUDES and setting the cache variable VAR
2013 # accordingly.
2014 ac_fn_c_check_header_mongrel ()
2015 {
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if eval \${$3+:} false; then :
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 fi
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 else
2027 # Is the header compilable?
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2029 $as_echo_n "checking $2 usability... " >&6; }
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_header_compiler=yes
2037 else
2038 ac_header_compiler=no
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2042 $as_echo "$ac_header_compiler" >&6; }
2043
2044 # Is the header present?
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2046 $as_echo_n "checking $2 presence... " >&6; }
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_cpp "$LINENO"; then :
2052 ac_header_preproc=yes
2053 else
2054 ac_header_preproc=no
2055 fi
2056 rm -f conftest.err conftest.i conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2058 $as_echo "$ac_header_preproc" >&6; }
2059
2060 # So? What about this header?
2061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2062 yes:no: )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2064 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 ;;
2068 no:yes:* )
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2070 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2072 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2074 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2076 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079 ( $as_echo "## ------------------------------------ ##
2080 ## Report this to sndfile@mega-nerd.com ##
2081 ## ------------------------------------ ##"
2082 ) | sed "s/^/$as_me: WARNING: /" >&2
2083 ;;
2084 esac
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 eval "$3=\$ac_header_compiler"
2091 fi
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 fi
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_c_check_header_mongrel
2099
2100 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2101 # ---------------------------------------------
2102 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2103 # accordingly.
2104 ac_fn_c_check_decl ()
2105 {
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 as_decl_name=`echo $2|sed 's/ *(.*//'`
2108 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2110 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2111 if eval \${$3+:} false; then :
2112 $as_echo_n "(cached) " >&6
2113 else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 #ifndef $as_decl_name
2121 #ifdef __cplusplus
2122 (void) $as_decl_use;
2123 #else
2124 (void) $as_decl_name;
2125 #endif
2126 #endif
2127
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 eval "$3=yes"
2134 else
2135 eval "$3=no"
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 fi
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144 } # ac_fn_c_check_decl
2145
2146 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2147 # --------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_c_compute_int ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2234 fi
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $4
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2280 int
2281 main ()
2282 {
2283
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2288 {
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2293 }
2294 else
2295 {
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2300 }
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2313 fi
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2317
2318 fi
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2321
2322 } # ac_fn_c_compute_int
2323
2324 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2325 # -------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_c_check_type ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if eval \${$3+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $4
2340 int
2341 main ()
2342 {
2343 if (sizeof ($2))
2344 return 0;
2345 ;
2346 return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $4
2353 int
2354 main ()
2355 {
2356 if (sizeof (($2)))
2357 return 0;
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363
2364 else
2365 eval "$3=yes"
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375
2376 } # ac_fn_c_check_type
2377 cat >config.log <<_ACEOF
2378 This file contains any messages produced by compilers while
2379 running configure, to aid debugging if configure makes a mistake.
2380
2381 It was created by libsndfile $as_me 1.0.25, which was
2382 generated by GNU Autoconf 2.68. Invocation command line was
2383
2384 $ $0 $@
2385
2386 _ACEOF
2387 exec 5>>config.log
2388 {
2389 cat <<_ASUNAME
2390 ## --------- ##
2391 ## Platform. ##
2392 ## --------- ##
2393
2394 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2395 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2396 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2397 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2398 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2399
2400 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2401 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2402
2403 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2404 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2405 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2406 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2407 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2408 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2409 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2410
2411 _ASUNAME
2412
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 $as_echo "PATH: $as_dir"
2419 done
2420 IFS=$as_save_IFS
2421
2422 } >&5
2423
2424 cat >&5 <<_ACEOF
2425
2426
2427 ## ----------- ##
2428 ## Core tests. ##
2429 ## ----------- ##
2430
2431 _ACEOF
2432
2433
2434 # Keep a trace of the command line.
2435 # Strip out --no-create and --no-recursion so they do not pile up.
2436 # Strip out --silent because we don't want to record it for future runs.
2437 # Also quote any args containing shell meta-characters.
2438 # Make two passes to allow for proper duplicate-argument suppression.
2439 ac_configure_args=
2440 ac_configure_args0=
2441 ac_configure_args1=
2442 ac_must_keep_next=false
2443 for ac_pass in 1 2
2444 do
2445 for ac_arg
2446 do
2447 case $ac_arg in
2448 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2450 | -silent | --silent | --silen | --sile | --sil)
2451 continue ;;
2452 *\'*)
2453 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454 esac
2455 case $ac_pass in
2456 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2457 2)
2458 as_fn_append ac_configure_args1 " '$ac_arg'"
2459 if test $ac_must_keep_next = true; then
2460 ac_must_keep_next=false # Got value, back to normal.
2461 else
2462 case $ac_arg in
2463 *=* | --config-cache | -C | -disable-* | --disable-* \
2464 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2465 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2466 | -with-* | --with-* | -without-* | --without-* | --x)
2467 case "$ac_configure_args0 " in
2468 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2469 esac
2470 ;;
2471 -* ) ac_must_keep_next=true ;;
2472 esac
2473 fi
2474 as_fn_append ac_configure_args " '$ac_arg'"
2475 ;;
2476 esac
2477 done
2478 done
2479 { ac_configure_args0=; unset ac_configure_args0;}
2480 { ac_configure_args1=; unset ac_configure_args1;}
2481
2482 # When interrupted or exit'd, cleanup temporary files, and complete
2483 # config.log. We remove comments because anyway the quotes in there
2484 # would cause problems or look ugly.
2485 # WARNING: Use '\'' to represent an apostrophe within the trap.
2486 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2487 trap 'exit_status=$?
2488 # Save into config.log some information that might help in debugging.
2489 {
2490 echo
2491
2492 $as_echo "## ---------------- ##
2493 ## Cache variables. ##
2494 ## ---------------- ##"
2495 echo
2496 # The following way of writing the cache mishandles newlines in values,
2497 (
2498 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2499 eval ac_val=\$$ac_var
2500 case $ac_val in #(
2501 *${as_nl}*)
2502 case $ac_var in #(
2503 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505 esac
2506 case $ac_var in #(
2507 _ | IFS | as_nl) ;; #(
2508 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2509 *) { eval $ac_var=; unset $ac_var;} ;;
2510 esac ;;
2511 esac
2512 done
2513 (set) 2>&1 |
2514 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2515 *${as_nl}ac_space=\ *)
2516 sed -n \
2517 "s/'\''/'\''\\\\'\'''\''/g;
2518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519 ;; #(
2520 *)
2521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522 ;;
2523 esac |
2524 sort
2525 )
2526 echo
2527
2528 $as_echo "## ----------------- ##
2529 ## Output variables. ##
2530 ## ----------------- ##"
2531 echo
2532 for ac_var in $ac_subst_vars
2533 do
2534 eval ac_val=\$$ac_var
2535 case $ac_val in
2536 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537 esac
2538 $as_echo "$ac_var='\''$ac_val'\''"
2539 done | sort
2540 echo
2541
2542 if test -n "$ac_subst_files"; then
2543 $as_echo "## ------------------- ##
2544 ## File substitutions. ##
2545 ## ------------------- ##"
2546 echo
2547 for ac_var in $ac_subst_files
2548 do
2549 eval ac_val=\$$ac_var
2550 case $ac_val in
2551 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2552 esac
2553 $as_echo "$ac_var='\''$ac_val'\''"
2554 done | sort
2555 echo
2556 fi
2557
2558 if test -s confdefs.h; then
2559 $as_echo "## ----------- ##
2560 ## confdefs.h. ##
2561 ## ----------- ##"
2562 echo
2563 cat confdefs.h
2564 echo
2565 fi
2566 test "$ac_signal" != 0 &&
2567 $as_echo "$as_me: caught signal $ac_signal"
2568 $as_echo "$as_me: exit $exit_status"
2569 } >&5
2570 rm -f core *.core core.conftest.* &&
2571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2572 exit $exit_status
2573 ' 0
2574 for ac_signal in 1 2 13 15; do
2575 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2576 done
2577 ac_signal=0
2578
2579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2580 rm -f -r conftest* confdefs.h
2581
2582 $as_echo "/* confdefs.h */" > confdefs.h
2583
2584 # Predefined preprocessor variables.
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_NAME "$PACKAGE_NAME"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_STRING "$PACKAGE_STRING"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_URL "$PACKAGE_URL"
2608 _ACEOF
2609
2610
2611 # Let the site file select an alternate cache file if it wants to.
2612 # Prefer an explicitly selected file to automatically selected ones.
2613 ac_site_file1=NONE
2614 ac_site_file2=NONE
2615 if test -n "$CONFIG_SITE"; then
2616 # We do not want a PATH search for config.site.
2617 case $CONFIG_SITE in #((
2618 -*) ac_site_file1=./$CONFIG_SITE;;
2619 */*) ac_site_file1=$CONFIG_SITE;;
2620 *) ac_site_file1=./$CONFIG_SITE;;
2621 esac
2622 elif test "x$prefix" != xNONE; then
2623 ac_site_file1=$prefix/share/config.site
2624 ac_site_file2=$prefix/etc/config.site
2625 else
2626 ac_site_file1=$ac_default_prefix/share/config.site
2627 ac_site_file2=$ac_default_prefix/etc/config.site
2628 fi
2629 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2630 do
2631 test "x$ac_site_file" = xNONE && continue
2632 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2634 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2635 sed 's/^/| /' "$ac_site_file" >&5
2636 . "$ac_site_file" \
2637 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639 as_fn_error $? "failed to load site script $ac_site_file
2640 See \`config.log' for more details" "$LINENO" 5; }
2641 fi
2642 done
2643
2644 if test -r "$cache_file"; then
2645 # Some versions of bash will fail to source /dev/null (special files
2646 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2647 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2649 $as_echo "$as_me: loading cache $cache_file" >&6;}
2650 case $cache_file in
2651 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2652 *) . "./$cache_file";;
2653 esac
2654 fi
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2657 $as_echo "$as_me: creating cache $cache_file" >&6;}
2658 >$cache_file
2659 fi
2660
2661 # Check that the precious variables saved in the cache have kept the same
2662 # value.
2663 ac_cache_corrupted=false
2664 for ac_var in $ac_precious_vars; do
2665 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2666 eval ac_new_set=\$ac_env_${ac_var}_set
2667 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2668 eval ac_new_val=\$ac_env_${ac_var}_value
2669 case $ac_old_set,$ac_new_set in
2670 set,)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2672 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,set)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2676 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2678 ,);;
2679 *)
2680 if test "x$ac_old_val" != "x$ac_new_val"; then
2681 # differences in whitespace do not lead to failure.
2682 ac_old_val_w=`echo x $ac_old_val`
2683 ac_new_val_w=`echo x $ac_new_val`
2684 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2686 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2687 ac_cache_corrupted=:
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2690 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2691 eval $ac_var=\$ac_old_val
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2694 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2696 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2697 fi;;
2698 esac
2699 # Pass precious variables to config.status.
2700 if test "$ac_new_set" = set; then
2701 case $ac_new_val in
2702 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2703 *) ac_arg=$ac_var=$ac_new_val ;;
2704 esac
2705 case " $ac_configure_args " in
2706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2707 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2708 esac
2709 fi
2710 done
2711 if $ac_cache_corrupted; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2715 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2716 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2717 fi
2718 ## -------------------- ##
2719 ## Main body of script. ##
2720 ## -------------------- ##
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727
2728
2729
2730 # Put config stuff in Cfg.
2731 ac_aux_dir=
2732 for ac_dir in Cfg "$srcdir"/Cfg; do
2733 if test -f "$ac_dir/install-sh"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/install-sh -c"
2736 break
2737 elif test -f "$ac_dir/install.sh"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/install.sh -c"
2740 break
2741 elif test -f "$ac_dir/shtool"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/shtool install -c"
2744 break
2745 fi
2746 done
2747 if test -z "$ac_aux_dir"; then
2748 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2749 fi
2750
2751 # These three variables are undocumented and unsupported,
2752 # and are intended to be withdrawn in a future Autoconf release.
2753 # They can cause serious problems if a builder's source tree is in a directory
2754 # whose full name contains unusual characters.
2755 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2756 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2757 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2758
2759
2760
2761
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 ac_build_alias=$build_alias
2772 test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2783 *-*-*) ;;
2784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785 esac
2786 build=$ac_cv_build
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_build
2789 shift
2790 build_cpu=$1
2791 build_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 build_os=$*
2796 IFS=$ac_save_IFS
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2807 else
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 fi
2811
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2815 case $ac_cv_host in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818 esac
2819 host=$ac_cv_host
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_host
2822 shift
2823 host_cpu=$1
2824 host_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 host_os=$*
2829 IFS=$ac_save_IFS
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2834 $as_echo_n "checking target system type... " >&6; }
2835 if ${ac_cv_target+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test "x$target_alias" = x; then
2839 ac_cv_target=$ac_cv_host
2840 else
2841 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2843 fi
2844
2845 fi
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2847 $as_echo "$ac_cv_target" >&6; }
2848 case $ac_cv_target in
2849 *-*-*) ;;
2850 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2851 esac
2852 target=$ac_cv_target
2853 ac_save_IFS=$IFS; IFS='-'
2854 set x $ac_cv_target
2855 shift
2856 target_cpu=$1
2857 target_vendor=$2
2858 shift; shift
2859 # Remember, the first character of IFS is used to create $*,
2860 # except with old shells:
2861 target_os=$*
2862 IFS=$ac_save_IFS
2863 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2864
2865
2866 # The aliases save the names the user supplied, while $host etc.
2867 # will get canonicalized.
2868 test -n "$target_alias" &&
2869 test "$program_prefix$program_suffix$program_transform_name" = \
2870 NONENONEs,x,x, &&
2871 program_prefix=${target_alias}-
2872
2873
2874 ac_config_headers="$ac_config_headers src/config.h"
2875
2876
2877 am__api_version='1.11'
2878
2879 # Find a good install program. We prefer a C program (faster),
2880 # so one script is as good as another. But avoid the broken or
2881 # incompatible versions:
2882 # SysV /etc/install, /usr/sbin/install
2883 # SunOS /usr/etc/install
2884 # IRIX /sbin/install
2885 # AIX /bin/install
2886 # AmigaOS /C/install, which installs bootblocks on floppy discs
2887 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2890 # OS/2's system install, which has a completely different semantic
2891 # ./install, which can be erroneously created by make from ./install.sh.
2892 # Reject install programs that cannot install multiple files.
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2894 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2895 if test -z "$INSTALL"; then
2896 if ${ac_cv_path_install+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 # Account for people who put trailing slashes in PATH elements.
2905 case $as_dir/ in #((
2906 ./ | .// | /[cC]/* | \
2907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2909 /usr/ucb/* ) ;;
2910 *)
2911 # OSF1 and SCO ODT 3.0 have their own names for install.
2912 # Don't use installbsd from OSF since it installs stuff as root
2913 # by default.
2914 for ac_prog in ginstall scoinst install; do
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2917 if test $ac_prog = install &&
2918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2919 # AIX install. It has an incompatible calling convention.
2920 :
2921 elif test $ac_prog = install &&
2922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923 # program-specific install script used by HP pwplus--don't use.
2924 :
2925 else
2926 rm -rf conftest.one conftest.two conftest.dir
2927 echo one > conftest.one
2928 echo two > conftest.two
2929 mkdir conftest.dir
2930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2931 test -s conftest.one && test -s conftest.two &&
2932 test -s conftest.dir/conftest.one &&
2933 test -s conftest.dir/conftest.two
2934 then
2935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2936 break 3
2937 fi
2938 fi
2939 fi
2940 done
2941 done
2942 ;;
2943 esac
2944
2945 done
2946 IFS=$as_save_IFS
2947
2948 rm -rf conftest.one conftest.two conftest.dir
2949
2950 fi
2951 if test "${ac_cv_path_install+set}" = set; then
2952 INSTALL=$ac_cv_path_install
2953 else
2954 # As a last resort, use the slow shell script. Don't cache a
2955 # value for INSTALL within a source directory, because that will
2956 # break other packages using the cache if that directory is
2957 # removed, or if the value is a relative name.
2958 INSTALL=$ac_install_sh
2959 fi
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2962 $as_echo "$INSTALL" >&6; }
2963
2964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2965 # It thinks the first close brace ends the variable substitution.
2966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2967
2968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2969
2970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2973 $as_echo_n "checking whether build environment is sane... " >&6; }
2974 # Just in case
2975 sleep 1
2976 echo timestamp > conftest.file
2977 # Reject unsafe characters in $srcdir or the absolute working directory
2978 # name. Accept space and tab only in the latter.
2979 am_lf='
2980 '
2981 case `pwd` in
2982 *[\\\"\#\$\&\'\`$am_lf]*)
2983 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2984 esac
2985 case $srcdir in
2986 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2987 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2988 esac
2989
2990 # Do `set' in a subshell so we don't clobber the current shell's
2991 # arguments. Must try -L first in case configure is actually a
2992 # symlink; some systems play weird games with the mod time of symlinks
2993 # (eg FreeBSD returns the mod time of the symlink's containing
2994 # directory).
2995 if (
2996 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2997 if test "$*" = "X"; then
2998 # -L didn't work.
2999 set X `ls -t "$srcdir/configure" conftest.file`
3000 fi
3001 rm -f conftest.file
3002 if test "$*" != "X $srcdir/configure conftest.file" \
3003 && test "$*" != "X conftest.file $srcdir/configure"; then
3004
3005 # If neither matched, then we have a broken ls. This can happen
3006 # if, for instance, CONFIG_SHELL is bash and it inherits a
3007 # broken ls alias from the environment. This has actually
3008 # happened. Such a system could not be considered "sane".
3009 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3010 alias in your environment" "$LINENO" 5
3011 fi
3012
3013 test "$2" = conftest.file
3014 )
3015 then
3016 # Ok.
3017 :
3018 else
3019 as_fn_error $? "newly created file is older than distributed files!
3020 Check your system clock" "$LINENO" 5
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3023 $as_echo "yes" >&6; }
3024 test "$program_prefix" != NONE &&
3025 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3026 # Use a double $ so make ignores it.
3027 test "$program_suffix" != NONE &&
3028 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3029 # Double any \ or $.
3030 # By default was `s,x,x', remove it if useless.
3031 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3032 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3033
3034 # expand $ac_aux_dir to an absolute path
3035 am_aux_dir=`cd $ac_aux_dir && pwd`
3036
3037 if test x"${MISSING+set}" != xset; then
3038 case $am_aux_dir in
3039 *\ * | *\ *)
3040 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3041 *)
3042 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3043 esac
3044 fi
3045 # Use eval to expand $SHELL
3046 if eval "$MISSING --run true"; then
3047 am_missing_run="$MISSING --run "
3048 else
3049 am_missing_run=
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3051 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3052 fi
3053
3054 if test x"${install_sh}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3058 *)
3059 install_sh="\${SHELL} $am_aux_dir/install-sh"
3060 esac
3061 fi
3062
3063 # Installed binaries are usually stripped using `strip' when the user
3064 # run `make install-strip'. However `strip' might not be the right
3065 # tool to use in cross-compilation environments, therefore Automake
3066 # will honor the `STRIP' environment variable to overrule this program.
3067 if test "$cross_compiling" != no; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}strip; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_STRIP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$STRIP"; then
3077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 STRIP=$ac_cv_prog_STRIP
3097 if test -n "$STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099 $as_echo "$STRIP" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106 fi
3107 if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139 $as_echo "$ac_ct_STRIP" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145 if test "x$ac_ct_STRIP" = x; then
3146 STRIP=":"
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 STRIP=$ac_ct_STRIP
3155 fi
3156 else
3157 STRIP="$ac_cv_prog_STRIP"
3158 fi
3159
3160 fi
3161 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3162
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165 if test -z "$MKDIR_P"; then
3166 if ${ac_cv_path_mkdir+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in mkdir gmkdir; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178 'mkdir (GNU coreutils) '* | \
3179 'mkdir (coreutils) '* | \
3180 'mkdir (fileutils) '4.1*)
3181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3182 break 3;;
3183 esac
3184 done
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190
3191 test -d ./--version && rmdir ./--version
3192 if test "${ac_cv_path_mkdir+set}" = set; then
3193 MKDIR_P="$ac_cv_path_mkdir -p"
3194 else
3195 # As a last resort, use the slow shell script. Don't cache a
3196 # value for MKDIR_P within a source directory, because that will
3197 # break other packages using the cache if that directory is
3198 # removed, or if the value is a relative name.
3199 MKDIR_P="$ac_install_sh -d"
3200 fi
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203 $as_echo "$MKDIR_P" >&6; }
3204
3205 mkdir_p="$MKDIR_P"
3206 case $mkdir_p in
3207 [\\/$]* | ?:[\\/]*) ;;
3208 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3209 esac
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_AWK+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230 ac_cv_prog_AWK="$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 AWK=$ac_cv_prog_AWK
3241 if test -n "$AWK"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3243 $as_echo "$AWK" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 test -n "$AWK" && break
3251 done
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3254 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3255 set x ${MAKE-make}
3256 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3257 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 cat >conftest.make <<\_ACEOF
3261 SHELL = /bin/sh
3262 all:
3263 @echo '@@@%%%=$(MAKE)=@@@%%%'
3264 _ACEOF
3265 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3267 *@@@%%%=?*=@@@%%%*)
3268 eval ac_cv_prog_make_${ac_make}_set=yes;;
3269 *)
3270 eval ac_cv_prog_make_${ac_make}_set=no;;
3271 esac
3272 rm -f conftest.make
3273 fi
3274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 SET_MAKE=
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 SET_MAKE="MAKE=${MAKE-make}"
3282 fi
3283
3284 rm -rf .tst 2>/dev/null
3285 mkdir .tst 2>/dev/null
3286 if test -d .tst; then
3287 am__leading_dot=.
3288 else
3289 am__leading_dot=_
3290 fi
3291 rmdir .tst 2>/dev/null
3292
3293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3294 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3295 # is not polluted with repeated "-I."
3296 am__isrc=' -I$(srcdir)'
3297 # test to see if srcdir already configured
3298 if test -f $srcdir/config.status; then
3299 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3300 fi
3301 fi
3302
3303 # test whether we have cygpath
3304 if test -z "$CYGPATH_W"; then
3305 if (cygpath --version) >/dev/null 2>/dev/null; then
3306 CYGPATH_W='cygpath -w'
3307 else
3308 CYGPATH_W=echo
3309 fi
3310 fi
3311
3312
3313 # Define the identity of the package.
3314 PACKAGE=$PACKAGE_NAME
3315 VERSION=$PACKAGE_VERSION
3316
3317
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE "$PACKAGE"
3320 _ACEOF
3321
3322
3323 cat >>confdefs.h <<_ACEOF
3324 #define VERSION "$VERSION"
3325 _ACEOF
3326
3327 # Some tools Automake needs.
3328
3329 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3330
3331
3332 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3333
3334
3335 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3336
3337
3338 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3339
3340
3341 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342
3343 # We need awk for the "check" target. The system "awk" is bad on
3344 # some platforms.
3345 # Always define AMTAR for backward compatibility.
3346
3347 AMTAR=${AMTAR-"${am_missing_run}tar"}
3348
3349 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3350
3351
3352
3353
3354
3355 # Check whether --enable-silent-rules was given.
3356 if test "${enable_silent_rules+set}" = set; then :
3357 enableval=$enable_silent_rules;
3358 fi
3359
3360 case $enable_silent_rules in
3361 yes) AM_DEFAULT_VERBOSITY=0;;
3362 no) AM_DEFAULT_VERBOSITY=1;;
3363 *) AM_DEFAULT_VERBOSITY=0;;
3364 esac
3365 AM_BACKSLASH='\'
3366
3367
3368 ACLOCAL_AMFLAGS="-I M4"
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421 fi
3422 if test -z "$ac_cv_prog_CC"; then
3423 ac_ct_CC=$CC
3424 # Extract the first word of "gcc", so it can be a program name with args.
3425 set dummy gcc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 if test -n "$ac_ct_CC"; then
3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_ac_ct_CC="gcc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 fi
3450 fi
3451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3452 if test -n "$ac_ct_CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3454 $as_echo "$ac_ct_CC" >&6; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 fi
3459
3460 if test "x$ac_ct_CC" = x; then
3461 CC=""
3462 else
3463 case $cross_compiling:$ac_tool_warned in
3464 yes:)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3468 esac
3469 CC=$ac_ct_CC
3470 fi
3471 else
3472 CC="$ac_cv_prog_CC"
3473 fi
3474
3475 if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3478 set dummy ${ac_tool_prefix}cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494 ac_cv_prog_CC="${ac_tool_prefix}cc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 fi
3516 if test -z "$CC"; then
3517 # Extract the first word of "cc", so it can be a program name with args.
3518 set dummy cc; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 ac_prog_rejected=no
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3536 ac_prog_rejected=yes
3537 continue
3538 fi
3539 ac_cv_prog_CC="cc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 if test $ac_prog_rejected = yes; then
3548 # We found a bogon in the path, so make sure we never use it.
3549 set dummy $ac_cv_prog_CC
3550 shift
3551 if test $# != 0; then
3552 # We chose a different compiler from the bogus one.
3553 # However, it has the same basename, so the bogon will be chosen
3554 # first if we set CC to just the basename; use the full file name.
3555 shift
3556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3557 fi
3558 fi
3559 fi
3560 fi
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571 fi
3572 if test -z "$CC"; then
3573 if test -n "$ac_tool_prefix"; then
3574 for ac_prog in cl.exe
3575 do
3576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_CC+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613 test -n "$CC" && break
3614 done
3615 fi
3616 if test -z "$CC"; then
3617 ac_ct_CC=$CC
3618 for ac_prog in cl.exe
3619 do
3620 # Extract the first word of "$ac_prog", so it can be a program name with args.
3621 set dummy $ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$ac_ct_CC"; then
3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_ac_ct_CC="$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3648 if test -n "$ac_ct_CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3650 $as_echo "$ac_ct_CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 test -n "$ac_ct_CC" && break
3658 done
3659
3660 if test "x$ac_ct_CC" = x; then
3661 CC=""
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 CC=$ac_ct_CC
3670 fi
3671 fi
3672
3673 fi
3674
3675
3676 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "no acceptable C compiler found in \$PATH
3679 See \`config.log' for more details" "$LINENO" 5; }
3680
3681 # Provide some information about the compiler.
3682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3683 set X $ac_compile
3684 ac_compiler=$2
3685 for ac_option in --version -v -V -qversion; do
3686 { { ac_try="$ac_compiler $ac_option >&5"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3694 ac_status=$?
3695 if test -s conftest.err; then
3696 sed '10a\
3697 ... rest of stderr output deleted ...
3698 10q' conftest.err >conftest.er1
3699 cat conftest.er1 >&5
3700 fi
3701 rm -f conftest.er1 conftest.err
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 done
3705
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 ac_clean_files_save=$ac_clean_files
3718 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3719 # Try to create an executable without -o first, disregard a.out.
3720 # It will help us diagnose broken compilers, and finding out an intuition
3721 # of exeext.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3723 $as_echo_n "checking whether the C compiler works... " >&6; }
3724 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3725
3726 # The possible output files:
3727 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3728
3729 ac_rmfiles=
3730 for ac_file in $ac_files
3731 do
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3735 esac
3736 done
3737 rm -f $ac_rmfiles
3738
3739 if { { ac_try="$ac_link_default"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_link_default") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3752 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3753 # so that the user can short-circuit this test for compilers unknown to
3754 # Autoconf.
3755 for ac_file in $ac_files ''
3756 do
3757 test -f "$ac_file" || continue
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3760 ;;
3761 [ab].out )
3762 # We found the default executable, but exeext='' is most
3763 # certainly right.
3764 break;;
3765 *.* )
3766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3767 then :; else
3768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 fi
3770 # We set ac_cv_exeext here because the later test for it is not
3771 # safe: cross compilers may not add the suffix if given an `-o'
3772 # argument, so we may need to know it at that point already.
3773 # Even if this section looks crufty: it has the advantage of
3774 # actually working.
3775 break;;
3776 * )
3777 break;;
3778 esac
3779 done
3780 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781
3782 else
3783 ac_file=''
3784 fi
3785 if test -z "$ac_file"; then :
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 $as_echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error 77 "C compiler cannot create executables
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3797 $as_echo "yes" >&6; }
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3800 $as_echo_n "checking for C compiler default output file name... " >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3802 $as_echo "$ac_file" >&6; }
3803 ac_exeext=$ac_cv_exeext
3804
3805 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3808 $as_echo_n "checking for suffix of executables... " >&6; }
3809 if { { ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3822 # work properly (i.e., refer to `conftest.exe'), while it won't with
3823 # `rm'.
3824 for ac_file in conftest.exe conftest conftest.*; do
3825 test -f "$ac_file" || continue
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829 break;;
3830 * ) break;;
3831 esac
3832 done
3833 else
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3837 See \`config.log' for more details" "$LINENO" 5; }
3838 fi
3839 rm -f conftest conftest$ac_cv_exeext
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3841 $as_echo "$ac_cv_exeext" >&6; }
3842
3843 rm -f conftest.$ac_ext
3844 EXEEXT=$ac_cv_exeext
3845 ac_exeext=$EXEEXT
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdio.h>
3849 int
3850 main ()
3851 {
3852 FILE *f = fopen ("conftest.out", "w");
3853 return ferror (f) || fclose (f) != 0;
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 ac_clean_files="$ac_clean_files conftest.out"
3860 # Check that the compiler produces executables we can run. If not, either
3861 # the compiler is broken, or we cross compile.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3863 $as_echo_n "checking whether we are cross compiling... " >&6; }
3864 if test "$cross_compiling" != yes; then
3865 { { ac_try="$ac_link"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 if { ac_try='./conftest$ac_cv_exeext'
3877 { { case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }; }; then
3887 cross_compiling=no
3888 else
3889 if test "$cross_compiling" = maybe; then
3890 cross_compiling=yes
3891 else
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot run C compiled programs.
3895 If you meant to cross compile, use \`--host'.
3896 See \`config.log' for more details" "$LINENO" 5; }
3897 fi
3898 fi
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3901 $as_echo "$cross_compiling" >&6; }
3902
3903 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3904 ac_clean_files=$ac_clean_files_save
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3906 $as_echo_n "checking for suffix of object files... " >&6; }
3907 if ${ac_cv_objext+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.o conftest.obj
3922 if { { ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 for ac_file in conftest.o conftest.obj conftest.*; do
3934 test -f "$ac_file" || continue;
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940 done
3941 else
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "cannot compute suffix of object files: cannot compile
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 fi
3950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953 $as_echo "$ac_cv_objext" >&6; }
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$OBJEXT
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3958 if ${ac_cv_c_compiler_gnu+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main ()
3966 {
3967 #ifndef __GNUC__
3968 choke me
3969 #endif
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_compiler_gnu=yes
3977 else
3978 ac_compiler_gnu=no
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3986 if test $ac_compiler_gnu = yes; then
3987 GCC=yes
3988 else
3989 GCC=
3990 fi
3991 ac_test_CFLAGS=${CFLAGS+set}
3992 ac_save_CFLAGS=$CFLAGS
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3995 if ${ac_cv_prog_cc_g+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_save_c_werror_flag=$ac_c_werror_flag
3999 ac_c_werror_flag=yes
4000 ac_cv_prog_cc_g=no
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_g=yes
4015 else
4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029
4030 else
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4055 $as_echo "$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4063 fi
4064 else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4072 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4073 if ${ac_cv_prog_cc_c89+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_cv_prog_cc_c89=no
4077 ac_save_CC=$CC
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdarg.h>
4081 #include <stdio.h>
4082 #include <sys/types.h>
4083 #include <sys/stat.h>
4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085 struct buf { int x; };
4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087 static char *e (p, i)
4088 char **p;
4089 int i;
4090 {
4091 return p[i];
4092 }
4093 static char *f (char * (*g) (char **, int), char **p, ...)
4094 {
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4101 }
4102
4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
4106 as 'x'. The following induces an error, until -std is added to get
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
4109 that's true only with -std. */
4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114 #define FOO(x) 'x'
4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116
4117 int test (int i, double x);
4118 struct s1 {int (*f) (int a);};
4119 struct s2 {int (*f) (double a);};
4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 int argc;
4122 char **argv;
4123 int
4124 main ()
4125 {
4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133 do
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140 done
4141 rm -f conftest.$ac_ext
4142 CC=$ac_save_CC
4143
4144 fi
4145 # AC_CACHE_VAL
4146 case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 $as_echo "unsupported" >&6; } ;;
4153 *)
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4157 esac
4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
4159
4160 fi
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 DEPDIR="${am__leading_dot}deps"
4168
4169 ac_config_commands="$ac_config_commands depfiles"
4170
4171
4172 am_make=${MAKE-make}
4173 cat > confinc << 'END'
4174 am__doit:
4175 @echo this is the am__doit target
4176 .PHONY: am__doit
4177 END
4178 # If we don't find an include directive, just comment out the code.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4181 am__include="#"
4182 am__quote=
4183 _am_result=none
4184 # First try GNU make style include.
4185 echo "include confinc" > confmf
4186 # Ignore all kinds of additional output from `make'.
4187 case `$am_make -s -f confmf 2> /dev/null` in #(
4188 *the\ am__doit\ target*)
4189 am__include=include
4190 am__quote=
4191 _am_result=GNU
4192 ;;
4193 esac
4194 # Now try BSD make style include.
4195 if test "$am__include" = "#"; then
4196 echo '.include "confinc"' > confmf
4197 case `$am_make -s -f confmf 2> /dev/null` in #(
4198 *the\ am__doit\ target*)
4199 am__include=.include
4200 am__quote="\""
4201 _am_result=BSD
4202 ;;
4203 esac
4204 fi
4205
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4208 $as_echo "$_am_result" >&6; }
4209 rm -f confinc confmf
4210
4211 # Check whether --enable-dependency-tracking was given.
4212 if test "${enable_dependency_tracking+set}" = set; then :
4213 enableval=$enable_dependency_tracking;
4214 fi
4215
4216 if test "x$enable_dependency_tracking" != xno; then
4217 am_depcomp="$ac_aux_dir/depcomp"
4218 AMDEPBACKSLASH='\'
4219 fi
4220 if test "x$enable_dependency_tracking" != xno; then
4221 AMDEP_TRUE=
4222 AMDEP_FALSE='#'
4223 else
4224 AMDEP_TRUE='#'
4225 AMDEP_FALSE=
4226 fi
4227
4228
4229
4230 depcc="$CC" am_compiler_list=
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4233 $as_echo_n "checking dependency style of $depcc... " >&6; }
4234 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4238 # We make a subdir and do the tests there. Otherwise we can end up
4239 # making bogus files that we don't know about and never remove. For
4240 # instance it was reported that on HP-UX the gcc test will end up
4241 # making a dummy file named `D' -- because `-MD' means `put the output
4242 # in D'.
4243 mkdir conftest.dir
4244 # Copy depcomp to subdir because otherwise we won't find it if we're
4245 # using a relative directory.
4246 cp "$am_depcomp" conftest.dir
4247 cd conftest.dir
4248 # We will build objects and dependencies in a subdirectory because
4249 # it helps to detect inapplicable dependency modes. For instance
4250 # both Tru64's cc and ICC support -MD to output dependencies as a
4251 # side effect of compilation, but ICC will put the dependencies in
4252 # the current directory while Tru64 will put them in the object
4253 # directory.
4254 mkdir sub
4255
4256 am_cv_CC_dependencies_compiler_type=none
4257 if test "$am_compiler_list" = ""; then
4258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4259 fi
4260 am__universal=false
4261 case " $depcc " in #(
4262 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4263 esac
4264
4265 for depmode in $am_compiler_list; do
4266 # Setup a source with many dependencies, because some compilers
4267 # like to wrap large dependency lists on column 80 (with \), and
4268 # we should not choose a depcomp mode which is confused by this.
4269 #
4270 # We need to recreate these files for each test, as the compiler may
4271 # overwrite some of them when testing with obscure command lines.
4272 # This happens at least with the AIX C compiler.
4273 : > sub/conftest.c
4274 for i in 1 2 3 4 5 6; do
4275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4276 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4277 # Solaris 8's {/usr,}/bin/sh.
4278 touch sub/conftst$i.h
4279 done
4280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4281
4282 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4283 # mode. It turns out that the SunPro C++ compiler does not properly
4284 # handle `-M -o', and we need to detect this. Also, some Intel
4285 # versions had trouble with output in subdirs
4286 am__obj=sub/conftest.${OBJEXT-o}
4287 am__minus_obj="-o $am__obj"
4288 case $depmode in
4289 gcc)
4290 # This depmode causes a compiler race in universal mode.
4291 test "$am__universal" = false || continue
4292 ;;
4293 nosideeffect)
4294 # after this tag, mechanisms are not by side-effect, so they'll
4295 # only be used when explicitly requested
4296 if test "x$enable_dependency_tracking" = xyes; then
4297 continue
4298 else
4299 break
4300 fi
4301 ;;
4302 msvisualcpp | msvcmsys)
4303 # This compiler won't grok `-c -o', but also, the minuso test has
4304 # not run yet. These depmodes are late enough in the game, and
4305 # so weak that their functioning should not be impacted.
4306 am__obj=conftest.${OBJEXT-o}
4307 am__minus_obj=
4308 ;;
4309 none) break ;;
4310 esac
4311 if depmode=$depmode \
4312 source=sub/conftest.c object=$am__obj \
4313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4315 >/dev/null 2>conftest.err &&
4316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4320 # icc doesn't choke on unknown options, it will just issue warnings
4321 # or remarks (even with -Werror). So we grep stderr for any message
4322 # that says an option was ignored or not supported.
4323 # When given -MP, icc 7.0 and 7.1 complain thusly:
4324 # icc: Command line warning: ignoring option '-M'; no argument required
4325 # The diagnosis changed in icc 8.0:
4326 # icc: Command line remark: option '-MP' not supported
4327 if (grep 'ignoring option' conftest.err ||
4328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4329 am_cv_CC_dependencies_compiler_type=$depmode
4330 break
4331 fi
4332 fi
4333 done
4334
4335 cd ..
4336 rm -rf conftest.dir
4337 else
4338 am_cv_CC_dependencies_compiler_type=none
4339 fi
4340
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4343 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4344 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4345
4346 if
4347 test "x$enable_dependency_tracking" != xno \
4348 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4349 am__fastdepCC_TRUE=
4350 am__fastdepCC_FALSE='#'
4351 else
4352 am__fastdepCC_TRUE='#'
4353 am__fastdepCC_FALSE=
4354 fi
4355
4356
4357 if test "x$CC" != xcc; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4359 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4362 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4363 fi
4364 set dummy $CC; ac_cc=`$as_echo "$2" |
4365 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4366 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371
4372 int
4373 main ()
4374 {
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 # Make sure it works both with $CC and with simple cc.
4381 # We do the test twice because some compilers refuse to overwrite an
4382 # existing .o file with -o, though they will create one.
4383 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4384 rm -f conftest2.*
4385 if { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; } &&
4395 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401 (eval "$ac_try") 2>&5
4402 ac_status=$?
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; };
4405 then
4406 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4407 if test "x$CC" != xcc; then
4408 # Test first that cc exists at all.
4409 if { ac_try='cc -c conftest.$ac_ext >&5'
4410 { { case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_try") 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; }; then
4420 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4421 rm -f conftest2.*
4422 if { { case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 $as_echo "$ac_try_echo"; } >&5
4428 (eval "$ac_try") 2>&5
4429 ac_status=$?
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; } &&
4432 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_try") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; };
4442 then
4443 # cc works too.
4444 :
4445 else
4446 # cc exists but doesn't like -o.
4447 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4448 fi
4449 fi
4450 fi
4451 else
4452 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4453 fi
4454 rm -f core conftest*
4455
4456 fi
4457 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463
4464 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4465
4466 fi
4467
4468 # FIXME: we rely on the cache variable name because
4469 # there is no other way.
4470 set dummy $CC
4471 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4472 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4473 if test "$am_t" != yes; then
4474 # Losing compiler, so override with the script.
4475 # FIXME: It is wrong to rewrite CC.
4476 # But if we don't then we get into trouble of one sort or another.
4477 # A longer-term fix would be to have automake use am__CC in this case,
4478 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4479 CC="$am_aux_dir/compile $CC"
4480 fi
4481
4482
4483 ac_ext=cpp
4484 ac_cpp='$CXXCPP $CPPFLAGS'
4485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4488 if test -z "$CXX"; then
4489 if test -n "$CCC"; then
4490 CXX=$CCC
4491 else
4492 if test -n "$ac_tool_prefix"; then
4493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4494 do
4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_CXX+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$CXX"; then
4503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 CXX=$ac_cv_prog_CXX
4523 if test -n "$CXX"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4525 $as_echo "$CXX" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531
4532 test -n "$CXX" && break
4533 done
4534 fi
4535 if test -z "$CXX"; then
4536 ac_ct_CXX=$CXX
4537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538 do
4539 # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 if test -n "$ac_ct_CXX"; then
4547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_ac_ct_CXX="$ac_prog"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4567 if test -n "$ac_ct_CXX"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4569 $as_echo "$ac_ct_CXX" >&6; }
4570 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576 test -n "$ac_ct_CXX" && break
4577 done
4578
4579 if test "x$ac_ct_CXX" = x; then
4580 CXX="g++"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588 CXX=$ac_ct_CXX
4589 fi
4590 fi
4591
4592 fi
4593 fi
4594 # Provide some information about the compiler.
4595 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4596 set X $ac_compile
4597 ac_compiler=$2
4598 for ac_option in --version -v -V -qversion; do
4599 { { ac_try="$ac_compiler $ac_option >&5"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4605 $as_echo "$ac_try_echo"; } >&5
4606 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4607 ac_status=$?
4608 if test -s conftest.err; then
4609 sed '10a\
4610 ... rest of stderr output deleted ...
4611 10q' conftest.err >conftest.er1
4612 cat conftest.er1 >&5
4613 fi
4614 rm -f conftest.er1 conftest.err
4615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4616 test $ac_status = 0; }
4617 done
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4620 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4621 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626
4627 int
4628 main ()
4629 {
4630 #ifndef __GNUC__
4631 choke me
4632 #endif
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_cxx_try_compile "$LINENO"; then :
4639 ac_compiler_gnu=yes
4640 else
4641 ac_compiler_gnu=no
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4648 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4649 if test $ac_compiler_gnu = yes; then
4650 GXX=yes
4651 else
4652 GXX=
4653 fi
4654 ac_test_CXXFLAGS=${CXXFLAGS+set}
4655 ac_save_CXXFLAGS=$CXXFLAGS
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4657 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4658 if ${ac_cv_prog_cxx_g+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4662 ac_cxx_werror_flag=yes
4663 ac_cv_prog_cxx_g=no
4664 CXXFLAGS="-g"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_cxx_try_compile "$LINENO"; then :
4677 ac_cv_prog_cxx_g=yes
4678 else
4679 CXXFLAGS=""
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682
4683 int
4684 main ()
4685 {
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_cxx_try_compile "$LINENO"; then :
4692
4693 else
4694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4695 CXXFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708 ac_cv_prog_cxx_g=yes
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4718 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4719 if test "$ac_test_CXXFLAGS" = set; then
4720 CXXFLAGS=$ac_save_CXXFLAGS
4721 elif test $ac_cv_prog_cxx_g = yes; then
4722 if test "$GXX" = yes; then
4723 CXXFLAGS="-g -O2"
4724 else
4725 CXXFLAGS="-g"
4726 fi
4727 else
4728 if test "$GXX" = yes; then
4729 CXXFLAGS="-O2"
4730 else
4731 CXXFLAGS=
4732 fi
4733 fi
4734 ac_ext=c
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740 depcc="$CXX" am_compiler_list=
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4743 $as_echo_n "checking dependency style of $depcc... " >&6; }
4744 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4748 # We make a subdir and do the tests there. Otherwise we can end up
4749 # making bogus files that we don't know about and never remove. For
4750 # instance it was reported that on HP-UX the gcc test will end up
4751 # making a dummy file named `D' -- because `-MD' means `put the output
4752 # in D'.
4753 mkdir conftest.dir
4754 # Copy depcomp to subdir because otherwise we won't find it if we're
4755 # using a relative directory.
4756 cp "$am_depcomp" conftest.dir
4757 cd conftest.dir
4758 # We will build objects and dependencies in a subdirectory because
4759 # it helps to detect inapplicable dependency modes. For instance
4760 # both Tru64's cc and ICC support -MD to output dependencies as a
4761 # side effect of compilation, but ICC will put the dependencies in
4762 # the current directory while Tru64 will put them in the object
4763 # directory.
4764 mkdir sub
4765
4766 am_cv_CXX_dependencies_compiler_type=none
4767 if test "$am_compiler_list" = ""; then
4768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4769 fi
4770 am__universal=false
4771 case " $depcc " in #(
4772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4773 esac
4774
4775 for depmode in $am_compiler_list; do
4776 # Setup a source with many dependencies, because some compilers
4777 # like to wrap large dependency lists on column 80 (with \), and
4778 # we should not choose a depcomp mode which is confused by this.
4779 #
4780 # We need to recreate these files for each test, as the compiler may
4781 # overwrite some of them when testing with obscure command lines.
4782 # This happens at least with the AIX C compiler.
4783 : > sub/conftest.c
4784 for i in 1 2 3 4 5 6; do
4785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4787 # Solaris 8's {/usr,}/bin/sh.
4788 touch sub/conftst$i.h
4789 done
4790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4791
4792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4793 # mode. It turns out that the SunPro C++ compiler does not properly
4794 # handle `-M -o', and we need to detect this. Also, some Intel
4795 # versions had trouble with output in subdirs
4796 am__obj=sub/conftest.${OBJEXT-o}
4797 am__minus_obj="-o $am__obj"
4798 case $depmode in
4799 gcc)
4800 # This depmode causes a compiler race in universal mode.
4801 test "$am__universal" = false || continue
4802 ;;
4803 nosideeffect)
4804 # after this tag, mechanisms are not by side-effect, so they'll
4805 # only be used when explicitly requested
4806 if test "x$enable_dependency_tracking" = xyes; then
4807 continue
4808 else
4809 break
4810 fi
4811 ;;
4812 msvisualcpp | msvcmsys)
4813 # This compiler won't grok `-c -o', but also, the minuso test has
4814 # not run yet. These depmodes are late enough in the game, and
4815 # so weak that their functioning should not be impacted.
4816 am__obj=conftest.${OBJEXT-o}
4817 am__minus_obj=
4818 ;;
4819 none) break ;;
4820 esac
4821 if depmode=$depmode \
4822 source=sub/conftest.c object=$am__obj \
4823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4825 >/dev/null 2>conftest.err &&
4826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4830 # icc doesn't choke on unknown options, it will just issue warnings
4831 # or remarks (even with -Werror). So we grep stderr for any message
4832 # that says an option was ignored or not supported.
4833 # When given -MP, icc 7.0 and 7.1 complain thusly:
4834 # icc: Command line warning: ignoring option '-M'; no argument required
4835 # The diagnosis changed in icc 8.0:
4836 # icc: Command line remark: option '-MP' not supported
4837 if (grep 'ignoring option' conftest.err ||
4838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4839 am_cv_CXX_dependencies_compiler_type=$depmode
4840 break
4841 fi
4842 fi
4843 done
4844
4845 cd ..
4846 rm -rf conftest.dir
4847 else
4848 am_cv_CXX_dependencies_compiler_type=none
4849 fi
4850
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4853 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4854 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4855
4856 if
4857 test "x$enable_dependency_tracking" != xno \
4858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4859 am__fastdepCXX_TRUE=
4860 am__fastdepCXX_FALSE='#'
4861 else
4862 am__fastdepCXX_TRUE='#'
4863 am__fastdepCXX_FALSE=
4864 fi
4865
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4869 if ${ac_cv_path_SED+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4873 for ac_i in 1 2 3 4 5 6 7; do
4874 ac_script="$ac_script$as_nl$ac_script"
4875 done
4876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4877 { ac_script=; unset ac_script;}
4878 if test -z "$SED"; then
4879 ac_path_SED_found=false
4880 # Loop through the user's path and test for each of PROGNAME-LIST
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_prog in sed gsed; do
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4890 # Check for GNU ac_path_SED and select it if it is found.
4891 # Check for GNU $ac_path_SED
4892 case `"$ac_path_SED" --version 2>&1` in
4893 *GNU*)
4894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4895 *)
4896 ac_count=0
4897 $as_echo_n 0123456789 >"conftest.in"
4898 while :
4899 do
4900 cat "conftest.in" "conftest.in" >"conftest.tmp"
4901 mv "conftest.tmp" "conftest.in"
4902 cp "conftest.in" "conftest.nl"
4903 $as_echo '' >> "conftest.nl"
4904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906 as_fn_arith $ac_count + 1 && ac_count=$as_val
4907 if test $ac_count -gt ${ac_path_SED_max-0}; then
4908 # Best one so far, save it but keep looking for a better one
4909 ac_cv_path_SED="$ac_path_SED"
4910 ac_path_SED_max=$ac_count
4911 fi
4912 # 10*(2^10) chars as input seems more than enough
4913 test $ac_count -gt 10 && break
4914 done
4915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4916 esac
4917
4918 $ac_path_SED_found && break 3
4919 done
4920 done
4921 done
4922 IFS=$as_save_IFS
4923 if test -z "$ac_cv_path_SED"; then
4924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4925 fi
4926 else
4927 ac_cv_path_SED=$SED
4928 fi
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4932 $as_echo "$ac_cv_path_SED" >&6; }
4933 SED="$ac_cv_path_SED"
4934 rm -f conftest.sed
4935
4936
4937 # Do not check for F77.
4938
4939 case `pwd` in
4940 *\ * | *\ *)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4942 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4943 esac
4944
4945
4946
4947 macro_version='2.4'
4948 macro_revision='1.3293'
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962 ltmain="$ac_aux_dir/ltmain.sh"
4963
4964 # Backslashify metacharacters that are still active within
4965 # double-quoted strings.
4966 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4967
4968 # Same as above, but do not quote variable references.
4969 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4970
4971 # Sed substitution to delay expansion of an escaped shell variable in a
4972 # double_quote_subst'ed string.
4973 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4974
4975 # Sed substitution to delay expansion of an escaped single quote.
4976 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4977
4978 # Sed substitution to avoid accidental globbing in evaled expressions
4979 no_glob_subst='s/\*/\\\*/g'
4980
4981 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4982 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4983 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4986 $as_echo_n "checking how to print strings... " >&6; }
4987 # Test print first, because it will be a builtin if present.
4988 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4989 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4990 ECHO='print -r --'
4991 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4992 ECHO='printf %s\n'
4993 else
4994 # Use this function as a fallback that always works.
4995 func_fallback_echo ()
4996 {
4997 eval 'cat <<_LTECHO_EOF
4998 $1
4999 _LTECHO_EOF'
5000 }
5001 ECHO='func_fallback_echo'
5002 fi
5003
5004 # func_echo_all arg...
5005 # Invoke $ECHO with all args, space-separated.
5006 func_echo_all ()
5007 {
5008 $ECHO ""
5009 }
5010
5011 case "$ECHO" in
5012 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5013 $as_echo "printf" >&6; } ;;
5014 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5015 $as_echo "print -r" >&6; } ;;
5016 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5017 $as_echo "cat" >&6; } ;;
5018 esac
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5034 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5035 if ${ac_cv_path_SED+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5039 for ac_i in 1 2 3 4 5 6 7; do
5040 ac_script="$ac_script$as_nl$ac_script"
5041 done
5042 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5043 { ac_script=; unset ac_script;}
5044 if test -z "$SED"; then
5045 ac_path_SED_found=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_prog in sed gsed; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5055 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5056 # Check for GNU ac_path_SED and select it if it is found.
5057 # Check for GNU $ac_path_SED
5058 case `"$ac_path_SED" --version 2>&1` in
5059 *GNU*)
5060 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5061 *)
5062 ac_count=0
5063 $as_echo_n 0123456789 >"conftest.in"
5064 while :
5065 do
5066 cat "conftest.in" "conftest.in" >"conftest.tmp"
5067 mv "conftest.tmp" "conftest.in"
5068 cp "conftest.in" "conftest.nl"
5069 $as_echo '' >> "conftest.nl"
5070 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5072 as_fn_arith $ac_count + 1 && ac_count=$as_val
5073 if test $ac_count -gt ${ac_path_SED_max-0}; then
5074 # Best one so far, save it but keep looking for a better one
5075 ac_cv_path_SED="$ac_path_SED"
5076 ac_path_SED_max=$ac_count
5077 fi
5078 # 10*(2^10) chars as input seems more than enough
5079 test $ac_count -gt 10 && break
5080 done
5081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082 esac
5083
5084 $ac_path_SED_found && break 3
5085 done
5086 done
5087 done
5088 IFS=$as_save_IFS
5089 if test -z "$ac_cv_path_SED"; then
5090 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5091 fi
5092 else
5093 ac_cv_path_SED=$SED
5094 fi
5095
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5098 $as_echo "$ac_cv_path_SED" >&6; }
5099 SED="$ac_cv_path_SED"
5100 rm -f conftest.sed
5101
5102 test -z "$SED" && SED=sed
5103 Xsed="$SED -e 1s/^X//"
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117 if ${ac_cv_path_GREP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -z "$GREP"; then
5121 ac_path_GREP_found=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_prog in grep ggrep; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5131 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5132 # Check for GNU ac_path_GREP and select it if it is found.
5133 # Check for GNU $ac_path_GREP
5134 case `"$ac_path_GREP" --version 2>&1` in
5135 *GNU*)
5136 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5137 *)
5138 ac_count=0
5139 $as_echo_n 0123456789 >"conftest.in"
5140 while :
5141 do
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 $as_echo 'GREP' >> "conftest.nl"
5146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148 as_fn_arith $ac_count + 1 && ac_count=$as_val
5149 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_GREP="$ac_path_GREP"
5152 ac_path_GREP_max=$ac_count
5153 fi
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5156 done
5157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158 esac
5159
5160 $ac_path_GREP_found && break 3
5161 done
5162 done
5163 done
5164 IFS=$as_save_IFS
5165 if test -z "$ac_cv_path_GREP"; then
5166 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5167 fi
5168 else
5169 ac_cv_path_GREP=$GREP
5170 fi
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174 $as_echo "$ac_cv_path_GREP" >&6; }
5175 GREP="$ac_cv_path_GREP"
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if ${ac_cv_path_EGREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184 then ac_cv_path_EGREP="$GREP -E"
5185 else
5186 if test -z "$EGREP"; then
5187 ac_path_EGREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in egrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199 # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5201 *GNU*)
5202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5203 *)
5204 ac_count=0
5205 $as_echo_n 0123456789 >"conftest.in"
5206 while :
5207 do
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'EGREP' >> "conftest.nl"
5212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_EGREP="$ac_path_EGREP"
5218 ac_path_EGREP_max=$ac_count
5219 fi
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226 $ac_path_EGREP_found && break 3
5227 done
5228 done
5229 done
5230 IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_EGREP"; then
5232 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 fi
5234 else
5235 ac_cv_path_EGREP=$EGREP
5236 fi
5237
5238 fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5246 $as_echo_n "checking for fgrep... " >&6; }
5247 if ${ac_cv_path_FGREP+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5251 then ac_cv_path_FGREP="$GREP -F"
5252 else
5253 if test -z "$FGREP"; then
5254 ac_path_FGREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_prog in fgrep; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5264 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5265 # Check for GNU ac_path_FGREP and select it if it is found.
5266 # Check for GNU $ac_path_FGREP
5267 case `"$ac_path_FGREP" --version 2>&1` in
5268 *GNU*)
5269 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5270 *)
5271 ac_count=0
5272 $as_echo_n 0123456789 >"conftest.in"
5273 while :
5274 do
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'FGREP' >> "conftest.nl"
5279 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5281 as_fn_arith $ac_count + 1 && ac_count=$as_val
5282 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_FGREP="$ac_path_FGREP"
5285 ac_path_FGREP_max=$ac_count
5286 fi
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5289 done
5290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5291 esac
5292
5293 $ac_path_FGREP_found && break 3
5294 done
5295 done
5296 done
5297 IFS=$as_save_IFS
5298 if test -z "$ac_cv_path_FGREP"; then
5299 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5300 fi
5301 else
5302 ac_cv_path_FGREP=$FGREP
5303 fi
5304
5305 fi
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5308 $as_echo "$ac_cv_path_FGREP" >&6; }
5309 FGREP="$ac_cv_path_FGREP"
5310
5311
5312 test -z "$GREP" && GREP=grep
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 # Check whether --with-gnu-ld was given.
5333 if test "${with_gnu_ld+set}" = set; then :
5334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5335 else
5336 with_gnu_ld=no
5337 fi
5338
5339 ac_prog=ld
5340 if test "$GCC" = yes; then
5341 # Check if gcc -print-prog-name=ld gives a path.
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5343 $as_echo_n "checking for ld used by $CC... " >&6; }
5344 case $host in
5345 *-*-mingw*)
5346 # gcc leaves a trailing carriage return which upsets mingw
5347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5348 *)
5349 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5350 esac
5351 case $ac_prog in
5352 # Accept absolute paths.
5353 [\\/]* | ?:[\\/]*)
5354 re_direlt='/[^/][^/]*/\.\./'
5355 # Canonicalize the pathname of ld
5356 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5357 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5358 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5359 done
5360 test -z "$LD" && LD="$ac_prog"
5361 ;;
5362 "")
5363 # If it fails, then pretend we aren't using GCC.
5364 ac_prog=ld
5365 ;;
5366 *)
5367 # If it is relative, then search for the first ld in PATH.
5368 with_gnu_ld=unknown
5369 ;;
5370 esac
5371 elif test "$with_gnu_ld" = yes; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5373 $as_echo_n "checking for GNU ld... " >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5376 $as_echo_n "checking for non-GNU ld... " >&6; }
5377 fi
5378 if ${lt_cv_path_LD+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -z "$LD"; then
5382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5383 for ac_dir in $PATH; do
5384 IFS="$lt_save_ifs"
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5387 lt_cv_path_LD="$ac_dir/$ac_prog"
5388 # Check to see if the program is GNU ld. I'd rather use --version,
5389 # but apparently some variants of GNU ld only accept -v.
5390 # Break only if it was the GNU/non-GNU ld that we prefer.
5391 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5392 *GNU* | *'with BFD'*)
5393 test "$with_gnu_ld" != no && break
5394 ;;
5395 *)
5396 test "$with_gnu_ld" != yes && break
5397 ;;
5398 esac
5399 fi
5400 done
5401 IFS="$lt_save_ifs"
5402 else
5403 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5404 fi
5405 fi
5406
5407 LD="$lt_cv_path_LD"
5408 if test -n "$LD"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5410 $as_echo "$LD" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5417 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5418 if ${lt_cv_prog_gnu_ld+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5422 case `$LD -v 2>&1 </dev/null` in
5423 *GNU* | *'with BFD'*)
5424 lt_cv_prog_gnu_ld=yes
5425 ;;
5426 *)
5427 lt_cv_prog_gnu_ld=no
5428 ;;
5429 esac
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5432 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5433 with_gnu_ld=$lt_cv_prog_gnu_ld
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5444 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5445 if ${lt_cv_path_NM+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$NM"; then
5449 # Let the user override the test.
5450 lt_cv_path_NM="$NM"
5451 else
5452 lt_nm_to_check="${ac_tool_prefix}nm"
5453 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5454 lt_nm_to_check="$lt_nm_to_check nm"
5455 fi
5456 for lt_tmp_nm in $lt_nm_to_check; do
5457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5458 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5459 IFS="$lt_save_ifs"
5460 test -z "$ac_dir" && ac_dir=.
5461 tmp_nm="$ac_dir/$lt_tmp_nm"
5462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5463 # Check to see if the nm accepts a BSD-compat flag.
5464 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5465 # nm: unknown option "B" ignored
5466 # Tru64's nm complains that /dev/null is an invalid object file
5467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5468 */dev/null* | *'Invalid file or object type'*)
5469 lt_cv_path_NM="$tmp_nm -B"
5470 break
5471 ;;
5472 *)
5473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5474 */dev/null*)
5475 lt_cv_path_NM="$tmp_nm -p"
5476 break
5477 ;;
5478 *)
5479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5480 continue # so that we can try to find one that supports BSD flags
5481 ;;
5482 esac
5483 ;;
5484 esac
5485 fi
5486 done
5487 IFS="$lt_save_ifs"
5488 done
5489 : ${lt_cv_path_NM=no}
5490 fi
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5493 $as_echo "$lt_cv_path_NM" >&6; }
5494 if test "$lt_cv_path_NM" != "no"; then
5495 NM="$lt_cv_path_NM"
5496 else
5497 # Didn't find any BSD compatible name lister, look for dumpbin.
5498 if test -n "$DUMPBIN"; then :
5499 # Let the user override the test.
5500 else
5501 if test -n "$ac_tool_prefix"; then
5502 for ac_prog in dumpbin "link -dump"
5503 do
5504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_DUMPBIN+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$DUMPBIN"; then
5512 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 DUMPBIN=$ac_cv_prog_DUMPBIN
5532 if test -n "$DUMPBIN"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5534 $as_echo "$DUMPBIN" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 test -n "$DUMPBIN" && break
5542 done
5543 fi
5544 if test -z "$DUMPBIN"; then
5545 ac_ct_DUMPBIN=$DUMPBIN
5546 for ac_prog in dumpbin "link -dump"
5547 do
5548 # Extract the first word of "$ac_prog", so it can be a program name with args.
5549 set dummy $ac_prog; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$ac_ct_DUMPBIN"; then
5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5576 if test -n "$ac_ct_DUMPBIN"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5578 $as_echo "$ac_ct_DUMPBIN" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 test -n "$ac_ct_DUMPBIN" && break
5586 done
5587
5588 if test "x$ac_ct_DUMPBIN" = x; then
5589 DUMPBIN=":"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592 yes:)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 DUMPBIN=$ac_ct_DUMPBIN
5598 fi
5599 fi
5600
5601 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5602 *COFF*)
5603 DUMPBIN="$DUMPBIN -symbols"
5604 ;;
5605 *)
5606 DUMPBIN=:
5607 ;;
5608 esac
5609 fi
5610
5611 if test "$DUMPBIN" != ":"; then
5612 NM="$DUMPBIN"
5613 fi
5614 fi
5615 test -z "$NM" && NM=nm
5616
5617
5618
5619
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5623 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5624 if ${lt_cv_nm_interface+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 lt_cv_nm_interface="BSD nm"
5628 echo "int some_variable = 0;" > conftest.$ac_ext
5629 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5630 (eval "$ac_compile" 2>conftest.err)
5631 cat conftest.err >&5
5632 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5633 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5634 cat conftest.err >&5
5635 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5636 cat conftest.out >&5
5637 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5638 lt_cv_nm_interface="MS dumpbin"
5639 fi
5640 rm -f conftest*
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5643 $as_echo "$lt_cv_nm_interface" >&6; }
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5646 $as_echo_n "checking whether ln -s works... " >&6; }
5647 LN_S=$as_ln_s
5648 if test "$LN_S" = "ln -s"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5653 $as_echo "no, using $LN_S" >&6; }
5654 fi
5655
5656 # find the maximum length of command line arguments
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5658 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5659 if ${lt_cv_sys_max_cmd_len+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 i=0
5663 teststring="ABCD"
5664
5665 case $build_os in
5666 msdosdjgpp*)
5667 # On DJGPP, this test can blow up pretty badly due to problems in libc
5668 # (any single argument exceeding 2000 bytes causes a buffer overrun
5669 # during glob expansion). Even if it were fixed, the result of this
5670 # check would be larger than it should be.
5671 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5672 ;;
5673
5674 gnu*)
5675 # Under GNU Hurd, this test is not required because there is
5676 # no limit to the length of command line arguments.
5677 # Libtool will interpret -1 as no limit whatsoever
5678 lt_cv_sys_max_cmd_len=-1;
5679 ;;
5680
5681 cygwin* | mingw* | cegcc*)
5682 # On Win9x/ME, this test blows up -- it succeeds, but takes
5683 # about 5 minutes as the teststring grows exponentially.
5684 # Worse, since 9x/ME are not pre-emptively multitasking,
5685 # you end up with a "frozen" computer, even though with patience
5686 # the test eventually succeeds (with a max line length of 256k).
5687 # Instead, let's just punt: use the minimum linelength reported by
5688 # all of the supported platforms: 8192 (on NT/2K/XP).
5689 lt_cv_sys_max_cmd_len=8192;
5690 ;;
5691
5692 mint*)
5693 # On MiNT this can take a long time and run out of memory.
5694 lt_cv_sys_max_cmd_len=8192;
5695 ;;
5696
5697 amigaos*)
5698 # On AmigaOS with pdksh, this test takes hours, literally.
5699 # So we just punt and use a minimum line length of 8192.
5700 lt_cv_sys_max_cmd_len=8192;
5701 ;;
5702
5703 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5704 # This has been around since 386BSD, at least. Likely further.
5705 if test -x /sbin/sysctl; then
5706 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5707 elif test -x /usr/sbin/sysctl; then
5708 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5709 else
5710 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5711 fi
5712 # And add a safety zone
5713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5715 ;;
5716
5717 interix*)
5718 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5719 lt_cv_sys_max_cmd_len=196608
5720 ;;
5721
5722 osf*)
5723 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5724 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5725 # nice to cause kernel panics so lets avoid the loop below.
5726 # First set a reasonable default.
5727 lt_cv_sys_max_cmd_len=16384
5728 #
5729 if test -x /sbin/sysconfig; then
5730 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5731 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5732 esac
5733 fi
5734 ;;
5735 sco3.2v5*)
5736 lt_cv_sys_max_cmd_len=102400
5737 ;;
5738 sysv5* | sco5v6* | sysv4.2uw2*)
5739 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5740 if test -n "$kargmax"; then
5741 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5742 else
5743 lt_cv_sys_max_cmd_len=32768
5744 fi
5745 ;;
5746 *)
5747 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5748 if test -n "$lt_cv_sys_max_cmd_len"; then
5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5751 else
5752 # Make teststring a little bigger before we do anything with it.
5753 # a 1K string should be a reasonable start.
5754 for i in 1 2 3 4 5 6 7 8 ; do
5755 teststring=$teststring$teststring
5756 done
5757 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5758 # If test is not a shell built-in, we'll probably end up computing a
5759 # maximum length that is only half of the actual maximum length, but
5760 # we can't tell.
5761 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5762 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5763 test $i != 17 # 1/2 MB should be enough
5764 do
5765 i=`expr $i + 1`
5766 teststring=$teststring$teststring
5767 done
5768 # Only check the string length outside the loop.
5769 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5770 teststring=
5771 # Add a significant safety factor because C++ compilers can tack on
5772 # massive amounts of additional arguments before passing them to the
5773 # linker. It appears as though 1/2 is a usable value.
5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5775 fi
5776 ;;
5777 esac
5778
5779 fi
5780
5781 if test -n $lt_cv_sys_max_cmd_len ; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5783 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5786 $as_echo "none" >&6; }
5787 fi
5788 max_cmd_len=$lt_cv_sys_max_cmd_len
5789
5790
5791
5792
5793
5794
5795 : ${CP="cp -f"}
5796 : ${MV="mv -f"}
5797 : ${RM="rm -f"}
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5800 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5801 # Try some XSI features
5802 xsi_shell=no
5803 ( _lt_dummy="a/b/c"
5804 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5805 = c,a/b,b/c, \
5806 && eval 'test $(( 1 + 1 )) -eq 2 \
5807 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5808 && xsi_shell=yes
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5810 $as_echo "$xsi_shell" >&6; }
5811
5812
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5814 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5815 lt_shell_append=no
5816 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5817 >/dev/null 2>&1 \
5818 && lt_shell_append=yes
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5820 $as_echo "$lt_shell_append" >&6; }
5821
5822
5823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5824 lt_unset=unset
5825 else
5826 lt_unset=false
5827 fi
5828
5829
5830
5831
5832
5833 # test EBCDIC or ASCII
5834 case `echo X|tr X '\101'` in
5835 A) # ASCII based system
5836 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5837 lt_SP2NL='tr \040 \012'
5838 lt_NL2SP='tr \015\012 \040\040'
5839 ;;
5840 *) # EBCDIC based system
5841 lt_SP2NL='tr \100 \n'
5842 lt_NL2SP='tr \r\n \100\100'
5843 ;;
5844 esac
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5855 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5856 if ${lt_cv_to_host_file_cmd+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 case $host in
5860 *-*-mingw* )
5861 case $build in
5862 *-*-mingw* ) # actually msys
5863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5864 ;;
5865 *-*-cygwin* )
5866 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5867 ;;
5868 * ) # otherwise, assume *nix
5869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5870 ;;
5871 esac
5872 ;;
5873 *-*-cygwin* )
5874 case $build in
5875 *-*-mingw* ) # actually msys
5876 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5877 ;;
5878 *-*-cygwin* )
5879 lt_cv_to_host_file_cmd=func_convert_file_noop
5880 ;;
5881 * ) # otherwise, assume *nix
5882 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5883 ;;
5884 esac
5885 ;;
5886 * ) # unhandled hosts (and "normal" native builds)
5887 lt_cv_to_host_file_cmd=func_convert_file_noop
5888 ;;
5889 esac
5890
5891 fi
5892
5893 to_host_file_cmd=$lt_cv_to_host_file_cmd
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5895 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5896
5897
5898
5899
5900
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5902 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5903 if ${lt_cv_to_tool_file_cmd+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 #assume ordinary cross tools, or native build.
5907 lt_cv_to_tool_file_cmd=func_convert_file_noop
5908 case $host in
5909 *-*-mingw* )
5910 case $build in
5911 *-*-mingw* ) # actually msys
5912 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5913 ;;
5914 esac
5915 ;;
5916 esac
5917
5918 fi
5919
5920 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5922 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5923
5924
5925
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5929 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5930 if ${lt_cv_ld_reload_flag+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 lt_cv_ld_reload_flag='-r'
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5936 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5937 reload_flag=$lt_cv_ld_reload_flag
5938 case $reload_flag in
5939 "" | " "*) ;;
5940 *) reload_flag=" $reload_flag" ;;
5941 esac
5942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 case $host_os in
5944 cygwin* | mingw* | pw32* | cegcc*)
5945 if test "$GCC" != yes; then
5946 reload_cmds=false
5947 fi
5948 ;;
5949 darwin*)
5950 if test "$GCC" = yes; then
5951 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5952 else
5953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5954 fi
5955 ;;
5956 esac
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_OBJDUMP+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$OBJDUMP"; then
5975 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 OBJDUMP=$ac_cv_prog_OBJDUMP
5995 if test -n "$OBJDUMP"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5997 $as_echo "$OBJDUMP" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002
6003
6004 fi
6005 if test -z "$ac_cv_prog_OBJDUMP"; then
6006 ac_ct_OBJDUMP=$OBJDUMP
6007 # Extract the first word of "objdump", so it can be a program name with args.
6008 set dummy objdump; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -n "$ac_ct_OBJDUMP"; then
6015 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6035 if test -n "$ac_ct_OBJDUMP"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6037 $as_echo "$ac_ct_OBJDUMP" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 $as_echo "no" >&6; }
6041 fi
6042
6043 if test "x$ac_ct_OBJDUMP" = x; then
6044 OBJDUMP="false"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047 yes:)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052 OBJDUMP=$ac_ct_OBJDUMP
6053 fi
6054 else
6055 OBJDUMP="$ac_cv_prog_OBJDUMP"
6056 fi
6057
6058 test -z "$OBJDUMP" && OBJDUMP=objdump
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6069 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6070 if ${lt_cv_deplibs_check_method+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 lt_cv_file_magic_cmd='$MAGIC_CMD'
6074 lt_cv_file_magic_test_file=
6075 lt_cv_deplibs_check_method='unknown'
6076 # Need to set the preceding variable on all platforms that support
6077 # interlibrary dependencies.
6078 # 'none' -- dependencies not supported.
6079 # `unknown' -- same as none, but documents that we really don't know.
6080 # 'pass_all' -- all dependencies passed with no checks.
6081 # 'test_compile' -- check by making test program.
6082 # 'file_magic [[regex]]' -- check by looking for files in library path
6083 # which responds to the $file_magic_cmd with a given extended regex.
6084 # If you have `file' or equivalent on your system and you're not sure
6085 # whether `pass_all' will *always* work, you probably want this one.
6086
6087 case $host_os in
6088 aix[4-9]*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 beos*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 bsdi[45]*)
6097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6098 lt_cv_file_magic_cmd='/usr/bin/file -L'
6099 lt_cv_file_magic_test_file=/shlib/libc.so
6100 ;;
6101
6102 cygwin*)
6103 # func_win32_libid is a shell function defined in ltmain.sh
6104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6105 lt_cv_file_magic_cmd='func_win32_libid'
6106 ;;
6107
6108 mingw* | pw32*)
6109 # Base MSYS/MinGW do not provide the 'file' command needed by
6110 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6111 # unless we find 'file', for example because we are cross-compiling.
6112 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6113 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6115 lt_cv_file_magic_cmd='func_win32_libid'
6116 else
6117 # Keep this pattern in sync with the one in func_win32_libid.
6118 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6119 lt_cv_file_magic_cmd='$OBJDUMP -f'
6120 fi
6121 ;;
6122
6123 cegcc*)
6124 # use the weaker test based on 'objdump'. See mingw*.
6125 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6126 lt_cv_file_magic_cmd='$OBJDUMP -f'
6127 ;;
6128
6129 darwin* | rhapsody*)
6130 lt_cv_deplibs_check_method=pass_all
6131 ;;
6132
6133 freebsd* | dragonfly*)
6134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6135 case $host_cpu in
6136 i*86 )
6137 # Not sure whether the presence of OpenBSD here was a mistake.
6138 # Let's accept both of them until this is cleared up.
6139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6140 lt_cv_file_magic_cmd=/usr/bin/file
6141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6142 ;;
6143 esac
6144 else
6145 lt_cv_deplibs_check_method=pass_all
6146 fi
6147 ;;
6148
6149 gnu*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152
6153 haiku*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 hpux10.20* | hpux11*)
6158 lt_cv_file_magic_cmd=/usr/bin/file
6159 case $host_cpu in
6160 ia64*)
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6163 ;;
6164 hppa*64*)
6165 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]'
6166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6167 ;;
6168 *)
6169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6171 ;;
6172 esac
6173 ;;
6174
6175 interix[3-9]*)
6176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6178 ;;
6179
6180 irix5* | irix6* | nonstopux*)
6181 case $LD in
6182 *-32|*"-32 ") libmagic=32-bit;;
6183 *-n32|*"-n32 ") libmagic=N32;;
6184 *-64|*"-64 ") libmagic=64-bit;;
6185 *) libmagic=never-match;;
6186 esac
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 # This must be Linux ELF.
6191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194
6195 netbsd* | netbsdelf*-gnu)
6196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6198 else
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6200 fi
6201 ;;
6202
6203 newos6*)
6204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6205 lt_cv_file_magic_cmd=/usr/bin/file
6206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6207 ;;
6208
6209 *nto* | *qnx*)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212
6213 openbsd*)
6214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6216 else
6217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6218 fi
6219 ;;
6220
6221 osf3* | osf4* | osf5*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 rdos*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 solaris*)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 sysv4 | sysv4.3*)
6238 case $host_vendor in
6239 motorola)
6240 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]'
6241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6242 ;;
6243 ncr)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246 sequent)
6247 lt_cv_file_magic_cmd='/bin/file'
6248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6249 ;;
6250 sni)
6251 lt_cv_file_magic_cmd='/bin/file'
6252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6253 lt_cv_file_magic_test_file=/lib/libc.so
6254 ;;
6255 siemens)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258 pc)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261 esac
6262 ;;
6263
6264 tpf*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 esac
6268
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6271 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6272
6273 file_magic_glob=
6274 want_nocaseglob=no
6275 if test "$build" = "$host"; then
6276 case $host_os in
6277 mingw* | pw32*)
6278 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6279 want_nocaseglob=yes
6280 else
6281 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6282 fi
6283 ;;
6284 esac
6285 fi
6286
6287 file_magic_cmd=$lt_cv_file_magic_cmd
6288 deplibs_check_method=$lt_cv_deplibs_check_method
6289 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_DLLTOOL+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$DLLTOOL"; then
6321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 DLLTOOL=$ac_cv_prog_DLLTOOL
6341 if test -n "$DLLTOOL"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6343 $as_echo "$DLLTOOL" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_DLLTOOL"; then
6352 ac_ct_DLLTOOL=$DLLTOOL
6353 # Extract the first word of "dlltool", so it can be a program name with args.
6354 set dummy dlltool; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 if test -n "$ac_ct_DLLTOOL"; then
6361 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6381 if test -n "$ac_ct_DLLTOOL"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6383 $as_echo "$ac_ct_DLLTOOL" >&6; }
6384 else
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389 if test "x$ac_ct_DLLTOOL" = x; then
6390 DLLTOOL="false"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 DLLTOOL=$ac_ct_DLLTOOL
6399 fi
6400 else
6401 DLLTOOL="$ac_cv_prog_DLLTOOL"
6402 fi
6403
6404 test -z "$DLLTOOL" && DLLTOOL=dlltool
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6416 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6417 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 lt_cv_sharedlib_from_linklib_cmd='unknown'
6421
6422 case $host_os in
6423 cygwin* | mingw* | pw32* | cegcc*)
6424 # two different shell functions defined in ltmain.sh
6425 # decide which to use based on capabilities of $DLLTOOL
6426 case `$DLLTOOL --help 2>&1` in
6427 *--identify-strict*)
6428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6429 ;;
6430 *)
6431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6432 ;;
6433 esac
6434 ;;
6435 *)
6436 # fallback: assume linklib IS sharedlib
6437 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6438 ;;
6439 esac
6440
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6443 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6444 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6445 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455 for ac_prog in ar
6456 do
6457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_AR+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$AR"; then
6465 ac_cv_prog_AR="$AR" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 AR=$ac_cv_prog_AR
6485 if test -n "$AR"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6487 $as_echo "$AR" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 test -n "$AR" && break
6495 done
6496 fi
6497 if test -z "$AR"; then
6498 ac_ct_AR=$AR
6499 for ac_prog in ar
6500 do
6501 # Extract the first word of "$ac_prog", so it can be a program name with args.
6502 set dummy $ac_prog; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 if test -n "$ac_ct_AR"; then
6509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_ac_ct_AR="$ac_prog"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6529 if test -n "$ac_ct_AR"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6531 $as_echo "$ac_ct_AR" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 test -n "$ac_ct_AR" && break
6539 done
6540
6541 if test "x$ac_ct_AR" = x; then
6542 AR="false"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 AR=$ac_ct_AR
6551 fi
6552 fi
6553
6554 : ${AR=ar}
6555 : ${AR_FLAGS=cru}
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6568 $as_echo_n "checking for archiver @FILE support... " >&6; }
6569 if ${lt_cv_ar_at_file+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 lt_cv_ar_at_file=no
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575
6576 int
6577 main ()
6578 {
6579
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 echo conftest.$ac_objext > conftest.lst
6586 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6588 (eval $lt_ar_try) 2>&5
6589 ac_status=$?
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }
6592 if test "$ac_status" -eq 0; then
6593 # Ensure the archiver fails upon bogus file names.
6594 rm -f conftest.$ac_objext libconftest.a
6595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6596 (eval $lt_ar_try) 2>&5
6597 ac_status=$?
6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599 test $ac_status = 0; }
6600 if test "$ac_status" -ne 0; then
6601 lt_cv_ar_at_file=@
6602 fi
6603 fi
6604 rm -f conftest.* libconftest.a
6605
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6611 $as_echo "$lt_cv_ar_at_file" >&6; }
6612
6613 if test "x$lt_cv_ar_at_file" = xno; then
6614 archiver_list_spec=
6615 else
6616 archiver_list_spec=$lt_cv_ar_at_file
6617 fi
6618
6619
6620
6621
6622
6623
6624
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}strip; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_STRIP+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 if test -n "$STRIP"; then
6634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 STRIP=$ac_cv_prog_STRIP
6654 if test -n "$STRIP"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6656 $as_echo "$STRIP" >&6; }
6657 else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_STRIP"; then
6665 ac_ct_STRIP=$STRIP
6666 # Extract the first word of "strip", so it can be a program name with args.
6667 set dummy strip; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$ac_ct_STRIP"; then
6674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_STRIP="strip"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6694 if test -n "$ac_ct_STRIP"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6696 $as_echo "$ac_ct_STRIP" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_STRIP" = x; then
6703 STRIP=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 STRIP=$ac_ct_STRIP
6712 fi
6713 else
6714 STRIP="$ac_cv_prog_STRIP"
6715 fi
6716
6717 test -z "$STRIP" && STRIP=:
6718
6719
6720
6721
6722
6723
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_RANLIB+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$RANLIB"; then
6733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 RANLIB=$ac_cv_prog_RANLIB
6753 if test -n "$RANLIB"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6755 $as_echo "$RANLIB" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_RANLIB"; then
6764 ac_ct_RANLIB=$RANLIB
6765 # Extract the first word of "ranlib", so it can be a program name with args.
6766 set dummy ranlib; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_RANLIB"; then
6773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_ac_ct_RANLIB="ranlib"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6793 if test -n "$ac_ct_RANLIB"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6795 $as_echo "$ac_ct_RANLIB" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801 if test "x$ac_ct_RANLIB" = x; then
6802 RANLIB=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 RANLIB=$ac_ct_RANLIB
6811 fi
6812 else
6813 RANLIB="$ac_cv_prog_RANLIB"
6814 fi
6815
6816 test -z "$RANLIB" && RANLIB=:
6817
6818
6819
6820
6821
6822
6823 # Determine commands to create old-style static archives.
6824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6825 old_postinstall_cmds='chmod 644 $oldlib'
6826 old_postuninstall_cmds=
6827
6828 if test -n "$RANLIB"; then
6829 case $host_os in
6830 openbsd*)
6831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 ;;
6833 *)
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 ;;
6836 esac
6837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6838 fi
6839
6840 case $host_os in
6841 darwin*)
6842 lock_old_archive_extraction=yes ;;
6843 *)
6844 lock_old_archive_extraction=no ;;
6845 esac
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885 # If no C compiler was specified, use CC.
6886 LTCC=${LTCC-"$CC"}
6887
6888 # If no C compiler flags were specified, use CFLAGS.
6889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890
6891 # Allow CC to be a program name with arguments.
6892 compiler=$CC
6893
6894
6895 # Check for command to grab the raw symbol name followed by C symbol from nm.
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6897 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6898 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901
6902 # These are sane defaults that work on at least a few old systems.
6903 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6904
6905 # Character class describing NM global symbol codes.
6906 symcode='[BCDEGRST]'
6907
6908 # Regexp to match symbols that can be accessed directly from C.
6909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6910
6911 # Define system-specific variables.
6912 case $host_os in
6913 aix*)
6914 symcode='[BCDT]'
6915 ;;
6916 cygwin* | mingw* | pw32* | cegcc*)
6917 symcode='[ABCDGISTW]'
6918 ;;
6919 hpux*)
6920 if test "$host_cpu" = ia64; then
6921 symcode='[ABCDEGRST]'
6922 fi
6923 ;;
6924 irix* | nonstopux*)
6925 symcode='[BCDEGRST]'
6926 ;;
6927 osf*)
6928 symcode='[BCDEGQRST]'
6929 ;;
6930 solaris*)
6931 symcode='[BDRT]'
6932 ;;
6933 sco3.2v5*)
6934 symcode='[DT]'
6935 ;;
6936 sysv4.2uw2*)
6937 symcode='[DT]'
6938 ;;
6939 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6940 symcode='[ABDT]'
6941 ;;
6942 sysv4)
6943 symcode='[DFNSTU]'
6944 ;;
6945 esac
6946
6947 # If we're using GNU nm, then use its standard symbol codes.
6948 case `$NM -V 2>&1` in
6949 *GNU* | *'with BFD'*)
6950 symcode='[ABCDGIRSTW]' ;;
6951 esac
6952
6953 # Transform an extracted symbol line into a proper C declaration.
6954 # Some systems (esp. on ia64) link data and code symbols differently,
6955 # so use this general approach.
6956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6957
6958 # Transform an extracted symbol line into symbol name and symbol address
6959 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6960 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'"
6961
6962 # Handle CRLF in mingw tool chain
6963 opt_cr=
6964 case $build_os in
6965 mingw*)
6966 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6967 ;;
6968 esac
6969
6970 # Try without a prefix underscore, then with it.
6971 for ac_symprfx in "" "_"; do
6972
6973 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6974 symxfrm="\\1 $ac_symprfx\\2 \\2"
6975
6976 # Write the raw and C identifiers.
6977 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6978 # Fake it for dumpbin and say T for any non-static function
6979 # and D for any global variable.
6980 # Also find C++ and __fastcall symbols from MSVC++,
6981 # which start with @ or ?.
6982 lt_cv_sys_global_symbol_pipe="$AWK '"\
6983 " {last_section=section; section=\$ 3};"\
6984 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6985 " \$ 0!~/External *\|/{next};"\
6986 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6987 " {if(hide[section]) next};"\
6988 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6989 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6990 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6991 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6992 " ' prfx=^$ac_symprfx"
6993 else
6994 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6995 fi
6996 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6997
6998 # Check to see that the pipe works correctly.
6999 pipe_works=no
7000
7001 rm -f conftest*
7002 cat > conftest.$ac_ext <<_LT_EOF
7003 #ifdef __cplusplus
7004 extern "C" {
7005 #endif
7006 char nm_test_var;
7007 void nm_test_func(void);
7008 void nm_test_func(void){}
7009 #ifdef __cplusplus
7010 }
7011 #endif
7012 int main(){nm_test_var='a';nm_test_func();return(0);}
7013 _LT_EOF
7014
7015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7016 (eval $ac_compile) 2>&5
7017 ac_status=$?
7018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7019 test $ac_status = 0; }; then
7020 # Now try to grab the symbols.
7021 nlist=conftest.nm
7022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7023 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7024 ac_status=$?
7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026 test $ac_status = 0; } && test -s "$nlist"; then
7027 # Try sorting and uniquifying the output.
7028 if sort "$nlist" | uniq > "$nlist"T; then
7029 mv -f "$nlist"T "$nlist"
7030 else
7031 rm -f "$nlist"T
7032 fi
7033
7034 # Make sure that we snagged all the symbols we need.
7035 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7036 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7037 cat <<_LT_EOF > conftest.$ac_ext
7038 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7039 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7040 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7041 relocations are performed -- see ld's documentation on pseudo-relocs. */
7042 # define LT_DLSYM_CONST
7043 #elif defined(__osf__)
7044 /* This system does not cope well with relocations in const data. */
7045 # define LT_DLSYM_CONST
7046 #else
7047 # define LT_DLSYM_CONST const
7048 #endif
7049
7050 #ifdef __cplusplus
7051 extern "C" {
7052 #endif
7053
7054 _LT_EOF
7055 # Now generate the symbol file.
7056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7057
7058 cat <<_LT_EOF >> conftest.$ac_ext
7059
7060 /* The mapping between symbol names and symbols. */
7061 LT_DLSYM_CONST struct {
7062 const char *name;
7063 void *address;
7064 }
7065 lt__PROGRAM__LTX_preloaded_symbols[] =
7066 {
7067 { "@PROGRAM@", (void *) 0 },
7068 _LT_EOF
7069 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7070 cat <<\_LT_EOF >> conftest.$ac_ext
7071 {0, (void *) 0}
7072 };
7073
7074 /* This works around a problem in FreeBSD linker */
7075 #ifdef FREEBSD_WORKAROUND
7076 static const void *lt_preloaded_setup() {
7077 return lt__PROGRAM__LTX_preloaded_symbols;
7078 }
7079 #endif
7080
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 _LT_EOF
7085 # Now try linking the two files.
7086 mv conftest.$ac_objext conftstm.$ac_objext
7087 lt_globsym_save_LIBS=$LIBS
7088 lt_globsym_save_CFLAGS=$CFLAGS
7089 LIBS="conftstm.$ac_objext"
7090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7092 (eval $ac_link) 2>&5
7093 ac_status=$?
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7096 pipe_works=yes
7097 fi
7098 LIBS=$lt_globsym_save_LIBS
7099 CFLAGS=$lt_globsym_save_CFLAGS
7100 else
7101 echo "cannot find nm_test_func in $nlist" >&5
7102 fi
7103 else
7104 echo "cannot find nm_test_var in $nlist" >&5
7105 fi
7106 else
7107 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7108 fi
7109 else
7110 echo "$progname: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 fi
7113 rm -rf conftest* conftst*
7114
7115 # Do not use the global_symbol_pipe unless it works.
7116 if test "$pipe_works" = yes; then
7117 break
7118 else
7119 lt_cv_sys_global_symbol_pipe=
7120 fi
7121 done
7122
7123 fi
7124
7125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7126 lt_cv_sys_global_symbol_to_cdecl=
7127 fi
7128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7130 $as_echo "failed" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7133 $as_echo "ok" >&6; }
7134 fi
7135
7136 # Response file support.
7137 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7138 nm_file_list_spec='@'
7139 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7140 nm_file_list_spec='@'
7141 fi
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7170 $as_echo_n "checking for sysroot... " >&6; }
7171
7172 # Check whether --with-sysroot was given.
7173 if test "${with_sysroot+set}" = set; then :
7174 withval=$with_sysroot;
7175 else
7176 with_sysroot=no
7177 fi
7178
7179
7180 lt_sysroot=
7181 case ${with_sysroot} in #(
7182 yes)
7183 if test "$GCC" = yes; then
7184 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7185 fi
7186 ;; #(
7187 /*)
7188 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7189 ;; #(
7190 no|'')
7191 ;; #(
7192 *)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7194 $as_echo "${with_sysroot}" >&6; }
7195 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7196 ;;
7197 esac
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7200 $as_echo "${lt_sysroot:-no}" >&6; }
7201
7202
7203
7204
7205
7206 # Check whether --enable-libtool-lock was given.
7207 if test "${enable_libtool_lock+set}" = set; then :
7208 enableval=$enable_libtool_lock;
7209 fi
7210
7211 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7212
7213 # Some flags need to be propagated to the compiler or linker for good
7214 # libtool support.
7215 case $host in
7216 ia64-*-hpux*)
7217 # Find out which ABI we are using.
7218 echo 'int i;' > conftest.$ac_ext
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220 (eval $ac_compile) 2>&5
7221 ac_status=$?
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7224 case `/usr/bin/file conftest.$ac_objext` in
7225 *ELF-32*)
7226 HPUX_IA64_MODE="32"
7227 ;;
7228 *ELF-64*)
7229 HPUX_IA64_MODE="64"
7230 ;;
7231 esac
7232 fi
7233 rm -rf conftest*
7234 ;;
7235 *-*-irix6*)
7236 # Find out which ABI we are using.
7237 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 if test "$lt_cv_prog_gnu_ld" = yes; then
7244 case `/usr/bin/file conftest.$ac_objext` in
7245 *32-bit*)
7246 LD="${LD-ld} -melf32bsmip"
7247 ;;
7248 *N32*)
7249 LD="${LD-ld} -melf32bmipn32"
7250 ;;
7251 *64-bit*)
7252 LD="${LD-ld} -melf64bmip"
7253 ;;
7254 esac
7255 else
7256 case `/usr/bin/file conftest.$ac_objext` in
7257 *32-bit*)
7258 LD="${LD-ld} -32"
7259 ;;
7260 *N32*)
7261 LD="${LD-ld} -n32"
7262 ;;
7263 *64-bit*)
7264 LD="${LD-ld} -64"
7265 ;;
7266 esac
7267 fi
7268 fi
7269 rm -rf conftest*
7270 ;;
7271
7272 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7273 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7274 # Find out which ABI we are using.
7275 echo 'int i;' > conftest.$ac_ext
7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7280 test $ac_status = 0; }; then
7281 case `/usr/bin/file conftest.o` in
7282 *32-bit*)
7283 case $host in
7284 x86_64-*kfreebsd*-gnu)
7285 LD="${LD-ld} -m elf_i386_fbsd"
7286 ;;
7287 x86_64-*linux*)
7288 LD="${LD-ld} -m elf_i386"
7289 ;;
7290 ppc64-*linux*|powerpc64-*linux*)
7291 LD="${LD-ld} -m elf32ppclinux"
7292 ;;
7293 s390x-*linux*)
7294 LD="${LD-ld} -m elf_s390"
7295 ;;
7296 sparc64-*linux*)
7297 LD="${LD-ld} -m elf32_sparc"
7298 ;;
7299 esac
7300 ;;
7301 *64-bit*)
7302 case $host in
7303 x86_64-*kfreebsd*-gnu)
7304 LD="${LD-ld} -m elf_x86_64_fbsd"
7305 ;;
7306 x86_64-*linux*)
7307 LD="${LD-ld} -m elf_x86_64"
7308 ;;
7309 ppc*-*linux*|powerpc*-*linux*)
7310 LD="${LD-ld} -m elf64ppc"
7311 ;;
7312 s390*-*linux*|s390*-*tpf*)
7313 LD="${LD-ld} -m elf64_s390"
7314 ;;
7315 sparc*-*linux*)
7316 LD="${LD-ld} -m elf64_sparc"
7317 ;;
7318 esac
7319 ;;
7320 esac
7321 fi
7322 rm -rf conftest*
7323 ;;
7324
7325 *-*-sco3.2v5*)
7326 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7327 SAVE_CFLAGS="$CFLAGS"
7328 CFLAGS="$CFLAGS -belf"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7330 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7331 if ${lt_cv_cc_needs_belf+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342
7343 int
7344 main ()
7345 {
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_link "$LINENO"; then :
7352 lt_cv_cc_needs_belf=yes
7353 else
7354 lt_cv_cc_needs_belf=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7366 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369 CFLAGS="$SAVE_CFLAGS"
7370 fi
7371 ;;
7372 sparc*-*solaris*)
7373 # Find out which ABI we are using.
7374 echo 'int i;' > conftest.$ac_ext
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; }; then
7380 case `/usr/bin/file conftest.o` in
7381 *64-bit*)
7382 case $lt_cv_prog_gnu_ld in
7383 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7384 *)
7385 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7386 LD="${LD-ld} -64"
7387 fi
7388 ;;
7389 esac
7390 ;;
7391 esac
7392 fi
7393 rm -rf conftest*
7394 ;;
7395 esac
7396
7397 need_locks="$enable_libtool_lock"
7398
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}mt; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$MANIFEST_TOOL"; then
7408 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7428 if test -n "$MANIFEST_TOOL"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7430 $as_echo "$MANIFEST_TOOL" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437 fi
7438 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7439 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7440 # Extract the first word of "mt", so it can be a program name with args.
7441 set dummy mt; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test -n "$ac_ct_MANIFEST_TOOL"; then
7448 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7468 if test -n "$ac_ct_MANIFEST_TOOL"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7470 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7477 MANIFEST_TOOL=":"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7486 fi
7487 else
7488 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7489 fi
7490
7491 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7493 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7494 if ${lt_cv_path_mainfest_tool+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 lt_cv_path_mainfest_tool=no
7498 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7499 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7500 cat conftest.err >&5
7501 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7502 lt_cv_path_mainfest_tool=yes
7503 fi
7504 rm -f conftest*
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7507 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7508 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7509 MANIFEST_TOOL=:
7510 fi
7511
7512
7513
7514
7515
7516
7517 case $host_os in
7518 rhapsody* | darwin*)
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7521 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 if test -n "$DSYMUTIL"; then
7528 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541 done
7542 done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7548 if test -n "$DSYMUTIL"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7550 $as_echo "$DSYMUTIL" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556
7557 fi
7558 if test -z "$ac_cv_prog_DSYMUTIL"; then
7559 ac_ct_DSYMUTIL=$DSYMUTIL
7560 # Extract the first word of "dsymutil", so it can be a program name with args.
7561 set dummy dsymutil; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$ac_ct_DSYMUTIL"; then
7568 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7590 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596 if test "x$ac_ct_DSYMUTIL" = x; then
7597 DSYMUTIL=":"
7598 else
7599 case $cross_compiling:$ac_tool_warned in
7600 yes:)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603 ac_tool_warned=yes ;;
7604 esac
7605 DSYMUTIL=$ac_ct_DSYMUTIL
7606 fi
7607 else
7608 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7609 fi
7610
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_NMEDIT+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$NMEDIT"; then
7620 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 NMEDIT=$ac_cv_prog_NMEDIT
7640 if test -n "$NMEDIT"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7642 $as_echo "$NMEDIT" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649 fi
7650 if test -z "$ac_cv_prog_NMEDIT"; then
7651 ac_ct_NMEDIT=$NMEDIT
7652 # Extract the first word of "nmedit", so it can be a program name with args.
7653 set dummy nmedit; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$ac_ct_NMEDIT"; then
7660 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7680 if test -n "$ac_ct_NMEDIT"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7682 $as_echo "$ac_ct_NMEDIT" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688 if test "x$ac_ct_NMEDIT" = x; then
7689 NMEDIT=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697 NMEDIT=$ac_ct_NMEDIT
7698 fi
7699 else
7700 NMEDIT="$ac_cv_prog_NMEDIT"
7701 fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_LIPO+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$LIPO"; then
7712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 LIPO=$ac_cv_prog_LIPO
7732 if test -n "$LIPO"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7734 $as_echo "$LIPO" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_LIPO"; then
7743 ac_ct_LIPO=$LIPO
7744 # Extract the first word of "lipo", so it can be a program name with args.
7745 set dummy lipo; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$ac_ct_LIPO"; then
7752 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_LIPO="lipo"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7772 if test -n "$ac_ct_LIPO"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7774 $as_echo "$ac_ct_LIPO" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780 if test "x$ac_ct_LIPO" = x; then
7781 LIPO=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 LIPO=$ac_ct_LIPO
7790 fi
7791 else
7792 LIPO="$ac_cv_prog_LIPO"
7793 fi
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_OTOOL+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$OTOOL"; then
7804 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 OTOOL=$ac_cv_prog_OTOOL
7824 if test -n "$OTOOL"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7826 $as_echo "$OTOOL" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_OTOOL"; then
7835 ac_ct_OTOOL=$OTOOL
7836 # Extract the first word of "otool", so it can be a program name with args.
7837 set dummy otool; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$ac_ct_OTOOL"; then
7844 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_OTOOL="otool"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7864 if test -n "$ac_ct_OTOOL"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7866 $as_echo "$ac_ct_OTOOL" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872 if test "x$ac_ct_OTOOL" = x; then
7873 OTOOL=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 OTOOL=$ac_ct_OTOOL
7882 fi
7883 else
7884 OTOOL="$ac_cv_prog_OTOOL"
7885 fi
7886
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_OTOOL64+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$OTOOL64"; then
7896 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 OTOOL64=$ac_cv_prog_OTOOL64
7916 if test -n "$OTOOL64"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7918 $as_echo "$OTOOL64" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925 fi
7926 if test -z "$ac_cv_prog_OTOOL64"; then
7927 ac_ct_OTOOL64=$OTOOL64
7928 # Extract the first word of "otool64", so it can be a program name with args.
7929 set dummy otool64; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$ac_ct_OTOOL64"; then
7936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_ac_ct_OTOOL64="otool64"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7956 if test -n "$ac_ct_OTOOL64"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7958 $as_echo "$ac_ct_OTOOL64" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964 if test "x$ac_ct_OTOOL64" = x; then
7965 OTOOL64=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973 OTOOL64=$ac_ct_OTOOL64
7974 fi
7975 else
7976 OTOOL64="$ac_cv_prog_OTOOL64"
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8006 $as_echo_n "checking for -single_module linker flag... " >&6; }
8007 if ${lt_cv_apple_cc_single_mod+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 lt_cv_apple_cc_single_mod=no
8011 if test -z "${LT_MULTI_MODULE}"; then
8012 # By default we will add the -single_module flag. You can override
8013 # by either setting the environment variable LT_MULTI_MODULE
8014 # non-empty at configure time, or by adding -multi_module to the
8015 # link flags.
8016 rm -rf libconftest.dylib*
8017 echo "int foo(void){return 1;}" > conftest.c
8018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8019 -dynamiclib -Wl,-single_module conftest.c" >&5
8020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8022 _lt_result=$?
8023 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8024 lt_cv_apple_cc_single_mod=yes
8025 else
8026 cat conftest.err >&5
8027 fi
8028 rm -rf libconftest.dylib*
8029 rm -f conftest.*
8030 fi
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8036 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 lt_cv_ld_exported_symbols_list=no
8040 save_LDFLAGS=$LDFLAGS
8041 echo "_main" > conftest.sym
8042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045
8046 int
8047 main ()
8048 {
8049
8050 ;
8051 return 0;
8052 }
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 lt_cv_ld_exported_symbols_list=yes
8056 else
8057 lt_cv_ld_exported_symbols_list=no
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LDFLAGS="$save_LDFLAGS"
8062
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8067 $as_echo_n "checking for -force_load linker flag... " >&6; }
8068 if ${lt_cv_ld_force_load+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 lt_cv_ld_force_load=no
8072 cat > conftest.c << _LT_EOF
8073 int forced_loaded() { return 2;}
8074 _LT_EOF
8075 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8076 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8077 echo "$AR cru libconftest.a conftest.o" >&5
8078 $AR cru libconftest.a conftest.o 2>&5
8079 echo "$RANLIB libconftest.a" >&5
8080 $RANLIB libconftest.a 2>&5
8081 cat > conftest.c << _LT_EOF
8082 int main() { return 0;}
8083 _LT_EOF
8084 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8085 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8086 _lt_result=$?
8087 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8088 lt_cv_ld_force_load=yes
8089 else
8090 cat conftest.err >&5
8091 fi
8092 rm -f conftest.err libconftest.a conftest conftest.c
8093 rm -rf conftest.dSYM
8094
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8097 $as_echo "$lt_cv_ld_force_load" >&6; }
8098 case $host_os in
8099 rhapsody* | darwin1.[012])
8100 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8101 darwin1.*)
8102 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8103 darwin*) # darwin 5.x on
8104 # if running on 10.5 or later, the deployment target defaults
8105 # to the OS version, if on x86, and 10.4, the deployment
8106 # target defaults to 10.4. Don't you love it?
8107 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8108 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8109 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8110 10.[012]*)
8111 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112 10.*)
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 esac
8115 ;;
8116 esac
8117 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8118 _lt_dar_single_mod='$single_module'
8119 fi
8120 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8121 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8122 else
8123 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 fi
8125 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8126 _lt_dsymutil='~$DSYMUTIL $lib || :'
8127 else
8128 _lt_dsymutil=
8129 fi
8130 ;;
8131 esac
8132
8133 ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8139 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8140 # On Suns, sometimes $CPP names a directory.
8141 if test -n "$CPP" && test -d "$CPP"; then
8142 CPP=
8143 fi
8144 if test -z "$CPP"; then
8145 if ${ac_cv_prog_CPP+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 # Double quotes because CPP needs to be expanded
8149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8150 do
8151 ac_preproc_ok=false
8152 for ac_c_preproc_warn_flag in '' yes
8153 do
8154 # Use a header file that comes with gcc, so configuring glibc
8155 # with a fresh cross-compiler works.
8156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 # <limits.h> exists even on freestanding compilers.
8158 # On the NeXT, cc -E runs the code through the compiler's parser,
8159 # not just through cpp. "Syntax error" is here to catch this case.
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 #ifdef __STDC__
8163 # include <limits.h>
8164 #else
8165 # include <assert.h>
8166 #endif
8167 Syntax error
8168 _ACEOF
8169 if ac_fn_c_try_cpp "$LINENO"; then :
8170
8171 else
8172 # Broken: fails on valid input.
8173 continue
8174 fi
8175 rm -f conftest.err conftest.i conftest.$ac_ext
8176
8177 # OK, works on sane cases. Now check whether nonexistent headers
8178 # can be detected and how.
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 #include <ac_nonexistent.h>
8182 _ACEOF
8183 if ac_fn_c_try_cpp "$LINENO"; then :
8184 # Broken: success on invalid input.
8185 continue
8186 else
8187 # Passes both tests.
8188 ac_preproc_ok=:
8189 break
8190 fi
8191 rm -f conftest.err conftest.i conftest.$ac_ext
8192
8193 done
8194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8195 rm -f conftest.i conftest.err conftest.$ac_ext
8196 if $ac_preproc_ok; then :
8197 break
8198 fi
8199
8200 done
8201 ac_cv_prog_CPP=$CPP
8202
8203 fi
8204 CPP=$ac_cv_prog_CPP
8205 else
8206 ac_cv_prog_CPP=$CPP
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8209 $as_echo "$CPP" >&6; }
8210 ac_preproc_ok=false
8211 for ac_c_preproc_warn_flag in '' yes
8212 do
8213 # Use a header file that comes with gcc, so configuring glibc
8214 # with a fresh cross-compiler works.
8215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8216 # <limits.h> exists even on freestanding compilers.
8217 # On the NeXT, cc -E runs the code through the compiler's parser,
8218 # not just through cpp. "Syntax error" is here to catch this case.
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #ifdef __STDC__
8222 # include <limits.h>
8223 #else
8224 # include <assert.h>
8225 #endif
8226 Syntax error
8227 _ACEOF
8228 if ac_fn_c_try_cpp "$LINENO"; then :
8229
8230 else
8231 # Broken: fails on valid input.
8232 continue
8233 fi
8234 rm -f conftest.err conftest.i conftest.$ac_ext
8235
8236 # OK, works on sane cases. Now check whether nonexistent headers
8237 # can be detected and how.
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #include <ac_nonexistent.h>
8241 _ACEOF
8242 if ac_fn_c_try_cpp "$LINENO"; then :
8243 # Broken: success on invalid input.
8244 continue
8245 else
8246 # Passes both tests.
8247 ac_preproc_ok=:
8248 break
8249 fi
8250 rm -f conftest.err conftest.i conftest.$ac_ext
8251
8252 done
8253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8254 rm -f conftest.i conftest.err conftest.$ac_ext
8255 if $ac_preproc_ok; then :
8256
8257 else
8258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8260 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8261 See \`config.log' for more details" "$LINENO" 5; }
8262 fi
8263
8264 ac_ext=c
8265 ac_cpp='$CPP $CPPFLAGS'
8266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269
8270
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8272 $as_echo_n "checking for ANSI C header files... " >&6; }
8273 if ${ac_cv_header_stdc+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <stdlib.h>
8279 #include <stdarg.h>
8280 #include <string.h>
8281 #include <float.h>
8282
8283 int
8284 main ()
8285 {
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_header_stdc=yes
8293 else
8294 ac_cv_header_stdc=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297
8298 if test $ac_cv_header_stdc = yes; then
8299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 #include <string.h>
8303
8304 _ACEOF
8305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8306 $EGREP "memchr" >/dev/null 2>&1; then :
8307
8308 else
8309 ac_cv_header_stdc=no
8310 fi
8311 rm -f conftest*
8312
8313 fi
8314
8315 if test $ac_cv_header_stdc = yes; then
8316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319 #include <stdlib.h>
8320
8321 _ACEOF
8322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8323 $EGREP "free" >/dev/null 2>&1; then :
8324
8325 else
8326 ac_cv_header_stdc=no
8327 fi
8328 rm -f conftest*
8329
8330 fi
8331
8332 if test $ac_cv_header_stdc = yes; then
8333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8334 if test "$cross_compiling" = yes; then :
8335 :
8336 else
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 #include <ctype.h>
8340 #include <stdlib.h>
8341 #if ((' ' & 0x0FF) == 0x020)
8342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8344 #else
8345 # define ISLOWER(c) \
8346 (('a' <= (c) && (c) <= 'i') \
8347 || ('j' <= (c) && (c) <= 'r') \
8348 || ('s' <= (c) && (c) <= 'z'))
8349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8350 #endif
8351
8352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8353 int
8354 main ()
8355 {
8356 int i;
8357 for (i = 0; i < 256; i++)
8358 if (XOR (islower (i), ISLOWER (i))
8359 || toupper (i) != TOUPPER (i))
8360 return 2;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_run "$LINENO"; then :
8365
8366 else
8367 ac_cv_header_stdc=no
8368 fi
8369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8370 conftest.$ac_objext conftest.beam conftest.$ac_ext
8371 fi
8372
8373 fi
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8376 $as_echo "$ac_cv_header_stdc" >&6; }
8377 if test $ac_cv_header_stdc = yes; then
8378
8379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8380
8381 fi
8382
8383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8385 inttypes.h stdint.h unistd.h
8386 do :
8387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8389 "
8390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8391 cat >>confdefs.h <<_ACEOF
8392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399
8400 for ac_header in dlfcn.h
8401 do :
8402 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8403 "
8404 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_DLFCN_H 1
8407 _ACEOF
8408
8409 fi
8410
8411 done
8412
8413
8414
8415
8416 func_stripname_cnf ()
8417 {
8418 case ${2} in
8419 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8420 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8421 esac
8422 } # func_stripname_cnf
8423
8424
8425
8426
8427
8428 # Set options
8429
8430
8431
8432 enable_dlopen=no
8433
8434
8435 enable_win32_dll=no
8436
8437
8438 # Check whether --enable-shared was given.
8439 if test "${enable_shared+set}" = set; then :
8440 enableval=$enable_shared; p=${PACKAGE-default}
8441 case $enableval in
8442 yes) enable_shared=yes ;;
8443 no) enable_shared=no ;;
8444 *)
8445 enable_shared=no
8446 # Look at the argument we got. We use all the common list separators.
8447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8448 for pkg in $enableval; do
8449 IFS="$lt_save_ifs"
8450 if test "X$pkg" = "X$p"; then
8451 enable_shared=yes
8452 fi
8453 done
8454 IFS="$lt_save_ifs"
8455 ;;
8456 esac
8457 else
8458 enable_shared=yes
8459 fi
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469 # Check whether --enable-static was given.
8470 if test "${enable_static+set}" = set; then :
8471 enableval=$enable_static; p=${PACKAGE-default}
8472 case $enableval in
8473 yes) enable_static=yes ;;
8474 no) enable_static=no ;;
8475 *)
8476 enable_static=no
8477 # Look at the argument we got. We use all the common list separators.
8478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8479 for pkg in $enableval; do
8480 IFS="$lt_save_ifs"
8481 if test "X$pkg" = "X$p"; then
8482 enable_static=yes
8483 fi
8484 done
8485 IFS="$lt_save_ifs"
8486 ;;
8487 esac
8488 else
8489 enable_static=yes
8490 fi
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 # Check whether --with-pic was given.
8502 if test "${with_pic+set}" = set; then :
8503 withval=$with_pic; pic_mode="$withval"
8504 else
8505 pic_mode=default
8506 fi
8507
8508
8509 test -z "$pic_mode" && pic_mode=default
8510
8511
8512
8513
8514
8515
8516
8517 # Check whether --enable-fast-install was given.
8518 if test "${enable_fast_install+set}" = set; then :
8519 enableval=$enable_fast_install; p=${PACKAGE-default}
8520 case $enableval in
8521 yes) enable_fast_install=yes ;;
8522 no) enable_fast_install=no ;;
8523 *)
8524 enable_fast_install=no
8525 # Look at the argument we got. We use all the common list separators.
8526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8527 for pkg in $enableval; do
8528 IFS="$lt_save_ifs"
8529 if test "X$pkg" = "X$p"; then
8530 enable_fast_install=yes
8531 fi
8532 done
8533 IFS="$lt_save_ifs"
8534 ;;
8535 esac
8536 else
8537 enable_fast_install=yes
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 # This can be used to rebuild libtool when needed
8551 LIBTOOL_DEPS="$ltmain"
8552
8553 # Always use our own libtool.
8554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 test -z "$LN_S" && LN_S="ln -s"
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596 if test -n "${ZSH_VERSION+set}" ; then
8597 setopt NO_GLOB_SUBST
8598 fi
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8601 $as_echo_n "checking for objdir... " >&6; }
8602 if ${lt_cv_objdir+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 rm -f .libs 2>/dev/null
8606 mkdir .libs 2>/dev/null
8607 if test -d .libs; then
8608 lt_cv_objdir=.libs
8609 else
8610 # MS-DOS does not allow filenames that begin with a dot.
8611 lt_cv_objdir=_libs
8612 fi
8613 rmdir .libs 2>/dev/null
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8616 $as_echo "$lt_cv_objdir" >&6; }
8617 objdir=$lt_cv_objdir
8618
8619
8620
8621
8622
8623 cat >>confdefs.h <<_ACEOF
8624 #define LT_OBJDIR "$lt_cv_objdir/"
8625 _ACEOF
8626
8627
8628
8629
8630 case $host_os in
8631 aix3*)
8632 # AIX sometimes has problems with the GCC collect2 program. For some
8633 # reason, if we set the COLLECT_NAMES environment variable, the problems
8634 # vanish in a puff of smoke.
8635 if test "X${COLLECT_NAMES+set}" != Xset; then
8636 COLLECT_NAMES=
8637 export COLLECT_NAMES
8638 fi
8639 ;;
8640 esac
8641
8642 # Global variables:
8643 ofile=libtool
8644 can_build_shared=yes
8645
8646 # All known linkers require a `.a' archive for static linking (except MSVC,
8647 # which needs '.lib').
8648 libext=a
8649
8650 with_gnu_ld="$lt_cv_prog_gnu_ld"
8651
8652 old_CC="$CC"
8653 old_CFLAGS="$CFLAGS"
8654
8655 # Set sane defaults for various variables
8656 test -z "$CC" && CC=cc
8657 test -z "$LTCC" && LTCC=$CC
8658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8659 test -z "$LD" && LD=ld
8660 test -z "$ac_objext" && ac_objext=o
8661
8662 for cc_temp in $compiler""; do
8663 case $cc_temp in
8664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8666 \-*) ;;
8667 *) break;;
8668 esac
8669 done
8670 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8671
8672
8673 # Only perform the check for file, if the check method requires it
8674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8675 case $deplibs_check_method in
8676 file_magic*)
8677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8679 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8680 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 case $MAGIC_CMD in
8684 [\\/*] | ?:[\\/]*)
8685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8686 ;;
8687 *)
8688 lt_save_MAGIC_CMD="$MAGIC_CMD"
8689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8691 for ac_dir in $ac_dummy; do
8692 IFS="$lt_save_ifs"
8693 test -z "$ac_dir" && ac_dir=.
8694 if test -f $ac_dir/${ac_tool_prefix}file; then
8695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8696 if test -n "$file_magic_test_file"; then
8697 case $deplibs_check_method in
8698 "file_magic "*)
8699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8702 $EGREP "$file_magic_regex" > /dev/null; then
8703 :
8704 else
8705 cat <<_LT_EOF 1>&2
8706
8707 *** Warning: the command libtool uses to detect shared libraries,
8708 *** $file_magic_cmd, produces output that libtool cannot recognize.
8709 *** The result is that libtool may fail to recognize shared libraries
8710 *** as such. This will affect the creation of libtool libraries that
8711 *** depend on shared libraries, but programs linked with such libtool
8712 *** libraries will work regardless of this problem. Nevertheless, you
8713 *** may want to report the problem to your system manager and/or to
8714 *** bug-libtool@gnu.org
8715
8716 _LT_EOF
8717 fi ;;
8718 esac
8719 fi
8720 break
8721 fi
8722 done
8723 IFS="$lt_save_ifs"
8724 MAGIC_CMD="$lt_save_MAGIC_CMD"
8725 ;;
8726 esac
8727 fi
8728
8729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8730 if test -n "$MAGIC_CMD"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8732 $as_echo "$MAGIC_CMD" >&6; }
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736 fi
8737
8738
8739
8740
8741
8742 if test -z "$lt_cv_path_MAGIC_CMD"; then
8743 if test -n "$ac_tool_prefix"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8745 $as_echo_n "checking for file... " >&6; }
8746 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 case $MAGIC_CMD in
8750 [\\/*] | ?:[\\/]*)
8751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8752 ;;
8753 *)
8754 lt_save_MAGIC_CMD="$MAGIC_CMD"
8755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8757 for ac_dir in $ac_dummy; do
8758 IFS="$lt_save_ifs"
8759 test -z "$ac_dir" && ac_dir=.
8760 if test -f $ac_dir/file; then
8761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8762 if test -n "$file_magic_test_file"; then
8763 case $deplibs_check_method in
8764 "file_magic "*)
8765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8768 $EGREP "$file_magic_regex" > /dev/null; then
8769 :
8770 else
8771 cat <<_LT_EOF 1>&2
8772
8773 *** Warning: the command libtool uses to detect shared libraries,
8774 *** $file_magic_cmd, produces output that libtool cannot recognize.
8775 *** The result is that libtool may fail to recognize shared libraries
8776 *** as such. This will affect the creation of libtool libraries that
8777 *** depend on shared libraries, but programs linked with such libtool
8778 *** libraries will work regardless of this problem. Nevertheless, you
8779 *** may want to report the problem to your system manager and/or to
8780 *** bug-libtool@gnu.org
8781
8782 _LT_EOF
8783 fi ;;
8784 esac
8785 fi
8786 break
8787 fi
8788 done
8789 IFS="$lt_save_ifs"
8790 MAGIC_CMD="$lt_save_MAGIC_CMD"
8791 ;;
8792 esac
8793 fi
8794
8795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8796 if test -n "$MAGIC_CMD"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8798 $as_echo "$MAGIC_CMD" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 fi
8803
8804
8805 else
8806 MAGIC_CMD=:
8807 fi
8808 fi
8809
8810 fi
8811 ;;
8812 esac
8813
8814 # Use C for the default configuration in the libtool script
8815
8816 lt_save_CC="$CC"
8817 ac_ext=c
8818 ac_cpp='$CPP $CPPFLAGS'
8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822
8823
8824 # Source file extension for C test sources.
8825 ac_ext=c
8826
8827 # Object file extension for compiled C test sources.
8828 objext=o
8829 objext=$objext
8830
8831 # Code to be used in simple compile tests
8832 lt_simple_compile_test_code="int some_variable = 0;"
8833
8834 # Code to be used in simple link tests
8835 lt_simple_link_test_code='int main(){return(0);}'
8836
8837
8838
8839
8840
8841
8842
8843 # If no C compiler was specified, use CC.
8844 LTCC=${LTCC-"$CC"}
8845
8846 # If no C compiler flags were specified, use CFLAGS.
8847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8848
8849 # Allow CC to be a program name with arguments.
8850 compiler=$CC
8851
8852 # Save the default compiler, since it gets overwritten when the other
8853 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8854 compiler_DEFAULT=$CC
8855
8856 # save warnings/boilerplate of simple test code
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8860 _lt_compiler_boilerplate=`cat conftest.err`
8861 $RM conftest*
8862
8863 ac_outfile=conftest.$ac_objext
8864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8866 _lt_linker_boilerplate=`cat conftest.err`
8867 $RM -r conftest*
8868
8869
8870 ## CAVEAT EMPTOR:
8871 ## There is no encapsulation within the following macros, do not change
8872 ## the running order or otherwise move them around unless you know exactly
8873 ## what you are doing...
8874 if test -n "$compiler"; then
8875
8876 lt_prog_compiler_no_builtin_flag=
8877
8878 if test "$GCC" = yes; then
8879 case $cc_basename in
8880 nvcc*)
8881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8882 *)
8883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8884 esac
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8887 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8888 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 lt_cv_prog_compiler_rtti_exceptions=no
8892 ac_outfile=conftest.$ac_objext
8893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8894 lt_compiler_flag="-fno-rtti -fno-exceptions"
8895 # Insert the option either (1) after the last *FLAGS variable, or
8896 # (2) before a word containing "conftest.", or (3) at the end.
8897 # Note that $ac_compile itself does not contain backslashes and begins
8898 # with a dollar sign (not a hyphen), so the echo should work correctly.
8899 # The option is referenced via a variable to avoid confusing sed.
8900 lt_compile=`echo "$ac_compile" | $SED \
8901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8903 -e 's:$: $lt_compiler_flag:'`
8904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8905 (eval "$lt_compile" 2>conftest.err)
8906 ac_status=$?
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 if (exit $ac_status) && test -s "$ac_outfile"; then
8910 # The compiler can only warn and ignore the option if not recognized
8911 # So say no if there are warnings other than the usual output.
8912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_rtti_exceptions=yes
8916 fi
8917 fi
8918 $RM conftest*
8919
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8922 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8923
8924 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8926 else
8927 :
8928 fi
8929
8930 fi
8931
8932
8933
8934
8935
8936
8937 lt_prog_compiler_wl=
8938 lt_prog_compiler_pic=
8939 lt_prog_compiler_static=
8940
8941
8942 if test "$GCC" = yes; then
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_static='-static'
8945
8946 case $host_os in
8947 aix*)
8948 # All AIX code is PIC.
8949 if test "$host_cpu" = ia64; then
8950 # AIX 5 now supports IA64 processor
8951 lt_prog_compiler_static='-Bstatic'
8952 fi
8953 ;;
8954
8955 amigaos*)
8956 case $host_cpu in
8957 powerpc)
8958 # see comment about AmigaOS4 .so support
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961 m68k)
8962 # FIXME: we need at least 68020 code to build shared libraries, but
8963 # adding the `-m68020' flag to GCC prevents building anything better,
8964 # like `-m68040'.
8965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8966 ;;
8967 esac
8968 ;;
8969
8970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8971 # PIC is the default for these OSes.
8972 ;;
8973
8974 mingw* | cygwin* | pw32* | os2* | cegcc*)
8975 # This hack is so that the source file can tell whether it is being
8976 # built for inclusion in a dll (and should export symbols for example).
8977 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8978 # (--disable-auto-import) libraries
8979 lt_prog_compiler_pic='-DDLL_EXPORT'
8980 ;;
8981
8982 darwin* | rhapsody*)
8983 # PIC is the default on this platform
8984 # Common symbols not allowed in MH_DYLIB files
8985 lt_prog_compiler_pic='-fno-common'
8986 ;;
8987
8988 haiku*)
8989 # PIC is the default for Haiku.
8990 # The "-static" flag exists, but is broken.
8991 lt_prog_compiler_static=
8992 ;;
8993
8994 hpux*)
8995 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8996 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8997 # sets the default TLS model and affects inlining.
8998 case $host_cpu in
8999 hppa*64*)
9000 # +Z the default
9001 ;;
9002 *)
9003 lt_prog_compiler_pic='-fPIC'
9004 ;;
9005 esac
9006 ;;
9007
9008 interix[3-9]*)
9009 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9010 # Instead, we relocate shared libraries at runtime.
9011 ;;
9012
9013 msdosdjgpp*)
9014 # Just because we use GCC doesn't mean we suddenly get shared libraries
9015 # on systems that don't support them.
9016 lt_prog_compiler_can_build_shared=no
9017 enable_shared=no
9018 ;;
9019
9020 *nto* | *qnx*)
9021 # QNX uses GNU C++, but need to define -shared option too, otherwise
9022 # it will coredump.
9023 lt_prog_compiler_pic='-fPIC -shared'
9024 ;;
9025
9026 sysv4*MP*)
9027 if test -d /usr/nec; then
9028 lt_prog_compiler_pic=-Kconform_pic
9029 fi
9030 ;;
9031
9032 *)
9033 lt_prog_compiler_pic='-fPIC'
9034 ;;
9035 esac
9036
9037 case $cc_basename in
9038 nvcc*) # Cuda Compiler Driver 2.2
9039 lt_prog_compiler_wl='-Xlinker '
9040 lt_prog_compiler_pic='-Xcompiler -fPIC'
9041 ;;
9042 esac
9043 else
9044 # PORTME Check for flag to pass linker flags through the system compiler.
9045 case $host_os in
9046 aix*)
9047 lt_prog_compiler_wl='-Wl,'
9048 if test "$host_cpu" = ia64; then
9049 # AIX 5 now supports IA64 processor
9050 lt_prog_compiler_static='-Bstatic'
9051 else
9052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 fi
9054 ;;
9055
9056 mingw* | cygwin* | pw32* | os2* | cegcc*)
9057 # This hack is so that the source file can tell whether it is being
9058 # built for inclusion in a dll (and should export symbols for example).
9059 lt_prog_compiler_pic='-DDLL_EXPORT'
9060 ;;
9061
9062 hpux9* | hpux10* | hpux11*)
9063 lt_prog_compiler_wl='-Wl,'
9064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9065 # not for PA HP-UX.
9066 case $host_cpu in
9067 hppa*64*|ia64*)
9068 # +Z the default
9069 ;;
9070 *)
9071 lt_prog_compiler_pic='+Z'
9072 ;;
9073 esac
9074 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9075 lt_prog_compiler_static='${wl}-a ${wl}archive'
9076 ;;
9077
9078 irix5* | irix6* | nonstopux*)
9079 lt_prog_compiler_wl='-Wl,'
9080 # PIC (with -KPIC) is the default.
9081 lt_prog_compiler_static='-non_shared'
9082 ;;
9083
9084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9085 case $cc_basename in
9086 # old Intel for x86_64 which still supported -KPIC.
9087 ecc*)
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-static'
9091 ;;
9092 # icc used to be incompatible with GCC.
9093 # ICC 10 doesn't accept -KPIC any more.
9094 icc* | ifort*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-fPIC'
9097 lt_prog_compiler_static='-static'
9098 ;;
9099 # Lahey Fortran 8.1.
9100 lf95*)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_pic='--shared'
9103 lt_prog_compiler_static='--static'
9104 ;;
9105 nagfor*)
9106 # NAG Fortran compiler
9107 lt_prog_compiler_wl='-Wl,-Wl,,'
9108 lt_prog_compiler_pic='-PIC'
9109 lt_prog_compiler_static='-Bstatic'
9110 ;;
9111 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9112 # Portland Group compilers (*not* the Pentium gcc compiler,
9113 # which looks to be a dead project)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-fpic'
9116 lt_prog_compiler_static='-Bstatic'
9117 ;;
9118 ccc*)
9119 lt_prog_compiler_wl='-Wl,'
9120 # All Alpha code is PIC.
9121 lt_prog_compiler_static='-non_shared'
9122 ;;
9123 xl* | bgxl* | bgf* | mpixl*)
9124 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-qpic'
9127 lt_prog_compiler_static='-qstaticlink'
9128 ;;
9129 *)
9130 case `$CC -V 2>&1 | sed 5q` in
9131 *Sun\ F* | *Sun*Fortran*)
9132 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9133 lt_prog_compiler_pic='-KPIC'
9134 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl=''
9136 ;;
9137 *Sun\ C*)
9138 # Sun C 5.9
9139 lt_prog_compiler_pic='-KPIC'
9140 lt_prog_compiler_static='-Bstatic'
9141 lt_prog_compiler_wl='-Wl,'
9142 ;;
9143 esac
9144 ;;
9145 esac
9146 ;;
9147
9148 newsos6)
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 ;;
9152
9153 *nto* | *qnx*)
9154 # QNX uses GNU C++, but need to define -shared option too, otherwise
9155 # it will coredump.
9156 lt_prog_compiler_pic='-fPIC -shared'
9157 ;;
9158
9159 osf3* | osf4* | osf5*)
9160 lt_prog_compiler_wl='-Wl,'
9161 # All OSF/1 code is PIC.
9162 lt_prog_compiler_static='-non_shared'
9163 ;;
9164
9165 rdos*)
9166 lt_prog_compiler_static='-non_shared'
9167 ;;
9168
9169 solaris*)
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 case $cc_basename in
9173 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9174 lt_prog_compiler_wl='-Qoption ld ';;
9175 *)
9176 lt_prog_compiler_wl='-Wl,';;
9177 esac
9178 ;;
9179
9180 sunos4*)
9181 lt_prog_compiler_wl='-Qoption ld '
9182 lt_prog_compiler_pic='-PIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185
9186 sysv4 | sysv4.2uw2* | sysv4.3*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec ;then
9194 lt_prog_compiler_pic='-Kconform_pic'
9195 lt_prog_compiler_static='-Bstatic'
9196 fi
9197 ;;
9198
9199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 ;;
9204
9205 unicos*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_can_build_shared=no
9208 ;;
9209
9210 uts4*)
9211 lt_prog_compiler_pic='-pic'
9212 lt_prog_compiler_static='-Bstatic'
9213 ;;
9214
9215 *)
9216 lt_prog_compiler_can_build_shared=no
9217 ;;
9218 esac
9219 fi
9220
9221 case $host_os in
9222 # For platforms which do not support PIC, -DPIC is meaningless:
9223 *djgpp*)
9224 lt_prog_compiler_pic=
9225 ;;
9226 *)
9227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9228 ;;
9229 esac
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9232 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9233 if ${lt_cv_prog_compiler_pic+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9239 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9240 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9241
9242 #
9243 # Check to make sure the PIC flag actually works.
9244 #
9245 if test -n "$lt_prog_compiler_pic"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9248 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 lt_cv_prog_compiler_pic_works=no
9252 ac_outfile=conftest.$ac_objext
9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9255 # Insert the option either (1) after the last *FLAGS variable, or
9256 # (2) before a word containing "conftest.", or (3) at the end.
9257 # Note that $ac_compile itself does not contain backslashes and begins
9258 # with a dollar sign (not a hyphen), so the echo should work correctly.
9259 # The option is referenced via a variable to avoid confusing sed.
9260 lt_compile=`echo "$ac_compile" | $SED \
9261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263 -e 's:$: $lt_compiler_flag:'`
9264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9265 (eval "$lt_compile" 2>conftest.err)
9266 ac_status=$?
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 if (exit $ac_status) && test -s "$ac_outfile"; then
9270 # The compiler can only warn and ignore the option if not recognized
9271 # So say no if there are warnings other than the usual output.
9272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9275 lt_cv_prog_compiler_pic_works=yes
9276 fi
9277 fi
9278 $RM conftest*
9279
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9283
9284 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9285 case $lt_prog_compiler_pic in
9286 "" | " "*) ;;
9287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9288 esac
9289 else
9290 lt_prog_compiler_pic=
9291 lt_prog_compiler_can_build_shared=no
9292 fi
9293
9294 fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306 #
9307 # Check to make sure the static flag actually works.
9308 #
9309 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9311 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9312 if ${lt_cv_prog_compiler_static_works+:} false; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 lt_cv_prog_compiler_static_works=no
9316 save_LDFLAGS="$LDFLAGS"
9317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9320 # The linker can only warn and ignore the option if not recognized
9321 # So say no if there are warnings
9322 if test -s conftest.err; then
9323 # Append any errors to the config.log.
9324 cat conftest.err 1>&5
9325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9327 if diff conftest.exp conftest.er2 >/dev/null; then
9328 lt_cv_prog_compiler_static_works=yes
9329 fi
9330 else
9331 lt_cv_prog_compiler_static_works=yes
9332 fi
9333 fi
9334 $RM -r conftest*
9335 LDFLAGS="$save_LDFLAGS"
9336
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9339 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9340
9341 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9342 :
9343 else
9344 lt_prog_compiler_static=
9345 fi
9346
9347
9348
9349
9350
9351
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9354 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9355 if ${lt_cv_prog_compiler_c_o+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 lt_cv_prog_compiler_c_o=no
9359 $RM -r conftest 2>/dev/null
9360 mkdir conftest
9361 cd conftest
9362 mkdir out
9363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9364
9365 lt_compiler_flag="-o out/conftest2.$ac_objext"
9366 # Insert the option either (1) after the last *FLAGS variable, or
9367 # (2) before a word containing "conftest.", or (3) at the end.
9368 # Note that $ac_compile itself does not contain backslashes and begins
9369 # with a dollar sign (not a hyphen), so the echo should work correctly.
9370 lt_compile=`echo "$ac_compile" | $SED \
9371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9373 -e 's:$: $lt_compiler_flag:'`
9374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9375 (eval "$lt_compile" 2>out/conftest.err)
9376 ac_status=$?
9377 cat out/conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9380 then
9381 # The compiler can only warn and ignore the option if not recognized
9382 # So say no if there are warnings
9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9386 lt_cv_prog_compiler_c_o=yes
9387 fi
9388 fi
9389 chmod u+w . 2>&5
9390 $RM conftest*
9391 # SGI C++ compiler will create directory out/ii_files/ for
9392 # template instantiation
9393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9394 $RM out/* && rmdir out
9395 cd ..
9396 $RM -r conftest
9397 $RM conftest*
9398
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9401 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9402
9403
9404
9405
9406
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9410 if ${lt_cv_prog_compiler_c_o+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 lt_cv_prog_compiler_c_o=no
9414 $RM -r conftest 2>/dev/null
9415 mkdir conftest
9416 cd conftest
9417 mkdir out
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
9420 lt_compiler_flag="-o out/conftest2.$ac_objext"
9421 # Insert the option either (1) after the last *FLAGS variable, or
9422 # (2) before a word containing "conftest.", or (3) at the end.
9423 # Note that $ac_compile itself does not contain backslashes and begins
9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
9425 lt_compile=`echo "$ac_compile" | $SED \
9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428 -e 's:$: $lt_compiler_flag:'`
9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9430 (eval "$lt_compile" 2>out/conftest.err)
9431 ac_status=$?
9432 cat out/conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9435 then
9436 # The compiler can only warn and ignore the option if not recognized
9437 # So say no if there are warnings
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler_c_o=yes
9442 fi
9443 fi
9444 chmod u+w . 2>&5
9445 $RM conftest*
9446 # SGI C++ compiler will create directory out/ii_files/ for
9447 # template instantiation
9448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9449 $RM out/* && rmdir out
9450 cd ..
9451 $RM -r conftest
9452 $RM conftest*
9453
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9457
9458
9459
9460
9461 hard_links="nottested"
9462 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9463 # do not overwrite the value of need_locks provided by the user
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9465 $as_echo_n "checking if we can lock with hard links... " >&6; }
9466 hard_links=yes
9467 $RM conftest*
9468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9469 touch conftest.a
9470 ln conftest.a conftest.b 2>&5 || hard_links=no
9471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9473 $as_echo "$hard_links" >&6; }
9474 if test "$hard_links" = no; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9476 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9477 need_locks=warn
9478 fi
9479 else
9480 need_locks=no
9481 fi
9482
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9490
9491 runpath_var=
9492 allow_undefined_flag=
9493 always_export_symbols=no
9494 archive_cmds=
9495 archive_expsym_cmds=
9496 compiler_needs_object=no
9497 enable_shared_with_static_runtimes=no
9498 export_dynamic_flag_spec=
9499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9500 hardcode_automatic=no
9501 hardcode_direct=no
9502 hardcode_direct_absolute=no
9503 hardcode_libdir_flag_spec=
9504 hardcode_libdir_flag_spec_ld=
9505 hardcode_libdir_separator=
9506 hardcode_minus_L=no
9507 hardcode_shlibpath_var=unsupported
9508 inherit_rpath=no
9509 link_all_deplibs=unknown
9510 module_cmds=
9511 module_expsym_cmds=
9512 old_archive_from_new_cmds=
9513 old_archive_from_expsyms_cmds=
9514 thread_safe_flag_spec=
9515 whole_archive_flag_spec=
9516 # include_expsyms should be a list of space-separated symbols to be *always*
9517 # included in the symbol list
9518 include_expsyms=
9519 # exclude_expsyms can be an extended regexp of symbols to exclude
9520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9522 # as well as any symbol that contains `d'.
9523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9525 # platforms (ab)use it in PIC code, but their linkers get confused if
9526 # the symbol is explicitly referenced. Since portable code cannot
9527 # rely on this symbol name, it's probably fine to never include it in
9528 # preloaded symbol tables.
9529 # Exclude shared library initialization/finalization symbols.
9530 extract_expsyms_cmds=
9531
9532 case $host_os in
9533 cygwin* | mingw* | pw32* | cegcc*)
9534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9535 # When not using gcc, we currently assume that we are using
9536 # Microsoft Visual C++.
9537 if test "$GCC" != yes; then
9538 with_gnu_ld=no
9539 fi
9540 ;;
9541 interix*)
9542 # we just hope/assume this is gcc and not c89 (= MSVC++)
9543 with_gnu_ld=yes
9544 ;;
9545 openbsd*)
9546 with_gnu_ld=no
9547 ;;
9548 linux* | k*bsd*-gnu | gnu*)
9549 link_all_deplibs=no
9550 ;;
9551 esac
9552
9553 ld_shlibs=yes
9554
9555 # On some targets, GNU ld is compatible enough with the native linker
9556 # that we're better off using the native interface for both.
9557 lt_use_gnu_ld_interface=no
9558 if test "$with_gnu_ld" = yes; then
9559 case $host_os in
9560 aix*)
9561 # The AIX port of GNU ld has always aspired to compatibility
9562 # with the native linker. However, as the warning in the GNU ld
9563 # block says, versions before 2.19.5* couldn't really create working
9564 # shared libraries, regardless of the interface used.
9565 case `$LD -v 2>&1` in
9566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9569 *)
9570 lt_use_gnu_ld_interface=yes
9571 ;;
9572 esac
9573 ;;
9574 *)
9575 lt_use_gnu_ld_interface=yes
9576 ;;
9577 esac
9578 fi
9579
9580 if test "$lt_use_gnu_ld_interface" = yes; then
9581 # If archive_cmds runs LD, not CC, wlarc should be empty
9582 wlarc='${wl}'
9583
9584 # Set some defaults for GNU ld with shared library support. These
9585 # are reset later if shared libraries are not supported. Putting them
9586 # here allows them to be overridden if necessary.
9587 runpath_var=LD_RUN_PATH
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 export_dynamic_flag_spec='${wl}--export-dynamic'
9590 # ancient GNU ld didn't support --whole-archive et. al.
9591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9593 else
9594 whole_archive_flag_spec=
9595 fi
9596 supports_anon_versioning=no
9597 case `$LD -v 2>&1` in
9598 *GNU\ gold*) supports_anon_versioning=yes ;;
9599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9602 *\ 2.11.*) ;; # other 2.11 versions
9603 *) supports_anon_versioning=yes ;;
9604 esac
9605
9606 # See if GNU ld supports shared libraries.
9607 case $host_os in
9608 aix[3-9]*)
9609 # On AIX/PPC, the GNU linker is very broken
9610 if test "$host_cpu" != ia64; then
9611 ld_shlibs=no
9612 cat <<_LT_EOF 1>&2
9613
9614 *** Warning: the GNU linker, at least up to release 2.19, is reported
9615 *** to be unable to reliably create shared libraries on AIX.
9616 *** Therefore, libtool is disabling shared libraries support. If you
9617 *** really care for shared libraries, you may want to install binutils
9618 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9619 *** You will then need to restart the configuration process.
9620
9621 _LT_EOF
9622 fi
9623 ;;
9624
9625 amigaos*)
9626 case $host_cpu in
9627 powerpc)
9628 # see comment about AmigaOS4 .so support
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds=''
9631 ;;
9632 m68k)
9633 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)'
9634 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_minus_L=yes
9636 ;;
9637 esac
9638 ;;
9639
9640 beos*)
9641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642 allow_undefined_flag=unsupported
9643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9644 # support --undefined. This deserves some investigation. FIXME
9645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650
9651 cygwin* | mingw* | pw32* | cegcc*)
9652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9653 # as there is no search path for DLLs.
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 export_dynamic_flag_spec='${wl}--export-all-symbols'
9656 allow_undefined_flag=unsupported
9657 always_export_symbols=no
9658 enable_shared_with_static_runtimes=yes
9659 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'
9660 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9661
9662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9664 # If the export-symbols file already is a .def file (1st line
9665 # is EXPORTS), use it as is; otherwise, prepend...
9666 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9667 cp $export_symbols $output_objdir/$soname.def;
9668 else
9669 echo EXPORTS > $output_objdir/$soname.def;
9670 cat $export_symbols >> $output_objdir/$soname.def;
9671 fi~
9672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9673 else
9674 ld_shlibs=no
9675 fi
9676 ;;
9677
9678 haiku*)
9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680 link_all_deplibs=yes
9681 ;;
9682
9683 interix[3-9]*)
9684 hardcode_direct=no
9685 hardcode_shlibpath_var=no
9686 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9687 export_dynamic_flag_spec='${wl}-E'
9688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9689 # Instead, shared libraries are loaded at an image base (0x10000000 by
9690 # default) and relocated if they conflict, which is a slow very memory
9691 # consuming and fragmenting process. To avoid this, we pick a random,
9692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9695 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'
9696 ;;
9697
9698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9699 tmp_diet=no
9700 if test "$host_os" = linux-dietlibc; then
9701 case $cc_basename in
9702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9703 esac
9704 fi
9705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9706 && test "$tmp_diet" = no
9707 then
9708 tmp_addflag=' $pic_flag'
9709 tmp_sharedflag='-shared'
9710 case $cc_basename,$host_cpu in
9711 pgcc*) # Portland Group C compiler
9712 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'
9713 tmp_addflag=' $pic_flag'
9714 ;;
9715 pgf77* | pgf90* | pgf95* | pgfortran*)
9716 # Portland Group f77 and f90 compilers
9717 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'
9718 tmp_addflag=' $pic_flag -Mnomain' ;;
9719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9720 tmp_addflag=' -i_dynamic' ;;
9721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9722 tmp_addflag=' -i_dynamic -nofor_main' ;;
9723 ifc* | ifort*) # Intel Fortran compiler
9724 tmp_addflag=' -nofor_main' ;;
9725 lf95*) # Lahey Fortran 8.1
9726 whole_archive_flag_spec=
9727 tmp_sharedflag='--shared' ;;
9728 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9729 tmp_sharedflag='-qmkshrobj'
9730 tmp_addflag= ;;
9731 nvcc*) # Cuda Compiler Driver 2.2
9732 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'
9733 compiler_needs_object=yes
9734 ;;
9735 esac
9736 case `$CC -V 2>&1 | sed 5q` in
9737 *Sun\ C*) # Sun C 5.9
9738 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'
9739 compiler_needs_object=yes
9740 tmp_sharedflag='-G' ;;
9741 *Sun\ F*) # Sun Fortran 8.3
9742 tmp_sharedflag='-G' ;;
9743 esac
9744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9745
9746 if test "x$supports_anon_versioning" = xyes; then
9747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749 echo "local: *; };" >> $output_objdir/$libname.ver~
9750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9751 fi
9752
9753 case $cc_basename in
9754 xlf* | bgf* | bgxlf* | mpixlf*)
9755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9757 hardcode_libdir_flag_spec=
9758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9759 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9760 if test "x$supports_anon_versioning" = xyes; then
9761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9763 echo "local: *; };" >> $output_objdir/$libname.ver~
9764 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9765 fi
9766 ;;
9767 esac
9768 else
9769 ld_shlibs=no
9770 fi
9771 ;;
9772
9773 netbsd* | netbsdelf*-gnu)
9774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9776 wlarc=
9777 else
9778 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9780 fi
9781 ;;
9782
9783 solaris*)
9784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9785 ld_shlibs=no
9786 cat <<_LT_EOF 1>&2
9787
9788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9789 *** create shared libraries on Solaris systems. Therefore, libtool
9790 *** is disabling shared libraries support. We urge you to upgrade GNU
9791 *** binutils to release 2.9.1 or newer. Another option is to modify
9792 *** your PATH or compiler configuration so that the native linker is
9793 *** used, and then restart.
9794
9795 _LT_EOF
9796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9799 else
9800 ld_shlibs=no
9801 fi
9802 ;;
9803
9804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9805 case `$LD -v 2>&1` in
9806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9807 ld_shlibs=no
9808 cat <<_LT_EOF 1>&2
9809
9810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9811 *** reliably create shared libraries on SCO systems. Therefore, libtool
9812 *** is disabling shared libraries support. We urge you to upgrade GNU
9813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9814 *** your PATH or compiler configuration so that the native linker is
9815 *** used, and then restart.
9816
9817 _LT_EOF
9818 ;;
9819 *)
9820 # For security reasons, it is highly recommended that you always
9821 # use absolute paths for naming shared libraries, and exclude the
9822 # DT_RUNPATH tag from executables and libraries. But doing so
9823 # requires that you compile everything twice, which is a pain.
9824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832 esac
9833 ;;
9834
9835 sunos4*)
9836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837 wlarc=
9838 hardcode_direct=yes
9839 hardcode_shlibpath_var=no
9840 ;;
9841
9842 *)
9843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9846 else
9847 ld_shlibs=no
9848 fi
9849 ;;
9850 esac
9851
9852 if test "$ld_shlibs" = no; then
9853 runpath_var=
9854 hardcode_libdir_flag_spec=
9855 export_dynamic_flag_spec=
9856 whole_archive_flag_spec=
9857 fi
9858 else
9859 # PORTME fill in a description of your system's linker (not GNU ld)
9860 case $host_os in
9861 aix3*)
9862 allow_undefined_flag=unsupported
9863 always_export_symbols=yes
9864 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'
9865 # Note: this linker hardcodes the directories in LIBPATH if there
9866 # are no directories specified by -L.
9867 hardcode_minus_L=yes
9868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9869 # Neither direct hardcoding nor static linking is supported with a
9870 # broken collect2.
9871 hardcode_direct=unsupported
9872 fi
9873 ;;
9874
9875 aix[4-9]*)
9876 if test "$host_cpu" = ia64; then
9877 # On IA64, the linker does run time linking by default, so we don't
9878 # have to do anything special.
9879 aix_use_runtimelinking=no
9880 exp_sym_flag='-Bexport'
9881 no_entry_flag=""
9882 else
9883 # If we're using GNU nm, then we don't want the "-C" option.
9884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9885 # Also, AIX nm treats weak defined symbols like other global
9886 # defined symbols, whereas GNU nm marks them as "W".
9887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9888 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'
9889 else
9890 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'
9891 fi
9892 aix_use_runtimelinking=no
9893
9894 # Test if we are trying to use run time linking or normal
9895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9896 # need to do runtime linking.
9897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9898 for ld_flag in $LDFLAGS; do
9899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9900 aix_use_runtimelinking=yes
9901 break
9902 fi
9903 done
9904 ;;
9905 esac
9906
9907 exp_sym_flag='-bexport'
9908 no_entry_flag='-bnoentry'
9909 fi
9910
9911 # When large executables or shared objects are built, AIX ld can
9912 # have problems creating the table of contents. If linking a library
9913 # or program results in "error TOC overflow" add -mminimal-toc to
9914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9916
9917 archive_cmds=''
9918 hardcode_direct=yes
9919 hardcode_direct_absolute=yes
9920 hardcode_libdir_separator=':'
9921 link_all_deplibs=yes
9922 file_list_spec='${wl}-f,'
9923
9924 if test "$GCC" = yes; then
9925 case $host_os in aix4.[012]|aix4.[012].*)
9926 # We only want to do this on AIX 4.2 and lower, the check
9927 # below for broken collect2 doesn't work under 4.3+
9928 collect2name=`${CC} -print-prog-name=collect2`
9929 if test -f "$collect2name" &&
9930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9931 then
9932 # We have reworked collect2
9933 :
9934 else
9935 # We have old collect2
9936 hardcode_direct=unsupported
9937 # It fails to find uninstalled libraries when the uninstalled
9938 # path is not listed in the libpath. Setting hardcode_minus_L
9939 # to unsupported forces relinking
9940 hardcode_minus_L=yes
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_libdir_separator=
9943 fi
9944 ;;
9945 esac
9946 shared_flag='-shared'
9947 if test "$aix_use_runtimelinking" = yes; then
9948 shared_flag="$shared_flag "'${wl}-G'
9949 fi
9950 link_all_deplibs=no
9951 else
9952 # not using gcc
9953 if test "$host_cpu" = ia64; then
9954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9955 # chokes on -Wl,-G. The following line is correct:
9956 shared_flag='-G'
9957 else
9958 if test "$aix_use_runtimelinking" = yes; then
9959 shared_flag='${wl}-G'
9960 else
9961 shared_flag='${wl}-bM:SRE'
9962 fi
9963 fi
9964 fi
9965
9966 export_dynamic_flag_spec='${wl}-bexpall'
9967 # It seems that -bexpall does not export symbols beginning with
9968 # underscore (_), so it is better to generate a list of symbols to export.
9969 always_export_symbols=yes
9970 if test "$aix_use_runtimelinking" = yes; then
9971 # Warning - without using the other runtime loading flags (-brtl),
9972 # -berok will link without error, but may produce a broken library.
9973 allow_undefined_flag='-berok'
9974 # Determine the default libpath from the value encoded in an
9975 # empty executable.
9976 if test "${lt_cv_aix_libpath+set}" = set; then
9977 aix_libpath=$lt_cv_aix_libpath
9978 else
9979 if ${lt_cv_aix_libpath_+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984
9985 int
9986 main ()
9987 {
9988
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994
9995 lt_aix_libpath_sed='
9996 /Import File Strings/,/^$/ {
9997 /^0/ {
9998 s/^0 *\([^ ]*\) *$/\1/
9999 p
10000 }
10001 }'
10002 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10003 # Check for a 64-bit object if we didn't find anything.
10004 if test -z "$lt_cv_aix_libpath_"; then
10005 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10006 fi
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010 if test -z "$lt_cv_aix_libpath_"; then
10011 lt_cv_aix_libpath_="/usr/lib:/lib"
10012 fi
10013
10014 fi
10015
10016 aix_libpath=$lt_cv_aix_libpath_
10017 fi
10018
10019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10020 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"
10021 else
10022 if test "$host_cpu" = ia64; then
10023 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10024 allow_undefined_flag="-z nodefs"
10025 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"
10026 else
10027 # Determine the default libpath from the value encoded in an
10028 # empty executable.
10029 if test "${lt_cv_aix_libpath+set}" = set; then
10030 aix_libpath=$lt_cv_aix_libpath
10031 else
10032 if ${lt_cv_aix_libpath_+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 int
10039 main ()
10040 {
10041
10042 ;
10043 return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047
10048 lt_aix_libpath_sed='
10049 /Import File Strings/,/^$/ {
10050 /^0/ {
10051 s/^0 *\([^ ]*\) *$/\1/
10052 p
10053 }
10054 }'
10055 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10056 # Check for a 64-bit object if we didn't find anything.
10057 if test -z "$lt_cv_aix_libpath_"; then
10058 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10059 fi
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 if test -z "$lt_cv_aix_libpath_"; then
10064 lt_cv_aix_libpath_="/usr/lib:/lib"
10065 fi
10066
10067 fi
10068
10069 aix_libpath=$lt_cv_aix_libpath_
10070 fi
10071
10072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10073 # Warning - without using the other run time loading flags,
10074 # -berok will link without error, but may produce a broken library.
10075 no_undefined_flag=' ${wl}-bernotok'
10076 allow_undefined_flag=' ${wl}-berok'
10077 if test "$with_gnu_ld" = yes; then
10078 # We only use this code for GNU lds that support --whole-archive.
10079 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10080 else
10081 # Exported symbols can be pulled into shared objects from archives
10082 whole_archive_flag_spec='$convenience'
10083 fi
10084 archive_cmds_need_lc=yes
10085 # This is similar to how AIX traditionally builds its shared libraries.
10086 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'
10087 fi
10088 fi
10089 ;;
10090
10091 amigaos*)
10092 case $host_cpu in
10093 powerpc)
10094 # see comment about AmigaOS4 .so support
10095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10096 archive_expsym_cmds=''
10097 ;;
10098 m68k)
10099 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)'
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_minus_L=yes
10102 ;;
10103 esac
10104 ;;
10105
10106 bsdi[45]*)
10107 export_dynamic_flag_spec=-rdynamic
10108 ;;
10109
10110 cygwin* | mingw* | pw32* | cegcc*)
10111 # When not using gcc, we currently assume that we are using
10112 # Microsoft Visual C++.
10113 # hardcode_libdir_flag_spec is actually meaningless, as there is
10114 # no search path for DLLs.
10115 case $cc_basename in
10116 cl*)
10117 # Native MSVC
10118 hardcode_libdir_flag_spec=' '
10119 allow_undefined_flag=unsupported
10120 always_export_symbols=yes
10121 file_list_spec='@'
10122 # Tell ltmain to make .lib files, not .a files.
10123 libext=lib
10124 # Tell ltmain to make .dll files, not .so files.
10125 shrext_cmds=".dll"
10126 # FIXME: Setting linknames here is a bad hack.
10127 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10129 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10130 else
10131 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10132 fi~
10133 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10134 linknames='
10135 # The linker will not automatically build a static lib if we build a DLL.
10136 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10137 enable_shared_with_static_runtimes=yes
10138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10139 # Don't use ranlib
10140 old_postinstall_cmds='chmod 644 $oldlib'
10141 postlink_cmds='lt_outputfile="@OUTPUT@"~
10142 lt_tool_outputfile="@TOOL_OUTPUT@"~
10143 case $lt_outputfile in
10144 *.exe|*.EXE) ;;
10145 *)
10146 lt_outputfile="$lt_outputfile.exe"
10147 lt_tool_outputfile="$lt_tool_outputfile.exe"
10148 ;;
10149 esac~
10150 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10151 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10152 $RM "$lt_outputfile.manifest";
10153 fi'
10154 ;;
10155 *)
10156 # Assume MSVC wrapper
10157 hardcode_libdir_flag_spec=' '
10158 allow_undefined_flag=unsupported
10159 # Tell ltmain to make .lib files, not .a files.
10160 libext=lib
10161 # Tell ltmain to make .dll files, not .so files.
10162 shrext_cmds=".dll"
10163 # FIXME: Setting linknames here is a bad hack.
10164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10165 # The linker will automatically build a .lib file if we build a DLL.
10166 old_archive_from_new_cmds='true'
10167 # FIXME: Should let the user specify the lib program.
10168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10169 enable_shared_with_static_runtimes=yes
10170 ;;
10171 esac
10172 ;;
10173
10174 darwin* | rhapsody*)
10175
10176
10177 archive_cmds_need_lc=no
10178 hardcode_direct=no
10179 hardcode_automatic=yes
10180 hardcode_shlibpath_var=unsupported
10181 if test "$lt_cv_ld_force_load" = "yes"; then
10182 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\"`'
10183 else
10184 whole_archive_flag_spec=''
10185 fi
10186 link_all_deplibs=yes
10187 allow_undefined_flag="$_lt_dar_allow_undefined"
10188 case $cc_basename in
10189 ifort*) _lt_dar_can_shared=yes ;;
10190 *) _lt_dar_can_shared=$GCC ;;
10191 esac
10192 if test "$_lt_dar_can_shared" = "yes"; then
10193 output_verbose_link_cmd=func_echo_all
10194 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10195 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10196 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}"
10197 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}"
10198
10199 else
10200 ld_shlibs=no
10201 fi
10202
10203 ;;
10204
10205 dgux*)
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 hardcode_shlibpath_var=no
10209 ;;
10210
10211 freebsd1*)
10212 ld_shlibs=no
10213 ;;
10214
10215 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10216 # support. Future versions do this automatically, but an explicit c++rt0.o
10217 # does not break anything, and helps significantly (at the cost of a little
10218 # extra space).
10219 freebsd2.2*)
10220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10221 hardcode_libdir_flag_spec='-R$libdir'
10222 hardcode_direct=yes
10223 hardcode_shlibpath_var=no
10224 ;;
10225
10226 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10227 freebsd2*)
10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_direct=yes
10230 hardcode_minus_L=yes
10231 hardcode_shlibpath_var=no
10232 ;;
10233
10234 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10235 freebsd* | dragonfly*)
10236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10237 hardcode_libdir_flag_spec='-R$libdir'
10238 hardcode_direct=yes
10239 hardcode_shlibpath_var=no
10240 ;;
10241
10242 hpux9*)
10243 if test "$GCC" = yes; then
10244 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'
10245 else
10246 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'
10247 fi
10248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10249 hardcode_libdir_separator=:
10250 hardcode_direct=yes
10251
10252 # hardcode_minus_L: Not really in the search PATH,
10253 # but as the default location of the library.
10254 hardcode_minus_L=yes
10255 export_dynamic_flag_spec='${wl}-E'
10256 ;;
10257
10258 hpux10*)
10259 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10260 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10261 else
10262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10263 fi
10264 if test "$with_gnu_ld" = no; then
10265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10266 hardcode_libdir_flag_spec_ld='+b $libdir'
10267 hardcode_libdir_separator=:
10268 hardcode_direct=yes
10269 hardcode_direct_absolute=yes
10270 export_dynamic_flag_spec='${wl}-E'
10271 # hardcode_minus_L: Not really in the search PATH,
10272 # but as the default location of the library.
10273 hardcode_minus_L=yes
10274 fi
10275 ;;
10276
10277 hpux11*)
10278 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10279 case $host_cpu in
10280 hppa*64*)
10281 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 ;;
10283 ia64*)
10284 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285 ;;
10286 *)
10287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10288 ;;
10289 esac
10290 else
10291 case $host_cpu in
10292 hppa*64*)
10293 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 ;;
10295 ia64*)
10296 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10297 ;;
10298 *)
10299
10300 # Older versions of the 11.00 compiler do not understand -b yet
10301 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10303 $as_echo_n "checking if $CC understands -b... " >&6; }
10304 if ${lt_cv_prog_compiler__b+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 lt_cv_prog_compiler__b=no
10308 save_LDFLAGS="$LDFLAGS"
10309 LDFLAGS="$LDFLAGS -b"
10310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10312 # The linker can only warn and ignore the option if not recognized
10313 # So say no if there are warnings
10314 if test -s conftest.err; then
10315 # Append any errors to the config.log.
10316 cat conftest.err 1>&5
10317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319 if diff conftest.exp conftest.er2 >/dev/null; then
10320 lt_cv_prog_compiler__b=yes
10321 fi
10322 else
10323 lt_cv_prog_compiler__b=yes
10324 fi
10325 fi
10326 $RM -r conftest*
10327 LDFLAGS="$save_LDFLAGS"
10328
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10331 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10332
10333 if test x"$lt_cv_prog_compiler__b" = xyes; then
10334 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335 else
10336 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10337 fi
10338
10339 ;;
10340 esac
10341 fi
10342 if test "$with_gnu_ld" = no; then
10343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10344 hardcode_libdir_separator=:
10345
10346 case $host_cpu in
10347 hppa*64*|ia64*)
10348 hardcode_direct=no
10349 hardcode_shlibpath_var=no
10350 ;;
10351 *)
10352 hardcode_direct=yes
10353 hardcode_direct_absolute=yes
10354 export_dynamic_flag_spec='${wl}-E'
10355
10356 # hardcode_minus_L: Not really in the search PATH,
10357 # but as the default location of the library.
10358 hardcode_minus_L=yes
10359 ;;
10360 esac
10361 fi
10362 ;;
10363
10364 irix5* | irix6* | nonstopux*)
10365 if test "$GCC" = yes; then
10366 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'
10367 # Try to use the -exported_symbol ld option, if it does not
10368 # work, assume that -exports_file does not work either and
10369 # implicitly export all symbols.
10370 # This should be the same for all languages, so no per-tag cache variable.
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10372 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10373 if ${lt_cv_irix_exported_symbol+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 save_LDFLAGS="$LDFLAGS"
10377 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 int foo (void) { return 0; }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383 lt_cv_irix_exported_symbol=yes
10384 else
10385 lt_cv_irix_exported_symbol=no
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 LDFLAGS="$save_LDFLAGS"
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10392 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10393 if test "$lt_cv_irix_exported_symbol" = yes; then
10394 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'
10395 fi
10396 else
10397 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'
10398 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'
10399 fi
10400 archive_cmds_need_lc='no'
10401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402 hardcode_libdir_separator=:
10403 inherit_rpath=yes
10404 link_all_deplibs=yes
10405 ;;
10406
10407 netbsd* | netbsdelf*-gnu)
10408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10410 else
10411 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10412 fi
10413 hardcode_libdir_flag_spec='-R$libdir'
10414 hardcode_direct=yes
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 newsos6)
10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420 hardcode_direct=yes
10421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator=:
10423 hardcode_shlibpath_var=no
10424 ;;
10425
10426 *nto* | *qnx*)
10427 ;;
10428
10429 openbsd*)
10430 if test -f /usr/libexec/ld.so; then
10431 hardcode_direct=yes
10432 hardcode_shlibpath_var=no
10433 hardcode_direct_absolute=yes
10434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10436 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10438 export_dynamic_flag_spec='${wl}-E'
10439 else
10440 case $host_os in
10441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10443 hardcode_libdir_flag_spec='-R$libdir'
10444 ;;
10445 *)
10446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10448 ;;
10449 esac
10450 fi
10451 else
10452 ld_shlibs=no
10453 fi
10454 ;;
10455
10456 os2*)
10457 hardcode_libdir_flag_spec='-L$libdir'
10458 hardcode_minus_L=yes
10459 allow_undefined_flag=unsupported
10460 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'
10461 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10462 ;;
10463
10464 osf3*)
10465 if test "$GCC" = yes; then
10466 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10467 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'
10468 else
10469 allow_undefined_flag=' -expect_unresolved \*'
10470 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'
10471 fi
10472 archive_cmds_need_lc='no'
10473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10474 hardcode_libdir_separator=:
10475 ;;
10476
10477 osf4* | osf5*) # as osf3* with the addition of -msym flag
10478 if test "$GCC" = yes; then
10479 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10480 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'
10481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10482 else
10483 allow_undefined_flag=' -expect_unresolved \*'
10484 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'
10485 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~
10486 $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'
10487
10488 # Both c and cxx compiler support -rpath directly
10489 hardcode_libdir_flag_spec='-rpath $libdir'
10490 fi
10491 archive_cmds_need_lc='no'
10492 hardcode_libdir_separator=:
10493 ;;
10494
10495 solaris*)
10496 no_undefined_flag=' -z defs'
10497 if test "$GCC" = yes; then
10498 wlarc='${wl}'
10499 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501 $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'
10502 else
10503 case `$CC -V 2>&1` in
10504 *"Compilers 5.0"*)
10505 wlarc=''
10506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10509 ;;
10510 *)
10511 wlarc='${wl}'
10512 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10514 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10515 ;;
10516 esac
10517 fi
10518 hardcode_libdir_flag_spec='-R$libdir'
10519 hardcode_shlibpath_var=no
10520 case $host_os in
10521 solaris2.[0-5] | solaris2.[0-5].*) ;;
10522 *)
10523 # The compiler driver will combine and reorder linker options,
10524 # but understands `-z linker_flag'. GCC discards it without `$wl',
10525 # but is careful enough not to reorder.
10526 # Supported since Solaris 2.6 (maybe 2.5.1?)
10527 if test "$GCC" = yes; then
10528 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10529 else
10530 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10531 fi
10532 ;;
10533 esac
10534 link_all_deplibs=yes
10535 ;;
10536
10537 sunos4*)
10538 if test "x$host_vendor" = xsequent; then
10539 # Use $CC to link under sequent, because it throws in some extra .o
10540 # files that make .init and .fini sections work.
10541 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10542 else
10543 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10544 fi
10545 hardcode_libdir_flag_spec='-L$libdir'
10546 hardcode_direct=yes
10547 hardcode_minus_L=yes
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 sysv4)
10552 case $host_vendor in
10553 sni)
10554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_direct=yes # is this really true???
10556 ;;
10557 siemens)
10558 ## LD is ld it makes a PLAMLIB
10559 ## CC just makes a GrossModule.
10560 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10561 reload_cmds='$CC -r -o $output$reload_objs'
10562 hardcode_direct=no
10563 ;;
10564 motorola)
10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10567 ;;
10568 esac
10569 runpath_var='LD_RUN_PATH'
10570 hardcode_shlibpath_var=no
10571 ;;
10572
10573 sysv4.3*)
10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_shlibpath_var=no
10576 export_dynamic_flag_spec='-Bexport'
10577 ;;
10578
10579 sysv4*MP*)
10580 if test -d /usr/nec; then
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_shlibpath_var=no
10583 runpath_var=LD_RUN_PATH
10584 hardcode_runpath_var=yes
10585 ld_shlibs=yes
10586 fi
10587 ;;
10588
10589 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10590 no_undefined_flag='${wl}-z,text'
10591 archive_cmds_need_lc=no
10592 hardcode_shlibpath_var=no
10593 runpath_var='LD_RUN_PATH'
10594
10595 if test "$GCC" = yes; then
10596 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10598 else
10599 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 fi
10602 ;;
10603
10604 sysv5* | sco3.2v5* | sco5v6*)
10605 # Note: We can NOT use -z defs as we might desire, because we do not
10606 # link with -lc, and that would cause any symbols used from libc to
10607 # always be unresolved, which means just about no library would
10608 # ever link correctly. If we're not using GNU ld we use -z text
10609 # though, which does catch some bad symbols but isn't as heavy-handed
10610 # as -z defs.
10611 no_undefined_flag='${wl}-z,text'
10612 allow_undefined_flag='${wl}-z,nodefs'
10613 archive_cmds_need_lc=no
10614 hardcode_shlibpath_var=no
10615 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10616 hardcode_libdir_separator=':'
10617 link_all_deplibs=yes
10618 export_dynamic_flag_spec='${wl}-Bexport'
10619 runpath_var='LD_RUN_PATH'
10620
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 else
10625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627 fi
10628 ;;
10629
10630 uts4*)
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_libdir_flag_spec='-L$libdir'
10633 hardcode_shlibpath_var=no
10634 ;;
10635
10636 *)
10637 ld_shlibs=no
10638 ;;
10639 esac
10640
10641 if test x$host_vendor = xsni; then
10642 case $host in
10643 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10644 export_dynamic_flag_spec='${wl}-Blargedynsym'
10645 ;;
10646 esac
10647 fi
10648 fi
10649
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10651 $as_echo "$ld_shlibs" >&6; }
10652 test "$ld_shlibs" = no && can_build_shared=no
10653
10654 with_gnu_ld=$with_gnu_ld
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 #
10671 # Do we need to explicitly link libc?
10672 #
10673 case "x$archive_cmds_need_lc" in
10674 x|xyes)
10675 # Assume -lc should be added
10676 archive_cmds_need_lc=yes
10677
10678 if test "$enable_shared" = yes && test "$GCC" = yes; then
10679 case $archive_cmds in
10680 *'~'*)
10681 # FIXME: we may have to deal with multi-command sequences.
10682 ;;
10683 '$CC '*)
10684 # Test whether the compiler implicitly links with -lc since on some
10685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10686 # to ld, don't add -lc before -lgcc.
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10689 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 $RM conftest*
10693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10694
10695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10696 (eval $ac_compile) 2>&5
10697 ac_status=$?
10698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699 test $ac_status = 0; } 2>conftest.err; then
10700 soname=conftest
10701 lib=conftest
10702 libobjs=conftest.$ac_objext
10703 deplibs=
10704 wl=$lt_prog_compiler_wl
10705 pic_flag=$lt_prog_compiler_pic
10706 compiler_flags=-v
10707 linker_flags=-v
10708 verstring=
10709 output_objdir=.
10710 libname=conftest
10711 lt_save_allow_undefined_flag=$allow_undefined_flag
10712 allow_undefined_flag=
10713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10714 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10715 ac_status=$?
10716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717 test $ac_status = 0; }
10718 then
10719 lt_cv_archive_cmds_need_lc=no
10720 else
10721 lt_cv_archive_cmds_need_lc=yes
10722 fi
10723 allow_undefined_flag=$lt_save_allow_undefined_flag
10724 else
10725 cat conftest.err 1>&5
10726 fi
10727 $RM conftest*
10728
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10731 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10732 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10733 ;;
10734 esac
10735 fi
10736 ;;
10737 esac
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10897
10898 if test "$GCC" = yes; then
10899 case $host_os in
10900 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10901 *) lt_awk_arg="/^libraries:/" ;;
10902 esac
10903 case $host_os in
10904 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10905 *) lt_sed_strip_eq="s,=/,/,g" ;;
10906 esac
10907 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10908 case $lt_search_path_spec in
10909 *\;*)
10910 # if the path contains ";" then we assume it to be the separator
10911 # otherwise default to the standard path separator (i.e. ":") - it is
10912 # assumed that no part of a normal pathname contains ";" but that should
10913 # okay in the real world where ";" in dirpaths is itself problematic.
10914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10915 ;;
10916 *)
10917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10918 ;;
10919 esac
10920 # Ok, now we have the path, separated by spaces, we can step through it
10921 # and add multilib dir if necessary.
10922 lt_tmp_lt_search_path_spec=
10923 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10924 for lt_sys_path in $lt_search_path_spec; do
10925 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10926 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10927 else
10928 test -d "$lt_sys_path" && \
10929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10930 fi
10931 done
10932 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10933 BEGIN {RS=" "; FS="/|\n";} {
10934 lt_foo="";
10935 lt_count=0;
10936 for (lt_i = NF; lt_i > 0; lt_i--) {
10937 if ($lt_i != "" && $lt_i != ".") {
10938 if ($lt_i == "..") {
10939 lt_count++;
10940 } else {
10941 if (lt_count == 0) {
10942 lt_foo="/" $lt_i lt_foo;
10943 } else {
10944 lt_count--;
10945 }
10946 }
10947 }
10948 }
10949 if (lt_foo != "") { lt_freq[lt_foo]++; }
10950 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10951 }'`
10952 # AWK program above erroneously prepends '/' to C:/dos/paths
10953 # for these hosts.
10954 case $host_os in
10955 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10956 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10957 esac
10958 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10959 else
10960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10961 fi
10962 library_names_spec=
10963 libname_spec='lib$name'
10964 soname_spec=
10965 shrext_cmds=".so"
10966 postinstall_cmds=
10967 postuninstall_cmds=
10968 finish_cmds=
10969 finish_eval=
10970 shlibpath_var=
10971 shlibpath_overrides_runpath=unknown
10972 version_type=none
10973 dynamic_linker="$host_os ld.so"
10974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10975 need_lib_prefix=unknown
10976 hardcode_into_libs=no
10977
10978 # when you set need_version to no, make sure it does not cause -set_version
10979 # flags to be left without arguments
10980 need_version=unknown
10981
10982 case $host_os in
10983 aix3*)
10984 version_type=linux
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10986 shlibpath_var=LIBPATH
10987
10988 # AIX 3 has no versioning support, so we append a major version to the name.
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 ;;
10991
10992 aix[4-9]*)
10993 version_type=linux
10994 need_lib_prefix=no
10995 need_version=no
10996 hardcode_into_libs=yes
10997 if test "$host_cpu" = ia64; then
10998 # AIX 5 supports IA64
10999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 else
11002 # With GCC up to 2.95.x, collect2 would create an import file
11003 # for dependence libraries. The import file would start with
11004 # the line `#! .'. This would cause the generated library to
11005 # depend on `.', always an invalid library. This was fixed in
11006 # development snapshots of GCC prior to 3.0.
11007 case $host_os in
11008 aix4 | aix4.[01] | aix4.[01].*)
11009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11010 echo ' yes '
11011 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11012 :
11013 else
11014 can_build_shared=no
11015 fi
11016 ;;
11017 esac
11018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11019 # soname into executable. Probably we can add versioning support to
11020 # collect2, so additional links can be useful in future.
11021 if test "$aix_use_runtimelinking" = yes; then
11022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11023 # instead of lib<name>.a to let people know that these are not
11024 # typical AIX shared libraries.
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 else
11027 # We preserve .a as extension for shared libraries through AIX4.2
11028 # and later when we are not doing run time linking.
11029 library_names_spec='${libname}${release}.a $libname.a'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 fi
11032 shlibpath_var=LIBPATH
11033 fi
11034 ;;
11035
11036 amigaos*)
11037 case $host_cpu in
11038 powerpc)
11039 # Since July 2007 AmigaOS4 officially supports .so libraries.
11040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 ;;
11043 m68k)
11044 library_names_spec='$libname.ixlibrary $libname.a'
11045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11046 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'
11047 ;;
11048 esac
11049 ;;
11050
11051 beos*)
11052 library_names_spec='${libname}${shared_ext}'
11053 dynamic_linker="$host_os ld.so"
11054 shlibpath_var=LIBRARY_PATH
11055 ;;
11056
11057 bsdi[45]*)
11058 version_type=linux
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11066 # the default ld.so.conf also contains /usr/contrib/lib and
11067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11068 # libtool to hard-code these into programs
11069 ;;
11070
11071 cygwin* | mingw* | pw32* | cegcc*)
11072 version_type=windows
11073 shrext_cmds=".dll"
11074 need_version=no
11075 need_lib_prefix=no
11076
11077 case $GCC,$cc_basename in
11078 yes,*)
11079 # gcc
11080 library_names_spec='$libname.dll.a'
11081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11082 postinstall_cmds='base_file=`basename \${file}`~
11083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11084 dldir=$destdir/`dirname \$dlpath`~
11085 test -d \$dldir || mkdir -p \$dldir~
11086 $install_prog $dir/$dlname \$dldir/$dlname~
11087 chmod a+x \$dldir/$dlname~
11088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11090 fi'
11091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11092 dlpath=$dir/\$dldll~
11093 $RM \$dlpath'
11094 shlibpath_overrides_runpath=yes
11095
11096 case $host_os in
11097 cygwin*)
11098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11100
11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11102 ;;
11103 mingw* | cegcc*)
11104 # MinGW DLLs use traditional 'lib' prefix
11105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11106 ;;
11107 pw32*)
11108 # pw32 DLLs use 'pw' prefix rather than 'lib'
11109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 ;;
11111 esac
11112 dynamic_linker='Win32 ld.exe'
11113 ;;
11114
11115 *,cl*)
11116 # Native MSVC
11117 libname_spec='$name'
11118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11119 library_names_spec='${libname}.dll.lib'
11120
11121 case $build_os in
11122 mingw*)
11123 sys_lib_search_path_spec=
11124 lt_save_ifs=$IFS
11125 IFS=';'
11126 for lt_path in $LIB
11127 do
11128 IFS=$lt_save_ifs
11129 # Let DOS variable expansion print the short 8.3 style file name.
11130 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11131 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11132 done
11133 IFS=$lt_save_ifs
11134 # Convert to MSYS style.
11135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11136 ;;
11137 cygwin*)
11138 # Convert to unix form, then to dos form, then back to unix form
11139 # but this time dos style (no spaces!) so that the unix form looks
11140 # like /cygdrive/c/PROGRA~1:/cygdr...
11141 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11142 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11143 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11144 ;;
11145 *)
11146 sys_lib_search_path_spec="$LIB"
11147 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11148 # It is most probably a Windows format PATH.
11149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11150 else
11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11152 fi
11153 # FIXME: find the short name or the path components, as spaces are
11154 # common. (e.g. "Program Files" -> "PROGRA~1")
11155 ;;
11156 esac
11157
11158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11159 postinstall_cmds='base_file=`basename \${file}`~
11160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11161 dldir=$destdir/`dirname \$dlpath`~
11162 test -d \$dldir || mkdir -p \$dldir~
11163 $install_prog $dir/$dlname \$dldir/$dlname'
11164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11165 dlpath=$dir/\$dldll~
11166 $RM \$dlpath'
11167 shlibpath_overrides_runpath=yes
11168 dynamic_linker='Win32 link.exe'
11169 ;;
11170
11171 *)
11172 # Assume MSVC wrapper
11173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11174 dynamic_linker='Win32 ld.exe'
11175 ;;
11176 esac
11177 # FIXME: first we should search . and the directory the executable is in
11178 shlibpath_var=PATH
11179 ;;
11180
11181 darwin* | rhapsody*)
11182 dynamic_linker="$host_os dyld"
11183 version_type=darwin
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11187 soname_spec='${libname}${release}${major}$shared_ext'
11188 shlibpath_overrides_runpath=yes
11189 shlibpath_var=DYLD_LIBRARY_PATH
11190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11191
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11194 ;;
11195
11196 dgux*)
11197 version_type=linux
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 ;;
11204
11205 freebsd1*)
11206 dynamic_linker=no
11207 ;;
11208
11209 freebsd* | dragonfly*)
11210 # DragonFly does not have aout. When/if they implement a new
11211 # versioning mechanism, adjust this.
11212 if test -x /usr/bin/objformat; then
11213 objformat=`/usr/bin/objformat`
11214 else
11215 case $host_os in
11216 freebsd[123]*) objformat=aout ;;
11217 *) objformat=elf ;;
11218 esac
11219 fi
11220 version_type=freebsd-$objformat
11221 case $version_type in
11222 freebsd-elf*)
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11224 need_version=no
11225 need_lib_prefix=no
11226 ;;
11227 freebsd-*)
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11229 need_version=yes
11230 ;;
11231 esac
11232 shlibpath_var=LD_LIBRARY_PATH
11233 case $host_os in
11234 freebsd2*)
11235 shlibpath_overrides_runpath=yes
11236 ;;
11237 freebsd3.[01]* | freebsdelf3.[01]*)
11238 shlibpath_overrides_runpath=yes
11239 hardcode_into_libs=yes
11240 ;;
11241 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11242 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11243 shlibpath_overrides_runpath=no
11244 hardcode_into_libs=yes
11245 ;;
11246 *) # from 4.6 on, and DragonFly
11247 shlibpath_overrides_runpath=yes
11248 hardcode_into_libs=yes
11249 ;;
11250 esac
11251 ;;
11252
11253 gnu*)
11254 version_type=linux
11255 need_lib_prefix=no
11256 need_version=no
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=no
11261 hardcode_into_libs=yes
11262 ;;
11263
11264 haiku*)
11265 version_type=linux
11266 need_lib_prefix=no
11267 need_version=no
11268 dynamic_linker="$host_os runtime_loader"
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LIBRARY_PATH
11272 shlibpath_overrides_runpath=yes
11273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11274 hardcode_into_libs=yes
11275 ;;
11276
11277 hpux9* | hpux10* | hpux11*)
11278 # Give a soname corresponding to the major version so that dld.sl refuses to
11279 # link against other versions.
11280 version_type=sunos
11281 need_lib_prefix=no
11282 need_version=no
11283 case $host_cpu in
11284 ia64*)
11285 shrext_cmds='.so'
11286 hardcode_into_libs=yes
11287 dynamic_linker="$host_os dld.so"
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
11293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11294 else
11295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11296 fi
11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11298 ;;
11299 hppa*64*)
11300 shrext_cmds='.sl'
11301 hardcode_into_libs=yes
11302 dynamic_linker="$host_os dld.sl"
11303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11309 ;;
11310 *)
11311 shrext_cmds='.sl'
11312 dynamic_linker="$host_os dld.sl"
11313 shlibpath_var=SHLIB_PATH
11314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 ;;
11318 esac
11319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11320 postinstall_cmds='chmod 555 $lib'
11321 # or fails outright, so override atomically:
11322 install_override_mode=555
11323 ;;
11324
11325 interix[3-9]*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=no
11334 hardcode_into_libs=yes
11335 ;;
11336
11337 irix5* | irix6* | nonstopux*)
11338 case $host_os in
11339 nonstopux*) version_type=nonstopux ;;
11340 *)
11341 if test "$lt_cv_prog_gnu_ld" = yes; then
11342 version_type=linux
11343 else
11344 version_type=irix
11345 fi ;;
11346 esac
11347 need_lib_prefix=no
11348 need_version=no
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 case $host_os in
11352 irix5* | nonstopux*)
11353 libsuff= shlibsuff=
11354 ;;
11355 *)
11356 case $LD in # libtool.m4 will add one of these switches to LD
11357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11358 libsuff= shlibsuff= libmagic=32-bit;;
11359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11360 libsuff=32 shlibsuff=N32 libmagic=N32;;
11361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11363 *) libsuff= shlibsuff= libmagic=never-match;;
11364 esac
11365 ;;
11366 esac
11367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11368 shlibpath_overrides_runpath=no
11369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11371 hardcode_into_libs=yes
11372 ;;
11373
11374 # No shared lib support for Linux oldld, aout, or coff.
11375 linux*oldld* | linux*aout* | linux*coff*)
11376 dynamic_linker=no
11377 ;;
11378
11379 # This must be Linux ELF.
11380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 shlibpath_overrides_runpath=no
11389
11390 # Some binutils ld are patched to set DT_RUNPATH
11391 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 lt_cv_shlibpath_overrides_runpath=no
11395 save_LDFLAGS=$LDFLAGS
11396 save_libdir=$libdir
11397 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11398 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 int
11403 main ()
11404 {
11405
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11412 lt_cv_shlibpath_overrides_runpath=yes
11413 fi
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LDFLAGS=$save_LDFLAGS
11418 libdir=$save_libdir
11419
11420 fi
11421
11422 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11423
11424 # This implies no fast_install, which is unacceptable.
11425 # Some rework will be needed to allow for fast_install
11426 # before this can be enabled.
11427 hardcode_into_libs=yes
11428
11429 # Append ld.so.conf contents to the search path
11430 if test -f /etc/ld.so.conf; then
11431 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' ' '`
11432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11433 fi
11434
11435 # We used to test for /lib/ld.so.1 and disable shared libraries on
11436 # powerpc, because MkLinux only supported shared libraries with the
11437 # GNU dynamic linker. Since this was broken with cross compilers,
11438 # most powerpc-linux boxes support dynamic linking these days and
11439 # people can always --disable-shared, the test was removed, and we
11440 # assume the GNU/Linux dynamic linker is in use.
11441 dynamic_linker='GNU/Linux ld.so'
11442 ;;
11443
11444 netbsdelf*-gnu)
11445 version_type=linux
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=no
11452 hardcode_into_libs=yes
11453 dynamic_linker='NetBSD ld.elf_so'
11454 ;;
11455
11456 netbsd*)
11457 version_type=sunos
11458 need_lib_prefix=no
11459 need_version=no
11460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11463 dynamic_linker='NetBSD (a.out) ld.so'
11464 else
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 dynamic_linker='NetBSD ld.elf_so'
11468 fi
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 hardcode_into_libs=yes
11472 ;;
11473
11474 newsos6)
11475 version_type=linux
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=yes
11479 ;;
11480
11481 *nto* | *qnx*)
11482 version_type=qnx
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=no
11489 hardcode_into_libs=yes
11490 dynamic_linker='ldqnx.so'
11491 ;;
11492
11493 openbsd*)
11494 version_type=sunos
11495 sys_lib_dlsearch_path_spec="/usr/lib"
11496 need_lib_prefix=no
11497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11498 case $host_os in
11499 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11500 *) need_version=no ;;
11501 esac
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11506 case $host_os in
11507 openbsd2.[89] | openbsd2.[89].*)
11508 shlibpath_overrides_runpath=no
11509 ;;
11510 *)
11511 shlibpath_overrides_runpath=yes
11512 ;;
11513 esac
11514 else
11515 shlibpath_overrides_runpath=yes
11516 fi
11517 ;;
11518
11519 os2*)
11520 libname_spec='$name'
11521 shrext_cmds=".dll"
11522 need_lib_prefix=no
11523 library_names_spec='$libname${shared_ext} $libname.a'
11524 dynamic_linker='OS/2 ld.exe'
11525 shlibpath_var=LIBPATH
11526 ;;
11527
11528 osf3* | osf4* | osf5*)
11529 version_type=osf
11530 need_lib_prefix=no
11531 need_version=no
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11537 ;;
11538
11539 rdos*)
11540 dynamic_linker=no
11541 ;;
11542
11543 solaris*)
11544 version_type=linux
11545 need_lib_prefix=no
11546 need_version=no
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11552 # ldd complains unless libraries are executable
11553 postinstall_cmds='chmod +x $lib'
11554 ;;
11555
11556 sunos4*)
11557 version_type=sunos
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 if test "$with_gnu_ld" = yes; then
11563 need_lib_prefix=no
11564 fi
11565 need_version=yes
11566 ;;
11567
11568 sysv4 | sysv4.3*)
11569 version_type=linux
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 case $host_vendor in
11574 sni)
11575 shlibpath_overrides_runpath=no
11576 need_lib_prefix=no
11577 runpath_var=LD_RUN_PATH
11578 ;;
11579 siemens)
11580 need_lib_prefix=no
11581 ;;
11582 motorola)
11583 need_lib_prefix=no
11584 need_version=no
11585 shlibpath_overrides_runpath=no
11586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11587 ;;
11588 esac
11589 ;;
11590
11591 sysv4*MP*)
11592 if test -d /usr/nec ;then
11593 version_type=linux
11594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11595 soname_spec='$libname${shared_ext}.$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 fi
11598 ;;
11599
11600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11601 version_type=freebsd-elf
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes
11608 hardcode_into_libs=yes
11609 if test "$with_gnu_ld" = yes; then
11610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11611 else
11612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11613 case $host_os in
11614 sco3.2v5*)
11615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11616 ;;
11617 esac
11618 fi
11619 sys_lib_dlsearch_path_spec='/usr/lib'
11620 ;;
11621
11622 tpf*)
11623 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11624 version_type=linux
11625 need_lib_prefix=no
11626 need_version=no
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=no
11630 hardcode_into_libs=yes
11631 ;;
11632
11633 uts4*)
11634 version_type=linux
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 ;;
11639
11640 *)
11641 dynamic_linker=no
11642 ;;
11643 esac
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11645 $as_echo "$dynamic_linker" >&6; }
11646 test "$dynamic_linker" = no && can_build_shared=no
11647
11648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11649 if test "$GCC" = yes; then
11650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11651 fi
11652
11653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11655 fi
11656 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11658 fi
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11753 hardcode_action=
11754 if test -n "$hardcode_libdir_flag_spec" ||
11755 test -n "$runpath_var" ||
11756 test "X$hardcode_automatic" = "Xyes" ; then
11757
11758 # We can hardcode non-existent directories.
11759 if test "$hardcode_direct" != no &&
11760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11761 # have to relink, otherwise we might link with an installed library
11762 # when we should be linking with a yet-to-be-installed one
11763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11764 test "$hardcode_minus_L" != no; then
11765 # Linking always hardcodes the temporary library directory.
11766 hardcode_action=relink
11767 else
11768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11769 hardcode_action=immediate
11770 fi
11771 else
11772 # We cannot hardcode anything, or else we can only hardcode existing
11773 # directories.
11774 hardcode_action=unsupported
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11777 $as_echo "$hardcode_action" >&6; }
11778
11779 if test "$hardcode_action" = relink ||
11780 test "$inherit_rpath" = yes; then
11781 # Fast installation is not supported
11782 enable_fast_install=no
11783 elif test "$shlibpath_overrides_runpath" = yes ||
11784 test "$enable_shared" = no; then
11785 # Fast installation is not necessary
11786 enable_fast_install=needless
11787 fi
11788
11789
11790
11791
11792
11793
11794 if test "x$enable_dlopen" != xyes; then
11795 enable_dlopen=unknown
11796 enable_dlopen_self=unknown
11797 enable_dlopen_self_static=unknown
11798 else
11799 lt_cv_dlopen=no
11800 lt_cv_dlopen_libs=
11801
11802 case $host_os in
11803 beos*)
11804 lt_cv_dlopen="load_add_on"
11805 lt_cv_dlopen_libs=
11806 lt_cv_dlopen_self=yes
11807 ;;
11808
11809 mingw* | pw32* | cegcc*)
11810 lt_cv_dlopen="LoadLibrary"
11811 lt_cv_dlopen_libs=
11812 ;;
11813
11814 cygwin*)
11815 lt_cv_dlopen="dlopen"
11816 lt_cv_dlopen_libs=
11817 ;;
11818
11819 darwin*)
11820 # if libdl is installed we need to link against it
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11823 if ${ac_cv_lib_dl_dlopen+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldl $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char dlopen ();
11838 int
11839 main ()
11840 {
11841 return dlopen ();
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_lib_dl_dlopen=yes
11848 else
11849 ac_cv_lib_dl_dlopen=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 else
11860
11861 lt_cv_dlopen="dyld"
11862 lt_cv_dlopen_libs=
11863 lt_cv_dlopen_self=yes
11864
11865 fi
11866
11867 ;;
11868
11869 *)
11870 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11871 if test "x$ac_cv_func_shl_load" = xyes; then :
11872 lt_cv_dlopen="shl_load"
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11875 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11876 if ${ac_cv_lib_dld_shl_load+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-ldld $LIBS"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char shl_load ();
11891 int
11892 main ()
11893 {
11894 return shl_load ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_dld_shl_load=yes
11901 else
11902 ac_cv_lib_dld_shl_load=no
11903 fi
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11909 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11910 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11912 else
11913 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11914 if test "x$ac_cv_func_dlopen" = xyes; then :
11915 lt_cv_dlopen="dlopen"
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11919 if ${ac_cv_lib_dl_dlopen+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-ldl $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char dlopen ();
11934 int
11935 main ()
11936 {
11937 return dlopen ();
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_dl_dlopen=yes
11944 else
11945 ac_cv_lib_dl_dlopen=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11957 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11958 if ${ac_cv_lib_svld_dlopen+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lsvld $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char dlopen ();
11973 int
11974 main ()
11975 {
11976 return dlopen ();
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_svld_dlopen=yes
11983 else
11984 ac_cv_lib_svld_dlopen=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11991 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11992 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11996 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11997 if ${ac_cv_lib_dld_dld_link+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldld $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char dld_link ();
12012 int
12013 main ()
12014 {
12015 return dld_link ();
12016 ;
12017 return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_dld_dld_link=yes
12022 else
12023 ac_cv_lib_dld_dld_link=no
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12030 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12031 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12032 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12033 fi
12034
12035
12036 fi
12037
12038
12039 fi
12040
12041
12042 fi
12043
12044
12045 fi
12046
12047
12048 fi
12049
12050 ;;
12051 esac
12052
12053 if test "x$lt_cv_dlopen" != xno; then
12054 enable_dlopen=yes
12055 else
12056 enable_dlopen=no
12057 fi
12058
12059 case $lt_cv_dlopen in
12060 dlopen)
12061 save_CPPFLAGS="$CPPFLAGS"
12062 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12063
12064 save_LDFLAGS="$LDFLAGS"
12065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12066
12067 save_LIBS="$LIBS"
12068 LIBS="$lt_cv_dlopen_libs $LIBS"
12069
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12071 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 if test "$cross_compiling" = yes; then :
12076 lt_cv_dlopen_self=cross
12077 else
12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079 lt_status=$lt_dlunknown
12080 cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083
12084 #if HAVE_DLFCN_H
12085 #include <dlfcn.h>
12086 #endif
12087
12088 #include <stdio.h>
12089
12090 #ifdef RTLD_GLOBAL
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12092 #else
12093 # ifdef DL_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12095 # else
12096 # define LT_DLGLOBAL 0
12097 # endif
12098 #endif
12099
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12103 # ifdef RTLD_LAZY
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12105 # else
12106 # ifdef DL_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12108 # else
12109 # ifdef RTLD_NOW
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12111 # else
12112 # ifdef DL_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12114 # else
12115 # define LT_DLLAZY_OR_NOW 0
12116 # endif
12117 # endif
12118 # endif
12119 # endif
12120 #endif
12121
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12126 #endif
12127
12128 int fnord () { return 42; }
12129 int main ()
12130 {
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12133
12134 if (self)
12135 {
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12137 else
12138 {
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12141 }
12142 /* dlclose (self); */
12143 }
12144 else
12145 puts (dlerror ());
12146
12147 return status;
12148 }
12149 _LT_EOF
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12152 ac_status=$?
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155 (./conftest; exit; ) >&5 2>/dev/null
12156 lt_status=$?
12157 case x$lt_status in
12158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12160 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12161 esac
12162 else :
12163 # compilation failed
12164 lt_cv_dlopen_self=no
12165 fi
12166 fi
12167 rm -fr conftest*
12168
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12172 $as_echo "$lt_cv_dlopen_self" >&6; }
12173
12174 if test "x$lt_cv_dlopen_self" = xyes; then
12175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12177 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12178 if ${lt_cv_dlopen_self_static+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test "$cross_compiling" = yes; then :
12182 lt_cv_dlopen_self_static=cross
12183 else
12184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12185 lt_status=$lt_dlunknown
12186 cat > conftest.$ac_ext <<_LT_EOF
12187 #line $LINENO "configure"
12188 #include "confdefs.h"
12189
12190 #if HAVE_DLFCN_H
12191 #include <dlfcn.h>
12192 #endif
12193
12194 #include <stdio.h>
12195
12196 #ifdef RTLD_GLOBAL
12197 # define LT_DLGLOBAL RTLD_GLOBAL
12198 #else
12199 # ifdef DL_GLOBAL
12200 # define LT_DLGLOBAL DL_GLOBAL
12201 # else
12202 # define LT_DLGLOBAL 0
12203 # endif
12204 #endif
12205
12206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12207 find out it does not work in some platform. */
12208 #ifndef LT_DLLAZY_OR_NOW
12209 # ifdef RTLD_LAZY
12210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12211 # else
12212 # ifdef DL_LAZY
12213 # define LT_DLLAZY_OR_NOW DL_LAZY
12214 # else
12215 # ifdef RTLD_NOW
12216 # define LT_DLLAZY_OR_NOW RTLD_NOW
12217 # else
12218 # ifdef DL_NOW
12219 # define LT_DLLAZY_OR_NOW DL_NOW
12220 # else
12221 # define LT_DLLAZY_OR_NOW 0
12222 # endif
12223 # endif
12224 # endif
12225 # endif
12226 #endif
12227
12228 /* When -fvisbility=hidden is used, assume the code has been annotated
12229 correspondingly for the symbols needed. */
12230 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12231 int fnord () __attribute__((visibility("default")));
12232 #endif
12233
12234 int fnord () { return 42; }
12235 int main ()
12236 {
12237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12238 int status = $lt_dlunknown;
12239
12240 if (self)
12241 {
12242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12243 else
12244 {
12245 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12246 else puts (dlerror ());
12247 }
12248 /* dlclose (self); */
12249 }
12250 else
12251 puts (dlerror ());
12252
12253 return status;
12254 }
12255 _LT_EOF
12256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12257 (eval $ac_link) 2>&5
12258 ac_status=$?
12259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12260 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12261 (./conftest; exit; ) >&5 2>/dev/null
12262 lt_status=$?
12263 case x$lt_status in
12264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12266 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12267 esac
12268 else :
12269 # compilation failed
12270 lt_cv_dlopen_self_static=no
12271 fi
12272 fi
12273 rm -fr conftest*
12274
12275
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12278 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12279 fi
12280
12281 CPPFLAGS="$save_CPPFLAGS"
12282 LDFLAGS="$save_LDFLAGS"
12283 LIBS="$save_LIBS"
12284 ;;
12285 esac
12286
12287 case $lt_cv_dlopen_self in
12288 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12289 *) enable_dlopen_self=unknown ;;
12290 esac
12291
12292 case $lt_cv_dlopen_self_static in
12293 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12294 *) enable_dlopen_self_static=unknown ;;
12295 esac
12296 fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314 striplib=
12315 old_striplib=
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12317 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12318 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12320 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323 else
12324 # FIXME - insert some real tests, host_os isn't really good enough
12325 case $host_os in
12326 darwin*)
12327 if test -n "$STRIP" ; then
12328 striplib="$STRIP -x"
12329 old_striplib="$STRIP -S"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336 ;;
12337 *)
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 ;;
12341 esac
12342 fi
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355 # Report which library types will actually be built
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12357 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12359 $as_echo "$can_build_shared" >&6; }
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12362 $as_echo_n "checking whether to build shared libraries... " >&6; }
12363 test "$can_build_shared" = "no" && enable_shared=no
12364
12365 # On AIX, shared libraries and static libraries use the same namespace, and
12366 # are all built from PIC.
12367 case $host_os in
12368 aix3*)
12369 test "$enable_shared" = yes && enable_static=no
12370 if test -n "$RANLIB"; then
12371 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12372 postinstall_cmds='$RANLIB $lib'
12373 fi
12374 ;;
12375
12376 aix[4-9]*)
12377 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12378 test "$enable_shared" = yes && enable_static=no
12379 fi
12380 ;;
12381 esac
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12383 $as_echo "$enable_shared" >&6; }
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12386 $as_echo_n "checking whether to build static libraries... " >&6; }
12387 # Make sure either enable_shared or enable_static is yes.
12388 test "$enable_shared" = yes || enable_static=yes
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12390 $as_echo "$enable_static" >&6; }
12391
12392
12393
12394
12395 fi
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401
12402 CC="$lt_save_CC"
12403
12404 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12405 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12406 (test "X$CXX" != "Xg++"))) ; then
12407 ac_ext=cpp
12408 ac_cpp='$CXXCPP $CPPFLAGS'
12409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12413 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12414 if test -z "$CXXCPP"; then
12415 if ${ac_cv_prog_CXXCPP+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 # Double quotes because CXXCPP needs to be expanded
12419 for CXXCPP in "$CXX -E" "/lib/cpp"
12420 do
12421 ac_preproc_ok=false
12422 for ac_cxx_preproc_warn_flag in '' yes
12423 do
12424 # Use a header file that comes with gcc, so configuring glibc
12425 # with a fresh cross-compiler works.
12426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 # <limits.h> exists even on freestanding compilers.
12428 # On the NeXT, cc -E runs the code through the compiler's parser,
12429 # not just through cpp. "Syntax error" is here to catch this case.
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #ifdef __STDC__
12433 # include <limits.h>
12434 #else
12435 # include <assert.h>
12436 #endif
12437 Syntax error
12438 _ACEOF
12439 if ac_fn_cxx_try_cpp "$LINENO"; then :
12440
12441 else
12442 # Broken: fails on valid input.
12443 continue
12444 fi
12445 rm -f conftest.err conftest.i conftest.$ac_ext
12446
12447 # OK, works on sane cases. Now check whether nonexistent headers
12448 # can be detected and how.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <ac_nonexistent.h>
12452 _ACEOF
12453 if ac_fn_cxx_try_cpp "$LINENO"; then :
12454 # Broken: success on invalid input.
12455 continue
12456 else
12457 # Passes both tests.
12458 ac_preproc_ok=:
12459 break
12460 fi
12461 rm -f conftest.err conftest.i conftest.$ac_ext
12462
12463 done
12464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12465 rm -f conftest.i conftest.err conftest.$ac_ext
12466 if $ac_preproc_ok; then :
12467 break
12468 fi
12469
12470 done
12471 ac_cv_prog_CXXCPP=$CXXCPP
12472
12473 fi
12474 CXXCPP=$ac_cv_prog_CXXCPP
12475 else
12476 ac_cv_prog_CXXCPP=$CXXCPP
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12479 $as_echo "$CXXCPP" >&6; }
12480 ac_preproc_ok=false
12481 for ac_cxx_preproc_warn_flag in '' yes
12482 do
12483 # Use a header file that comes with gcc, so configuring glibc
12484 # with a fresh cross-compiler works.
12485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 # <limits.h> exists even on freestanding compilers.
12487 # On the NeXT, cc -E runs the code through the compiler's parser,
12488 # not just through cpp. "Syntax error" is here to catch this case.
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 #ifdef __STDC__
12492 # include <limits.h>
12493 #else
12494 # include <assert.h>
12495 #endif
12496 Syntax error
12497 _ACEOF
12498 if ac_fn_cxx_try_cpp "$LINENO"; then :
12499
12500 else
12501 # Broken: fails on valid input.
12502 continue
12503 fi
12504 rm -f conftest.err conftest.i conftest.$ac_ext
12505
12506 # OK, works on sane cases. Now check whether nonexistent headers
12507 # can be detected and how.
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <ac_nonexistent.h>
12511 _ACEOF
12512 if ac_fn_cxx_try_cpp "$LINENO"; then :
12513 # Broken: success on invalid input.
12514 continue
12515 else
12516 # Passes both tests.
12517 ac_preproc_ok=:
12518 break
12519 fi
12520 rm -f conftest.err conftest.i conftest.$ac_ext
12521
12522 done
12523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12524 rm -f conftest.i conftest.err conftest.$ac_ext
12525 if $ac_preproc_ok; then :
12526
12527 else
12528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12530 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12531 See \`config.log' for more details" "$LINENO" 5; }
12532 fi
12533
12534 ac_ext=c
12535 ac_cpp='$CPP $CPPFLAGS'
12536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12539
12540 else
12541 _lt_caught_CXX_error=yes
12542 fi
12543
12544 ac_ext=cpp
12545 ac_cpp='$CXXCPP $CPPFLAGS'
12546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12549
12550 archive_cmds_need_lc_CXX=no
12551 allow_undefined_flag_CXX=
12552 always_export_symbols_CXX=no
12553 archive_expsym_cmds_CXX=
12554 compiler_needs_object_CXX=no
12555 export_dynamic_flag_spec_CXX=
12556 hardcode_direct_CXX=no
12557 hardcode_direct_absolute_CXX=no
12558 hardcode_libdir_flag_spec_CXX=
12559 hardcode_libdir_flag_spec_ld_CXX=
12560 hardcode_libdir_separator_CXX=
12561 hardcode_minus_L_CXX=no
12562 hardcode_shlibpath_var_CXX=unsupported
12563 hardcode_automatic_CXX=no
12564 inherit_rpath_CXX=no
12565 module_cmds_CXX=
12566 module_expsym_cmds_CXX=
12567 link_all_deplibs_CXX=unknown
12568 old_archive_cmds_CXX=$old_archive_cmds
12569 reload_flag_CXX=$reload_flag
12570 reload_cmds_CXX=$reload_cmds
12571 no_undefined_flag_CXX=
12572 whole_archive_flag_spec_CXX=
12573 enable_shared_with_static_runtimes_CXX=no
12574
12575 # Source file extension for C++ test sources.
12576 ac_ext=cpp
12577
12578 # Object file extension for compiled C++ test sources.
12579 objext=o
12580 objext_CXX=$objext
12581
12582 # No sense in running all these tests if we already determined that
12583 # the CXX compiler isn't working. Some variables (like enable_shared)
12584 # are currently assumed to apply to all compilers on this platform,
12585 # and will be corrupted by setting them based on a non-working compiler.
12586 if test "$_lt_caught_CXX_error" != yes; then
12587 # Code to be used in simple compile tests
12588 lt_simple_compile_test_code="int some_variable = 0;"
12589
12590 # Code to be used in simple link tests
12591 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12592
12593 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12594
12595
12596
12597
12598
12599
12600 # If no C compiler was specified, use CC.
12601 LTCC=${LTCC-"$CC"}
12602
12603 # If no C compiler flags were specified, use CFLAGS.
12604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12605
12606 # Allow CC to be a program name with arguments.
12607 compiler=$CC
12608
12609
12610 # save warnings/boilerplate of simple test code
12611 ac_outfile=conftest.$ac_objext
12612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12614 _lt_compiler_boilerplate=`cat conftest.err`
12615 $RM conftest*
12616
12617 ac_outfile=conftest.$ac_objext
12618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12620 _lt_linker_boilerplate=`cat conftest.err`
12621 $RM -r conftest*
12622
12623
12624 # Allow CC to be a program name with arguments.
12625 lt_save_CC=$CC
12626 lt_save_CFLAGS=$CFLAGS
12627 lt_save_LD=$LD
12628 lt_save_GCC=$GCC
12629 GCC=$GXX
12630 lt_save_with_gnu_ld=$with_gnu_ld
12631 lt_save_path_LD=$lt_cv_path_LD
12632 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12633 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12634 else
12635 $as_unset lt_cv_prog_gnu_ld
12636 fi
12637 if test -n "${lt_cv_path_LDCXX+set}"; then
12638 lt_cv_path_LD=$lt_cv_path_LDCXX
12639 else
12640 $as_unset lt_cv_path_LD
12641 fi
12642 test -z "${LDCXX+set}" || LD=$LDCXX
12643 CC=${CXX-"c++"}
12644 CFLAGS=$CXXFLAGS
12645 compiler=$CC
12646 compiler_CXX=$CC
12647 for cc_temp in $compiler""; do
12648 case $cc_temp in
12649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12651 \-*) ;;
12652 *) break;;
12653 esac
12654 done
12655 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12656
12657
12658 if test -n "$compiler"; then
12659 # We don't want -fno-exception when compiling C++ code, so set the
12660 # no_builtin_flag separately
12661 if test "$GXX" = yes; then
12662 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12663 else
12664 lt_prog_compiler_no_builtin_flag_CXX=
12665 fi
12666
12667 if test "$GXX" = yes; then
12668 # Set up default GNU C++ configuration
12669
12670
12671
12672 # Check whether --with-gnu-ld was given.
12673 if test "${with_gnu_ld+set}" = set; then :
12674 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12675 else
12676 with_gnu_ld=no
12677 fi
12678
12679 ac_prog=ld
12680 if test "$GCC" = yes; then
12681 # Check if gcc -print-prog-name=ld gives a path.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12683 $as_echo_n "checking for ld used by $CC... " >&6; }
12684 case $host in
12685 *-*-mingw*)
12686 # gcc leaves a trailing carriage return which upsets mingw
12687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12688 *)
12689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12690 esac
12691 case $ac_prog in
12692 # Accept absolute paths.
12693 [\\/]* | ?:[\\/]*)
12694 re_direlt='/[^/][^/]*/\.\./'
12695 # Canonicalize the pathname of ld
12696 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12697 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12698 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12699 done
12700 test -z "$LD" && LD="$ac_prog"
12701 ;;
12702 "")
12703 # If it fails, then pretend we aren't using GCC.
12704 ac_prog=ld
12705 ;;
12706 *)
12707 # If it is relative, then search for the first ld in PATH.
12708 with_gnu_ld=unknown
12709 ;;
12710 esac
12711 elif test "$with_gnu_ld" = yes; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12713 $as_echo_n "checking for GNU ld... " >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12716 $as_echo_n "checking for non-GNU ld... " >&6; }
12717 fi
12718 if ${lt_cv_path_LD+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -z "$LD"; then
12722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12723 for ac_dir in $PATH; do
12724 IFS="$lt_save_ifs"
12725 test -z "$ac_dir" && ac_dir=.
12726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12727 lt_cv_path_LD="$ac_dir/$ac_prog"
12728 # Check to see if the program is GNU ld. I'd rather use --version,
12729 # but apparently some variants of GNU ld only accept -v.
12730 # Break only if it was the GNU/non-GNU ld that we prefer.
12731 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12732 *GNU* | *'with BFD'*)
12733 test "$with_gnu_ld" != no && break
12734 ;;
12735 *)
12736 test "$with_gnu_ld" != yes && break
12737 ;;
12738 esac
12739 fi
12740 done
12741 IFS="$lt_save_ifs"
12742 else
12743 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12744 fi
12745 fi
12746
12747 LD="$lt_cv_path_LD"
12748 if test -n "$LD"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12750 $as_echo "$LD" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12758 if ${lt_cv_prog_gnu_ld+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12762 case `$LD -v 2>&1 </dev/null` in
12763 *GNU* | *'with BFD'*)
12764 lt_cv_prog_gnu_ld=yes
12765 ;;
12766 *)
12767 lt_cv_prog_gnu_ld=no
12768 ;;
12769 esac
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12773 with_gnu_ld=$lt_cv_prog_gnu_ld
12774
12775
12776
12777
12778
12779
12780
12781 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12782 # archiving commands below assume that GNU ld is being used.
12783 if test "$with_gnu_ld" = yes; then
12784 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785 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'
12786
12787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12788 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12789
12790 # If archive_cmds runs LD, not CC, wlarc should be empty
12791 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12792 # investigate it a little bit more. (MM)
12793 wlarc='${wl}'
12794
12795 # ancient GNU ld didn't support --whole-archive et. al.
12796 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12797 $GREP 'no-whole-archive' > /dev/null; then
12798 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12799 else
12800 whole_archive_flag_spec_CXX=
12801 fi
12802 else
12803 with_gnu_ld=no
12804 wlarc=
12805
12806 # A generic and very simple default shared library creation
12807 # command for GNU C++ for the case where it uses the native
12808 # linker, instead of GNU ld. If possible, this setting should
12809 # overridden to take advantage of the native linker features on
12810 # the platform it is being used on.
12811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12812 fi
12813
12814 # Commands to make compiler produce verbose output that lists
12815 # what "hidden" libraries, object files and flags are used when
12816 # linking a shared library.
12817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12818
12819 else
12820 GXX=no
12821 with_gnu_ld=no
12822 wlarc=
12823 fi
12824
12825 # PORTME: fill in a description of your system's C++ link characteristics
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12827 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12828 ld_shlibs_CXX=yes
12829 case $host_os in
12830 aix3*)
12831 # FIXME: insert proper C++ library support
12832 ld_shlibs_CXX=no
12833 ;;
12834 aix[4-9]*)
12835 if test "$host_cpu" = ia64; then
12836 # On IA64, the linker does run time linking by default, so we don't
12837 # have to do anything special.
12838 aix_use_runtimelinking=no
12839 exp_sym_flag='-Bexport'
12840 no_entry_flag=""
12841 else
12842 aix_use_runtimelinking=no
12843
12844 # Test if we are trying to use run time linking or normal
12845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12846 # need to do runtime linking.
12847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12848 for ld_flag in $LDFLAGS; do
12849 case $ld_flag in
12850 *-brtl*)
12851 aix_use_runtimelinking=yes
12852 break
12853 ;;
12854 esac
12855 done
12856 ;;
12857 esac
12858
12859 exp_sym_flag='-bexport'
12860 no_entry_flag='-bnoentry'
12861 fi
12862
12863 # When large executables or shared objects are built, AIX ld can
12864 # have problems creating the table of contents. If linking a library
12865 # or program results in "error TOC overflow" add -mminimal-toc to
12866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12868
12869 archive_cmds_CXX=''
12870 hardcode_direct_CXX=yes
12871 hardcode_direct_absolute_CXX=yes
12872 hardcode_libdir_separator_CXX=':'
12873 link_all_deplibs_CXX=yes
12874 file_list_spec_CXX='${wl}-f,'
12875
12876 if test "$GXX" = yes; then
12877 case $host_os in aix4.[012]|aix4.[012].*)
12878 # We only want to do this on AIX 4.2 and lower, the check
12879 # below for broken collect2 doesn't work under 4.3+
12880 collect2name=`${CC} -print-prog-name=collect2`
12881 if test -f "$collect2name" &&
12882 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12883 then
12884 # We have reworked collect2
12885 :
12886 else
12887 # We have old collect2
12888 hardcode_direct_CXX=unsupported
12889 # It fails to find uninstalled libraries when the uninstalled
12890 # path is not listed in the libpath. Setting hardcode_minus_L
12891 # to unsupported forces relinking
12892 hardcode_minus_L_CXX=yes
12893 hardcode_libdir_flag_spec_CXX='-L$libdir'
12894 hardcode_libdir_separator_CXX=
12895 fi
12896 esac
12897 shared_flag='-shared'
12898 if test "$aix_use_runtimelinking" = yes; then
12899 shared_flag="$shared_flag "'${wl}-G'
12900 fi
12901 else
12902 # not using gcc
12903 if test "$host_cpu" = ia64; then
12904 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12905 # chokes on -Wl,-G. The following line is correct:
12906 shared_flag='-G'
12907 else
12908 if test "$aix_use_runtimelinking" = yes; then
12909 shared_flag='${wl}-G'
12910 else
12911 shared_flag='${wl}-bM:SRE'
12912 fi
12913 fi
12914 fi
12915
12916 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12917 # It seems that -bexpall does not export symbols beginning with
12918 # underscore (_), so it is better to generate a list of symbols to
12919 # export.
12920 always_export_symbols_CXX=yes
12921 if test "$aix_use_runtimelinking" = yes; then
12922 # Warning - without using the other runtime loading flags (-brtl),
12923 # -berok will link without error, but may produce a broken library.
12924 allow_undefined_flag_CXX='-berok'
12925 # Determine the default libpath from the value encoded in an empty
12926 # executable.
12927 if test "${lt_cv_aix_libpath+set}" = set; then
12928 aix_libpath=$lt_cv_aix_libpath
12929 else
12930 if ${lt_cv_aix_libpath__CXX+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935
12936 int
12937 main ()
12938 {
12939
12940 ;
12941 return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_cxx_try_link "$LINENO"; then :
12945
12946 lt_aix_libpath_sed='
12947 /Import File Strings/,/^$/ {
12948 /^0/ {
12949 s/^0 *\([^ ]*\) *$/\1/
12950 p
12951 }
12952 }'
12953 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12954 # Check for a 64-bit object if we didn't find anything.
12955 if test -z "$lt_cv_aix_libpath__CXX"; then
12956 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12957 fi
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 if test -z "$lt_cv_aix_libpath__CXX"; then
12962 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12963 fi
12964
12965 fi
12966
12967 aix_libpath=$lt_cv_aix_libpath__CXX
12968 fi
12969
12970 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12971
12972 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"
12973 else
12974 if test "$host_cpu" = ia64; then
12975 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12976 allow_undefined_flag_CXX="-z nodefs"
12977 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"
12978 else
12979 # Determine the default libpath from the value encoded in an
12980 # empty executable.
12981 if test "${lt_cv_aix_libpath+set}" = set; then
12982 aix_libpath=$lt_cv_aix_libpath
12983 else
12984 if ${lt_cv_aix_libpath__CXX+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 int
12991 main ()
12992 {
12993
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_cxx_try_link "$LINENO"; then :
12999
13000 lt_aix_libpath_sed='
13001 /Import File Strings/,/^$/ {
13002 /^0/ {
13003 s/^0 *\([^ ]*\) *$/\1/
13004 p
13005 }
13006 }'
13007 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 # Check for a 64-bit object if we didn't find anything.
13009 if test -z "$lt_cv_aix_libpath__CXX"; then
13010 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13011 fi
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13015 if test -z "$lt_cv_aix_libpath__CXX"; then
13016 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13017 fi
13018
13019 fi
13020
13021 aix_libpath=$lt_cv_aix_libpath__CXX
13022 fi
13023
13024 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13025 # Warning - without using the other run time loading flags,
13026 # -berok will link without error, but may produce a broken library.
13027 no_undefined_flag_CXX=' ${wl}-bernotok'
13028 allow_undefined_flag_CXX=' ${wl}-berok'
13029 if test "$with_gnu_ld" = yes; then
13030 # We only use this code for GNU lds that support --whole-archive.
13031 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13032 else
13033 # Exported symbols can be pulled into shared objects from archives
13034 whole_archive_flag_spec_CXX='$convenience'
13035 fi
13036 archive_cmds_need_lc_CXX=yes
13037 # This is similar to how AIX traditionally builds its shared
13038 # libraries.
13039 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'
13040 fi
13041 fi
13042 ;;
13043
13044 beos*)
13045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13046 allow_undefined_flag_CXX=unsupported
13047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13048 # support --undefined. This deserves some investigation. FIXME
13049 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050 else
13051 ld_shlibs_CXX=no
13052 fi
13053 ;;
13054
13055 chorus*)
13056 case $cc_basename in
13057 *)
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13060 ;;
13061 esac
13062 ;;
13063
13064 cygwin* | mingw* | pw32* | cegcc*)
13065 case $GXX,$cc_basename in
13066 ,cl* | no,cl*)
13067 # Native MSVC
13068 # hardcode_libdir_flag_spec is actually meaningless, as there is
13069 # no search path for DLLs.
13070 hardcode_libdir_flag_spec_CXX=' '
13071 allow_undefined_flag_CXX=unsupported
13072 always_export_symbols_CXX=yes
13073 file_list_spec_CXX='@'
13074 # Tell ltmain to make .lib files, not .a files.
13075 libext=lib
13076 # Tell ltmain to make .dll files, not .so files.
13077 shrext_cmds=".dll"
13078 # FIXME: Setting linknames here is a bad hack.
13079 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13080 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13081 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13082 else
13083 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13084 fi~
13085 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13086 linknames='
13087 # The linker will not automatically build a static lib if we build a DLL.
13088 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13089 enable_shared_with_static_runtimes_CXX=yes
13090 # Don't use ranlib
13091 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13092 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13093 lt_tool_outputfile="@TOOL_OUTPUT@"~
13094 case $lt_outputfile in
13095 *.exe|*.EXE) ;;
13096 *)
13097 lt_outputfile="$lt_outputfile.exe"
13098 lt_tool_outputfile="$lt_tool_outputfile.exe"
13099 ;;
13100 esac~
13101 func_to_tool_file "$lt_outputfile"~
13102 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13103 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13104 $RM "$lt_outputfile.manifest";
13105 fi'
13106 ;;
13107 *)
13108 # g++
13109 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13110 # as there is no search path for DLLs.
13111 hardcode_libdir_flag_spec_CXX='-L$libdir'
13112 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13113 allow_undefined_flag_CXX=unsupported
13114 always_export_symbols_CXX=no
13115 enable_shared_with_static_runtimes_CXX=yes
13116
13117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13118 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'
13119 # If the export-symbols file already is a .def file (1st line
13120 # is EXPORTS), use it as is; otherwise, prepend...
13121 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13122 cp $export_symbols $output_objdir/$soname.def;
13123 else
13124 echo EXPORTS > $output_objdir/$soname.def;
13125 cat $export_symbols >> $output_objdir/$soname.def;
13126 fi~
13127 $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'
13128 else
13129 ld_shlibs_CXX=no
13130 fi
13131 ;;
13132 esac
13133 ;;
13134 darwin* | rhapsody*)
13135
13136
13137 archive_cmds_need_lc_CXX=no
13138 hardcode_direct_CXX=no
13139 hardcode_automatic_CXX=yes
13140 hardcode_shlibpath_var_CXX=unsupported
13141 if test "$lt_cv_ld_force_load" = "yes"; then
13142 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\"`'
13143 else
13144 whole_archive_flag_spec_CXX=''
13145 fi
13146 link_all_deplibs_CXX=yes
13147 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13148 case $cc_basename in
13149 ifort*) _lt_dar_can_shared=yes ;;
13150 *) _lt_dar_can_shared=$GCC ;;
13151 esac
13152 if test "$_lt_dar_can_shared" = "yes"; then
13153 output_verbose_link_cmd=func_echo_all
13154 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}"
13155 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13156 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}"
13157 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}"
13158 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13159 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}"
13160 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}"
13161 fi
13162
13163 else
13164 ld_shlibs_CXX=no
13165 fi
13166
13167 ;;
13168
13169 dgux*)
13170 case $cc_basename in
13171 ec++*)
13172 # FIXME: insert proper C++ library support
13173 ld_shlibs_CXX=no
13174 ;;
13175 ghcx*)
13176 # Green Hills C++ Compiler
13177 # FIXME: insert proper C++ library support
13178 ld_shlibs_CXX=no
13179 ;;
13180 *)
13181 # FIXME: insert proper C++ library support
13182 ld_shlibs_CXX=no
13183 ;;
13184 esac
13185 ;;
13186
13187 freebsd[12]*)
13188 # C++ shared libraries reported to be fairly broken before
13189 # switch to ELF
13190 ld_shlibs_CXX=no
13191 ;;
13192
13193 freebsd-elf*)
13194 archive_cmds_need_lc_CXX=no
13195 ;;
13196
13197 freebsd* | dragonfly*)
13198 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13199 # conventions
13200 ld_shlibs_CXX=yes
13201 ;;
13202
13203 gnu*)
13204 ;;
13205
13206 haiku*)
13207 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 link_all_deplibs_CXX=yes
13209 ;;
13210
13211 hpux9*)
13212 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13213 hardcode_libdir_separator_CXX=:
13214 export_dynamic_flag_spec_CXX='${wl}-E'
13215 hardcode_direct_CXX=yes
13216 hardcode_minus_L_CXX=yes # Not in the search PATH,
13217 # but as the default
13218 # location of the library.
13219
13220 case $cc_basename in
13221 CC*)
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13224 ;;
13225 aCC*)
13226 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'
13227 # Commands to make compiler produce verbose output that lists
13228 # what "hidden" libraries, object files and flags are used when
13229 # linking a shared library.
13230 #
13231 # There doesn't appear to be a way to prevent this compiler from
13232 # explicitly linking system object files so we need to strip them
13233 # from the output so that they don't get included in the library
13234 # dependencies.
13235 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"'
13236 ;;
13237 *)
13238 if test "$GXX" = yes; then
13239 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'
13240 else
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 fi
13244 ;;
13245 esac
13246 ;;
13247
13248 hpux10*|hpux11*)
13249 if test $with_gnu_ld = no; then
13250 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13251 hardcode_libdir_separator_CXX=:
13252
13253 case $host_cpu in
13254 hppa*64*|ia64*)
13255 ;;
13256 *)
13257 export_dynamic_flag_spec_CXX='${wl}-E'
13258 ;;
13259 esac
13260 fi
13261 case $host_cpu in
13262 hppa*64*|ia64*)
13263 hardcode_direct_CXX=no
13264 hardcode_shlibpath_var_CXX=no
13265 ;;
13266 *)
13267 hardcode_direct_CXX=yes
13268 hardcode_direct_absolute_CXX=yes
13269 hardcode_minus_L_CXX=yes # Not in the search PATH,
13270 # but as the default
13271 # location of the library.
13272 ;;
13273 esac
13274
13275 case $cc_basename in
13276 CC*)
13277 # FIXME: insert proper C++ library support
13278 ld_shlibs_CXX=no
13279 ;;
13280 aCC*)
13281 case $host_cpu in
13282 hppa*64*)
13283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284 ;;
13285 ia64*)
13286 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 ;;
13288 *)
13289 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290 ;;
13291 esac
13292 # Commands to make compiler produce verbose output that lists
13293 # what "hidden" libraries, object files and flags are used when
13294 # linking a shared library.
13295 #
13296 # There doesn't appear to be a way to prevent this compiler from
13297 # explicitly linking system object files so we need to strip them
13298 # from the output so that they don't get included in the library
13299 # dependencies.
13300 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"'
13301 ;;
13302 *)
13303 if test "$GXX" = yes; then
13304 if test $with_gnu_ld = no; then
13305 case $host_cpu in
13306 hppa*64*)
13307 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13308 ;;
13309 ia64*)
13310 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13311 ;;
13312 *)
13313 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'
13314 ;;
13315 esac
13316 fi
13317 else
13318 # FIXME: insert proper C++ library support
13319 ld_shlibs_CXX=no
13320 fi
13321 ;;
13322 esac
13323 ;;
13324
13325 interix[3-9]*)
13326 hardcode_direct_CXX=no
13327 hardcode_shlibpath_var_CXX=no
13328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13329 export_dynamic_flag_spec_CXX='${wl}-E'
13330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13331 # Instead, shared libraries are loaded at an image base (0x10000000 by
13332 # default) and relocated if they conflict, which is a slow very memory
13333 # consuming and fragmenting process. To avoid this, we pick a random,
13334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13336 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'
13337 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'
13338 ;;
13339 irix5* | irix6*)
13340 case $cc_basename in
13341 CC*)
13342 # SGI C++
13343 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'
13344
13345 # Archives containing C++ object files must be created using
13346 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13347 # necessary to make sure instantiated templates are included
13348 # in the archive.
13349 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13350 ;;
13351 *)
13352 if test "$GXX" = yes; then
13353 if test "$with_gnu_ld" = no; then
13354 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'
13355 else
13356 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'
13357 fi
13358 fi
13359 link_all_deplibs_CXX=yes
13360 ;;
13361 esac
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13363 hardcode_libdir_separator_CXX=:
13364 inherit_rpath_CXX=yes
13365 ;;
13366
13367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13368 case $cc_basename in
13369 KCC*)
13370 # Kuck and Associates, Inc. (KAI) C++ Compiler
13371
13372 # KCC will only create a shared library if the output file
13373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13374 # to its proper name (with version) after linking.
13375 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'
13376 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'
13377 # Commands to make compiler produce verbose output that lists
13378 # what "hidden" libraries, object files and flags are used when
13379 # linking a shared library.
13380 #
13381 # There doesn't appear to be a way to prevent this compiler from
13382 # explicitly linking system object files so we need to strip them
13383 # from the output so that they don't get included in the library
13384 # dependencies.
13385 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"'
13386
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13389
13390 # Archives containing C++ object files must be created using
13391 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13392 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13393 ;;
13394 icpc* | ecpc* )
13395 # Intel C++
13396 with_gnu_ld=yes
13397 # version 8.0 and above of icpc choke on multiply defined symbols
13398 # if we add $predep_objects and $postdep_objects, however 7.1 and
13399 # earlier do not add the objects themselves.
13400 case `$CC -V 2>&1` in
13401 *"Version 7."*)
13402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13403 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'
13404 ;;
13405 *) # Version 8.0 or newer
13406 tmp_idyn=
13407 case $host_cpu in
13408 ia64*) tmp_idyn=' -i_dynamic';;
13409 esac
13410 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13411 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'
13412 ;;
13413 esac
13414 archive_cmds_need_lc_CXX=no
13415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13417 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13418 ;;
13419 pgCC* | pgcpp*)
13420 # Portland Group C++ compiler
13421 case `$CC -V` in
13422 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13423 prelink_cmds_CXX='tpldir=Template.dir~
13424 rm -rf $tpldir~
13425 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13426 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13427 old_archive_cmds_CXX='tpldir=Template.dir~
13428 rm -rf $tpldir~
13429 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13430 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13431 $RANLIB $oldlib'
13432 archive_cmds_CXX='tpldir=Template.dir~
13433 rm -rf $tpldir~
13434 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13435 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13436 archive_expsym_cmds_CXX='tpldir=Template.dir~
13437 rm -rf $tpldir~
13438 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13439 $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'
13440 ;;
13441 *) # Version 6 and above use weak symbols
13442 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13443 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'
13444 ;;
13445 esac
13446
13447 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13449 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'
13450 ;;
13451 cxx*)
13452 # Compaq C++
13453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13454 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'
13455
13456 runpath_var=LD_RUN_PATH
13457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13458 hardcode_libdir_separator_CXX=:
13459
13460 # Commands to make compiler produce verbose output that lists
13461 # what "hidden" libraries, object files and flags are used when
13462 # linking a shared library.
13463 #
13464 # There doesn't appear to be a way to prevent this compiler from
13465 # explicitly linking system object files so we need to strip them
13466 # from the output so that they don't get included in the library
13467 # dependencies.
13468 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'
13469 ;;
13470 xl* | mpixl* | bgxl*)
13471 # IBM XL 8.0 on PPC, with GNU ld
13472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13474 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13475 if test "x$supports_anon_versioning" = xyes; then
13476 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13478 echo "local: *; };" >> $output_objdir/$libname.ver~
13479 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13480 fi
13481 ;;
13482 *)
13483 case `$CC -V 2>&1 | sed 5q` in
13484 *Sun\ C*)
13485 # Sun C++ 5.9
13486 no_undefined_flag_CXX=' -zdefs'
13487 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13488 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'
13489 hardcode_libdir_flag_spec_CXX='-R$libdir'
13490 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'
13491 compiler_needs_object_CXX=yes
13492
13493 # Not sure whether something based on
13494 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13495 # would be better.
13496 output_verbose_link_cmd='func_echo_all'
13497
13498 # Archives containing C++ object files must be created using
13499 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13500 # necessary to make sure instantiated templates are included
13501 # in the archive.
13502 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13503 ;;
13504 esac
13505 ;;
13506 esac
13507 ;;
13508
13509 lynxos*)
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513
13514 m88k*)
13515 # FIXME: insert proper C++ library support
13516 ld_shlibs_CXX=no
13517 ;;
13518
13519 mvs*)
13520 case $cc_basename in
13521 cxx*)
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13524 ;;
13525 *)
13526 # FIXME: insert proper C++ library support
13527 ld_shlibs_CXX=no
13528 ;;
13529 esac
13530 ;;
13531
13532 netbsd*)
13533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13534 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13535 wlarc=
13536 hardcode_libdir_flag_spec_CXX='-R$libdir'
13537 hardcode_direct_CXX=yes
13538 hardcode_shlibpath_var_CXX=no
13539 fi
13540 # Workaround some broken pre-1.5 toolchains
13541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13542 ;;
13543
13544 *nto* | *qnx*)
13545 ld_shlibs_CXX=yes
13546 ;;
13547
13548 openbsd2*)
13549 # C++ shared libraries are fairly broken
13550 ld_shlibs_CXX=no
13551 ;;
13552
13553 openbsd*)
13554 if test -f /usr/libexec/ld.so; then
13555 hardcode_direct_CXX=yes
13556 hardcode_shlibpath_var_CXX=no
13557 hardcode_direct_absolute_CXX=yes
13558 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13561 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13562 export_dynamic_flag_spec_CXX='${wl}-E'
13563 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13564 fi
13565 output_verbose_link_cmd=func_echo_all
13566 else
13567 ld_shlibs_CXX=no
13568 fi
13569 ;;
13570
13571 osf3* | osf4* | osf5*)
13572 case $cc_basename in
13573 KCC*)
13574 # Kuck and Associates, Inc. (KAI) C++ Compiler
13575
13576 # KCC will only create a shared library if the output file
13577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13578 # to its proper name (with version) after linking.
13579 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'
13580
13581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13582 hardcode_libdir_separator_CXX=:
13583
13584 # Archives containing C++ object files must be created using
13585 # the KAI C++ compiler.
13586 case $host in
13587 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13588 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13589 esac
13590 ;;
13591 RCC*)
13592 # Rational C++ 2.4.1
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13595 ;;
13596 cxx*)
13597 case $host in
13598 osf3*)
13599 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13600 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'
13601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13602 ;;
13603 *)
13604 allow_undefined_flag_CXX=' -expect_unresolved \*'
13605 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'
13606 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13607 echo "-hidden">> $lib.exp~
13608 $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~
13609 $RM $lib.exp'
13610 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13611 ;;
13612 esac
13613
13614 hardcode_libdir_separator_CXX=:
13615
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 #
13620 # There doesn't appear to be a way to prevent this compiler from
13621 # explicitly linking system object files so we need to strip them
13622 # from the output so that they don't get included in the library
13623 # dependencies.
13624 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"'
13625 ;;
13626 *)
13627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13629 case $host in
13630 osf3*)
13631 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'
13632 ;;
13633 *)
13634 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'
13635 ;;
13636 esac
13637
13638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13639 hardcode_libdir_separator_CXX=:
13640
13641 # Commands to make compiler produce verbose output that lists
13642 # what "hidden" libraries, object files and flags are used when
13643 # linking a shared library.
13644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13645
13646 else
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13649 fi
13650 ;;
13651 esac
13652 ;;
13653
13654 psos*)
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13657 ;;
13658
13659 sunos4*)
13660 case $cc_basename in
13661 CC*)
13662 # Sun C++ 4.x
13663 # FIXME: insert proper C++ library support
13664 ld_shlibs_CXX=no
13665 ;;
13666 lcc*)
13667 # Lucid
13668 # FIXME: insert proper C++ library support
13669 ld_shlibs_CXX=no
13670 ;;
13671 *)
13672 # FIXME: insert proper C++ library support
13673 ld_shlibs_CXX=no
13674 ;;
13675 esac
13676 ;;
13677
13678 solaris*)
13679 case $cc_basename in
13680 CC* | sunCC*)
13681 # Sun C++ 4.2, 5.x and Centerline C++
13682 archive_cmds_need_lc_CXX=yes
13683 no_undefined_flag_CXX=' -zdefs'
13684 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13685 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13686 $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'
13687
13688 hardcode_libdir_flag_spec_CXX='-R$libdir'
13689 hardcode_shlibpath_var_CXX=no
13690 case $host_os in
13691 solaris2.[0-5] | solaris2.[0-5].*) ;;
13692 *)
13693 # The compiler driver will combine and reorder linker options,
13694 # but understands `-z linker_flag'.
13695 # Supported since Solaris 2.6 (maybe 2.5.1?)
13696 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13697 ;;
13698 esac
13699 link_all_deplibs_CXX=yes
13700
13701 output_verbose_link_cmd='func_echo_all'
13702
13703 # Archives containing C++ object files must be created using
13704 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13705 # necessary to make sure instantiated templates are included
13706 # in the archive.
13707 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13708 ;;
13709 gcx*)
13710 # Green Hills C++ Compiler
13711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13712
13713 # The C++ compiler must be used to create the archive.
13714 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13715 ;;
13716 *)
13717 # GNU C++ compiler with Solaris linker
13718 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13719 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13720 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13721 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13722 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13723 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13724
13725 # Commands to make compiler produce verbose output that lists
13726 # what "hidden" libraries, object files and flags are used when
13727 # linking a shared library.
13728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13729 else
13730 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13731 # platform.
13732 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13733 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13734 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13735
13736 # Commands to make compiler produce verbose output that lists
13737 # what "hidden" libraries, object files and flags are used when
13738 # linking a shared library.
13739 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13740 fi
13741
13742 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13743 case $host_os in
13744 solaris2.[0-5] | solaris2.[0-5].*) ;;
13745 *)
13746 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13747 ;;
13748 esac
13749 fi
13750 ;;
13751 esac
13752 ;;
13753
13754 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13755 no_undefined_flag_CXX='${wl}-z,text'
13756 archive_cmds_need_lc_CXX=no
13757 hardcode_shlibpath_var_CXX=no
13758 runpath_var='LD_RUN_PATH'
13759
13760 case $cc_basename in
13761 CC*)
13762 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 ;;
13765 *)
13766 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 ;;
13769 esac
13770 ;;
13771
13772 sysv5* | sco3.2v5* | sco5v6*)
13773 # Note: We can NOT use -z defs as we might desire, because we do not
13774 # link with -lc, and that would cause any symbols used from libc to
13775 # always be unresolved, which means just about no library would
13776 # ever link correctly. If we're not using GNU ld we use -z text
13777 # though, which does catch some bad symbols but isn't as heavy-handed
13778 # as -z defs.
13779 no_undefined_flag_CXX='${wl}-z,text'
13780 allow_undefined_flag_CXX='${wl}-z,nodefs'
13781 archive_cmds_need_lc_CXX=no
13782 hardcode_shlibpath_var_CXX=no
13783 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13784 hardcode_libdir_separator_CXX=':'
13785 link_all_deplibs_CXX=yes
13786 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13787 runpath_var='LD_RUN_PATH'
13788
13789 case $cc_basename in
13790 CC*)
13791 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13792 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13794 '"$old_archive_cmds_CXX"
13795 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13796 '"$reload_cmds_CXX"
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 tandem*)
13806 case $cc_basename in
13807 NCC*)
13808 # NonStop-UX NCC 3.20
13809 # FIXME: insert proper C++ library support
13810 ld_shlibs_CXX=no
13811 ;;
13812 *)
13813 # FIXME: insert proper C++ library support
13814 ld_shlibs_CXX=no
13815 ;;
13816 esac
13817 ;;
13818
13819 vxworks*)
13820 # FIXME: insert proper C++ library support
13821 ld_shlibs_CXX=no
13822 ;;
13823
13824 *)
13825 # FIXME: insert proper C++ library support
13826 ld_shlibs_CXX=no
13827 ;;
13828 esac
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13831 $as_echo "$ld_shlibs_CXX" >&6; }
13832 test "$ld_shlibs_CXX" = no && can_build_shared=no
13833
13834 GCC_CXX="$GXX"
13835 LD_CXX="$LD"
13836
13837 ## CAVEAT EMPTOR:
13838 ## There is no encapsulation within the following macros, do not change
13839 ## the running order or otherwise move them around unless you know exactly
13840 ## what you are doing...
13841 # Dependencies to place before and after the object being linked:
13842 predep_objects_CXX=
13843 postdep_objects_CXX=
13844 predeps_CXX=
13845 postdeps_CXX=
13846 compiler_lib_search_path_CXX=
13847
13848 cat > conftest.$ac_ext <<_LT_EOF
13849 class Foo
13850 {
13851 public:
13852 Foo (void) { a = 0; }
13853 private:
13854 int a;
13855 };
13856 _LT_EOF
13857
13858
13859 _lt_libdeps_save_CFLAGS=$CFLAGS
13860 case "$CC $CFLAGS " in #(
13861 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13862 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13863 esac
13864
13865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13866 (eval $ac_compile) 2>&5
13867 ac_status=$?
13868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869 test $ac_status = 0; }; then
13870 # Parse the compiler output and extract the necessary
13871 # objects, libraries and library flags.
13872
13873 # Sentinel used to keep track of whether or not we are before
13874 # the conftest object file.
13875 pre_test_object_deps_done=no
13876
13877 for p in `eval "$output_verbose_link_cmd"`; do
13878 case ${prev}${p} in
13879
13880 -L* | -R* | -l*)
13881 # Some compilers place space between "-{L,R}" and the path.
13882 # Remove the space.
13883 if test $p = "-L" ||
13884 test $p = "-R"; then
13885 prev=$p
13886 continue
13887 fi
13888
13889 # Expand the sysroot to ease extracting the directories later.
13890 if test -z "$prev"; then
13891 case $p in
13892 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13893 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13894 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13895 esac
13896 fi
13897 case $p in
13898 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13899 esac
13900 if test "$pre_test_object_deps_done" = no; then
13901 case ${prev} in
13902 -L | -R)
13903 # Internal compiler library paths should come after those
13904 # provided the user. The postdeps already come after the
13905 # user supplied libs so there is no need to process them.
13906 if test -z "$compiler_lib_search_path_CXX"; then
13907 compiler_lib_search_path_CXX="${prev}${p}"
13908 else
13909 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13910 fi
13911 ;;
13912 # The "-l" case would never come before the object being
13913 # linked, so don't bother handling this case.
13914 esac
13915 else
13916 if test -z "$postdeps_CXX"; then
13917 postdeps_CXX="${prev}${p}"
13918 else
13919 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13920 fi
13921 fi
13922 prev=
13923 ;;
13924
13925 *.lto.$objext) ;; # Ignore GCC LTO objects
13926 *.$objext)
13927 # This assumes that the test object file only shows up
13928 # once in the compiler output.
13929 if test "$p" = "conftest.$objext"; then
13930 pre_test_object_deps_done=yes
13931 continue
13932 fi
13933
13934 if test "$pre_test_object_deps_done" = no; then
13935 if test -z "$predep_objects_CXX"; then
13936 predep_objects_CXX="$p"
13937 else
13938 predep_objects_CXX="$predep_objects_CXX $p"
13939 fi
13940 else
13941 if test -z "$postdep_objects_CXX"; then
13942 postdep_objects_CXX="$p"
13943 else
13944 postdep_objects_CXX="$postdep_objects_CXX $p"
13945 fi
13946 fi
13947 ;;
13948
13949 *) ;; # Ignore the rest.
13950
13951 esac
13952 done
13953
13954 # Clean up.
13955 rm -f a.out a.exe
13956 else
13957 echo "libtool.m4: error: problem compiling CXX test program"
13958 fi
13959
13960 $RM -f confest.$objext
13961 CFLAGS=$_lt_libdeps_save_CFLAGS
13962
13963 # PORTME: override above test on systems where it is broken
13964 case $host_os in
13965 interix[3-9]*)
13966 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13967 # hack all around it, let's just trust "g++" to DTRT.
13968 predep_objects_CXX=
13969 postdep_objects_CXX=
13970 postdeps_CXX=
13971 ;;
13972
13973 linux*)
13974 case `$CC -V 2>&1 | sed 5q` in
13975 *Sun\ C*)
13976 # Sun C++ 5.9
13977
13978 # The more standards-conforming stlport4 library is
13979 # incompatible with the Cstd library. Avoid specifying
13980 # it if it's in CXXFLAGS. Ignore libCrun as
13981 # -library=stlport4 depends on it.
13982 case " $CXX $CXXFLAGS " in
13983 *" -library=stlport4 "*)
13984 solaris_use_stlport4=yes
13985 ;;
13986 esac
13987
13988 if test "$solaris_use_stlport4" != yes; then
13989 postdeps_CXX='-library=Cstd -library=Crun'
13990 fi
13991 ;;
13992 esac
13993 ;;
13994
13995 solaris*)
13996 case $cc_basename in
13997 CC* | sunCC*)
13998 # The more standards-conforming stlport4 library is
13999 # incompatible with the Cstd library. Avoid specifying
14000 # it if it's in CXXFLAGS. Ignore libCrun as
14001 # -library=stlport4 depends on it.
14002 case " $CXX $CXXFLAGS " in
14003 *" -library=stlport4 "*)
14004 solaris_use_stlport4=yes
14005 ;;
14006 esac
14007
14008 # Adding this requires a known-good setup of shared libraries for
14009 # Sun compiler versions before 5.6, else PIC objects from an old
14010 # archive will be linked into the output, leading to subtle bugs.
14011 if test "$solaris_use_stlport4" != yes; then
14012 postdeps_CXX='-library=Cstd -library=Crun'
14013 fi
14014 ;;
14015 esac
14016 ;;
14017 esac
14018
14019
14020 case " $postdeps_CXX " in
14021 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14022 esac
14023 compiler_lib_search_dirs_CXX=
14024 if test -n "${compiler_lib_search_path_CXX}"; then
14025 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14026 fi
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058 lt_prog_compiler_wl_CXX=
14059 lt_prog_compiler_pic_CXX=
14060 lt_prog_compiler_static_CXX=
14061
14062
14063 # C++ specific cases for pic, static, wl, etc.
14064 if test "$GXX" = yes; then
14065 lt_prog_compiler_wl_CXX='-Wl,'
14066 lt_prog_compiler_static_CXX='-static'
14067
14068 case $host_os in
14069 aix*)
14070 # All AIX code is PIC.
14071 if test "$host_cpu" = ia64; then
14072 # AIX 5 now supports IA64 processor
14073 lt_prog_compiler_static_CXX='-Bstatic'
14074 fi
14075 ;;
14076
14077 amigaos*)
14078 case $host_cpu in
14079 powerpc)
14080 # see comment about AmigaOS4 .so support
14081 lt_prog_compiler_pic_CXX='-fPIC'
14082 ;;
14083 m68k)
14084 # FIXME: we need at least 68020 code to build shared libraries, but
14085 # adding the `-m68020' flag to GCC prevents building anything better,
14086 # like `-m68040'.
14087 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14088 ;;
14089 esac
14090 ;;
14091
14092 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14093 # PIC is the default for these OSes.
14094 ;;
14095 mingw* | cygwin* | os2* | pw32* | cegcc*)
14096 # This hack is so that the source file can tell whether it is being
14097 # built for inclusion in a dll (and should export symbols for example).
14098 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14099 # (--disable-auto-import) libraries
14100 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14101 ;;
14102 darwin* | rhapsody*)
14103 # PIC is the default on this platform
14104 # Common symbols not allowed in MH_DYLIB files
14105 lt_prog_compiler_pic_CXX='-fno-common'
14106 ;;
14107 *djgpp*)
14108 # DJGPP does not support shared libraries at all
14109 lt_prog_compiler_pic_CXX=
14110 ;;
14111 haiku*)
14112 # PIC is the default for Haiku.
14113 # The "-static" flag exists, but is broken.
14114 lt_prog_compiler_static_CXX=
14115 ;;
14116 interix[3-9]*)
14117 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14118 # Instead, we relocate shared libraries at runtime.
14119 ;;
14120 sysv4*MP*)
14121 if test -d /usr/nec; then
14122 lt_prog_compiler_pic_CXX=-Kconform_pic
14123 fi
14124 ;;
14125 hpux*)
14126 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14127 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14128 # sets the default TLS model and affects inlining.
14129 case $host_cpu in
14130 hppa*64*)
14131 ;;
14132 *)
14133 lt_prog_compiler_pic_CXX='-fPIC'
14134 ;;
14135 esac
14136 ;;
14137 *qnx* | *nto*)
14138 # QNX uses GNU C++, but need to define -shared option too, otherwise
14139 # it will coredump.
14140 lt_prog_compiler_pic_CXX='-fPIC -shared'
14141 ;;
14142 *)
14143 lt_prog_compiler_pic_CXX='-fPIC'
14144 ;;
14145 esac
14146 else
14147 case $host_os in
14148 aix[4-9]*)
14149 # All AIX code is PIC.
14150 if test "$host_cpu" = ia64; then
14151 # AIX 5 now supports IA64 processor
14152 lt_prog_compiler_static_CXX='-Bstatic'
14153 else
14154 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14155 fi
14156 ;;
14157 chorus*)
14158 case $cc_basename in
14159 cxch68*)
14160 # Green Hills C++ Compiler
14161 # _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"
14162 ;;
14163 esac
14164 ;;
14165 mingw* | cygwin* | os2* | pw32* | cegcc*)
14166 # This hack is so that the source file can tell whether it is being
14167 # built for inclusion in a dll (and should export symbols for example).
14168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14169 ;;
14170 dgux*)
14171 case $cc_basename in
14172 ec++*)
14173 lt_prog_compiler_pic_CXX='-KPIC'
14174 ;;
14175 ghcx*)
14176 # Green Hills C++ Compiler
14177 lt_prog_compiler_pic_CXX='-pic'
14178 ;;
14179 *)
14180 ;;
14181 esac
14182 ;;
14183 freebsd* | dragonfly*)
14184 # FreeBSD uses GNU C++
14185 ;;
14186 hpux9* | hpux10* | hpux11*)
14187 case $cc_basename in
14188 CC*)
14189 lt_prog_compiler_wl_CXX='-Wl,'
14190 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14191 if test "$host_cpu" != ia64; then
14192 lt_prog_compiler_pic_CXX='+Z'
14193 fi
14194 ;;
14195 aCC*)
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14198 case $host_cpu in
14199 hppa*64*|ia64*)
14200 # +Z the default
14201 ;;
14202 *)
14203 lt_prog_compiler_pic_CXX='+Z'
14204 ;;
14205 esac
14206 ;;
14207 *)
14208 ;;
14209 esac
14210 ;;
14211 interix*)
14212 # This is c89, which is MS Visual C++ (no shared libs)
14213 # Anyone wants to do a port?
14214 ;;
14215 irix5* | irix6* | nonstopux*)
14216 case $cc_basename in
14217 CC*)
14218 lt_prog_compiler_wl_CXX='-Wl,'
14219 lt_prog_compiler_static_CXX='-non_shared'
14220 # CC pic flag -KPIC is the default.
14221 ;;
14222 *)
14223 ;;
14224 esac
14225 ;;
14226 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14227 case $cc_basename in
14228 KCC*)
14229 # KAI C++ Compiler
14230 lt_prog_compiler_wl_CXX='--backend -Wl,'
14231 lt_prog_compiler_pic_CXX='-fPIC'
14232 ;;
14233 ecpc* )
14234 # old Intel C++ for x86_64 which still supported -KPIC.
14235 lt_prog_compiler_wl_CXX='-Wl,'
14236 lt_prog_compiler_pic_CXX='-KPIC'
14237 lt_prog_compiler_static_CXX='-static'
14238 ;;
14239 icpc* )
14240 # Intel C++, used to be incompatible with GCC.
14241 # ICC 10 doesn't accept -KPIC any more.
14242 lt_prog_compiler_wl_CXX='-Wl,'
14243 lt_prog_compiler_pic_CXX='-fPIC'
14244 lt_prog_compiler_static_CXX='-static'
14245 ;;
14246 pgCC* | pgcpp*)
14247 # Portland Group C++ compiler
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_pic_CXX='-fpic'
14250 lt_prog_compiler_static_CXX='-Bstatic'
14251 ;;
14252 cxx*)
14253 # Compaq C++
14254 # Make sure the PIC flag is empty. It appears that all Alpha
14255 # Linux and Compaq Tru64 Unix objects are PIC.
14256 lt_prog_compiler_pic_CXX=
14257 lt_prog_compiler_static_CXX='-non_shared'
14258 ;;
14259 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14260 # IBM XL 8.0, 9.0 on PPC and BlueGene
14261 lt_prog_compiler_wl_CXX='-Wl,'
14262 lt_prog_compiler_pic_CXX='-qpic'
14263 lt_prog_compiler_static_CXX='-qstaticlink'
14264 ;;
14265 *)
14266 case `$CC -V 2>&1 | sed 5q` in
14267 *Sun\ C*)
14268 # Sun C++ 5.9
14269 lt_prog_compiler_pic_CXX='-KPIC'
14270 lt_prog_compiler_static_CXX='-Bstatic'
14271 lt_prog_compiler_wl_CXX='-Qoption ld '
14272 ;;
14273 esac
14274 ;;
14275 esac
14276 ;;
14277 lynxos*)
14278 ;;
14279 m88k*)
14280 ;;
14281 mvs*)
14282 case $cc_basename in
14283 cxx*)
14284 lt_prog_compiler_pic_CXX='-W c,exportall'
14285 ;;
14286 *)
14287 ;;
14288 esac
14289 ;;
14290 netbsd* | netbsdelf*-gnu)
14291 ;;
14292 *qnx* | *nto*)
14293 # QNX uses GNU C++, but need to define -shared option too, otherwise
14294 # it will coredump.
14295 lt_prog_compiler_pic_CXX='-fPIC -shared'
14296 ;;
14297 osf3* | osf4* | osf5*)
14298 case $cc_basename in
14299 KCC*)
14300 lt_prog_compiler_wl_CXX='--backend -Wl,'
14301 ;;
14302 RCC*)
14303 # Rational C++ 2.4.1
14304 lt_prog_compiler_pic_CXX='-pic'
14305 ;;
14306 cxx*)
14307 # Digital/Compaq C++
14308 lt_prog_compiler_wl_CXX='-Wl,'
14309 # Make sure the PIC flag is empty. It appears that all Alpha
14310 # Linux and Compaq Tru64 Unix objects are PIC.
14311 lt_prog_compiler_pic_CXX=
14312 lt_prog_compiler_static_CXX='-non_shared'
14313 ;;
14314 *)
14315 ;;
14316 esac
14317 ;;
14318 psos*)
14319 ;;
14320 solaris*)
14321 case $cc_basename in
14322 CC* | sunCC*)
14323 # Sun C++ 4.2, 5.x and Centerline C++
14324 lt_prog_compiler_pic_CXX='-KPIC'
14325 lt_prog_compiler_static_CXX='-Bstatic'
14326 lt_prog_compiler_wl_CXX='-Qoption ld '
14327 ;;
14328 gcx*)
14329 # Green Hills C++ Compiler
14330 lt_prog_compiler_pic_CXX='-PIC'
14331 ;;
14332 *)
14333 ;;
14334 esac
14335 ;;
14336 sunos4*)
14337 case $cc_basename in
14338 CC*)
14339 # Sun C++ 4.x
14340 lt_prog_compiler_pic_CXX='-pic'
14341 lt_prog_compiler_static_CXX='-Bstatic'
14342 ;;
14343 lcc*)
14344 # Lucid
14345 lt_prog_compiler_pic_CXX='-pic'
14346 ;;
14347 *)
14348 ;;
14349 esac
14350 ;;
14351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14352 case $cc_basename in
14353 CC*)
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_pic_CXX='-KPIC'
14356 lt_prog_compiler_static_CXX='-Bstatic'
14357 ;;
14358 esac
14359 ;;
14360 tandem*)
14361 case $cc_basename in
14362 NCC*)
14363 # NonStop-UX NCC 3.20
14364 lt_prog_compiler_pic_CXX='-KPIC'
14365 ;;
14366 *)
14367 ;;
14368 esac
14369 ;;
14370 vxworks*)
14371 ;;
14372 *)
14373 lt_prog_compiler_can_build_shared_CXX=no
14374 ;;
14375 esac
14376 fi
14377
14378 case $host_os in
14379 # For platforms which do not support PIC, -DPIC is meaningless:
14380 *djgpp*)
14381 lt_prog_compiler_pic_CXX=
14382 ;;
14383 *)
14384 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14385 ;;
14386 esac
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14390 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14396 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14397 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14398
14399 #
14400 # Check to make sure the PIC flag actually works.
14401 #
14402 if test -n "$lt_prog_compiler_pic_CXX"; then
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14405 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 lt_cv_prog_compiler_pic_works_CXX=no
14409 ac_outfile=conftest.$ac_objext
14410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14411 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14412 # Insert the option either (1) after the last *FLAGS variable, or
14413 # (2) before a word containing "conftest.", or (3) at the end.
14414 # Note that $ac_compile itself does not contain backslashes and begins
14415 # with a dollar sign (not a hyphen), so the echo should work correctly.
14416 # The option is referenced via a variable to avoid confusing sed.
14417 lt_compile=`echo "$ac_compile" | $SED \
14418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14420 -e 's:$: $lt_compiler_flag:'`
14421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14422 (eval "$lt_compile" 2>conftest.err)
14423 ac_status=$?
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 if (exit $ac_status) && test -s "$ac_outfile"; then
14427 # The compiler can only warn and ignore the option if not recognized
14428 # So say no if there are warnings other than the usual output.
14429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_pic_works_CXX=yes
14433 fi
14434 fi
14435 $RM conftest*
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14439 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14440
14441 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14442 case $lt_prog_compiler_pic_CXX in
14443 "" | " "*) ;;
14444 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14445 esac
14446 else
14447 lt_prog_compiler_pic_CXX=
14448 lt_prog_compiler_can_build_shared_CXX=no
14449 fi
14450
14451 fi
14452
14453
14454
14455
14456
14457 #
14458 # Check to make sure the static flag actually works.
14459 #
14460 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14463 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 lt_cv_prog_compiler_static_works_CXX=no
14467 save_LDFLAGS="$LDFLAGS"
14468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14471 # The linker can only warn and ignore the option if not recognized
14472 # So say no if there are warnings
14473 if test -s conftest.err; then
14474 # Append any errors to the config.log.
14475 cat conftest.err 1>&5
14476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14478 if diff conftest.exp conftest.er2 >/dev/null; then
14479 lt_cv_prog_compiler_static_works_CXX=yes
14480 fi
14481 else
14482 lt_cv_prog_compiler_static_works_CXX=yes
14483 fi
14484 fi
14485 $RM -r conftest*
14486 LDFLAGS="$save_LDFLAGS"
14487
14488 fi
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14490 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14491
14492 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14493 :
14494 else
14495 lt_prog_compiler_static_CXX=
14496 fi
14497
14498
14499
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14503 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 lt_cv_prog_compiler_c_o_CXX=no
14507 $RM -r conftest 2>/dev/null
14508 mkdir conftest
14509 cd conftest
14510 mkdir out
14511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512
14513 lt_compiler_flag="-o out/conftest2.$ac_objext"
14514 # Insert the option either (1) after the last *FLAGS variable, or
14515 # (2) before a word containing "conftest.", or (3) at the end.
14516 # Note that $ac_compile itself does not contain backslashes and begins
14517 # with a dollar sign (not a hyphen), so the echo should work correctly.
14518 lt_compile=`echo "$ac_compile" | $SED \
14519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521 -e 's:$: $lt_compiler_flag:'`
14522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14523 (eval "$lt_compile" 2>out/conftest.err)
14524 ac_status=$?
14525 cat out/conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528 then
14529 # The compiler can only warn and ignore the option if not recognized
14530 # So say no if there are warnings
14531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_c_o_CXX=yes
14535 fi
14536 fi
14537 chmod u+w . 2>&5
14538 $RM conftest*
14539 # SGI C++ compiler will create directory out/ii_files/ for
14540 # template instantiation
14541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14542 $RM out/* && rmdir out
14543 cd ..
14544 $RM -r conftest
14545 $RM conftest*
14546
14547 fi
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14550
14551
14552
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14555 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 lt_cv_prog_compiler_c_o_CXX=no
14559 $RM -r conftest 2>/dev/null
14560 mkdir conftest
14561 cd conftest
14562 mkdir out
14563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
14565 lt_compiler_flag="-o out/conftest2.$ac_objext"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 lt_compile=`echo "$ac_compile" | $SED \
14571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14573 -e 's:$: $lt_compiler_flag:'`
14574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14575 (eval "$lt_compile" 2>out/conftest.err)
14576 ac_status=$?
14577 cat out/conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14580 then
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings
14583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_c_o_CXX=yes
14587 fi
14588 fi
14589 chmod u+w . 2>&5
14590 $RM conftest*
14591 # SGI C++ compiler will create directory out/ii_files/ for
14592 # template instantiation
14593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14594 $RM out/* && rmdir out
14595 cd ..
14596 $RM -r conftest
14597 $RM conftest*
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14601 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14602
14603
14604
14605
14606 hard_links="nottested"
14607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14608 # do not overwrite the value of need_locks provided by the user
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14610 $as_echo_n "checking if we can lock with hard links... " >&6; }
14611 hard_links=yes
14612 $RM conftest*
14613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14614 touch conftest.a
14615 ln conftest.a conftest.b 2>&5 || hard_links=no
14616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14618 $as_echo "$hard_links" >&6; }
14619 if test "$hard_links" = no; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14621 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14622 need_locks=warn
14623 fi
14624 else
14625 need_locks=no
14626 fi
14627
14628
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14632
14633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14634 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14635 case $host_os in
14636 aix[4-9]*)
14637 # If we're using GNU nm, then we don't want the "-C" option.
14638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14639 # Also, AIX nm treats weak defined symbols like other global defined
14640 # symbols, whereas GNU nm marks them as "W".
14641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14642 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'
14643 else
14644 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'
14645 fi
14646 ;;
14647 pw32*)
14648 export_symbols_cmds_CXX="$ltdll_cmds"
14649 ;;
14650 cygwin* | mingw* | cegcc*)
14651 case $cc_basename in
14652 cl*) ;;
14653 *)
14654 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'
14655 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14656 ;;
14657 esac
14658 ;;
14659 linux* | k*bsd*-gnu | gnu*)
14660 link_all_deplibs_CXX=no
14661 ;;
14662 *)
14663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14664 ;;
14665 esac
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14668 $as_echo "$ld_shlibs_CXX" >&6; }
14669 test "$ld_shlibs_CXX" = no && can_build_shared=no
14670
14671 with_gnu_ld_CXX=$with_gnu_ld
14672
14673
14674
14675
14676
14677
14678 #
14679 # Do we need to explicitly link libc?
14680 #
14681 case "x$archive_cmds_need_lc_CXX" in
14682 x|xyes)
14683 # Assume -lc should be added
14684 archive_cmds_need_lc_CXX=yes
14685
14686 if test "$enable_shared" = yes && test "$GCC" = yes; then
14687 case $archive_cmds_CXX in
14688 *'~'*)
14689 # FIXME: we may have to deal with multi-command sequences.
14690 ;;
14691 '$CC '*)
14692 # Test whether the compiler implicitly links with -lc since on some
14693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14694 # to ld, don't add -lc before -lgcc.
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14697 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 $RM conftest*
14701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14702
14703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14704 (eval $ac_compile) 2>&5
14705 ac_status=$?
14706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14707 test $ac_status = 0; } 2>conftest.err; then
14708 soname=conftest
14709 lib=conftest
14710 libobjs=conftest.$ac_objext
14711 deplibs=
14712 wl=$lt_prog_compiler_wl_CXX
14713 pic_flag=$lt_prog_compiler_pic_CXX
14714 compiler_flags=-v
14715 linker_flags=-v
14716 verstring=
14717 output_objdir=.
14718 libname=conftest
14719 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14720 allow_undefined_flag_CXX=
14721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14722 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14723 ac_status=$?
14724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14725 test $ac_status = 0; }
14726 then
14727 lt_cv_archive_cmds_need_lc_CXX=no
14728 else
14729 lt_cv_archive_cmds_need_lc_CXX=yes
14730 fi
14731 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14732 else
14733 cat conftest.err 1>&5
14734 fi
14735 $RM conftest*
14736
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14739 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14740 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14741 ;;
14742 esac
14743 fi
14744 ;;
14745 esac
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14812
14813 library_names_spec=
14814 libname_spec='lib$name'
14815 soname_spec=
14816 shrext_cmds=".so"
14817 postinstall_cmds=
14818 postuninstall_cmds=
14819 finish_cmds=
14820 finish_eval=
14821 shlibpath_var=
14822 shlibpath_overrides_runpath=unknown
14823 version_type=none
14824 dynamic_linker="$host_os ld.so"
14825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14826 need_lib_prefix=unknown
14827 hardcode_into_libs=no
14828
14829 # when you set need_version to no, make sure it does not cause -set_version
14830 # flags to be left without arguments
14831 need_version=unknown
14832
14833 case $host_os in
14834 aix3*)
14835 version_type=linux
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14837 shlibpath_var=LIBPATH
14838
14839 # AIX 3 has no versioning support, so we append a major version to the name.
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 ;;
14842
14843 aix[4-9]*)
14844 version_type=linux
14845 need_lib_prefix=no
14846 need_version=no
14847 hardcode_into_libs=yes
14848 if test "$host_cpu" = ia64; then
14849 # AIX 5 supports IA64
14850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 else
14853 # With GCC up to 2.95.x, collect2 would create an import file
14854 # for dependence libraries. The import file would start with
14855 # the line `#! .'. This would cause the generated library to
14856 # depend on `.', always an invalid library. This was fixed in
14857 # development snapshots of GCC prior to 3.0.
14858 case $host_os in
14859 aix4 | aix4.[01] | aix4.[01].*)
14860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14861 echo ' yes '
14862 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14863 :
14864 else
14865 can_build_shared=no
14866 fi
14867 ;;
14868 esac
14869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14870 # soname into executable. Probably we can add versioning support to
14871 # collect2, so additional links can be useful in future.
14872 if test "$aix_use_runtimelinking" = yes; then
14873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14874 # instead of lib<name>.a to let people know that these are not
14875 # typical AIX shared libraries.
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 else
14878 # We preserve .a as extension for shared libraries through AIX4.2
14879 # and later when we are not doing run time linking.
14880 library_names_spec='${libname}${release}.a $libname.a'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 fi
14883 shlibpath_var=LIBPATH
14884 fi
14885 ;;
14886
14887 amigaos*)
14888 case $host_cpu in
14889 powerpc)
14890 # Since July 2007 AmigaOS4 officially supports .so libraries.
14891 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 ;;
14894 m68k)
14895 library_names_spec='$libname.ixlibrary $libname.a'
14896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14897 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'
14898 ;;
14899 esac
14900 ;;
14901
14902 beos*)
14903 library_names_spec='${libname}${shared_ext}'
14904 dynamic_linker="$host_os ld.so"
14905 shlibpath_var=LIBRARY_PATH
14906 ;;
14907
14908 bsdi[45]*)
14909 version_type=linux
14910 need_version=no
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 soname_spec='${libname}${release}${shared_ext}$major'
14913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14917 # the default ld.so.conf also contains /usr/contrib/lib and
14918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14919 # libtool to hard-code these into programs
14920 ;;
14921
14922 cygwin* | mingw* | pw32* | cegcc*)
14923 version_type=windows
14924 shrext_cmds=".dll"
14925 need_version=no
14926 need_lib_prefix=no
14927
14928 case $GCC,$cc_basename in
14929 yes,*)
14930 # gcc
14931 library_names_spec='$libname.dll.a'
14932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14933 postinstall_cmds='base_file=`basename \${file}`~
14934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14935 dldir=$destdir/`dirname \$dlpath`~
14936 test -d \$dldir || mkdir -p \$dldir~
14937 $install_prog $dir/$dlname \$dldir/$dlname~
14938 chmod a+x \$dldir/$dlname~
14939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14941 fi'
14942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14943 dlpath=$dir/\$dldll~
14944 $RM \$dlpath'
14945 shlibpath_overrides_runpath=yes
14946
14947 case $host_os in
14948 cygwin*)
14949 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14950 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14951
14952 ;;
14953 mingw* | cegcc*)
14954 # MinGW DLLs use traditional 'lib' prefix
14955 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14956 ;;
14957 pw32*)
14958 # pw32 DLLs use 'pw' prefix rather than 'lib'
14959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14960 ;;
14961 esac
14962 dynamic_linker='Win32 ld.exe'
14963 ;;
14964
14965 *,cl*)
14966 # Native MSVC
14967 libname_spec='$name'
14968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14969 library_names_spec='${libname}.dll.lib'
14970
14971 case $build_os in
14972 mingw*)
14973 sys_lib_search_path_spec=
14974 lt_save_ifs=$IFS
14975 IFS=';'
14976 for lt_path in $LIB
14977 do
14978 IFS=$lt_save_ifs
14979 # Let DOS variable expansion print the short 8.3 style file name.
14980 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14981 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14982 done
14983 IFS=$lt_save_ifs
14984 # Convert to MSYS style.
14985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14986 ;;
14987 cygwin*)
14988 # Convert to unix form, then to dos form, then back to unix form
14989 # but this time dos style (no spaces!) so that the unix form looks
14990 # like /cygdrive/c/PROGRA~1:/cygdr...
14991 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14992 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14993 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14994 ;;
14995 *)
14996 sys_lib_search_path_spec="$LIB"
14997 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14998 # It is most probably a Windows format PATH.
14999 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15000 else
15001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15002 fi
15003 # FIXME: find the short name or the path components, as spaces are
15004 # common. (e.g. "Program Files" -> "PROGRA~1")
15005 ;;
15006 esac
15007
15008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15009 postinstall_cmds='base_file=`basename \${file}`~
15010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15011 dldir=$destdir/`dirname \$dlpath`~
15012 test -d \$dldir || mkdir -p \$dldir~
15013 $install_prog $dir/$dlname \$dldir/$dlname'
15014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15015 dlpath=$dir/\$dldll~
15016 $RM \$dlpath'
15017 shlibpath_overrides_runpath=yes
15018 dynamic_linker='Win32 link.exe'
15019 ;;
15020
15021 *)
15022 # Assume MSVC wrapper
15023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15024 dynamic_linker='Win32 ld.exe'
15025 ;;
15026 esac
15027 # FIXME: first we should search . and the directory the executable is in
15028 shlibpath_var=PATH
15029 ;;
15030
15031 darwin* | rhapsody*)
15032 dynamic_linker="$host_os dyld"
15033 version_type=darwin
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15037 soname_spec='${libname}${release}${major}$shared_ext'
15038 shlibpath_overrides_runpath=yes
15039 shlibpath_var=DYLD_LIBRARY_PATH
15040 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15041
15042 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15043 ;;
15044
15045 dgux*)
15046 version_type=linux
15047 need_lib_prefix=no
15048 need_version=no
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 shlibpath_var=LD_LIBRARY_PATH
15052 ;;
15053
15054 freebsd1*)
15055 dynamic_linker=no
15056 ;;
15057
15058 freebsd* | dragonfly*)
15059 # DragonFly does not have aout. When/if they implement a new
15060 # versioning mechanism, adjust this.
15061 if test -x /usr/bin/objformat; then
15062 objformat=`/usr/bin/objformat`
15063 else
15064 case $host_os in
15065 freebsd[123]*) objformat=aout ;;
15066 *) objformat=elf ;;
15067 esac
15068 fi
15069 version_type=freebsd-$objformat
15070 case $version_type in
15071 freebsd-elf*)
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15073 need_version=no
15074 need_lib_prefix=no
15075 ;;
15076 freebsd-*)
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15078 need_version=yes
15079 ;;
15080 esac
15081 shlibpath_var=LD_LIBRARY_PATH
15082 case $host_os in
15083 freebsd2*)
15084 shlibpath_overrides_runpath=yes
15085 ;;
15086 freebsd3.[01]* | freebsdelf3.[01]*)
15087 shlibpath_overrides_runpath=yes
15088 hardcode_into_libs=yes
15089 ;;
15090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15092 shlibpath_overrides_runpath=no
15093 hardcode_into_libs=yes
15094 ;;
15095 *) # from 4.6 on, and DragonFly
15096 shlibpath_overrides_runpath=yes
15097 hardcode_into_libs=yes
15098 ;;
15099 esac
15100 ;;
15101
15102 gnu*)
15103 version_type=linux
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 ;;
15112
15113 haiku*)
15114 version_type=linux
15115 need_lib_prefix=no
15116 need_version=no
15117 dynamic_linker="$host_os runtime_loader"
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 shlibpath_var=LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15123 hardcode_into_libs=yes
15124 ;;
15125
15126 hpux9* | hpux10* | hpux11*)
15127 # Give a soname corresponding to the major version so that dld.sl refuses to
15128 # link against other versions.
15129 version_type=sunos
15130 need_lib_prefix=no
15131 need_version=no
15132 case $host_cpu in
15133 ia64*)
15134 shrext_cmds='.so'
15135 hardcode_into_libs=yes
15136 dynamic_linker="$host_os dld.so"
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15143 else
15144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15145 fi
15146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15147 ;;
15148 hppa*64*)
15149 shrext_cmds='.sl'
15150 hardcode_into_libs=yes
15151 dynamic_linker="$host_os dld.sl"
15152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15158 ;;
15159 *)
15160 shrext_cmds='.sl'
15161 dynamic_linker="$host_os dld.sl"
15162 shlibpath_var=SHLIB_PATH
15163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 ;;
15167 esac
15168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15169 postinstall_cmds='chmod 555 $lib'
15170 # or fails outright, so override atomically:
15171 install_override_mode=555
15172 ;;
15173
15174 interix[3-9]*)
15175 version_type=linux
15176 need_lib_prefix=no
15177 need_version=no
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15181 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=no
15183 hardcode_into_libs=yes
15184 ;;
15185
15186 irix5* | irix6* | nonstopux*)
15187 case $host_os in
15188 nonstopux*) version_type=nonstopux ;;
15189 *)
15190 if test "$lt_cv_prog_gnu_ld" = yes; then
15191 version_type=linux
15192 else
15193 version_type=irix
15194 fi ;;
15195 esac
15196 need_lib_prefix=no
15197 need_version=no
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15200 case $host_os in
15201 irix5* | nonstopux*)
15202 libsuff= shlibsuff=
15203 ;;
15204 *)
15205 case $LD in # libtool.m4 will add one of these switches to LD
15206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15207 libsuff= shlibsuff= libmagic=32-bit;;
15208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15209 libsuff=32 shlibsuff=N32 libmagic=N32;;
15210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15212 *) libsuff= shlibsuff= libmagic=never-match;;
15213 esac
15214 ;;
15215 esac
15216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15217 shlibpath_overrides_runpath=no
15218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15220 hardcode_into_libs=yes
15221 ;;
15222
15223 # No shared lib support for Linux oldld, aout, or coff.
15224 linux*oldld* | linux*aout* | linux*coff*)
15225 dynamic_linker=no
15226 ;;
15227
15228 # This must be Linux ELF.
15229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15230 version_type=linux
15231 need_lib_prefix=no
15232 need_version=no
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 shlibpath_overrides_runpath=no
15238
15239 # Some binutils ld are patched to set DT_RUNPATH
15240 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 lt_cv_shlibpath_overrides_runpath=no
15244 save_LDFLAGS=$LDFLAGS
15245 save_libdir=$libdir
15246 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15247 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15250
15251 int
15252 main ()
15253 {
15254
15255 ;
15256 return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_cxx_try_link "$LINENO"; then :
15260 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15261 lt_cv_shlibpath_overrides_runpath=yes
15262 fi
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LDFLAGS=$save_LDFLAGS
15267 libdir=$save_libdir
15268
15269 fi
15270
15271 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15272
15273 # This implies no fast_install, which is unacceptable.
15274 # Some rework will be needed to allow for fast_install
15275 # before this can be enabled.
15276 hardcode_into_libs=yes
15277
15278 # Append ld.so.conf contents to the search path
15279 if test -f /etc/ld.so.conf; then
15280 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' ' '`
15281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15282 fi
15283
15284 # We used to test for /lib/ld.so.1 and disable shared libraries on
15285 # powerpc, because MkLinux only supported shared libraries with the
15286 # GNU dynamic linker. Since this was broken with cross compilers,
15287 # most powerpc-linux boxes support dynamic linking these days and
15288 # people can always --disable-shared, the test was removed, and we
15289 # assume the GNU/Linux dynamic linker is in use.
15290 dynamic_linker='GNU/Linux ld.so'
15291 ;;
15292
15293 netbsdelf*-gnu)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 dynamic_linker='NetBSD ld.elf_so'
15303 ;;
15304
15305 netbsd*)
15306 version_type=sunos
15307 need_lib_prefix=no
15308 need_version=no
15309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15312 dynamic_linker='NetBSD (a.out) ld.so'
15313 else
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 dynamic_linker='NetBSD ld.elf_so'
15317 fi
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15321 ;;
15322
15323 newsos6)
15324 version_type=linux
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15328 ;;
15329
15330 *nto* | *qnx*)
15331 version_type=qnx
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=no
15338 hardcode_into_libs=yes
15339 dynamic_linker='ldqnx.so'
15340 ;;
15341
15342 openbsd*)
15343 version_type=sunos
15344 sys_lib_dlsearch_path_spec="/usr/lib"
15345 need_lib_prefix=no
15346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15347 case $host_os in
15348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15349 *) need_version=no ;;
15350 esac
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15355 case $host_os in
15356 openbsd2.[89] | openbsd2.[89].*)
15357 shlibpath_overrides_runpath=no
15358 ;;
15359 *)
15360 shlibpath_overrides_runpath=yes
15361 ;;
15362 esac
15363 else
15364 shlibpath_overrides_runpath=yes
15365 fi
15366 ;;
15367
15368 os2*)
15369 libname_spec='$name'
15370 shrext_cmds=".dll"
15371 need_lib_prefix=no
15372 library_names_spec='$libname${shared_ext} $libname.a'
15373 dynamic_linker='OS/2 ld.exe'
15374 shlibpath_var=LIBPATH
15375 ;;
15376
15377 osf3* | osf4* | osf5*)
15378 version_type=osf
15379 need_lib_prefix=no
15380 need_version=no
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15386 ;;
15387
15388 rdos*)
15389 dynamic_linker=no
15390 ;;
15391
15392 solaris*)
15393 version_type=linux
15394 need_lib_prefix=no
15395 need_version=no
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15401 # ldd complains unless libraries are executable
15402 postinstall_cmds='chmod +x $lib'
15403 ;;
15404
15405 sunos4*)
15406 version_type=sunos
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=yes
15411 if test "$with_gnu_ld" = yes; then
15412 need_lib_prefix=no
15413 fi
15414 need_version=yes
15415 ;;
15416
15417 sysv4 | sysv4.3*)
15418 version_type=linux
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 case $host_vendor in
15423 sni)
15424 shlibpath_overrides_runpath=no
15425 need_lib_prefix=no
15426 runpath_var=LD_RUN_PATH
15427 ;;
15428 siemens)
15429 need_lib_prefix=no
15430 ;;
15431 motorola)
15432 need_lib_prefix=no
15433 need_version=no
15434 shlibpath_overrides_runpath=no
15435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 ;;
15437 esac
15438 ;;
15439
15440 sysv4*MP*)
15441 if test -d /usr/nec ;then
15442 version_type=linux
15443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15444 soname_spec='$libname${shared_ext}.$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 fi
15447 ;;
15448
15449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15450 version_type=freebsd-elf
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=yes
15457 hardcode_into_libs=yes
15458 if test "$with_gnu_ld" = yes; then
15459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15460 else
15461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15462 case $host_os in
15463 sco3.2v5*)
15464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15465 ;;
15466 esac
15467 fi
15468 sys_lib_dlsearch_path_spec='/usr/lib'
15469 ;;
15470
15471 tpf*)
15472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 ;;
15481
15482 uts4*)
15483 version_type=linux
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 ;;
15488
15489 *)
15490 dynamic_linker=no
15491 ;;
15492 esac
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15494 $as_echo "$dynamic_linker" >&6; }
15495 test "$dynamic_linker" = no && can_build_shared=no
15496
15497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15498 if test "$GCC" = yes; then
15499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15500 fi
15501
15502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15503 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15504 fi
15505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15547 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15548 hardcode_action_CXX=
15549 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15550 test -n "$runpath_var_CXX" ||
15551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15552
15553 # We can hardcode non-existent directories.
15554 if test "$hardcode_direct_CXX" != no &&
15555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15556 # have to relink, otherwise we might link with an installed library
15557 # when we should be linking with a yet-to-be-installed one
15558 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15559 test "$hardcode_minus_L_CXX" != no; then
15560 # Linking always hardcodes the temporary library directory.
15561 hardcode_action_CXX=relink
15562 else
15563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15564 hardcode_action_CXX=immediate
15565 fi
15566 else
15567 # We cannot hardcode anything, or else we can only hardcode existing
15568 # directories.
15569 hardcode_action_CXX=unsupported
15570 fi
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15572 $as_echo "$hardcode_action_CXX" >&6; }
15573
15574 if test "$hardcode_action_CXX" = relink ||
15575 test "$inherit_rpath_CXX" = yes; then
15576 # Fast installation is not supported
15577 enable_fast_install=no
15578 elif test "$shlibpath_overrides_runpath" = yes ||
15579 test "$enable_shared" = no; then
15580 # Fast installation is not necessary
15581 enable_fast_install=needless
15582 fi
15583
15584
15585
15586
15587
15588
15589
15590 fi # test -n "$compiler"
15591
15592 CC=$lt_save_CC
15593 CFLAGS=$lt_save_CFLAGS
15594 LDCXX=$LD
15595 LD=$lt_save_LD
15596 GCC=$lt_save_GCC
15597 with_gnu_ld=$lt_save_with_gnu_ld
15598 lt_cv_path_LDCXX=$lt_cv_path_LD
15599 lt_cv_path_LD=$lt_save_path_LD
15600 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15601 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15602 fi # test "$_lt_caught_CXX_error" != yes
15603
15604 ac_ext=c
15605 ac_cpp='$CPP $CPPFLAGS'
15606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622 ac_config_commands="$ac_config_commands libtool"
15623
15624
15625
15626
15627 # Only expand once:
15628
15629
15630 if test -n "$ac_tool_prefix"; then
15631 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15632 set dummy ${ac_tool_prefix}windres; ac_word=$2
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15634 $as_echo_n "checking for $ac_word... " >&6; }
15635 if ${ac_cv_prog_RC+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if test -n "$RC"; then
15639 ac_cv_prog_RC="$RC" # Let the user override the test.
15640 else
15641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15642 for as_dir in $PATH
15643 do
15644 IFS=$as_save_IFS
15645 test -z "$as_dir" && as_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15648 ac_cv_prog_RC="${ac_tool_prefix}windres"
15649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15650 break 2
15651 fi
15652 done
15653 done
15654 IFS=$as_save_IFS
15655
15656 fi
15657 fi
15658 RC=$ac_cv_prog_RC
15659 if test -n "$RC"; then
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15661 $as_echo "$RC" >&6; }
15662 else
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15664 $as_echo "no" >&6; }
15665 fi
15666
15667
15668 fi
15669 if test -z "$ac_cv_prog_RC"; then
15670 ac_ct_RC=$RC
15671 # Extract the first word of "windres", so it can be a program name with args.
15672 set dummy windres; ac_word=$2
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15674 $as_echo_n "checking for $ac_word... " >&6; }
15675 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "$ac_ct_RC"; then
15679 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15680 else
15681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682 for as_dir in $PATH
15683 do
15684 IFS=$as_save_IFS
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
15687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15688 ac_cv_prog_ac_ct_RC="windres"
15689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15690 break 2
15691 fi
15692 done
15693 done
15694 IFS=$as_save_IFS
15695
15696 fi
15697 fi
15698 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15699 if test -n "$ac_ct_RC"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15701 $as_echo "$ac_ct_RC" >&6; }
15702 else
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15705 fi
15706
15707 if test "x$ac_ct_RC" = x; then
15708 RC=""
15709 else
15710 case $cross_compiling:$ac_tool_warned in
15711 yes:)
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15714 ac_tool_warned=yes ;;
15715 esac
15716 RC=$ac_ct_RC
15717 fi
15718 else
15719 RC="$ac_cv_prog_RC"
15720 fi
15721
15722
15723
15724 # Source file extension for RC test sources.
15725 ac_ext=rc
15726
15727 # Object file extension for compiled RC test sources.
15728 objext=o
15729 objext_RC=$objext
15730
15731 # Code to be used in simple compile tests
15732 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15733
15734 # Code to be used in simple link tests
15735 lt_simple_link_test_code="$lt_simple_compile_test_code"
15736
15737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15738
15739
15740
15741
15742
15743
15744 # If no C compiler was specified, use CC.
15745 LTCC=${LTCC-"$CC"}
15746
15747 # If no C compiler flags were specified, use CFLAGS.
15748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15749
15750 # Allow CC to be a program name with arguments.
15751 compiler=$CC
15752
15753
15754 # save warnings/boilerplate of simple test code
15755 ac_outfile=conftest.$ac_objext
15756 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15758 _lt_compiler_boilerplate=`cat conftest.err`
15759 $RM conftest*
15760
15761 ac_outfile=conftest.$ac_objext
15762 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15764 _lt_linker_boilerplate=`cat conftest.err`
15765 $RM -r conftest*
15766
15767
15768 # Allow CC to be a program name with arguments.
15769 lt_save_CC="$CC"
15770 lt_save_CFLAGS=$CFLAGS
15771 lt_save_GCC=$GCC
15772 GCC=
15773 CC=${RC-"windres"}
15774 CFLAGS=
15775 compiler=$CC
15776 compiler_RC=$CC
15777 for cc_temp in $compiler""; do
15778 case $cc_temp in
15779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15781 \-*) ;;
15782 *) break;;
15783 esac
15784 done
15785 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15786
15787 lt_cv_prog_compiler_c_o_RC=yes
15788
15789 if test -n "$compiler"; then
15790 :
15791
15792
15793
15794 fi
15795
15796 GCC=$lt_save_GCC
15797 ac_ext=c
15798 ac_cpp='$CPP $CPPFLAGS'
15799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802
15803 CC=$lt_save_CC
15804 CFLAGS=$lt_save_CFLAGS
15805
15806
15807 # Extract the first word of "autogen", so it can be a program name with args.
15808 set dummy autogen; ac_word=$2
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810 $as_echo_n "checking for $ac_word... " >&6; }
15811 if ${ac_cv_prog_HAVE_AUTOGEN+:} false; then :
15812 $as_echo_n "(cached) " >&6
15813 else
15814 if test -n "$HAVE_AUTOGEN"; then
15815 ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
15816 else
15817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818 for as_dir in $PATH
15819 do
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15824 ac_cv_prog_HAVE_AUTOGEN="yes"
15825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15826 break 2
15827 fi
15828 done
15829 done
15830 IFS=$as_save_IFS
15831
15832 test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
15833 fi
15834 fi
15835 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
15836 if test -n "$HAVE_AUTOGEN"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
15838 $as_echo "$HAVE_AUTOGEN" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15842 fi
15843
15844
15845 # Extract the first word of "wine", so it can be a program name with args.
15846 set dummy wine; ac_word=$2
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15848 $as_echo_n "checking for $ac_word... " >&6; }
15849 if ${ac_cv_prog_HAVE_WINE+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 if test -n "$HAVE_WINE"; then
15853 ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
15854 else
15855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856 for as_dir in $PATH
15857 do
15858 IFS=$as_save_IFS
15859 test -z "$as_dir" && as_dir=.
15860 for ac_exec_ext in '' $ac_executable_extensions; do
15861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15862 ac_cv_prog_HAVE_WINE="yes"
15863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15864 break 2
15865 fi
15866 done
15867 done
15868 IFS=$as_save_IFS
15869
15870 test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
15871 fi
15872 fi
15873 HAVE_WINE=$ac_cv_prog_HAVE_WINE
15874 if test -n "$HAVE_WINE"; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
15876 $as_echo "$HAVE_WINE" >&6; }
15877 else
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15880 fi
15881
15882
15883
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15886 $as_echo_n "checking whether ln -s works... " >&6; }
15887 LN_S=$as_ln_s
15888 if test "$LN_S" = "ln -s"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15890 $as_echo "yes" >&6; }
15891 else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15893 $as_echo "no, using $LN_S" >&6; }
15894 fi
15895
15896
15897 #------------------------------------------------------------------------------------
15898 # Rules for library version information:
15899 #
15900 # 1. Start with version information of `0:0:0' for each libtool library.
15901 # 2. Update the version information only immediately before a public release of
15902 # your software. More frequent updates are unnecessary, and only guarantee
15903 # that the current interface number gets larger faster.
15904 # 3. If the library source code has changed at all since the last update, then
15905 # increment revision (`c:r:a' becomes `c:r+1:a').
15906 # 4. If any interfaces have been added, removed, or changed since the last update,
15907 # increment current, and set revision to 0.
15908 # 5. If any interfaces have been added since the last public release, then increment
15909 # age.
15910 # 6. If any interfaces have been removed since the last public release, then set age
15911 # to 0.
15912
15913 CLEAN_VERSION=`echo $PACKAGE_VERSION | $SED "s/p.*//"`
15914 VERSION_MINOR=`echo $CLEAN_VERSION | $SED "s/.*\.//"`
15915
15916 SHARED_VERSION_INFO="1:$VERSION_MINOR:0"
15917
15918 #------------------------------------------------------------------------------------
15919
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15921 $as_echo_n "checking for ANSI C header files... " >&6; }
15922 if ${ac_cv_header_stdc+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #include <stdlib.h>
15928 #include <stdarg.h>
15929 #include <string.h>
15930 #include <float.h>
15931
15932 int
15933 main ()
15934 {
15935
15936 ;
15937 return 0;
15938 }
15939 _ACEOF
15940 if ac_fn_c_try_compile "$LINENO"; then :
15941 ac_cv_header_stdc=yes
15942 else
15943 ac_cv_header_stdc=no
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946
15947 if test $ac_cv_header_stdc = yes; then
15948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 #include <string.h>
15952
15953 _ACEOF
15954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15955 $EGREP "memchr" >/dev/null 2>&1; then :
15956
15957 else
15958 ac_cv_header_stdc=no
15959 fi
15960 rm -f conftest*
15961
15962 fi
15963
15964 if test $ac_cv_header_stdc = yes; then
15965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 #include <stdlib.h>
15969
15970 _ACEOF
15971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972 $EGREP "free" >/dev/null 2>&1; then :
15973
15974 else
15975 ac_cv_header_stdc=no
15976 fi
15977 rm -f conftest*
15978
15979 fi
15980
15981 if test $ac_cv_header_stdc = yes; then
15982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15983 if test "$cross_compiling" = yes; then :
15984 :
15985 else
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #include <ctype.h>
15989 #include <stdlib.h>
15990 #if ((' ' & 0x0FF) == 0x020)
15991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15993 #else
15994 # define ISLOWER(c) \
15995 (('a' <= (c) && (c) <= 'i') \
15996 || ('j' <= (c) && (c) <= 'r') \
15997 || ('s' <= (c) && (c) <= 'z'))
15998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15999 #endif
16000
16001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16002 int
16003 main ()
16004 {
16005 int i;
16006 for (i = 0; i < 256; i++)
16007 if (XOR (islower (i), ISLOWER (i))
16008 || toupper (i) != TOUPPER (i))
16009 return 2;
16010 return 0;
16011 }
16012 _ACEOF
16013 if ac_fn_c_try_run "$LINENO"; then :
16014
16015 else
16016 ac_cv_header_stdc=no
16017 fi
16018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16019 conftest.$ac_objext conftest.beam conftest.$ac_ext
16020 fi
16021
16022 fi
16023 fi
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16025 $as_echo "$ac_cv_header_stdc" >&6; }
16026 if test $ac_cv_header_stdc = yes; then
16027
16028 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16029
16030 fi
16031
16032
16033 for ac_header in endian.h
16034 do :
16035 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16036 if test "x$ac_cv_header_endian_h" = xyes; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define HAVE_ENDIAN_H 1
16039 _ACEOF
16040
16041 fi
16042
16043 done
16044
16045 for ac_header in byteswap.h
16046 do :
16047 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
16048 if test "x$ac_cv_header_byteswap_h" = xyes; then :
16049 cat >>confdefs.h <<_ACEOF
16050 #define HAVE_BYTESWAP_H 1
16051 _ACEOF
16052
16053 fi
16054
16055 done
16056
16057 for ac_header in locale.h
16058 do :
16059 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16060 if test "x$ac_cv_header_locale_h" = xyes; then :
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_LOCALE_H 1
16063 _ACEOF
16064
16065 fi
16066
16067 done
16068
16069 for ac_header in sys/time.h
16070 do :
16071 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16072 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_SYS_TIME_H 1
16075 _ACEOF
16076
16077 fi
16078
16079 done
16080
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16083 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16084 if ${ac_cv_header_sys_wait_h+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <sys/types.h>
16090 #include <sys/wait.h>
16091 #ifndef WEXITSTATUS
16092 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16093 #endif
16094 #ifndef WIFEXITED
16095 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16096 #endif
16097
16098 int
16099 main ()
16100 {
16101 int s;
16102 wait (&s);
16103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16104 ;
16105 return 0;
16106 }
16107 _ACEOF
16108 if ac_fn_c_try_compile "$LINENO"; then :
16109 ac_cv_header_sys_wait_h=yes
16110 else
16111 ac_cv_header_sys_wait_h=no
16112 fi
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16116 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16117 if test $ac_cv_header_sys_wait_h = yes; then
16118
16119 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16120
16121 fi
16122
16123
16124 ac_fn_c_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default"
16125 if test "x$ac_cv_have_decl_S_IRGRP" = xyes; then :
16126 ac_have_decl=1
16127 else
16128 ac_have_decl=0
16129 fi
16130
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_DECL_S_IRGRP $ac_have_decl
16133 _ACEOF
16134
16135 if test x$ac_cv_have_decl_S_IRGRP = xyes ; then
16136
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_DECL_S_IRGRP 1
16139 _ACEOF
16140
16141 else
16142 cat >>confdefs.h <<_ACEOF
16143 #define HAVE_DECL_S_IRGRP 0
16144 _ACEOF
16145
16146 fi
16147
16148 if test "$build_os:$target_os:$host_os:$HAVE_WINE" = "linux-gnu:mingw32msvc:mingw32msvc:yes"; then
16149 LINUX_MINGW_CROSS_TEST_TRUE=
16150 LINUX_MINGW_CROSS_TEST_FALSE='#'
16151 else
16152 LINUX_MINGW_CROSS_TEST_TRUE='#'
16153 LINUX_MINGW_CROSS_TEST_FALSE=
16154 fi
16155
16156
16157 #====================================================================================
16158 # Check for support of the struct hack.
16159
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C99 struct flexible array support" >&5
16161 $as_echo_n "checking C99 struct flexible array support... " >&6; }
16162 if ${ac_cv_c99_flexible_array+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 # Initialize to unknown
16166 ac_cv_c99_flexible_array=no
16167
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170
16171 #include <stdlib.h>
16172 typedef struct {
16173 int k;
16174 char buffer [] ;
16175 } MY_STRUCT ;
16176
16177 int
16178 main ()
16179 {
16180 MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
16181 ;
16182 return 0;
16183 }
16184 _ACEOF
16185 if ac_fn_c_try_link "$LINENO"; then :
16186 ac_cv_c99_flexible_array=yes
16187 else
16188 ac_cv_c99_flexible_array=no
16189
16190 fi
16191 rm -f core conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16193 fi
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_flexible_array" >&5
16195 $as_echo "$ac_cv_c99_flexible_array" >&6; }
16196
16197
16198 if test x$ac_cv_c99_flexible_array = xyes ; then
16199
16200 $as_echo "#define HAVE_FLEXIBLE_ARRAY 1" >>confdefs.h
16201
16202 else
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
16204 $as_echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** feature known as the flexible array struct member. ***" >&5
16206 $as_echo "$as_me: WARNING: *** feature known as the flexible array struct member. ***" >&2;}
16207 $as_echo "#define HAVE_FLEXIBLE_ARRAY 0" >>confdefs.h
16208
16209 fi
16210
16211 #====================================================================================
16212 # Couple of initializations here. Fill in real values later.
16213
16214 SHLIB_VERSION_ARG=""
16215
16216 #====================================================================================
16217 # Finished checking, handle options.
16218
16219 # Check whether --enable-experimental was given.
16220 if test "${enable_experimental+set}" = set; then :
16221 enableval=$enable_experimental;
16222 fi
16223
16224
16225 EXPERIMENTAL_CODE=0
16226 if test x$enable_experimental = xyes ; then
16227 EXPERIMENTAL_CODE=1
16228 fi
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
16232 _ACEOF
16233
16234
16235 # Check whether --enable-gcc-werror was given.
16236 if test "${enable_gcc_werror+set}" = set; then :
16237 enableval=$enable_gcc_werror;
16238 fi
16239
16240
16241 # Check whether --enable-gcc-pipe was given.
16242 if test "${enable_gcc_pipe+set}" = set; then :
16243 enableval=$enable_gcc_pipe;
16244 fi
16245
16246
16247 # Check whether --enable-gcc-opt was given.
16248 if test "${enable_gcc_opt+set}" = set; then :
16249 enableval=$enable_gcc_opt;
16250 fi
16251
16252
16253 # Check whether --enable-cpu-clip was given.
16254 if test "${enable_cpu_clip+set}" = set; then :
16255 enableval=$enable_cpu_clip;
16256 fi
16257
16258
16259 # Check whether --enable-bow-docs was given.
16260 if test "${enable_bow_docs+set}" = set; then :
16261 enableval=$enable_bow_docs;
16262 fi
16263
16264
16265 # Check whether --enable-sqlite was given.
16266 if test "${enable_sqlite+set}" = set; then :
16267 enableval=$enable_sqlite;
16268 fi
16269
16270
16271 # Check whether --enable-alsa was given.
16272 if test "${enable_alsa+set}" = set; then :
16273 enableval=$enable_alsa;
16274 fi
16275
16276
16277 # Check whether --enable-external-libs was given.
16278 if test "${enable_external_libs+set}" = set; then :
16279 enableval=$enable_external_libs;
16280 fi
16281
16282
16283 # Check whether --enable-octave was given.
16284 if test "${enable_octave+set}" = set; then :
16285 enableval=$enable_octave;
16286 fi
16287
16288
16289 # Check whether --enable-test-coverage was given.
16290 if test "${enable_test_coverage+set}" = set; then :
16291 enableval=$enable_test_coverage;
16292 fi
16293
16294 if test "$enable_test_coverage" = yes; then
16295 ENABLE_TEST_COVERAGE_TRUE=
16296 ENABLE_TEST_COVERAGE_FALSE='#'
16297 else
16298 ENABLE_TEST_COVERAGE_TRUE='#'
16299 ENABLE_TEST_COVERAGE_FALSE=
16300 fi
16301
16302
16303 #====================================================================================
16304 # Check types and their sizes.
16305
16306 # The cast to long int works around a bug in the HP C Compiler
16307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16309 # This bug is HP SR number 8606223364.
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
16311 $as_echo_n "checking size of wchar_t... " >&6; }
16312 if ${ac_cv_sizeof_wchar_t+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16315 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
16316
16317 else
16318 if test "$ac_cv_type_wchar_t" = yes; then
16319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16321 as_fn_error 77 "cannot compute sizeof (wchar_t)
16322 See \`config.log' for more details" "$LINENO" 5; }
16323 else
16324 ac_cv_sizeof_wchar_t=0
16325 fi
16326 fi
16327
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
16330 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
16331
16332
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
16336 _ACEOF
16337
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 short" >&5
16344 $as_echo_n "checking size of short... " >&6; }
16345 if ${ac_cv_sizeof_short+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16349
16350 else
16351 if test "$ac_cv_type_short" = 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 (short)
16355 See \`config.log' for more details" "$LINENO" 5; }
16356 else
16357 ac_cv_sizeof_short=0
16358 fi
16359 fi
16360
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16363 $as_echo "$ac_cv_sizeof_short" >&6; }
16364
16365
16366
16367 cat >>confdefs.h <<_ACEOF
16368 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
16377 $as_echo_n "checking size of int... " >&6; }
16378 if ${ac_cv_sizeof_int+:} false; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16382
16383 else
16384 if test "$ac_cv_type_int" = 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 (int)
16388 See \`config.log' for more details" "$LINENO" 5; }
16389 else
16390 ac_cv_sizeof_int=0
16391 fi
16392 fi
16393
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16396 $as_echo "$ac_cv_sizeof_int" >&6; }
16397
16398
16399
16400 cat >>confdefs.h <<_ACEOF
16401 #define SIZEOF_INT $ac_cv_sizeof_int
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 long" >&5
16410 $as_echo_n "checking size of long... " >&6; }
16411 if ${ac_cv_sizeof_long+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16415
16416 else
16417 if test "$ac_cv_type_long" = 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 (long)
16421 See \`config.log' for more details" "$LINENO" 5; }
16422 else
16423 ac_cv_sizeof_long=0
16424 fi
16425 fi
16426
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16429 $as_echo "$ac_cv_sizeof_long" >&6; }
16430
16431
16432
16433 cat >>confdefs.h <<_ACEOF
16434 #define SIZEOF_LONG $ac_cv_sizeof_long
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 float" >&5
16443 $as_echo_n "checking size of float... " >&6; }
16444 if ${ac_cv_sizeof_float+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
16448
16449 else
16450 if test "$ac_cv_type_float" = 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 (float)
16454 See \`config.log' for more details" "$LINENO" 5; }
16455 else
16456 ac_cv_sizeof_float=0
16457 fi
16458 fi
16459
16460 fi
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16462 $as_echo "$ac_cv_sizeof_float" >&6; }
16463
16464
16465
16466 cat >>confdefs.h <<_ACEOF
16467 #define SIZEOF_FLOAT $ac_cv_sizeof_float
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 double" >&5
16476 $as_echo_n "checking size of double... " >&6; }
16477 if ${ac_cv_sizeof_double+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16481
16482 else
16483 if test "$ac_cv_type_double" = 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 (double)
16487 See \`config.log' for more details" "$LINENO" 5; }
16488 else
16489 ac_cv_sizeof_double=0
16490 fi
16491 fi
16492
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16495 $as_echo "$ac_cv_sizeof_double" >&6; }
16496
16497
16498
16499 cat >>confdefs.h <<_ACEOF
16500 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
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 void*" >&5
16509 $as_echo_n "checking size of void*... " >&6; }
16510 if ${ac_cv_sizeof_voidp+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
16514
16515 else
16516 if test "$ac_cv_type_voidp" = 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 (void*)
16520 See \`config.log' for more details" "$LINENO" 5; }
16521 else
16522 ac_cv_sizeof_voidp=0
16523 fi
16524 fi
16525
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16528 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16529
16530
16531
16532 cat >>confdefs.h <<_ACEOF
16533 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
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 size_t" >&5
16542 $as_echo_n "checking size of size_t... " >&6; }
16543 if ${ac_cv_sizeof_size_t+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16547
16548 else
16549 if test "$ac_cv_type_size_t" = 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 (size_t)
16553 See \`config.log' for more details" "$LINENO" 5; }
16554 else
16555 ac_cv_sizeof_size_t=0
16556 fi
16557 fi
16558
16559 fi
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16561 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16562
16563
16564
16565 cat >>confdefs.h <<_ACEOF
16566 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
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 int64_t" >&5
16575 $as_echo_n "checking size of int64_t... " >&6; }
16576 if ${ac_cv_sizeof_int64_t+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578 else
16579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
16580
16581 else
16582 if test "$ac_cv_type_int64_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 (int64_t)
16586 See \`config.log' for more details" "$LINENO" 5; }
16587 else
16588 ac_cv_sizeof_int64_t=0
16589 fi
16590 fi
16591
16592 fi
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
16594 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
16595
16596
16597
16598 cat >>confdefs.h <<_ACEOF
16599 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_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 long long" >&5
16608 $as_echo_n "checking size of long long... " >&6; }
16609 if ${ac_cv_sizeof_long_long+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611 else
16612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16613
16614 else
16615 if test "$ac_cv_type_long_long" = 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 (long long)
16619 See \`config.log' for more details" "$LINENO" 5; }
16620 else
16621 ac_cv_sizeof_long_long=0
16622 fi
16623 fi
16624
16625 fi
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16627 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16628
16629
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16633 _ACEOF
16634
16635
16636
16637 #====================================================================================
16638 # Find an appropriate type for sf_count_t.
16639 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
16640 # Unfortunately there is more than one way of ensuring this so need to do some
16641 # pretty rigourous testing here.
16642
16643 unset ac_cv_sizeof_off_t
16644
16645 # The cast to long int works around a bug in the HP C Compiler
16646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16648 # This bug is HP SR number 8606223364.
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16650 $as_echo_n "checking size of off_t... " >&6; }
16651 if ${ac_cv_sizeof_off_t+:} false; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16655
16656 else
16657 if test "$ac_cv_type_off_t" = yes; then
16658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16660 as_fn_error 77 "cannot compute sizeof (off_t)
16661 See \`config.log' for more details" "$LINENO" 5; }
16662 else
16663 ac_cv_sizeof_off_t=0
16664 fi
16665 fi
16666
16667 fi
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16669 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16670
16671
16672
16673 cat >>confdefs.h <<_ACEOF
16674 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16675 _ACEOF
16676
16677 # Fake default value.
16678
16679 case "$host_os" in
16680 mingw32msvc | mingw32)
16681 TYPEOF_SF_COUNT_T="__int64"
16682 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16683 SIZEOF_SF_COUNT_T=8
16684
16685 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
16686
16687 ;;
16688 *)
16689 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
16690 # If sizeof (off_t) is 8, no further checking is needed.
16691 TYPEOF_SF_COUNT_T="int64_t"
16692 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16693 SIZEOF_SF_COUNT_T=8
16694 else
16695 # Check for common 64 bit file offset types.
16696 # The cast to long int works around a bug in the HP C Compiler
16697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16699 # This bug is HP SR number 8606223364.
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
16701 $as_echo_n "checking size of loff_t... " >&6; }
16702 if ${ac_cv_sizeof_loff_t+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
16705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t" "$ac_includes_default"; then :
16706
16707 else
16708 if test "$ac_cv_type_loff_t" = yes; then
16709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16711 as_fn_error 77 "cannot compute sizeof (loff_t)
16712 See \`config.log' for more details" "$LINENO" 5; }
16713 else
16714 ac_cv_sizeof_loff_t=0
16715 fi
16716 fi
16717
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
16720 $as_echo "$ac_cv_sizeof_loff_t" >&6; }
16721
16722
16723
16724 cat >>confdefs.h <<_ACEOF
16725 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
16726 _ACEOF
16727
16728 # Fake default value.
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 off64_t" >&5
16734 $as_echo_n "checking size of off64_t... " >&6; }
16735 if ${ac_cv_sizeof_off64_t+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
16739
16740 else
16741 if test "$ac_cv_type_off64_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 (off64_t)
16745 See \`config.log' for more details" "$LINENO" 5; }
16746 else
16747 ac_cv_sizeof_off64_t=0
16748 fi
16749 fi
16750
16751 fi
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
16753 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
16754
16755
16756
16757 cat >>confdefs.h <<_ACEOF
16758 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
16759 _ACEOF
16760
16761 # Fake default value.
16762
16763 TYPEOF_SF_COUNT_T="unknown"
16764 if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
16765 TYPEOF_SF_COUNT_T="int64_t"
16766 SIZEOF_SF_COUNT_T=8
16767 elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
16768 TYPEOF_SF_COUNT_T="int64_t"
16769 SIZEOF_SF_COUNT_T=8
16770 fi
16771
16772 # Save the old sizeof (off_t) value and then unset it to see if it
16773 # changes when Large File Support is enabled.
16774
16775 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
16776 unset ac_cv_sizeof_off_t
16777
16778
16779 # Check whether --enable-largefile was given.
16780 if test "${enable_largefile+set}" = set; then :
16781 enableval=$enable_largefile;
16782 fi
16783
16784 if test "$enable_largefile" != no; then
16785 if test -n "$ac_tool_prefix"; then
16786 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
16787 set dummy ${ac_tool_prefix}getconf; ac_word=$2
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16789 $as_echo_n "checking for $ac_word... " >&6; }
16790 if ${ac_cv_prog_GETCONF+:} false; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if test -n "$GETCONF"; then
16794 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
16795 else
16796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797 for as_dir in $PATH
16798 do
16799 IFS=$as_save_IFS
16800 test -z "$as_dir" && as_dir=.
16801 for ac_exec_ext in '' $ac_executable_extensions; do
16802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16803 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
16804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16805 break 2
16806 fi
16807 done
16808 done
16809 IFS=$as_save_IFS
16810
16811 fi
16812 fi
16813 GETCONF=$ac_cv_prog_GETCONF
16814 if test -n "$GETCONF"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
16816 $as_echo "$GETCONF" >&6; }
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16820 fi
16821
16822
16823 fi
16824 if test -z "$ac_cv_prog_GETCONF"; then
16825 ac_ct_GETCONF=$GETCONF
16826 # Extract the first word of "getconf", so it can be a program name with args.
16827 set dummy getconf; ac_word=$2
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16829 $as_echo_n "checking for $ac_word... " >&6; }
16830 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
16831 $as_echo_n "(cached) " >&6
16832 else
16833 if test -n "$ac_ct_GETCONF"; then
16834 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
16835 else
16836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16837 for as_dir in $PATH
16838 do
16839 IFS=$as_save_IFS
16840 test -z "$as_dir" && as_dir=.
16841 for ac_exec_ext in '' $ac_executable_extensions; do
16842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16843 ac_cv_prog_ac_ct_GETCONF="getconf"
16844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16845 break 2
16846 fi
16847 done
16848 done
16849 IFS=$as_save_IFS
16850
16851 fi
16852 fi
16853 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
16854 if test -n "$ac_ct_GETCONF"; then
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
16856 $as_echo "$ac_ct_GETCONF" >&6; }
16857 else
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859 $as_echo "no" >&6; }
16860 fi
16861
16862 if test "x$ac_ct_GETCONF" = x; then
16863 GETCONF=""
16864 else
16865 case $cross_compiling:$ac_tool_warned in
16866 yes:)
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16869 ac_tool_warned=yes ;;
16870 esac
16871 GETCONF=$ac_ct_GETCONF
16872 fi
16873 else
16874 GETCONF="$ac_cv_prog_GETCONF"
16875 fi
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
16878 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
16879 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
16883 ac_cv_sys_largefile_CFLAGS=no
16884 case "$host_os" in
16885 # IRIX 6.2 and later require cc -n32.
16886 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
16887 if test "$GCC" != yes; then
16888 ac_cv_sys_largefile_CFLAGS=-n32
16889 fi
16890 ac_save_CC="$CC"
16891 CC="$CC $ac_cv_sys_largefile_CFLAGS"
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16894
16895 int
16896 main ()
16897 {
16898
16899 ;
16900 return 0;
16901 }
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904
16905 else
16906 ac_cv_sys_largefile_CFLAGS=no
16907 fi
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 CC="$ac_save_CC"
16911 esac
16912 }
16913 fi
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
16915 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
16917 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
16918 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
16922 ac_cv_sys_largefile_LDFLAGS=no
16923
16924 }
16925 fi
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
16927 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
16929 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
16930 if ${ac_cv_sys_largefile_LIBS+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
16934 ac_cv_sys_largefile_LIBS=no
16935
16936 }
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
16939 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
16940
16941 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16942 case "$ac_flag" in
16943 no) ;;
16944 -D_FILE_OFFSET_BITS=*) ;;
16945 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
16946 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
16947 -D?* | -I?*)
16948 case "$ac_flag" in
16949 no) ;;
16950 ?*)
16951 case "$CPPFLAGS" in
16952 '') CPPFLAGS="$ac_flag" ;;
16953 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
16954 esac ;;
16955 esac ;;
16956 *)
16957 case "$ac_flag" in
16958 no) ;;
16959 ?*)
16960 case "$CFLAGS" in
16961 '') CFLAGS="$ac_flag" ;;
16962 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
16963 esac ;;
16964 esac ;;
16965 esac
16966 done
16967 case "$ac_cv_sys_largefile_LDFLAGS" in
16968 no) ;;
16969 ?*)
16970 case "$LDFLAGS" in
16971 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
16972 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
16973 esac ;;
16974 esac
16975 case "$ac_cv_sys_largefile_LIBS" in
16976 no) ;;
16977 ?*)
16978 case "$LIBS" in
16979 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
16980 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
16981 esac ;;
16982 esac
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
16984 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
16985 if ${ac_cv_sys_file_offset_bits+:} false; then :
16986 $as_echo_n "(cached) " >&6
16987 else
16988 ac_cv_sys_file_offset_bits=no
16989
16990 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16991 case "$ac_flag" in
16992 -D_FILE_OFFSET_BITS)
16993 ac_cv_sys_file_offset_bits=1 ;;
16994 -D_FILE_OFFSET_BITS=*)
16995 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16996 esac
16997 done
16998
16999 fi
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17001 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17002 if test "$ac_cv_sys_file_offset_bits" != no; then
17003
17004 cat >>confdefs.h <<_ACEOF
17005 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17006 _ACEOF
17007
17008 fi
17009 case "$host_os" in
17010 # HP-UX 10.20 and later
17011 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
17012 ac_cv_sys_file_offset_bits=64 ;;
17013 esac
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
17015 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
17016 if ${ac_cv_sys_largefile_source+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 ac_cv_sys_largefile_source=no
17020 case "$host_os" in
17021 # HP-UX 10.20 and later
17022 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
17023 ac_cv_sys_largefile_source=1 ;;
17024 esac
17025 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17026 case "$ac_flag" in
17027 -D_LARGEFILE_SOURCE)
17028 ac_cv_sys_largefile_source=1 ;;
17029 -D_LARGEFILE_SOURCE=*)
17030 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17031 esac
17032 done
17033
17034 fi
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17036 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17037 if test "$ac_cv_sys_largefile_source" != no; then
17038
17039 cat >>confdefs.h <<_ACEOF
17040 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17041 _ACEOF
17042
17043 fi
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
17045 $as_echo_n "checking for _LARGE_FILES... " >&6; }
17046 if ${ac_cv_sys_large_files+:} false; then :
17047 $as_echo_n "(cached) " >&6
17048 else
17049 ac_cv_sys_large_files=no
17050 case "$host_os" in
17051 # AIX 4.2 and later
17052 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
17053 ac_cv_sys_large_files=1 ;;
17054 esac
17055 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17056 case "$ac_flag" in
17057 -D_LARGE_FILES)
17058 ac_cv_sys_large_files=1 ;;
17059 -D_LARGE_FILES=*)
17060 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17061 esac
17062 done
17063
17064 fi
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17066 $as_echo "$ac_cv_sys_large_files" >&6; }
17067 if test "$ac_cv_sys_large_files" != no; then
17068
17069 cat >>confdefs.h <<_ACEOF
17070 #define _LARGE_FILES $ac_cv_sys_large_files
17071 _ACEOF
17072
17073 fi
17074 fi
17075
17076
17077 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
17078 ac_cv_sys_largefile_CFLAGS=""
17079 fi
17080 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
17081 ac_cv_sys_largefile_LDFLAGS=""
17082 fi
17083 if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
17084 ac_cv_sys_largefile_LIBS=""
17085 fi
17086
17087 # The cast to long int works around a bug in the HP C Compiler
17088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17090 # This bug is HP SR number 8606223364.
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17092 $as_echo_n "checking size of off_t... " >&6; }
17093 if ${ac_cv_sizeof_off_t+:} false; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
17097
17098 else
17099 if test "$ac_cv_type_off_t" = yes; then
17100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17102 as_fn_error 77 "cannot compute sizeof (off_t)
17103 See \`config.log' for more details" "$LINENO" 5; }
17104 else
17105 ac_cv_sizeof_off_t=0
17106 fi
17107 fi
17108
17109 fi
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17111 $as_echo "$ac_cv_sizeof_off_t" >&6; }
17112
17113
17114
17115 cat >>confdefs.h <<_ACEOF
17116 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17117 _ACEOF
17118
17119 # Fake default value.
17120
17121 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
17122 TYPEOF_SF_COUNT_T="int64_t"
17123 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
17124 elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This machine does not seem to support 64 bit file offsets." >&5
17126 $as_echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
17127 TYPEOF_SF_COUNT_T="off_t"
17128 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
17129 elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
17130 echo
17131 echo "*** The configure process has determined that this system is capable"
17132 echo "*** of Large File Support but has not been able to find a type which"
17133 echo "*** is an unambiguous 64 bit file offset."
17134 echo "*** Please contact the author to help resolve this problem."
17135 echo
17136 as_fn_error $? "Bad file offset type." "$LINENO" 5
17137 fi
17138 fi
17139 ;;
17140 esac
17141
17142 if test $SIZEOF_SF_COUNT_T = 4 ; then
17143 SF_COUNT_MAX="0x7FFFFFFF"
17144 fi
17145
17146
17147 cat >>confdefs.h <<_ACEOF
17148 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
17149 _ACEOF
17150
17151
17152
17153
17154 cat >>confdefs.h <<_ACEOF
17155 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
17156 _ACEOF
17157
17158
17159
17160
17161 cat >>confdefs.h <<_ACEOF
17162 #define SF_COUNT_MAX ${SF_COUNT_MAX}
17163 _ACEOF
17164
17165
17166
17167 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17168 if test "x$ac_cv_type_ssize_t" = xyes; then :
17169
17170 cat >>confdefs.h <<_ACEOF
17171 #define HAVE_SSIZE_T 1
17172 _ACEOF
17173
17174
17175 fi
17176
17177 # The cast to long int works around a bug in the HP C Compiler
17178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17180 # This bug is HP SR number 8606223364.
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
17182 $as_echo_n "checking size of ssize_t... " >&6; }
17183 if ${ac_cv_sizeof_ssize_t+:} false; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
17187
17188 else
17189 if test "$ac_cv_type_ssize_t" = yes; then
17190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17192 as_fn_error 77 "cannot compute sizeof (ssize_t)
17193 See \`config.log' for more details" "$LINENO" 5; }
17194 else
17195 ac_cv_sizeof_ssize_t=0
17196 fi
17197 fi
17198
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
17201 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
17202
17203
17204
17205 cat >>confdefs.h <<_ACEOF
17206 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
17207 _ACEOF
17208
17209
17210
17211 #====================================================================================
17212 # Determine endian-ness of target processor.
17213
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
17215 $as_echo_n "checking processor byte ordering... " >&6; }
17216 if ${ac_cv_c_byte_order+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 # Initialize to unknown
17220 ac_cv_c_byte_order=unknown
17221
17222 if test x$ac_cv_header_endian_h = xyes ; then
17223
17224 # First try <endian.h> which should set BYTE_ORDER.
17225
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228
17229 #include <endian.h>
17230 #if BYTE_ORDER != LITTLE_ENDIAN
17231 not big endian
17232 #endif
17233
17234 int
17235 main ()
17236 {
17237 return 0 ;
17238 ;
17239 return 0;
17240 }
17241 _ACEOF
17242 if ac_fn_c_try_link "$LINENO"; then :
17243 ac_cv_c_byte_order=little
17244
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251
17252 #include <endian.h>
17253 #if BYTE_ORDER != BIG_ENDIAN
17254 not big endian
17255 #endif
17256
17257 int
17258 main ()
17259 {
17260 return 0 ;
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 ac_cv_c_byte_order=big
17267
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271
17272 fi
17273
17274 if test $ac_cv_c_byte_order = unknown ; then
17275
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17278
17279 #include <sys/types.h>
17280 #include <sys/param.h>
17281 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17282 bogus endian macros
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return 0 ;
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_link "$LINENO"; then :
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17296
17297 #include <sys/types.h>
17298 #include <sys/param.h>
17299 #if BYTE_ORDER != LITTLE_ENDIAN
17300 not big endian
17301 #endif
17302
17303 int
17304 main ()
17305 {
17306 return 0 ;
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_link "$LINENO"; then :
17312 ac_cv_c_byte_order=little
17313
17314 fi
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17317
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 #include <sys/types.h>
17322 #include <sys/param.h>
17323 #if BYTE_ORDER != LITTLE_ENDIAN
17324 not big endian
17325 #endif
17326
17327 int
17328 main ()
17329 {
17330 return 0 ;
17331 ;
17332 return 0;
17333 }
17334 _ACEOF
17335 if ac_fn_c_try_link "$LINENO"; then :
17336 ac_cv_c_byte_order=little
17337
17338 fi
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17341
17342
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext \
17345 conftest$ac_exeext conftest.$ac_ext
17346
17347 fi
17348
17349 if test $ac_cv_c_byte_order = unknown ; then
17350 if test $cross_compiling = yes ; then
17351 # This is the last resort. Try to guess the target processor endian-ness
17352 # by looking at the target CPU type.
17353
17354 case "$target_cpu" in
17355 alpha* | i?86* | mipsel* | ia64*)
17356 ac_cv_c_byte_order=little
17357 ;;
17358
17359 m68* | mips* | powerpc* | hppa* | sparc*)
17360 ac_cv_c_byte_order=big
17361 ;;
17362
17363 esac
17364
17365 else
17366 if test "$cross_compiling" = yes; then :
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17369 as_fn_error $? "cannot run test program while cross compiling
17370 See \`config.log' for more details" "$LINENO" 5; }
17371 else
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374
17375 int main (void)
17376 { /* Are we little or big endian? From Harbison&Steele. */
17377 union
17378 { long l ;
17379 char c [sizeof (long)] ;
17380 } u ;
17381 u.l = 1 ;
17382 return (u.c [sizeof (long) - 1] == 1);
17383 }
17384
17385 _ACEOF
17386 if ac_fn_c_try_run "$LINENO"; then :
17387
17388 else
17389 ac_cv_c_byte_order=big
17390 fi
17391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17392 conftest.$ac_objext conftest.beam conftest.$ac_ext
17393 fi
17394
17395
17396 if test "$cross_compiling" = yes; then :
17397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17399 as_fn_error $? "cannot run test program while cross compiling
17400 See \`config.log' for more details" "$LINENO" 5; }
17401 else
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404 int main (void)
17405 { /* Are we little or big endian? From Harbison&Steele. */
17406 union
17407 { long l ;
17408 char c [sizeof (long)] ;
17409 } u ;
17410 u.l = 1 ;
17411 return (u.c [0] == 1);
17412 }
17413 _ACEOF
17414 if ac_fn_c_try_run "$LINENO"; then :
17415
17416 else
17417 ac_cv_c_byte_order=little
17418 fi
17419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17420 conftest.$ac_objext conftest.beam conftest.$ac_ext
17421 fi
17422
17423 fi
17424 fi
17425
17426
17427 fi
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
17429 $as_echo "$ac_cv_c_byte_order" >&6; }
17430
17431 if test $ac_cv_c_byte_order = big ; then
17432 ac_cv_c_big_endian=1
17433 ac_cv_c_little_endian=0
17434 elif test $ac_cv_c_byte_order = little ; then
17435 ac_cv_c_big_endian=0
17436 ac_cv_c_little_endian=1
17437 else
17438 ac_cv_c_big_endian=0
17439 ac_cv_c_little_endian=0
17440
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17442 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
17444 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
17446 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
17448 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17450 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17451 fi
17452
17453
17454
17455
17456
17457 cat >>confdefs.h <<_ACEOF
17458 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
17459 _ACEOF
17460
17461
17462 cat >>confdefs.h <<_ACEOF
17463 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
17464 _ACEOF
17465
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
17469 _ACEOF
17470
17471
17472 #====================================================================================
17473 # Check for functions.
17474
17475 for ac_func in malloc calloc realloc free
17476 do :
17477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17480 cat >>confdefs.h <<_ACEOF
17481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17482 _ACEOF
17483
17484 fi
17485 done
17486
17487 for ac_func in open read write lseek pread pwrite
17488 do :
17489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17492 cat >>confdefs.h <<_ACEOF
17493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17494 _ACEOF
17495
17496 fi
17497 done
17498
17499 for ac_func in fstat ftruncate fsync
17500 do :
17501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17504 cat >>confdefs.h <<_ACEOF
17505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17506 _ACEOF
17507
17508 fi
17509 done
17510
17511 for ac_func in snprintf vsnprintf
17512 do :
17513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17516 cat >>confdefs.h <<_ACEOF
17517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17518 _ACEOF
17519
17520 fi
17521 done
17522
17523 for ac_func in gmtime gmtime_r localtime localtime_r gettimeofday
17524 do :
17525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17528 cat >>confdefs.h <<_ACEOF
17529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530 _ACEOF
17531
17532 fi
17533 done
17534
17535 for ac_func in mmap getpagesize
17536 do :
17537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17540 cat >>confdefs.h <<_ACEOF
17541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17542 _ACEOF
17543
17544 fi
17545 done
17546
17547 for ac_func in setlocale
17548 do :
17549 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
17550 if test "x$ac_cv_func_setlocale" = xyes; then :
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_SETLOCALE 1
17553 _ACEOF
17554
17555 fi
17556 done
17557
17558 for ac_func in pipe waitpid
17559 do :
17560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17562 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17563 cat >>confdefs.h <<_ACEOF
17564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17565 _ACEOF
17566
17567 fi
17568 done
17569
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
17572 $as_echo_n "checking for floor in -lm... " >&6; }
17573 if ${ac_cv_lib_m_floor+:} false; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17576 ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-lm $LIBS"
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17584 #ifdef __cplusplus
17585 extern "C"
17586 #endif
17587 char floor ();
17588 int
17589 main ()
17590 {
17591 return floor ();
17592 ;
17593 return 0;
17594 }
17595 _ACEOF
17596 if ac_fn_c_try_link "$LINENO"; then :
17597 ac_cv_lib_m_floor=yes
17598 else
17599 ac_cv_lib_m_floor=no
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17604 fi
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
17606 $as_echo "$ac_cv_lib_m_floor" >&6; }
17607 if test "x$ac_cv_lib_m_floor" = xyes; then :
17608 cat >>confdefs.h <<_ACEOF
17609 #define HAVE_LIBM 1
17610 _ACEOF
17611
17612 LIBS="-lm $LIBS"
17613
17614 fi
17615
17616 for ac_func in floor ceil fmod
17617 do :
17618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17619 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17620 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17621 cat >>confdefs.h <<_ACEOF
17622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17623 _ACEOF
17624
17625 fi
17626 done
17627
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
17630 $as_echo_n "checking for lrint... " >&6; }
17631 if ${ac_cv_c99_lrint+:} false; then :
17632 $as_echo_n "(cached) " >&6
17633 else
17634
17635 lrint_save_CFLAGS=$CFLAGS
17636 CFLAGS="-lm"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639
17640 #define _ISOC9X_SOURCE 1
17641 #define _ISOC99_SOURCE 1
17642 #define __USE_ISOC99 1
17643 #define __USE_ISOC9X 1
17644
17645 #include <math.h>
17646
17647 int
17648 main ()
17649 {
17650 if (!lrint(3.14159)) lrint(2.7183);
17651 ;
17652 return 0;
17653 }
17654 _ACEOF
17655 if ac_fn_c_try_link "$LINENO"; then :
17656 ac_cv_c99_lrint=yes
17657 else
17658 ac_cv_c99_lrint=no
17659 fi
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662
17663 CFLAGS=$lrint_save_CFLAGS
17664
17665
17666 fi
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
17668 $as_echo "$ac_cv_c99_lrint" >&6; }
17669
17670 if test "$ac_cv_c99_lrint" = yes; then
17671
17672 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
17673
17674 fi
17675
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
17677 $as_echo_n "checking for lrintf... " >&6; }
17678 if ${ac_cv_c99_lrintf+:} false; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17681
17682 lrintf_save_CFLAGS=$CFLAGS
17683 CFLAGS="-lm"
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686
17687 #define _ISOC9X_SOURCE 1
17688 #define _ISOC99_SOURCE 1
17689 #define __USE_ISOC99 1
17690 #define __USE_ISOC9X 1
17691
17692 #include <math.h>
17693
17694 int
17695 main ()
17696 {
17697 if (!lrintf(3.14159)) lrintf(2.7183);
17698 ;
17699 return 0;
17700 }
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_c99_lrintf=yes
17704 else
17705 ac_cv_c99_lrintf=no
17706 fi
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709
17710 CFLAGS=$lrintf_save_CFLAGS
17711
17712
17713 fi
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
17715 $as_echo "$ac_cv_c99_lrintf" >&6; }
17716
17717 if test "$ac_cv_c99_lrintf" = yes; then
17718
17719 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
17720
17721 fi
17722
17723
17724 #====================================================================================
17725 # Check for requirements for building plugins for other languages/enviroments.
17726
17727 if test x$cross_compiling = xno ; then
17728 if test x$enable_octave = xno ; then
17729 if false; then
17730 BUILD_OCTAVE_MOD_TRUE=
17731 BUILD_OCTAVE_MOD_FALSE='#'
17732 else
17733 BUILD_OCTAVE_MOD_TRUE='#'
17734 BUILD_OCTAVE_MOD_FALSE=
17735 fi
17736
17737 else
17738
17739
17740 OCTAVE_BUILD=no
17741
17742
17743
17744
17745 # Check whether --with-octave was given.
17746 if test "${with_octave+set}" = set; then :
17747 withval=$with_octave; with_octave=$withval
17748 fi
17749
17750
17751 test -z "$with_octave" && with_octave=octave
17752
17753 # Extract the first word of "$with_octave", so it can be a program name with args.
17754 set dummy $with_octave; ac_word=$2
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17756 $as_echo_n "checking for $ac_word... " >&6; }
17757 if ${ac_cv_prog_HAVE_OCTAVE+:} false; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 if test -n "$HAVE_OCTAVE"; then
17761 ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
17762 else
17763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17765 do
17766 IFS=$as_save_IFS
17767 test -z "$as_dir" && as_dir=.
17768 for ac_exec_ext in '' $ac_executable_extensions; do
17769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17770 ac_cv_prog_HAVE_OCTAVE="yes"
17771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17772 break 2
17773 fi
17774 done
17775 done
17776 IFS=$as_save_IFS
17777
17778 test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
17779 fi
17780 fi
17781 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
17782 if test -n "$HAVE_OCTAVE"; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
17784 $as_echo "$HAVE_OCTAVE" >&6; }
17785 else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787 $as_echo "no" >&6; }
17788 fi
17789
17790
17791
17792 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
17793 OCTAVE=$with_octave
17794
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
17796 $as_echo_n "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
17797 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
17799 $as_echo "$OCTAVE_VERSION" >&6; }
17800
17801
17802 fi
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812 # Check whether --with-mkoctfile was given.
17813 if test "${with_mkoctfile+set}" = set; then :
17814 withval=$with_mkoctfile; with_mkoctfile=$withval
17815 fi
17816
17817
17818 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
17819
17820 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
17821 set dummy $with_mkoctfile; ac_word=$2
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17823 $as_echo_n "checking for $ac_word... " >&6; }
17824 if ${ac_cv_prog_HAVE_MKOCTFILE+:} false; then :
17825 $as_echo_n "(cached) " >&6
17826 else
17827 if test -n "$HAVE_MKOCTFILE"; then
17828 ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
17829 else
17830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17831 for as_dir in $PATH
17832 do
17833 IFS=$as_save_IFS
17834 test -z "$as_dir" && as_dir=.
17835 for ac_exec_ext in '' $ac_executable_extensions; do
17836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17837 ac_cv_prog_HAVE_MKOCTFILE="yes"
17838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17839 break 2
17840 fi
17841 done
17842 done
17843 IFS=$as_save_IFS
17844
17845 test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
17846 fi
17847 fi
17848 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
17849 if test -n "$HAVE_MKOCTFILE"; then
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
17851 $as_echo "$HAVE_MKOCTFILE" >&6; }
17852 else
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854 $as_echo "no" >&6; }
17855 fi
17856
17857
17858
17859 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
17860 MKOCTFILE=$with_mkoctfile
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
17863 $as_echo_n "checking for version of $MKOCTFILE... " >&6; }
17864 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
17866 $as_echo "$MKOCTFILE_VERSION" >&6; }
17867 fi
17868
17869
17870
17871
17872
17873
17874
17875
17876 # Check whether --with-octave-config was given.
17877 if test "${with_octave_config+set}" = set; then :
17878 withval=$with_octave_config; with_octave_config=$withval
17879 fi
17880
17881
17882 test -z "$with_octave_config" && with_octave_config=octave-config
17883
17884 # Extract the first word of "$with_octave_config", so it can be a program name with args.
17885 set dummy $with_octave_config; ac_word=$2
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17887 $as_echo_n "checking for $ac_word... " >&6; }
17888 if ${ac_cv_prog_HAVE_OCTAVE_CONFIG+:} false; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 if test -n "$HAVE_OCTAVE_CONFIG"; then
17892 ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
17893 else
17894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17895 for as_dir in $PATH
17896 do
17897 IFS=$as_save_IFS
17898 test -z "$as_dir" && as_dir=.
17899 for ac_exec_ext in '' $ac_executable_extensions; do
17900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17901 ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
17902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17903 break 2
17904 fi
17905 done
17906 done
17907 IFS=$as_save_IFS
17908
17909 test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
17910 fi
17911 fi
17912 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
17913 if test -n "$HAVE_OCTAVE_CONFIG"; then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
17915 $as_echo "$HAVE_OCTAVE_CONFIG" >&6; }
17916 else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17919 fi
17920
17921
17922
17923 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
17924 OCTAVE_CONFIG=$with_octave_config
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
17926 $as_echo_n "checking for version of $OCTAVE_CONFIG... " >&6; }
17927 OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
17929 $as_echo "$OCTAVE_CONFIG_VERSION" >&6; }
17930 fi
17931
17932
17933
17934
17935
17936
17937 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
17938
17939 if test "x$prog_concat" = "xyesyesyes" ; then
17940 if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
17942 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17944 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17945 elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
17947 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17949 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17950 else
17951 case "$MKOCTFILE_VERSION" in
17952 2.*)
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
17954 $as_echo "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
17955 ;;
17956 3.0.*)
17957 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
17958 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
17959
17960 OCTAVE_BUILD=yes
17961 ;;
17962 *)
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
17964 $as_echo "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
17965 ;;
17966 esac
17967 fi
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
17969 $as_echo "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
17970 fi
17971
17972
17973
17974
17975
17976
17977 if test "x$OCTAVE_BUILD" = xyes; then
17978 BUILD_OCTAVE_MOD_TRUE=
17979 BUILD_OCTAVE_MOD_FALSE='#'
17980 else
17981 BUILD_OCTAVE_MOD_TRUE='#'
17982 BUILD_OCTAVE_MOD_FALSE=
17983 fi
17984
17985
17986
17987 fi
17988 else
17989 if false; then
17990 BUILD_OCTAVE_MOD_TRUE=
17991 BUILD_OCTAVE_MOD_FALSE='#'
17992 else
17993 BUILD_OCTAVE_MOD_TRUE='#'
17994 BUILD_OCTAVE_MOD_FALSE=
17995 fi
17996
17997 fi
17998
17999 #====================================================================================
18000 # Check for Ogg, Vorbis and FLAC.
18001
18002 HAVE_EXTERNAL_LIBS=0
18003 EXTERNAL_CFLAGS=""
18004 EXTERNAL_LIBS=""
18005
18006 # Check for pkg-config outside the if statement.
18007
18008
18009
18010
18011
18012
18013
18014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18015 if test -n "$ac_tool_prefix"; then
18016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18019 $as_echo_n "checking for $ac_word... " >&6; }
18020 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18021 $as_echo_n "(cached) " >&6
18022 else
18023 case $PKG_CONFIG in
18024 [\\/]* | ?:[\\/]*)
18025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18026 ;;
18027 *)
18028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18029 for as_dir in $PATH
18030 do
18031 IFS=$as_save_IFS
18032 test -z "$as_dir" && as_dir=.
18033 for ac_exec_ext in '' $ac_executable_extensions; do
18034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18037 break 2
18038 fi
18039 done
18040 done
18041 IFS=$as_save_IFS
18042
18043 ;;
18044 esac
18045 fi
18046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18047 if test -n "$PKG_CONFIG"; then
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18049 $as_echo "$PKG_CONFIG" >&6; }
18050 else
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053 fi
18054
18055
18056 fi
18057 if test -z "$ac_cv_path_PKG_CONFIG"; then
18058 ac_pt_PKG_CONFIG=$PKG_CONFIG
18059 # Extract the first word of "pkg-config", so it can be a program name with args.
18060 set dummy pkg-config; ac_word=$2
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18062 $as_echo_n "checking for $ac_word... " >&6; }
18063 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18064 $as_echo_n "(cached) " >&6
18065 else
18066 case $ac_pt_PKG_CONFIG in
18067 [\\/]* | ?:[\\/]*)
18068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18069 ;;
18070 *)
18071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18072 for as_dir in $PATH
18073 do
18074 IFS=$as_save_IFS
18075 test -z "$as_dir" && as_dir=.
18076 for ac_exec_ext in '' $ac_executable_extensions; do
18077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18078 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18080 break 2
18081 fi
18082 done
18083 done
18084 IFS=$as_save_IFS
18085
18086 ;;
18087 esac
18088 fi
18089 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18090 if test -n "$ac_pt_PKG_CONFIG"; then
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18092 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18093 else
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18095 $as_echo "no" >&6; }
18096 fi
18097
18098 if test "x$ac_pt_PKG_CONFIG" = x; then
18099 PKG_CONFIG=""
18100 else
18101 case $cross_compiling:$ac_tool_warned in
18102 yes:)
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18105 ac_tool_warned=yes ;;
18106 esac
18107 PKG_CONFIG=$ac_pt_PKG_CONFIG
18108 fi
18109 else
18110 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18111 fi
18112
18113 fi
18114 if test -n "$PKG_CONFIG"; then
18115 _pkg_min_version=0.9.0
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18117 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18118 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18120 $as_echo "yes" >&6; }
18121 else
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18123 $as_echo "no" >&6; }
18124 PKG_CONFIG=""
18125 fi
18126 fi
18127
18128 if test -n "$PKG_CONFIG" ; then
18129 if test x$enable_external_libs = xno ; then
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
18131 $as_echo "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
18132 else
18133
18134 pkg_failed=no
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.2.1 " >&5
18136 $as_echo_n "checking for flac >= 1.2.1 ... " >&6; }
18137
18138 if test -n "$FLAC_CFLAGS"; then
18139 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
18140 elif test -n "$PKG_CONFIG"; then
18141 if test -n "$PKG_CONFIG" && \
18142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
18143 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
18144 ac_status=$?
18145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18146 test $ac_status = 0; }; then
18147 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null`
18148 test "x$?" != "x0" && pkg_failed=yes
18149 else
18150 pkg_failed=yes
18151 fi
18152 else
18153 pkg_failed=untried
18154 fi
18155 if test -n "$FLAC_LIBS"; then
18156 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
18157 elif test -n "$PKG_CONFIG"; then
18158 if test -n "$PKG_CONFIG" && \
18159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
18160 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; }; then
18164 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null`
18165 test "x$?" != "x0" && pkg_failed=yes
18166 else
18167 pkg_failed=yes
18168 fi
18169 else
18170 pkg_failed=untried
18171 fi
18172
18173
18174
18175 if test $pkg_failed = yes; then
18176
18177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18178 _pkg_short_errors_supported=yes
18179 else
18180 _pkg_short_errors_supported=no
18181 fi
18182 if test $_pkg_short_errors_supported = yes; then
18183 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.2.1"`
18184 else
18185 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.2.1"`
18186 fi
18187 # Put the nasty error message in config.log where it belongs
18188 echo "$FLAC_PKG_ERRORS" >&5
18189
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18191 $as_echo "no" >&6; }
18192 ac_cv_flac=no
18193 elif test $pkg_failed = untried; then
18194 ac_cv_flac=no
18195 else
18196 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
18197 FLAC_LIBS=$pkg_cv_FLAC_LIBS
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18199 $as_echo "yes" >&6; }
18200 ac_cv_flac=yes
18201 fi
18202
18203 # Make sure the FLAC_CFLAGS value is sane.
18204 FLAC_CFLAGS=`echo $FLAC_CLFAGS | $SED "s/FLAC$//"`
18205
18206
18207 pkg_failed=no
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.1.3 " >&5
18209 $as_echo_n "checking for ogg >= 1.1.3 ... " >&6; }
18210
18211 if test -n "$OGG_CFLAGS"; then
18212 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
18213 elif test -n "$PKG_CONFIG"; then
18214 if test -n "$PKG_CONFIG" && \
18215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
18216 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
18217 ac_status=$?
18218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18219 test $ac_status = 0; }; then
18220 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1.3" 2>/dev/null`
18221 test "x$?" != "x0" && pkg_failed=yes
18222 else
18223 pkg_failed=yes
18224 fi
18225 else
18226 pkg_failed=untried
18227 fi
18228 if test -n "$OGG_LIBS"; then
18229 pkg_cv_OGG_LIBS="$OGG_LIBS"
18230 elif test -n "$PKG_CONFIG"; then
18231 if test -n "$PKG_CONFIG" && \
18232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
18233 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
18234 ac_status=$?
18235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18236 test $ac_status = 0; }; then
18237 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1.3" 2>/dev/null`
18238 test "x$?" != "x0" && pkg_failed=yes
18239 else
18240 pkg_failed=yes
18241 fi
18242 else
18243 pkg_failed=untried
18244 fi
18245
18246
18247
18248 if test $pkg_failed = yes; then
18249
18250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18251 _pkg_short_errors_supported=yes
18252 else
18253 _pkg_short_errors_supported=no
18254 fi
18255 if test $_pkg_short_errors_supported = yes; then
18256 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1.3"`
18257 else
18258 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1.3"`
18259 fi
18260 # Put the nasty error message in config.log where it belongs
18261 echo "$OGG_PKG_ERRORS" >&5
18262
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264 $as_echo "no" >&6; }
18265 ac_cv_ogg=no
18266 elif test $pkg_failed = untried; then
18267 ac_cv_ogg=no
18268 else
18269 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
18270 OGG_LIBS=$pkg_cv_OGG_LIBS
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18272 $as_echo "yes" >&6; }
18273 ac_cv_ogg=yes
18274 fi
18275
18276 if test x$enable_experimental = xyes ; then
18277
18278 pkg_failed=no
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex >= 1.2 " >&5
18280 $as_echo_n "checking for speex >= 1.2 ... " >&6; }
18281
18282 if test -n "$SPEEX_CFLAGS"; then
18283 pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
18284 elif test -n "$PKG_CONFIG"; then
18285 if test -n "$PKG_CONFIG" && \
18286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
18287 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
18288 ac_status=$?
18289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18290 test $ac_status = 0; }; then
18291 pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.2" 2>/dev/null`
18292 test "x$?" != "x0" && pkg_failed=yes
18293 else
18294 pkg_failed=yes
18295 fi
18296 else
18297 pkg_failed=untried
18298 fi
18299 if test -n "$SPEEX_LIBS"; then
18300 pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
18301 elif test -n "$PKG_CONFIG"; then
18302 if test -n "$PKG_CONFIG" && \
18303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
18304 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18307 test $ac_status = 0; }; then
18308 pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.2" 2>/dev/null`
18309 test "x$?" != "x0" && pkg_failed=yes
18310 else
18311 pkg_failed=yes
18312 fi
18313 else
18314 pkg_failed=untried
18315 fi
18316
18317
18318
18319 if test $pkg_failed = yes; then
18320
18321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18322 _pkg_short_errors_supported=yes
18323 else
18324 _pkg_short_errors_supported=no
18325 fi
18326 if test $_pkg_short_errors_supported = yes; then
18327 SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.2"`
18328 else
18329 SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.2"`
18330 fi
18331 # Put the nasty error message in config.log where it belongs
18332 echo "$SPEEX_PKG_ERRORS" >&5
18333
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18335 $as_echo "no" >&6; }
18336 ac_cv_speex=no
18337 elif test $pkg_failed = untried; then
18338 ac_cv_speex=no
18339 else
18340 SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
18341 SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18343 $as_echo "yes" >&6; }
18344 ac_cv_speex=yes
18345 fi
18346 else
18347 SPEEX_CFLAGS=""
18348 SPEEX_LIBS=""
18349 fi
18350
18351 # Vorbis versions earlier than 1.2.3 have bugs that cause the libsndfile
18352 # test suite to fail on MIPS, PowerPC and others.
18353 # See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
18354
18355 pkg_failed=no
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
18357 $as_echo_n "checking for vorbis >= 1.2.3 ... " >&6; }
18358
18359 if test -n "$VORBIS_CFLAGS"; then
18360 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
18361 elif test -n "$PKG_CONFIG"; then
18362 if test -n "$PKG_CONFIG" && \
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
18364 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
18365 ac_status=$?
18366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18367 test $ac_status = 0; }; then
18368 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
18369 test "x$?" != "x0" && pkg_failed=yes
18370 else
18371 pkg_failed=yes
18372 fi
18373 else
18374 pkg_failed=untried
18375 fi
18376 if test -n "$VORBIS_LIBS"; then
18377 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
18378 elif test -n "$PKG_CONFIG"; then
18379 if test -n "$PKG_CONFIG" && \
18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
18381 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
18382 ac_status=$?
18383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18384 test $ac_status = 0; }; then
18385 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
18386 test "x$?" != "x0" && pkg_failed=yes
18387 else
18388 pkg_failed=yes
18389 fi
18390 else
18391 pkg_failed=untried
18392 fi
18393
18394
18395
18396 if test $pkg_failed = yes; then
18397
18398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18399 _pkg_short_errors_supported=yes
18400 else
18401 _pkg_short_errors_supported=no
18402 fi
18403 if test $_pkg_short_errors_supported = yes; then
18404 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
18405 else
18406 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
18407 fi
18408 # Put the nasty error message in config.log where it belongs
18409 echo "$VORBIS_PKG_ERRORS" >&5
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412 $as_echo "no" >&6; }
18413 ac_cv_vorbis=no
18414 elif test $pkg_failed = untried; then
18415 ac_cv_vorbis=no
18416 else
18417 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
18418 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18420 $as_echo "yes" >&6; }
18421 ac_cv_vorbis=yes
18422 fi
18423
18424 pkg_failed=no
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
18426 $as_echo_n "checking for vorbisenc >= 1.2.3 ... " >&6; }
18427
18428 if test -n "$VORBISENC_CFLAGS"; then
18429 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
18430 elif test -n "$PKG_CONFIG"; then
18431 if test -n "$PKG_CONFIG" && \
18432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
18433 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
18434 ac_status=$?
18435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18436 test $ac_status = 0; }; then
18437 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
18438 test "x$?" != "x0" && pkg_failed=yes
18439 else
18440 pkg_failed=yes
18441 fi
18442 else
18443 pkg_failed=untried
18444 fi
18445 if test -n "$VORBISENC_LIBS"; then
18446 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
18447 elif test -n "$PKG_CONFIG"; then
18448 if test -n "$PKG_CONFIG" && \
18449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
18450 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
18451 ac_status=$?
18452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18453 test $ac_status = 0; }; then
18454 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
18455 test "x$?" != "x0" && pkg_failed=yes
18456 else
18457 pkg_failed=yes
18458 fi
18459 else
18460 pkg_failed=untried
18461 fi
18462
18463
18464
18465 if test $pkg_failed = yes; then
18466
18467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18468 _pkg_short_errors_supported=yes
18469 else
18470 _pkg_short_errors_supported=no
18471 fi
18472 if test $_pkg_short_errors_supported = yes; then
18473 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
18474 else
18475 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
18476 fi
18477 # Put the nasty error message in config.log where it belongs
18478 echo "$VORBISENC_PKG_ERRORS" >&5
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18481 $as_echo "no" >&6; }
18482 ac_cv_vorbisenc=no
18483 elif test $pkg_failed = untried; then
18484 ac_cv_vorbisenc=no
18485 else
18486 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
18487 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489 $as_echo "yes" >&6; }
18490 ac_cv_vorbisenc=yes
18491 fi
18492 enable_external_libs=yes
18493 fi
18494
18495 if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
18496 HAVE_EXTERNAL_LIBS=1
18497 enable_external_libs=yes
18498
18499 EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
18500 EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
18501 else
18502 echo
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&5
18504 $as_echo "$as_me: WARNING: *** One or more of the external libraries (ie libflac, libogg and" >&2;}
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libvorbis) is either missing (possibly only the development" >&5
18506 $as_echo "$as_me: WARNING: *** libvorbis) is either missing (possibly only the development" >&2;}
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** headers) or is of an unsupported version." >&5
18508 $as_echo "$as_me: WARNING: *** headers) or is of an unsupported version." >&2;}
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
18510 $as_echo "$as_me: WARNING: ***" >&2;}
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&5
18512 $as_echo "$as_me: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&2;}
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** are an all or nothing affair." >&5
18514 $as_echo "$as_me: WARNING: *** are an all or nothing affair." >&2;}
18515 echo
18516 enable_external_libs=no
18517 fi
18518 fi
18519
18520
18521 cat >>confdefs.h <<_ACEOF
18522 #define HAVE_EXTERNAL_LIBS $HAVE_EXTERNAL_LIBS
18523 _ACEOF
18524
18525
18526 #====================================================================================
18527 # Check for libsqlite3 (only used in regtest).
18528
18529 ac_cv_sqlite3=no
18530 if test x$enable_sqlite != xno ; then
18531
18532 pkg_failed=no
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
18534 $as_echo_n "checking for sqlite3 >= 3.2 ... " >&6; }
18535
18536 if test -n "$SQLITE3_CFLAGS"; then
18537 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
18538 elif test -n "$PKG_CONFIG"; then
18539 if test -n "$PKG_CONFIG" && \
18540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
18541 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
18542 ac_status=$?
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; then
18545 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
18546 test "x$?" != "x0" && pkg_failed=yes
18547 else
18548 pkg_failed=yes
18549 fi
18550 else
18551 pkg_failed=untried
18552 fi
18553 if test -n "$SQLITE3_LIBS"; then
18554 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
18555 elif test -n "$PKG_CONFIG"; then
18556 if test -n "$PKG_CONFIG" && \
18557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
18558 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
18559 ac_status=$?
18560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18561 test $ac_status = 0; }; then
18562 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
18563 test "x$?" != "x0" && pkg_failed=yes
18564 else
18565 pkg_failed=yes
18566 fi
18567 else
18568 pkg_failed=untried
18569 fi
18570
18571
18572
18573 if test $pkg_failed = yes; then
18574
18575 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18576 _pkg_short_errors_supported=yes
18577 else
18578 _pkg_short_errors_supported=no
18579 fi
18580 if test $_pkg_short_errors_supported = yes; then
18581 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
18582 else
18583 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
18584 fi
18585 # Put the nasty error message in config.log where it belongs
18586 echo "$SQLITE3_PKG_ERRORS" >&5
18587
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18589 $as_echo "no" >&6; }
18590 ac_cv_sqlite3=no
18591 elif test $pkg_failed = untried; then
18592 ac_cv_sqlite3=no
18593 else
18594 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
18595 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598 ac_cv_sqlite3=yes
18599 fi
18600 fi
18601
18602 if test x$ac_cv_sqlite3 = "xyes" ; then
18603 HAVE_SQLITE3=1
18604 else
18605 HAVE_SQLITE3=0
18606 fi
18607
18608
18609 cat >>confdefs.h <<_ACEOF
18610 #define HAVE_SQLITE3 $HAVE_SQLITE3
18611 _ACEOF
18612
18613
18614 #====================================================================================
18615 # Determine if the processor can do clipping on float to int conversions.
18616
18617 if test x$enable_cpu_clip != "xno" ; then
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
18619 $as_echo_n "checking processor clipping capabilities... " >&6; }
18620 if ${ac_cv_c_clip_type+:} false; then :
18621 $as_echo_n "(cached) " >&6
18622 else
18623 # Initialize to unknown
18624 ac_cv_c_clip_positive=unknown
18625 ac_cv_c_clip_negative=unknown
18626
18627
18628 if test $ac_cv_c_clip_positive = unknown ; then
18629 if test "$cross_compiling" = yes; then :
18630 ac_cv_c_clip_positive=unknown
18631
18632 else
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18635
18636 #define _ISOC9X_SOURCE 1
18637 #define _ISOC99_SOURCE 1
18638 #define __USE_ISOC99 1
18639 #define __USE_ISOC9X 1
18640 #include <math.h>
18641 int main (void)
18642 { double fval ;
18643 int k, ival ;
18644
18645 fval = 1.0 * 0x7FFFFFFF ;
18646 for (k = 0 ; k < 100 ; k++)
18647 { ival = (lrint (fval)) >> 24 ;
18648 if (ival != 127)
18649 return 1 ;
18650
18651 fval *= 1.2499999 ;
18652 } ;
18653
18654 return 0 ;
18655 }
18656
18657 _ACEOF
18658 if ac_fn_c_try_run "$LINENO"; then :
18659 ac_cv_c_clip_positive=yes
18660 else
18661 ac_cv_c_clip_positive=no
18662 fi
18663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18664 conftest.$ac_objext conftest.beam conftest.$ac_ext
18665 fi
18666
18667
18668 if test "$cross_compiling" = yes; then :
18669 ac_cv_c_clip_negative=unknown
18670
18671 else
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674
18675 #define _ISOC9X_SOURCE 1
18676 #define _ISOC99_SOURCE 1
18677 #define __USE_ISOC99 1
18678 #define __USE_ISOC9X 1
18679 #include <math.h>
18680 int main (void)
18681 { double fval ;
18682 int k, ival ;
18683
18684 fval = -8.0 * 0x10000000 ;
18685 for (k = 0 ; k < 100 ; k++)
18686 { ival = (lrint (fval)) >> 24 ;
18687 if (ival != -128)
18688 return 1 ;
18689
18690 fval *= 1.2499999 ;
18691 } ;
18692
18693 return 0 ;
18694 }
18695
18696 _ACEOF
18697 if ac_fn_c_try_run "$LINENO"; then :
18698 ac_cv_c_clip_negative=yes
18699 else
18700 ac_cv_c_clip_negative=no
18701 fi
18702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18703 conftest.$ac_objext conftest.beam conftest.$ac_ext
18704 fi
18705
18706 fi
18707
18708 if test $ac_cv_c_clip_positive = yes ; then
18709 ac_cv_c_clip_positive=1
18710 else
18711 ac_cv_c_clip_positive=0
18712 fi
18713
18714 if test $ac_cv_c_clip_negative = yes ; then
18715 ac_cv_c_clip_negative=1
18716 else
18717 ac_cv_c_clip_negative=0
18718 fi
18719
18720
18721 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
18722 "00")
18723 ac_cv_c_clip_type="none"
18724 ;;
18725 "10")
18726 ac_cv_c_clip_type="positive"
18727 ;;
18728 "01")
18729 ac_cv_c_clip_type="negative"
18730 ;;
18731 "11")
18732 ac_cv_c_clip_type="both"
18733 ;;
18734 esac
18735
18736
18737
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
18740 $as_echo "$ac_cv_c_clip_type" >&6; }
18741
18742
18743
18744 else
18745 echo "checking processor clipping capabilities... disabled"
18746 ac_cv_c_clip_positive=0
18747 ac_cv_c_clip_negative=0
18748 fi
18749
18750
18751 cat >>confdefs.h <<_ACEOF
18752 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
18753 _ACEOF
18754
18755
18756 cat >>confdefs.h <<_ACEOF
18757 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
18758 _ACEOF
18759
18760
18761 #====================================================================================
18762 # Target OS specific stuff.
18763
18764 OS_SPECIFIC_CFLAGS=""
18765 OS_SPECIFIC_LINKS=""
18766 os_is_win32=0
18767 os_is_macosx=0
18768 use_windows_api=0
18769
18770 case "$host_os" in
18771 darwin* | rhapsody*)
18772 os_is_macosx=1
18773 OS_SPECIFIC_CFLAGS="-I/Developer/Headers/FlatCarbon"
18774 OS_SPECIFIC_LINKS="-framework CoreAudio"
18775 ;;
18776 mingw*)
18777 os_is_win32=1
18778 use_windows_api=1
18779 OS_SPECIFIC_LINKS="-lwinmm"
18780 ;;
18781 esac
18782
18783
18784 cat >>confdefs.h <<_ACEOF
18785 #define OS_IS_WIN32 ${os_is_win32}
18786 _ACEOF
18787
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define OS_IS_MACOSX ${os_is_macosx}
18791 _ACEOF
18792
18793
18794 cat >>confdefs.h <<_ACEOF
18795 #define USE_WINDOWS_API ${use_windows_api}
18796 _ACEOF
18797
18798
18799 if test ${use_windows_api} -eq 1; then
18800 USE_WIN_VERSION_FILE_TRUE=
18801 USE_WIN_VERSION_FILE_FALSE='#'
18802 else
18803 USE_WIN_VERSION_FILE_TRUE='#'
18804 USE_WIN_VERSION_FILE_FALSE=
18805 fi
18806
18807
18808 #====================================================================================
18809 # Check for ALSA.
18810
18811 ALSA_LIBS=""
18812
18813 if test x$enable_alsa != xno ; then
18814 for ac_header in alsa/asoundlib.h
18815 do :
18816 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
18817 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
18818 cat >>confdefs.h <<_ACEOF
18819 #define HAVE_ALSA_ASOUNDLIB_H 1
18820 _ACEOF
18821
18822 fi
18823
18824 done
18825
18826 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
18827 ALSA_LIBS="-lasound"
18828 enable_alsa=yes
18829 fi
18830 fi
18831
18832 #====================================================================================
18833 # Check for OpenBSD's sndio.
18834
18835 SNDIO_LIBS=""
18836 for ac_header in sndio.h
18837 do :
18838 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18839 if test "x$ac_cv_header_sndio_h" = xyes; then :
18840 cat >>confdefs.h <<_ACEOF
18841 #define HAVE_SNDIO_H 1
18842 _ACEOF
18843
18844 fi
18845
18846 done
18847
18848 if test x$ac_cv_header_sndio_h = xyes ; then
18849 SNDIO_LIBS="-lsndio"
18850 fi
18851
18852 #====================================================================================
18853 # Test for sanity when cross-compiling.
18854
18855 if test x$cross_compiling = xyes ; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18857 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
18859 $as_echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&5
18861 $as_echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&2;}
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chance of this working. Please contact the mantainer. " >&5
18863 $as_echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer. " >&2;}
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18865 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18866 fi
18867
18868 if test $ac_cv_sizeof_short != 2 ; then
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18870 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2. " >&5
18872 $as_echo "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18874 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18875 fi
18876
18877 if test $ac_cv_sizeof_int != 4 ; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18879 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4 " >&5
18881 $as_echo "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18883 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18884 fi
18885
18886 if test $ac_cv_sizeof_float != 4 ; then
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18888 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4. " >&5
18890 $as_echo "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18892 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18893 fi
18894
18895 if test $ac_cv_sizeof_double != 8 ; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18897 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8. " >&5
18899 $as_echo "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
18901 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
18902 fi
18903
18904 if test x"$ac_cv_prog_HAVE_AUTOGEN" = "xno" ; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
18906 $as_echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
18907 touch tests/*.c tests/*.h
18908 fi
18909
18910 #====================================================================================
18911 # Settings for the HTML documentation.
18912
18913 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
18914
18915 if test $prefix = "NONE" ; then
18916 htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
18917 else
18918 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
18919 fi
18920
18921 if test x$enable_bow_docs = "xyes" ; then
18922 HTML_BGCOLOUR="white"
18923 HTML_FGCOLOUR="black"
18924 else
18925 HTML_BGCOLOUR="black"
18926 HTML_FGCOLOUR="white"
18927 fi
18928
18929 #====================================================================================
18930 # Now use the information from the checking stage.
18931
18932 win32_target_dll=0
18933 COMPILER_IS_GCC=0
18934
18935 if test x$ac_cv_c_compiler_gnu = xyes ; then
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=gnu99" >&5
18937 $as_echo_n "checking if $CC accepts -std=gnu99... " >&6; }
18938 ac_add_cflags__old_cflags="$CFLAGS"
18939 CFLAGS="-std=gnu99"
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942
18943 #include <stdio.h>
18944
18945 int
18946 main ()
18947 {
18948 puts("Hello, World!"); return 0;
18949 ;
18950 return 0;
18951 }
18952 _ACEOF
18953 if ac_fn_c_try_link "$LINENO"; then :
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18955 $as_echo "yes" >&6; }
18956 CFLAGS="$ac_add_cflags__old_cflags -std=gnu99"
18957 else
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18960 CFLAGS="$ac_add_cflags__old_cflags"
18961
18962 fi
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965
18966
18967
18968 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
18969
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
18971 $as_echo_n "checking for version of $CC... " >&6; }
18972 GCC_VERSION=`$CC -dumpversion`
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
18974 $as_echo "$GCC_VERSION" >&6; }
18975
18976 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
18977 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
18978 fi
18979
18980
18981
18982
18983
18984
18985
18986 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
18988 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&5
18990 $as_echo "$as_me: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&2;}
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** reason but the maintainers do not see it as a bug. **" >&5
18992 $as_echo "$as_me: WARNING: ** reason but the maintainers do not see it as a bug. **" >&2;}
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&5
18994 $as_echo "$as_me: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&2;}
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&5
18996 $as_echo "$as_me: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&2;}
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
18998 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
19000 $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
19001 ac_add_cflags__old_cflags="$CFLAGS"
19002 CFLAGS="-fgnu89-inline"
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005
19006 #include <stdio.h>
19007
19008 int
19009 main ()
19010 {
19011 puts("Hello, World!"); return 0;
19012 ;
19013 return 0;
19014 }
19015 _ACEOF
19016 if ac_fn_c_try_link "$LINENO"; then :
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19018 $as_echo "yes" >&6; }
19019 CFLAGS="$ac_add_cflags__old_cflags -fgnu89-inline"
19020 else
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19022 $as_echo "no" >&6; }
19023 CFLAGS="$ac_add_cflags__old_cflags"
19024
19025 fi
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028
19029 fi
19030
19031 CFLAGS="$CFLAGS -Wall"
19032 CXXFLAGS="$CXXFLAGS -Wall"
19033
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra" >&5
19035 $as_echo_n "checking if $CC accepts -Wextra... " >&6; }
19036 ac_add_cflags__old_cflags="$CFLAGS"
19037 CFLAGS="-Wextra"
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040
19041 #include <stdio.h>
19042
19043 int
19044 main ()
19045 {
19046 puts("Hello, World!"); return 0;
19047 ;
19048 return 0;
19049 }
19050 _ACEOF
19051 if ac_fn_c_try_link "$LINENO"; then :
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19053 $as_echo "yes" >&6; }
19054 CFLAGS="$ac_add_cflags__old_cflags -Wextra"
19055 else
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19057 $as_echo "no" >&6; }
19058 CFLAGS="$ac_add_cflags__old_cflags"
19059
19060 fi
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063
19064
19065 ac_ext=cpp
19066 ac_cpp='$CXXCPP $CPPFLAGS'
19067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19070
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra" >&5
19072 $as_echo_n "checking if $CXX accepts -Wextra... " >&6; }
19073
19074 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
19075 CXXFLAGS="-Wextra"
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078
19079 #include <cstdio>
19080
19081 int
19082 main ()
19083 {
19084 puts("Hello, World!"); return 0;
19085 ;
19086 return 0;
19087 }
19088 _ACEOF
19089 if ac_fn_cxx_try_link "$LINENO"; then :
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19091 $as_echo "yes" >&6; }
19092 CXXFLAGS="$ac_add_cxxflags__old_cxxflags -Wextra"
19093 else
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095 $as_echo "no" >&6; }
19096 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
19097
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext \
19100 conftest$ac_exeext conftest.$ac_ext
19101
19102 ac_ext=c
19103 ac_cpp='$CPP $CPPFLAGS'
19104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
19110 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
19111 ac_add_cflags__old_cflags="$CFLAGS"
19112 CFLAGS="-Wdeclaration-after-statement"
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115
19116 #include <stdio.h>
19117
19118 int
19119 main ()
19120 {
19121 puts("Hello, World!"); return 0;
19122 ;
19123 return 0;
19124 }
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"; then :
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19128 $as_echo "yes" >&6; }
19129 CFLAGS="$ac_add_cflags__old_cflags -Wdeclaration-after-statement"
19130 else
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19132 $as_echo "no" >&6; }
19133 CFLAGS="$ac_add_cflags__old_cflags"
19134
19135 fi
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpointer-arith" >&5
19140 $as_echo_n "checking if $CC accepts -Wpointer-arith... " >&6; }
19141 ac_add_cflags__old_cflags="$CFLAGS"
19142 CFLAGS="-Wpointer-arith"
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19145
19146 #include <stdio.h>
19147
19148 int
19149 main ()
19150 {
19151 puts("Hello, World!"); return 0;
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 if ac_fn_c_try_link "$LINENO"; then :
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19158 $as_echo "yes" >&6; }
19159 CFLAGS="$ac_add_cflags__old_cflags -Wpointer-arith"
19160 else
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162 $as_echo "no" >&6; }
19163 CFLAGS="$ac_add_cflags__old_cflags"
19164
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funsigned-char" >&5
19170 $as_echo_n "checking if $CC accepts -funsigned-char... " >&6; }
19171 ac_add_cflags__old_cflags="$CFLAGS"
19172 CFLAGS="-funsigned-char"
19173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19175
19176 #include <stdio.h>
19177
19178 int
19179 main ()
19180 {
19181 puts("Hello, World!"); return 0;
19182 ;
19183 return 0;
19184 }
19185 _ACEOF
19186 if ac_fn_c_try_link "$LINENO"; then :
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188 $as_echo "yes" >&6; }
19189 CFLAGS="$ac_add_cflags__old_cflags -funsigned-char"
19190 else
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 $as_echo "no" >&6; }
19193 CFLAGS="$ac_add_cflags__old_cflags"
19194
19195 fi
19196 rm -f core conftest.err conftest.$ac_objext \
19197 conftest$ac_exeext conftest.$ac_ext
19198
19199
19200 if test x$enable_gcc_werror = "xyes" ; then
19201 CFLAGS="-Werror $CFLAGS"
19202 CXXFLAGS="-Werror $CXXFLAGS"
19203 fi
19204
19205 if test x$enable_test_coverage = "xyes" ; then
19206 # MN_ADD_CFLAGS([-ftest-coverage])
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -coverage" >&5
19208 $as_echo_n "checking if $CC accepts -coverage... " >&6; }
19209 ac_add_cflags__old_cflags="$CFLAGS"
19210 CFLAGS="-coverage"
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213
19214 #include <stdio.h>
19215
19216 int
19217 main ()
19218 {
19219 puts("Hello, World!"); return 0;
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 if ac_fn_c_try_link "$LINENO"; then :
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19226 $as_echo "yes" >&6; }
19227 CFLAGS="$ac_add_cflags__old_cflags -coverage"
19228 else
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 CFLAGS="$ac_add_cflags__old_cflags"
19232
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236
19237 fi
19238
19239 CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -Wundef "
19240 # -Wundef -Wmissing-declarations -Winline -Wconversion"
19241 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wundef "
19242
19243 if test "x$enable_gcc_opt" = "xno" ; then
19244 temp_CFLAGS=`echo $CFLAGS | $SED "s/O2/O0/"`
19245 CFLAGS=$temp_CFLAGS
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
19247 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
19248 fi
19249
19250 # OS specific tweaks.
19251 case "$host_os" in
19252 darwin* | rhapsody*)
19253 # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
19254 # System headers on these systems are broken.
19255 temp_CFLAGS=`echo $CFLAGS | $SED "s/-Wall -pedantic//" | $SED "s/-Wshadow//" | $SED "s/-Waggregate-return//"`
19256 CFLAGS=$temp_CFLAGS
19257 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
19258 ;;
19259 linux*|kfreebsd*-gnu*|gnu*)
19260 SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.gnu-binutils"
19261 ;;
19262 mingw*)
19263 # Linker flag '-Wl,--out-implib' does not work with mingw cross compiler
19264 # so we don't use it here.
19265 SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def"
19266 win32_target_dll=1
19267 if test x"$enable_shared" = xno ; then
19268 win32_target_dll=0
19269 fi
19270 ;;
19271 os2*)
19272 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(srcdir)/Symbols.os2"
19273 ;;
19274 *)
19275 ;;
19276 esac
19277 if test x$enable_gcc_pipe != "xno" ; then
19278 CFLAGS="$CFLAGS -pipe"
19279 fi
19280
19281 COMPILER_IS_GCC=1
19282 fi
19283
19284
19285 cat >>confdefs.h <<_ACEOF
19286 #define WIN32_TARGET_DLL ${win32_target_dll}
19287 _ACEOF
19288
19289
19290 cat >>confdefs.h <<_ACEOF
19291 #define COMPILER_IS_GCC ${COMPILER_IS_GCC}
19292 _ACEOF
19293
19294
19295 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
19296
19297 if test x"$CFLAGS" = x ; then
19298 echo "Error in configure script. CFLAGS has been screwed up."
19299 exit
19300 fi
19301
19302 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
19303
19304 if test "$HOST_TRIPLET" = "x86_64-w64-mingw32" ; then
19305 OS_SPECIFIC_LINKS=" -static-libgcc $OS_SPECIFIC_LINKS"
19306 fi
19307
19308 WIN_RC_VERSION=`echo $PACKAGE_VERSION | $SED -e "s/p.*//" -e "s/\./,/g"`
19309
19310 #-------------------------------------------------------------------------------
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333 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"
19334
19335 cat >confcache <<\_ACEOF
19336 # This file is a shell script that caches the results of configure
19337 # tests run on this system so they can be shared between configure
19338 # scripts and configure runs, see configure's option --config-cache.
19339 # It is not useful on other systems. If it contains results you don't
19340 # want to keep, you may remove or edit it.
19341 #
19342 # config.status only pays attention to the cache file if you give it
19343 # the --recheck option to rerun configure.
19344 #
19345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19347 # following values.
19348
19349 _ACEOF
19350
19351 # The following way of writing the cache mishandles newlines in values,
19352 # but we know of no workaround that is simple, portable, and efficient.
19353 # So, we kill variables containing newlines.
19354 # Ultrix sh set writes to stderr and can't be redirected directly,
19355 # and sets the high bit in the cache file unless we assign to the vars.
19356 (
19357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19358 eval ac_val=\$$ac_var
19359 case $ac_val in #(
19360 *${as_nl}*)
19361 case $ac_var in #(
19362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19364 esac
19365 case $ac_var in #(
19366 _ | IFS | as_nl) ;; #(
19367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19368 *) { eval $ac_var=; unset $ac_var;} ;;
19369 esac ;;
19370 esac
19371 done
19372
19373 (set) 2>&1 |
19374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19375 *${as_nl}ac_space=\ *)
19376 # `set' does not quote correctly, so add quotes: double-quote
19377 # substitution turns \\\\ into \\, and sed turns \\ into \.
19378 sed -n \
19379 "s/'/'\\\\''/g;
19380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19381 ;; #(
19382 *)
19383 # `set' quotes correctly as required by POSIX, so do not add quotes.
19384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19385 ;;
19386 esac |
19387 sort
19388 ) |
19389 sed '
19390 /^ac_cv_env_/b end
19391 t clear
19392 :clear
19393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19394 t end
19395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19396 :end' >>confcache
19397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19398 if test -w "$cache_file"; then
19399 if test "x$cache_file" != "x/dev/null"; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19401 $as_echo "$as_me: updating cache $cache_file" >&6;}
19402 if test ! -f "$cache_file" || test -h "$cache_file"; then
19403 cat confcache >"$cache_file"
19404 else
19405 case $cache_file in #(
19406 */* | ?:*)
19407 mv -f confcache "$cache_file"$$ &&
19408 mv -f "$cache_file"$$ "$cache_file" ;; #(
19409 *)
19410 mv -f confcache "$cache_file" ;;
19411 esac
19412 fi
19413 fi
19414 else
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19417 fi
19418 fi
19419 rm -f confcache
19420
19421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19422 # Let make expand exec_prefix.
19423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19424
19425 DEFS=-DHAVE_CONFIG_H
19426
19427 ac_libobjs=
19428 ac_ltlibobjs=
19429 U=
19430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19431 # 1. Remove the extension, and $U if already installed.
19432 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19433 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19434 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19435 # will be set to the directory where LIBOBJS objects are built.
19436 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19437 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19438 done
19439 LIBOBJS=$ac_libobjs
19440
19441 LTLIBOBJS=$ac_ltlibobjs
19442
19443
19444 if test -n "$EXEEXT"; then
19445 am__EXEEXT_TRUE=
19446 am__EXEEXT_FALSE='#'
19447 else
19448 am__EXEEXT_TRUE='#'
19449 am__EXEEXT_FALSE=
19450 fi
19451
19452 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19453 as_fn_error $? "conditional \"AMDEP\" was never defined.
19454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19455 fi
19456 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19457 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19459 fi
19460 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19461 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19463 fi
19464 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
19465 as_fn_error $? "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
19466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19467 fi
19468 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
19469 as_fn_error $? "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
19470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19471 fi
19472 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19473 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19475 fi
19476 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19477 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19479 fi
19480 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
19481 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
19482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19483 fi
19484 if test -z "${USE_WIN_VERSION_FILE_TRUE}" && test -z "${USE_WIN_VERSION_FILE_FALSE}"; then
19485 as_fn_error $? "conditional \"USE_WIN_VERSION_FILE\" was never defined.
19486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19487 fi
19488
19489 : "${CONFIG_STATUS=./config.status}"
19490 ac_write_fail=0
19491 ac_clean_files_save=$ac_clean_files
19492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19495 as_write_fail=0
19496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19497 #! $SHELL
19498 # Generated by $as_me.
19499 # Run this file to recreate the current configuration.
19500 # Compiler output produced by configure, useful for debugging
19501 # configure, is in config.log if it exists.
19502
19503 debug=false
19504 ac_cs_recheck=false
19505 ac_cs_silent=false
19506
19507 SHELL=\${CONFIG_SHELL-$SHELL}
19508 export SHELL
19509 _ASEOF
19510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19511 ## -------------------- ##
19512 ## M4sh Initialization. ##
19513 ## -------------------- ##
19514
19515 # Be more Bourne compatible
19516 DUALCASE=1; export DUALCASE # for MKS sh
19517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19518 emulate sh
19519 NULLCMD=:
19520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19521 # is contrary to our usage. Disable this feature.
19522 alias -g '${1+"$@"}'='"$@"'
19523 setopt NO_GLOB_SUBST
19524 else
19525 case `(set -o) 2>/dev/null` in #(
19526 *posix*) :
19527 set -o posix ;; #(
19528 *) :
19529 ;;
19530 esac
19531 fi
19532
19533
19534 as_nl='
19535 '
19536 export as_nl
19537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19541 # Prefer a ksh shell builtin over an external printf program on Solaris,
19542 # but without wasting forks for bash or zsh.
19543 if test -z "$BASH_VERSION$ZSH_VERSION" \
19544 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19545 as_echo='print -r --'
19546 as_echo_n='print -rn --'
19547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19548 as_echo='printf %s\n'
19549 as_echo_n='printf %s'
19550 else
19551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19552 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19553 as_echo_n='/usr/ucb/echo -n'
19554 else
19555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19556 as_echo_n_body='eval
19557 arg=$1;
19558 case $arg in #(
19559 *"$as_nl"*)
19560 expr "X$arg" : "X\\(.*\\)$as_nl";
19561 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19562 esac;
19563 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19564 '
19565 export as_echo_n_body
19566 as_echo_n='sh -c $as_echo_n_body as_echo'
19567 fi
19568 export as_echo_body
19569 as_echo='sh -c $as_echo_body as_echo'
19570 fi
19571
19572 # The user is always right.
19573 if test "${PATH_SEPARATOR+set}" != set; then
19574 PATH_SEPARATOR=:
19575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19577 PATH_SEPARATOR=';'
19578 }
19579 fi
19580
19581
19582 # IFS
19583 # We need space, tab and new line, in precisely that order. Quoting is
19584 # there to prevent editors from complaining about space-tab.
19585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19586 # splitting by setting IFS to empty value.)
19587 IFS=" "" $as_nl"
19588
19589 # Find who we are. Look in the path if we contain no directory separator.
19590 as_myself=
19591 case $0 in #((
19592 *[\\/]* ) as_myself=$0 ;;
19593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 for as_dir in $PATH
19595 do
19596 IFS=$as_save_IFS
19597 test -z "$as_dir" && as_dir=.
19598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19599 done
19600 IFS=$as_save_IFS
19601
19602 ;;
19603 esac
19604 # We did not find ourselves, most probably we were run as `sh COMMAND'
19605 # in which case we are not to be found in the path.
19606 if test "x$as_myself" = x; then
19607 as_myself=$0
19608 fi
19609 if test ! -f "$as_myself"; then
19610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19611 exit 1
19612 fi
19613
19614 # Unset variables that we do not need and which cause bugs (e.g. in
19615 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19616 # suppresses any "Segmentation fault" message there. '((' could
19617 # trigger a bug in pdksh 5.2.14.
19618 for as_var in BASH_ENV ENV MAIL MAILPATH
19619 do eval test x\${$as_var+set} = xset \
19620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19621 done
19622 PS1='$ '
19623 PS2='> '
19624 PS4='+ '
19625
19626 # NLS nuisances.
19627 LC_ALL=C
19628 export LC_ALL
19629 LANGUAGE=C
19630 export LANGUAGE
19631
19632 # CDPATH.
19633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19634
19635
19636 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19637 # ----------------------------------------
19638 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19639 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19640 # script with STATUS, using 1 if that was 0.
19641 as_fn_error ()
19642 {
19643 as_status=$1; test $as_status -eq 0 && as_status=1
19644 if test "$4"; then
19645 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19647 fi
19648 $as_echo "$as_me: error: $2" >&2
19649 as_fn_exit $as_status
19650 } # as_fn_error
19651
19652
19653 # as_fn_set_status STATUS
19654 # -----------------------
19655 # Set $? to STATUS, without forking.
19656 as_fn_set_status ()
19657 {
19658 return $1
19659 } # as_fn_set_status
19660
19661 # as_fn_exit STATUS
19662 # -----------------
19663 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19664 as_fn_exit ()
19665 {
19666 set +e
19667 as_fn_set_status $1
19668 exit $1
19669 } # as_fn_exit
19670
19671 # as_fn_unset VAR
19672 # ---------------
19673 # Portably unset VAR.
19674 as_fn_unset ()
19675 {
19676 { eval $1=; unset $1;}
19677 }
19678 as_unset=as_fn_unset
19679 # as_fn_append VAR VALUE
19680 # ----------------------
19681 # Append the text in VALUE to the end of the definition contained in VAR. Take
19682 # advantage of any shell optimizations that allow amortized linear growth over
19683 # repeated appends, instead of the typical quadratic growth present in naive
19684 # implementations.
19685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19686 eval 'as_fn_append ()
19687 {
19688 eval $1+=\$2
19689 }'
19690 else
19691 as_fn_append ()
19692 {
19693 eval $1=\$$1\$2
19694 }
19695 fi # as_fn_append
19696
19697 # as_fn_arith ARG...
19698 # ------------------
19699 # Perform arithmetic evaluation on the ARGs, and store the result in the
19700 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19701 # must be portable across $(()) and expr.
19702 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19703 eval 'as_fn_arith ()
19704 {
19705 as_val=$(( $* ))
19706 }'
19707 else
19708 as_fn_arith ()
19709 {
19710 as_val=`expr "$@" || test $? -eq 1`
19711 }
19712 fi # as_fn_arith
19713
19714
19715 if expr a : '\(a\)' >/dev/null 2>&1 &&
19716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19717 as_expr=expr
19718 else
19719 as_expr=false
19720 fi
19721
19722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19723 as_basename=basename
19724 else
19725 as_basename=false
19726 fi
19727
19728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19729 as_dirname=dirname
19730 else
19731 as_dirname=false
19732 fi
19733
19734 as_me=`$as_basename -- "$0" ||
19735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19736 X"$0" : 'X\(//\)$' \| \
19737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19738 $as_echo X/"$0" |
19739 sed '/^.*\/\([^/][^/]*\)\/*$/{
19740 s//\1/
19741 q
19742 }
19743 /^X\/\(\/\/\)$/{
19744 s//\1/
19745 q
19746 }
19747 /^X\/\(\/\).*/{
19748 s//\1/
19749 q
19750 }
19751 s/.*/./; q'`
19752
19753 # Avoid depending upon Character Ranges.
19754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19757 as_cr_digits='0123456789'
19758 as_cr_alnum=$as_cr_Letters$as_cr_digits
19759
19760 ECHO_C= ECHO_N= ECHO_T=
19761 case `echo -n x` in #(((((
19762 -n*)
19763 case `echo 'xy\c'` in
19764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19765 xy) ECHO_C='\c';;
19766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19767 ECHO_T=' ';;
19768 esac;;
19769 *)
19770 ECHO_N='-n';;
19771 esac
19772
19773 rm -f conf$$ conf$$.exe conf$$.file
19774 if test -d conf$$.dir; then
19775 rm -f conf$$.dir/conf$$.file
19776 else
19777 rm -f conf$$.dir
19778 mkdir conf$$.dir 2>/dev/null
19779 fi
19780 if (echo >conf$$.file) 2>/dev/null; then
19781 if ln -s conf$$.file conf$$ 2>/dev/null; then
19782 as_ln_s='ln -s'
19783 # ... but there are two gotchas:
19784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19786 # In both cases, we have to default to `cp -p'.
19787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19788 as_ln_s='cp -p'
19789 elif ln conf$$.file conf$$ 2>/dev/null; then
19790 as_ln_s=ln
19791 else
19792 as_ln_s='cp -p'
19793 fi
19794 else
19795 as_ln_s='cp -p'
19796 fi
19797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19798 rmdir conf$$.dir 2>/dev/null
19799
19800
19801 # as_fn_mkdir_p
19802 # -------------
19803 # Create "$as_dir" as a directory, including parents if necessary.
19804 as_fn_mkdir_p ()
19805 {
19806
19807 case $as_dir in #(
19808 -*) as_dir=./$as_dir;;
19809 esac
19810 test -d "$as_dir" || eval $as_mkdir_p || {
19811 as_dirs=
19812 while :; do
19813 case $as_dir in #(
19814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19815 *) as_qdir=$as_dir;;
19816 esac
19817 as_dirs="'$as_qdir' $as_dirs"
19818 as_dir=`$as_dirname -- "$as_dir" ||
19819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19820 X"$as_dir" : 'X\(//\)[^/]' \| \
19821 X"$as_dir" : 'X\(//\)$' \| \
19822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19823 $as_echo X"$as_dir" |
19824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19825 s//\1/
19826 q
19827 }
19828 /^X\(\/\/\)[^/].*/{
19829 s//\1/
19830 q
19831 }
19832 /^X\(\/\/\)$/{
19833 s//\1/
19834 q
19835 }
19836 /^X\(\/\).*/{
19837 s//\1/
19838 q
19839 }
19840 s/.*/./; q'`
19841 test -d "$as_dir" && break
19842 done
19843 test -z "$as_dirs" || eval "mkdir $as_dirs"
19844 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19845
19846
19847 } # as_fn_mkdir_p
19848 if mkdir -p . 2>/dev/null; then
19849 as_mkdir_p='mkdir -p "$as_dir"'
19850 else
19851 test -d ./-p && rmdir ./-p
19852 as_mkdir_p=false
19853 fi
19854
19855 if test -x / >/dev/null 2>&1; then
19856 as_test_x='test -x'
19857 else
19858 if ls -dL / >/dev/null 2>&1; then
19859 as_ls_L_option=L
19860 else
19861 as_ls_L_option=
19862 fi
19863 as_test_x='
19864 eval sh -c '\''
19865 if test -d "$1"; then
19866 test -d "$1/.";
19867 else
19868 case $1 in #(
19869 -*)set "./$1";;
19870 esac;
19871 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19872 ???[sx]*):;;*)false;;esac;fi
19873 '\'' sh
19874 '
19875 fi
19876 as_executable_p=$as_test_x
19877
19878 # Sed expression to map a string onto a valid CPP name.
19879 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19880
19881 # Sed expression to map a string onto a valid variable name.
19882 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19883
19884
19885 exec 6>&1
19886 ## ----------------------------------- ##
19887 ## Main body of $CONFIG_STATUS script. ##
19888 ## ----------------------------------- ##
19889 _ASEOF
19890 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19891
19892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19893 # Save the log message, to keep $0 and so on meaningful, and to
19894 # report actual input values of CONFIG_FILES etc. instead of their
19895 # values after options handling.
19896 ac_log="
19897 This file was extended by libsndfile $as_me 1.0.25, which was
19898 generated by GNU Autoconf 2.68. Invocation command line was
19899
19900 CONFIG_FILES = $CONFIG_FILES
19901 CONFIG_HEADERS = $CONFIG_HEADERS
19902 CONFIG_LINKS = $CONFIG_LINKS
19903 CONFIG_COMMANDS = $CONFIG_COMMANDS
19904 $ $0 $@
19905
19906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19907 "
19908
19909 _ACEOF
19910
19911 case $ac_config_files in *"
19912 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19913 esac
19914
19915 case $ac_config_headers in *"
19916 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19917 esac
19918
19919
19920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19921 # Files that config.status was made for.
19922 config_files="$ac_config_files"
19923 config_headers="$ac_config_headers"
19924 config_commands="$ac_config_commands"
19925
19926 _ACEOF
19927
19928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19929 ac_cs_usage="\
19930 \`$as_me' instantiates files and other configuration actions
19931 from templates according to the current configuration. Unless the files
19932 and actions are specified as TAGs, all are instantiated by default.
19933
19934 Usage: $0 [OPTION]... [TAG]...
19935
19936 -h, --help print this help, then exit
19937 -V, --version print version number and configuration settings, then exit
19938 --config print configuration, then exit
19939 -q, --quiet, --silent
19940 do not print progress messages
19941 -d, --debug don't remove temporary files
19942 --recheck update $as_me by reconfiguring in the same conditions
19943 --file=FILE[:TEMPLATE]
19944 instantiate the configuration file FILE
19945 --header=FILE[:TEMPLATE]
19946 instantiate the configuration header FILE
19947
19948 Configuration files:
19949 $config_files
19950
19951 Configuration headers:
19952 $config_headers
19953
19954 Configuration commands:
19955 $config_commands
19956
19957 Report bugs to <sndfile@mega-nerd.com>.
19958 libsndfile home page: <http://www.mega-nerd.com/libsndfile/>."
19959
19960 _ACEOF
19961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19962 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19963 ac_cs_version="\\
19964 libsndfile config.status 1.0.25
19965 configured by $0, generated by GNU Autoconf 2.68,
19966 with options \\"\$ac_cs_config\\"
19967
19968 Copyright (C) 2010 Free Software Foundation, Inc.
19969 This config.status script is free software; the Free Software Foundation
19970 gives unlimited permission to copy, distribute and modify it."
19971
19972 ac_pwd='$ac_pwd'
19973 srcdir='$srcdir'
19974 INSTALL='$INSTALL'
19975 MKDIR_P='$MKDIR_P'
19976 AWK='$AWK'
19977 test -n "\$AWK" || AWK=awk
19978 _ACEOF
19979
19980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19981 # The default lists apply if the user does not specify any file.
19982 ac_need_defaults=:
19983 while test $# != 0
19984 do
19985 case $1 in
19986 --*=?*)
19987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19988 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19989 ac_shift=:
19990 ;;
19991 --*=)
19992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19993 ac_optarg=
19994 ac_shift=:
19995 ;;
19996 *)
19997 ac_option=$1
19998 ac_optarg=$2
19999 ac_shift=shift
20000 ;;
20001 esac
20002
20003 case $ac_option in
20004 # Handling of the options.
20005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20006 ac_cs_recheck=: ;;
20007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20008 $as_echo "$ac_cs_version"; exit ;;
20009 --config | --confi | --conf | --con | --co | --c )
20010 $as_echo "$ac_cs_config"; exit ;;
20011 --debug | --debu | --deb | --de | --d | -d )
20012 debug=: ;;
20013 --file | --fil | --fi | --f )
20014 $ac_shift
20015 case $ac_optarg in
20016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20017 '') as_fn_error $? "missing file argument" ;;
20018 esac
20019 as_fn_append CONFIG_FILES " '$ac_optarg'"
20020 ac_need_defaults=false;;
20021 --header | --heade | --head | --hea )
20022 $ac_shift
20023 case $ac_optarg in
20024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20025 esac
20026 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20027 ac_need_defaults=false;;
20028 --he | --h)
20029 # Conflict between --help and --header
20030 as_fn_error $? "ambiguous option: \`$1'
20031 Try \`$0 --help' for more information.";;
20032 --help | --hel | -h )
20033 $as_echo "$ac_cs_usage"; exit ;;
20034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20035 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20036 ac_cs_silent=: ;;
20037
20038 # This is an error.
20039 -*) as_fn_error $? "unrecognized option: \`$1'
20040 Try \`$0 --help' for more information." ;;
20041
20042 *) as_fn_append ac_config_targets " $1"
20043 ac_need_defaults=false ;;
20044
20045 esac
20046 shift
20047 done
20048
20049 ac_configure_extra_args=
20050
20051 if $ac_cs_silent; then
20052 exec 6>/dev/null
20053 ac_configure_extra_args="$ac_configure_extra_args --silent"
20054 fi
20055
20056 _ACEOF
20057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20058 if \$ac_cs_recheck; then
20059 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20060 shift
20061 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20062 CONFIG_SHELL='$SHELL'
20063 export CONFIG_SHELL
20064 exec "\$@"
20065 fi
20066
20067 _ACEOF
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069 exec 5>>config.log
20070 {
20071 echo
20072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20073 ## Running $as_me. ##
20074 _ASBOX
20075 $as_echo "$ac_log"
20076 } >&5
20077
20078 _ACEOF
20079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20080 #
20081 # INIT-COMMANDS
20082 #
20083 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20084
20085
20086 # The HP-UX ksh and POSIX shell print the target directory to stdout
20087 # if CDPATH is set.
20088 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20089
20090 sed_quote_subst='$sed_quote_subst'
20091 double_quote_subst='$double_quote_subst'
20092 delay_variable_subst='$delay_variable_subst'
20093 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20094 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20095 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20096 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20097 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20098 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20099 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20100 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20101 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20102 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20103 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20104 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20105 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20106 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20107 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20108 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20109 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20110 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20111 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20112 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20113 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20114 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20115 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20116 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20117 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20118 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20119 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20120 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20122 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20123 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20124 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20125 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20126 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20127 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20128 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20129 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20130 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20131 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20132 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20133 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20134 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20135 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20136 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20137 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20138 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20139 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20140 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20141 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20142 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20143 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20144 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20145 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20146 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20147 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20148 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"`'
20149 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20150 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20151 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20152 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20153 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20154 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20155 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20156 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20157 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20158 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20159 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20160 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20161 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20162 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20163 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20164 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20165 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20166 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20167 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20168 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20169 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20170 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20171 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20172 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20173 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20174 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20175 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20176 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20177 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20178 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20179 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20180 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20181 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20182 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20183 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20184 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20185 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20186 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20187 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20188 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20189 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20190 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20191 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20192 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20193 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20194 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20195 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20196 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20197 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20198 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20199 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20200 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20201 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20202 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20203 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20204 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20205 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20206 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20207 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20208 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20209 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20210 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20211 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20212 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20213 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20214 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20215 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20216 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20217 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20218 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20219 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20220 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20221 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20222 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20223 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20224 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20225 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20226 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20227 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20228 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20229 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20230 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20231 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20232 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20233 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20234 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20235 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20236 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20237 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20238 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20239 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20240 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20241 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20242 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20243 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20244 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20245 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20246 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20247 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20248 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20249 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20250 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20251 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20252 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20253 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20254 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20255 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20256 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20257 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20258 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20259 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20260 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20261 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20262 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20263 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20264 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20265 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20266 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20267 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20268 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20269 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20270 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20271 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20272 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20273 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20274 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20275 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20276 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20277 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20278 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20279 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20280 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20281 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20282 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
20283 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20284 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20285 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20286 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20287 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20288 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20289 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20290 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20291 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20292 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20293 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20294 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20295 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20296 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20297 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20298 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20299 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20300 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20301 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20302 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20303 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20304 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20305 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20306 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20307 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20308 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20309 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20310 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20311 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20312 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20313 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20314 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20315 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20316 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20317 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20318 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20319 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20320 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20321 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20322 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20323 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20324 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20325 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20326 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20327
20328 LTCC='$LTCC'
20329 LTCFLAGS='$LTCFLAGS'
20330 compiler='$compiler_DEFAULT'
20331
20332 # A function that is used when there is no print builtin or printf.
20333 func_fallback_echo ()
20334 {
20335 eval 'cat <<_LTECHO_EOF
20336 \$1
20337 _LTECHO_EOF'
20338 }
20339
20340 # Quote evaled strings.
20341 for var in SHELL \
20342 ECHO \
20343 SED \
20344 GREP \
20345 EGREP \
20346 FGREP \
20347 LD \
20348 NM \
20349 LN_S \
20350 lt_SP2NL \
20351 lt_NL2SP \
20352 reload_flag \
20353 OBJDUMP \
20354 deplibs_check_method \
20355 file_magic_cmd \
20356 file_magic_glob \
20357 want_nocaseglob \
20358 DLLTOOL \
20359 sharedlib_from_linklib_cmd \
20360 AR \
20361 AR_FLAGS \
20362 archiver_list_spec \
20363 STRIP \
20364 RANLIB \
20365 CC \
20366 CFLAGS \
20367 compiler \
20368 lt_cv_sys_global_symbol_pipe \
20369 lt_cv_sys_global_symbol_to_cdecl \
20370 lt_cv_sys_global_symbol_to_c_name_address \
20371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20372 nm_file_list_spec \
20373 lt_prog_compiler_no_builtin_flag \
20374 lt_prog_compiler_pic \
20375 lt_prog_compiler_wl \
20376 lt_prog_compiler_static \
20377 lt_cv_prog_compiler_c_o \
20378 need_locks \
20379 MANIFEST_TOOL \
20380 DSYMUTIL \
20381 NMEDIT \
20382 LIPO \
20383 OTOOL \
20384 OTOOL64 \
20385 shrext_cmds \
20386 export_dynamic_flag_spec \
20387 whole_archive_flag_spec \
20388 compiler_needs_object \
20389 with_gnu_ld \
20390 allow_undefined_flag \
20391 no_undefined_flag \
20392 hardcode_libdir_flag_spec \
20393 hardcode_libdir_flag_spec_ld \
20394 hardcode_libdir_separator \
20395 exclude_expsyms \
20396 include_expsyms \
20397 file_list_spec \
20398 variables_saved_for_relink \
20399 libname_spec \
20400 library_names_spec \
20401 soname_spec \
20402 install_override_mode \
20403 finish_eval \
20404 old_striplib \
20405 striplib \
20406 compiler_lib_search_dirs \
20407 predep_objects \
20408 postdep_objects \
20409 predeps \
20410 postdeps \
20411 compiler_lib_search_path \
20412 LD_CXX \
20413 LD_RC \
20414 reload_flag_CXX \
20415 reload_flag_RC \
20416 compiler_CXX \
20417 compiler_RC \
20418 lt_prog_compiler_no_builtin_flag_CXX \
20419 lt_prog_compiler_no_builtin_flag_RC \
20420 lt_prog_compiler_pic_CXX \
20421 lt_prog_compiler_pic_RC \
20422 lt_prog_compiler_wl_CXX \
20423 lt_prog_compiler_wl_RC \
20424 lt_prog_compiler_static_CXX \
20425 lt_prog_compiler_static_RC \
20426 lt_cv_prog_compiler_c_o_CXX \
20427 lt_cv_prog_compiler_c_o_RC \
20428 export_dynamic_flag_spec_CXX \
20429 export_dynamic_flag_spec_RC \
20430 whole_archive_flag_spec_CXX \
20431 whole_archive_flag_spec_RC \
20432 compiler_needs_object_CXX \
20433 compiler_needs_object_RC \
20434 with_gnu_ld_CXX \
20435 with_gnu_ld_RC \
20436 allow_undefined_flag_CXX \
20437 allow_undefined_flag_RC \
20438 no_undefined_flag_CXX \
20439 no_undefined_flag_RC \
20440 hardcode_libdir_flag_spec_CXX \
20441 hardcode_libdir_flag_spec_RC \
20442 hardcode_libdir_flag_spec_ld_CXX \
20443 hardcode_libdir_flag_spec_ld_RC \
20444 hardcode_libdir_separator_CXX \
20445 hardcode_libdir_separator_RC \
20446 exclude_expsyms_CXX \
20447 exclude_expsyms_RC \
20448 include_expsyms_CXX \
20449 include_expsyms_RC \
20450 file_list_spec_CXX \
20451 file_list_spec_RC \
20452 compiler_lib_search_dirs_CXX \
20453 compiler_lib_search_dirs_RC \
20454 predep_objects_CXX \
20455 predep_objects_RC \
20456 postdep_objects_CXX \
20457 postdep_objects_RC \
20458 predeps_CXX \
20459 predeps_RC \
20460 postdeps_CXX \
20461 postdeps_RC \
20462 compiler_lib_search_path_CXX \
20463 compiler_lib_search_path_RC; do
20464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20465 *[\\\\\\\`\\"\\\$]*)
20466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20467 ;;
20468 *)
20469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20470 ;;
20471 esac
20472 done
20473
20474 # Double-quote double-evaled strings.
20475 for var in reload_cmds \
20476 old_postinstall_cmds \
20477 old_postuninstall_cmds \
20478 old_archive_cmds \
20479 extract_expsyms_cmds \
20480 old_archive_from_new_cmds \
20481 old_archive_from_expsyms_cmds \
20482 archive_cmds \
20483 archive_expsym_cmds \
20484 module_cmds \
20485 module_expsym_cmds \
20486 export_symbols_cmds \
20487 prelink_cmds \
20488 postlink_cmds \
20489 postinstall_cmds \
20490 postuninstall_cmds \
20491 finish_cmds \
20492 sys_lib_search_path_spec \
20493 sys_lib_dlsearch_path_spec \
20494 reload_cmds_CXX \
20495 reload_cmds_RC \
20496 old_archive_cmds_CXX \
20497 old_archive_cmds_RC \
20498 old_archive_from_new_cmds_CXX \
20499 old_archive_from_new_cmds_RC \
20500 old_archive_from_expsyms_cmds_CXX \
20501 old_archive_from_expsyms_cmds_RC \
20502 archive_cmds_CXX \
20503 archive_cmds_RC \
20504 archive_expsym_cmds_CXX \
20505 archive_expsym_cmds_RC \
20506 module_cmds_CXX \
20507 module_cmds_RC \
20508 module_expsym_cmds_CXX \
20509 module_expsym_cmds_RC \
20510 export_symbols_cmds_CXX \
20511 export_symbols_cmds_RC \
20512 prelink_cmds_CXX \
20513 prelink_cmds_RC \
20514 postlink_cmds_CXX \
20515 postlink_cmds_RC; do
20516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20517 *[\\\\\\\`\\"\\\$]*)
20518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20519 ;;
20520 *)
20521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20522 ;;
20523 esac
20524 done
20525
20526 ac_aux_dir='$ac_aux_dir'
20527 xsi_shell='$xsi_shell'
20528 lt_shell_append='$lt_shell_append'
20529
20530 # See if we are running on zsh, and set the options which allow our
20531 # commands through without removal of \ escapes INIT.
20532 if test -n "\${ZSH_VERSION+set}" ; then
20533 setopt NO_GLOB_SUBST
20534 fi
20535
20536
20537 PACKAGE='$PACKAGE'
20538 VERSION='$VERSION'
20539 TIMESTAMP='$TIMESTAMP'
20540 RM='$RM'
20541 ofile='$ofile'
20542
20543
20544
20545
20546
20547
20548
20549
20550 _ACEOF
20551
20552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20553
20554 # Handling of arguments.
20555 for ac_config_target in $ac_config_targets
20556 do
20557 case $ac_config_target in
20558 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20561 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20562 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20563 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20564 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20565 "regtest/Makefile") CONFIG_FILES="$CONFIG_FILES regtest/Makefile" ;;
20566 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
20567 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20568 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
20569 "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
20570 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20572 "src/version-metadata.rc") CONFIG_FILES="$CONFIG_FILES src/version-metadata.rc" ;;
20573 "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
20574 "tests/pedantic-header-test.sh") CONFIG_FILES="$CONFIG_FILES tests/pedantic-header-test.sh" ;;
20575 "doc/libsndfile.css") CONFIG_FILES="$CONFIG_FILES doc/libsndfile.css" ;;
20576 "build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES build-test-tarball.mk" ;;
20577 "libsndfile.spec") CONFIG_FILES="$CONFIG_FILES libsndfile.spec" ;;
20578 "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
20579 "src/sndfile.h") CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
20580
20581 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20582 esac
20583 done
20584
20585
20586 # If the user did not use the arguments to specify the items to instantiate,
20587 # then the envvar interface is used. Set only those that are not.
20588 # We use the long form for the default assignment because of an extremely
20589 # bizarre bug on SunOS 4.1.3.
20590 if $ac_need_defaults; then
20591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20594 fi
20595
20596 # Have a temporary directory for convenience. Make it in the build tree
20597 # simply because there is no reason against having it here, and in addition,
20598 # creating and moving files from /tmp can sometimes cause problems.
20599 # Hook for its removal unless debugging.
20600 # Note that there is a small window in which the directory will not be cleaned:
20601 # after its creation but before its name has been assigned to `$tmp'.
20602 $debug ||
20603 {
20604 tmp= ac_tmp=
20605 trap 'exit_status=$?
20606 : "${ac_tmp:=$tmp}"
20607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20608 ' 0
20609 trap 'as_fn_exit 1' 1 2 13 15
20610 }
20611 # Create a (secure) tmp directory for tmp files.
20612
20613 {
20614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20615 test -d "$tmp"
20616 } ||
20617 {
20618 tmp=./conf$$-$RANDOM
20619 (umask 077 && mkdir "$tmp")
20620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20621 ac_tmp=$tmp
20622
20623 # Set up the scripts for CONFIG_FILES section.
20624 # No need to generate them if there are no CONFIG_FILES.
20625 # This happens for instance with `./config.status config.h'.
20626 if test -n "$CONFIG_FILES"; then
20627
20628
20629 ac_cr=`echo X | tr X '\015'`
20630 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20631 # But we know of no other shell where ac_cr would be empty at this
20632 # point, so we can use a bashism as a fallback.
20633 if test "x$ac_cr" = x; then
20634 eval ac_cr=\$\'\\r\'
20635 fi
20636 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20637 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20638 ac_cs_awk_cr='\\r'
20639 else
20640 ac_cs_awk_cr=$ac_cr
20641 fi
20642
20643 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20644 _ACEOF
20645
20646
20647 {
20648 echo "cat >conf$$subs.awk <<_ACEOF" &&
20649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20650 echo "_ACEOF"
20651 } >conf$$subs.sh ||
20652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20653 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20654 ac_delim='%!_!# '
20655 for ac_last_try in false false false false false :; do
20656 . ./conf$$subs.sh ||
20657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20658
20659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20660 if test $ac_delim_n = $ac_delim_num; then
20661 break
20662 elif $ac_last_try; then
20663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20664 else
20665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20666 fi
20667 done
20668 rm -f conf$$subs.sh
20669
20670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20671 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20672 _ACEOF
20673 sed -n '
20674 h
20675 s/^/S["/; s/!.*/"]=/
20676 p
20677 g
20678 s/^[^!]*!//
20679 :repl
20680 t repl
20681 s/'"$ac_delim"'$//
20682 t delim
20683 :nl
20684 h
20685 s/\(.\{148\}\)..*/\1/
20686 t more1
20687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20688 p
20689 n
20690 b repl
20691 :more1
20692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20693 p
20694 g
20695 s/.\{148\}//
20696 t nl
20697 :delim
20698 h
20699 s/\(.\{148\}\)..*/\1/
20700 t more2
20701 s/["\\]/\\&/g; s/^/"/; s/$/"/
20702 p
20703 b
20704 :more2
20705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20706 p
20707 g
20708 s/.\{148\}//
20709 t delim
20710 ' <conf$$subs.awk | sed '
20711 /^[^""]/{
20712 N
20713 s/\n//
20714 }
20715 ' >>$CONFIG_STATUS || ac_write_fail=1
20716 rm -f conf$$subs.awk
20717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20718 _ACAWK
20719 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20720 for (key in S) S_is_set[key] = 1
20721 FS = "\a"
20722
20723 }
20724 {
20725 line = $ 0
20726 nfields = split(line, field, "@")
20727 substed = 0
20728 len = length(field[1])
20729 for (i = 2; i < nfields; i++) {
20730 key = field[i]
20731 keylen = length(key)
20732 if (S_is_set[key]) {
20733 value = S[key]
20734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20735 len += length(value) + length(field[++i])
20736 substed = 1
20737 } else
20738 len += 1 + keylen
20739 }
20740
20741 print line
20742 }
20743
20744 _ACAWK
20745 _ACEOF
20746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20749 else
20750 cat
20751 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20753 _ACEOF
20754
20755 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20756 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20757 # trailing colons and then remove the whole line if VPATH becomes empty
20758 # (actually we leave an empty line to preserve line numbers).
20759 if test "x$srcdir" = x.; then
20760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20761 h
20762 s///
20763 s/^/:/
20764 s/[ ]*$/:/
20765 s/:\$(srcdir):/:/g
20766 s/:\${srcdir}:/:/g
20767 s/:@srcdir@:/:/g
20768 s/^:*//
20769 s/:*$//
20770 x
20771 s/\(=[ ]*\).*/\1/
20772 G
20773 s/\n//
20774 s/^[^=]*=[ ]*$//
20775 }'
20776 fi
20777
20778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20779 fi # test -n "$CONFIG_FILES"
20780
20781 # Set up the scripts for CONFIG_HEADERS section.
20782 # No need to generate them if there are no CONFIG_HEADERS.
20783 # This happens for instance with `./config.status Makefile'.
20784 if test -n "$CONFIG_HEADERS"; then
20785 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20786 BEGIN {
20787 _ACEOF
20788
20789 # Transform confdefs.h into an awk script `defines.awk', embedded as
20790 # here-document in config.status, that substitutes the proper values into
20791 # config.h.in to produce config.h.
20792
20793 # Create a delimiter string that does not exist in confdefs.h, to ease
20794 # handling of long lines.
20795 ac_delim='%!_!# '
20796 for ac_last_try in false false :; do
20797 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20798 if test -z "$ac_tt"; then
20799 break
20800 elif $ac_last_try; then
20801 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20802 else
20803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20804 fi
20805 done
20806
20807 # For the awk script, D is an array of macro values keyed by name,
20808 # likewise P contains macro parameters if any. Preserve backslash
20809 # newline sequences.
20810
20811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20812 sed -n '
20813 s/.\{148\}/&'"$ac_delim"'/g
20814 t rset
20815 :rset
20816 s/^[ ]*#[ ]*define[ ][ ]*/ /
20817 t def
20818 d
20819 :def
20820 s/\\$//
20821 t bsnl
20822 s/["\\]/\\&/g
20823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20824 D["\1"]=" \3"/p
20825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20826 d
20827 :bsnl
20828 s/["\\]/\\&/g
20829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20830 D["\1"]=" \3\\\\\\n"\\/p
20831 t cont
20832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20833 t cont
20834 d
20835 :cont
20836 n
20837 s/.\{148\}/&'"$ac_delim"'/g
20838 t clear
20839 :clear
20840 s/\\$//
20841 t bsnlc
20842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20843 d
20844 :bsnlc
20845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20846 b cont
20847 ' <confdefs.h | sed '
20848 s/'"$ac_delim"'/"\\\
20849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20850
20851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20852 for (key in D) D_is_set[key] = 1
20853 FS = "\a"
20854 }
20855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20856 line = \$ 0
20857 split(line, arg, " ")
20858 if (arg[1] == "#") {
20859 defundef = arg[2]
20860 mac1 = arg[3]
20861 } else {
20862 defundef = substr(arg[1], 2)
20863 mac1 = arg[2]
20864 }
20865 split(mac1, mac2, "(") #)
20866 macro = mac2[1]
20867 prefix = substr(line, 1, index(line, defundef) - 1)
20868 if (D_is_set[macro]) {
20869 # Preserve the white space surrounding the "#".
20870 print prefix "define", macro P[macro] D[macro]
20871 next
20872 } else {
20873 # Replace #undef with comments. This is necessary, for example,
20874 # in the case of _POSIX_SOURCE, which is predefined and required
20875 # on some systems where configure will not decide to define it.
20876 if (defundef == "undef") {
20877 print "/*", prefix defundef, macro, "*/"
20878 next
20879 }
20880 }
20881 }
20882 { print }
20883 _ACAWK
20884 _ACEOF
20885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20886 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20887 fi # test -n "$CONFIG_HEADERS"
20888
20889
20890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20891 shift
20892 for ac_tag
20893 do
20894 case $ac_tag in
20895 :[FHLC]) ac_mode=$ac_tag; continue;;
20896 esac
20897 case $ac_mode$ac_tag in
20898 :[FHL]*:*);;
20899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20900 :[FH]-) ac_tag=-:-;;
20901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20902 esac
20903 ac_save_IFS=$IFS
20904 IFS=:
20905 set x $ac_tag
20906 IFS=$ac_save_IFS
20907 shift
20908 ac_file=$1
20909 shift
20910
20911 case $ac_mode in
20912 :L) ac_source=$1;;
20913 :[FH])
20914 ac_file_inputs=
20915 for ac_f
20916 do
20917 case $ac_f in
20918 -) ac_f="$ac_tmp/stdin";;
20919 *) # Look for the file first in the build tree, then in the source tree
20920 # (if the path is not absolute). The absolute path cannot be DOS-style,
20921 # because $ac_f cannot contain `:'.
20922 test -f "$ac_f" ||
20923 case $ac_f in
20924 [\\/$]*) false;;
20925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20926 esac ||
20927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20928 esac
20929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20930 as_fn_append ac_file_inputs " '$ac_f'"
20931 done
20932
20933 # Let's still pretend it is `configure' which instantiates (i.e., don't
20934 # use $as_me), people would be surprised to read:
20935 # /* config.h. Generated by config.status. */
20936 configure_input='Generated from '`
20937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20938 `' by configure.'
20939 if test x"$ac_file" != x-; then
20940 configure_input="$ac_file. $configure_input"
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20942 $as_echo "$as_me: creating $ac_file" >&6;}
20943 fi
20944 # Neutralize special characters interpreted by sed in replacement strings.
20945 case $configure_input in #(
20946 *\&* | *\|* | *\\* )
20947 ac_sed_conf_input=`$as_echo "$configure_input" |
20948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20949 *) ac_sed_conf_input=$configure_input;;
20950 esac
20951
20952 case $ac_tag in
20953 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20955 esac
20956 ;;
20957 esac
20958
20959 ac_dir=`$as_dirname -- "$ac_file" ||
20960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$ac_file" : 'X\(//\)[^/]' \| \
20962 X"$ac_file" : 'X\(//\)$' \| \
20963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20964 $as_echo X"$ac_file" |
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20966 s//\1/
20967 q
20968 }
20969 /^X\(\/\/\)[^/].*/{
20970 s//\1/
20971 q
20972 }
20973 /^X\(\/\/\)$/{
20974 s//\1/
20975 q
20976 }
20977 /^X\(\/\).*/{
20978 s//\1/
20979 q
20980 }
20981 s/.*/./; q'`
20982 as_dir="$ac_dir"; as_fn_mkdir_p
20983 ac_builddir=.
20984
20985 case "$ac_dir" in
20986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20987 *)
20988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20989 # A ".." for each directory in $ac_dir_suffix.
20990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20991 case $ac_top_builddir_sub in
20992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20994 esac ;;
20995 esac
20996 ac_abs_top_builddir=$ac_pwd
20997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20998 # for backward compatibility:
20999 ac_top_builddir=$ac_top_build_prefix
21000
21001 case $srcdir in
21002 .) # We are building in place.
21003 ac_srcdir=.
21004 ac_top_srcdir=$ac_top_builddir_sub
21005 ac_abs_top_srcdir=$ac_pwd ;;
21006 [\\/]* | ?:[\\/]* ) # Absolute name.
21007 ac_srcdir=$srcdir$ac_dir_suffix;
21008 ac_top_srcdir=$srcdir
21009 ac_abs_top_srcdir=$srcdir ;;
21010 *) # Relative name.
21011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21012 ac_top_srcdir=$ac_top_build_prefix$srcdir
21013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21014 esac
21015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21016
21017
21018 case $ac_mode in
21019 :F)
21020 #
21021 # CONFIG_FILE
21022 #
21023
21024 case $INSTALL in
21025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21027 esac
21028 ac_MKDIR_P=$MKDIR_P
21029 case $MKDIR_P in
21030 [\\/$]* | ?:[\\/]* ) ;;
21031 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21032 esac
21033 _ACEOF
21034
21035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21036 # If the template does not know about datarootdir, expand it.
21037 # FIXME: This hack should be removed a few years after 2.60.
21038 ac_datarootdir_hack=; ac_datarootdir_seen=
21039 ac_sed_dataroot='
21040 /datarootdir/ {
21041 p
21042 q
21043 }
21044 /@datadir@/p
21045 /@docdir@/p
21046 /@infodir@/p
21047 /@localedir@/p
21048 /@mandir@/p'
21049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21050 *datarootdir*) ac_datarootdir_seen=yes;;
21051 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21053 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21054 _ACEOF
21055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21056 ac_datarootdir_hack='
21057 s&@datadir@&$datadir&g
21058 s&@docdir@&$docdir&g
21059 s&@infodir@&$infodir&g
21060 s&@localedir@&$localedir&g
21061 s&@mandir@&$mandir&g
21062 s&\\\${datarootdir}&$datarootdir&g' ;;
21063 esac
21064 _ACEOF
21065
21066 # Neutralize VPATH when `$srcdir' = `.'.
21067 # Shell code in configure.ac might set extrasub.
21068 # FIXME: do we really want to maintain this feature?
21069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21070 ac_sed_extra="$ac_vpsub
21071 $extrasub
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21074 :t
21075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21076 s|@configure_input@|$ac_sed_conf_input|;t t
21077 s&@top_builddir@&$ac_top_builddir_sub&;t t
21078 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21079 s&@srcdir@&$ac_srcdir&;t t
21080 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21081 s&@top_srcdir@&$ac_top_srcdir&;t t
21082 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21083 s&@builddir@&$ac_builddir&;t t
21084 s&@abs_builddir@&$ac_abs_builddir&;t t
21085 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21086 s&@INSTALL@&$ac_INSTALL&;t t
21087 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21088 $ac_datarootdir_hack
21089 "
21090 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21091 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21092
21093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21096 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21098 which seems to be undefined. Please make sure it is defined" >&5
21099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21100 which seems to be undefined. Please make sure it is defined" >&2;}
21101
21102 rm -f "$ac_tmp/stdin"
21103 case $ac_file in
21104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21106 esac \
21107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21108 ;;
21109 :H)
21110 #
21111 # CONFIG_HEADER
21112 #
21113 if test x"$ac_file" != x-; then
21114 {
21115 $as_echo "/* $configure_input */" \
21116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21117 } >"$ac_tmp/config.h" \
21118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21119 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21121 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21122 else
21123 rm -f "$ac_file"
21124 mv "$ac_tmp/config.h" "$ac_file" \
21125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21126 fi
21127 else
21128 $as_echo "/* $configure_input */" \
21129 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21130 || as_fn_error $? "could not create -" "$LINENO" 5
21131 fi
21132 # Compute "$ac_file"'s index in $config_headers.
21133 _am_arg="$ac_file"
21134 _am_stamp_count=1
21135 for _am_header in $config_headers :; do
21136 case $_am_header in
21137 $_am_arg | $_am_arg:* )
21138 break ;;
21139 * )
21140 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21141 esac
21142 done
21143 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21144 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21145 X"$_am_arg" : 'X\(//\)[^/]' \| \
21146 X"$_am_arg" : 'X\(//\)$' \| \
21147 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21148 $as_echo X"$_am_arg" |
21149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21150 s//\1/
21151 q
21152 }
21153 /^X\(\/\/\)[^/].*/{
21154 s//\1/
21155 q
21156 }
21157 /^X\(\/\/\)$/{
21158 s//\1/
21159 q
21160 }
21161 /^X\(\/\).*/{
21162 s//\1/
21163 q
21164 }
21165 s/.*/./; q'`/stamp-h$_am_stamp_count
21166 ;;
21167
21168 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21169 $as_echo "$as_me: executing $ac_file commands" >&6;}
21170 ;;
21171 esac
21172
21173
21174 case $ac_file$ac_mode in
21175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21176 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21177 # are listed without --file. Let's play safe and only enable the eval
21178 # if we detect the quoting.
21179 case $CONFIG_FILES in
21180 *\'*) eval set x "$CONFIG_FILES" ;;
21181 *) set x $CONFIG_FILES ;;
21182 esac
21183 shift
21184 for mf
21185 do
21186 # Strip MF so we end up with the name of the file.
21187 mf=`echo "$mf" | sed -e 's/:.*$//'`
21188 # Check whether this is an Automake generated Makefile or not.
21189 # We used to match only the files named `Makefile.in', but
21190 # some people rename them; so instead we look at the file content.
21191 # Grep'ing the first line is not enough: some people post-process
21192 # each Makefile.in and add a new line on top of each file to say so.
21193 # Grep'ing the whole file is not good either: AIX grep has a line
21194 # limit of 2048, but all sed's we know have understand at least 4000.
21195 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21196 dirpart=`$as_dirname -- "$mf" ||
21197 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21198 X"$mf" : 'X\(//\)[^/]' \| \
21199 X"$mf" : 'X\(//\)$' \| \
21200 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21201 $as_echo X"$mf" |
21202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21203 s//\1/
21204 q
21205 }
21206 /^X\(\/\/\)[^/].*/{
21207 s//\1/
21208 q
21209 }
21210 /^X\(\/\/\)$/{
21211 s//\1/
21212 q
21213 }
21214 /^X\(\/\).*/{
21215 s//\1/
21216 q
21217 }
21218 s/.*/./; q'`
21219 else
21220 continue
21221 fi
21222 # Extract the definition of DEPDIR, am__include, and am__quote
21223 # from the Makefile without running `make'.
21224 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21225 test -z "$DEPDIR" && continue
21226 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21227 test -z "am__include" && continue
21228 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21229 # When using ansi2knr, U may be empty or an underscore; expand it
21230 U=`sed -n 's/^U = //p' < "$mf"`
21231 # Find all dependency output files, they are included files with
21232 # $(DEPDIR) in their names. We invoke sed twice because it is the
21233 # simplest approach to changing $(DEPDIR) to its actual value in the
21234 # expansion.
21235 for file in `sed -n "
21236 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21237 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21238 # Make sure the directory exists.
21239 test -f "$dirpart/$file" && continue
21240 fdir=`$as_dirname -- "$file" ||
21241 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21242 X"$file" : 'X\(//\)[^/]' \| \
21243 X"$file" : 'X\(//\)$' \| \
21244 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21245 $as_echo X"$file" |
21246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21247 s//\1/
21248 q
21249 }
21250 /^X\(\/\/\)[^/].*/{
21251 s//\1/
21252 q
21253 }
21254 /^X\(\/\/\)$/{
21255 s//\1/
21256 q
21257 }
21258 /^X\(\/\).*/{
21259 s//\1/
21260 q
21261 }
21262 s/.*/./; q'`
21263 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21264 # echo "creating $dirpart/$file"
21265 echo '# dummy' > "$dirpart/$file"
21266 done
21267 done
21268 }
21269 ;;
21270 "libtool":C)
21271
21272 # See if we are running on zsh, and set the options which allow our
21273 # commands through without removal of \ escapes.
21274 if test -n "${ZSH_VERSION+set}" ; then
21275 setopt NO_GLOB_SUBST
21276 fi
21277
21278 cfgfile="${ofile}T"
21279 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21280 $RM "$cfgfile"
21281
21282 cat <<_LT_EOF >> "$cfgfile"
21283 #! $SHELL
21284
21285 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21286 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21288 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21289 #
21290 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21291 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21292 # Inc.
21293 # Written by Gordon Matzigkeit, 1996
21294 #
21295 # This file is part of GNU Libtool.
21296 #
21297 # GNU Libtool is free software; you can redistribute it and/or
21298 # modify it under the terms of the GNU General Public License as
21299 # published by the Free Software Foundation; either version 2 of
21300 # the License, or (at your option) any later version.
21301 #
21302 # As a special exception to the GNU General Public License,
21303 # if you distribute this file as part of a program or library that
21304 # is built using GNU Libtool, you may include this file under the
21305 # same distribution terms that you use for the rest of that program.
21306 #
21307 # GNU Libtool is distributed in the hope that it will be useful,
21308 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21310 # GNU General Public License for more details.
21311 #
21312 # You should have received a copy of the GNU General Public License
21313 # along with GNU Libtool; see the file COPYING. If not, a copy
21314 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21315 # obtained by writing to the Free Software Foundation, Inc.,
21316 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21317
21318
21319 # The names of the tagged configurations supported by this script.
21320 available_tags="CXX RC "
21321
21322 # ### BEGIN LIBTOOL CONFIG
21323
21324 # Which release of libtool.m4 was used?
21325 macro_version=$macro_version
21326 macro_revision=$macro_revision
21327
21328 # Whether or not to build shared libraries.
21329 build_libtool_libs=$enable_shared
21330
21331 # Whether or not to build static libraries.
21332 build_old_libs=$enable_static
21333
21334 # What type of objects to build.
21335 pic_mode=$pic_mode
21336
21337 # Whether or not to optimize for fast installation.
21338 fast_install=$enable_fast_install
21339
21340 # Shell to use when invoking shell scripts.
21341 SHELL=$lt_SHELL
21342
21343 # An echo program that protects backslashes.
21344 ECHO=$lt_ECHO
21345
21346 # The host system.
21347 host_alias=$host_alias
21348 host=$host
21349 host_os=$host_os
21350
21351 # The build system.
21352 build_alias=$build_alias
21353 build=$build
21354 build_os=$build_os
21355
21356 # A sed program that does not truncate output.
21357 SED=$lt_SED
21358
21359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21360 Xsed="\$SED -e 1s/^X//"
21361
21362 # A grep program that handles long lines.
21363 GREP=$lt_GREP
21364
21365 # An ERE matcher.
21366 EGREP=$lt_EGREP
21367
21368 # A literal string matcher.
21369 FGREP=$lt_FGREP
21370
21371 # A BSD- or MS-compatible name lister.
21372 NM=$lt_NM
21373
21374 # Whether we need soft or hard links.
21375 LN_S=$lt_LN_S
21376
21377 # What is the maximum length of a command?
21378 max_cmd_len=$max_cmd_len
21379
21380 # Object file suffix (normally "o").
21381 objext=$ac_objext
21382
21383 # Executable file suffix (normally "").
21384 exeext=$exeext
21385
21386 # whether the shell understands "unset".
21387 lt_unset=$lt_unset
21388
21389 # turn spaces into newlines.
21390 SP2NL=$lt_lt_SP2NL
21391
21392 # turn newlines into spaces.
21393 NL2SP=$lt_lt_NL2SP
21394
21395 # convert \$build file names to \$host format.
21396 to_host_file_cmd=$lt_cv_to_host_file_cmd
21397
21398 # convert \$build files to toolchain format.
21399 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21400
21401 # An object symbol dumper.
21402 OBJDUMP=$lt_OBJDUMP
21403
21404 # Method to check whether dependent libraries are shared objects.
21405 deplibs_check_method=$lt_deplibs_check_method
21406
21407 # Command to use when deplibs_check_method = "file_magic".
21408 file_magic_cmd=$lt_file_magic_cmd
21409
21410 # How to find potential files when deplibs_check_method = "file_magic".
21411 file_magic_glob=$lt_file_magic_glob
21412
21413 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21414 want_nocaseglob=$lt_want_nocaseglob
21415
21416 # DLL creation program.
21417 DLLTOOL=$lt_DLLTOOL
21418
21419 # Command to associate shared and link libraries.
21420 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21421
21422 # The archiver.
21423 AR=$lt_AR
21424
21425 # Flags to create an archive.
21426 AR_FLAGS=$lt_AR_FLAGS
21427
21428 # How to feed a file listing to the archiver.
21429 archiver_list_spec=$lt_archiver_list_spec
21430
21431 # A symbol stripping program.
21432 STRIP=$lt_STRIP
21433
21434 # Commands used to install an old-style archive.
21435 RANLIB=$lt_RANLIB
21436 old_postinstall_cmds=$lt_old_postinstall_cmds
21437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21438
21439 # Whether to use a lock for old archive extraction.
21440 lock_old_archive_extraction=$lock_old_archive_extraction
21441
21442 # A C compiler.
21443 LTCC=$lt_CC
21444
21445 # LTCC compiler flags.
21446 LTCFLAGS=$lt_CFLAGS
21447
21448 # Take the output of nm and produce a listing of raw symbols and C names.
21449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21450
21451 # Transform the output of nm in a proper C declaration.
21452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21453
21454 # Transform the output of nm in a C name address pair.
21455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21456
21457 # Transform the output of nm in a C name address pair when lib prefix is needed.
21458 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21459
21460 # Specify filename containing input files for \$NM.
21461 nm_file_list_spec=$lt_nm_file_list_spec
21462
21463 # The root where to search for dependent libraries,and in which our libraries should be installed.
21464 lt_sysroot=$lt_sysroot
21465
21466 # The name of the directory that contains temporary libtool files.
21467 objdir=$objdir
21468
21469 # Used to examine libraries when file_magic_cmd begins with "file".
21470 MAGIC_CMD=$MAGIC_CMD
21471
21472 # Must we lock files when doing compilation?
21473 need_locks=$lt_need_locks
21474
21475 # Manifest tool.
21476 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21477
21478 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21479 DSYMUTIL=$lt_DSYMUTIL
21480
21481 # Tool to change global to local symbols on Mac OS X.
21482 NMEDIT=$lt_NMEDIT
21483
21484 # Tool to manipulate fat objects and archives on Mac OS X.
21485 LIPO=$lt_LIPO
21486
21487 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21488 OTOOL=$lt_OTOOL
21489
21490 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21491 OTOOL64=$lt_OTOOL64
21492
21493 # Old archive suffix (normally "a").
21494 libext=$libext
21495
21496 # Shared library suffix (normally ".so").
21497 shrext_cmds=$lt_shrext_cmds
21498
21499 # The commands to extract the exported symbol list from a shared archive.
21500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21501
21502 # Variables whose values should be saved in libtool wrapper scripts and
21503 # restored at link time.
21504 variables_saved_for_relink=$lt_variables_saved_for_relink
21505
21506 # Do we need the "lib" prefix for modules?
21507 need_lib_prefix=$need_lib_prefix
21508
21509 # Do we need a version for libraries?
21510 need_version=$need_version
21511
21512 # Library versioning type.
21513 version_type=$version_type
21514
21515 # Shared library runtime path variable.
21516 runpath_var=$runpath_var
21517
21518 # Shared library path variable.
21519 shlibpath_var=$shlibpath_var
21520
21521 # Is shlibpath searched before the hard-coded library search path?
21522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21523
21524 # Format of library name prefix.
21525 libname_spec=$lt_libname_spec
21526
21527 # List of archive names. First name is the real one, the rest are links.
21528 # The last name is the one that the linker finds with -lNAME
21529 library_names_spec=$lt_library_names_spec
21530
21531 # The coded name of the library, if different from the real name.
21532 soname_spec=$lt_soname_spec
21533
21534 # Permission mode override for installation of shared libraries.
21535 install_override_mode=$lt_install_override_mode
21536
21537 # Command to use after installation of a shared archive.
21538 postinstall_cmds=$lt_postinstall_cmds
21539
21540 # Command to use after uninstallation of a shared archive.
21541 postuninstall_cmds=$lt_postuninstall_cmds
21542
21543 # Commands used to finish a libtool library installation in a directory.
21544 finish_cmds=$lt_finish_cmds
21545
21546 # As "finish_cmds", except a single script fragment to be evaled but
21547 # not shown.
21548 finish_eval=$lt_finish_eval
21549
21550 # Whether we should hardcode library paths into libraries.
21551 hardcode_into_libs=$hardcode_into_libs
21552
21553 # Compile-time system search path for libraries.
21554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21555
21556 # Run-time system search path for libraries.
21557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21558
21559 # Whether dlopen is supported.
21560 dlopen_support=$enable_dlopen
21561
21562 # Whether dlopen of programs is supported.
21563 dlopen_self=$enable_dlopen_self
21564
21565 # Whether dlopen of statically linked programs is supported.
21566 dlopen_self_static=$enable_dlopen_self_static
21567
21568 # Commands to strip libraries.
21569 old_striplib=$lt_old_striplib
21570 striplib=$lt_striplib
21571
21572
21573 # The linker used to build libraries.
21574 LD=$lt_LD
21575
21576 # How to create reloadable object files.
21577 reload_flag=$lt_reload_flag
21578 reload_cmds=$lt_reload_cmds
21579
21580 # Commands used to build an old-style archive.
21581 old_archive_cmds=$lt_old_archive_cmds
21582
21583 # A language specific compiler.
21584 CC=$lt_compiler
21585
21586 # Is the compiler the GNU compiler?
21587 with_gcc=$GCC
21588
21589 # Compiler flag to turn off builtin functions.
21590 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21591
21592 # Additional compiler flags for building library objects.
21593 pic_flag=$lt_lt_prog_compiler_pic
21594
21595 # How to pass a linker flag through the compiler.
21596 wl=$lt_lt_prog_compiler_wl
21597
21598 # Compiler flag to prevent dynamic linking.
21599 link_static_flag=$lt_lt_prog_compiler_static
21600
21601 # Does compiler simultaneously support -c and -o options?
21602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21603
21604 # Whether or not to add -lc for building shared libraries.
21605 build_libtool_need_lc=$archive_cmds_need_lc
21606
21607 # Whether or not to disallow shared libs when runtime libs are static.
21608 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21609
21610 # Compiler flag to allow reflexive dlopens.
21611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21612
21613 # Compiler flag to generate shared objects directly from archives.
21614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21615
21616 # Whether the compiler copes with passing no objects directly.
21617 compiler_needs_object=$lt_compiler_needs_object
21618
21619 # Create an old-style archive from a shared archive.
21620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21621
21622 # Create a temporary old-style archive to link instead of a shared archive.
21623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21624
21625 # Commands used to build a shared archive.
21626 archive_cmds=$lt_archive_cmds
21627 archive_expsym_cmds=$lt_archive_expsym_cmds
21628
21629 # Commands used to build a loadable module if different from building
21630 # a shared archive.
21631 module_cmds=$lt_module_cmds
21632 module_expsym_cmds=$lt_module_expsym_cmds
21633
21634 # Whether we are building with GNU ld or not.
21635 with_gnu_ld=$lt_with_gnu_ld
21636
21637 # Flag that allows shared libraries with undefined symbols to be built.
21638 allow_undefined_flag=$lt_allow_undefined_flag
21639
21640 # Flag that enforces no undefined symbols.
21641 no_undefined_flag=$lt_no_undefined_flag
21642
21643 # Flag to hardcode \$libdir into a binary during linking.
21644 # This must work even if \$libdir does not exist
21645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21646
21647 # If ld is used when linking, flag to hardcode \$libdir into a binary
21648 # during linking. This must work even if \$libdir does not exist.
21649 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21650
21651 # Whether we need a single "-rpath" flag with a separated argument.
21652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21653
21654 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21655 # DIR into the resulting binary.
21656 hardcode_direct=$hardcode_direct
21657
21658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21659 # DIR into the resulting binary and the resulting library dependency is
21660 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21661 # library is relocated.
21662 hardcode_direct_absolute=$hardcode_direct_absolute
21663
21664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21665 # into the resulting binary.
21666 hardcode_minus_L=$hardcode_minus_L
21667
21668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21669 # into the resulting binary.
21670 hardcode_shlibpath_var=$hardcode_shlibpath_var
21671
21672 # Set to "yes" if building a shared library automatically hardcodes DIR
21673 # into the library and all subsequent libraries and executables linked
21674 # against it.
21675 hardcode_automatic=$hardcode_automatic
21676
21677 # Set to yes if linker adds runtime paths of dependent libraries
21678 # to runtime path list.
21679 inherit_rpath=$inherit_rpath
21680
21681 # Whether libtool must link a program against all its dependency libraries.
21682 link_all_deplibs=$link_all_deplibs
21683
21684 # Set to "yes" if exported symbols are required.
21685 always_export_symbols=$always_export_symbols
21686
21687 # The commands to list exported symbols.
21688 export_symbols_cmds=$lt_export_symbols_cmds
21689
21690 # Symbols that should not be listed in the preloaded symbols.
21691 exclude_expsyms=$lt_exclude_expsyms
21692
21693 # Symbols that must always be exported.
21694 include_expsyms=$lt_include_expsyms
21695
21696 # Commands necessary for linking programs (against libraries) with templates.
21697 prelink_cmds=$lt_prelink_cmds
21698
21699 # Commands necessary for finishing linking programs.
21700 postlink_cmds=$lt_postlink_cmds
21701
21702 # Specify filename containing input files.
21703 file_list_spec=$lt_file_list_spec
21704
21705 # How to hardcode a shared library path into an executable.
21706 hardcode_action=$hardcode_action
21707
21708 # The directories searched by this compiler when creating a shared library.
21709 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21710
21711 # Dependencies to place before and after the objects being linked to
21712 # create a shared library.
21713 predep_objects=$lt_predep_objects
21714 postdep_objects=$lt_postdep_objects
21715 predeps=$lt_predeps
21716 postdeps=$lt_postdeps
21717
21718 # The library search path used internally by the compiler when linking
21719 # a shared library.
21720 compiler_lib_search_path=$lt_compiler_lib_search_path
21721
21722 # ### END LIBTOOL CONFIG
21723
21724 _LT_EOF
21725
21726 case $host_os in
21727 aix3*)
21728 cat <<\_LT_EOF >> "$cfgfile"
21729 # AIX sometimes has problems with the GCC collect2 program. For some
21730 # reason, if we set the COLLECT_NAMES environment variable, the problems
21731 # vanish in a puff of smoke.
21732 if test "X${COLLECT_NAMES+set}" != Xset; then
21733 COLLECT_NAMES=
21734 export COLLECT_NAMES
21735 fi
21736 _LT_EOF
21737 ;;
21738 esac
21739
21740
21741 ltmain="$ac_aux_dir/ltmain.sh"
21742
21743
21744 # We use sed instead of cat because bash on DJGPP gets confused if
21745 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21746 # text mode, it properly converts lines to CR/LF. This bash problem
21747 # is reportedly fixed, but why not run on old versions too?
21748 sed '$q' "$ltmain" >> "$cfgfile" \
21749 || (rm -f "$cfgfile"; exit 1)
21750
21751 if test x"$xsi_shell" = xyes; then
21752 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21753 func_dirname ()\
21754 {\
21755 \ case ${1} in\
21756 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21757 \ * ) func_dirname_result="${3}" ;;\
21758 \ esac\
21759 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21760 && mv -f "$cfgfile.tmp" "$cfgfile" \
21761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21762 test 0 -eq $? || _lt_function_replace_fail=:
21763
21764
21765 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21766 func_basename ()\
21767 {\
21768 \ func_basename_result="${1##*/}"\
21769 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21770 && mv -f "$cfgfile.tmp" "$cfgfile" \
21771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21772 test 0 -eq $? || _lt_function_replace_fail=:
21773
21774
21775 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21776 func_dirname_and_basename ()\
21777 {\
21778 \ case ${1} in\
21779 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21780 \ * ) func_dirname_result="${3}" ;;\
21781 \ esac\
21782 \ func_basename_result="${1##*/}"\
21783 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21784 && mv -f "$cfgfile.tmp" "$cfgfile" \
21785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21786 test 0 -eq $? || _lt_function_replace_fail=:
21787
21788
21789 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21790 func_stripname ()\
21791 {\
21792 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21793 \ # positional parameters, so assign one to ordinary parameter first.\
21794 \ func_stripname_result=${3}\
21795 \ func_stripname_result=${func_stripname_result#"${1}"}\
21796 \ func_stripname_result=${func_stripname_result%"${2}"}\
21797 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21798 && mv -f "$cfgfile.tmp" "$cfgfile" \
21799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21800 test 0 -eq $? || _lt_function_replace_fail=:
21801
21802
21803 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21804 func_split_long_opt ()\
21805 {\
21806 \ func_split_long_opt_name=${1%%=*}\
21807 \ func_split_long_opt_arg=${1#*=}\
21808 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21809 && mv -f "$cfgfile.tmp" "$cfgfile" \
21810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21811 test 0 -eq $? || _lt_function_replace_fail=:
21812
21813
21814 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21815 func_split_short_opt ()\
21816 {\
21817 \ func_split_short_opt_arg=${1#??}\
21818 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21819 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21820 && mv -f "$cfgfile.tmp" "$cfgfile" \
21821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21822 test 0 -eq $? || _lt_function_replace_fail=:
21823
21824
21825 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21826 func_lo2o ()\
21827 {\
21828 \ case ${1} in\
21829 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21830 \ *) func_lo2o_result=${1} ;;\
21831 \ esac\
21832 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21833 && mv -f "$cfgfile.tmp" "$cfgfile" \
21834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835 test 0 -eq $? || _lt_function_replace_fail=:
21836
21837
21838 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21839 func_xform ()\
21840 {\
21841 func_xform_result=${1%.*}.lo\
21842 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21843 && mv -f "$cfgfile.tmp" "$cfgfile" \
21844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21845 test 0 -eq $? || _lt_function_replace_fail=:
21846
21847
21848 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21849 func_arith ()\
21850 {\
21851 func_arith_result=$(( $* ))\
21852 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
21859 func_len ()\
21860 {\
21861 func_len_result=${#1}\
21862 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21863 && mv -f "$cfgfile.tmp" "$cfgfile" \
21864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21865 test 0 -eq $? || _lt_function_replace_fail=:
21866
21867 fi
21868
21869 if test x"$lt_shell_append" = xyes; then
21870 sed -e '/^func_append ()$/,/^} # func_append /c\
21871 func_append ()\
21872 {\
21873 eval "${1}+=\\${2}"\
21874 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21875 && mv -f "$cfgfile.tmp" "$cfgfile" \
21876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21877 test 0 -eq $? || _lt_function_replace_fail=:
21878
21879
21880 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21881 func_append_quoted ()\
21882 {\
21883 \ func_quote_for_eval "${2}"\
21884 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21885 } # Extended-shell func_append_quoted 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 # Save a `func_append' function call where possible by direct use of '+='
21892 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21893 && mv -f "$cfgfile.tmp" "$cfgfile" \
21894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21895 test 0 -eq $? || _lt_function_replace_fail=:
21896 else
21897 # Save a `func_append' function call even when '+=' is not available
21898 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21899 && mv -f "$cfgfile.tmp" "$cfgfile" \
21900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21901 test 0 -eq $? || _lt_function_replace_fail=:
21902 fi
21903
21904 if test x"$_lt_function_replace_fail" = x":"; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21906 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21907 fi
21908
21909
21910 mv -f "$cfgfile" "$ofile" ||
21911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21912 chmod +x "$ofile"
21913
21914
21915 cat <<_LT_EOF >> "$ofile"
21916
21917 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21918
21919 # The linker used to build libraries.
21920 LD=$lt_LD_CXX
21921
21922 # How to create reloadable object files.
21923 reload_flag=$lt_reload_flag_CXX
21924 reload_cmds=$lt_reload_cmds_CXX
21925
21926 # Commands used to build an old-style archive.
21927 old_archive_cmds=$lt_old_archive_cmds_CXX
21928
21929 # A language specific compiler.
21930 CC=$lt_compiler_CXX
21931
21932 # Is the compiler the GNU compiler?
21933 with_gcc=$GCC_CXX
21934
21935 # Compiler flag to turn off builtin functions.
21936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21937
21938 # Additional compiler flags for building library objects.
21939 pic_flag=$lt_lt_prog_compiler_pic_CXX
21940
21941 # How to pass a linker flag through the compiler.
21942 wl=$lt_lt_prog_compiler_wl_CXX
21943
21944 # Compiler flag to prevent dynamic linking.
21945 link_static_flag=$lt_lt_prog_compiler_static_CXX
21946
21947 # Does compiler simultaneously support -c and -o options?
21948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21949
21950 # Whether or not to add -lc for building shared libraries.
21951 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21952
21953 # Whether or not to disallow shared libs when runtime libs are static.
21954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21955
21956 # Compiler flag to allow reflexive dlopens.
21957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21958
21959 # Compiler flag to generate shared objects directly from archives.
21960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21961
21962 # Whether the compiler copes with passing no objects directly.
21963 compiler_needs_object=$lt_compiler_needs_object_CXX
21964
21965 # Create an old-style archive from a shared archive.
21966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21967
21968 # Create a temporary old-style archive to link instead of a shared archive.
21969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21970
21971 # Commands used to build a shared archive.
21972 archive_cmds=$lt_archive_cmds_CXX
21973 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21974
21975 # Commands used to build a loadable module if different from building
21976 # a shared archive.
21977 module_cmds=$lt_module_cmds_CXX
21978 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21979
21980 # Whether we are building with GNU ld or not.
21981 with_gnu_ld=$lt_with_gnu_ld_CXX
21982
21983 # Flag that allows shared libraries with undefined symbols to be built.
21984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21985
21986 # Flag that enforces no undefined symbols.
21987 no_undefined_flag=$lt_no_undefined_flag_CXX
21988
21989 # Flag to hardcode \$libdir into a binary during linking.
21990 # This must work even if \$libdir does not exist
21991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21992
21993 # If ld is used when linking, flag to hardcode \$libdir into a binary
21994 # during linking. This must work even if \$libdir does not exist.
21995 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21996
21997 # Whether we need a single "-rpath" flag with a separated argument.
21998 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21999
22000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22001 # DIR into the resulting binary.
22002 hardcode_direct=$hardcode_direct_CXX
22003
22004 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22005 # DIR into the resulting binary and the resulting library dependency is
22006 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22007 # library is relocated.
22008 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22009
22010 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22011 # into the resulting binary.
22012 hardcode_minus_L=$hardcode_minus_L_CXX
22013
22014 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22015 # into the resulting binary.
22016 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22017
22018 # Set to "yes" if building a shared library automatically hardcodes DIR
22019 # into the library and all subsequent libraries and executables linked
22020 # against it.
22021 hardcode_automatic=$hardcode_automatic_CXX
22022
22023 # Set to yes if linker adds runtime paths of dependent libraries
22024 # to runtime path list.
22025 inherit_rpath=$inherit_rpath_CXX
22026
22027 # Whether libtool must link a program against all its dependency libraries.
22028 link_all_deplibs=$link_all_deplibs_CXX
22029
22030 # Set to "yes" if exported symbols are required.
22031 always_export_symbols=$always_export_symbols_CXX
22032
22033 # The commands to list exported symbols.
22034 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22035
22036 # Symbols that should not be listed in the preloaded symbols.
22037 exclude_expsyms=$lt_exclude_expsyms_CXX
22038
22039 # Symbols that must always be exported.
22040 include_expsyms=$lt_include_expsyms_CXX
22041
22042 # Commands necessary for linking programs (against libraries) with templates.
22043 prelink_cmds=$lt_prelink_cmds_CXX
22044
22045 # Commands necessary for finishing linking programs.
22046 postlink_cmds=$lt_postlink_cmds_CXX
22047
22048 # Specify filename containing input files.
22049 file_list_spec=$lt_file_list_spec_CXX
22050
22051 # How to hardcode a shared library path into an executable.
22052 hardcode_action=$hardcode_action_CXX
22053
22054 # The directories searched by this compiler when creating a shared library.
22055 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22056
22057 # Dependencies to place before and after the objects being linked to
22058 # create a shared library.
22059 predep_objects=$lt_predep_objects_CXX
22060 postdep_objects=$lt_postdep_objects_CXX
22061 predeps=$lt_predeps_CXX
22062 postdeps=$lt_postdeps_CXX
22063
22064 # The library search path used internally by the compiler when linking
22065 # a shared library.
22066 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22067
22068 # ### END LIBTOOL TAG CONFIG: CXX
22069 _LT_EOF
22070
22071
22072 cat <<_LT_EOF >> "$ofile"
22073
22074 # ### BEGIN LIBTOOL TAG CONFIG: RC
22075
22076 # The linker used to build libraries.
22077 LD=$lt_LD_RC
22078
22079 # How to create reloadable object files.
22080 reload_flag=$lt_reload_flag_RC
22081 reload_cmds=$lt_reload_cmds_RC
22082
22083 # Commands used to build an old-style archive.
22084 old_archive_cmds=$lt_old_archive_cmds_RC
22085
22086 # A language specific compiler.
22087 CC=$lt_compiler_RC
22088
22089 # Is the compiler the GNU compiler?
22090 with_gcc=$GCC_RC
22091
22092 # Compiler flag to turn off builtin functions.
22093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22094
22095 # Additional compiler flags for building library objects.
22096 pic_flag=$lt_lt_prog_compiler_pic_RC
22097
22098 # How to pass a linker flag through the compiler.
22099 wl=$lt_lt_prog_compiler_wl_RC
22100
22101 # Compiler flag to prevent dynamic linking.
22102 link_static_flag=$lt_lt_prog_compiler_static_RC
22103
22104 # Does compiler simultaneously support -c and -o options?
22105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22106
22107 # Whether or not to add -lc for building shared libraries.
22108 build_libtool_need_lc=$archive_cmds_need_lc_RC
22109
22110 # Whether or not to disallow shared libs when runtime libs are static.
22111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22112
22113 # Compiler flag to allow reflexive dlopens.
22114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22115
22116 # Compiler flag to generate shared objects directly from archives.
22117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22118
22119 # Whether the compiler copes with passing no objects directly.
22120 compiler_needs_object=$lt_compiler_needs_object_RC
22121
22122 # Create an old-style archive from a shared archive.
22123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22124
22125 # Create a temporary old-style archive to link instead of a shared archive.
22126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22127
22128 # Commands used to build a shared archive.
22129 archive_cmds=$lt_archive_cmds_RC
22130 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22131
22132 # Commands used to build a loadable module if different from building
22133 # a shared archive.
22134 module_cmds=$lt_module_cmds_RC
22135 module_expsym_cmds=$lt_module_expsym_cmds_RC
22136
22137 # Whether we are building with GNU ld or not.
22138 with_gnu_ld=$lt_with_gnu_ld_RC
22139
22140 # Flag that allows shared libraries with undefined symbols to be built.
22141 allow_undefined_flag=$lt_allow_undefined_flag_RC
22142
22143 # Flag that enforces no undefined symbols.
22144 no_undefined_flag=$lt_no_undefined_flag_RC
22145
22146 # Flag to hardcode \$libdir into a binary during linking.
22147 # This must work even if \$libdir does not exist
22148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22149
22150 # If ld is used when linking, flag to hardcode \$libdir into a binary
22151 # during linking. This must work even if \$libdir does not exist.
22152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22153
22154 # Whether we need a single "-rpath" flag with a separated argument.
22155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22156
22157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22158 # DIR into the resulting binary.
22159 hardcode_direct=$hardcode_direct_RC
22160
22161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22162 # DIR into the resulting binary and the resulting library dependency is
22163 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22164 # library is relocated.
22165 hardcode_direct_absolute=$hardcode_direct_absolute_RC
22166
22167 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22168 # into the resulting binary.
22169 hardcode_minus_L=$hardcode_minus_L_RC
22170
22171 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22172 # into the resulting binary.
22173 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22174
22175 # Set to "yes" if building a shared library automatically hardcodes DIR
22176 # into the library and all subsequent libraries and executables linked
22177 # against it.
22178 hardcode_automatic=$hardcode_automatic_RC
22179
22180 # Set to yes if linker adds runtime paths of dependent libraries
22181 # to runtime path list.
22182 inherit_rpath=$inherit_rpath_RC
22183
22184 # Whether libtool must link a program against all its dependency libraries.
22185 link_all_deplibs=$link_all_deplibs_RC
22186
22187 # Set to "yes" if exported symbols are required.
22188 always_export_symbols=$always_export_symbols_RC
22189
22190 # The commands to list exported symbols.
22191 export_symbols_cmds=$lt_export_symbols_cmds_RC
22192
22193 # Symbols that should not be listed in the preloaded symbols.
22194 exclude_expsyms=$lt_exclude_expsyms_RC
22195
22196 # Symbols that must always be exported.
22197 include_expsyms=$lt_include_expsyms_RC
22198
22199 # Commands necessary for linking programs (against libraries) with templates.
22200 prelink_cmds=$lt_prelink_cmds_RC
22201
22202 # Commands necessary for finishing linking programs.
22203 postlink_cmds=$lt_postlink_cmds_RC
22204
22205 # Specify filename containing input files.
22206 file_list_spec=$lt_file_list_spec_RC
22207
22208 # How to hardcode a shared library path into an executable.
22209 hardcode_action=$hardcode_action_RC
22210
22211 # The directories searched by this compiler when creating a shared library.
22212 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22213
22214 # Dependencies to place before and after the objects being linked to
22215 # create a shared library.
22216 predep_objects=$lt_predep_objects_RC
22217 postdep_objects=$lt_postdep_objects_RC
22218 predeps=$lt_predeps_RC
22219 postdeps=$lt_postdeps_RC
22220
22221 # The library search path used internally by the compiler when linking
22222 # a shared library.
22223 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22224
22225 # ### END LIBTOOL TAG CONFIG: RC
22226 _LT_EOF
22227
22228 ;;
22229
22230 esac
22231 done # for ac_tag
22232
22233
22234 as_fn_exit 0
22235 _ACEOF
22236 ac_clean_files=$ac_clean_files_save
22237
22238 test $ac_write_fail = 0 ||
22239 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22240
22241
22242 # configure is writing to config.log, and then calls config.status.
22243 # config.status does its own redirection, appending to config.log.
22244 # Unfortunately, on DOS this fails, as config.log is still kept open
22245 # by configure, so config.status won't be able to write to it; its
22246 # output is simply discarded. So we exec the FD to /dev/null,
22247 # effectively closing config.log, so it can be properly (re)opened and
22248 # appended to by config.status. When coming back to configure, we
22249 # need to make the FD available again.
22250 if test "$no_create" != yes; then
22251 ac_cs_success=:
22252 ac_config_status_args=
22253 test "$silent" = yes &&
22254 ac_config_status_args="$ac_config_status_args --quiet"
22255 exec 5>/dev/null
22256 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22257 exec 5>>config.log
22258 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22259 # would make configure fail if this is the last instruction.
22260 $ac_cs_success || as_fn_exit 1
22261 fi
22262 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22264 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22265 fi
22266
22267
22268 # Make sure these are executable.
22269 chmod u+x tests/test_wrapper.sh build-test-tarball.mk
22270
22271 #====================================================================================
22272
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22274 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
22275
22276 Configuration summary :
22277
22278 libsndfile version : .................. ${VERSION}
22279
22280 Host CPU : ............................ ${host_cpu}
22281 Host Vendor : ......................... ${host_vendor}
22282 Host OS : ............................. ${host_os}
22283
22284 Experimental code : ................... ${enable_experimental:-no}
22285 Using ALSA in example programs : ...... ${enable_alsa:-no}
22286 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
22287 " >&5
22288 $as_echo "
22289 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
22290
22291 Configuration summary :
22292
22293 libsndfile version : .................. ${VERSION}
22294
22295 Host CPU : ............................ ${host_cpu}
22296 Host Vendor : ......................... ${host_vendor}
22297 Host OS : ............................. ${host_os}
22298
22299 Experimental code : ................... ${enable_experimental:-no}
22300 Using ALSA in example programs : ...... ${enable_alsa:-no}
22301 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
22302 " >&6; }
22303
22304 if test -z "$PKG_CONFIG" ; then
22305 echo " *****************************************************************"
22306 echo " *** The pkg-config program is missing. ***"
22307 echo " *** External FLAC/Ogg/Vorbis libs cannot be found without it. ***"
22308 echo " *** http://pkg-config.freedesktop.org/wiki/ ***"
22309 echo " *****************************************************************"
22310 echo
22311 fi
22312
22313 if test x$ac_cv_c_compiler_gnu = xyes ; then
22314 echo " Tools :"
22315 echo
22316 echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
22317 echo " GCC version : ......................... ${GCC_VERSION}"
22318 if test $GCC_MAJOR_VERSION -lt 3 ; then
22319 echo "\n"
22320 echo " ** This compiler version allows applications to write"
22321 echo " ** to static strings within the library."
22322 echo " ** Compile with GCC version 3.X or above to avoid this problem."
22323 fi
22324 fi
22325
22326 if test $libdir = "\${exec_prefix}/lib" ; then
22327 libdir="$prefix/lib"
22328 fi
22329
22330 if test $bindir = "\${exec_prefix}/bin" ; then
22331 bindir="$prefix/bin"
22332 fi
22333
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22335 Installation directories :
22336
22337 Library directory : ................... $libdir
22338 Program directory : ................... $bindir
22339 Pkgconfig directory : ................. $libdir/pkgconfig
22340 HTML docs directory : ................. $htmldocdir
22341 " >&5
22342 $as_echo "
22343 Installation directories :
22344
22345 Library directory : ................... $libdir
22346 Program directory : ................... $bindir
22347 Pkgconfig directory : ................. $libdir/pkgconfig
22348 HTML docs directory : ................. $htmldocdir
22349 " >&6; }
22350
22351 if test x$prefix != "x/usr" ; then
22352 echo "Compiling some other packages against libsndfile may require"
22353 echo "the addition of '$libdir/pkgconfig' to the"
22354 echo "PKG_CONFIG_PATH environment variable."
22355 echo
22356 fi
22357
22358 (cd src && make genfiles)
22359 (cd tests && make genfiles)