VirtualBox

source: vbox/trunk/src/libs/libvorbis-1.3.7/configure@ 105770

Last change on this file since 105770 was 96468, checked in by vboxsync, 2 years ago

libs/libvorbis-1.3.7: Re-exporting, hopefully this time everything is there. bugref:10275

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 467.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libvorbis 1.3.7.
4#
5# Report bugs to <vorbis-dev@xiph.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: vorbis-dev@xiph.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libvorbis'
592PACKAGE_TARNAME='libvorbis'
593PACKAGE_VERSION='1.3.7'
594PACKAGE_STRING='libvorbis 1.3.7'
595PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
596PACKAGE_URL=''
597
598ac_unique_file="lib/mdct.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBTOOL_DEPS
639pthread_lib
640PROFILE
641DEBUG
642VORBIS_LIBS
643LIBOBJS
644ALLOCA
645OGG_LIBS
646OGG_CFLAGS
647PKG_CONFIG
648BUILD_EXAMPLES_FALSE
649BUILD_EXAMPLES_TRUE
650BUILD_DOCS_FALSE
651BUILD_DOCS_TRUE
652HTLATEX
653PDFLATEX
654HAVE_DOXYGEN_FALSE
655HAVE_DOXYGEN_TRUE
656HAVE_DOXYGEN
657LT_SYS_LIBRARY_PATH
658OTOOL64
659OTOOL
660LIPO
661NMEDIT
662DSYMUTIL
663MANIFEST_TOOL
664RANLIB
665ac_ct_AR
666AR
667LN_S
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673EGREP
674GREP
675SED
676LIBTOOL
677OBJDUMP
678DLLTOOL
679AS
680CPP
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684am__nodep
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697VE_LIB_AGE
698VE_LIB_REVISION
699VE_LIB_CURRENT
700VF_LIB_AGE
701VF_LIB_REVISION
702VF_LIB_CURRENT
703V_LIB_AGE
704V_LIB_REVISION
705V_LIB_CURRENT
706ACLOCAL_AMFLAGS
707MAINT
708MAINTAINER_MODE_FALSE
709MAINTAINER_MODE_TRUE
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737host_os
738host_vendor
739host_cpu
740host
741build_os
742build_vendor
743build_cpu
744build
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764runstatedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL
784am__quote'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_silent_rules
789enable_maintainer_mode
790enable_dependency_tracking
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_aix_soname
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_docs
800enable_examples
801with_ogg
802with_ogg_libraries
803with_ogg_includes
804enable_oggtest
805'
806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CPP
815LT_SYS_LIBRARY_PATH
816PKG_CONFIG
817OGG_CFLAGS
818OGG_LIBS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857runstatedir='${localstatedir}/run'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -runstatedir | --runstatedir | --runstatedi | --runstated \
1111 | --runstate | --runstat | --runsta | --runst | --runs \
1112 | --run | --ru | --r)
1113 ac_prev=runstatedir ;;
1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116 | --run=* | --ru=* | --r=*)
1117 runstatedir=$ac_optarg ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242fi
1243
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250fi
1251
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir runstatedir
1257do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271done
1272
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
1279
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360done
1361
1362#
1363# Report the --help message.
1364#
1365if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369\`configure' configures libvorbis 1.3.7 to adapt to many kinds of systems.
1370
1371Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376Defaults for the options are specified in brackets.
1377
1378Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395By default, \`make install' will install all the files in
1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398for instance \`--prefix=\$HOME'.
1399
1400For better control, use the options below.
1401
1402Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423_ACEOF
1424
1425 cat <<\_ACEOF
1426
1427Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435_ACEOF
1436fi
1437
1438if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of libvorbis 1.3.7:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-docs build the documentation
1463 --enable-examples build the examples
1464 --disable-oggtest Do not try to compile and run a test Ogg program
1465
1466Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1470 both]
1471 --with-aix-soname=aix|svr4|both
1472 shared library versioning (aka "SONAME") variant to
1473 provide on AIX, [default=aix].
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476 compiler's sysroot if not specified).
1477 --with-ogg=PFX Prefix where libogg is installed (optional)
1478 --with-ogg-libraries=DIR
1479 Directory where libogg library is installed
1480 (optional)
1481 --with-ogg-includes=DIR Directory where libogg header files are installed
1482 (optional)
1483
1484Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CPP C preprocessor
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495 PKG_CONFIG path to pkg-config utility
1496 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1497 OGG_LIBS linker flags for OGG, overriding pkg-config
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to <vorbis-dev@xiph.org>.
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515case "$ac_dir" in
1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517*)
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525esac
1526ac_abs_top_builddir=$ac_pwd
1527ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528# for backward compatibility:
1529ac_top_builddir=$ac_top_build_prefix
1530
1531case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544esac
1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564 cat <<\_ACEOF
1565libvorbis configure 1.3.7
1566generated by GNU Autoconf 2.69
1567
1568Copyright (C) 2012 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572 exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579# ac_fn_c_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_compile
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_try_link LINENO
1655# -----------------------
1656# Try to link conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_link ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_link
1699
1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists and can be compiled using the include files in
1703# INCLUDES, setting the cache variable VAR accordingly.
1704ac_fn_c_check_header_compile ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
1709if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711else
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_header_compile
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status
1766fi
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_func LINENO FUNC VAR
1774# ----------------------------------
1775# Tests whether FUNC exists, setting the cache variable VAR accordingly
1776ac_fn_c_check_func ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788#define $2 innocuous_$2
1789
1790/* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1794
1795#ifdef __STDC__
1796# include <limits.h>
1797#else
1798# include <assert.h>
1799#endif
1800
1801#undef $2
1802
1803/* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806#ifdef __cplusplus
1807extern "C"
1808#endif
1809char $2 ();
1810/* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813#if defined __stub_$2 || defined __stub___$2
1814choke me
1815#endif
1816
1817int
1818main ()
1819{
1820return $2 ();
1821 ;
1822 return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827else
1828 eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838} # ac_fn_c_check_func
1839
1840# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843# the include files in INCLUDES and setting the cache variable VAR
1844# accordingly.
1845ac_fn_c_check_header_mongrel ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval \${$3+:} false; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857else
1858 # Is the header compilable?
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860$as_echo_n "checking $2 usability... " >&6; }
1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863$4
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_header_compiler=yes
1868else
1869 ac_header_compiler=no
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873$as_echo "$ac_header_compiler" >&6; }
1874
1875# Is the header present?
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877$as_echo_n "checking $2 presence... " >&6; }
1878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h. */
1880#include <$2>
1881_ACEOF
1882if ac_fn_c_try_cpp "$LINENO"; then :
1883 ac_header_preproc=yes
1884else
1885 ac_header_preproc=no
1886fi
1887rm -f conftest.err conftest.i conftest.$ac_ext
1888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889$as_echo "$ac_header_preproc" >&6; }
1890
1891# So? What about this header?
1892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893 yes:no: )
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 ;;
1899 no:yes:* )
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910( $as_echo "## ---------------------------------- ##
1911## Report this to vorbis-dev@xiph.org ##
1912## ---------------------------------- ##"
1913 ) | sed "s/^/$as_me: WARNING: /" >&2
1914 ;;
1915esac
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920else
1921 eval "$3=\$ac_header_compiler"
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926fi
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929} # ac_fn_c_check_header_mongrel
1930
1931# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932# -------------------------------------------
1933# Tests whether TYPE exists after having included INCLUDES, setting cache
1934# variable VAR accordingly.
1935ac_fn_c_check_type ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 eval "$3=no"
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946$4
1947int
1948main ()
1949{
1950if (sizeof ($2))
1951 return 0;
1952 ;
1953 return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960int
1961main ()
1962{
1963if (sizeof (($2)))
1964 return 0;
1965 ;
1966 return 0;
1967}
1968_ACEOF
1969if ac_fn_c_try_compile "$LINENO"; then :
1970
1971else
1972 eval "$3=yes"
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_type
1984cat >config.log <<_ACEOF
1985This file contains any messages produced by compilers while
1986running configure, to aid debugging if configure makes a mistake.
1987
1988It was created by libvorbis $as_me 1.3.7, which was
1989generated by GNU Autoconf 2.69. Invocation command line was
1990
1991 $ $0 $@
1992
1993_ACEOF
1994exec 5>>config.log
1995{
1996cat <<_ASUNAME
1997## --------- ##
1998## Platform. ##
1999## --------- ##
2000
2001hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009
2010/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2017
2018_ASUNAME
2019
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2026 done
2027IFS=$as_save_IFS
2028
2029} >&5
2030
2031cat >&5 <<_ACEOF
2032
2033
2034## ----------- ##
2035## Core tests. ##
2036## ----------- ##
2037
2038_ACEOF
2039
2040
2041# Keep a trace of the command line.
2042# Strip out --no-create and --no-recursion so they do not pile up.
2043# Strip out --silent because we don't want to record it for future runs.
2044# Also quote any args containing shell meta-characters.
2045# Make two passes to allow for proper duplicate-argument suppression.
2046ac_configure_args=
2047ac_configure_args0=
2048ac_configure_args1=
2049ac_must_keep_next=false
2050for ac_pass in 1 2
2051do
2052 for ac_arg
2053 do
2054 case $ac_arg in
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2058 continue ;;
2059 *\'*)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 esac
2062 case $ac_pass in
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 2)
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2068 else
2069 case $ac_arg in
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076 esac
2077 ;;
2078 -* ) ac_must_keep_next=true ;;
2079 esac
2080 fi
2081 as_fn_append ac_configure_args " '$ac_arg'"
2082 ;;
2083 esac
2084 done
2085done
2086{ ac_configure_args0=; unset ac_configure_args0;}
2087{ ac_configure_args1=; unset ac_configure_args1;}
2088
2089# When interrupted or exit'd, cleanup temporary files, and complete
2090# config.log. We remove comments because anyway the quotes in there
2091# would cause problems or look ugly.
2092# WARNING: Use '\'' to represent an apostrophe within the trap.
2093# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2096 {
2097 echo
2098
2099 $as_echo "## ---------------- ##
2100## Cache variables. ##
2101## ---------------- ##"
2102 echo
2103 # The following way of writing the cache mishandles newlines in values,
2104(
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in #(
2108 *${as_nl}*)
2109 case $ac_var in #(
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 esac
2113 case $ac_var in #(
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2117 esac ;;
2118 esac
2119 done
2120 (set) 2>&1 |
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2123 sed -n \
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 ;; #(
2127 *)
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ;;
2130 esac |
2131 sort
2132)
2133 echo
2134
2135 $as_echo "## ----------------- ##
2136## Output variables. ##
2137## ----------------- ##"
2138 echo
2139 for ac_var in $ac_subst_vars
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151## File substitutions. ##
2152## ------------------- ##"
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2167## confdefs.h. ##
2168## ----------- ##"
2169 echo
2170 cat confdefs.h
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2176 } >&5
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 exit $exit_status
2180' 0
2181for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
2217
2218# Let the site file select an alternate cache file if it wants to.
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2228 esac
2229elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2232else
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2235fi
2236for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237do
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2243 . "$ac_site_file" \
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246as_fn_error $? "failed to load site script $ac_site_file
2247See \`config.log' for more details" "$LINENO" 5; }
2248 fi
2249done
2250
2251if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256$as_echo "$as_me: loading cache $cache_file" >&6;}
2257 case $cache_file in
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2260 esac
2261 fi
2262else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264$as_echo "$as_me: creating cache $cache_file" >&6;}
2265 >$cache_file
2266fi
2267
2268# Check that the precious variables saved in the cache have kept the same
2269# value.
2270ac_cache_corrupted=false
2271for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2277 set,)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,set)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,);;
2286 *)
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 fi;;
2305 esac
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2308 case $ac_new_val in
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2311 esac
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315 esac
2316 fi
2317done
2318if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324fi
2325## -------------------- ##
2326## Main body of script. ##
2327## -------------------- ##
2328
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337
2338
2339
2340
2341ac_aux_dir=
2342for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343 if test -f "$ac_dir/install-sh"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2346 break
2347 elif test -f "$ac_dir/install.sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2350 break
2351 elif test -f "$ac_dir/shtool"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2354 break
2355 fi
2356done
2357if test -z "$ac_aux_dir"; then
2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359fi
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368
2369
2370# Make sure we can run config.sub.
2371$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2373
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375$as_echo_n "checking build system type... " >&6; }
2376if ${ac_cv_build+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378else
2379 ac_build_alias=$build_alias
2380test "x$ac_build_alias" = x &&
2381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382test "x$ac_build_alias" = x &&
2383 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2384ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389$as_echo "$ac_cv_build" >&6; }
2390case $ac_cv_build in
2391*-*-*) ;;
2392*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2393esac
2394build=$ac_cv_build
2395ac_save_IFS=$IFS; IFS='-'
2396set x $ac_cv_build
2397shift
2398build_cpu=$1
2399build_vendor=$2
2400shift; shift
2401# Remember, the first character of IFS is used to create $*,
2402# except with old shells:
2403build_os=$*
2404IFS=$ac_save_IFS
2405case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406
2407
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2409$as_echo_n "checking host system type... " >&6; }
2410if ${ac_cv_host+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412else
2413 if test "x$host_alias" = x; then
2414 ac_cv_host=$ac_cv_build
2415else
2416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2418fi
2419
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2422$as_echo "$ac_cv_host" >&6; }
2423case $ac_cv_host in
2424*-*-*) ;;
2425*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2426esac
2427host=$ac_cv_host
2428ac_save_IFS=$IFS; IFS='-'
2429set x $ac_cv_host
2430shift
2431host_cpu=$1
2432host_vendor=$2
2433shift; shift
2434# Remember, the first character of IFS is used to create $*,
2435# except with old shells:
2436host_os=$*
2437IFS=$ac_save_IFS
2438case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2439
2440
2441
2442am__api_version='1.16'
2443
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
2451# AmigaOS /C/install, which installs bootblocks on floppy discs
2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455# OS/2's system install, which has a completely different semantic
2456# ./install, which can be erroneously created by make from ./install.sh.
2457# Reject install programs that cannot install multiple files.
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459$as_echo_n "checking for a BSD-compatible install... " >&6; }
2460if test -z "$INSTALL"; then
2461if ${ac_cv_path_install+:} false; then :
2462 $as_echo_n "(cached) " >&6
2463else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2485 :
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
2504 fi
2505 done
2506 done
2507 ;;
2508esac
2509
2510 done
2511IFS=$as_save_IFS
2512
2513rm -rf conftest.one conftest.two conftest.dir
2514
2515fi
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2524 fi
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527$as_echo "$INSTALL" >&6; }
2528
2529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530# It thinks the first close brace ends the variable substitution.
2531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538$as_echo_n "checking whether build environment is sane... " >&6; }
2539# Reject unsafe characters in $srcdir or the absolute working directory
2540# name. Accept space and tab only in the latter.
2541am_lf='
2542'
2543case `pwd` in
2544 *[\\\"\#\$\&\'\`$am_lf]*)
2545 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2546esac
2547case $srcdir in
2548 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2549 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2550esac
2551
2552# Do 'set' in a subshell so we don't clobber the current shell's
2553# arguments. Must try -L first in case configure is actually a
2554# symlink; some systems play weird games with the mod time of symlinks
2555# (eg FreeBSD returns the mod time of the symlink's containing
2556# directory).
2557if (
2558 am_has_slept=no
2559 for am_try in 1 2; do
2560 echo "timestamp, slept: $am_has_slept" > conftest.file
2561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562 if test "$*" = "X"; then
2563 # -L didn't work.
2564 set X `ls -t "$srcdir/configure" conftest.file`
2565 fi
2566 if test "$*" != "X $srcdir/configure conftest.file" \
2567 && test "$*" != "X conftest.file $srcdir/configure"; then
2568
2569 # If neither matched, then we have a broken ls. This can happen
2570 # if, for instance, CONFIG_SHELL is bash and it inherits a
2571 # broken ls alias from the environment. This has actually
2572 # happened. Such a system could not be considered "sane".
2573 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2574 alias in your environment" "$LINENO" 5
2575 fi
2576 if test "$2" = conftest.file || test $am_try -eq 2; then
2577 break
2578 fi
2579 # Just in case.
2580 sleep 1
2581 am_has_slept=yes
2582 done
2583 test "$2" = conftest.file
2584 )
2585then
2586 # Ok.
2587 :
2588else
2589 as_fn_error $? "newly created file is older than distributed files!
2590Check your system clock" "$LINENO" 5
2591fi
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593$as_echo "yes" >&6; }
2594# If we didn't sleep, we still need to ensure time stamps of config.status and
2595# generated files are strictly newer.
2596am_sleep_pid=
2597if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2598 ( sleep 1 ) &
2599 am_sleep_pid=$!
2600fi
2601
2602rm -f conftest.file
2603
2604test "$program_prefix" != NONE &&
2605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2606# Use a double $ so make ignores it.
2607test "$program_suffix" != NONE &&
2608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2609# Double any \ or $.
2610# By default was `s,x,x', remove it if useless.
2611ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2612program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2613
2614# Expand $ac_aux_dir to an absolute path.
2615am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
2617if test x"${MISSING+set}" != xset; then
2618 case $am_aux_dir in
2619 *\ * | *\ *)
2620 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2621 *)
2622 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2623 esac
2624fi
2625# Use eval to expand $SHELL
2626if eval "$MISSING --is-lightweight"; then
2627 am_missing_run="$MISSING "
2628else
2629 am_missing_run=
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2631$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2632fi
2633
2634if test x"${install_sh+set}" != xset; then
2635 case $am_aux_dir in
2636 *\ * | *\ *)
2637 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2638 *)
2639 install_sh="\${SHELL} $am_aux_dir/install-sh"
2640 esac
2641fi
2642
2643# Installed binaries are usually stripped using 'strip' when the user
2644# run "make install-strip". However 'strip' might not be the right
2645# tool to use in cross-compilation environments, therefore Automake
2646# will honor the 'STRIP' environment variable to overrule this program.
2647if test "$cross_compiling" != no; then
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}strip; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if ${ac_cv_prog_STRIP+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$STRIP"; then
2657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676STRIP=$ac_cv_prog_STRIP
2677if test -n "$STRIP"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2679$as_echo "$STRIP" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686fi
2687if test -z "$ac_cv_prog_STRIP"; then
2688 ac_ct_STRIP=$STRIP
2689 # Extract the first word of "strip", so it can be a program name with args.
2690set dummy strip; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695else
2696 if test -n "$ac_ct_STRIP"; then
2697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_ac_ct_STRIP="strip"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711 done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2717if test -n "$ac_ct_STRIP"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2719$as_echo "$ac_ct_STRIP" >&6; }
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725 if test "x$ac_ct_STRIP" = x; then
2726 STRIP=":"
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729yes:)
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734 STRIP=$ac_ct_STRIP
2735 fi
2736else
2737 STRIP="$ac_cv_prog_STRIP"
2738fi
2739
2740fi
2741INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2742
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2744$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2745if test -z "$MKDIR_P"; then
2746 if ${ac_cv_path_mkdir+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_prog in mkdir gmkdir; do
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2757 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2758 'mkdir (GNU coreutils) '* | \
2759 'mkdir (coreutils) '* | \
2760 'mkdir (fileutils) '4.1*)
2761 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2762 break 3;;
2763 esac
2764 done
2765 done
2766 done
2767IFS=$as_save_IFS
2768
2769fi
2770
2771 test -d ./--version && rmdir ./--version
2772 if test "${ac_cv_path_mkdir+set}" = set; then
2773 MKDIR_P="$ac_cv_path_mkdir -p"
2774 else
2775 # As a last resort, use the slow shell script. Don't cache a
2776 # value for MKDIR_P within a source directory, because that will
2777 # break other packages using the cache if that directory is
2778 # removed, or if the value is a relative name.
2779 MKDIR_P="$ac_install_sh -d"
2780 fi
2781fi
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2783$as_echo "$MKDIR_P" >&6; }
2784
2785for ac_prog in gawk mawk nawk awk
2786do
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788set dummy $ac_prog; ac_word=$2
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
2791if ${ac_cv_prog_AWK+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793else
2794 if test -n "$AWK"; then
2795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_AWK="$ac_prog"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809 done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814AWK=$ac_cv_prog_AWK
2815if test -n "$AWK"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817$as_echo "$AWK" >&6; }
2818else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820$as_echo "no" >&6; }
2821fi
2822
2823
2824 test -n "$AWK" && break
2825done
2826
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829set x ${MAKE-make}
2830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833else
2834 cat >conftest.make <<\_ACEOF
2835SHELL = /bin/sh
2836all:
2837 @echo '@@@%%%=$(MAKE)=@@@%%%'
2838_ACEOF
2839# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841 *@@@%%%=?*=@@@%%%*)
2842 eval ac_cv_prog_make_${ac_make}_set=yes;;
2843 *)
2844 eval ac_cv_prog_make_${ac_make}_set=no;;
2845esac
2846rm -f conftest.make
2847fi
2848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850$as_echo "yes" >&6; }
2851 SET_MAKE=
2852else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855 SET_MAKE="MAKE=${MAKE-make}"
2856fi
2857
2858rm -rf .tst 2>/dev/null
2859mkdir .tst 2>/dev/null
2860if test -d .tst; then
2861 am__leading_dot=.
2862else
2863 am__leading_dot=_
2864fi
2865rmdir .tst 2>/dev/null
2866
2867# Check whether --enable-silent-rules was given.
2868if test "${enable_silent_rules+set}" = set; then :
2869 enableval=$enable_silent_rules;
2870fi
2871
2872case $enable_silent_rules in # (((
2873 yes) AM_DEFAULT_VERBOSITY=0;;
2874 no) AM_DEFAULT_VERBOSITY=1;;
2875 *) AM_DEFAULT_VERBOSITY=1;;
2876esac
2877am_make=${MAKE-make}
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2879$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2880if ${am_cv_make_support_nested_variables+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882else
2883 if $as_echo 'TRUE=$(BAR$(V))
2884BAR0=false
2885BAR1=true
2886V=1
2887am__doit:
2888 @$(TRUE)
2889.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2890 am_cv_make_support_nested_variables=yes
2891else
2892 am_cv_make_support_nested_variables=no
2893fi
2894fi
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2896$as_echo "$am_cv_make_support_nested_variables" >&6; }
2897if test $am_cv_make_support_nested_variables = yes; then
2898 AM_V='$(V)'
2899 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2900else
2901 AM_V=$AM_DEFAULT_VERBOSITY
2902 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2903fi
2904AM_BACKSLASH='\'
2905
2906if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908 # is not polluted with repeated "-I."
2909 am__isrc=' -I$(srcdir)'
2910 # test to see if srcdir already configured
2911 if test -f $srcdir/config.status; then
2912 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913 fi
2914fi
2915
2916# test whether we have cygpath
2917if test -z "$CYGPATH_W"; then
2918 if (cygpath --version) >/dev/null 2>/dev/null; then
2919 CYGPATH_W='cygpath -w'
2920 else
2921 CYGPATH_W=echo
2922 fi
2923fi
2924
2925
2926# Define the identity of the package.
2927 PACKAGE='libvorbis'
2928 VERSION='1.3.7'
2929
2930
2931cat >>confdefs.h <<_ACEOF
2932#define PACKAGE "$PACKAGE"
2933_ACEOF
2934
2935
2936cat >>confdefs.h <<_ACEOF
2937#define VERSION "$VERSION"
2938_ACEOF
2939
2940# Some tools Automake needs.
2941
2942ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
2956# For better backward compatibility. To be removed once Automake 1.9.x
2957# dies out for good. For more background, see:
2958# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2959# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2960mkdir_p='$(MKDIR_P)'
2961
2962# We need awk for the "check" target (and possibly the TAP driver). The
2963# system "awk" is bad on some platforms.
2964# Always define AMTAR for backward compatibility. Yes, it's still used
2965# in the wild :-( We should find a proper way to deprecate it ...
2966AMTAR='$${TAR-tar}'
2967
2968
2969# We'll loop over all known methods to create a tar archive until one works.
2970_am_tools='gnutar pax cpio none'
2971
2972am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2973
2974
2975
2976
2977
2978
2979# POSIX will say in a future version that running "rm -f" with no argument
2980# is OK; and we want to be able to make that assumption in our Makefile
2981# recipes. So use an aggressive probe to check that the usage we want is
2982# actually supported "in the wild" to an acceptable degree.
2983# See automake bug#10828.
2984# To make any issue more visible, cause the running configure to be aborted
2985# by default if the 'rm' program in use doesn't match our expectations; the
2986# user can still override this though.
2987if rm -f && rm -fr && rm -rf; then : OK; else
2988 cat >&2 <<'END'
2989Oops!
2990
2991Your 'rm' program seems unable to run without file operands specified
2992on the command line, even when the '-f' option is present. This is contrary
2993to the behaviour of most rm programs out there, and not conforming with
2994the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2995
2996Please tell bug-automake@gnu.org about your system, including the value
2997of your $PATH and any error possibly output before this message. This
2998can help us improve future automake versions.
2999
3000END
3001 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3002 echo 'Configuration will proceed anyway, since you have set the' >&2
3003 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3004 echo >&2
3005 else
3006 cat >&2 <<'END'
3007Aborting the configuration process, to ensure you take notice of the issue.
3008
3009You can download and install GNU coreutils to get an 'rm' implementation
3010that behaves properly: <https://www.gnu.org/software/coreutils/>.
3011
3012If you want to complete the configuration process using your problematic
3013'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3014to "yes", and re-run configure.
3015
3016END
3017 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3018 fi
3019fi
3020
3021
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3023$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3024 # Check whether --enable-maintainer-mode was given.
3025if test "${enable_maintainer_mode+set}" = set; then :
3026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3027else
3028 USE_MAINTAINER_MODE=no
3029fi
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3032$as_echo "$USE_MAINTAINER_MODE" >&6; }
3033 if test $USE_MAINTAINER_MODE = yes; then
3034 MAINTAINER_MODE_TRUE=
3035 MAINTAINER_MODE_FALSE='#'
3036else
3037 MAINTAINER_MODE_TRUE='#'
3038 MAINTAINER_MODE_FALSE=
3039fi
3040
3041 MAINT=$MAINTAINER_MODE_TRUE
3042
3043
3044
3045ACLOCAL_AMFLAGS="-I m4"
3046
3047
3048# Check whether --enable-silent-rules was given.
3049if test "${enable_silent_rules+set}" = set; then :
3050 enableval=$enable_silent_rules;
3051fi
3052
3053case $enable_silent_rules in # (((
3054 yes) AM_DEFAULT_VERBOSITY=0;;
3055 no) AM_DEFAULT_VERBOSITY=1;;
3056 *) AM_DEFAULT_VERBOSITY=0;;
3057esac
3058am_make=${MAKE-make}
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3060$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3061if ${am_cv_make_support_nested_variables+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063else
3064 if $as_echo 'TRUE=$(BAR$(V))
3065BAR0=false
3066BAR1=true
3067V=1
3068am__doit:
3069 @$(TRUE)
3070.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3071 am_cv_make_support_nested_variables=yes
3072else
3073 am_cv_make_support_nested_variables=no
3074fi
3075fi
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3077$as_echo "$am_cv_make_support_nested_variables" >&6; }
3078if test $am_cv_make_support_nested_variables = yes; then
3079 AM_V='$(V)'
3080 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3081else
3082 AM_V=$AM_DEFAULT_VERBOSITY
3083 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3084fi
3085AM_BACKSLASH='\'
3086
3087
3088
3089V_LIB_CURRENT=4
3090V_LIB_REVISION=9
3091V_LIB_AGE=4
3092
3093VF_LIB_CURRENT=6
3094VF_LIB_REVISION=8
3095VF_LIB_AGE=3
3096
3097VE_LIB_CURRENT=2
3098VE_LIB_REVISION=12
3099VE_LIB_AGE=0
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112cflags_save="$CFLAGS"
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141 done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146CC=$ac_cv_prog_CC
3147if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149$as_echo "$CC" >&6; }
3150else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156fi
3157if test -z "$ac_cv_prog_CC"; then
3158 ac_ct_CC=$CC
3159 # Extract the first word of "gcc", so it can be a program name with args.
3160set dummy gcc; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CC="gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181 done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189$as_echo "$ac_ct_CC" >&6; }
3190else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199yes:)
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202ac_tool_warned=yes ;;
3203esac
3204 CC=$ac_ct_CC
3205 fi
3206else
3207 CC="$ac_cv_prog_CC"
3208fi
3209
3210if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213set dummy ${ac_tool_prefix}cc; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218else
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="${ac_tool_prefix}cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233done
3234 done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249 fi
3250fi
3251if test -z "$CC"; then
3252 # Extract the first word of "cc", so it can be a program name with args.
3253set dummy cc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258else
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262 ac_prog_rejected=no
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271 ac_prog_rejected=yes
3272 continue
3273 fi
3274 ac_cv_prog_CC="cc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278done
3279 done
3280IFS=$as_save_IFS
3281
3282if test $ac_prog_rejected = yes; then
3283 # We found a bogon in the path, so make sure we never use it.
3284 set dummy $ac_cv_prog_CC
3285 shift
3286 if test $# != 0; then
3287 # We chose a different compiler from the bogus one.
3288 # However, it has the same basename, so the bogon will be chosen
3289 # first if we set CC to just the basename; use the full file name.
3290 shift
3291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3292 fi
3293fi
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306fi
3307if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 for ac_prog in cl.exe
3310 do
3311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332done
3333 done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338CC=$ac_cv_prog_CC
3339if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341$as_echo "$CC" >&6; }
3342else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347
3348 test -n "$CC" && break
3349 done
3350fi
3351if test -z "$CC"; then
3352 ac_ct_CC=$CC
3353 for ac_prog in cl.exe
3354do
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356set dummy $ac_prog; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361else
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_CC="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377 done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385$as_echo "$ac_ct_CC" >&6; }
3386else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392 test -n "$ac_ct_CC" && break
3393done
3394
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399yes:)
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402ac_tool_warned=yes ;;
3403esac
3404 CC=$ac_ct_CC
3405 fi
3406fi
3407
3408fi
3409
3410
3411test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error $? "no acceptable C compiler found in \$PATH
3414See \`config.log' for more details" "$LINENO" 5; }
3415
3416# Provide some information about the compiler.
3417$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3418set X $ac_compile
3419ac_compiler=$2
3420for ac_option in --version -v -V -qversion; do
3421 { { ac_try="$ac_compiler $ac_option >&5"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3429 ac_status=$?
3430 if test -s conftest.err; then
3431 sed '10a\
3432... rest of stderr output deleted ...
3433 10q' conftest.err >conftest.er1
3434 cat conftest.er1 >&5
3435 fi
3436 rm -f conftest.er1 conftest.err
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439done
3440
3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452ac_clean_files_save=$ac_clean_files
3453ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454# Try to create an executable without -o first, disregard a.out.
3455# It will help us diagnose broken compilers, and finding out an intuition
3456# of exeext.
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458$as_echo_n "checking whether the C compiler works... " >&6; }
3459ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3460
3461# The possible output files:
3462ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3463
3464ac_rmfiles=
3465for ac_file in $ac_files
3466do
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3470 esac
3471done
3472rm -f $ac_rmfiles
3473
3474if { { ac_try="$ac_link_default"
3475case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link_default") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487# in a Makefile. We should not override ac_cv_exeext if it was cached,
3488# so that the user can short-circuit this test for compilers unknown to
3489# Autoconf.
3490for ac_file in $ac_files ''
3491do
3492 test -f "$ac_file" || continue
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3495 ;;
3496 [ab].out )
3497 # We found the default executable, but exeext='' is most
3498 # certainly right.
3499 break;;
3500 *.* )
3501 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3502 then :; else
3503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504 fi
3505 # We set ac_cv_exeext here because the later test for it is not
3506 # safe: cross compilers may not add the suffix if given an `-o'
3507 # argument, so we may need to know it at that point already.
3508 # Even if this section looks crufty: it has the advantage of
3509 # actually working.
3510 break;;
3511 * )
3512 break;;
3513 esac
3514done
3515test "$ac_cv_exeext" = no && ac_cv_exeext=
3516
3517else
3518 ac_file=''
3519fi
3520if test -z "$ac_file"; then :
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523$as_echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error 77 "C compiler cannot create executables
3529See \`config.log' for more details" "$LINENO" 5; }
3530else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532$as_echo "yes" >&6; }
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3535$as_echo_n "checking for C compiler default output file name... " >&6; }
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3537$as_echo "$ac_file" >&6; }
3538ac_exeext=$ac_cv_exeext
3539
3540rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3541ac_clean_files=$ac_clean_files_save
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543$as_echo_n "checking for suffix of executables... " >&6; }
3544if { { ac_try="$ac_link"
3545case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550$as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3552 ac_status=$?
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; then :
3555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3556# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3557# work properly (i.e., refer to `conftest.exe'), while it won't with
3558# `rm'.
3559for ac_file in conftest.exe conftest conftest.*; do
3560 test -f "$ac_file" || continue
3561 case $ac_file in
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 break;;
3565 * ) break;;
3566 esac
3567done
3568else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3572See \`config.log' for more details" "$LINENO" 5; }
3573fi
3574rm -f conftest conftest$ac_cv_exeext
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576$as_echo "$ac_cv_exeext" >&6; }
3577
3578rm -f conftest.$ac_ext
3579EXEEXT=$ac_cv_exeext
3580ac_exeext=$EXEEXT
3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h. */
3583#include <stdio.h>
3584int
3585main ()
3586{
3587FILE *f = fopen ("conftest.out", "w");
3588 return ferror (f) || fclose (f) != 0;
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594ac_clean_files="$ac_clean_files conftest.out"
3595# Check that the compiler produces executables we can run. If not, either
3596# the compiler is broken, or we cross compile.
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3598$as_echo_n "checking whether we are cross compiling... " >&6; }
3599if test "$cross_compiling" != yes; then
3600 { { ac_try="$ac_link"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }
3611 if { ac_try='./conftest$ac_cv_exeext'
3612 { { case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615esac
3616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617$as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_try") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; }; then
3622 cross_compiling=no
3623 else
3624 if test "$cross_compiling" = maybe; then
3625 cross_compiling=yes
3626 else
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629as_fn_error $? "cannot run C compiled programs.
3630If you meant to cross compile, use \`--host'.
3631See \`config.log' for more details" "$LINENO" 5; }
3632 fi
3633 fi
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636$as_echo "$cross_compiling" >&6; }
3637
3638rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3639ac_clean_files=$ac_clean_files_save
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641$as_echo_n "checking for suffix of object files... " >&6; }
3642if ${ac_cv_objext+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h. */
3647
3648int
3649main ()
3650{
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.o conftest.obj
3657if { { ac_try="$ac_compile"
3658case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compile") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673 break;;
3674 esac
3675done
3676else
3677 $as_echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682as_fn_error $? "cannot compute suffix of object files: cannot compile
3683See \`config.log' for more details" "$LINENO" 5; }
3684fi
3685rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688$as_echo "$ac_cv_objext" >&6; }
3689OBJEXT=$ac_cv_objext
3690ac_objext=$OBJEXT
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693if ${ac_cv_c_compiler_gnu+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h. */
3698
3699int
3700main ()
3701{
3702#ifndef __GNUC__
3703 choke me
3704#endif
3705
3706 ;
3707 return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_compiler_gnu=yes
3712else
3713 ac_compiler_gnu=no
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716ac_cv_c_compiler_gnu=$ac_compiler_gnu
3717
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721if test $ac_compiler_gnu = yes; then
3722 GCC=yes
3723else
3724 GCC=
3725fi
3726ac_test_CFLAGS=${CFLAGS+set}
3727ac_save_CFLAGS=$CFLAGS
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729$as_echo_n "checking whether $CC accepts -g... " >&6; }
3730if ${ac_cv_prog_cc_g+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732else
3733 ac_save_c_werror_flag=$ac_c_werror_flag
3734 ac_c_werror_flag=yes
3735 ac_cv_prog_cc_g=no
3736 CFLAGS="-g"
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h. */
3739
3740int
3741main ()
3742{
3743
3744 ;
3745 return 0;
3746}
3747_ACEOF
3748if ac_fn_c_try_compile "$LINENO"; then :
3749 ac_cv_prog_cc_g=yes
3750else
3751 CFLAGS=""
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h. */
3754
3755int
3756main ()
3757{
3758
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764
3765else
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3767 CFLAGS="-g"
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h. */
3770
3771int
3772main ()
3773{
3774
3775 ;
3776 return 0;
3777}
3778_ACEOF
3779if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_cv_prog_cc_g=yes
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790$as_echo "$ac_cv_prog_cc_g" >&6; }
3791if test "$ac_test_CFLAGS" = set; then
3792 CFLAGS=$ac_save_CFLAGS
3793elif test $ac_cv_prog_cc_g = yes; then
3794 if test "$GCC" = yes; then
3795 CFLAGS="-g -O2"
3796 else
3797 CFLAGS="-g"
3798 fi
3799else
3800 if test "$GCC" = yes; then
3801 CFLAGS="-O2"
3802 else
3803 CFLAGS=
3804 fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808if ${ac_cv_prog_cc_c89+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 ac_cv_prog_cc_c89=no
3812ac_save_CC=$CC
3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h. */
3815#include <stdarg.h>
3816#include <stdio.h>
3817struct stat;
3818/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3819struct buf { int x; };
3820FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821static char *e (p, i)
3822 char **p;
3823 int i;
3824{
3825 return p[i];
3826}
3827static char *f (char * (*g) (char **, int), char **p, ...)
3828{
3829 char *s;
3830 va_list v;
3831 va_start (v,p);
3832 s = g (p, va_arg (v,int));
3833 va_end (v);
3834 return s;
3835}
3836
3837/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3838 function prototypes and stuff, but not '\xHH' hex character constants.
3839 These don't provoke an error unfortunately, instead are silently treated
3840 as 'x'. The following induces an error, until -std is added to get
3841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3842 array size at least. It's necessary to write '\x00'==0 to get something
3843 that's true only with -std. */
3844int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3845
3846/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847 inside strings and character constants. */
3848#define FOO(x) 'x'
3849int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3850
3851int test (int i, double x);
3852struct s1 {int (*f) (int a);};
3853struct s2 {int (*f) (double a);};
3854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3855int argc;
3856char **argv;
3857int
3858main ()
3859{
3860return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3861 ;
3862 return 0;
3863}
3864_ACEOF
3865for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3867do
3868 CC="$ac_save_CC $ac_arg"
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_prog_cc_c89=$ac_arg
3871fi
3872rm -f core conftest.err conftest.$ac_objext
3873 test "x$ac_cv_prog_cc_c89" != "xno" && break
3874done
3875rm -f conftest.$ac_ext
3876CC=$ac_save_CC
3877
3878fi
3879# AC_CACHE_VAL
3880case "x$ac_cv_prog_cc_c89" in
3881 x)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883$as_echo "none needed" >&6; } ;;
3884 xno)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886$as_echo "unsupported" >&6; } ;;
3887 *)
3888 CC="$CC $ac_cv_prog_cc_c89"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3891esac
3892if test "x$ac_cv_prog_cc_c89" != xno; then :
3893
3894fi
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902ac_ext=c
3903ac_cpp='$CPP $CPPFLAGS'
3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3908$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3909if ${am_cv_prog_cc_c_o+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914
3915int
3916main ()
3917{
3918
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923 # Make sure it works both with $CC and with simple cc.
3924 # Following AC_PROG_CC_C_O, we do the test twice because some
3925 # compilers refuse to overwrite an existing .o file with -o,
3926 # though they will create one.
3927 am_cv_prog_cc_c_o=yes
3928 for am_i in 1 2; do
3929 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3930 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } \
3934 && test -f conftest2.$ac_objext; then
3935 : OK
3936 else
3937 am_cv_prog_cc_c_o=no
3938 break
3939 fi
3940 done
3941 rm -f core conftest*
3942 unset am_i
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3945$as_echo "$am_cv_prog_cc_c_o" >&6; }
3946if test "$am_cv_prog_cc_c_o" != yes; then
3947 # Losing compiler, so override with the script.
3948 # FIXME: It is wrong to rewrite CC.
3949 # But if we don't then we get into trouble of one sort or another.
3950 # A longer-term fix would be to have automake use am__CC in this case,
3951 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3952 CC="$am_aux_dir/compile $CC"
3953fi
3954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960DEPDIR="${am__leading_dot}deps"
3961
3962ac_config_commands="$ac_config_commands depfiles"
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3965$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3966cat > confinc.mk << 'END'
3967am__doit:
3968 @echo this is the am__doit target >confinc.out
3969.PHONY: am__doit
3970END
3971am__include="#"
3972am__quote=
3973# BSD make does it like this.
3974echo '.include "confinc.mk" # ignored' > confmf.BSD
3975# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3976echo 'include confinc.mk # ignored' > confmf.GNU
3977_am_result=no
3978for s in GNU BSD; do
3979 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3980 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984 case $?:`cat confinc.out 2>/dev/null` in #(
3985 '0:this is the am__doit target') :
3986 case $s in #(
3987 BSD) :
3988 am__include='.include' am__quote='"' ;; #(
3989 *) :
3990 am__include='include' am__quote='' ;;
3991esac ;; #(
3992 *) :
3993 ;;
3994esac
3995 if test "$am__include" != "#"; then
3996 _am_result="yes ($s style)"
3997 break
3998 fi
3999done
4000rm -f confinc.* confmf.*
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4002$as_echo "${_am_result}" >&6; }
4003
4004# Check whether --enable-dependency-tracking was given.
4005if test "${enable_dependency_tracking+set}" = set; then :
4006 enableval=$enable_dependency_tracking;
4007fi
4008
4009if test "x$enable_dependency_tracking" != xno; then
4010 am_depcomp="$ac_aux_dir/depcomp"
4011 AMDEPBACKSLASH='\'
4012 am__nodep='_no'
4013fi
4014 if test "x$enable_dependency_tracking" != xno; then
4015 AMDEP_TRUE=
4016 AMDEP_FALSE='#'
4017else
4018 AMDEP_TRUE='#'
4019 AMDEP_FALSE=
4020fi
4021
4022
4023
4024depcc="$CC" am_compiler_list=
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4027$as_echo_n "checking dependency style of $depcc... " >&6; }
4028if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030else
4031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4032 # We make a subdir and do the tests there. Otherwise we can end up
4033 # making bogus files that we don't know about and never remove. For
4034 # instance it was reported that on HP-UX the gcc test will end up
4035 # making a dummy file named 'D' -- because '-MD' means "put the output
4036 # in D".
4037 rm -rf conftest.dir
4038 mkdir conftest.dir
4039 # Copy depcomp to subdir because otherwise we won't find it if we're
4040 # using a relative directory.
4041 cp "$am_depcomp" conftest.dir
4042 cd conftest.dir
4043 # We will build objects and dependencies in a subdirectory because
4044 # it helps to detect inapplicable dependency modes. For instance
4045 # both Tru64's cc and ICC support -MD to output dependencies as a
4046 # side effect of compilation, but ICC will put the dependencies in
4047 # the current directory while Tru64 will put them in the object
4048 # directory.
4049 mkdir sub
4050
4051 am_cv_CC_dependencies_compiler_type=none
4052 if test "$am_compiler_list" = ""; then
4053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4054 fi
4055 am__universal=false
4056 case " $depcc " in #(
4057 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4058 esac
4059
4060 for depmode in $am_compiler_list; do
4061 # Setup a source with many dependencies, because some compilers
4062 # like to wrap large dependency lists on column 80 (with \), and
4063 # we should not choose a depcomp mode which is confused by this.
4064 #
4065 # We need to recreate these files for each test, as the compiler may
4066 # overwrite some of them when testing with obscure command lines.
4067 # This happens at least with the AIX C compiler.
4068 : > sub/conftest.c
4069 for i in 1 2 3 4 5 6; do
4070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4072 # Solaris 10 /bin/sh.
4073 echo '/* dummy */' > sub/conftst$i.h
4074 done
4075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4076
4077 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4078 # mode. It turns out that the SunPro C++ compiler does not properly
4079 # handle '-M -o', and we need to detect this. Also, some Intel
4080 # versions had trouble with output in subdirs.
4081 am__obj=sub/conftest.${OBJEXT-o}
4082 am__minus_obj="-o $am__obj"
4083 case $depmode in
4084 gcc)
4085 # This depmode causes a compiler race in universal mode.
4086 test "$am__universal" = false || continue
4087 ;;
4088 nosideeffect)
4089 # After this tag, mechanisms are not by side-effect, so they'll
4090 # only be used when explicitly requested.
4091 if test "x$enable_dependency_tracking" = xyes; then
4092 continue
4093 else
4094 break
4095 fi
4096 ;;
4097 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4098 # This compiler won't grok '-c -o', but also, the minuso test has
4099 # not run yet. These depmodes are late enough in the game, and
4100 # so weak that their functioning should not be impacted.
4101 am__obj=conftest.${OBJEXT-o}
4102 am__minus_obj=
4103 ;;
4104 none) break ;;
4105 esac
4106 if depmode=$depmode \
4107 source=sub/conftest.c object=$am__obj \
4108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4110 >/dev/null 2>conftest.err &&
4111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4115 # icc doesn't choke on unknown options, it will just issue warnings
4116 # or remarks (even with -Werror). So we grep stderr for any message
4117 # that says an option was ignored or not supported.
4118 # When given -MP, icc 7.0 and 7.1 complain thusly:
4119 # icc: Command line warning: ignoring option '-M'; no argument required
4120 # The diagnosis changed in icc 8.0:
4121 # icc: Command line remark: option '-MP' not supported
4122 if (grep 'ignoring option' conftest.err ||
4123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4124 am_cv_CC_dependencies_compiler_type=$depmode
4125 break
4126 fi
4127 fi
4128 done
4129
4130 cd ..
4131 rm -rf conftest.dir
4132else
4133 am_cv_CC_dependencies_compiler_type=none
4134fi
4135
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4138$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4139CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4140
4141 if
4142 test "x$enable_dependency_tracking" != xno \
4143 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCC_TRUE=
4145 am__fastdepCC_FALSE='#'
4146else
4147 am__fastdepCC_TRUE='#'
4148 am__fastdepCC_FALSE=
4149fi
4150
4151
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4158$as_echo_n "checking how to run the C preprocessor... " >&6; }
4159# On Suns, sometimes $CPP names a directory.
4160if test -n "$CPP" && test -d "$CPP"; then
4161 CPP=
4162fi
4163if test -z "$CPP"; then
4164 if ${ac_cv_prog_CPP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166else
4167 # Double quotes because CPP needs to be expanded
4168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4169 do
4170 ac_preproc_ok=false
4171for ac_c_preproc_warn_flag in '' yes
4172do
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h. */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186 Syntax error
4187_ACEOF
4188if ac_fn_c_try_cpp "$LINENO"; then :
4189
4190else
4191 # Broken: fails on valid input.
4192continue
4193fi
4194rm -f conftest.err conftest.i conftest.$ac_ext
4195
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
4200#include <ac_nonexistent.h>
4201_ACEOF
4202if ac_fn_c_try_cpp "$LINENO"; then :
4203 # Broken: success on invalid input.
4204continue
4205else
4206 # Passes both tests.
4207ac_preproc_ok=:
4208break
4209fi
4210rm -f conftest.err conftest.i conftest.$ac_ext
4211
4212done
4213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214rm -f conftest.i conftest.err conftest.$ac_ext
4215if $ac_preproc_ok; then :
4216 break
4217fi
4218
4219 done
4220 ac_cv_prog_CPP=$CPP
4221
4222fi
4223 CPP=$ac_cv_prog_CPP
4224else
4225 ac_cv_prog_CPP=$CPP
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4228$as_echo "$CPP" >&6; }
4229ac_preproc_ok=false
4230for ac_c_preproc_warn_flag in '' yes
4231do
4232 # Use a header file that comes with gcc, so configuring glibc
4233 # with a fresh cross-compiler works.
4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 # <limits.h> exists even on freestanding compilers.
4236 # On the NeXT, cc -E runs the code through the compiler's parser,
4237 # not just through cpp. "Syntax error" is here to catch this case.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h. */
4240#ifdef __STDC__
4241# include <limits.h>
4242#else
4243# include <assert.h>
4244#endif
4245 Syntax error
4246_ACEOF
4247if ac_fn_c_try_cpp "$LINENO"; then :
4248
4249else
4250 # Broken: fails on valid input.
4251continue
4252fi
4253rm -f conftest.err conftest.i conftest.$ac_ext
4254
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259#include <ac_nonexistent.h>
4260_ACEOF
4261if ac_fn_c_try_cpp "$LINENO"; then :
4262 # Broken: success on invalid input.
4263continue
4264else
4265 # Passes both tests.
4266ac_preproc_ok=:
4267break
4268fi
4269rm -f conftest.err conftest.i conftest.$ac_ext
4270
4271done
4272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273rm -f conftest.i conftest.err conftest.$ac_ext
4274if $ac_preproc_ok; then :
4275
4276else
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4280See \`config.log' for more details" "$LINENO" 5; }
4281fi
4282
4283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289CFLAGS="$cflags_save"
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4293$as_echo_n "checking for inline... " >&6; }
4294if ${ac_cv_c_inline+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296else
4297 ac_cv_c_inline=no
4298for ac_kw in inline __inline__ __inline; do
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h. */
4301#ifndef __cplusplus
4302typedef int foo_t;
4303static $ac_kw foo_t static_foo () {return 0; }
4304$ac_kw foo_t foo () {return 0; }
4305#endif
4306
4307_ACEOF
4308if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_c_inline=$ac_kw
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 test "$ac_cv_c_inline" != no && break
4313done
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4317$as_echo "$ac_cv_c_inline" >&6; }
4318
4319case $ac_cv_c_inline in
4320 inline | yes) ;;
4321 *)
4322 case $ac_cv_c_inline in
4323 no) ac_val=;;
4324 *) ac_val=$ac_cv_c_inline;;
4325 esac
4326 cat >>confdefs.h <<_ACEOF
4327#ifndef __cplusplus
4328#define inline $ac_val
4329#endif
4330_ACEOF
4331 ;;
4332esac
4333
4334
4335enable_win32_dll=yes
4336
4337case $host in
4338*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4341set dummy ${ac_tool_prefix}as; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_AS+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 if test -n "$AS"; then
4348 ac_cv_prog_AS="$AS" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_AS="${ac_tool_prefix}as"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362 done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367AS=$ac_cv_prog_AS
4368if test -n "$AS"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4370$as_echo "$AS" >&6; }
4371else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377fi
4378if test -z "$ac_cv_prog_AS"; then
4379 ac_ct_AS=$AS
4380 # Extract the first word of "as", so it can be a program name with args.
4381set dummy as; ac_word=$2
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
4384if ${ac_cv_prog_ac_ct_AS+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386else
4387 if test -n "$ac_ct_AS"; then
4388 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_ac_ct_AS="as"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401done
4402 done
4403IFS=$as_save_IFS
4404
4405fi
4406fi
4407ac_ct_AS=$ac_cv_prog_ac_ct_AS
4408if test -n "$ac_ct_AS"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4410$as_echo "$ac_ct_AS" >&6; }
4411else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
4414fi
4415
4416 if test "x$ac_ct_AS" = x; then
4417 AS="false"
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420yes:)
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423ac_tool_warned=yes ;;
4424esac
4425 AS=$ac_ct_AS
4426 fi
4427else
4428 AS="$ac_cv_prog_AS"
4429fi
4430
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435$as_echo_n "checking for $ac_word... " >&6; }
4436if ${ac_cv_prog_DLLTOOL+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438else
4439 if test -n "$DLLTOOL"; then
4440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454 done
4455IFS=$as_save_IFS
4456
4457fi
4458fi
4459DLLTOOL=$ac_cv_prog_DLLTOOL
4460if test -n "$DLLTOOL"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4462$as_echo "$DLLTOOL" >&6; }
4463else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
4467
4468
4469fi
4470if test -z "$ac_cv_prog_DLLTOOL"; then
4471 ac_ct_DLLTOOL=$DLLTOOL
4472 # Extract the first word of "dlltool", so it can be a program name with args.
4473set dummy dlltool; ac_word=$2
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
4476if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478else
4479 if test -n "$ac_ct_DLLTOOL"; then
4480 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494 done
4495IFS=$as_save_IFS
4496
4497fi
4498fi
4499ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4500if test -n "$ac_ct_DLLTOOL"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4502$as_echo "$ac_ct_DLLTOOL" >&6; }
4503else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505$as_echo "no" >&6; }
4506fi
4507
4508 if test "x$ac_ct_DLLTOOL" = x; then
4509 DLLTOOL="false"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512yes:)
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515ac_tool_warned=yes ;;
4516esac
4517 DLLTOOL=$ac_ct_DLLTOOL
4518 fi
4519else
4520 DLLTOOL="$ac_cv_prog_DLLTOOL"
4521fi
4522
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4525set dummy ${ac_tool_prefix}objdump; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
4528if ${ac_cv_prog_OBJDUMP+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530else
4531 if test -n "$OBJDUMP"; then
4532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545done
4546 done
4547IFS=$as_save_IFS
4548
4549fi
4550fi
4551OBJDUMP=$ac_cv_prog_OBJDUMP
4552if test -n "$OBJDUMP"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4554$as_echo "$OBJDUMP" >&6; }
4555else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558fi
4559
4560
4561fi
4562if test -z "$ac_cv_prog_OBJDUMP"; then
4563 ac_ct_OBJDUMP=$OBJDUMP
4564 # Extract the first word of "objdump", so it can be a program name with args.
4565set dummy objdump; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571 if test -n "$ac_ct_OBJDUMP"; then
4572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586 done
4587IFS=$as_save_IFS
4588
4589fi
4590fi
4591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4592if test -n "$ac_ct_OBJDUMP"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4594$as_echo "$ac_ct_OBJDUMP" >&6; }
4595else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4598fi
4599
4600 if test "x$ac_ct_OBJDUMP" = x; then
4601 OBJDUMP="false"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604yes:)
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607ac_tool_warned=yes ;;
4608esac
4609 OBJDUMP=$ac_ct_OBJDUMP
4610 fi
4611else
4612 OBJDUMP="$ac_cv_prog_OBJDUMP"
4613fi
4614
4615 ;;
4616esac
4617
4618test -z "$AS" && AS=as
4619
4620
4621
4622
4623
4624test -z "$DLLTOOL" && DLLTOOL=dlltool
4625
4626
4627
4628
4629
4630test -z "$OBJDUMP" && OBJDUMP=objdump
4631
4632
4633
4634
4635
4636
4637
4638case `pwd` in
4639 *\ * | *\ *)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4641$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4642esac
4643
4644
4645
4646macro_version='2.4.6'
4647macro_revision='2.4.6'
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661ltmain=$ac_aux_dir/ltmain.sh
4662
4663# Backslashify metacharacters that are still active within
4664# double-quoted strings.
4665sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4666
4667# Same as above, but do not quote variable references.
4668double_quote_subst='s/\(["`\\]\)/\\\1/g'
4669
4670# Sed substitution to delay expansion of an escaped shell variable in a
4671# double_quote_subst'ed string.
4672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4673
4674# Sed substitution to delay expansion of an escaped single quote.
4675delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4676
4677# Sed substitution to avoid accidental globbing in evaled expressions
4678no_glob_subst='s/\*/\\\*/g'
4679
4680ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4682ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4685$as_echo_n "checking how to print strings... " >&6; }
4686# Test print first, because it will be a builtin if present.
4687if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4688 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4689 ECHO='print -r --'
4690elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4691 ECHO='printf %s\n'
4692else
4693 # Use this function as a fallback that always works.
4694 func_fallback_echo ()
4695 {
4696 eval 'cat <<_LTECHO_EOF
4697$1
4698_LTECHO_EOF'
4699 }
4700 ECHO='func_fallback_echo'
4701fi
4702
4703# func_echo_all arg...
4704# Invoke $ECHO with all args, space-separated.
4705func_echo_all ()
4706{
4707 $ECHO ""
4708}
4709
4710case $ECHO in
4711 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4712$as_echo "printf" >&6; } ;;
4713 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4714$as_echo "print -r" >&6; } ;;
4715 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4716$as_echo "cat" >&6; } ;;
4717esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4734if ${ac_cv_path_SED+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738 for ac_i in 1 2 3 4 5 6 7; do
4739 ac_script="$ac_script$as_nl$ac_script"
4740 done
4741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742 { ac_script=; unset ac_script;}
4743 if test -z "$SED"; then
4744 ac_path_SED_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in sed gsed; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4754 as_fn_executable_p "$ac_path_SED" || continue
4755# Check for GNU ac_path_SED and select it if it is found.
4756 # Check for GNU $ac_path_SED
4757case `"$ac_path_SED" --version 2>&1` in
4758*GNU*)
4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4760*)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo '' >> "conftest.nl"
4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_SED_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_SED="$ac_path_SED"
4775 ac_path_SED_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781esac
4782
4783 $ac_path_SED_found && break 3
4784 done
4785 done
4786 done
4787IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_SED"; then
4789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4790 fi
4791else
4792 ac_cv_path_SED=$SED
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797$as_echo "$ac_cv_path_SED" >&6; }
4798 SED="$ac_cv_path_SED"
4799 rm -f conftest.sed
4800
4801test -z "$SED" && SED=sed
4802Xsed="$SED -e 1s/^X//"
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4815$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4816if ${ac_cv_path_GREP+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 if test -z "$GREP"; then
4820 ac_path_GREP_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in grep ggrep; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4830 as_fn_executable_p "$ac_path_GREP" || continue
4831# Check for GNU ac_path_GREP and select it if it is found.
4832 # Check for GNU $ac_path_GREP
4833case `"$ac_path_GREP" --version 2>&1` in
4834*GNU*)
4835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4836*)
4837 ac_count=0
4838 $as_echo_n 0123456789 >"conftest.in"
4839 while :
4840 do
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo 'GREP' >> "conftest.nl"
4845 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_GREP="$ac_path_GREP"
4851 ac_path_GREP_max=$ac_count
4852 fi
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857esac
4858
4859 $ac_path_GREP_found && break 3
4860 done
4861 done
4862 done
4863IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_GREP"; then
4865 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866 fi
4867else
4868 ac_cv_path_GREP=$GREP
4869fi
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4873$as_echo "$ac_cv_path_GREP" >&6; }
4874 GREP="$ac_cv_path_GREP"
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4878$as_echo_n "checking for egrep... " >&6; }
4879if ${ac_cv_path_EGREP+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881else
4882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4883 then ac_cv_path_EGREP="$GREP -E"
4884 else
4885 if test -z "$EGREP"; then
4886 ac_path_EGREP_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_prog in egrep; do
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4896 as_fn_executable_p "$ac_path_EGREP" || continue
4897# Check for GNU ac_path_EGREP and select it if it is found.
4898 # Check for GNU $ac_path_EGREP
4899case `"$ac_path_EGREP" --version 2>&1` in
4900*GNU*)
4901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4902*)
4903 ac_count=0
4904 $as_echo_n 0123456789 >"conftest.in"
4905 while :
4906 do
4907 cat "conftest.in" "conftest.in" >"conftest.tmp"
4908 mv "conftest.tmp" "conftest.in"
4909 cp "conftest.in" "conftest.nl"
4910 $as_echo 'EGREP' >> "conftest.nl"
4911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4913 as_fn_arith $ac_count + 1 && ac_count=$as_val
4914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4915 # Best one so far, save it but keep looking for a better one
4916 ac_cv_path_EGREP="$ac_path_EGREP"
4917 ac_path_EGREP_max=$ac_count
4918 fi
4919 # 10*(2^10) chars as input seems more than enough
4920 test $ac_count -gt 10 && break
4921 done
4922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4923esac
4924
4925 $ac_path_EGREP_found && break 3
4926 done
4927 done
4928 done
4929IFS=$as_save_IFS
4930 if test -z "$ac_cv_path_EGREP"; then
4931 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4932 fi
4933else
4934 ac_cv_path_EGREP=$EGREP
4935fi
4936
4937 fi
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4940$as_echo "$ac_cv_path_EGREP" >&6; }
4941 EGREP="$ac_cv_path_EGREP"
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4945$as_echo_n "checking for fgrep... " >&6; }
4946if ${ac_cv_path_FGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4950 then ac_cv_path_FGREP="$GREP -F"
4951 else
4952 if test -z "$FGREP"; then
4953 ac_path_FGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in fgrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_FGREP" || continue
4964# Check for GNU ac_path_FGREP and select it if it is found.
4965 # Check for GNU $ac_path_FGREP
4966case `"$ac_path_FGREP" --version 2>&1` in
4967*GNU*)
4968 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4969*)
4970 ac_count=0
4971 $as_echo_n 0123456789 >"conftest.in"
4972 while :
4973 do
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'FGREP' >> "conftest.nl"
4978 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_FGREP="$ac_path_FGREP"
4984 ac_path_FGREP_max=$ac_count
4985 fi
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4988 done
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990esac
4991
4992 $ac_path_FGREP_found && break 3
4993 done
4994 done
4995 done
4996IFS=$as_save_IFS
4997 if test -z "$ac_cv_path_FGREP"; then
4998 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999 fi
5000else
5001 ac_cv_path_FGREP=$FGREP
5002fi
5003
5004 fi
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5007$as_echo "$ac_cv_path_FGREP" >&6; }
5008 FGREP="$ac_cv_path_FGREP"
5009
5010
5011test -z "$GREP" && GREP=grep
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031# Check whether --with-gnu-ld was given.
5032if test "${with_gnu_ld+set}" = set; then :
5033 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5034else
5035 with_gnu_ld=no
5036fi
5037
5038ac_prog=ld
5039if test yes = "$GCC"; then
5040 # Check if gcc -print-prog-name=ld gives a path.
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5042$as_echo_n "checking for ld used by $CC... " >&6; }
5043 case $host in
5044 *-*-mingw*)
5045 # gcc leaves a trailing carriage return, which upsets mingw
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5047 *)
5048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5049 esac
5050 case $ac_prog in
5051 # Accept absolute paths.
5052 [\\/]* | ?:[\\/]*)
5053 re_direlt='/[^/][^/]*/\.\./'
5054 # Canonicalize the pathname of ld
5055 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5056 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5057 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5058 done
5059 test -z "$LD" && LD=$ac_prog
5060 ;;
5061 "")
5062 # If it fails, then pretend we aren't using GCC.
5063 ac_prog=ld
5064 ;;
5065 *)
5066 # If it is relative, then search for the first ld in PATH.
5067 with_gnu_ld=unknown
5068 ;;
5069 esac
5070elif test yes = "$with_gnu_ld"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5072$as_echo_n "checking for GNU ld... " >&6; }
5073else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5075$as_echo_n "checking for non-GNU ld... " >&6; }
5076fi
5077if ${lt_cv_path_LD+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079else
5080 if test -z "$LD"; then
5081 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5082 for ac_dir in $PATH; do
5083 IFS=$lt_save_ifs
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5086 lt_cv_path_LD=$ac_dir/$ac_prog
5087 # Check to see if the program is GNU ld. I'd rather use --version,
5088 # but apparently some variants of GNU ld only accept -v.
5089 # Break only if it was the GNU/non-GNU ld that we prefer.
5090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5091 *GNU* | *'with BFD'*)
5092 test no != "$with_gnu_ld" && break
5093 ;;
5094 *)
5095 test yes != "$with_gnu_ld" && break
5096 ;;
5097 esac
5098 fi
5099 done
5100 IFS=$lt_save_ifs
5101else
5102 lt_cv_path_LD=$LD # Let the user override the test with a path.
5103fi
5104fi
5105
5106LD=$lt_cv_path_LD
5107if test -n "$LD"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5109$as_echo "$LD" >&6; }
5110else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5116$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5117if ${lt_cv_prog_gnu_ld+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5121case `$LD -v 2>&1 </dev/null` in
5122*GNU* | *'with BFD'*)
5123 lt_cv_prog_gnu_ld=yes
5124 ;;
5125*)
5126 lt_cv_prog_gnu_ld=no
5127 ;;
5128esac
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5131$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5132with_gnu_ld=$lt_cv_prog_gnu_ld
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5143$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5144if ${lt_cv_path_NM+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 if test -n "$NM"; then
5148 # Let the user override the test.
5149 lt_cv_path_NM=$NM
5150else
5151 lt_nm_to_check=${ac_tool_prefix}nm
5152 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5153 lt_nm_to_check="$lt_nm_to_check nm"
5154 fi
5155 for lt_tmp_nm in $lt_nm_to_check; do
5156 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5157 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5158 IFS=$lt_save_ifs
5159 test -z "$ac_dir" && ac_dir=.
5160 tmp_nm=$ac_dir/$lt_tmp_nm
5161 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5162 # Check to see if the nm accepts a BSD-compat flag.
5163 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5164 # nm: unknown option "B" ignored
5165 # Tru64's nm complains that /dev/null is an invalid object file
5166 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5167 case $build_os in
5168 mingw*) lt_bad_file=conftest.nm/nofile ;;
5169 *) lt_bad_file=/dev/null ;;
5170 esac
5171 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5172 *$lt_bad_file* | *'Invalid file or object type'*)
5173 lt_cv_path_NM="$tmp_nm -B"
5174 break 2
5175 ;;
5176 *)
5177 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5178 */dev/null*)
5179 lt_cv_path_NM="$tmp_nm -p"
5180 break 2
5181 ;;
5182 *)
5183 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5184 continue # so that we can try to find one that supports BSD flags
5185 ;;
5186 esac
5187 ;;
5188 esac
5189 fi
5190 done
5191 IFS=$lt_save_ifs
5192 done
5193 : ${lt_cv_path_NM=no}
5194fi
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5197$as_echo "$lt_cv_path_NM" >&6; }
5198if test no != "$lt_cv_path_NM"; then
5199 NM=$lt_cv_path_NM
5200else
5201 # Didn't find any BSD compatible name lister, look for dumpbin.
5202 if test -n "$DUMPBIN"; then :
5203 # Let the user override the test.
5204 else
5205 if test -n "$ac_tool_prefix"; then
5206 for ac_prog in dumpbin "link -dump"
5207 do
5208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211$as_echo_n "checking for $ac_word... " >&6; }
5212if ${ac_cv_prog_DUMPBIN+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if test -n "$DUMPBIN"; then
5216 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230 done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235DUMPBIN=$ac_cv_prog_DUMPBIN
5236if test -n "$DUMPBIN"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5238$as_echo "$DUMPBIN" >&6; }
5239else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
5243
5244
5245 test -n "$DUMPBIN" && break
5246 done
5247fi
5248if test -z "$DUMPBIN"; then
5249 ac_ct_DUMPBIN=$DUMPBIN
5250 for ac_prog in dumpbin "link -dump"
5251do
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253set dummy $ac_prog; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$ac_ct_DUMPBIN"; then
5260 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5280if test -n "$ac_ct_DUMPBIN"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5282$as_echo "$ac_ct_DUMPBIN" >&6; }
5283else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289 test -n "$ac_ct_DUMPBIN" && break
5290done
5291
5292 if test "x$ac_ct_DUMPBIN" = x; then
5293 DUMPBIN=":"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296yes:)
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301 DUMPBIN=$ac_ct_DUMPBIN
5302 fi
5303fi
5304
5305 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5306 *COFF*)
5307 DUMPBIN="$DUMPBIN -symbols -headers"
5308 ;;
5309 *)
5310 DUMPBIN=:
5311 ;;
5312 esac
5313 fi
5314
5315 if test : != "$DUMPBIN"; then
5316 NM=$DUMPBIN
5317 fi
5318fi
5319test -z "$NM" && NM=nm
5320
5321
5322
5323
5324
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5327$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5328if ${lt_cv_nm_interface+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330else
5331 lt_cv_nm_interface="BSD nm"
5332 echo "int some_variable = 0;" > conftest.$ac_ext
5333 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5334 (eval "$ac_compile" 2>conftest.err)
5335 cat conftest.err >&5
5336 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5337 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5338 cat conftest.err >&5
5339 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5340 cat conftest.out >&5
5341 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5342 lt_cv_nm_interface="MS dumpbin"
5343 fi
5344 rm -f conftest*
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5347$as_echo "$lt_cv_nm_interface" >&6; }
5348
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5350$as_echo_n "checking whether ln -s works... " >&6; }
5351LN_S=$as_ln_s
5352if test "$LN_S" = "ln -s"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5354$as_echo "yes" >&6; }
5355else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5357$as_echo "no, using $LN_S" >&6; }
5358fi
5359
5360# find the maximum length of command line arguments
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5362$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5363if ${lt_cv_sys_max_cmd_len+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 i=0
5367 teststring=ABCD
5368
5369 case $build_os in
5370 msdosdjgpp*)
5371 # On DJGPP, this test can blow up pretty badly due to problems in libc
5372 # (any single argument exceeding 2000 bytes causes a buffer overrun
5373 # during glob expansion). Even if it were fixed, the result of this
5374 # check would be larger than it should be.
5375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 ;;
5377
5378 gnu*)
5379 # Under GNU Hurd, this test is not required because there is
5380 # no limit to the length of command line arguments.
5381 # Libtool will interpret -1 as no limit whatsoever
5382 lt_cv_sys_max_cmd_len=-1;
5383 ;;
5384
5385 cygwin* | mingw* | cegcc*)
5386 # On Win9x/ME, this test blows up -- it succeeds, but takes
5387 # about 5 minutes as the teststring grows exponentially.
5388 # Worse, since 9x/ME are not pre-emptively multitasking,
5389 # you end up with a "frozen" computer, even though with patience
5390 # the test eventually succeeds (with a max line length of 256k).
5391 # Instead, let's just punt: use the minimum linelength reported by
5392 # all of the supported platforms: 8192 (on NT/2K/XP).
5393 lt_cv_sys_max_cmd_len=8192;
5394 ;;
5395
5396 mint*)
5397 # On MiNT this can take a long time and run out of memory.
5398 lt_cv_sys_max_cmd_len=8192;
5399 ;;
5400
5401 amigaos*)
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413 else
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5415 fi
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 ;;
5420
5421 interix*)
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5424 ;;
5425
5426 os2*)
5427 # The test takes a long time on OS/2.
5428 lt_cv_sys_max_cmd_len=8192
5429 ;;
5430
5431 osf*)
5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434 # nice to cause kernel panics so lets avoid the loop below.
5435 # First set a reasonable default.
5436 lt_cv_sys_max_cmd_len=16384
5437 #
5438 if test -x /sbin/sysconfig; then
5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5441 esac
5442 fi
5443 ;;
5444 sco3.2v5*)
5445 lt_cv_sys_max_cmd_len=102400
5446 ;;
5447 sysv5* | sco5v6* | sysv4.2uw2*)
5448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449 if test -n "$kargmax"; then
5450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5451 else
5452 lt_cv_sys_max_cmd_len=32768
5453 fi
5454 ;;
5455 *)
5456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457 if test -n "$lt_cv_sys_max_cmd_len" && \
5458 test undefined != "$lt_cv_sys_max_cmd_len"; then
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461 else
5462 # Make teststring a little bigger before we do anything with it.
5463 # a 1K string should be a reasonable start.
5464 for i in 1 2 3 4 5 6 7 8; do
5465 teststring=$teststring$teststring
5466 done
5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5470 # we can't tell.
5471 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5472 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5473 test 17 != "$i" # 1/2 MB should be enough
5474 do
5475 i=`expr $i + 1`
5476 teststring=$teststring$teststring
5477 done
5478 # Only check the string length outside the loop.
5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480 teststring=
5481 # Add a significant safety factor because C++ compilers can tack on
5482 # massive amounts of additional arguments before passing them to the
5483 # linker. It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485 fi
5486 ;;
5487 esac
5488
5489fi
5490
5491if test -n "$lt_cv_sys_max_cmd_len"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5493$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5494else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5496$as_echo "none" >&6; }
5497fi
5498max_cmd_len=$lt_cv_sys_max_cmd_len
5499
5500
5501
5502
5503
5504
5505: ${CP="cp -f"}
5506: ${MV="mv -f"}
5507: ${RM="rm -f"}
5508
5509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510 lt_unset=unset
5511else
5512 lt_unset=false
5513fi
5514
5515
5516
5517
5518
5519# test EBCDIC or ASCII
5520case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5525 ;;
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5529 ;;
5530esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5541$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5542if ${lt_cv_to_host_file_cmd+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544else
5545 case $host in
5546 *-*-mingw* )
5547 case $build in
5548 *-*-mingw* ) # actually msys
5549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5550 ;;
5551 *-*-cygwin* )
5552 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5553 ;;
5554 * ) # otherwise, assume *nix
5555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5556 ;;
5557 esac
5558 ;;
5559 *-*-cygwin* )
5560 case $build in
5561 *-*-mingw* ) # actually msys
5562 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5563 ;;
5564 *-*-cygwin* )
5565 lt_cv_to_host_file_cmd=func_convert_file_noop
5566 ;;
5567 * ) # otherwise, assume *nix
5568 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5569 ;;
5570 esac
5571 ;;
5572 * ) # unhandled hosts (and "normal" native builds)
5573 lt_cv_to_host_file_cmd=func_convert_file_noop
5574 ;;
5575esac
5576
5577fi
5578
5579to_host_file_cmd=$lt_cv_to_host_file_cmd
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5581$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5588$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5589if ${lt_cv_to_tool_file_cmd+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591else
5592 #assume ordinary cross tools, or native build.
5593lt_cv_to_tool_file_cmd=func_convert_file_noop
5594case $host in
5595 *-*-mingw* )
5596 case $build in
5597 *-*-mingw* ) # actually msys
5598 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5599 ;;
5600 esac
5601 ;;
5602esac
5603
5604fi
5605
5606to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5608$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5609
5610
5611
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5615$as_echo_n "checking for $LD option to reload object files... " >&6; }
5616if ${lt_cv_ld_reload_flag+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618else
5619 lt_cv_ld_reload_flag='-r'
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5622$as_echo "$lt_cv_ld_reload_flag" >&6; }
5623reload_flag=$lt_cv_ld_reload_flag
5624case $reload_flag in
5625"" | " "*) ;;
5626*) reload_flag=" $reload_flag" ;;
5627esac
5628reload_cmds='$LD$reload_flag -o $output$reload_objs'
5629case $host_os in
5630 cygwin* | mingw* | pw32* | cegcc*)
5631 if test yes != "$GCC"; then
5632 reload_cmds=false
5633 fi
5634 ;;
5635 darwin*)
5636 if test yes = "$GCC"; then
5637 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5638 else
5639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5640 fi
5641 ;;
5642esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5654set dummy ${ac_tool_prefix}objdump; ac_word=$2
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if ${ac_cv_prog_OBJDUMP+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659else
5660 if test -n "$OBJDUMP"; then
5661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674done
5675 done
5676IFS=$as_save_IFS
5677
5678fi
5679fi
5680OBJDUMP=$ac_cv_prog_OBJDUMP
5681if test -n "$OBJDUMP"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5683$as_echo "$OBJDUMP" >&6; }
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687fi
5688
5689
5690fi
5691if test -z "$ac_cv_prog_OBJDUMP"; then
5692 ac_ct_OBJDUMP=$OBJDUMP
5693 # Extract the first word of "objdump", so it can be a program name with args.
5694set dummy objdump; ac_word=$2
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696$as_echo_n "checking for $ac_word... " >&6; }
5697if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699else
5700 if test -n "$ac_ct_OBJDUMP"; then
5701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714done
5715 done
5716IFS=$as_save_IFS
5717
5718fi
5719fi
5720ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5721if test -n "$ac_ct_OBJDUMP"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5723$as_echo "$ac_ct_OBJDUMP" >&6; }
5724else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726$as_echo "no" >&6; }
5727fi
5728
5729 if test "x$ac_ct_OBJDUMP" = x; then
5730 OBJDUMP="false"
5731 else
5732 case $cross_compiling:$ac_tool_warned in
5733yes:)
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736ac_tool_warned=yes ;;
5737esac
5738 OBJDUMP=$ac_ct_OBJDUMP
5739 fi
5740else
5741 OBJDUMP="$ac_cv_prog_OBJDUMP"
5742fi
5743
5744test -z "$OBJDUMP" && OBJDUMP=objdump
5745
5746
5747
5748
5749
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5752$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5753if ${lt_cv_deplibs_check_method+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755else
5756 lt_cv_file_magic_cmd='$MAGIC_CMD'
5757lt_cv_file_magic_test_file=
5758lt_cv_deplibs_check_method='unknown'
5759# Need to set the preceding variable on all platforms that support
5760# interlibrary dependencies.
5761# 'none' -- dependencies not supported.
5762# 'unknown' -- same as none, but documents that we really don't know.
5763# 'pass_all' -- all dependencies passed with no checks.
5764# 'test_compile' -- check by making test program.
5765# 'file_magic [[regex]]' -- check by looking for files in library path
5766# that responds to the $file_magic_cmd with a given extended regex.
5767# If you have 'file' or equivalent on your system and you're not sure
5768# whether 'pass_all' will *always* work, you probably want this one.
5769
5770case $host_os in
5771aix[4-9]*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775beos*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779bsdi[45]*)
5780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5781 lt_cv_file_magic_cmd='/usr/bin/file -L'
5782 lt_cv_file_magic_test_file=/shlib/libc.so
5783 ;;
5784
5785cygwin*)
5786 # func_win32_libid is a shell function defined in ltmain.sh
5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788 lt_cv_file_magic_cmd='func_win32_libid'
5789 ;;
5790
5791mingw* | pw32*)
5792 # Base MSYS/MinGW do not provide the 'file' command needed by
5793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5794 # unless we find 'file', for example because we are cross-compiling.
5795 if ( file / ) >/dev/null 2>&1; then
5796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5797 lt_cv_file_magic_cmd='func_win32_libid'
5798 else
5799 # Keep this pattern in sync with the one in func_win32_libid.
5800 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5801 lt_cv_file_magic_cmd='$OBJDUMP -f'
5802 fi
5803 ;;
5804
5805cegcc*)
5806 # use the weaker test based on 'objdump'. See mingw*.
5807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5808 lt_cv_file_magic_cmd='$OBJDUMP -f'
5809 ;;
5810
5811darwin* | rhapsody*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815freebsd* | dragonfly*)
5816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5817 case $host_cpu in
5818 i*86 )
5819 # Not sure whether the presence of OpenBSD here was a mistake.
5820 # Let's accept both of them until this is cleared up.
5821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5824 ;;
5825 esac
5826 else
5827 lt_cv_deplibs_check_method=pass_all
5828 fi
5829 ;;
5830
5831haiku*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835hpux10.20* | hpux11*)
5836 lt_cv_file_magic_cmd=/usr/bin/file
5837 case $host_cpu in
5838 ia64*)
5839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841 ;;
5842 hppa*64*)
5843 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]'
5844 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845 ;;
5846 *)
5847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849 ;;
5850 esac
5851 ;;
5852
5853interix[3-9]*)
5854 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856 ;;
5857
5858irix5* | irix6* | nonstopux*)
5859 case $LD in
5860 *-32|*"-32 ") libmagic=32-bit;;
5861 *-n32|*"-n32 ") libmagic=N32;;
5862 *-64|*"-64 ") libmagic=64-bit;;
5863 *) libmagic=never-match;;
5864 esac
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868# This must be glibc/ELF.
5869linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
5872
5873netbsd* | netbsdelf*-gnu)
5874 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876 else
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878 fi
5879 ;;
5880
5881newos6*)
5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885 ;;
5886
5887*nto* | *qnx*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891openbsd* | bitrig*)
5892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894 else
5895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896 fi
5897 ;;
5898
5899osf3* | osf4* | osf5*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902
5903rdos*)
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906
5907solaris*)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910
5911sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915sysv4 | sysv4.3*)
5916 case $host_vendor in
5917 motorola)
5918 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]'
5919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920 ;;
5921 ncr)
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924 sequent)
5925 lt_cv_file_magic_cmd='/bin/file'
5926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927 ;;
5928 sni)
5929 lt_cv_file_magic_cmd='/bin/file'
5930 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931 lt_cv_file_magic_test_file=/lib/libc.so
5932 ;;
5933 siemens)
5934 lt_cv_deplibs_check_method=pass_all
5935 ;;
5936 pc)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939 esac
5940 ;;
5941
5942tpf*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945os2*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948esac
5949
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952$as_echo "$lt_cv_deplibs_check_method" >&6; }
5953
5954file_magic_glob=
5955want_nocaseglob=no
5956if test "$build" = "$host"; then
5957 case $host_os in
5958 mingw* | pw32*)
5959 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5960 want_nocaseglob=yes
5961 else
5962 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5963 fi
5964 ;;
5965 esac
5966fi
5967
5968file_magic_cmd=$lt_cv_file_magic_cmd
5969deplibs_check_method=$lt_cv_deplibs_check_method
5970test -z "$deplibs_check_method" && deplibs_check_method=unknown
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997$as_echo_n "checking for $ac_word... " >&6; }
5998if ${ac_cv_prog_DLLTOOL+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 if test -n "$DLLTOOL"; then
6002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016 done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021DLLTOOL=$ac_cv_prog_DLLTOOL
6022if test -n "$DLLTOOL"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6024$as_echo "$DLLTOOL" >&6; }
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027$as_echo "no" >&6; }
6028fi
6029
6030
6031fi
6032if test -z "$ac_cv_prog_DLLTOOL"; then
6033 ac_ct_DLLTOOL=$DLLTOOL
6034 # Extract the first word of "dlltool", so it can be a program name with args.
6035set dummy dlltool; ac_word=$2
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037$as_echo_n "checking for $ac_word... " >&6; }
6038if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040else
6041 if test -n "$ac_ct_DLLTOOL"; then
6042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6043else
6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055done
6056 done
6057IFS=$as_save_IFS
6058
6059fi
6060fi
6061ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6062if test -n "$ac_ct_DLLTOOL"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6064$as_echo "$ac_ct_DLLTOOL" >&6; }
6065else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067$as_echo "no" >&6; }
6068fi
6069
6070 if test "x$ac_ct_DLLTOOL" = x; then
6071 DLLTOOL="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074yes:)
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077ac_tool_warned=yes ;;
6078esac
6079 DLLTOOL=$ac_ct_DLLTOOL
6080 fi
6081else
6082 DLLTOOL="$ac_cv_prog_DLLTOOL"
6083fi
6084
6085test -z "$DLLTOOL" && DLLTOOL=dlltool
6086
6087
6088
6089
6090
6091
6092
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6094$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6095if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097else
6098 lt_cv_sharedlib_from_linklib_cmd='unknown'
6099
6100case $host_os in
6101cygwin* | mingw* | pw32* | cegcc*)
6102 # two different shell functions defined in ltmain.sh;
6103 # decide which one to use based on capabilities of $DLLTOOL
6104 case `$DLLTOOL --help 2>&1` in
6105 *--identify-strict*)
6106 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6107 ;;
6108 *)
6109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6110 ;;
6111 esac
6112 ;;
6113*)
6114 # fallback: assume linklib IS sharedlib
6115 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6116 ;;
6117esac
6118
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6121$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6122sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6123test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6124
6125
6126
6127
6128
6129
6130
6131if test -n "$ac_tool_prefix"; then
6132 for ac_prog in ar
6133 do
6134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if ${ac_cv_prog_AR+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156 done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161AR=$ac_cv_prog_AR
6162if test -n "$AR"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6164$as_echo "$AR" >&6; }
6165else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171 test -n "$AR" && break
6172 done
6173fi
6174if test -z "$AR"; then
6175 ac_ct_AR=$AR
6176 for ac_prog in ar
6177do
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179set dummy $ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_AR="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199done
6200 done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206if test -n "$ac_ct_AR"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6208$as_echo "$ac_ct_AR" >&6; }
6209else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215 test -n "$ac_ct_AR" && break
6216done
6217
6218 if test "x$ac_ct_AR" = x; then
6219 AR="false"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227 AR=$ac_ct_AR
6228 fi
6229fi
6230
6231: ${AR=ar}
6232: ${AR_FLAGS=cr}
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6245$as_echo_n "checking for archiver @FILE support... " >&6; }
6246if ${lt_cv_ar_at_file+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248else
6249 lt_cv_ar_at_file=no
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h. */
6252
6253int
6254main ()
6255{
6256
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_compile "$LINENO"; then :
6262 echo conftest.$ac_objext > conftest.lst
6263 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6265 (eval $lt_ar_try) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }
6269 if test 0 -eq "$ac_status"; then
6270 # Ensure the archiver fails upon bogus file names.
6271 rm -f conftest.$ac_objext libconftest.a
6272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6273 (eval $lt_ar_try) 2>&5
6274 ac_status=$?
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }
6277 if test 0 -ne "$ac_status"; then
6278 lt_cv_ar_at_file=@
6279 fi
6280 fi
6281 rm -f conftest.* libconftest.a
6282
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6288$as_echo "$lt_cv_ar_at_file" >&6; }
6289
6290if test no = "$lt_cv_ar_at_file"; then
6291 archiver_list_spec=
6292else
6293 archiver_list_spec=$lt_cv_ar_at_file
6294fi
6295
6296
6297
6298
6299
6300
6301
6302if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}strip; ac_word=$2
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306$as_echo_n "checking for $ac_word... " >&6; }
6307if ${ac_cv_prog_STRIP+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309else
6310 if test -n "$STRIP"; then
6311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325 done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330STRIP=$ac_cv_prog_STRIP
6331if test -n "$STRIP"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333$as_echo "$STRIP" >&6; }
6334else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339
6340fi
6341if test -z "$ac_cv_prog_STRIP"; then
6342 ac_ct_STRIP=$STRIP
6343 # Extract the first word of "strip", so it can be a program name with args.
6344set dummy strip; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349else
6350 if test -n "$ac_ct_STRIP"; then
6351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_STRIP="strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364done
6365 done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371if test -n "$ac_ct_STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373$as_echo "$ac_ct_STRIP" >&6; }
6374else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379 if test "x$ac_ct_STRIP" = x; then
6380 STRIP=":"
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383yes:)
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386ac_tool_warned=yes ;;
6387esac
6388 STRIP=$ac_ct_STRIP
6389 fi
6390else
6391 STRIP="$ac_cv_prog_STRIP"
6392fi
6393
6394test -z "$STRIP" && STRIP=:
6395
6396
6397
6398
6399
6400
6401if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6403set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
6406if ${ac_cv_prog_RANLIB+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408else
6409 if test -n "$RANLIB"; then
6410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423done
6424 done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429RANLIB=$ac_cv_prog_RANLIB
6430if test -n "$RANLIB"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6432$as_echo "$RANLIB" >&6; }
6433else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439fi
6440if test -z "$ac_cv_prog_RANLIB"; then
6441 ac_ct_RANLIB=$RANLIB
6442 # Extract the first word of "ranlib", so it can be a program name with args.
6443set dummy ranlib; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448else
6449 if test -n "$ac_ct_RANLIB"; then
6450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_ac_ct_RANLIB="ranlib"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464 done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6470if test -n "$ac_ct_RANLIB"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6472$as_echo "$ac_ct_RANLIB" >&6; }
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478 if test "x$ac_ct_RANLIB" = x; then
6479 RANLIB=":"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482yes:)
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485ac_tool_warned=yes ;;
6486esac
6487 RANLIB=$ac_ct_RANLIB
6488 fi
6489else
6490 RANLIB="$ac_cv_prog_RANLIB"
6491fi
6492
6493test -z "$RANLIB" && RANLIB=:
6494
6495
6496
6497
6498
6499
6500# Determine commands to create old-style static archives.
6501old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6502old_postinstall_cmds='chmod 644 $oldlib'
6503old_postuninstall_cmds=
6504
6505if test -n "$RANLIB"; then
6506 case $host_os in
6507 bitrig* | openbsd*)
6508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6509 ;;
6510 *)
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6512 ;;
6513 esac
6514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6515fi
6516
6517case $host_os in
6518 darwin*)
6519 lock_old_archive_extraction=yes ;;
6520 *)
6521 lock_old_archive_extraction=no ;;
6522esac
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562# If no C compiler was specified, use CC.
6563LTCC=${LTCC-"$CC"}
6564
6565# If no C compiler flags were specified, use CFLAGS.
6566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6567
6568# Allow CC to be a program name with arguments.
6569compiler=$CC
6570
6571
6572# Check for command to grab the raw symbol name followed by C symbol from nm.
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577else
6578
6579# These are sane defaults that work on at least a few old systems.
6580# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6581
6582# Character class describing NM global symbol codes.
6583symcode='[BCDEGRST]'
6584
6585# Regexp to match symbols that can be accessed directly from C.
6586sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6587
6588# Define system-specific variables.
6589case $host_os in
6590aix*)
6591 symcode='[BCDT]'
6592 ;;
6593cygwin* | mingw* | pw32* | cegcc*)
6594 symcode='[ABCDGISTW]'
6595 ;;
6596hpux*)
6597 if test ia64 = "$host_cpu"; then
6598 symcode='[ABCDEGRST]'
6599 fi
6600 ;;
6601irix* | nonstopux*)
6602 symcode='[BCDEGRST]'
6603 ;;
6604osf*)
6605 symcode='[BCDEGQRST]'
6606 ;;
6607solaris*)
6608 symcode='[BDRT]'
6609 ;;
6610sco3.2v5*)
6611 symcode='[DT]'
6612 ;;
6613sysv4.2uw2*)
6614 symcode='[DT]'
6615 ;;
6616sysv5* | sco5v6* | unixware* | OpenUNIX*)
6617 symcode='[ABDT]'
6618 ;;
6619sysv4)
6620 symcode='[DFNSTU]'
6621 ;;
6622esac
6623
6624# If we're using GNU nm, then use its standard symbol codes.
6625case `$NM -V 2>&1` in
6626*GNU* | *'with BFD'*)
6627 symcode='[ABCDGIRSTW]' ;;
6628esac
6629
6630if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6631 # Gets list of data symbols to import.
6632 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6633 # Adjust the below global symbol transforms to fixup imported variables.
6634 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6635 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6636 lt_c_name_lib_hook="\
6637 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6638 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6639else
6640 # Disable hooks by default.
6641 lt_cv_sys_global_symbol_to_import=
6642 lt_cdecl_hook=
6643 lt_c_name_hook=
6644 lt_c_name_lib_hook=
6645fi
6646
6647# Transform an extracted symbol line into a proper C declaration.
6648# Some systems (esp. on ia64) link data and code symbols differently,
6649# so use this general approach.
6650lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6651$lt_cdecl_hook\
6652" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6653" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6654
6655# Transform an extracted symbol line into symbol name and symbol address
6656lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6657$lt_c_name_hook\
6658" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6659" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6660
6661# Transform an extracted symbol line into symbol name with lib prefix and
6662# symbol address.
6663lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6664$lt_c_name_lib_hook\
6665" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6666" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6667" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6668
6669# Handle CRLF in mingw tool chain
6670opt_cr=
6671case $build_os in
6672mingw*)
6673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6674 ;;
6675esac
6676
6677# Try without a prefix underscore, then with it.
6678for ac_symprfx in "" "_"; do
6679
6680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6681 symxfrm="\\1 $ac_symprfx\\2 \\2"
6682
6683 # Write the raw and C identifiers.
6684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685 # Fake it for dumpbin and say T for any non-static function,
6686 # D for any global variable and I for any imported variable.
6687 # Also find C++ and __fastcall symbols from MSVC++,
6688 # which start with @ or ?.
6689 lt_cv_sys_global_symbol_pipe="$AWK '"\
6690" {last_section=section; section=\$ 3};"\
6691" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6692" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6693" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6694" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6695" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6696" \$ 0!~/External *\|/{next};"\
6697" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698" {if(hide[section]) next};"\
6699" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6700" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6701" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6702" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6703" ' prfx=^$ac_symprfx"
6704 else
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6706 fi
6707 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6708
6709 # Check to see that the pipe works correctly.
6710 pipe_works=no
6711
6712 rm -f conftest*
6713 cat > conftest.$ac_ext <<_LT_EOF
6714#ifdef __cplusplus
6715extern "C" {
6716#endif
6717char nm_test_var;
6718void nm_test_func(void);
6719void nm_test_func(void){}
6720#ifdef __cplusplus
6721}
6722#endif
6723int main(){nm_test_var='a';nm_test_func();return(0);}
6724_LT_EOF
6725
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 # Now try to grab the symbols.
6732 nlist=conftest.nm
6733 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6734 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6735 # Try sorting and uniquifying the output.
6736 if sort "$nlist" | uniq > "$nlist"T; then
6737 mv -f "$nlist"T "$nlist"
6738 else
6739 rm -f "$nlist"T
6740 fi
6741
6742 # Make sure that we snagged all the symbols we need.
6743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6745 cat <<_LT_EOF > conftest.$ac_ext
6746/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6747#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6748/* DATA imports from DLLs on WIN32 can't be const, because runtime
6749 relocations are performed -- see ld's documentation on pseudo-relocs. */
6750# define LT_DLSYM_CONST
6751#elif defined __osf__
6752/* This system does not cope well with relocations in const data. */
6753# define LT_DLSYM_CONST
6754#else
6755# define LT_DLSYM_CONST const
6756#endif
6757
6758#ifdef __cplusplus
6759extern "C" {
6760#endif
6761
6762_LT_EOF
6763 # Now generate the symbol file.
6764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6765
6766 cat <<_LT_EOF >> conftest.$ac_ext
6767
6768/* The mapping between symbol names and symbols. */
6769LT_DLSYM_CONST struct {
6770 const char *name;
6771 void *address;
6772}
6773lt__PROGRAM__LTX_preloaded_symbols[] =
6774{
6775 { "@PROGRAM@", (void *) 0 },
6776_LT_EOF
6777 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6778 cat <<\_LT_EOF >> conftest.$ac_ext
6779 {0, (void *) 0}
6780};
6781
6782/* This works around a problem in FreeBSD linker */
6783#ifdef FREEBSD_WORKAROUND
6784static const void *lt_preloaded_setup() {
6785 return lt__PROGRAM__LTX_preloaded_symbols;
6786}
6787#endif
6788
6789#ifdef __cplusplus
6790}
6791#endif
6792_LT_EOF
6793 # Now try linking the two files.
6794 mv conftest.$ac_objext conftstm.$ac_objext
6795 lt_globsym_save_LIBS=$LIBS
6796 lt_globsym_save_CFLAGS=$CFLAGS
6797 LIBS=conftstm.$ac_objext
6798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6800 (eval $ac_link) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6804 pipe_works=yes
6805 fi
6806 LIBS=$lt_globsym_save_LIBS
6807 CFLAGS=$lt_globsym_save_CFLAGS
6808 else
6809 echo "cannot find nm_test_func in $nlist" >&5
6810 fi
6811 else
6812 echo "cannot find nm_test_var in $nlist" >&5
6813 fi
6814 else
6815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6816 fi
6817 else
6818 echo "$progname: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6820 fi
6821 rm -rf conftest* conftst*
6822
6823 # Do not use the global_symbol_pipe unless it works.
6824 if test yes = "$pipe_works"; then
6825 break
6826 else
6827 lt_cv_sys_global_symbol_pipe=
6828 fi
6829done
6830
6831fi
6832
6833if test -z "$lt_cv_sys_global_symbol_pipe"; then
6834 lt_cv_sys_global_symbol_to_cdecl=
6835fi
6836if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6838$as_echo "failed" >&6; }
6839else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6841$as_echo "ok" >&6; }
6842fi
6843
6844# Response file support.
6845if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6846 nm_file_list_spec='@'
6847elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6848 nm_file_list_spec='@'
6849fi
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
6886
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6888$as_echo_n "checking for sysroot... " >&6; }
6889
6890# Check whether --with-sysroot was given.
6891if test "${with_sysroot+set}" = set; then :
6892 withval=$with_sysroot;
6893else
6894 with_sysroot=no
6895fi
6896
6897
6898lt_sysroot=
6899case $with_sysroot in #(
6900 yes)
6901 if test yes = "$GCC"; then
6902 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6903 fi
6904 ;; #(
6905 /*)
6906 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6907 ;; #(
6908 no|'')
6909 ;; #(
6910 *)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6912$as_echo "$with_sysroot" >&6; }
6913 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6914 ;;
6915esac
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6918$as_echo "${lt_sysroot:-no}" >&6; }
6919
6920
6921
6922
6923
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6925$as_echo_n "checking for a working dd... " >&6; }
6926if ${ac_cv_path_lt_DD+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928else
6929 printf 0123456789abcdef0123456789abcdef >conftest.i
6930cat conftest.i conftest.i >conftest2.i
6931: ${lt_DD:=$DD}
6932if test -z "$lt_DD"; then
6933 ac_path_lt_DD_found=false
6934 # Loop through the user's path and test for each of PROGNAME-LIST
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_prog in dd; do
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6943 as_fn_executable_p "$ac_path_lt_DD" || continue
6944if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6945 cmp -s conftest.i conftest.out \
6946 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6947fi
6948 $ac_path_lt_DD_found && break 3
6949 done
6950 done
6951 done
6952IFS=$as_save_IFS
6953 if test -z "$ac_cv_path_lt_DD"; then
6954 :
6955 fi
6956else
6957 ac_cv_path_lt_DD=$lt_DD
6958fi
6959
6960rm -f conftest.i conftest2.i conftest.out
6961fi
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6963$as_echo "$ac_cv_path_lt_DD" >&6; }
6964
6965
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6967$as_echo_n "checking how to truncate binary pipes... " >&6; }
6968if ${lt_cv_truncate_bin+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970else
6971 printf 0123456789abcdef0123456789abcdef >conftest.i
6972cat conftest.i conftest.i >conftest2.i
6973lt_cv_truncate_bin=
6974if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6975 cmp -s conftest.i conftest.out \
6976 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6977fi
6978rm -f conftest.i conftest2.i conftest.out
6979test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6982$as_echo "$lt_cv_truncate_bin" >&6; }
6983
6984
6985
6986
6987
6988
6989
6990# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6991func_cc_basename ()
6992{
6993 for cc_temp in $*""; do
6994 case $cc_temp in
6995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6997 \-*) ;;
6998 *) break;;
6999 esac
7000 done
7001 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7002}
7003
7004# Check whether --enable-libtool-lock was given.
7005if test "${enable_libtool_lock+set}" = set; then :
7006 enableval=$enable_libtool_lock;
7007fi
7008
7009test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7010
7011# Some flags need to be propagated to the compiler or linker for good
7012# libtool support.
7013case $host in
7014ia64-*-hpux*)
7015 # Find out what ABI is being produced by ac_compile, and set mode
7016 # options accordingly.
7017 echo 'int i;' > conftest.$ac_ext
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7019 (eval $ac_compile) 2>&5
7020 ac_status=$?
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; }; then
7023 case `/usr/bin/file conftest.$ac_objext` in
7024 *ELF-32*)
7025 HPUX_IA64_MODE=32
7026 ;;
7027 *ELF-64*)
7028 HPUX_IA64_MODE=64
7029 ;;
7030 esac
7031 fi
7032 rm -rf conftest*
7033 ;;
7034*-*-irix6*)
7035 # Find out what ABI is being produced by ac_compile, and set linker
7036 # options accordingly.
7037 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039 (eval $ac_compile) 2>&5
7040 ac_status=$?
7041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; then
7043 if test yes = "$lt_cv_prog_gnu_ld"; then
7044 case `/usr/bin/file conftest.$ac_objext` in
7045 *32-bit*)
7046 LD="${LD-ld} -melf32bsmip"
7047 ;;
7048 *N32*)
7049 LD="${LD-ld} -melf32bmipn32"
7050 ;;
7051 *64-bit*)
7052 LD="${LD-ld} -melf64bmip"
7053 ;;
7054 esac
7055 else
7056 case `/usr/bin/file conftest.$ac_objext` in
7057 *32-bit*)
7058 LD="${LD-ld} -32"
7059 ;;
7060 *N32*)
7061 LD="${LD-ld} -n32"
7062 ;;
7063 *64-bit*)
7064 LD="${LD-ld} -64"
7065 ;;
7066 esac
7067 fi
7068 fi
7069 rm -rf conftest*
7070 ;;
7071
7072mips64*-*linux*)
7073 # Find out what ABI is being produced by ac_compile, and set linker
7074 # options accordingly.
7075 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }; then
7081 emul=elf
7082 case `/usr/bin/file conftest.$ac_objext` in
7083 *32-bit*)
7084 emul="${emul}32"
7085 ;;
7086 *64-bit*)
7087 emul="${emul}64"
7088 ;;
7089 esac
7090 case `/usr/bin/file conftest.$ac_objext` in
7091 *MSB*)
7092 emul="${emul}btsmip"
7093 ;;
7094 *LSB*)
7095 emul="${emul}ltsmip"
7096 ;;
7097 esac
7098 case `/usr/bin/file conftest.$ac_objext` in
7099 *N32*)
7100 emul="${emul}n32"
7101 ;;
7102 esac
7103 LD="${LD-ld} -m $emul"
7104 fi
7105 rm -rf conftest*
7106 ;;
7107
7108x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7109s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7110 # Find out what ABI is being produced by ac_compile, and set linker
7111 # options accordingly. Note that the listed cases only cover the
7112 # situations where additional linker options are needed (such as when
7113 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7114 # vice versa); the common cases where no linker options are needed do
7115 # not appear in the list.
7116 echo 'int i;' > conftest.$ac_ext
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118 (eval $ac_compile) 2>&5
7119 ac_status=$?
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 case `/usr/bin/file conftest.o` in
7123 *32-bit*)
7124 case $host in
7125 x86_64-*kfreebsd*-gnu)
7126 LD="${LD-ld} -m elf_i386_fbsd"
7127 ;;
7128 x86_64-*linux*)
7129 case `/usr/bin/file conftest.o` in
7130 *x86-64*)
7131 LD="${LD-ld} -m elf32_x86_64"
7132 ;;
7133 *)
7134 LD="${LD-ld} -m elf_i386"
7135 ;;
7136 esac
7137 ;;
7138 powerpc64le-*linux*)
7139 LD="${LD-ld} -m elf32lppclinux"
7140 ;;
7141 powerpc64-*linux*)
7142 LD="${LD-ld} -m elf32ppclinux"
7143 ;;
7144 s390x-*linux*)
7145 LD="${LD-ld} -m elf_s390"
7146 ;;
7147 sparc64-*linux*)
7148 LD="${LD-ld} -m elf32_sparc"
7149 ;;
7150 esac
7151 ;;
7152 *64-bit*)
7153 case $host in
7154 x86_64-*kfreebsd*-gnu)
7155 LD="${LD-ld} -m elf_x86_64_fbsd"
7156 ;;
7157 x86_64-*linux*)
7158 LD="${LD-ld} -m elf_x86_64"
7159 ;;
7160 powerpcle-*linux*)
7161 LD="${LD-ld} -m elf64lppc"
7162 ;;
7163 powerpc-*linux*)
7164 LD="${LD-ld} -m elf64ppc"
7165 ;;
7166 s390*-*linux*|s390*-*tpf*)
7167 LD="${LD-ld} -m elf64_s390"
7168 ;;
7169 sparc*-*linux*)
7170 LD="${LD-ld} -m elf64_sparc"
7171 ;;
7172 esac
7173 ;;
7174 esac
7175 fi
7176 rm -rf conftest*
7177 ;;
7178
7179*-*-sco3.2v5*)
7180 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7181 SAVE_CFLAGS=$CFLAGS
7182 CFLAGS="$CFLAGS -belf"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7184$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7185if ${lt_cv_cc_needs_belf+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187else
7188 ac_ext=c
7189ac_cpp='$CPP $CPPFLAGS'
7190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197int
7198main ()
7199{
7200
7201 ;
7202 return 0;
7203}
7204_ACEOF
7205if ac_fn_c_try_link "$LINENO"; then :
7206 lt_cv_cc_needs_belf=yes
7207else
7208 lt_cv_cc_needs_belf=no
7209fi
7210rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7220$as_echo "$lt_cv_cc_needs_belf" >&6; }
7221 if test yes != "$lt_cv_cc_needs_belf"; then
7222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7223 CFLAGS=$SAVE_CFLAGS
7224 fi
7225 ;;
7226*-*solaris*)
7227 # Find out what ABI is being produced by ac_compile, and set linker
7228 # options accordingly.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `/usr/bin/file conftest.o` in
7236 *64-bit*)
7237 case $lt_cv_prog_gnu_ld in
7238 yes*)
7239 case $host in
7240 i?86-*-solaris*|x86_64-*-solaris*)
7241 LD="${LD-ld} -m elf_x86_64"
7242 ;;
7243 sparc*-*-solaris*)
7244 LD="${LD-ld} -m elf64_sparc"
7245 ;;
7246 esac
7247 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7248 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7249 LD=${LD-ld}_sol2
7250 fi
7251 ;;
7252 *)
7253 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7254 LD="${LD-ld} -64"
7255 fi
7256 ;;
7257 esac
7258 ;;
7259 esac
7260 fi
7261 rm -rf conftest*
7262 ;;
7263esac
7264
7265need_locks=$enable_libtool_lock
7266
7267if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7269set dummy ${ac_tool_prefix}mt; ac_word=$2
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271$as_echo_n "checking for $ac_word... " >&6; }
7272if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274else
7275 if test -n "$MANIFEST_TOOL"; then
7276 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290 done
7291IFS=$as_save_IFS
7292
7293fi
7294fi
7295MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7296if test -n "$MANIFEST_TOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7298$as_echo "$MANIFEST_TOOL" >&6; }
7299else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
7302fi
7303
7304
7305fi
7306if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7307 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7308 # Extract the first word of "mt", so it can be a program name with args.
7309set dummy mt; ac_word=$2
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311$as_echo_n "checking for $ac_word... " >&6; }
7312if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314else
7315 if test -n "$ac_ct_MANIFEST_TOOL"; then
7316 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7317else
7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330 done
7331IFS=$as_save_IFS
7332
7333fi
7334fi
7335ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7336if test -n "$ac_ct_MANIFEST_TOOL"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7338$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7339else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341$as_echo "no" >&6; }
7342fi
7343
7344 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7345 MANIFEST_TOOL=":"
7346 else
7347 case $cross_compiling:$ac_tool_warned in
7348yes:)
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351ac_tool_warned=yes ;;
7352esac
7353 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7354 fi
7355else
7356 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7357fi
7358
7359test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7361$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7362if ${lt_cv_path_mainfest_tool+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364else
7365 lt_cv_path_mainfest_tool=no
7366 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7367 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7368 cat conftest.err >&5
7369 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7370 lt_cv_path_mainfest_tool=yes
7371 fi
7372 rm -f conftest*
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7375$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7376if test yes != "$lt_cv_path_mainfest_tool"; then
7377 MANIFEST_TOOL=:
7378fi
7379
7380
7381
7382
7383
7384
7385 case $host_os in
7386 rhapsody* | darwin*)
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7389set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_prog_DSYMUTIL+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394else
7395 if test -n "$DSYMUTIL"; then
7396 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 break 2
7408 fi
7409done
7410 done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415DSYMUTIL=$ac_cv_prog_DSYMUTIL
7416if test -n "$DSYMUTIL"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7418$as_echo "$DSYMUTIL" >&6; }
7419else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424
7425fi
7426if test -z "$ac_cv_prog_DSYMUTIL"; then
7427 ac_ct_DSYMUTIL=$DSYMUTIL
7428 # Extract the first word of "dsymutil", so it can be a program name with args.
7429set dummy dsymutil; ac_word=$2
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434else
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450 done
7451IFS=$as_save_IFS
7452
7453fi
7454fi
7455ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7456if test -n "$ac_ct_DSYMUTIL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7458$as_echo "$ac_ct_DSYMUTIL" >&6; }
7459else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464 if test "x$ac_ct_DSYMUTIL" = x; then
7465 DSYMUTIL=":"
7466 else
7467 case $cross_compiling:$ac_tool_warned in
7468yes:)
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471ac_tool_warned=yes ;;
7472esac
7473 DSYMUTIL=$ac_ct_DSYMUTIL
7474 fi
7475else
7476 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7477fi
7478
7479 if test -n "$ac_tool_prefix"; then
7480 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7481set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
7484if ${ac_cv_prog_NMEDIT+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486else
7487 if test -n "$NMEDIT"; then
7488 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7489else
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502 done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507NMEDIT=$ac_cv_prog_NMEDIT
7508if test -n "$NMEDIT"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7510$as_echo "$NMEDIT" >&6; }
7511else
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514fi
7515
7516
7517fi
7518if test -z "$ac_cv_prog_NMEDIT"; then
7519 ac_ct_NMEDIT=$NMEDIT
7520 # Extract the first word of "nmedit", so it can be a program name with args.
7521set dummy nmedit; 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; }
7524if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526else
7527 if test -n "$ac_ct_NMEDIT"; then
7528 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541done
7542 done
7543IFS=$as_save_IFS
7544
7545fi
7546fi
7547ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7548if test -n "$ac_ct_NMEDIT"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7550$as_echo "$ac_ct_NMEDIT" >&6; }
7551else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
7554fi
7555
7556 if test "x$ac_ct_NMEDIT" = x; then
7557 NMEDIT=":"
7558 else
7559 case $cross_compiling:$ac_tool_warned in
7560yes:)
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563ac_tool_warned=yes ;;
7564esac
7565 NMEDIT=$ac_ct_NMEDIT
7566 fi
7567else
7568 NMEDIT="$ac_cv_prog_NMEDIT"
7569fi
7570
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7573set dummy ${ac_tool_prefix}lipo; ac_word=$2
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
7576if ${ac_cv_prog_LIPO+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578else
7579 if test -n "$LIPO"; then
7580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7581else
7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593done
7594 done
7595IFS=$as_save_IFS
7596
7597fi
7598fi
7599LIPO=$ac_cv_prog_LIPO
7600if test -n "$LIPO"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7602$as_echo "$LIPO" >&6; }
7603else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
7606fi
7607
7608
7609fi
7610if test -z "$ac_cv_prog_LIPO"; then
7611 ac_ct_LIPO=$LIPO
7612 # Extract the first word of "lipo", so it can be a program name with args.
7613set dummy lipo; 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; }
7616if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618else
7619 if test -n "$ac_ct_LIPO"; then
7620 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7621else
7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_LIPO="lipo"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633done
7634 done
7635IFS=$as_save_IFS
7636
7637fi
7638fi
7639ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7640if test -n "$ac_ct_LIPO"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7642$as_echo "$ac_ct_LIPO" >&6; }
7643else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }
7646fi
7647
7648 if test "x$ac_ct_LIPO" = x; then
7649 LIPO=":"
7650 else
7651 case $cross_compiling:$ac_tool_warned in
7652yes:)
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655ac_tool_warned=yes ;;
7656esac
7657 LIPO=$ac_ct_LIPO
7658 fi
7659else
7660 LIPO="$ac_cv_prog_LIPO"
7661fi
7662
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7665set dummy ${ac_tool_prefix}otool; ac_word=$2
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
7668if ${ac_cv_prog_OTOOL+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670else
7671 if test -n "$OTOOL"; then
7672 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685done
7686 done
7687IFS=$as_save_IFS
7688
7689fi
7690fi
7691OTOOL=$ac_cv_prog_OTOOL
7692if test -n "$OTOOL"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7694$as_echo "$OTOOL" >&6; }
7695else
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698fi
7699
7700
7701fi
7702if test -z "$ac_cv_prog_OTOOL"; then
7703 ac_ct_OTOOL=$OTOOL
7704 # Extract the first word of "otool", so it can be a program name with args.
7705set dummy otool; 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; }
7708if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710else
7711 if test -n "$ac_ct_OTOOL"; then
7712 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_ac_ct_OTOOL="otool"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726 done
7727IFS=$as_save_IFS
7728
7729fi
7730fi
7731ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7732if test -n "$ac_ct_OTOOL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7734$as_echo "$ac_ct_OTOOL" >&6; }
7735else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739
7740 if test "x$ac_ct_OTOOL" = x; then
7741 OTOOL=":"
7742 else
7743 case $cross_compiling:$ac_tool_warned in
7744yes:)
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7747ac_tool_warned=yes ;;
7748esac
7749 OTOOL=$ac_ct_OTOOL
7750 fi
7751else
7752 OTOOL="$ac_cv_prog_OTOOL"
7753fi
7754
7755 if test -n "$ac_tool_prefix"; then
7756 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7757set dummy ${ac_tool_prefix}otool64; ac_word=$2
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759$as_echo_n "checking for $ac_word... " >&6; }
7760if ${ac_cv_prog_OTOOL64+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762else
7763 if test -n "$OTOOL64"; then
7764 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778 done
7779IFS=$as_save_IFS
7780
7781fi
7782fi
7783OTOOL64=$ac_cv_prog_OTOOL64
7784if test -n "$OTOOL64"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7786$as_echo "$OTOOL64" >&6; }
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789$as_echo "no" >&6; }
7790fi
7791
7792
7793fi
7794if test -z "$ac_cv_prog_OTOOL64"; then
7795 ac_ct_OTOOL64=$OTOOL64
7796 # Extract the first word of "otool64", so it can be a program name with args.
7797set dummy otool64; 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; }
7800if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802else
7803 if test -n "$ac_ct_OTOOL64"; then
7804 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_OTOOL64="otool64"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817done
7818 done
7819IFS=$as_save_IFS
7820
7821fi
7822fi
7823ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7824if test -n "$ac_ct_OTOOL64"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7826$as_echo "$ac_ct_OTOOL64" >&6; }
7827else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830fi
7831
7832 if test "x$ac_ct_OTOOL64" = x; then
7833 OTOOL64=":"
7834 else
7835 case $cross_compiling:$ac_tool_warned in
7836yes:)
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839ac_tool_warned=yes ;;
7840esac
7841 OTOOL64=$ac_ct_OTOOL64
7842 fi
7843else
7844 OTOOL64="$ac_cv_prog_OTOOL64"
7845fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7874$as_echo_n "checking for -single_module linker flag... " >&6; }
7875if ${lt_cv_apple_cc_single_mod+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877else
7878 lt_cv_apple_cc_single_mod=no
7879 if test -z "$LT_MULTI_MODULE"; then
7880 # By default we will add the -single_module flag. You can override
7881 # by either setting the environment variable LT_MULTI_MODULE
7882 # non-empty at configure time, or by adding -multi_module to the
7883 # link flags.
7884 rm -rf libconftest.dylib*
7885 echo "int foo(void){return 1;}" > conftest.c
7886 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7887-dynamiclib -Wl,-single_module conftest.c" >&5
7888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7890 _lt_result=$?
7891 # If there is a non-empty error log, and "single_module"
7892 # appears in it, assume the flag caused a linker warning
7893 if test -s conftest.err && $GREP single_module conftest.err; then
7894 cat conftest.err >&5
7895 # Otherwise, if the output was created with a 0 exit code from
7896 # the compiler, it worked.
7897 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7898 lt_cv_apple_cc_single_mod=yes
7899 else
7900 cat conftest.err >&5
7901 fi
7902 rm -rf libconftest.dylib*
7903 rm -f conftest.*
7904 fi
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7907$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7910$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7911if ${lt_cv_ld_exported_symbols_list+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913else
7914 lt_cv_ld_exported_symbols_list=no
7915 save_LDFLAGS=$LDFLAGS
7916 echo "_main" > conftest.sym
7917 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h. */
7920
7921int
7922main ()
7923{
7924
7925 ;
7926 return 0;
7927}
7928_ACEOF
7929if ac_fn_c_try_link "$LINENO"; then :
7930 lt_cv_ld_exported_symbols_list=yes
7931else
7932 lt_cv_ld_exported_symbols_list=no
7933fi
7934rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LDFLAGS=$save_LDFLAGS
7937
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7940$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7941
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7943$as_echo_n "checking for -force_load linker flag... " >&6; }
7944if ${lt_cv_ld_force_load+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946else
7947 lt_cv_ld_force_load=no
7948 cat > conftest.c << _LT_EOF
7949int forced_loaded() { return 2;}
7950_LT_EOF
7951 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7952 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7953 echo "$AR cr libconftest.a conftest.o" >&5
7954 $AR cr libconftest.a conftest.o 2>&5
7955 echo "$RANLIB libconftest.a" >&5
7956 $RANLIB libconftest.a 2>&5
7957 cat > conftest.c << _LT_EOF
7958int main() { return 0;}
7959_LT_EOF
7960 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7961 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7962 _lt_result=$?
7963 if test -s conftest.err && $GREP force_load conftest.err; then
7964 cat conftest.err >&5
7965 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7966 lt_cv_ld_force_load=yes
7967 else
7968 cat conftest.err >&5
7969 fi
7970 rm -f conftest.err libconftest.a conftest conftest.c
7971 rm -rf conftest.dSYM
7972
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7975$as_echo "$lt_cv_ld_force_load" >&6; }
7976 case $host_os in
7977 rhapsody* | darwin1.[012])
7978 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7979 darwin1.*)
7980 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7981 darwin*) # darwin 5.x on
7982 # if running on 10.5 or later, the deployment target defaults
7983 # to the OS version, if on x86, and 10.4, the deployment
7984 # target defaults to 10.4. Don't you love it?
7985 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7986 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7987 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7988 10.[012][,.]*)
7989 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7990 10.*)
7991 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7992 esac
7993 ;;
7994 esac
7995 if test yes = "$lt_cv_apple_cc_single_mod"; then
7996 _lt_dar_single_mod='$single_module'
7997 fi
7998 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7999 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8000 else
8001 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8002 fi
8003 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8004 _lt_dsymutil='~$DSYMUTIL $lib || :'
8005 else
8006 _lt_dsymutil=
8007 fi
8008 ;;
8009 esac
8010
8011# func_munge_path_list VARIABLE PATH
8012# -----------------------------------
8013# VARIABLE is name of variable containing _space_ separated list of
8014# directories to be munged by the contents of PATH, which is string
8015# having a format:
8016# "DIR[:DIR]:"
8017# string "DIR[ DIR]" will be prepended to VARIABLE
8018# ":DIR[:DIR]"
8019# string "DIR[ DIR]" will be appended to VARIABLE
8020# "DIRP[:DIRP]::[DIRA:]DIRA"
8021# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8022# "DIRA[ DIRA]" will be appended to VARIABLE
8023# "DIR[:DIR]"
8024# VARIABLE will be replaced by "DIR[ DIR]"
8025func_munge_path_list ()
8026{
8027 case x$2 in
8028 x)
8029 ;;
8030 *:)
8031 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8032 ;;
8033 x:*)
8034 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8035 ;;
8036 *::*)
8037 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8038 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8039 ;;
8040 *)
8041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8042 ;;
8043 esac
8044}
8045
8046
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8048$as_echo_n "checking for ANSI C header files... " >&6; }
8049if ${ac_cv_header_stdc+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h. */
8054#include <stdlib.h>
8055#include <stdarg.h>
8056#include <string.h>
8057#include <float.h>
8058
8059int
8060main ()
8061{
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_header_stdc=yes
8069else
8070 ac_cv_header_stdc=no
8071fi
8072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073
8074if test $ac_cv_header_stdc = yes; then
8075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h. */
8078#include <string.h>
8079
8080_ACEOF
8081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "memchr" >/dev/null 2>&1; then :
8083
8084else
8085 ac_cv_header_stdc=no
8086fi
8087rm -f conftest*
8088
8089fi
8090
8091if test $ac_cv_header_stdc = yes; then
8092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h. */
8095#include <stdlib.h>
8096
8097_ACEOF
8098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "free" >/dev/null 2>&1; then :
8100
8101else
8102 ac_cv_header_stdc=no
8103fi
8104rm -f conftest*
8105
8106fi
8107
8108if test $ac_cv_header_stdc = yes; then
8109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110 if test "$cross_compiling" = yes; then :
8111 :
8112else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h. */
8115#include <ctype.h>
8116#include <stdlib.h>
8117#if ((' ' & 0x0FF) == 0x020)
8118# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8119# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8120#else
8121# define ISLOWER(c) \
8122 (('a' <= (c) && (c) <= 'i') \
8123 || ('j' <= (c) && (c) <= 'r') \
8124 || ('s' <= (c) && (c) <= 'z'))
8125# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8126#endif
8127
8128#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8129int
8130main ()
8131{
8132 int i;
8133 for (i = 0; i < 256; i++)
8134 if (XOR (islower (i), ISLOWER (i))
8135 || toupper (i) != TOUPPER (i))
8136 return 2;
8137 return 0;
8138}
8139_ACEOF
8140if ac_fn_c_try_run "$LINENO"; then :
8141
8142else
8143 ac_cv_header_stdc=no
8144fi
8145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 conftest.$ac_objext conftest.beam conftest.$ac_ext
8147fi
8148
8149fi
8150fi
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8152$as_echo "$ac_cv_header_stdc" >&6; }
8153if test $ac_cv_header_stdc = yes; then
8154
8155$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8156
8157fi
8158
8159# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8160for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8161 inttypes.h stdint.h unistd.h
8162do :
8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8165"
8166if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8167 cat >>confdefs.h <<_ACEOF
8168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169_ACEOF
8170
8171fi
8172
8173done
8174
8175
8176for ac_header in dlfcn.h
8177do :
8178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8179"
8180if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8181 cat >>confdefs.h <<_ACEOF
8182#define HAVE_DLFCN_H 1
8183_ACEOF
8184
8185fi
8186
8187done
8188
8189
8190
8191
8192
8193# Set options
8194
8195
8196
8197 enable_dlopen=no
8198
8199
8200
8201 # Check whether --enable-shared was given.
8202if test "${enable_shared+set}" = set; then :
8203 enableval=$enable_shared; p=${PACKAGE-default}
8204 case $enableval in
8205 yes) enable_shared=yes ;;
8206 no) enable_shared=no ;;
8207 *)
8208 enable_shared=no
8209 # Look at the argument we got. We use all the common list separators.
8210 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8211 for pkg in $enableval; do
8212 IFS=$lt_save_ifs
8213 if test "X$pkg" = "X$p"; then
8214 enable_shared=yes
8215 fi
8216 done
8217 IFS=$lt_save_ifs
8218 ;;
8219 esac
8220else
8221 enable_shared=yes
8222fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 # Check whether --enable-static was given.
8233if test "${enable_static+set}" = set; then :
8234 enableval=$enable_static; p=${PACKAGE-default}
8235 case $enableval in
8236 yes) enable_static=yes ;;
8237 no) enable_static=no ;;
8238 *)
8239 enable_static=no
8240 # Look at the argument we got. We use all the common list separators.
8241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8242 for pkg in $enableval; do
8243 IFS=$lt_save_ifs
8244 if test "X$pkg" = "X$p"; then
8245 enable_static=yes
8246 fi
8247 done
8248 IFS=$lt_save_ifs
8249 ;;
8250 esac
8251else
8252 enable_static=yes
8253fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264# Check whether --with-pic was given.
8265if test "${with_pic+set}" = set; then :
8266 withval=$with_pic; lt_p=${PACKAGE-default}
8267 case $withval in
8268 yes|no) pic_mode=$withval ;;
8269 *)
8270 pic_mode=default
8271 # Look at the argument we got. We use all the common list separators.
8272 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8273 for lt_pkg in $withval; do
8274 IFS=$lt_save_ifs
8275 if test "X$lt_pkg" = "X$lt_p"; then
8276 pic_mode=yes
8277 fi
8278 done
8279 IFS=$lt_save_ifs
8280 ;;
8281 esac
8282else
8283 pic_mode=default
8284fi
8285
8286
8287
8288
8289
8290
8291
8292
8293 # Check whether --enable-fast-install was given.
8294if test "${enable_fast_install+set}" = set; then :
8295 enableval=$enable_fast_install; p=${PACKAGE-default}
8296 case $enableval in
8297 yes) enable_fast_install=yes ;;
8298 no) enable_fast_install=no ;;
8299 *)
8300 enable_fast_install=no
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8303 for pkg in $enableval; do
8304 IFS=$lt_save_ifs
8305 if test "X$pkg" = "X$p"; then
8306 enable_fast_install=yes
8307 fi
8308 done
8309 IFS=$lt_save_ifs
8310 ;;
8311 esac
8312else
8313 enable_fast_install=yes
8314fi
8315
8316
8317
8318
8319
8320
8321
8322
8323 shared_archive_member_spec=
8324case $host,$enable_shared in
8325power*-*-aix[5-9]*,yes)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8327$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8328
8329# Check whether --with-aix-soname was given.
8330if test "${with_aix_soname+set}" = set; then :
8331 withval=$with_aix_soname; case $withval in
8332 aix|svr4|both)
8333 ;;
8334 *)
8335 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8336 ;;
8337 esac
8338 lt_cv_with_aix_soname=$with_aix_soname
8339else
8340 if ${lt_cv_with_aix_soname+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 lt_cv_with_aix_soname=aix
8344fi
8345
8346 with_aix_soname=$lt_cv_with_aix_soname
8347fi
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8350$as_echo "$with_aix_soname" >&6; }
8351 if test aix != "$with_aix_soname"; then
8352 # For the AIX way of multilib, we name the shared archive member
8353 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8354 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8355 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8356 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8357 if test 64 = "${OBJECT_MODE-32}"; then
8358 shared_archive_member_spec=shr_64
8359 else
8360 shared_archive_member_spec=shr
8361 fi
8362 fi
8363 ;;
8364*)
8365 with_aix_soname=aix
8366 ;;
8367esac
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378# This can be used to rebuild libtool when needed
8379LIBTOOL_DEPS=$ltmain
8380
8381# Always use our own libtool.
8382LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413test -z "$LN_S" && LN_S="ln -s"
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428if test -n "${ZSH_VERSION+set}"; then
8429 setopt NO_GLOB_SUBST
8430fi
8431
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8433$as_echo_n "checking for objdir... " >&6; }
8434if ${lt_cv_objdir+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436else
8437 rm -f .libs 2>/dev/null
8438mkdir .libs 2>/dev/null
8439if test -d .libs; then
8440 lt_cv_objdir=.libs
8441else
8442 # MS-DOS does not allow filenames that begin with a dot.
8443 lt_cv_objdir=_libs
8444fi
8445rmdir .libs 2>/dev/null
8446fi
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8448$as_echo "$lt_cv_objdir" >&6; }
8449objdir=$lt_cv_objdir
8450
8451
8452
8453
8454
8455cat >>confdefs.h <<_ACEOF
8456#define LT_OBJDIR "$lt_cv_objdir/"
8457_ACEOF
8458
8459
8460
8461
8462case $host_os in
8463aix3*)
8464 # AIX sometimes has problems with the GCC collect2 program. For some
8465 # reason, if we set the COLLECT_NAMES environment variable, the problems
8466 # vanish in a puff of smoke.
8467 if test set != "${COLLECT_NAMES+set}"; then
8468 COLLECT_NAMES=
8469 export COLLECT_NAMES
8470 fi
8471 ;;
8472esac
8473
8474# Global variables:
8475ofile=libtool
8476can_build_shared=yes
8477
8478# All known linkers require a '.a' archive for static linking (except MSVC,
8479# which needs '.lib').
8480libext=a
8481
8482with_gnu_ld=$lt_cv_prog_gnu_ld
8483
8484old_CC=$CC
8485old_CFLAGS=$CFLAGS
8486
8487# Set sane defaults for various variables
8488test -z "$CC" && CC=cc
8489test -z "$LTCC" && LTCC=$CC
8490test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8491test -z "$LD" && LD=ld
8492test -z "$ac_objext" && ac_objext=o
8493
8494func_cc_basename $compiler
8495cc_basename=$func_cc_basename_result
8496
8497
8498# Only perform the check for file, if the check method requires it
8499test -z "$MAGIC_CMD" && MAGIC_CMD=file
8500case $deplibs_check_method in
8501file_magic*)
8502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8504$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8505if ${lt_cv_path_MAGIC_CMD+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507else
8508 case $MAGIC_CMD in
8509[\\/*] | ?:[\\/]*)
8510 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8511 ;;
8512*)
8513 lt_save_MAGIC_CMD=$MAGIC_CMD
8514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8516 for ac_dir in $ac_dummy; do
8517 IFS=$lt_save_ifs
8518 test -z "$ac_dir" && ac_dir=.
8519 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8520 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8521 if test -n "$file_magic_test_file"; then
8522 case $deplibs_check_method in
8523 "file_magic "*)
8524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8527 $EGREP "$file_magic_regex" > /dev/null; then
8528 :
8529 else
8530 cat <<_LT_EOF 1>&2
8531
8532*** Warning: the command libtool uses to detect shared libraries,
8533*** $file_magic_cmd, produces output that libtool cannot recognize.
8534*** The result is that libtool may fail to recognize shared libraries
8535*** as such. This will affect the creation of libtool libraries that
8536*** depend on shared libraries, but programs linked with such libtool
8537*** libraries will work regardless of this problem. Nevertheless, you
8538*** may want to report the problem to your system manager and/or to
8539*** bug-libtool@gnu.org
8540
8541_LT_EOF
8542 fi ;;
8543 esac
8544 fi
8545 break
8546 fi
8547 done
8548 IFS=$lt_save_ifs
8549 MAGIC_CMD=$lt_save_MAGIC_CMD
8550 ;;
8551esac
8552fi
8553
8554MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8555if test -n "$MAGIC_CMD"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8557$as_echo "$MAGIC_CMD" >&6; }
8558else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560$as_echo "no" >&6; }
8561fi
8562
8563
8564
8565
8566
8567if test -z "$lt_cv_path_MAGIC_CMD"; then
8568 if test -n "$ac_tool_prefix"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8570$as_echo_n "checking for file... " >&6; }
8571if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573else
8574 case $MAGIC_CMD in
8575[\\/*] | ?:[\\/]*)
8576 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8577 ;;
8578*)
8579 lt_save_MAGIC_CMD=$MAGIC_CMD
8580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8583 IFS=$lt_save_ifs
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f "$ac_dir/file"; then
8586 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8589 "file_magic "*)
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8594 :
8595 else
8596 cat <<_LT_EOF 1>&2
8597
8598*** Warning: the command libtool uses to detect shared libraries,
8599*** $file_magic_cmd, produces output that libtool cannot recognize.
8600*** The result is that libtool may fail to recognize shared libraries
8601*** as such. This will affect the creation of libtool libraries that
8602*** depend on shared libraries, but programs linked with such libtool
8603*** libraries will work regardless of this problem. Nevertheless, you
8604*** may want to report the problem to your system manager and/or to
8605*** bug-libtool@gnu.org
8606
8607_LT_EOF
8608 fi ;;
8609 esac
8610 fi
8611 break
8612 fi
8613 done
8614 IFS=$lt_save_ifs
8615 MAGIC_CMD=$lt_save_MAGIC_CMD
8616 ;;
8617esac
8618fi
8619
8620MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8621if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623$as_echo "$MAGIC_CMD" >&6; }
8624else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626$as_echo "no" >&6; }
8627fi
8628
8629
8630 else
8631 MAGIC_CMD=:
8632 fi
8633fi
8634
8635 fi
8636 ;;
8637esac
8638
8639# Use C for the default configuration in the libtool script
8640
8641lt_save_CC=$CC
8642ac_ext=c
8643ac_cpp='$CPP $CPPFLAGS'
8644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8646ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647
8648
8649# Source file extension for C test sources.
8650ac_ext=c
8651
8652# Object file extension for compiled C test sources.
8653objext=o
8654objext=$objext
8655
8656# Code to be used in simple compile tests
8657lt_simple_compile_test_code="int some_variable = 0;"
8658
8659# Code to be used in simple link tests
8660lt_simple_link_test_code='int main(){return(0);}'
8661
8662
8663
8664
8665
8666
8667
8668# If no C compiler was specified, use CC.
8669LTCC=${LTCC-"$CC"}
8670
8671# If no C compiler flags were specified, use CFLAGS.
8672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8673
8674# Allow CC to be a program name with arguments.
8675compiler=$CC
8676
8677# Save the default compiler, since it gets overwritten when the other
8678# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8679compiler_DEFAULT=$CC
8680
8681# save warnings/boilerplate of simple test code
8682ac_outfile=conftest.$ac_objext
8683echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8685_lt_compiler_boilerplate=`cat conftest.err`
8686$RM conftest*
8687
8688ac_outfile=conftest.$ac_objext
8689echo "$lt_simple_link_test_code" >conftest.$ac_ext
8690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8691_lt_linker_boilerplate=`cat conftest.err`
8692$RM -r conftest*
8693
8694
8695## CAVEAT EMPTOR:
8696## There is no encapsulation within the following macros, do not change
8697## the running order or otherwise move them around unless you know exactly
8698## what you are doing...
8699if test -n "$compiler"; then
8700
8701lt_prog_compiler_no_builtin_flag=
8702
8703if test yes = "$GCC"; then
8704 case $cc_basename in
8705 nvcc*)
8706 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8707 *)
8708 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8709 esac
8710
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8712$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8713if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715else
8716 lt_cv_prog_compiler_rtti_exceptions=no
8717 ac_outfile=conftest.$ac_objext
8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8719 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8720 # Insert the option either (1) after the last *FLAGS variable, or
8721 # (2) before a word containing "conftest.", or (3) at the end.
8722 # Note that $ac_compile itself does not contain backslashes and begins
8723 # with a dollar sign (not a hyphen), so the echo should work correctly.
8724 # The option is referenced via a variable to avoid confusing sed.
8725 lt_compile=`echo "$ac_compile" | $SED \
8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728 -e 's:$: $lt_compiler_flag:'`
8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8730 (eval "$lt_compile" 2>conftest.err)
8731 ac_status=$?
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 if (exit $ac_status) && test -s "$ac_outfile"; then
8735 # The compiler can only warn and ignore the option if not recognized
8736 # So say no if there are warnings other than the usual output.
8737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_rtti_exceptions=yes
8741 fi
8742 fi
8743 $RM conftest*
8744
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8747$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8748
8749if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8750 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8751else
8752 :
8753fi
8754
8755fi
8756
8757
8758
8759
8760
8761
8762 lt_prog_compiler_wl=
8763lt_prog_compiler_pic=
8764lt_prog_compiler_static=
8765
8766
8767 if test yes = "$GCC"; then
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_static='-static'
8770
8771 case $host_os in
8772 aix*)
8773 # All AIX code is PIC.
8774 if test ia64 = "$host_cpu"; then
8775 # AIX 5 now supports IA64 processor
8776 lt_prog_compiler_static='-Bstatic'
8777 fi
8778 lt_prog_compiler_pic='-fPIC'
8779 ;;
8780
8781 amigaos*)
8782 case $host_cpu in
8783 powerpc)
8784 # see comment about AmigaOS4 .so support
8785 lt_prog_compiler_pic='-fPIC'
8786 ;;
8787 m68k)
8788 # FIXME: we need at least 68020 code to build shared libraries, but
8789 # adding the '-m68020' flag to GCC prevents building anything better,
8790 # like '-m68040'.
8791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8792 ;;
8793 esac
8794 ;;
8795
8796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8797 # PIC is the default for these OSes.
8798 ;;
8799
8800 mingw* | cygwin* | pw32* | os2* | cegcc*)
8801 # This hack is so that the source file can tell whether it is being
8802 # built for inclusion in a dll (and should export symbols for example).
8803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8804 # (--disable-auto-import) libraries
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 case $host_os in
8807 os2*)
8808 lt_prog_compiler_static='$wl-static'
8809 ;;
8810 esac
8811 ;;
8812
8813 darwin* | rhapsody*)
8814 # PIC is the default on this platform
8815 # Common symbols not allowed in MH_DYLIB files
8816 lt_prog_compiler_pic='-fno-common'
8817 ;;
8818
8819 haiku*)
8820 # PIC is the default for Haiku.
8821 # The "-static" flag exists, but is broken.
8822 lt_prog_compiler_static=
8823 ;;
8824
8825 hpux*)
8826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8828 # sets the default TLS model and affects inlining.
8829 case $host_cpu in
8830 hppa*64*)
8831 # +Z the default
8832 ;;
8833 *)
8834 lt_prog_compiler_pic='-fPIC'
8835 ;;
8836 esac
8837 ;;
8838
8839 interix[3-9]*)
8840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8841 # Instead, we relocate shared libraries at runtime.
8842 ;;
8843
8844 msdosdjgpp*)
8845 # Just because we use GCC doesn't mean we suddenly get shared libraries
8846 # on systems that don't support them.
8847 lt_prog_compiler_can_build_shared=no
8848 enable_shared=no
8849 ;;
8850
8851 *nto* | *qnx*)
8852 # QNX uses GNU C++, but need to define -shared option too, otherwise
8853 # it will coredump.
8854 lt_prog_compiler_pic='-fPIC -shared'
8855 ;;
8856
8857 sysv4*MP*)
8858 if test -d /usr/nec; then
8859 lt_prog_compiler_pic=-Kconform_pic
8860 fi
8861 ;;
8862
8863 *)
8864 lt_prog_compiler_pic='-fPIC'
8865 ;;
8866 esac
8867
8868 case $cc_basename in
8869 nvcc*) # Cuda Compiler Driver 2.2
8870 lt_prog_compiler_wl='-Xlinker '
8871 if test -n "$lt_prog_compiler_pic"; then
8872 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8873 fi
8874 ;;
8875 esac
8876 else
8877 # PORTME Check for flag to pass linker flags through the system compiler.
8878 case $host_os in
8879 aix*)
8880 lt_prog_compiler_wl='-Wl,'
8881 if test ia64 = "$host_cpu"; then
8882 # AIX 5 now supports IA64 processor
8883 lt_prog_compiler_static='-Bstatic'
8884 else
8885 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8886 fi
8887 ;;
8888
8889 darwin* | rhapsody*)
8890 # PIC is the default on this platform
8891 # Common symbols not allowed in MH_DYLIB files
8892 lt_prog_compiler_pic='-fno-common'
8893 case $cc_basename in
8894 nagfor*)
8895 # NAG Fortran compiler
8896 lt_prog_compiler_wl='-Wl,-Wl,,'
8897 lt_prog_compiler_pic='-PIC'
8898 lt_prog_compiler_static='-Bstatic'
8899 ;;
8900 esac
8901 ;;
8902
8903 mingw* | cygwin* | pw32* | os2* | cegcc*)
8904 # This hack is so that the source file can tell whether it is being
8905 # built for inclusion in a dll (and should export symbols for example).
8906 lt_prog_compiler_pic='-DDLL_EXPORT'
8907 case $host_os in
8908 os2*)
8909 lt_prog_compiler_static='$wl-static'
8910 ;;
8911 esac
8912 ;;
8913
8914 hpux9* | hpux10* | hpux11*)
8915 lt_prog_compiler_wl='-Wl,'
8916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8917 # not for PA HP-UX.
8918 case $host_cpu in
8919 hppa*64*|ia64*)
8920 # +Z the default
8921 ;;
8922 *)
8923 lt_prog_compiler_pic='+Z'
8924 ;;
8925 esac
8926 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8927 lt_prog_compiler_static='$wl-a ${wl}archive'
8928 ;;
8929
8930 irix5* | irix6* | nonstopux*)
8931 lt_prog_compiler_wl='-Wl,'
8932 # PIC (with -KPIC) is the default.
8933 lt_prog_compiler_static='-non_shared'
8934 ;;
8935
8936 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8937 case $cc_basename in
8938 # old Intel for x86_64, which still supported -KPIC.
8939 ecc*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-static'
8943 ;;
8944 # flang / f18. f95 an alias for gfortran or flang on Debian
8945 flang* | f18* | f95*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-fPIC'
8948 lt_prog_compiler_static='-static'
8949 ;;
8950 # icc used to be incompatible with GCC.
8951 # ICC 10 doesn't accept -KPIC any more.
8952 icc* | ifort*)
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_pic='-fPIC'
8955 lt_prog_compiler_static='-static'
8956 ;;
8957 # Lahey Fortran 8.1.
8958 lf95*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='--shared'
8961 lt_prog_compiler_static='--static'
8962 ;;
8963 nagfor*)
8964 # NAG Fortran compiler
8965 lt_prog_compiler_wl='-Wl,-Wl,,'
8966 lt_prog_compiler_pic='-PIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 ;;
8969 tcc*)
8970 # Fabrice Bellard et al's Tiny C Compiler
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='-fPIC'
8973 lt_prog_compiler_static='-static'
8974 ;;
8975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fpic'
8980 lt_prog_compiler_static='-Bstatic'
8981 ;;
8982 ccc*)
8983 lt_prog_compiler_wl='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8986 ;;
8987 xl* | bgxl* | bgf* | mpixl*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-qpic'
8991 lt_prog_compiler_static='-qstaticlink'
8992 ;;
8993 *)
8994 case `$CC -V 2>&1 | sed 5q` in
8995 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl=''
9000 ;;
9001 *Sun\ F* | *Sun*Fortran*)
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 lt_prog_compiler_wl='-Qoption ld '
9005 ;;
9006 *Sun\ C*)
9007 # Sun C 5.9
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl='-Wl,'
9011 ;;
9012 *Intel*\ [CF]*Compiler*)
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-fPIC'
9015 lt_prog_compiler_static='-static'
9016 ;;
9017 *Portland\ Group*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-fpic'
9020 lt_prog_compiler_static='-Bstatic'
9021 ;;
9022 esac
9023 ;;
9024 esac
9025 ;;
9026
9027 newsos6)
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 ;;
9031
9032 *nto* | *qnx*)
9033 # QNX uses GNU C++, but need to define -shared option too, otherwise
9034 # it will coredump.
9035 lt_prog_compiler_pic='-fPIC -shared'
9036 ;;
9037
9038 osf3* | osf4* | osf5*)
9039 lt_prog_compiler_wl='-Wl,'
9040 # All OSF/1 code is PIC.
9041 lt_prog_compiler_static='-non_shared'
9042 ;;
9043
9044 rdos*)
9045 lt_prog_compiler_static='-non_shared'
9046 ;;
9047
9048 solaris*)
9049 lt_prog_compiler_pic='-KPIC'
9050 lt_prog_compiler_static='-Bstatic'
9051 case $cc_basename in
9052 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9053 lt_prog_compiler_wl='-Qoption ld ';;
9054 *)
9055 lt_prog_compiler_wl='-Wl,';;
9056 esac
9057 ;;
9058
9059 sunos4*)
9060 lt_prog_compiler_wl='-Qoption ld '
9061 lt_prog_compiler_pic='-PIC'
9062 lt_prog_compiler_static='-Bstatic'
9063 ;;
9064
9065 sysv4 | sysv4.2uw2* | sysv4.3*)
9066 lt_prog_compiler_wl='-Wl,'
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 ;;
9070
9071 sysv4*MP*)
9072 if test -d /usr/nec; then
9073 lt_prog_compiler_pic='-Kconform_pic'
9074 lt_prog_compiler_static='-Bstatic'
9075 fi
9076 ;;
9077
9078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9079 lt_prog_compiler_wl='-Wl,'
9080 lt_prog_compiler_pic='-KPIC'
9081 lt_prog_compiler_static='-Bstatic'
9082 ;;
9083
9084 unicos*)
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_can_build_shared=no
9087 ;;
9088
9089 uts4*)
9090 lt_prog_compiler_pic='-pic'
9091 lt_prog_compiler_static='-Bstatic'
9092 ;;
9093
9094 *)
9095 lt_prog_compiler_can_build_shared=no
9096 ;;
9097 esac
9098 fi
9099
9100case $host_os in
9101 # For platforms that do not support PIC, -DPIC is meaningless:
9102 *djgpp*)
9103 lt_prog_compiler_pic=
9104 ;;
9105 *)
9106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9107 ;;
9108esac
9109
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9111$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9112if ${lt_cv_prog_compiler_pic+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114else
9115 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9116fi
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9118$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9119lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9120
9121#
9122# Check to make sure the PIC flag actually works.
9123#
9124if test -n "$lt_prog_compiler_pic"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9126$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9127if ${lt_cv_prog_compiler_pic_works+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129else
9130 lt_cv_prog_compiler_pic_works=no
9131 ac_outfile=conftest.$ac_objext
9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9134 # Insert the option either (1) after the last *FLAGS variable, or
9135 # (2) before a word containing "conftest.", or (3) at the end.
9136 # Note that $ac_compile itself does not contain backslashes and begins
9137 # with a dollar sign (not a hyphen), so the echo should work correctly.
9138 # The option is referenced via a variable to avoid confusing sed.
9139 lt_compile=`echo "$ac_compile" | $SED \
9140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9142 -e 's:$: $lt_compiler_flag:'`
9143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9144 (eval "$lt_compile" 2>conftest.err)
9145 ac_status=$?
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 if (exit $ac_status) && test -s "$ac_outfile"; then
9149 # The compiler can only warn and ignore the option if not recognized
9150 # So say no if there are warnings other than the usual output.
9151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_pic_works=yes
9155 fi
9156 fi
9157 $RM conftest*
9158
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9161$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9162
9163if test yes = "$lt_cv_prog_compiler_pic_works"; then
9164 case $lt_prog_compiler_pic in
9165 "" | " "*) ;;
9166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9167 esac
9168else
9169 lt_prog_compiler_pic=
9170 lt_prog_compiler_can_build_shared=no
9171fi
9172
9173fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185#
9186# Check to make sure the static flag actually works.
9187#
9188wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9190$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9191if ${lt_cv_prog_compiler_static_works+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193else
9194 lt_cv_prog_compiler_static_works=no
9195 save_LDFLAGS=$LDFLAGS
9196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9199 # The linker can only warn and ignore the option if not recognized
9200 # So say no if there are warnings
9201 if test -s conftest.err; then
9202 # Append any errors to the config.log.
9203 cat conftest.err 1>&5
9204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_static_works=yes
9208 fi
9209 else
9210 lt_cv_prog_compiler_static_works=yes
9211 fi
9212 fi
9213 $RM -r conftest*
9214 LDFLAGS=$save_LDFLAGS
9215
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9218$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9219
9220if test yes = "$lt_cv_prog_compiler_static_works"; then
9221 :
9222else
9223 lt_prog_compiler_static=
9224fi
9225
9226
9227
9228
9229
9230
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9233$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9234if ${lt_cv_prog_compiler_c_o+:} false; then :
9235 $as_echo_n "(cached) " >&6
9236else
9237 lt_cv_prog_compiler_c_o=no
9238 $RM -r conftest 2>/dev/null
9239 mkdir conftest
9240 cd conftest
9241 mkdir out
9242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9243
9244 lt_compiler_flag="-o out/conftest2.$ac_objext"
9245 # Insert the option either (1) after the last *FLAGS variable, or
9246 # (2) before a word containing "conftest.", or (3) at the end.
9247 # Note that $ac_compile itself does not contain backslashes and begins
9248 # with a dollar sign (not a hyphen), so the echo should work correctly.
9249 lt_compile=`echo "$ac_compile" | $SED \
9250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9252 -e 's:$: $lt_compiler_flag:'`
9253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9254 (eval "$lt_compile" 2>out/conftest.err)
9255 ac_status=$?
9256 cat out/conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9259 then
9260 # The compiler can only warn and ignore the option if not recognized
9261 # So say no if there are warnings
9262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler_c_o=yes
9266 fi
9267 fi
9268 chmod u+w . 2>&5
9269 $RM conftest*
9270 # SGI C++ compiler will create directory out/ii_files/ for
9271 # template instantiation
9272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9273 $RM out/* && rmdir out
9274 cd ..
9275 $RM -r conftest
9276 $RM conftest*
9277
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9280$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9281
9282
9283
9284
9285
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9288$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9289if ${lt_cv_prog_compiler_c_o+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291else
9292 lt_cv_prog_compiler_c_o=no
9293 $RM -r conftest 2>/dev/null
9294 mkdir conftest
9295 cd conftest
9296 mkdir out
9297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9298
9299 lt_compiler_flag="-o out/conftest2.$ac_objext"
9300 # Insert the option either (1) after the last *FLAGS variable, or
9301 # (2) before a word containing "conftest.", or (3) at the end.
9302 # Note that $ac_compile itself does not contain backslashes and begins
9303 # with a dollar sign (not a hyphen), so the echo should work correctly.
9304 lt_compile=`echo "$ac_compile" | $SED \
9305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9307 -e 's:$: $lt_compiler_flag:'`
9308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9309 (eval "$lt_compile" 2>out/conftest.err)
9310 ac_status=$?
9311 cat out/conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9314 then
9315 # The compiler can only warn and ignore the option if not recognized
9316 # So say no if there are warnings
9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9320 lt_cv_prog_compiler_c_o=yes
9321 fi
9322 fi
9323 chmod u+w . 2>&5
9324 $RM conftest*
9325 # SGI C++ compiler will create directory out/ii_files/ for
9326 # template instantiation
9327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9328 $RM out/* && rmdir out
9329 cd ..
9330 $RM -r conftest
9331 $RM conftest*
9332
9333fi
9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9335$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9336
9337
9338
9339
9340hard_links=nottested
9341if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9342 # do not overwrite the value of need_locks provided by the user
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9344$as_echo_n "checking if we can lock with hard links... " >&6; }
9345 hard_links=yes
9346 $RM conftest*
9347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9348 touch conftest.a
9349 ln conftest.a conftest.b 2>&5 || hard_links=no
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9352$as_echo "$hard_links" >&6; }
9353 if test no = "$hard_links"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9355$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9356 need_locks=warn
9357 fi
9358else
9359 need_locks=no
9360fi
9361
9362
9363
9364
9365
9366
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9368$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9369
9370 runpath_var=
9371 allow_undefined_flag=
9372 always_export_symbols=no
9373 archive_cmds=
9374 archive_expsym_cmds=
9375 compiler_needs_object=no
9376 enable_shared_with_static_runtimes=no
9377 export_dynamic_flag_spec=
9378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9379 hardcode_automatic=no
9380 hardcode_direct=no
9381 hardcode_direct_absolute=no
9382 hardcode_libdir_flag_spec=
9383 hardcode_libdir_separator=
9384 hardcode_minus_L=no
9385 hardcode_shlibpath_var=unsupported
9386 inherit_rpath=no
9387 link_all_deplibs=unknown
9388 module_cmds=
9389 module_expsym_cmds=
9390 old_archive_from_new_cmds=
9391 old_archive_from_expsyms_cmds=
9392 thread_safe_flag_spec=
9393 whole_archive_flag_spec=
9394 # include_expsyms should be a list of space-separated symbols to be *always*
9395 # included in the symbol list
9396 include_expsyms=
9397 # exclude_expsyms can be an extended regexp of symbols to exclude
9398 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9399 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9400 # as well as any symbol that contains 'd'.
9401 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9403 # platforms (ab)use it in PIC code, but their linkers get confused if
9404 # the symbol is explicitly referenced. Since portable code cannot
9405 # rely on this symbol name, it's probably fine to never include it in
9406 # preloaded symbol tables.
9407 # Exclude shared library initialization/finalization symbols.
9408 extract_expsyms_cmds=
9409
9410 case $host_os in
9411 cygwin* | mingw* | pw32* | cegcc*)
9412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9413 # When not using gcc, we currently assume that we are using
9414 # Microsoft Visual C++.
9415 if test yes != "$GCC"; then
9416 with_gnu_ld=no
9417 fi
9418 ;;
9419 interix*)
9420 # we just hope/assume this is gcc and not c89 (= MSVC++)
9421 with_gnu_ld=yes
9422 ;;
9423 openbsd* | bitrig*)
9424 with_gnu_ld=no
9425 ;;
9426 linux* | k*bsd*-gnu | gnu*)
9427 link_all_deplibs=no
9428 ;;
9429 esac
9430
9431 ld_shlibs=yes
9432
9433 # On some targets, GNU ld is compatible enough with the native linker
9434 # that we're better off using the native interface for both.
9435 lt_use_gnu_ld_interface=no
9436 if test yes = "$with_gnu_ld"; then
9437 case $host_os in
9438 aix*)
9439 # The AIX port of GNU ld has always aspired to compatibility
9440 # with the native linker. However, as the warning in the GNU ld
9441 # block says, versions before 2.19.5* couldn't really create working
9442 # shared libraries, regardless of the interface used.
9443 case `$LD -v 2>&1` in
9444 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9445 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9446 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9447 *)
9448 lt_use_gnu_ld_interface=yes
9449 ;;
9450 esac
9451 ;;
9452 *)
9453 lt_use_gnu_ld_interface=yes
9454 ;;
9455 esac
9456 fi
9457
9458 if test yes = "$lt_use_gnu_ld_interface"; then
9459 # If archive_cmds runs LD, not CC, wlarc should be empty
9460 wlarc='$wl'
9461
9462 # Set some defaults for GNU ld with shared library support. These
9463 # are reset later if shared libraries are not supported. Putting them
9464 # here allows them to be overridden if necessary.
9465 runpath_var=LD_RUN_PATH
9466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9467 export_dynamic_flag_spec='$wl--export-dynamic'
9468 # ancient GNU ld didn't support --whole-archive et. al.
9469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9470 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9471 else
9472 whole_archive_flag_spec=
9473 fi
9474 supports_anon_versioning=no
9475 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9476 *GNU\ gold*) supports_anon_versioning=yes ;;
9477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9480 *\ 2.11.*) ;; # other 2.11 versions
9481 *) supports_anon_versioning=yes ;;
9482 esac
9483
9484 # See if GNU ld supports shared libraries.
9485 case $host_os in
9486 aix[3-9]*)
9487 # On AIX/PPC, the GNU linker is very broken
9488 if test ia64 != "$host_cpu"; then
9489 ld_shlibs=no
9490 cat <<_LT_EOF 1>&2
9491
9492*** Warning: the GNU linker, at least up to release 2.19, is reported
9493*** to be unable to reliably create shared libraries on AIX.
9494*** Therefore, libtool is disabling shared libraries support. If you
9495*** really care for shared libraries, you may want to install binutils
9496*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9497*** You will then need to restart the configuration process.
9498
9499_LT_EOF
9500 fi
9501 ;;
9502
9503 amigaos*)
9504 case $host_cpu in
9505 powerpc)
9506 # see comment about AmigaOS4 .so support
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9508 archive_expsym_cmds=''
9509 ;;
9510 m68k)
9511 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)'
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_minus_L=yes
9514 ;;
9515 esac
9516 ;;
9517
9518 beos*)
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 allow_undefined_flag=unsupported
9521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9522 # support --undefined. This deserves some investigation. FIXME
9523 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9524 else
9525 ld_shlibs=no
9526 fi
9527 ;;
9528
9529 cygwin* | mingw* | pw32* | cegcc*)
9530 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9531 # as there is no search path for DLLs.
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 export_dynamic_flag_spec='$wl--export-all-symbols'
9534 allow_undefined_flag=unsupported
9535 always_export_symbols=no
9536 enable_shared_with_static_runtimes=yes
9537 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'
9538 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9539
9540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542 # If the export-symbols file already is a .def file, use it as
9543 # is; otherwise, prepend EXPORTS...
9544 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9545 cp $export_symbols $output_objdir/$soname.def;
9546 else
9547 echo EXPORTS > $output_objdir/$soname.def;
9548 cat $export_symbols >> $output_objdir/$soname.def;
9549 fi~
9550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9551 else
9552 ld_shlibs=no
9553 fi
9554 ;;
9555
9556 haiku*)
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558 link_all_deplibs=yes
9559 ;;
9560
9561 os2*)
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_minus_L=yes
9564 allow_undefined_flag=unsupported
9565 shrext_cmds=.dll
9566 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9569 $ECHO EXPORTS >> $output_objdir/$libname.def~
9570 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9572 emximp -o $lib $output_objdir/$libname.def'
9573 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9576 $ECHO EXPORTS >> $output_objdir/$libname.def~
9577 prefix_cmds="$SED"~
9578 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9579 prefix_cmds="$prefix_cmds -e 1d";
9580 fi~
9581 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9582 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9584 emximp -o $lib $output_objdir/$libname.def'
9585 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9586 enable_shared_with_static_runtimes=yes
9587 ;;
9588
9589 interix[3-9]*)
9590 hardcode_direct=no
9591 hardcode_shlibpath_var=no
9592 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9593 export_dynamic_flag_spec='$wl-E'
9594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9595 # Instead, shared libraries are loaded at an image base (0x10000000 by
9596 # default) and relocated if they conflict, which is a slow very memory
9597 # consuming and fragmenting process. To avoid this, we pick a random,
9598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9599 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9601 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'
9602 ;;
9603
9604 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9605 tmp_diet=no
9606 if test linux-dietlibc = "$host_os"; then
9607 case $cc_basename in
9608 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9609 esac
9610 fi
9611 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9612 && test no = "$tmp_diet"
9613 then
9614 tmp_addflag=' $pic_flag'
9615 tmp_sharedflag='-shared'
9616 case $cc_basename,$host_cpu in
9617 pgcc*) # Portland Group C compiler
9618 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'
9619 tmp_addflag=' $pic_flag'
9620 ;;
9621 pgf77* | pgf90* | pgf95* | pgfortran*)
9622 # Portland Group f77 and f90 compilers
9623 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'
9624 tmp_addflag=' $pic_flag -Mnomain' ;;
9625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9626 tmp_addflag=' -i_dynamic' ;;
9627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9628 tmp_addflag=' -i_dynamic -nofor_main' ;;
9629 ifc* | ifort*) # Intel Fortran compiler
9630 tmp_addflag=' -nofor_main' ;;
9631 lf95*) # Lahey Fortran 8.1
9632 whole_archive_flag_spec=
9633 tmp_sharedflag='--shared' ;;
9634 nagfor*) # NAGFOR 5.3
9635 tmp_sharedflag='-Wl,-shared' ;;
9636 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9637 tmp_sharedflag='-qmkshrobj'
9638 tmp_addflag= ;;
9639 nvcc*) # Cuda Compiler Driver 2.2
9640 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'
9641 compiler_needs_object=yes
9642 ;;
9643 esac
9644 case `$CC -V 2>&1 | sed 5q` in
9645 *Sun\ C*) # Sun C 5.9
9646 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'
9647 compiler_needs_object=yes
9648 tmp_sharedflag='-G' ;;
9649 *Sun\ F*) # Sun Fortran 8.3
9650 tmp_sharedflag='-G' ;;
9651 esac
9652 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9653
9654 if test yes = "$supports_anon_versioning"; then
9655 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9657 echo "local: *; };" >> $output_objdir/$libname.ver~
9658 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9659 fi
9660
9661 case $cc_basename in
9662 tcc*)
9663 export_dynamic_flag_spec='-rdynamic'
9664 ;;
9665 xlf* | bgf* | bgxlf* | mpixlf*)
9666 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9667 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9669 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9670 if test yes = "$supports_anon_versioning"; then
9671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9673 echo "local: *; };" >> $output_objdir/$libname.ver~
9674 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9675 fi
9676 ;;
9677 esac
9678 else
9679 ld_shlibs=no
9680 fi
9681 ;;
9682
9683 netbsd* | netbsdelf*-gnu)
9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9686 wlarc=
9687 else
9688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9690 fi
9691 ;;
9692
9693 solaris*)
9694 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9695 ld_shlibs=no
9696 cat <<_LT_EOF 1>&2
9697
9698*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9699*** create shared libraries on Solaris systems. Therefore, libtool
9700*** is disabling shared libraries support. We urge you to upgrade GNU
9701*** binutils to release 2.9.1 or newer. Another option is to modify
9702*** your PATH or compiler configuration so that the native linker is
9703*** used, and then restart.
9704
9705_LT_EOF
9706 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9709 else
9710 ld_shlibs=no
9711 fi
9712 ;;
9713
9714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9715 case `$LD -v 2>&1` in
9716 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9717 ld_shlibs=no
9718 cat <<_LT_EOF 1>&2
9719
9720*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9721*** reliably create shared libraries on SCO systems. Therefore, libtool
9722*** is disabling shared libraries support. We urge you to upgrade GNU
9723*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9724*** your PATH or compiler configuration so that the native linker is
9725*** used, and then restart.
9726
9727_LT_EOF
9728 ;;
9729 *)
9730 # For security reasons, it is highly recommended that you always
9731 # use absolute paths for naming shared libraries, and exclude the
9732 # DT_RUNPATH tag from executables and libraries. But doing so
9733 # requires that you compile everything twice, which is a pain.
9734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9735 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9738 else
9739 ld_shlibs=no
9740 fi
9741 ;;
9742 esac
9743 ;;
9744
9745 sunos4*)
9746 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747 wlarc=
9748 hardcode_direct=yes
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 *)
9753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9756 else
9757 ld_shlibs=no
9758 fi
9759 ;;
9760 esac
9761
9762 if test no = "$ld_shlibs"; then
9763 runpath_var=
9764 hardcode_libdir_flag_spec=
9765 export_dynamic_flag_spec=
9766 whole_archive_flag_spec=
9767 fi
9768 else
9769 # PORTME fill in a description of your system's linker (not GNU ld)
9770 case $host_os in
9771 aix3*)
9772 allow_undefined_flag=unsupported
9773 always_export_symbols=yes
9774 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'
9775 # Note: this linker hardcodes the directories in LIBPATH if there
9776 # are no directories specified by -L.
9777 hardcode_minus_L=yes
9778 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9779 # Neither direct hardcoding nor static linking is supported with a
9780 # broken collect2.
9781 hardcode_direct=unsupported
9782 fi
9783 ;;
9784
9785 aix[4-9]*)
9786 if test ia64 = "$host_cpu"; then
9787 # On IA64, the linker does run time linking by default, so we don't
9788 # have to do anything special.
9789 aix_use_runtimelinking=no
9790 exp_sym_flag='-Bexport'
9791 no_entry_flag=
9792 else
9793 # If we're using GNU nm, then we don't want the "-C" option.
9794 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9795 # Without the "-l" option, or with the "-B" option, AIX nm treats
9796 # weak defined symbols like other global defined symbols, whereas
9797 # GNU nm marks them as "W".
9798 # While the 'weak' keyword is ignored in the Export File, we need
9799 # it in the Import File for the 'aix-soname' feature, so we have
9800 # to replace the "-B" option with "-P" for AIX nm.
9801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9802 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9803 else
9804 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9805 fi
9806 aix_use_runtimelinking=no
9807
9808 # Test if we are trying to use run time linking or normal
9809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9810 # have runtime linking enabled, and use it for executables.
9811 # For shared libraries, we enable/disable runtime linking
9812 # depending on the kind of the shared library created -
9813 # when "with_aix_soname,aix_use_runtimelinking" is:
9814 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9815 # "aix,yes" lib.so shared, rtl:yes, for executables
9816 # lib.a static archive
9817 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9818 # lib.a(lib.so.V) shared, rtl:no, for executables
9819 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9820 # lib.a(lib.so.V) shared, rtl:no
9821 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9822 # lib.a static archive
9823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9824 for ld_flag in $LDFLAGS; do
9825 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9826 aix_use_runtimelinking=yes
9827 break
9828 fi
9829 done
9830 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9831 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9832 # so we don't have lib.a shared libs to link our executables.
9833 # We have to force runtime linking in this case.
9834 aix_use_runtimelinking=yes
9835 LDFLAGS="$LDFLAGS -Wl,-brtl"
9836 fi
9837 ;;
9838 esac
9839
9840 exp_sym_flag='-bexport'
9841 no_entry_flag='-bnoentry'
9842 fi
9843
9844 # When large executables or shared objects are built, AIX ld can
9845 # have problems creating the table of contents. If linking a library
9846 # or program results in "error TOC overflow" add -mminimal-toc to
9847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9849
9850 archive_cmds=''
9851 hardcode_direct=yes
9852 hardcode_direct_absolute=yes
9853 hardcode_libdir_separator=':'
9854 link_all_deplibs=yes
9855 file_list_spec='$wl-f,'
9856 case $with_aix_soname,$aix_use_runtimelinking in
9857 aix,*) ;; # traditional, no import file
9858 svr4,* | *,yes) # use import file
9859 # The Import File defines what to hardcode.
9860 hardcode_direct=no
9861 hardcode_direct_absolute=no
9862 ;;
9863 esac
9864
9865 if test yes = "$GCC"; then
9866 case $host_os in aix4.[012]|aix4.[012].*)
9867 # We only want to do this on AIX 4.2 and lower, the check
9868 # below for broken collect2 doesn't work under 4.3+
9869 collect2name=`$CC -print-prog-name=collect2`
9870 if test -f "$collect2name" &&
9871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9872 then
9873 # We have reworked collect2
9874 :
9875 else
9876 # We have old collect2
9877 hardcode_direct=unsupported
9878 # It fails to find uninstalled libraries when the uninstalled
9879 # path is not listed in the libpath. Setting hardcode_minus_L
9880 # to unsupported forces relinking
9881 hardcode_minus_L=yes
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_libdir_separator=
9884 fi
9885 ;;
9886 esac
9887 shared_flag='-shared'
9888 if test yes = "$aix_use_runtimelinking"; then
9889 shared_flag="$shared_flag "'$wl-G'
9890 fi
9891 # Need to ensure runtime linking is disabled for the traditional
9892 # shared library, or the linker may eventually find shared libraries
9893 # /with/ Import File - we do not want to mix them.
9894 shared_flag_aix='-shared'
9895 shared_flag_svr4='-shared $wl-G'
9896 else
9897 # not using gcc
9898 if test ia64 = "$host_cpu"; then
9899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9900 # chokes on -Wl,-G. The following line is correct:
9901 shared_flag='-G'
9902 else
9903 if test yes = "$aix_use_runtimelinking"; then
9904 shared_flag='$wl-G'
9905 else
9906 shared_flag='$wl-bM:SRE'
9907 fi
9908 shared_flag_aix='$wl-bM:SRE'
9909 shared_flag_svr4='$wl-G'
9910 fi
9911 fi
9912
9913 export_dynamic_flag_spec='$wl-bexpall'
9914 # It seems that -bexpall does not export symbols beginning with
9915 # underscore (_), so it is better to generate a list of symbols to export.
9916 always_export_symbols=yes
9917 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9918 # Warning - without using the other runtime loading flags (-brtl),
9919 # -berok will link without error, but may produce a broken library.
9920 allow_undefined_flag='-berok'
9921 # Determine the default libpath from the value encoded in an
9922 # empty executable.
9923 if test set = "${lt_cv_aix_libpath+set}"; then
9924 aix_libpath=$lt_cv_aix_libpath
9925else
9926 if ${lt_cv_aix_libpath_+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930/* end confdefs.h. */
9931
9932int
9933main ()
9934{
9935
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_link "$LINENO"; then :
9941
9942 lt_aix_libpath_sed='
9943 /Import File Strings/,/^$/ {
9944 /^0/ {
9945 s/^0 *\([^ ]*\) *$/\1/
9946 p
9947 }
9948 }'
9949 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9950 # Check for a 64-bit object if we didn't find anything.
9951 if test -z "$lt_cv_aix_libpath_"; then
9952 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953 fi
9954fi
9955rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 if test -z "$lt_cv_aix_libpath_"; then
9958 lt_cv_aix_libpath_=/usr/lib:/lib
9959 fi
9960
9961fi
9962
9963 aix_libpath=$lt_cv_aix_libpath_
9964fi
9965
9966 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9967 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9968 else
9969 if test ia64 = "$host_cpu"; then
9970 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9971 allow_undefined_flag="-z nodefs"
9972 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"
9973 else
9974 # Determine the default libpath from the value encoded in an
9975 # empty executable.
9976 if test set = "${lt_cv_aix_libpath+set}"; then
9977 aix_libpath=$lt_cv_aix_libpath
9978else
9979 if ${lt_cv_aix_libpath_+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981else
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h. */
9984
9985int
9986main ()
9987{
9988
9989 ;
9990 return 0;
9991}
9992_ACEOF
9993if 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
10007fi
10008rm -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
10014fi
10015
10016 aix_libpath=$lt_cv_aix_libpath_
10017fi
10018
10019 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10020 # Warning - without using the other run time loading flags,
10021 # -berok will link without error, but may produce a broken library.
10022 no_undefined_flag=' $wl-bernotok'
10023 allow_undefined_flag=' $wl-berok'
10024 if test yes = "$with_gnu_ld"; then
10025 # We only use this code for GNU lds that support --whole-archive.
10026 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10027 else
10028 # Exported symbols can be pulled into shared objects from archives
10029 whole_archive_flag_spec='$convenience'
10030 fi
10031 archive_cmds_need_lc=yes
10032 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10033 # -brtl affects multiple linker settings, -berok does not and is overridden later
10034 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10035 if test svr4 != "$with_aix_soname"; then
10036 # This is similar to how AIX traditionally builds its shared libraries.
10037 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10038 fi
10039 if test aix != "$with_aix_soname"; then
10040 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10041 else
10042 # used by -dlpreopen to get the symbols
10043 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10044 fi
10045 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10046 fi
10047 fi
10048 ;;
10049
10050 amigaos*)
10051 case $host_cpu in
10052 powerpc)
10053 # see comment about AmigaOS4 .so support
10054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055 archive_expsym_cmds=''
10056 ;;
10057 m68k)
10058 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)'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_minus_L=yes
10061 ;;
10062 esac
10063 ;;
10064
10065 bsdi[45]*)
10066 export_dynamic_flag_spec=-rdynamic
10067 ;;
10068
10069 cygwin* | mingw* | pw32* | cegcc*)
10070 # When not using gcc, we currently assume that we are using
10071 # Microsoft Visual C++.
10072 # hardcode_libdir_flag_spec is actually meaningless, as there is
10073 # no search path for DLLs.
10074 case $cc_basename in
10075 cl*)
10076 # Native MSVC
10077 hardcode_libdir_flag_spec=' '
10078 allow_undefined_flag=unsupported
10079 always_export_symbols=yes
10080 file_list_spec='@'
10081 # Tell ltmain to make .lib files, not .a files.
10082 libext=lib
10083 # Tell ltmain to make .dll files, not .so files.
10084 shrext_cmds=.dll
10085 # FIXME: Setting linknames here is a bad hack.
10086 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10087 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10088 cp "$export_symbols" "$output_objdir/$soname.def";
10089 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10090 else
10091 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10092 fi~
10093 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10094 linknames='
10095 # The linker will not automatically build a static lib if we build a DLL.
10096 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10097 enable_shared_with_static_runtimes=yes
10098 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10100 # Don't use ranlib
10101 old_postinstall_cmds='chmod 644 $oldlib'
10102 postlink_cmds='lt_outputfile="@OUTPUT@"~
10103 lt_tool_outputfile="@TOOL_OUTPUT@"~
10104 case $lt_outputfile in
10105 *.exe|*.EXE) ;;
10106 *)
10107 lt_outputfile=$lt_outputfile.exe
10108 lt_tool_outputfile=$lt_tool_outputfile.exe
10109 ;;
10110 esac~
10111 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10112 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10113 $RM "$lt_outputfile.manifest";
10114 fi'
10115 ;;
10116 *)
10117 # Assume MSVC wrapper
10118 hardcode_libdir_flag_spec=' '
10119 allow_undefined_flag=unsupported
10120 # Tell ltmain to make .lib files, not .a files.
10121 libext=lib
10122 # Tell ltmain to make .dll files, not .so files.
10123 shrext_cmds=.dll
10124 # FIXME: Setting linknames here is a bad hack.
10125 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10126 # The linker will automatically build a .lib file if we build a DLL.
10127 old_archive_from_new_cmds='true'
10128 # FIXME: Should let the user specify the lib program.
10129 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10130 enable_shared_with_static_runtimes=yes
10131 ;;
10132 esac
10133 ;;
10134
10135 darwin* | rhapsody*)
10136
10137
10138 archive_cmds_need_lc=no
10139 hardcode_direct=no
10140 hardcode_automatic=yes
10141 hardcode_shlibpath_var=unsupported
10142 if test yes = "$lt_cv_ld_force_load"; then
10143 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\"`'
10144
10145 else
10146 whole_archive_flag_spec=''
10147 fi
10148 link_all_deplibs=yes
10149 allow_undefined_flag=$_lt_dar_allow_undefined
10150 case $cc_basename in
10151 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10152 *) _lt_dar_can_shared=$GCC ;;
10153 esac
10154 if test yes = "$_lt_dar_can_shared"; then
10155 output_verbose_link_cmd=func_echo_all
10156 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10157 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10158 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"
10159 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"
10160
10161 else
10162 ld_shlibs=no
10163 fi
10164
10165 ;;
10166
10167 dgux*)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_libdir_flag_spec='-L$libdir'
10170 hardcode_shlibpath_var=no
10171 ;;
10172
10173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10174 # support. Future versions do this automatically, but an explicit c++rt0.o
10175 # does not break anything, and helps significantly (at the cost of a little
10176 # extra space).
10177 freebsd2.2*)
10178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10179 hardcode_libdir_flag_spec='-R$libdir'
10180 hardcode_direct=yes
10181 hardcode_shlibpath_var=no
10182 ;;
10183
10184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10185 freebsd2.*)
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=yes
10188 hardcode_minus_L=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10193 freebsd* | dragonfly*)
10194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195 hardcode_libdir_flag_spec='-R$libdir'
10196 hardcode_direct=yes
10197 hardcode_shlibpath_var=no
10198 ;;
10199
10200 hpux9*)
10201 if test yes = "$GCC"; then
10202 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10203 else
10204 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10205 fi
10206 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10207 hardcode_libdir_separator=:
10208 hardcode_direct=yes
10209
10210 # hardcode_minus_L: Not really in the search PATH,
10211 # but as the default location of the library.
10212 hardcode_minus_L=yes
10213 export_dynamic_flag_spec='$wl-E'
10214 ;;
10215
10216 hpux10*)
10217 if test yes,no = "$GCC,$with_gnu_ld"; then
10218 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10221 fi
10222 if test no = "$with_gnu_ld"; then
10223 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10224 hardcode_libdir_separator=:
10225 hardcode_direct=yes
10226 hardcode_direct_absolute=yes
10227 export_dynamic_flag_spec='$wl-E'
10228 # hardcode_minus_L: Not really in the search PATH,
10229 # but as the default location of the library.
10230 hardcode_minus_L=yes
10231 fi
10232 ;;
10233
10234 hpux11*)
10235 if test yes,no = "$GCC,$with_gnu_ld"; then
10236 case $host_cpu in
10237 hppa*64*)
10238 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 ;;
10240 ia64*)
10241 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10242 ;;
10243 *)
10244 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10245 ;;
10246 esac
10247 else
10248 case $host_cpu in
10249 hppa*64*)
10250 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 ;;
10252 ia64*)
10253 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10254 ;;
10255 *)
10256
10257 # Older versions of the 11.00 compiler do not understand -b yet
10258 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10260$as_echo_n "checking if $CC understands -b... " >&6; }
10261if ${lt_cv_prog_compiler__b+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 lt_cv_prog_compiler__b=no
10265 save_LDFLAGS=$LDFLAGS
10266 LDFLAGS="$LDFLAGS -b"
10267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10269 # The linker can only warn and ignore the option if not recognized
10270 # So say no if there are warnings
10271 if test -s conftest.err; then
10272 # Append any errors to the config.log.
10273 cat conftest.err 1>&5
10274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10276 if diff conftest.exp conftest.er2 >/dev/null; then
10277 lt_cv_prog_compiler__b=yes
10278 fi
10279 else
10280 lt_cv_prog_compiler__b=yes
10281 fi
10282 fi
10283 $RM -r conftest*
10284 LDFLAGS=$save_LDFLAGS
10285
10286fi
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10288$as_echo "$lt_cv_prog_compiler__b" >&6; }
10289
10290if test yes = "$lt_cv_prog_compiler__b"; then
10291 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10292else
10293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10294fi
10295
10296 ;;
10297 esac
10298 fi
10299 if test no = "$with_gnu_ld"; then
10300 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10301 hardcode_libdir_separator=:
10302
10303 case $host_cpu in
10304 hppa*64*|ia64*)
10305 hardcode_direct=no
10306 hardcode_shlibpath_var=no
10307 ;;
10308 *)
10309 hardcode_direct=yes
10310 hardcode_direct_absolute=yes
10311 export_dynamic_flag_spec='$wl-E'
10312
10313 # hardcode_minus_L: Not really in the search PATH,
10314 # but as the default location of the library.
10315 hardcode_minus_L=yes
10316 ;;
10317 esac
10318 fi
10319 ;;
10320
10321 irix5* | irix6* | nonstopux*)
10322 if test yes = "$GCC"; then
10323 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'
10324 # Try to use the -exported_symbol ld option, if it does not
10325 # work, assume that -exports_file does not work either and
10326 # implicitly export all symbols.
10327 # This should be the same for all languages, so no per-tag cache variable.
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10329$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10330if ${lt_cv_irix_exported_symbol+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332else
10333 save_LDFLAGS=$LDFLAGS
10334 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336/* end confdefs.h. */
10337int foo (void) { return 0; }
10338_ACEOF
10339if ac_fn_c_try_link "$LINENO"; then :
10340 lt_cv_irix_exported_symbol=yes
10341else
10342 lt_cv_irix_exported_symbol=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LDFLAGS=$save_LDFLAGS
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10349$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10350 if test yes = "$lt_cv_irix_exported_symbol"; then
10351 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'
10352 fi
10353 link_all_deplibs=no
10354 else
10355 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'
10356 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'
10357 fi
10358 archive_cmds_need_lc='no'
10359 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10360 hardcode_libdir_separator=:
10361 inherit_rpath=yes
10362 link_all_deplibs=yes
10363 ;;
10364
10365 linux*)
10366 case $cc_basename in
10367 tcc*)
10368 # Fabrice Bellard et al's Tiny C Compiler
10369 ld_shlibs=yes
10370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10371 ;;
10372 esac
10373 ;;
10374
10375 netbsd* | netbsdelf*-gnu)
10376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10378 else
10379 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10380 fi
10381 hardcode_libdir_flag_spec='-R$libdir'
10382 hardcode_direct=yes
10383 hardcode_shlibpath_var=no
10384 ;;
10385
10386 newsos6)
10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 hardcode_direct=yes
10389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10390 hardcode_libdir_separator=:
10391 hardcode_shlibpath_var=no
10392 ;;
10393
10394 *nto* | *qnx*)
10395 ;;
10396
10397 openbsd* | bitrig*)
10398 if test -f /usr/libexec/ld.so; then
10399 hardcode_direct=yes
10400 hardcode_shlibpath_var=no
10401 hardcode_direct_absolute=yes
10402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10405 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10406 export_dynamic_flag_spec='$wl-E'
10407 else
10408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10409 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10410 fi
10411 else
10412 ld_shlibs=no
10413 fi
10414 ;;
10415
10416 os2*)
10417 hardcode_libdir_flag_spec='-L$libdir'
10418 hardcode_minus_L=yes
10419 allow_undefined_flag=unsupported
10420 shrext_cmds=.dll
10421 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10422 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10423 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10424 $ECHO EXPORTS >> $output_objdir/$libname.def~
10425 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10427 emximp -o $lib $output_objdir/$libname.def'
10428 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10431 $ECHO EXPORTS >> $output_objdir/$libname.def~
10432 prefix_cmds="$SED"~
10433 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10434 prefix_cmds="$prefix_cmds -e 1d";
10435 fi~
10436 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10437 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10438 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10439 emximp -o $lib $output_objdir/$libname.def'
10440 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10441 enable_shared_with_static_runtimes=yes
10442 ;;
10443
10444 osf3*)
10445 if test yes = "$GCC"; then
10446 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10447 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'
10448 else
10449 allow_undefined_flag=' -expect_unresolved \*'
10450 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'
10451 fi
10452 archive_cmds_need_lc='no'
10453 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10454 hardcode_libdir_separator=:
10455 ;;
10456
10457 osf4* | osf5*) # as osf3* with the addition of -msym flag
10458 if test yes = "$GCC"; then
10459 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10460 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'
10461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10462 else
10463 allow_undefined_flag=' -expect_unresolved \*'
10464 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'
10465 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~
10466 $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'
10467
10468 # Both c and cxx compiler support -rpath directly
10469 hardcode_libdir_flag_spec='-rpath $libdir'
10470 fi
10471 archive_cmds_need_lc='no'
10472 hardcode_libdir_separator=:
10473 ;;
10474
10475 solaris*)
10476 no_undefined_flag=' -z defs'
10477 if test yes = "$GCC"; then
10478 wlarc='$wl'
10479 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10481 $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'
10482 else
10483 case `$CC -V 2>&1` in
10484 *"Compilers 5.0"*)
10485 wlarc=''
10486 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10488 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10489 ;;
10490 *)
10491 wlarc='$wl'
10492 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10495 ;;
10496 esac
10497 fi
10498 hardcode_libdir_flag_spec='-R$libdir'
10499 hardcode_shlibpath_var=no
10500 case $host_os in
10501 solaris2.[0-5] | solaris2.[0-5].*) ;;
10502 *)
10503 # The compiler driver will combine and reorder linker options,
10504 # but understands '-z linker_flag'. GCC discards it without '$wl',
10505 # but is careful enough not to reorder.
10506 # Supported since Solaris 2.6 (maybe 2.5.1?)
10507 if test yes = "$GCC"; then
10508 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10509 else
10510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10511 fi
10512 ;;
10513 esac
10514 link_all_deplibs=yes
10515 ;;
10516
10517 sunos4*)
10518 if test sequent = "$host_vendor"; then
10519 # Use $CC to link under sequent, because it throws in some extra .o
10520 # files that make .init and .fini sections work.
10521 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10522 else
10523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10524 fi
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_direct=yes
10527 hardcode_minus_L=yes
10528 hardcode_shlibpath_var=no
10529 ;;
10530
10531 sysv4)
10532 case $host_vendor in
10533 sni)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes # is this really true???
10536 ;;
10537 siemens)
10538 ## LD is ld it makes a PLAMLIB
10539 ## CC just makes a GrossModule.
10540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10541 reload_cmds='$CC -r -o $output$reload_objs'
10542 hardcode_direct=no
10543 ;;
10544 motorola)
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10547 ;;
10548 esac
10549 runpath_var='LD_RUN_PATH'
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 sysv4.3*)
10554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_shlibpath_var=no
10556 export_dynamic_flag_spec='-Bexport'
10557 ;;
10558
10559 sysv4*MP*)
10560 if test -d /usr/nec; then
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_shlibpath_var=no
10563 runpath_var=LD_RUN_PATH
10564 hardcode_runpath_var=yes
10565 ld_shlibs=yes
10566 fi
10567 ;;
10568
10569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10570 no_undefined_flag='$wl-z,text'
10571 archive_cmds_need_lc=no
10572 hardcode_shlibpath_var=no
10573 runpath_var='LD_RUN_PATH'
10574
10575 if test yes = "$GCC"; then
10576 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578 else
10579 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 fi
10582 ;;
10583
10584 sysv5* | sco3.2v5* | sco5v6*)
10585 # Note: We CANNOT use -z defs as we might desire, because we do not
10586 # link with -lc, and that would cause any symbols used from libc to
10587 # always be unresolved, which means just about no library would
10588 # ever link correctly. If we're not using GNU ld we use -z text
10589 # though, which does catch some bad symbols but isn't as heavy-handed
10590 # as -z defs.
10591 no_undefined_flag='$wl-z,text'
10592 allow_undefined_flag='$wl-z,nodefs'
10593 archive_cmds_need_lc=no
10594 hardcode_shlibpath_var=no
10595 hardcode_libdir_flag_spec='$wl-R,$libdir'
10596 hardcode_libdir_separator=':'
10597 link_all_deplibs=yes
10598 export_dynamic_flag_spec='$wl-Bexport'
10599 runpath_var='LD_RUN_PATH'
10600
10601 if test yes = "$GCC"; then
10602 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 else
10605 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 fi
10608 ;;
10609
10610 uts4*)
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_shlibpath_var=no
10614 ;;
10615
10616 *)
10617 ld_shlibs=no
10618 ;;
10619 esac
10620
10621 if test sni = "$host_vendor"; then
10622 case $host in
10623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10624 export_dynamic_flag_spec='$wl-Blargedynsym'
10625 ;;
10626 esac
10627 fi
10628 fi
10629
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10631$as_echo "$ld_shlibs" >&6; }
10632test no = "$ld_shlibs" && can_build_shared=no
10633
10634with_gnu_ld=$with_gnu_ld
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650#
10651# Do we need to explicitly link libc?
10652#
10653case "x$archive_cmds_need_lc" in
10654x|xyes)
10655 # Assume -lc should be added
10656 archive_cmds_need_lc=yes
10657
10658 if test yes,yes = "$GCC,$enable_shared"; then
10659 case $archive_cmds in
10660 *'~'*)
10661 # FIXME: we may have to deal with multi-command sequences.
10662 ;;
10663 '$CC '*)
10664 # Test whether the compiler implicitly links with -lc since on some
10665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10666 # to ld, don't add -lc before -lgcc.
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10668$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10669if ${lt_cv_archive_cmds_need_lc+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671else
10672 $RM conftest*
10673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10674
10675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10676 (eval $ac_compile) 2>&5
10677 ac_status=$?
10678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10679 test $ac_status = 0; } 2>conftest.err; then
10680 soname=conftest
10681 lib=conftest
10682 libobjs=conftest.$ac_objext
10683 deplibs=
10684 wl=$lt_prog_compiler_wl
10685 pic_flag=$lt_prog_compiler_pic
10686 compiler_flags=-v
10687 linker_flags=-v
10688 verstring=
10689 output_objdir=.
10690 libname=conftest
10691 lt_save_allow_undefined_flag=$allow_undefined_flag
10692 allow_undefined_flag=
10693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10694 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10695 ac_status=$?
10696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10697 test $ac_status = 0; }
10698 then
10699 lt_cv_archive_cmds_need_lc=no
10700 else
10701 lt_cv_archive_cmds_need_lc=yes
10702 fi
10703 allow_undefined_flag=$lt_save_allow_undefined_flag
10704 else
10705 cat conftest.err 1>&5
10706 fi
10707 $RM conftest*
10708
10709fi
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10711$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10712 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10713 ;;
10714 esac
10715 fi
10716 ;;
10717esac
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10871$as_echo_n "checking dynamic linker characteristics... " >&6; }
10872
10873if test yes = "$GCC"; then
10874 case $host_os in
10875 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10876 *) lt_awk_arg='/^libraries:/' ;;
10877 esac
10878 case $host_os in
10879 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10880 *) lt_sed_strip_eq='s|=/|/|g' ;;
10881 esac
10882 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10883 case $lt_search_path_spec in
10884 *\;*)
10885 # if the path contains ";" then we assume it to be the separator
10886 # otherwise default to the standard path separator (i.e. ":") - it is
10887 # assumed that no part of a normal pathname contains ";" but that should
10888 # okay in the real world where ";" in dirpaths is itself problematic.
10889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10890 ;;
10891 *)
10892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10893 ;;
10894 esac
10895 # Ok, now we have the path, separated by spaces, we can step through it
10896 # and add multilib dir if necessary...
10897 lt_tmp_lt_search_path_spec=
10898 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10899 # ...but if some path component already ends with the multilib dir we assume
10900 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10901 case "$lt_multi_os_dir; $lt_search_path_spec " in
10902 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10903 lt_multi_os_dir=
10904 ;;
10905 esac
10906 for lt_sys_path in $lt_search_path_spec; do
10907 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10909 elif test -n "$lt_multi_os_dir"; then
10910 test -d "$lt_sys_path" && \
10911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10912 fi
10913 done
10914 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10915BEGIN {RS = " "; FS = "/|\n";} {
10916 lt_foo = "";
10917 lt_count = 0;
10918 for (lt_i = NF; lt_i > 0; lt_i--) {
10919 if ($lt_i != "" && $lt_i != ".") {
10920 if ($lt_i == "..") {
10921 lt_count++;
10922 } else {
10923 if (lt_count == 0) {
10924 lt_foo = "/" $lt_i lt_foo;
10925 } else {
10926 lt_count--;
10927 }
10928 }
10929 }
10930 }
10931 if (lt_foo != "") { lt_freq[lt_foo]++; }
10932 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10933}'`
10934 # AWK program above erroneously prepends '/' to C:/dos/paths
10935 # for these hosts.
10936 case $host_os in
10937 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10938 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10939 esac
10940 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10941else
10942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10943fi
10944library_names_spec=
10945libname_spec='lib$name'
10946soname_spec=
10947shrext_cmds=.so
10948postinstall_cmds=
10949postuninstall_cmds=
10950finish_cmds=
10951finish_eval=
10952shlibpath_var=
10953shlibpath_overrides_runpath=unknown
10954version_type=none
10955dynamic_linker="$host_os ld.so"
10956sys_lib_dlsearch_path_spec="/lib /usr/lib"
10957need_lib_prefix=unknown
10958hardcode_into_libs=no
10959
10960# when you set need_version to no, make sure it does not cause -set_version
10961# flags to be left without arguments
10962need_version=unknown
10963
10964
10965
10966case $host_os in
10967aix3*)
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10970 shlibpath_var=LIBPATH
10971
10972 # AIX 3 has no versioning support, so we append a major version to the name.
10973 soname_spec='$libname$release$shared_ext$major'
10974 ;;
10975
10976aix[4-9]*)
10977 version_type=linux # correct to gnu/linux during the next big refactor
10978 need_lib_prefix=no
10979 need_version=no
10980 hardcode_into_libs=yes
10981 if test ia64 = "$host_cpu"; then
10982 # AIX 5 supports IA64
10983 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 else
10986 # With GCC up to 2.95.x, collect2 would create an import file
10987 # for dependence libraries. The import file would start with
10988 # the line '#! .'. This would cause the generated library to
10989 # depend on '.', always an invalid library. This was fixed in
10990 # development snapshots of GCC prior to 3.0.
10991 case $host_os in
10992 aix4 | aix4.[01] | aix4.[01].*)
10993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10994 echo ' yes '
10995 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10996 :
10997 else
10998 can_build_shared=no
10999 fi
11000 ;;
11001 esac
11002 # Using Import Files as archive members, it is possible to support
11003 # filename-based versioning of shared library archives on AIX. While
11004 # this would work for both with and without runtime linking, it will
11005 # prevent static linking of such archives. So we do filename-based
11006 # shared library versioning with .so extension only, which is used
11007 # when both runtime linking and shared linking is enabled.
11008 # Unfortunately, runtime linking may impact performance, so we do
11009 # not want this to be the default eventually. Also, we use the
11010 # versioned .so libs for executables only if there is the -brtl
11011 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11012 # To allow for filename-based versioning support, we need to create
11013 # libNAME.so.V as an archive file, containing:
11014 # *) an Import File, referring to the versioned filename of the
11015 # archive as well as the shared archive member, telling the
11016 # bitwidth (32 or 64) of that shared object, and providing the
11017 # list of exported symbols of that shared object, eventually
11018 # decorated with the 'weak' keyword
11019 # *) the shared object with the F_LOADONLY flag set, to really avoid
11020 # it being seen by the linker.
11021 # At run time we better use the real file rather than another symlink,
11022 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11023
11024 case $with_aix_soname,$aix_use_runtimelinking in
11025 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11026 # soname into executable. Probably we can add versioning support to
11027 # collect2, so additional links can be useful in future.
11028 aix,yes) # traditional libtool
11029 dynamic_linker='AIX unversionable lib.so'
11030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11031 # instead of lib<name>.a to let people know that these are not
11032 # typical AIX shared libraries.
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 ;;
11035 aix,no) # traditional AIX only
11036 dynamic_linker='AIX lib.a(lib.so.V)'
11037 # We preserve .a as extension for shared libraries through AIX4.2
11038 # and later when we are not doing run time linking.
11039 library_names_spec='$libname$release.a $libname.a'
11040 soname_spec='$libname$release$shared_ext$major'
11041 ;;
11042 svr4,*) # full svr4 only
11043 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11044 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11045 # We do not specify a path in Import Files, so LIBPATH fires.
11046 shlibpath_overrides_runpath=yes
11047 ;;
11048 *,yes) # both, prefer svr4
11049 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11050 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11051 # unpreferred sharedlib libNAME.a needs extra handling
11052 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11053 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11054 # We do not specify a path in Import Files, so LIBPATH fires.
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057 *,no) # both, prefer aix
11058 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11059 library_names_spec='$libname$release.a $libname.a'
11060 soname_spec='$libname$release$shared_ext$major'
11061 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11062 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11063 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11064 ;;
11065 esac
11066 shlibpath_var=LIBPATH
11067 fi
11068 ;;
11069
11070amigaos*)
11071 case $host_cpu in
11072 powerpc)
11073 # Since July 2007 AmigaOS4 officially supports .so libraries.
11074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11076 ;;
11077 m68k)
11078 library_names_spec='$libname.ixlibrary $libname.a'
11079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11080 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11081 ;;
11082 esac
11083 ;;
11084
11085beos*)
11086 library_names_spec='$libname$shared_ext'
11087 dynamic_linker="$host_os ld.so"
11088 shlibpath_var=LIBRARY_PATH
11089 ;;
11090
11091bsdi[45]*)
11092 version_type=linux # correct to gnu/linux during the next big refactor
11093 need_version=no
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 soname_spec='$libname$release$shared_ext$major'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11100 # the default ld.so.conf also contains /usr/contrib/lib and
11101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11102 # libtool to hard-code these into programs
11103 ;;
11104
11105cygwin* | mingw* | pw32* | cegcc*)
11106 version_type=windows
11107 shrext_cmds=.dll
11108 need_version=no
11109 need_lib_prefix=no
11110
11111 case $GCC,$cc_basename in
11112 yes,*)
11113 # gcc
11114 library_names_spec='$libname.dll.a'
11115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11116 postinstall_cmds='base_file=`basename \$file`~
11117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11118 dldir=$destdir/`dirname \$dlpath`~
11119 test -d \$dldir || mkdir -p \$dldir~
11120 $install_prog $dir/$dlname \$dldir/$dlname~
11121 chmod a+x \$dldir/$dlname~
11122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11123 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11124 fi'
11125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11126 dlpath=$dir/\$dldll~
11127 $RM \$dlpath'
11128 shlibpath_overrides_runpath=yes
11129
11130 case $host_os in
11131 cygwin*)
11132 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11133 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11134
11135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11136 ;;
11137 mingw* | cegcc*)
11138 # MinGW DLLs use traditional 'lib' prefix
11139 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11140 ;;
11141 pw32*)
11142 # pw32 DLLs use 'pw' prefix rather than 'lib'
11143 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11144 ;;
11145 esac
11146 dynamic_linker='Win32 ld.exe'
11147 ;;
11148
11149 *,cl*)
11150 # Native MSVC
11151 libname_spec='$name'
11152 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11153 library_names_spec='$libname.dll.lib'
11154
11155 case $build_os in
11156 mingw*)
11157 sys_lib_search_path_spec=
11158 lt_save_ifs=$IFS
11159 IFS=';'
11160 for lt_path in $LIB
11161 do
11162 IFS=$lt_save_ifs
11163 # Let DOS variable expansion print the short 8.3 style file name.
11164 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11165 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11166 done
11167 IFS=$lt_save_ifs
11168 # Convert to MSYS style.
11169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11170 ;;
11171 cygwin*)
11172 # Convert to unix form, then to dos form, then back to unix form
11173 # but this time dos style (no spaces!) so that the unix form looks
11174 # like /cygdrive/c/PROGRA~1:/cygdr...
11175 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11176 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11177 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11178 ;;
11179 *)
11180 sys_lib_search_path_spec=$LIB
11181 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11182 # It is most probably a Windows format PATH.
11183 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184 else
11185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186 fi
11187 # FIXME: find the short name or the path components, as spaces are
11188 # common. (e.g. "Program Files" -> "PROGRA~1")
11189 ;;
11190 esac
11191
11192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193 postinstall_cmds='base_file=`basename \$file`~
11194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11195 dldir=$destdir/`dirname \$dlpath`~
11196 test -d \$dldir || mkdir -p \$dldir~
11197 $install_prog $dir/$dlname \$dldir/$dlname'
11198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11199 dlpath=$dir/\$dldll~
11200 $RM \$dlpath'
11201 shlibpath_overrides_runpath=yes
11202 dynamic_linker='Win32 link.exe'
11203 ;;
11204
11205 *)
11206 # Assume MSVC wrapper
11207 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11208 dynamic_linker='Win32 ld.exe'
11209 ;;
11210 esac
11211 # FIXME: first we should search . and the directory the executable is in
11212 shlibpath_var=PATH
11213 ;;
11214
11215darwin* | rhapsody*)
11216 dynamic_linker="$host_os dyld"
11217 version_type=darwin
11218 need_lib_prefix=no
11219 need_version=no
11220 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11221 soname_spec='$libname$release$major$shared_ext'
11222 shlibpath_overrides_runpath=yes
11223 shlibpath_var=DYLD_LIBRARY_PATH
11224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11225
11226 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11228 ;;
11229
11230dgux*)
11231 version_type=linux # correct to gnu/linux during the next big refactor
11232 need_lib_prefix=no
11233 need_version=no
11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235 soname_spec='$libname$release$shared_ext$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 ;;
11238
11239freebsd* | dragonfly*)
11240 # DragonFly does not have aout. When/if they implement a new
11241 # versioning mechanism, adjust this.
11242 if test -x /usr/bin/objformat; then
11243 objformat=`/usr/bin/objformat`
11244 else
11245 case $host_os in
11246 freebsd[23].*) objformat=aout ;;
11247 *) objformat=elf ;;
11248 esac
11249 fi
11250 version_type=freebsd-$objformat
11251 case $version_type in
11252 freebsd-elf*)
11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254 soname_spec='$libname$release$shared_ext$major'
11255 need_version=no
11256 need_lib_prefix=no
11257 ;;
11258 freebsd-*)
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11260 need_version=yes
11261 ;;
11262 esac
11263 shlibpath_var=LD_LIBRARY_PATH
11264 case $host_os in
11265 freebsd2.*)
11266 shlibpath_overrides_runpath=yes
11267 ;;
11268 freebsd3.[01]* | freebsdelf3.[01]*)
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 ;;
11272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 ;;
11277 *) # from 4.6 on, and DragonFly
11278 shlibpath_overrides_runpath=yes
11279 hardcode_into_libs=yes
11280 ;;
11281 esac
11282 ;;
11283
11284haiku*)
11285 version_type=linux # correct to gnu/linux during the next big refactor
11286 need_lib_prefix=no
11287 need_version=no
11288 dynamic_linker="$host_os runtime_loader"
11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11290 soname_spec='$libname$release$shared_ext$major'
11291 shlibpath_var=LIBRARY_PATH
11292 shlibpath_overrides_runpath=no
11293 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11294 hardcode_into_libs=yes
11295 ;;
11296
11297hpux9* | hpux10* | hpux11*)
11298 # Give a soname corresponding to the major version so that dld.sl refuses to
11299 # link against other versions.
11300 version_type=sunos
11301 need_lib_prefix=no
11302 need_version=no
11303 case $host_cpu in
11304 ia64*)
11305 shrext_cmds='.so'
11306 hardcode_into_libs=yes
11307 dynamic_linker="$host_os dld.so"
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311 soname_spec='$libname$release$shared_ext$major'
11312 if test 32 = "$HPUX_IA64_MODE"; then
11313 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11314 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11315 else
11316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11317 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11318 fi
11319 ;;
11320 hppa*64*)
11321 shrext_cmds='.sl'
11322 hardcode_into_libs=yes
11323 dynamic_linker="$host_os dld.sl"
11324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327 soname_spec='$libname$release$shared_ext$major'
11328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11330 ;;
11331 *)
11332 shrext_cmds='.sl'
11333 dynamic_linker="$host_os dld.sl"
11334 shlibpath_var=SHLIB_PATH
11335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11337 soname_spec='$libname$release$shared_ext$major'
11338 ;;
11339 esac
11340 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11341 postinstall_cmds='chmod 555 $lib'
11342 # or fails outright, so override atomically:
11343 install_override_mode=555
11344 ;;
11345
11346interix[3-9]*)
11347 version_type=linux # correct to gnu/linux during the next big refactor
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11351 soname_spec='$libname$release$shared_ext$major'
11352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 hardcode_into_libs=yes
11356 ;;
11357
11358irix5* | irix6* | nonstopux*)
11359 case $host_os in
11360 nonstopux*) version_type=nonstopux ;;
11361 *)
11362 if test yes = "$lt_cv_prog_gnu_ld"; then
11363 version_type=linux # correct to gnu/linux during the next big refactor
11364 else
11365 version_type=irix
11366 fi ;;
11367 esac
11368 need_lib_prefix=no
11369 need_version=no
11370 soname_spec='$libname$release$shared_ext$major'
11371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11372 case $host_os in
11373 irix5* | nonstopux*)
11374 libsuff= shlibsuff=
11375 ;;
11376 *)
11377 case $LD in # libtool.m4 will add one of these switches to LD
11378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11379 libsuff= shlibsuff= libmagic=32-bit;;
11380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11381 libsuff=32 shlibsuff=N32 libmagic=N32;;
11382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11384 *) libsuff= shlibsuff= libmagic=never-match;;
11385 esac
11386 ;;
11387 esac
11388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11389 shlibpath_overrides_runpath=no
11390 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11391 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11392 hardcode_into_libs=yes
11393 ;;
11394
11395# No shared lib support for Linux oldld, aout, or coff.
11396linux*oldld* | linux*aout* | linux*coff*)
11397 dynamic_linker=no
11398 ;;
11399
11400linux*android*)
11401 version_type=none # Android doesn't support versioned libraries.
11402 need_lib_prefix=no
11403 need_version=no
11404 library_names_spec='$libname$release$shared_ext'
11405 soname_spec='$libname$release$shared_ext'
11406 finish_cmds=
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=yes
11409
11410 # This implies no fast_install, which is unacceptable.
11411 # Some rework will be needed to allow for fast_install
11412 # before this can be enabled.
11413 hardcode_into_libs=yes
11414
11415 dynamic_linker='Android linker'
11416 # Don't embed -rpath directories since the linker doesn't support them.
11417 hardcode_libdir_flag_spec='-L$libdir'
11418 ;;
11419
11420# This must be glibc/ELF.
11421linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 need_lib_prefix=no
11424 need_version=no
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426 soname_spec='$libname$release$shared_ext$major'
11427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11430
11431 # Some binutils ld are patched to set DT_RUNPATH
11432 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434else
11435 lt_cv_shlibpath_overrides_runpath=no
11436 save_LDFLAGS=$LDFLAGS
11437 save_libdir=$libdir
11438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441/* end confdefs.h. */
11442
11443int
11444main ()
11445{
11446
11447 ;
11448 return 0;
11449}
11450_ACEOF
11451if ac_fn_c_try_link "$LINENO"; then :
11452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11453 lt_cv_shlibpath_overrides_runpath=yes
11454fi
11455fi
11456rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LDFLAGS=$save_LDFLAGS
11459 libdir=$save_libdir
11460
11461fi
11462
11463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11464
11465 # This implies no fast_install, which is unacceptable.
11466 # Some rework will be needed to allow for fast_install
11467 # before this can be enabled.
11468 hardcode_into_libs=yes
11469
11470 # Ideally, we could use ldconfig to report *all* directores which are
11471 # searched for libraries, however this is still not possible. Aside from not
11472 # being certain /sbin/ldconfig is available, command
11473 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11474 # even though it is searched at run-time. Try to do the best guess by
11475 # appending ld.so.conf contents (and includes) to the search path.
11476 if test -f /etc/ld.so.conf; then
11477 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' ' '`
11478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11479 fi
11480
11481 # We used to test for /lib/ld.so.1 and disable shared libraries on
11482 # powerpc, because MkLinux only supported shared libraries with the
11483 # GNU dynamic linker. Since this was broken with cross compilers,
11484 # most powerpc-linux boxes support dynamic linking these days and
11485 # people can always --disable-shared, the test was removed, and we
11486 # assume the GNU/Linux dynamic linker is in use.
11487 dynamic_linker='GNU/Linux ld.so'
11488 ;;
11489
11490netbsdelf*-gnu)
11491 version_type=linux
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 dynamic_linker='NetBSD ld.elf_so'
11500 ;;
11501
11502netbsd*)
11503 version_type=sunos
11504 need_lib_prefix=no
11505 need_version=no
11506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11509 dynamic_linker='NetBSD (a.out) ld.so'
11510 else
11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512 soname_spec='$libname$release$shared_ext$major'
11513 dynamic_linker='NetBSD ld.elf_so'
11514 fi
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 hardcode_into_libs=yes
11518 ;;
11519
11520newsos6)
11521 version_type=linux # correct to gnu/linux during the next big refactor
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 ;;
11526
11527*nto* | *qnx*)
11528 version_type=qnx
11529 need_lib_prefix=no
11530 need_version=no
11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532 soname_spec='$libname$release$shared_ext$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=no
11535 hardcode_into_libs=yes
11536 dynamic_linker='ldqnx.so'
11537 ;;
11538
11539openbsd* | bitrig*)
11540 version_type=sunos
11541 sys_lib_dlsearch_path_spec=/usr/lib
11542 need_lib_prefix=no
11543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11544 need_version=no
11545 else
11546 need_version=yes
11547 fi
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath=yes
11552 ;;
11553
11554os2*)
11555 libname_spec='$name'
11556 version_type=windows
11557 shrext_cmds=.dll
11558 need_version=no
11559 need_lib_prefix=no
11560 # OS/2 can only load a DLL with a base name of 8 characters or less.
11561 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11562 v=$($ECHO $release$versuffix | tr -d .-);
11563 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11564 $ECHO $n$v`$shared_ext'
11565 library_names_spec='${libname}_dll.$libext'
11566 dynamic_linker='OS/2 ld.exe'
11567 shlibpath_var=BEGINLIBPATH
11568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11578 fi'
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11581 $RM \$dlpath'
11582 ;;
11583
11584osf3* | osf4* | osf5*)
11585 version_type=osf
11586 need_lib_prefix=no
11587 need_version=no
11588 soname_spec='$libname$release$shared_ext$major'
11589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593 ;;
11594
11595rdos*)
11596 dynamic_linker=no
11597 ;;
11598
11599solaris*)
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes
11607 hardcode_into_libs=yes
11608 # ldd complains unless libraries are executable
11609 postinstall_cmds='chmod +x $lib'
11610 ;;
11611
11612sunos4*)
11613 version_type=sunos
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes
11618 if test yes = "$with_gnu_ld"; then
11619 need_lib_prefix=no
11620 fi
11621 need_version=yes
11622 ;;
11623
11624sysv4 | sysv4.3*)
11625 version_type=linux # correct to gnu/linux during the next big refactor
11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627 soname_spec='$libname$release$shared_ext$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 case $host_vendor in
11630 sni)
11631 shlibpath_overrides_runpath=no
11632 need_lib_prefix=no
11633 runpath_var=LD_RUN_PATH
11634 ;;
11635 siemens)
11636 need_lib_prefix=no
11637 ;;
11638 motorola)
11639 need_lib_prefix=no
11640 need_version=no
11641 shlibpath_overrides_runpath=no
11642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11643 ;;
11644 esac
11645 ;;
11646
11647sysv4*MP*)
11648 if test -d /usr/nec; then
11649 version_type=linux # correct to gnu/linux during the next big refactor
11650 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11651 soname_spec='$libname$shared_ext.$major'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 fi
11654 ;;
11655
11656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11657 version_type=sco
11658 need_lib_prefix=no
11659 need_version=no
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11665 if test yes = "$with_gnu_ld"; then
11666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11667 else
11668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11669 case $host_os in
11670 sco3.2v5*)
11671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11672 ;;
11673 esac
11674 fi
11675 sys_lib_dlsearch_path_spec='/usr/lib'
11676 ;;
11677
11678tpf*)
11679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11680 version_type=linux # correct to gnu/linux during the next big refactor
11681 need_lib_prefix=no
11682 need_version=no
11683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=no
11686 hardcode_into_libs=yes
11687 ;;
11688
11689uts4*)
11690 version_type=linux # correct to gnu/linux during the next big refactor
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 ;;
11695
11696*)
11697 dynamic_linker=no
11698 ;;
11699esac
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11701$as_echo "$dynamic_linker" >&6; }
11702test no = "$dynamic_linker" && can_build_shared=no
11703
11704variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11705if test yes = "$GCC"; then
11706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11707fi
11708
11709if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11710 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11711fi
11712
11713if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11714 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11715fi
11716
11717# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11718configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11719
11720# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11721func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11722
11723# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11724configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11823$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11824hardcode_action=
11825if test -n "$hardcode_libdir_flag_spec" ||
11826 test -n "$runpath_var" ||
11827 test yes = "$hardcode_automatic"; then
11828
11829 # We can hardcode non-existent directories.
11830 if test no != "$hardcode_direct" &&
11831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11832 # have to relink, otherwise we might link with an installed library
11833 # when we should be linking with a yet-to-be-installed one
11834 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11835 test no != "$hardcode_minus_L"; then
11836 # Linking always hardcodes the temporary library directory.
11837 hardcode_action=relink
11838 else
11839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11840 hardcode_action=immediate
11841 fi
11842else
11843 # We cannot hardcode anything, or else we can only hardcode existing
11844 # directories.
11845 hardcode_action=unsupported
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11848$as_echo "$hardcode_action" >&6; }
11849
11850if test relink = "$hardcode_action" ||
11851 test yes = "$inherit_rpath"; then
11852 # Fast installation is not supported
11853 enable_fast_install=no
11854elif test yes = "$shlibpath_overrides_runpath" ||
11855 test no = "$enable_shared"; then
11856 # Fast installation is not necessary
11857 enable_fast_install=needless
11858fi
11859
11860
11861
11862
11863
11864
11865 if test yes != "$enable_dlopen"; then
11866 enable_dlopen=unknown
11867 enable_dlopen_self=unknown
11868 enable_dlopen_self_static=unknown
11869else
11870 lt_cv_dlopen=no
11871 lt_cv_dlopen_libs=
11872
11873 case $host_os in
11874 beos*)
11875 lt_cv_dlopen=load_add_on
11876 lt_cv_dlopen_libs=
11877 lt_cv_dlopen_self=yes
11878 ;;
11879
11880 mingw* | pw32* | cegcc*)
11881 lt_cv_dlopen=LoadLibrary
11882 lt_cv_dlopen_libs=
11883 ;;
11884
11885 cygwin*)
11886 lt_cv_dlopen=dlopen
11887 lt_cv_dlopen_libs=
11888 ;;
11889
11890 darwin*)
11891 # if libdl is installed we need to link against it
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11893$as_echo_n "checking for dlopen in -ldl... " >&6; }
11894if ${ac_cv_lib_dl_dlopen+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896else
11897 ac_check_lib_save_LIBS=$LIBS
11898LIBS="-ldl $LIBS"
11899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900/* end confdefs.h. */
11901
11902/* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11905#ifdef __cplusplus
11906extern "C"
11907#endif
11908char dlopen ();
11909int
11910main ()
11911{
11912return dlopen ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917if ac_fn_c_try_link "$LINENO"; then :
11918 ac_cv_lib_dl_dlopen=yes
11919else
11920 ac_cv_lib_dl_dlopen=no
11921fi
11922rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924LIBS=$ac_check_lib_save_LIBS
11925fi
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11927$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11928if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11929 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11930else
11931
11932 lt_cv_dlopen=dyld
11933 lt_cv_dlopen_libs=
11934 lt_cv_dlopen_self=yes
11935
11936fi
11937
11938 ;;
11939
11940 tpf*)
11941 # Don't try to run any link tests for TPF. We know it's impossible
11942 # because TPF is a cross-compiler, and we know how we open DSOs.
11943 lt_cv_dlopen=dlopen
11944 lt_cv_dlopen_libs=
11945 lt_cv_dlopen_self=no
11946 ;;
11947
11948 *)
11949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11950if test "x$ac_cv_func_shl_load" = xyes; then :
11951 lt_cv_dlopen=shl_load
11952else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11954$as_echo_n "checking for shl_load in -ldld... " >&6; }
11955if ${ac_cv_lib_dld_shl_load+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957else
11958 ac_check_lib_save_LIBS=$LIBS
11959LIBS="-ldld $LIBS"
11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h. */
11962
11963/* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char shl_load ();
11970int
11971main ()
11972{
11973return shl_load ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_dld_shl_load=yes
11980else
11981 ac_cv_lib_dld_shl_load=no
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985LIBS=$ac_check_lib_save_LIBS
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11988$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11989if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11990 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11991else
11992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11993if test "x$ac_cv_func_dlopen" = xyes; then :
11994 lt_cv_dlopen=dlopen
11995else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11997$as_echo_n "checking for dlopen in -ldl... " >&6; }
11998if ${ac_cv_lib_dl_dlopen+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000else
12001 ac_check_lib_save_LIBS=$LIBS
12002LIBS="-ldl $LIBS"
12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h. */
12005
12006/* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12009#ifdef __cplusplus
12010extern "C"
12011#endif
12012char dlopen ();
12013int
12014main ()
12015{
12016return dlopen ();
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_link "$LINENO"; then :
12022 ac_cv_lib_dl_dlopen=yes
12023else
12024 ac_cv_lib_dl_dlopen=no
12025fi
12026rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028LIBS=$ac_check_lib_save_LIBS
12029fi
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12032if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12033 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12034else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12036$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12037if ${ac_cv_lib_svld_dlopen+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039else
12040 ac_check_lib_save_LIBS=$LIBS
12041LIBS="-lsvld $LIBS"
12042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h. */
12044
12045/* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12048#ifdef __cplusplus
12049extern "C"
12050#endif
12051char dlopen ();
12052int
12053main ()
12054{
12055return dlopen ();
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_lib_svld_dlopen=yes
12062else
12063 ac_cv_lib_svld_dlopen=no
12064fi
12065rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12067LIBS=$ac_check_lib_save_LIBS
12068fi
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12071if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12072 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12073else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12075$as_echo_n "checking for dld_link in -ldld... " >&6; }
12076if ${ac_cv_lib_dld_dld_link+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078else
12079 ac_check_lib_save_LIBS=$LIBS
12080LIBS="-ldld $LIBS"
12081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h. */
12083
12084/* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087#ifdef __cplusplus
12088extern "C"
12089#endif
12090char dld_link ();
12091int
12092main ()
12093{
12094return dld_link ();
12095 ;
12096 return 0;
12097}
12098_ACEOF
12099if ac_fn_c_try_link "$LINENO"; then :
12100 ac_cv_lib_dld_dld_link=yes
12101else
12102 ac_cv_lib_dld_dld_link=no
12103fi
12104rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106LIBS=$ac_check_lib_save_LIBS
12107fi
12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12109$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12110if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12111 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12112fi
12113
12114
12115fi
12116
12117
12118fi
12119
12120
12121fi
12122
12123
12124fi
12125
12126
12127fi
12128
12129 ;;
12130 esac
12131
12132 if test no = "$lt_cv_dlopen"; then
12133 enable_dlopen=no
12134 else
12135 enable_dlopen=yes
12136 fi
12137
12138 case $lt_cv_dlopen in
12139 dlopen)
12140 save_CPPFLAGS=$CPPFLAGS
12141 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12142
12143 save_LDFLAGS=$LDFLAGS
12144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12145
12146 save_LIBS=$LIBS
12147 LIBS="$lt_cv_dlopen_libs $LIBS"
12148
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12150$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12151if ${lt_cv_dlopen_self+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153else
12154 if test yes = "$cross_compiling"; then :
12155 lt_cv_dlopen_self=cross
12156else
12157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158 lt_status=$lt_dlunknown
12159 cat > conftest.$ac_ext <<_LT_EOF
12160#line $LINENO "configure"
12161#include "confdefs.h"
12162
12163#if HAVE_DLFCN_H
12164#include <dlfcn.h>
12165#endif
12166
12167#include <stdio.h>
12168
12169#ifdef RTLD_GLOBAL
12170# define LT_DLGLOBAL RTLD_GLOBAL
12171#else
12172# ifdef DL_GLOBAL
12173# define LT_DLGLOBAL DL_GLOBAL
12174# else
12175# define LT_DLGLOBAL 0
12176# endif
12177#endif
12178
12179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180 find out it does not work in some platform. */
12181#ifndef LT_DLLAZY_OR_NOW
12182# ifdef RTLD_LAZY
12183# define LT_DLLAZY_OR_NOW RTLD_LAZY
12184# else
12185# ifdef DL_LAZY
12186# define LT_DLLAZY_OR_NOW DL_LAZY
12187# else
12188# ifdef RTLD_NOW
12189# define LT_DLLAZY_OR_NOW RTLD_NOW
12190# else
12191# ifdef DL_NOW
12192# define LT_DLLAZY_OR_NOW DL_NOW
12193# else
12194# define LT_DLLAZY_OR_NOW 0
12195# endif
12196# endif
12197# endif
12198# endif
12199#endif
12200
12201/* When -fvisibility=hidden is used, assume the code has been annotated
12202 correspondingly for the symbols needed. */
12203#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12204int fnord () __attribute__((visibility("default")));
12205#endif
12206
12207int fnord () { return 42; }
12208int main ()
12209{
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12212
12213 if (self)
12214 {
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12216 else
12217 {
12218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12219 else puts (dlerror ());
12220 }
12221 /* dlclose (self); */
12222 }
12223 else
12224 puts (dlerror ());
12225
12226 return status;
12227}
12228_LT_EOF
12229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12230 (eval $ac_link) 2>&5
12231 ac_status=$?
12232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12234 (./conftest; exit; ) >&5 2>/dev/null
12235 lt_status=$?
12236 case x$lt_status in
12237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12240 esac
12241 else :
12242 # compilation failed
12243 lt_cv_dlopen_self=no
12244 fi
12245fi
12246rm -fr conftest*
12247
12248
12249fi
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12251$as_echo "$lt_cv_dlopen_self" >&6; }
12252
12253 if test yes = "$lt_cv_dlopen_self"; then
12254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12256$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12257if ${lt_cv_dlopen_self_static+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259else
12260 if test yes = "$cross_compiling"; then :
12261 lt_cv_dlopen_self_static=cross
12262else
12263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12264 lt_status=$lt_dlunknown
12265 cat > conftest.$ac_ext <<_LT_EOF
12266#line $LINENO "configure"
12267#include "confdefs.h"
12268
12269#if HAVE_DLFCN_H
12270#include <dlfcn.h>
12271#endif
12272
12273#include <stdio.h>
12274
12275#ifdef RTLD_GLOBAL
12276# define LT_DLGLOBAL RTLD_GLOBAL
12277#else
12278# ifdef DL_GLOBAL
12279# define LT_DLGLOBAL DL_GLOBAL
12280# else
12281# define LT_DLGLOBAL 0
12282# endif
12283#endif
12284
12285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12286 find out it does not work in some platform. */
12287#ifndef LT_DLLAZY_OR_NOW
12288# ifdef RTLD_LAZY
12289# define LT_DLLAZY_OR_NOW RTLD_LAZY
12290# else
12291# ifdef DL_LAZY
12292# define LT_DLLAZY_OR_NOW DL_LAZY
12293# else
12294# ifdef RTLD_NOW
12295# define LT_DLLAZY_OR_NOW RTLD_NOW
12296# else
12297# ifdef DL_NOW
12298# define LT_DLLAZY_OR_NOW DL_NOW
12299# else
12300# define LT_DLLAZY_OR_NOW 0
12301# endif
12302# endif
12303# endif
12304# endif
12305#endif
12306
12307/* When -fvisibility=hidden is used, assume the code has been annotated
12308 correspondingly for the symbols needed. */
12309#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12310int fnord () __attribute__((visibility("default")));
12311#endif
12312
12313int fnord () { return 42; }
12314int main ()
12315{
12316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12317 int status = $lt_dlunknown;
12318
12319 if (self)
12320 {
12321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12322 else
12323 {
12324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12325 else puts (dlerror ());
12326 }
12327 /* dlclose (self); */
12328 }
12329 else
12330 puts (dlerror ());
12331
12332 return status;
12333}
12334_LT_EOF
12335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12336 (eval $ac_link) 2>&5
12337 ac_status=$?
12338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12339 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12340 (./conftest; exit; ) >&5 2>/dev/null
12341 lt_status=$?
12342 case x$lt_status in
12343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12346 esac
12347 else :
12348 # compilation failed
12349 lt_cv_dlopen_self_static=no
12350 fi
12351fi
12352rm -fr conftest*
12353
12354
12355fi
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12357$as_echo "$lt_cv_dlopen_self_static" >&6; }
12358 fi
12359
12360 CPPFLAGS=$save_CPPFLAGS
12361 LDFLAGS=$save_LDFLAGS
12362 LIBS=$save_LIBS
12363 ;;
12364 esac
12365
12366 case $lt_cv_dlopen_self in
12367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12368 *) enable_dlopen_self=unknown ;;
12369 esac
12370
12371 case $lt_cv_dlopen_self_static in
12372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12373 *) enable_dlopen_self_static=unknown ;;
12374 esac
12375fi
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393striplib=
12394old_striplib=
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12396$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12397if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401$as_echo "yes" >&6; }
12402else
12403# FIXME - insert some real tests, host_os isn't really good enough
12404 case $host_os in
12405 darwin*)
12406 if test -n "$STRIP"; then
12407 striplib="$STRIP -x"
12408 old_striplib="$STRIP -S"
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410$as_echo "yes" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
12414 fi
12415 ;;
12416 *)
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
12419 ;;
12420 esac
12421fi
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434 # Report what library types will actually be built
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12436$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12438$as_echo "$can_build_shared" >&6; }
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12441$as_echo_n "checking whether to build shared libraries... " >&6; }
12442 test no = "$can_build_shared" && enable_shared=no
12443
12444 # On AIX, shared libraries and static libraries use the same namespace, and
12445 # are all built from PIC.
12446 case $host_os in
12447 aix3*)
12448 test yes = "$enable_shared" && enable_static=no
12449 if test -n "$RANLIB"; then
12450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12451 postinstall_cmds='$RANLIB $lib'
12452 fi
12453 ;;
12454
12455 aix[4-9]*)
12456 if test ia64 != "$host_cpu"; then
12457 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12458 yes,aix,yes) ;; # shared object as lib.so file only
12459 yes,svr4,*) ;; # shared object as lib.so archive member only
12460 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12461 esac
12462 fi
12463 ;;
12464 esac
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12466$as_echo "$enable_shared" >&6; }
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12469$as_echo_n "checking whether to build static libraries... " >&6; }
12470 # Make sure either enable_shared or enable_static is yes.
12471 test yes = "$enable_shared" || enable_static=yes
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12473$as_echo "$enable_static" >&6; }
12474
12475
12476
12477
12478fi
12479ac_ext=c
12480ac_cpp='$CPP $CPPFLAGS'
12481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483ac_compiler_gnu=$ac_cv_c_compiler_gnu
12484
12485CC=$lt_save_CC
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501 ac_config_commands="$ac_config_commands libtool"
12502
12503
12504
12505
12506# Only expand once:
12507
12508
12509
12510
12511if test "x$enable_docs" = xyes; then
12512 # Extract the first word of "doxygen", so it can be a program name with args.
12513set dummy doxygen; ac_word=$2
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518else
12519 if test -n "$HAVE_DOXYGEN"; then
12520 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_HAVE_DOXYGEN="true"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533done
12534 done
12535IFS=$as_save_IFS
12536
12537 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
12538fi
12539fi
12540HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12541if test -n "$HAVE_DOXYGEN"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12543$as_echo "$HAVE_DOXYGEN" >&6; }
12544else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550 if test $HAVE_DOXYGEN = "false"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
12552$as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
12553 fi
12554else
12555 HAVE_DOXYGEN=false
12556fi
12557 if $HAVE_DOXYGEN; then
12558 HAVE_DOXYGEN_TRUE=
12559 HAVE_DOXYGEN_FALSE='#'
12560else
12561 HAVE_DOXYGEN_TRUE='#'
12562 HAVE_DOXYGEN_FALSE=
12563fi
12564
12565
12566# Check whether --enable-docs was given.
12567if test "${enable_docs+set}" = set; then :
12568 enableval=$enable_docs;
12569fi
12570
12571
12572if test "x$enable_docs" = xyes; then
12573 for ac_prog in pdflatex
12574do
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576set dummy $ac_prog; ac_word=$2
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
12579if ${ac_cv_prog_PDFLATEX+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581else
12582 if test -n "$PDFLATEX"; then
12583 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12584else
12585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_PDFLATEX="$ac_prog"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596done
12597 done
12598IFS=$as_save_IFS
12599
12600fi
12601fi
12602PDFLATEX=$ac_cv_prog_PDFLATEX
12603if test -n "$PDFLATEX"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
12605$as_echo "$PDFLATEX" >&6; }
12606else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
12609fi
12610
12611
12612 test -n "$PDFLATEX" && break
12613done
12614test -n "$PDFLATEX" || PDFLATEX="/bin/false"
12615
12616 for ac_prog in htlatex
12617do
12618 # Extract the first word of "$ac_prog", so it can be a program name with args.
12619set dummy $ac_prog; ac_word=$2
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if ${ac_cv_prog_HTLATEX+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624else
12625 if test -n "$HTLATEX"; then
12626 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
12627else
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_prog_HTLATEX="$ac_prog"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12638 fi
12639done
12640 done
12641IFS=$as_save_IFS
12642
12643fi
12644fi
12645HTLATEX=$ac_cv_prog_HTLATEX
12646if test -n "$HTLATEX"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
12648$as_echo "$HTLATEX" >&6; }
12649else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652fi
12653
12654
12655 test -n "$HTLATEX" && break
12656done
12657test -n "$HTLATEX" || HTLATEX="/bin/false"
12658
12659 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
12660 enable_docs=no
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
12662$as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
12663 fi
12664fi
12665
12666 if test "x$enable_docs" = xyes; then
12667 BUILD_DOCS_TRUE=
12668 BUILD_DOCS_FALSE='#'
12669else
12670 BUILD_DOCS_TRUE='#'
12671 BUILD_DOCS_FALSE=
12672fi
12673
12674
12675# Check whether --enable-examples was given.
12676if test "${enable_examples+set}" = set; then :
12677 enableval=$enable_examples;
12678fi
12679
12680
12681 if test "x$enable_examples" = xyes; then
12682 BUILD_EXAMPLES_TRUE=
12683 BUILD_EXAMPLES_FALSE='#'
12684else
12685 BUILD_EXAMPLES_TRUE='#'
12686 BUILD_EXAMPLES_FALSE=
12687fi
12688
12689
12690
12691
12692cflags_save="$CFLAGS"
12693if test -z "$GCC"; then
12694 case $host in
12695 *-*-irix*)
12696 if test -z "$CC"; then
12697 CC=cc
12698 fi
12699 DEBUG="-g -signed"
12700 CFLAGS="-O2 -w -signed"
12701 PROFILE="-p -g3 -O2 -signed" ;;
12702 sparc-sun-solaris*)
12703 DEBUG="-v -g"
12704 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
12705 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
12706 *)
12707 DEBUG="-g"
12708 CFLAGS="-O"
12709 PROFILE="-g -p" ;;
12710 esac
12711else
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
12714$as_echo_n "checking GCC version... " >&6; }
12715 GCC_VERSION=`$CC -dumpversion`
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
12717$as_echo "$GCC_VERSION" >&6; }
12718 case $host in
12719 *86-*-linux*)
12720 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12721 CFLAGS="-O3 -Wall -Wextra -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
12722# PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
12723 PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
12724
12725 # glibc < 2.1.3 has a serious FP bug in the math inline header
12726 # that will cripple Vorbis. Look to see if the magic FP stack
12727 # clobber is missing in the mathinline header, thus indicating
12728 # the buggy version
12729
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h. */
12732
12733 #define __LIBC_INTERNAL_MATH_INLINES 1
12734 #define __OPTIMIZE__
12735 #include <math.h>
12736
12737_ACEOF
12738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
12740 bad=maybe
12741else
12742 bad=no
12743fi
12744rm -f conftest*
12745
12746 if test ${bad} = "maybe" ;then
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h. */
12749
12750 #define __LIBC_INTERNAL_MATH_INLINES 1
12751 #define __OPTIMIZE__
12752 #include <math.h>
12753
12754_ACEOF
12755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12756 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
12757 bad=no
12758else
12759 bad=yes
12760fi
12761rm -f conftest*
12762
12763 fi
12764 if test ${bad} = "yes" ;then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
12766$as_echo "$as_me: WARNING: " >&2;}
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12768$as_echo "$as_me: WARNING: ********************************************************" >&2;}
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
12770$as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
12772$as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
12774$as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
12776$as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
12778$as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
12780$as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time bug. *" >&5
12782$as_echo "$as_me: WARNING: * a compile-time bug. *" >&2;}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
12784$as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
12786$as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
12788$as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
12790$as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
12792$as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12794$as_echo "$as_me: WARNING: ********************************************************" >&2;}
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
12796$as_echo "$as_me: WARNING: " >&2;}
12797
12798 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
12799 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
12800 fi;;
12801 powerpc-*-linux*spe)
12802 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12803 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
12804 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
12805 powerpc-*-linux*)
12806 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12807 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
12808 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
12809 *-*-linux*)
12810 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12811 CFLAGS="-O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
12812 PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
12813 sparc-sun-*)
12814 sparc_cpu=""
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
12816$as_echo_n "checking if gcc supports -mv8... " >&6; }
12817 old_cflags="$CFLAGS"
12818 CFLAGS="$CFLAGS -mv8"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h. */
12821
12822int
12823main ()
12824{
12825return 0;
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830if ac_fn_c_try_compile "$LINENO"; then :
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12833$as_echo "yes" >&6; }
12834 sparc_cpu="-mv8"
12835
12836fi
12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 CFLAGS="$old_cflags"
12839 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12840 CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12841 PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
12842 *-*-darwin*)
12843 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
12844 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
12845 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
12846 *-*-os2*)
12847 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
12848 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12849 CFLAGS="-O3 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
12850 PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char";;
12851 *)
12852 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12853 CFLAGS="-O3 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12854 PROFILE="-O3 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
12855 esac
12856
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
12858$as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
12859 ac_add_cflags__old_cflags="$CFLAGS"
12860 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862/* end confdefs.h. */
12863#include <stdio.h>
12864int
12865main ()
12866{
12867puts("Hello, World!"); return 0;
12868 ;
12869 return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_link "$LINENO"; then :
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
12875else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877$as_echo "no" >&6; }
12878 CFLAGS="$ac_add_cflags__old_cflags"
12879fi
12880rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882
12883fi
12884CFLAGS="$CFLAGS $cflags_save"
12885
12886
12887ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
12888if test "x$ac_cv_header_memory_h" = xyes; then :
12889 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
12890else
12891 :
12892fi
12893
12894
12895
12896
12897
12898
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12900$as_echo_n "checking for cos in -lm... " >&6; }
12901if ${ac_cv_lib_m_cos+:} false; then :
12902 $as_echo_n "(cached) " >&6
12903else
12904 ac_check_lib_save_LIBS=$LIBS
12905LIBS="-lm $LIBS"
12906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907/* end confdefs.h. */
12908
12909/* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12912#ifdef __cplusplus
12913extern "C"
12914#endif
12915char cos ();
12916int
12917main ()
12918{
12919return cos ();
12920 ;
12921 return 0;
12922}
12923_ACEOF
12924if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_lib_m_cos=yes
12926else
12927 ac_cv_lib_m_cos=no
12928fi
12929rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931LIBS=$ac_check_lib_save_LIBS
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12934$as_echo "$ac_cv_lib_m_cos" >&6; }
12935if test "x$ac_cv_lib_m_cos" = xyes; then :
12936 VORBIS_LIBS="-lm"
12937else
12938 VORBIS_LIBS=""
12939fi
12940
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12942$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12943if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945else
12946 ac_check_lib_save_LIBS=$LIBS
12947LIBS="-lpthread $LIBS"
12948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949/* end confdefs.h. */
12950
12951/* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954#ifdef __cplusplus
12955extern "C"
12956#endif
12957char pthread_create ();
12958int
12959main ()
12960{
12961return pthread_create ();
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_lib_pthread_pthread_create=yes
12968else
12969 ac_cv_lib_pthread_pthread_create=no
12970fi
12971rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973LIBS=$ac_check_lib_save_LIBS
12974fi
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12976$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12977if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12978 pthread_lib="-lpthread"
12979else
12980 :
12981fi
12982
12983
12984
12985
12986if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12987 if test -n "$ac_tool_prefix"; then
12988 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12989set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991$as_echo_n "checking for $ac_word... " >&6; }
12992if ${ac_cv_path_PKG_CONFIG+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994else
12995 case $PKG_CONFIG in
12996 [\\/]* | ?:[\\/]*)
12997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12998 ;;
12999 *)
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011done
13012 done
13013IFS=$as_save_IFS
13014
13015 ;;
13016esac
13017fi
13018PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13019if test -n "$PKG_CONFIG"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13021$as_echo "$PKG_CONFIG" >&6; }
13022else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
13025fi
13026
13027
13028fi
13029if test -z "$ac_cv_path_PKG_CONFIG"; then
13030 ac_pt_PKG_CONFIG=$PKG_CONFIG
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032set dummy pkg-config; ac_word=$2
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034$as_echo_n "checking for $ac_word... " >&6; }
13035if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037else
13038 case $ac_pt_PKG_CONFIG in
13039 [\\/]* | ?:[\\/]*)
13040 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13041 ;;
13042 *)
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055 done
13056IFS=$as_save_IFS
13057
13058 ;;
13059esac
13060fi
13061ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13062if test -n "$ac_pt_PKG_CONFIG"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13064$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070 if test "x$ac_pt_PKG_CONFIG" = x; then
13071 PKG_CONFIG=""
13072 else
13073 case $cross_compiling:$ac_tool_warned in
13074yes:)
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077ac_tool_warned=yes ;;
13078esac
13079 PKG_CONFIG=$ac_pt_PKG_CONFIG
13080 fi
13081else
13082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13083fi
13084
13085fi
13086if test -n "$PKG_CONFIG"; then
13087 _pkg_min_version=0.9.0
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13089$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13090 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092$as_echo "yes" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
13096 PKG_CONFIG=""
13097 fi
13098
13099fi
13100
13101HAVE_OGG=no
13102if test "x$PKG_CONFIG" != "x"
13103then
13104
13105pkg_failed=no
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
13107$as_echo_n "checking for OGG... " >&6; }
13108
13109if test -n "$PKG_CONFIG"; then
13110 if test -n "$OGG_CFLAGS"; then
13111 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
13112 else
13113 if test -n "$PKG_CONFIG" && \
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
13115 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
13116 ac_status=$?
13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; }; then
13119 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
13120else
13121 pkg_failed=yes
13122fi
13123 fi
13124else
13125 pkg_failed=untried
13126fi
13127if test -n "$PKG_CONFIG"; then
13128 if test -n "$OGG_LIBS"; then
13129 pkg_cv_OGG_LIBS="$OGG_LIBS"
13130 else
13131 if test -n "$PKG_CONFIG" && \
13132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
13133 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }; then
13137 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
13138else
13139 pkg_failed=yes
13140fi
13141 fi
13142else
13143 pkg_failed=untried
13144fi
13145
13146
13147
13148if test $pkg_failed = yes; then
13149
13150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13151 _pkg_short_errors_supported=yes
13152else
13153 _pkg_short_errors_supported=no
13154fi
13155 if test $_pkg_short_errors_supported = yes; then
13156 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
13157 else
13158 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
13159 fi
13160 # Put the nasty error message in config.log where it belongs
13161 echo "$OGG_PKG_ERRORS" >&5
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165 HAVE_OGG=no
13166elif test $pkg_failed = untried; then
13167 HAVE_OGG=no
13168else
13169 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
13170 OGG_LIBS=$pkg_cv_OGG_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172$as_echo "yes" >&6; }
13173 HAVE_OGG=yes
13174fi
13175fi
13176if test "x$HAVE_OGG" = "xno"
13177then
13178
13179# Check whether --with-ogg was given.
13180if test "${with_ogg+set}" = set; then :
13181 withval=$with_ogg; ogg_prefix="$withval"
13182else
13183 ogg_prefix=""
13184fi
13185
13186
13187# Check whether --with-ogg-libraries was given.
13188if test "${with_ogg_libraries+set}" = set; then :
13189 withval=$with_ogg_libraries; ogg_libraries="$withval"
13190else
13191 ogg_libraries=""
13192fi
13193
13194
13195# Check whether --with-ogg-includes was given.
13196if test "${with_ogg_includes+set}" = set; then :
13197 withval=$with_ogg_includes; ogg_includes="$withval"
13198else
13199 ogg_includes=""
13200fi
13201
13202# Check whether --enable-oggtest was given.
13203if test "${enable_oggtest+set}" = set; then :
13204 enableval=$enable_oggtest;
13205else
13206 enable_oggtest=yes
13207fi
13208
13209
13210 if test "x$ogg_libraries" != "x" ; then
13211 OGG_LIBS="-L$ogg_libraries"
13212 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
13213 OGG_LIBS=""
13214 elif test "x$ogg_prefix" != "x" ; then
13215 OGG_LIBS="-L$ogg_prefix/lib"
13216 elif test "x$prefix" != "xNONE" ; then
13217 OGG_LIBS="-L$prefix/lib"
13218 fi
13219
13220 if test "x$ogg_prefix" != "xno" ; then
13221 OGG_LIBS="$OGG_LIBS -logg"
13222 fi
13223
13224 if test "x$ogg_includes" != "x" ; then
13225 OGG_CFLAGS="-I$ogg_includes"
13226 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
13227 OGG_CFLAGS=""
13228 elif test "x$ogg_prefix" != "x" ; then
13229 OGG_CFLAGS="-I$ogg_prefix/include"
13230 elif test "x$prefix" != "xNONE"; then
13231 OGG_CFLAGS="-I$prefix/include"
13232 fi
13233
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
13235$as_echo_n "checking for Ogg... " >&6; }
13236 if test "x$ogg_prefix" = "xno" ; then
13237 no_ogg="disabled"
13238 enable_oggtest="no"
13239 else
13240 no_ogg=""
13241 fi
13242
13243
13244 if test "x$enable_oggtest" = "xyes" ; then
13245 ac_save_CFLAGS="$CFLAGS"
13246 ac_save_LIBS="$LIBS"
13247 CFLAGS="$CFLAGS $OGG_CFLAGS"
13248 LIBS="$LIBS $OGG_LIBS"
13249 rm -f conf.oggtest
13250 if test "$cross_compiling" = yes; then :
13251 echo $ac_n "cross compiling; assumed OK... $ac_c"
13252else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254/* end confdefs.h. */
13255
13256#include <stdio.h>
13257#include <stdlib.h>
13258#include <string.h>
13259#include <ogg/ogg.h>
13260
13261int main ()
13262{
13263 system("touch conf.oggtest");
13264 return 0;
13265}
13266
13267
13268_ACEOF
13269if ac_fn_c_try_run "$LINENO"; then :
13270
13271else
13272 no_ogg=yes
13273fi
13274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13275 conftest.$ac_objext conftest.beam conftest.$ac_ext
13276fi
13277
13278 CFLAGS="$ac_save_CFLAGS"
13279 LIBS="$ac_save_LIBS"
13280 fi
13281
13282 if test "x$no_ogg" = "xdisabled" ; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
13285 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
13286 elif test "x$no_ogg" = "x" ; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13288$as_echo "yes" >&6; }
13289 :
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
13293 if test -f conf.oggtest ; then
13294 :
13295 else
13296 echo "*** Could not run Ogg test program, checking why..."
13297 CFLAGS="$CFLAGS $OGG_CFLAGS"
13298 LIBS="$LIBS $OGG_LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300/* end confdefs.h. */
13301
13302#include <stdio.h>
13303#include <ogg/ogg.h>
13304
13305int
13306main ()
13307{
13308 return 0;
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313if ac_fn_c_try_link "$LINENO"; then :
13314 echo "*** The test program compiled, but did not run. This usually means"
13315 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
13316 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
13317 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13318 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13319 echo "*** is required on your system"
13320 echo "***"
13321 echo "*** If you have an old version installed, it is best to remove it, although"
13322 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13323else
13324 echo "*** The test program failed to compile or link. See the file config.log for the"
13325 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
13326 echo "*** or that you have moved Ogg since it was installed."
13327fi
13328rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 CFLAGS="$ac_save_CFLAGS"
13331 LIBS="$ac_save_LIBS"
13332 fi
13333 OGG_CFLAGS=""
13334 OGG_LIBS=""
13335 as_fn_error $? "must have Ogg installed!" "$LINENO" 5
13336 fi
13337
13338
13339 rm -f conf.oggtest
13340
13341 libs_save=$LIBS
13342 LIBS="$OGG_LIBS $VORBIS_LIBS"
13343 ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
13344if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
13345
13346else
13347 as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
13348fi
13349
13350 LIBS=$libs_save
13351fi
13352
13353
13354ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13355if test "x$ac_cv_type_size_t" = xyes; then :
13356
13357else
13358
13359cat >>confdefs.h <<_ACEOF
13360#define size_t unsigned int
13361_ACEOF
13362
13363fi
13364
13365# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13366# for constant arguments. Useless!
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13368$as_echo_n "checking for working alloca.h... " >&6; }
13369if ${ac_cv_working_alloca_h+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371else
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h. */
13374#include <alloca.h>
13375int
13376main ()
13377{
13378char *p = (char *) alloca (2 * sizeof (int));
13379 if (p) return 0;
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384if ac_fn_c_try_link "$LINENO"; then :
13385 ac_cv_working_alloca_h=yes
13386else
13387 ac_cv_working_alloca_h=no
13388fi
13389rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13393$as_echo "$ac_cv_working_alloca_h" >&6; }
13394if test $ac_cv_working_alloca_h = yes; then
13395
13396$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13397
13398fi
13399
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13401$as_echo_n "checking for alloca... " >&6; }
13402if ${ac_cv_func_alloca_works+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404else
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406/* end confdefs.h. */
13407#ifdef __GNUC__
13408# define alloca __builtin_alloca
13409#else
13410# ifdef _MSC_VER
13411# include <malloc.h>
13412# define alloca _alloca
13413# else
13414# ifdef HAVE_ALLOCA_H
13415# include <alloca.h>
13416# else
13417# ifdef _AIX
13418 #pragma alloca
13419# else
13420# ifndef alloca /* predefined by HP cc +Olibcalls */
13421void *alloca (size_t);
13422# endif
13423# endif
13424# endif
13425# endif
13426#endif
13427
13428int
13429main ()
13430{
13431char *p = (char *) alloca (1);
13432 if (p) return 0;
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437if ac_fn_c_try_link "$LINENO"; then :
13438 ac_cv_func_alloca_works=yes
13439else
13440 ac_cv_func_alloca_works=no
13441fi
13442rm -f core conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444fi
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13446$as_echo "$ac_cv_func_alloca_works" >&6; }
13447
13448if test $ac_cv_func_alloca_works = yes; then
13449
13450$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13451
13452else
13453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13454# that cause trouble. Some versions do not even contain alloca or
13455# contain a buggy version. If you still want to use their alloca,
13456# use ar to extract alloca.o from them instead of compiling alloca.c.
13457
13458ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13459
13460$as_echo "#define C_ALLOCA 1" >>confdefs.h
13461
13462
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13464$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13465if ${ac_cv_os_cray+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467else
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469/* end confdefs.h. */
13470#if defined CRAY && ! defined CRAY2
13471webecray
13472#else
13473wenotbecray
13474#endif
13475
13476_ACEOF
13477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13478 $EGREP "webecray" >/dev/null 2>&1; then :
13479 ac_cv_os_cray=yes
13480else
13481 ac_cv_os_cray=no
13482fi
13483rm -f conftest*
13484
13485fi
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13487$as_echo "$ac_cv_os_cray" >&6; }
13488if test $ac_cv_os_cray = yes; then
13489 for ac_func in _getb67 GETB67 getb67; do
13490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13491ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13492if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13493
13494cat >>confdefs.h <<_ACEOF
13495#define CRAY_STACKSEG_END $ac_func
13496_ACEOF
13497
13498 break
13499fi
13500
13501 done
13502fi
13503
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13505$as_echo_n "checking stack direction for C alloca... " >&6; }
13506if ${ac_cv_c_stack_direction+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508else
13509 if test "$cross_compiling" = yes; then :
13510 ac_cv_c_stack_direction=0
13511else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h. */
13514$ac_includes_default
13515int
13516find_stack_direction (int *addr, int depth)
13517{
13518 int dir, dummy = 0;
13519 if (! addr)
13520 addr = &dummy;
13521 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13522 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13523 return dir + dummy;
13524}
13525
13526int
13527main (int argc, char **argv)
13528{
13529 return find_stack_direction (0, argc + !argv + 20) < 0;
13530}
13531_ACEOF
13532if ac_fn_c_try_run "$LINENO"; then :
13533 ac_cv_c_stack_direction=1
13534else
13535 ac_cv_c_stack_direction=-1
13536fi
13537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13538 conftest.$ac_objext conftest.beam conftest.$ac_ext
13539fi
13540
13541fi
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13543$as_echo "$ac_cv_c_stack_direction" >&6; }
13544cat >>confdefs.h <<_ACEOF
13545#define STACK_DIRECTION $ac_cv_c_stack_direction
13546_ACEOF
13547
13548
13549fi
13550
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13552$as_echo_n "checking for working memcmp... " >&6; }
13553if ${ac_cv_func_memcmp_working+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555else
13556 if test "$cross_compiling" = yes; then :
13557 ac_cv_func_memcmp_working=no
13558else
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560/* end confdefs.h. */
13561$ac_includes_default
13562int
13563main ()
13564{
13565
13566 /* Some versions of memcmp are not 8-bit clean. */
13567 char c0 = '\100', c1 = '\200', c2 = '\201';
13568 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13569 return 1;
13570
13571 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13572 or more and with at least one buffer not starting on a 4-byte boundary.
13573 William Lewis provided this test program. */
13574 {
13575 char foo[21];
13576 char bar[21];
13577 int i;
13578 for (i = 0; i < 4; i++)
13579 {
13580 char *a = foo + i;
13581 char *b = bar + i;
13582 strcpy (a, "--------01111111");
13583 strcpy (b, "--------10000000");
13584 if (memcmp (a, b, 16) >= 0)
13585 return 1;
13586 }
13587 return 0;
13588 }
13589
13590 ;
13591 return 0;
13592}
13593_ACEOF
13594if ac_fn_c_try_run "$LINENO"; then :
13595 ac_cv_func_memcmp_working=yes
13596else
13597 ac_cv_func_memcmp_working=no
13598fi
13599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13600 conftest.$ac_objext conftest.beam conftest.$ac_ext
13601fi
13602
13603fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13605$as_echo "$ac_cv_func_memcmp_working" >&6; }
13606test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13607 *" memcmp.$ac_objext "* ) ;;
13608 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13609 ;;
13610esac
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
13623
13624ac_config_headers="$ac_config_headers config.h"
13625
13626
13627cat >confcache <<\_ACEOF
13628# This file is a shell script that caches the results of configure
13629# tests run on this system so they can be shared between configure
13630# scripts and configure runs, see configure's option --config-cache.
13631# It is not useful on other systems. If it contains results you don't
13632# want to keep, you may remove or edit it.
13633#
13634# config.status only pays attention to the cache file if you give it
13635# the --recheck option to rerun configure.
13636#
13637# `ac_cv_env_foo' variables (set or unset) will be overridden when
13638# loading this file, other *unset* `ac_cv_foo' will be assigned the
13639# following values.
13640
13641_ACEOF
13642
13643# The following way of writing the cache mishandles newlines in values,
13644# but we know of no workaround that is simple, portable, and efficient.
13645# So, we kill variables containing newlines.
13646# Ultrix sh set writes to stderr and can't be redirected directly,
13647# and sets the high bit in the cache file unless we assign to the vars.
13648(
13649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13650 eval ac_val=\$$ac_var
13651 case $ac_val in #(
13652 *${as_nl}*)
13653 case $ac_var in #(
13654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13656 esac
13657 case $ac_var in #(
13658 _ | IFS | as_nl) ;; #(
13659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13660 *) { eval $ac_var=; unset $ac_var;} ;;
13661 esac ;;
13662 esac
13663 done
13664
13665 (set) 2>&1 |
13666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13667 *${as_nl}ac_space=\ *)
13668 # `set' does not quote correctly, so add quotes: double-quote
13669 # substitution turns \\\\ into \\, and sed turns \\ into \.
13670 sed -n \
13671 "s/'/'\\\\''/g;
13672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13673 ;; #(
13674 *)
13675 # `set' quotes correctly as required by POSIX, so do not add quotes.
13676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13677 ;;
13678 esac |
13679 sort
13680) |
13681 sed '
13682 /^ac_cv_env_/b end
13683 t clear
13684 :clear
13685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13686 t end
13687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13688 :end' >>confcache
13689if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13690 if test -w "$cache_file"; then
13691 if test "x$cache_file" != "x/dev/null"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13693$as_echo "$as_me: updating cache $cache_file" >&6;}
13694 if test ! -f "$cache_file" || test -h "$cache_file"; then
13695 cat confcache >"$cache_file"
13696 else
13697 case $cache_file in #(
13698 */* | ?:*)
13699 mv -f confcache "$cache_file"$$ &&
13700 mv -f "$cache_file"$$ "$cache_file" ;; #(
13701 *)
13702 mv -f confcache "$cache_file" ;;
13703 esac
13704 fi
13705 fi
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13708$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13709 fi
13710fi
13711rm -f confcache
13712
13713test "x$prefix" = xNONE && prefix=$ac_default_prefix
13714# Let make expand exec_prefix.
13715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13716
13717DEFS=-DHAVE_CONFIG_H
13718
13719ac_libobjs=
13720ac_ltlibobjs=
13721U=
13722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13723 # 1. Remove the extension, and $U if already installed.
13724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13727 # will be set to the directory where LIBOBJS objects are built.
13728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13730done
13731LIBOBJS=$ac_libobjs
13732
13733LTLIBOBJS=$ac_ltlibobjs
13734
13735
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13737$as_echo_n "checking that generated files are newer than configure... " >&6; }
13738 if test -n "$am_sleep_pid"; then
13739 # Hide warnings about reused PIDs.
13740 wait $am_sleep_pid 2>/dev/null
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13743$as_echo "done" >&6; }
13744 if test -n "$EXEEXT"; then
13745 am__EXEEXT_TRUE=
13746 am__EXEEXT_FALSE='#'
13747else
13748 am__EXEEXT_TRUE='#'
13749 am__EXEEXT_FALSE=
13750fi
13751
13752if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13754Usually this means the macro was only invoked conditionally." "$LINENO" 5
13755fi
13756if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13757 as_fn_error $? "conditional \"AMDEP\" was never defined.
13758Usually this means the macro was only invoked conditionally." "$LINENO" 5
13759fi
13760if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13762Usually this means the macro was only invoked conditionally." "$LINENO" 5
13763fi
13764if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13765 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13766Usually this means the macro was only invoked conditionally." "$LINENO" 5
13767fi
13768if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13769 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13770Usually this means the macro was only invoked conditionally." "$LINENO" 5
13771fi
13772if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
13773 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
13774Usually this means the macro was only invoked conditionally." "$LINENO" 5
13775fi
13776
13777: "${CONFIG_STATUS=./config.status}"
13778ac_write_fail=0
13779ac_clean_files_save=$ac_clean_files
13780ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13782$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13783as_write_fail=0
13784cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13785#! $SHELL
13786# Generated by $as_me.
13787# Run this file to recreate the current configuration.
13788# Compiler output produced by configure, useful for debugging
13789# configure, is in config.log if it exists.
13790
13791debug=false
13792ac_cs_recheck=false
13793ac_cs_silent=false
13794
13795SHELL=\${CONFIG_SHELL-$SHELL}
13796export SHELL
13797_ASEOF
13798cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13799## -------------------- ##
13800## M4sh Initialization. ##
13801## -------------------- ##
13802
13803# Be more Bourne compatible
13804DUALCASE=1; export DUALCASE # for MKS sh
13805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13806 emulate sh
13807 NULLCMD=:
13808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13809 # is contrary to our usage. Disable this feature.
13810 alias -g '${1+"$@"}'='"$@"'
13811 setopt NO_GLOB_SUBST
13812else
13813 case `(set -o) 2>/dev/null` in #(
13814 *posix*) :
13815 set -o posix ;; #(
13816 *) :
13817 ;;
13818esac
13819fi
13820
13821
13822as_nl='
13823'
13824export as_nl
13825# Printing a long string crashes Solaris 7 /usr/bin/printf.
13826as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13828as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13829# Prefer a ksh shell builtin over an external printf program on Solaris,
13830# but without wasting forks for bash or zsh.
13831if test -z "$BASH_VERSION$ZSH_VERSION" \
13832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13833 as_echo='print -r --'
13834 as_echo_n='print -rn --'
13835elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13836 as_echo='printf %s\n'
13837 as_echo_n='printf %s'
13838else
13839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13841 as_echo_n='/usr/ucb/echo -n'
13842 else
13843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13844 as_echo_n_body='eval
13845 arg=$1;
13846 case $arg in #(
13847 *"$as_nl"*)
13848 expr "X$arg" : "X\\(.*\\)$as_nl";
13849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13850 esac;
13851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13852 '
13853 export as_echo_n_body
13854 as_echo_n='sh -c $as_echo_n_body as_echo'
13855 fi
13856 export as_echo_body
13857 as_echo='sh -c $as_echo_body as_echo'
13858fi
13859
13860# The user is always right.
13861if test "${PATH_SEPARATOR+set}" != set; then
13862 PATH_SEPARATOR=:
13863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13865 PATH_SEPARATOR=';'
13866 }
13867fi
13868
13869
13870# IFS
13871# We need space, tab and new line, in precisely that order. Quoting is
13872# there to prevent editors from complaining about space-tab.
13873# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13874# splitting by setting IFS to empty value.)
13875IFS=" "" $as_nl"
13876
13877# Find who we are. Look in the path if we contain no directory separator.
13878as_myself=
13879case $0 in #((
13880 *[\\/]* ) as_myself=$0 ;;
13881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882for as_dir in $PATH
13883do
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13887 done
13888IFS=$as_save_IFS
13889
13890 ;;
13891esac
13892# We did not find ourselves, most probably we were run as `sh COMMAND'
13893# in which case we are not to be found in the path.
13894if test "x$as_myself" = x; then
13895 as_myself=$0
13896fi
13897if test ! -f "$as_myself"; then
13898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13899 exit 1
13900fi
13901
13902# Unset variables that we do not need and which cause bugs (e.g. in
13903# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13904# suppresses any "Segmentation fault" message there. '((' could
13905# trigger a bug in pdksh 5.2.14.
13906for as_var in BASH_ENV ENV MAIL MAILPATH
13907do eval test x\${$as_var+set} = xset \
13908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13909done
13910PS1='$ '
13911PS2='> '
13912PS4='+ '
13913
13914# NLS nuisances.
13915LC_ALL=C
13916export LC_ALL
13917LANGUAGE=C
13918export LANGUAGE
13919
13920# CDPATH.
13921(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13922
13923
13924# as_fn_error STATUS ERROR [LINENO LOG_FD]
13925# ----------------------------------------
13926# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13927# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13928# script with STATUS, using 1 if that was 0.
13929as_fn_error ()
13930{
13931 as_status=$1; test $as_status -eq 0 && as_status=1
13932 if test "$4"; then
13933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13935 fi
13936 $as_echo "$as_me: error: $2" >&2
13937 as_fn_exit $as_status
13938} # as_fn_error
13939
13940
13941# as_fn_set_status STATUS
13942# -----------------------
13943# Set $? to STATUS, without forking.
13944as_fn_set_status ()
13945{
13946 return $1
13947} # as_fn_set_status
13948
13949# as_fn_exit STATUS
13950# -----------------
13951# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13952as_fn_exit ()
13953{
13954 set +e
13955 as_fn_set_status $1
13956 exit $1
13957} # as_fn_exit
13958
13959# as_fn_unset VAR
13960# ---------------
13961# Portably unset VAR.
13962as_fn_unset ()
13963{
13964 { eval $1=; unset $1;}
13965}
13966as_unset=as_fn_unset
13967# as_fn_append VAR VALUE
13968# ----------------------
13969# Append the text in VALUE to the end of the definition contained in VAR. Take
13970# advantage of any shell optimizations that allow amortized linear growth over
13971# repeated appends, instead of the typical quadratic growth present in naive
13972# implementations.
13973if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13974 eval 'as_fn_append ()
13975 {
13976 eval $1+=\$2
13977 }'
13978else
13979 as_fn_append ()
13980 {
13981 eval $1=\$$1\$2
13982 }
13983fi # as_fn_append
13984
13985# as_fn_arith ARG...
13986# ------------------
13987# Perform arithmetic evaluation on the ARGs, and store the result in the
13988# global $as_val. Take advantage of shells that can avoid forks. The arguments
13989# must be portable across $(()) and expr.
13990if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13991 eval 'as_fn_arith ()
13992 {
13993 as_val=$(( $* ))
13994 }'
13995else
13996 as_fn_arith ()
13997 {
13998 as_val=`expr "$@" || test $? -eq 1`
13999 }
14000fi # as_fn_arith
14001
14002
14003if expr a : '\(a\)' >/dev/null 2>&1 &&
14004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14005 as_expr=expr
14006else
14007 as_expr=false
14008fi
14009
14010if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14011 as_basename=basename
14012else
14013 as_basename=false
14014fi
14015
14016if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14017 as_dirname=dirname
14018else
14019 as_dirname=false
14020fi
14021
14022as_me=`$as_basename -- "$0" ||
14023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14024 X"$0" : 'X\(//\)$' \| \
14025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14026$as_echo X/"$0" |
14027 sed '/^.*\/\([^/][^/]*\)\/*$/{
14028 s//\1/
14029 q
14030 }
14031 /^X\/\(\/\/\)$/{
14032 s//\1/
14033 q
14034 }
14035 /^X\/\(\/\).*/{
14036 s//\1/
14037 q
14038 }
14039 s/.*/./; q'`
14040
14041# Avoid depending upon Character Ranges.
14042as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14044as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14045as_cr_digits='0123456789'
14046as_cr_alnum=$as_cr_Letters$as_cr_digits
14047
14048ECHO_C= ECHO_N= ECHO_T=
14049case `echo -n x` in #(((((
14050-n*)
14051 case `echo 'xy\c'` in
14052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14053 xy) ECHO_C='\c';;
14054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14055 ECHO_T=' ';;
14056 esac;;
14057*)
14058 ECHO_N='-n';;
14059esac
14060
14061rm -f conf$$ conf$$.exe conf$$.file
14062if test -d conf$$.dir; then
14063 rm -f conf$$.dir/conf$$.file
14064else
14065 rm -f conf$$.dir
14066 mkdir conf$$.dir 2>/dev/null
14067fi
14068if (echo >conf$$.file) 2>/dev/null; then
14069 if ln -s conf$$.file conf$$ 2>/dev/null; then
14070 as_ln_s='ln -s'
14071 # ... but there are two gotchas:
14072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14074 # In both cases, we have to default to `cp -pR'.
14075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14076 as_ln_s='cp -pR'
14077 elif ln conf$$.file conf$$ 2>/dev/null; then
14078 as_ln_s=ln
14079 else
14080 as_ln_s='cp -pR'
14081 fi
14082else
14083 as_ln_s='cp -pR'
14084fi
14085rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14086rmdir conf$$.dir 2>/dev/null
14087
14088
14089# as_fn_mkdir_p
14090# -------------
14091# Create "$as_dir" as a directory, including parents if necessary.
14092as_fn_mkdir_p ()
14093{
14094
14095 case $as_dir in #(
14096 -*) as_dir=./$as_dir;;
14097 esac
14098 test -d "$as_dir" || eval $as_mkdir_p || {
14099 as_dirs=
14100 while :; do
14101 case $as_dir in #(
14102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14103 *) as_qdir=$as_dir;;
14104 esac
14105 as_dirs="'$as_qdir' $as_dirs"
14106 as_dir=`$as_dirname -- "$as_dir" ||
14107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14108 X"$as_dir" : 'X\(//\)[^/]' \| \
14109 X"$as_dir" : 'X\(//\)$' \| \
14110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14111$as_echo X"$as_dir" |
14112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14113 s//\1/
14114 q
14115 }
14116 /^X\(\/\/\)[^/].*/{
14117 s//\1/
14118 q
14119 }
14120 /^X\(\/\/\)$/{
14121 s//\1/
14122 q
14123 }
14124 /^X\(\/\).*/{
14125 s//\1/
14126 q
14127 }
14128 s/.*/./; q'`
14129 test -d "$as_dir" && break
14130 done
14131 test -z "$as_dirs" || eval "mkdir $as_dirs"
14132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14133
14134
14135} # as_fn_mkdir_p
14136if mkdir -p . 2>/dev/null; then
14137 as_mkdir_p='mkdir -p "$as_dir"'
14138else
14139 test -d ./-p && rmdir ./-p
14140 as_mkdir_p=false
14141fi
14142
14143
14144# as_fn_executable_p FILE
14145# -----------------------
14146# Test if FILE is an executable regular file.
14147as_fn_executable_p ()
14148{
14149 test -f "$1" && test -x "$1"
14150} # as_fn_executable_p
14151as_test_x='test -x'
14152as_executable_p=as_fn_executable_p
14153
14154# Sed expression to map a string onto a valid CPP name.
14155as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14156
14157# Sed expression to map a string onto a valid variable name.
14158as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14159
14160
14161exec 6>&1
14162## ----------------------------------- ##
14163## Main body of $CONFIG_STATUS script. ##
14164## ----------------------------------- ##
14165_ASEOF
14166test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14167
14168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14169# Save the log message, to keep $0 and so on meaningful, and to
14170# report actual input values of CONFIG_FILES etc. instead of their
14171# values after options handling.
14172ac_log="
14173This file was extended by libvorbis $as_me 1.3.7, which was
14174generated by GNU Autoconf 2.69. Invocation command line was
14175
14176 CONFIG_FILES = $CONFIG_FILES
14177 CONFIG_HEADERS = $CONFIG_HEADERS
14178 CONFIG_LINKS = $CONFIG_LINKS
14179 CONFIG_COMMANDS = $CONFIG_COMMANDS
14180 $ $0 $@
14181
14182on `(hostname || uname -n) 2>/dev/null | sed 1q`
14183"
14184
14185_ACEOF
14186
14187case $ac_config_files in *"
14188"*) set x $ac_config_files; shift; ac_config_files=$*;;
14189esac
14190
14191case $ac_config_headers in *"
14192"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14193esac
14194
14195
14196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14197# Files that config.status was made for.
14198config_files="$ac_config_files"
14199config_headers="$ac_config_headers"
14200config_commands="$ac_config_commands"
14201
14202_ACEOF
14203
14204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205ac_cs_usage="\
14206\`$as_me' instantiates files and other configuration actions
14207from templates according to the current configuration. Unless the files
14208and actions are specified as TAGs, all are instantiated by default.
14209
14210Usage: $0 [OPTION]... [TAG]...
14211
14212 -h, --help print this help, then exit
14213 -V, --version print version number and configuration settings, then exit
14214 --config print configuration, then exit
14215 -q, --quiet, --silent
14216 do not print progress messages
14217 -d, --debug don't remove temporary files
14218 --recheck update $as_me by reconfiguring in the same conditions
14219 --file=FILE[:TEMPLATE]
14220 instantiate the configuration file FILE
14221 --header=FILE[:TEMPLATE]
14222 instantiate the configuration header FILE
14223
14224Configuration files:
14225$config_files
14226
14227Configuration headers:
14228$config_headers
14229
14230Configuration commands:
14231$config_commands
14232
14233Report bugs to <vorbis-dev@xiph.org>."
14234
14235_ACEOF
14236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14237ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14238ac_cs_version="\\
14239libvorbis config.status 1.3.7
14240configured by $0, generated by GNU Autoconf 2.69,
14241 with options \\"\$ac_cs_config\\"
14242
14243Copyright (C) 2012 Free Software Foundation, Inc.
14244This config.status script is free software; the Free Software Foundation
14245gives unlimited permission to copy, distribute and modify it."
14246
14247ac_pwd='$ac_pwd'
14248srcdir='$srcdir'
14249INSTALL='$INSTALL'
14250MKDIR_P='$MKDIR_P'
14251AWK='$AWK'
14252test -n "\$AWK" || AWK=awk
14253_ACEOF
14254
14255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14256# The default lists apply if the user does not specify any file.
14257ac_need_defaults=:
14258while test $# != 0
14259do
14260 case $1 in
14261 --*=?*)
14262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14264 ac_shift=:
14265 ;;
14266 --*=)
14267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14268 ac_optarg=
14269 ac_shift=:
14270 ;;
14271 *)
14272 ac_option=$1
14273 ac_optarg=$2
14274 ac_shift=shift
14275 ;;
14276 esac
14277
14278 case $ac_option in
14279 # Handling of the options.
14280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14281 ac_cs_recheck=: ;;
14282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14283 $as_echo "$ac_cs_version"; exit ;;
14284 --config | --confi | --conf | --con | --co | --c )
14285 $as_echo "$ac_cs_config"; exit ;;
14286 --debug | --debu | --deb | --de | --d | -d )
14287 debug=: ;;
14288 --file | --fil | --fi | --f )
14289 $ac_shift
14290 case $ac_optarg in
14291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14292 '') as_fn_error $? "missing file argument" ;;
14293 esac
14294 as_fn_append CONFIG_FILES " '$ac_optarg'"
14295 ac_need_defaults=false;;
14296 --header | --heade | --head | --hea )
14297 $ac_shift
14298 case $ac_optarg in
14299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14300 esac
14301 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14302 ac_need_defaults=false;;
14303 --he | --h)
14304 # Conflict between --help and --header
14305 as_fn_error $? "ambiguous option: \`$1'
14306Try \`$0 --help' for more information.";;
14307 --help | --hel | -h )
14308 $as_echo "$ac_cs_usage"; exit ;;
14309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14311 ac_cs_silent=: ;;
14312
14313 # This is an error.
14314 -*) as_fn_error $? "unrecognized option: \`$1'
14315Try \`$0 --help' for more information." ;;
14316
14317 *) as_fn_append ac_config_targets " $1"
14318 ac_need_defaults=false ;;
14319
14320 esac
14321 shift
14322done
14323
14324ac_configure_extra_args=
14325
14326if $ac_cs_silent; then
14327 exec 6>/dev/null
14328 ac_configure_extra_args="$ac_configure_extra_args --silent"
14329fi
14330
14331_ACEOF
14332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14333if \$ac_cs_recheck; then
14334 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14335 shift
14336 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14337 CONFIG_SHELL='$SHELL'
14338 export CONFIG_SHELL
14339 exec "\$@"
14340fi
14341
14342_ACEOF
14343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14344exec 5>>config.log
14345{
14346 echo
14347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14348## Running $as_me. ##
14349_ASBOX
14350 $as_echo "$ac_log"
14351} >&5
14352
14353_ACEOF
14354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14355#
14356# INIT-COMMANDS
14357#
14358AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14359
14360
14361# The HP-UX ksh and POSIX shell print the target directory to stdout
14362# if CDPATH is set.
14363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14364
14365sed_quote_subst='$sed_quote_subst'
14366double_quote_subst='$double_quote_subst'
14367delay_variable_subst='$delay_variable_subst'
14368AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14369DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14370OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14371macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14376enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14377shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14378SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14379ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14380PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14381host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14382host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14383host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14384build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14385build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14386build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14387SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14388Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14389GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14390EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14391FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14392LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14393NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14394LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14395max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14396ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14397exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14398lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14399lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14400lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14401lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14402lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14403reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14404reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14405deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14406file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14407file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14408want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14409sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14410AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14411AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14412archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14413STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14414RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14415old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14416old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14417old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14418lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14419CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14420CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14421compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14422GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14423lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14424lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14425lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14426lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14427lt_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"`'
14428lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14429nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14430lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14431lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14432objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14433MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14434lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14435lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14436lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14437lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14438lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14439need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14440MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14441DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14442NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14443LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14444OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14445OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14446libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14447shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14448extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14449archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14450enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14451export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14452whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14453compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14454old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14455old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14456archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14457archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14458module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14459module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14460with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14461allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14462no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14463hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14464hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14465hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14466hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14467hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14468hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14469hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14470inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14471link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14472always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14473export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14474exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14475include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14476prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14477postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14478file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14479variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14480need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14481need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14482version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14483runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14484shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14485shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14486libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14487library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14488soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14489install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14490postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14491postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14492finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14493finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14494hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14495sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14496configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14497configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14498hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14499enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14500enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14501enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14502old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14503striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14504
14505LTCC='$LTCC'
14506LTCFLAGS='$LTCFLAGS'
14507compiler='$compiler_DEFAULT'
14508
14509# A function that is used when there is no print builtin or printf.
14510func_fallback_echo ()
14511{
14512 eval 'cat <<_LTECHO_EOF
14513\$1
14514_LTECHO_EOF'
14515}
14516
14517# Quote evaled strings.
14518for var in AS \
14519DLLTOOL \
14520OBJDUMP \
14521SHELL \
14522ECHO \
14523PATH_SEPARATOR \
14524SED \
14525GREP \
14526EGREP \
14527FGREP \
14528LD \
14529NM \
14530LN_S \
14531lt_SP2NL \
14532lt_NL2SP \
14533reload_flag \
14534deplibs_check_method \
14535file_magic_cmd \
14536file_magic_glob \
14537want_nocaseglob \
14538sharedlib_from_linklib_cmd \
14539AR \
14540AR_FLAGS \
14541archiver_list_spec \
14542STRIP \
14543RANLIB \
14544CC \
14545CFLAGS \
14546compiler \
14547lt_cv_sys_global_symbol_pipe \
14548lt_cv_sys_global_symbol_to_cdecl \
14549lt_cv_sys_global_symbol_to_import \
14550lt_cv_sys_global_symbol_to_c_name_address \
14551lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14552lt_cv_nm_interface \
14553nm_file_list_spec \
14554lt_cv_truncate_bin \
14555lt_prog_compiler_no_builtin_flag \
14556lt_prog_compiler_pic \
14557lt_prog_compiler_wl \
14558lt_prog_compiler_static \
14559lt_cv_prog_compiler_c_o \
14560need_locks \
14561MANIFEST_TOOL \
14562DSYMUTIL \
14563NMEDIT \
14564LIPO \
14565OTOOL \
14566OTOOL64 \
14567shrext_cmds \
14568export_dynamic_flag_spec \
14569whole_archive_flag_spec \
14570compiler_needs_object \
14571with_gnu_ld \
14572allow_undefined_flag \
14573no_undefined_flag \
14574hardcode_libdir_flag_spec \
14575hardcode_libdir_separator \
14576exclude_expsyms \
14577include_expsyms \
14578file_list_spec \
14579variables_saved_for_relink \
14580libname_spec \
14581library_names_spec \
14582soname_spec \
14583install_override_mode \
14584finish_eval \
14585old_striplib \
14586striplib; do
14587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14588 *[\\\\\\\`\\"\\\$]*)
14589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14590 ;;
14591 *)
14592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14593 ;;
14594 esac
14595done
14596
14597# Double-quote double-evaled strings.
14598for var in reload_cmds \
14599old_postinstall_cmds \
14600old_postuninstall_cmds \
14601old_archive_cmds \
14602extract_expsyms_cmds \
14603old_archive_from_new_cmds \
14604old_archive_from_expsyms_cmds \
14605archive_cmds \
14606archive_expsym_cmds \
14607module_cmds \
14608module_expsym_cmds \
14609export_symbols_cmds \
14610prelink_cmds \
14611postlink_cmds \
14612postinstall_cmds \
14613postuninstall_cmds \
14614finish_cmds \
14615sys_lib_search_path_spec \
14616configure_time_dlsearch_path \
14617configure_time_lt_sys_library_path; do
14618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14619 *[\\\\\\\`\\"\\\$]*)
14620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14621 ;;
14622 *)
14623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14624 ;;
14625 esac
14626done
14627
14628ac_aux_dir='$ac_aux_dir'
14629
14630# See if we are running on zsh, and set the options that allow our
14631# commands through without removal of \ escapes INIT.
14632if test -n "\${ZSH_VERSION+set}"; then
14633 setopt NO_GLOB_SUBST
14634fi
14635
14636
14637 PACKAGE='$PACKAGE'
14638 VERSION='$VERSION'
14639 RM='$RM'
14640 ofile='$ofile'
14641
14642
14643
14644
14645_ACEOF
14646
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648
14649# Handling of arguments.
14650for ac_config_target in $ac_config_targets
14651do
14652 case $ac_config_target in
14653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14656 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14657 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14658 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
14659 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
14660 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
14661 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
14662 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
14663 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14664 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
14665 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
14666 "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
14667 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14668 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14669 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
14670 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14671 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14672 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
14673 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
14674 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
14675 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
14676 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
14677 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
14678 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
14679 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
14680 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14681
14682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14683 esac
14684done
14685
14686
14687# If the user did not use the arguments to specify the items to instantiate,
14688# then the envvar interface is used. Set only those that are not.
14689# We use the long form for the default assignment because of an extremely
14690# bizarre bug on SunOS 4.1.3.
14691if $ac_need_defaults; then
14692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14694 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14695fi
14696
14697# Have a temporary directory for convenience. Make it in the build tree
14698# simply because there is no reason against having it here, and in addition,
14699# creating and moving files from /tmp can sometimes cause problems.
14700# Hook for its removal unless debugging.
14701# Note that there is a small window in which the directory will not be cleaned:
14702# after its creation but before its name has been assigned to `$tmp'.
14703$debug ||
14704{
14705 tmp= ac_tmp=
14706 trap 'exit_status=$?
14707 : "${ac_tmp:=$tmp}"
14708 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14709' 0
14710 trap 'as_fn_exit 1' 1 2 13 15
14711}
14712# Create a (secure) tmp directory for tmp files.
14713
14714{
14715 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14716 test -d "$tmp"
14717} ||
14718{
14719 tmp=./conf$$-$RANDOM
14720 (umask 077 && mkdir "$tmp")
14721} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14722ac_tmp=$tmp
14723
14724# Set up the scripts for CONFIG_FILES section.
14725# No need to generate them if there are no CONFIG_FILES.
14726# This happens for instance with `./config.status config.h'.
14727if test -n "$CONFIG_FILES"; then
14728
14729
14730ac_cr=`echo X | tr X '\015'`
14731# On cygwin, bash can eat \r inside `` if the user requested igncr.
14732# But we know of no other shell where ac_cr would be empty at this
14733# point, so we can use a bashism as a fallback.
14734if test "x$ac_cr" = x; then
14735 eval ac_cr=\$\'\\r\'
14736fi
14737ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14738if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14739 ac_cs_awk_cr='\\r'
14740else
14741 ac_cs_awk_cr=$ac_cr
14742fi
14743
14744echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14745_ACEOF
14746
14747
14748{
14749 echo "cat >conf$$subs.awk <<_ACEOF" &&
14750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14751 echo "_ACEOF"
14752} >conf$$subs.sh ||
14753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14754ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14755ac_delim='%!_!# '
14756for ac_last_try in false false false false false :; do
14757 . ./conf$$subs.sh ||
14758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14759
14760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14761 if test $ac_delim_n = $ac_delim_num; then
14762 break
14763 elif $ac_last_try; then
14764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14765 else
14766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14767 fi
14768done
14769rm -f conf$$subs.sh
14770
14771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14772cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14773_ACEOF
14774sed -n '
14775h
14776s/^/S["/; s/!.*/"]=/
14777p
14778g
14779s/^[^!]*!//
14780:repl
14781t repl
14782s/'"$ac_delim"'$//
14783t delim
14784:nl
14785h
14786s/\(.\{148\}\)..*/\1/
14787t more1
14788s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14789p
14790n
14791b repl
14792:more1
14793s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14794p
14795g
14796s/.\{148\}//
14797t nl
14798:delim
14799h
14800s/\(.\{148\}\)..*/\1/
14801t more2
14802s/["\\]/\\&/g; s/^/"/; s/$/"/
14803p
14804b
14805:more2
14806s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14807p
14808g
14809s/.\{148\}//
14810t delim
14811' <conf$$subs.awk | sed '
14812/^[^""]/{
14813 N
14814 s/\n//
14815}
14816' >>$CONFIG_STATUS || ac_write_fail=1
14817rm -f conf$$subs.awk
14818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14819_ACAWK
14820cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14821 for (key in S) S_is_set[key] = 1
14822 FS = ""
14823
14824}
14825{
14826 line = $ 0
14827 nfields = split(line, field, "@")
14828 substed = 0
14829 len = length(field[1])
14830 for (i = 2; i < nfields; i++) {
14831 key = field[i]
14832 keylen = length(key)
14833 if (S_is_set[key]) {
14834 value = S[key]
14835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14836 len += length(value) + length(field[++i])
14837 substed = 1
14838 } else
14839 len += 1 + keylen
14840 }
14841
14842 print line
14843}
14844
14845_ACAWK
14846_ACEOF
14847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14848if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14850else
14851 cat
14852fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14853 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14854_ACEOF
14855
14856# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14857# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14858# trailing colons and then remove the whole line if VPATH becomes empty
14859# (actually we leave an empty line to preserve line numbers).
14860if test "x$srcdir" = x.; then
14861 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14862h
14863s///
14864s/^/:/
14865s/[ ]*$/:/
14866s/:\$(srcdir):/:/g
14867s/:\${srcdir}:/:/g
14868s/:@srcdir@:/:/g
14869s/^:*//
14870s/:*$//
14871x
14872s/\(=[ ]*\).*/\1/
14873G
14874s/\n//
14875s/^[^=]*=[ ]*$//
14876}'
14877fi
14878
14879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14880fi # test -n "$CONFIG_FILES"
14881
14882# Set up the scripts for CONFIG_HEADERS section.
14883# No need to generate them if there are no CONFIG_HEADERS.
14884# This happens for instance with `./config.status Makefile'.
14885if test -n "$CONFIG_HEADERS"; then
14886cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14887BEGIN {
14888_ACEOF
14889
14890# Transform confdefs.h into an awk script `defines.awk', embedded as
14891# here-document in config.status, that substitutes the proper values into
14892# config.h.in to produce config.h.
14893
14894# Create a delimiter string that does not exist in confdefs.h, to ease
14895# handling of long lines.
14896ac_delim='%!_!# '
14897for ac_last_try in false false :; do
14898 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14899 if test -z "$ac_tt"; then
14900 break
14901 elif $ac_last_try; then
14902 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14903 else
14904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14905 fi
14906done
14907
14908# For the awk script, D is an array of macro values keyed by name,
14909# likewise P contains macro parameters if any. Preserve backslash
14910# newline sequences.
14911
14912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14913sed -n '
14914s/.\{148\}/&'"$ac_delim"'/g
14915t rset
14916:rset
14917s/^[ ]*#[ ]*define[ ][ ]*/ /
14918t def
14919d
14920:def
14921s/\\$//
14922t bsnl
14923s/["\\]/\\&/g
14924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14925D["\1"]=" \3"/p
14926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14927d
14928:bsnl
14929s/["\\]/\\&/g
14930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14931D["\1"]=" \3\\\\\\n"\\/p
14932t cont
14933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14934t cont
14935d
14936:cont
14937n
14938s/.\{148\}/&'"$ac_delim"'/g
14939t clear
14940:clear
14941s/\\$//
14942t bsnlc
14943s/["\\]/\\&/g; s/^/"/; s/$/"/p
14944d
14945:bsnlc
14946s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14947b cont
14948' <confdefs.h | sed '
14949s/'"$ac_delim"'/"\\\
14950"/g' >>$CONFIG_STATUS || ac_write_fail=1
14951
14952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14953 for (key in D) D_is_set[key] = 1
14954 FS = ""
14955}
14956/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14957 line = \$ 0
14958 split(line, arg, " ")
14959 if (arg[1] == "#") {
14960 defundef = arg[2]
14961 mac1 = arg[3]
14962 } else {
14963 defundef = substr(arg[1], 2)
14964 mac1 = arg[2]
14965 }
14966 split(mac1, mac2, "(") #)
14967 macro = mac2[1]
14968 prefix = substr(line, 1, index(line, defundef) - 1)
14969 if (D_is_set[macro]) {
14970 # Preserve the white space surrounding the "#".
14971 print prefix "define", macro P[macro] D[macro]
14972 next
14973 } else {
14974 # Replace #undef with comments. This is necessary, for example,
14975 # in the case of _POSIX_SOURCE, which is predefined and required
14976 # on some systems where configure will not decide to define it.
14977 if (defundef == "undef") {
14978 print "/*", prefix defundef, macro, "*/"
14979 next
14980 }
14981 }
14982}
14983{ print }
14984_ACAWK
14985_ACEOF
14986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14988fi # test -n "$CONFIG_HEADERS"
14989
14990
14991eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14992shift
14993for ac_tag
14994do
14995 case $ac_tag in
14996 :[FHLC]) ac_mode=$ac_tag; continue;;
14997 esac
14998 case $ac_mode$ac_tag in
14999 :[FHL]*:*);;
15000 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15001 :[FH]-) ac_tag=-:-;;
15002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15003 esac
15004 ac_save_IFS=$IFS
15005 IFS=:
15006 set x $ac_tag
15007 IFS=$ac_save_IFS
15008 shift
15009 ac_file=$1
15010 shift
15011
15012 case $ac_mode in
15013 :L) ac_source=$1;;
15014 :[FH])
15015 ac_file_inputs=
15016 for ac_f
15017 do
15018 case $ac_f in
15019 -) ac_f="$ac_tmp/stdin";;
15020 *) # Look for the file first in the build tree, then in the source tree
15021 # (if the path is not absolute). The absolute path cannot be DOS-style,
15022 # because $ac_f cannot contain `:'.
15023 test -f "$ac_f" ||
15024 case $ac_f in
15025 [\\/$]*) false;;
15026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15027 esac ||
15028 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15029 esac
15030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15031 as_fn_append ac_file_inputs " '$ac_f'"
15032 done
15033
15034 # Let's still pretend it is `configure' which instantiates (i.e., don't
15035 # use $as_me), people would be surprised to read:
15036 # /* config.h. Generated by config.status. */
15037 configure_input='Generated from '`
15038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15039 `' by configure.'
15040 if test x"$ac_file" != x-; then
15041 configure_input="$ac_file. $configure_input"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15043$as_echo "$as_me: creating $ac_file" >&6;}
15044 fi
15045 # Neutralize special characters interpreted by sed in replacement strings.
15046 case $configure_input in #(
15047 *\&* | *\|* | *\\* )
15048 ac_sed_conf_input=`$as_echo "$configure_input" |
15049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15050 *) ac_sed_conf_input=$configure_input;;
15051 esac
15052
15053 case $ac_tag in
15054 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15056 esac
15057 ;;
15058 esac
15059
15060 ac_dir=`$as_dirname -- "$ac_file" ||
15061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15062 X"$ac_file" : 'X\(//\)[^/]' \| \
15063 X"$ac_file" : 'X\(//\)$' \| \
15064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15065$as_echo X"$ac_file" |
15066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15067 s//\1/
15068 q
15069 }
15070 /^X\(\/\/\)[^/].*/{
15071 s//\1/
15072 q
15073 }
15074 /^X\(\/\/\)$/{
15075 s//\1/
15076 q
15077 }
15078 /^X\(\/\).*/{
15079 s//\1/
15080 q
15081 }
15082 s/.*/./; q'`
15083 as_dir="$ac_dir"; as_fn_mkdir_p
15084 ac_builddir=.
15085
15086case "$ac_dir" in
15087.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15088*)
15089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15090 # A ".." for each directory in $ac_dir_suffix.
15091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15092 case $ac_top_builddir_sub in
15093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15095 esac ;;
15096esac
15097ac_abs_top_builddir=$ac_pwd
15098ac_abs_builddir=$ac_pwd$ac_dir_suffix
15099# for backward compatibility:
15100ac_top_builddir=$ac_top_build_prefix
15101
15102case $srcdir in
15103 .) # We are building in place.
15104 ac_srcdir=.
15105 ac_top_srcdir=$ac_top_builddir_sub
15106 ac_abs_top_srcdir=$ac_pwd ;;
15107 [\\/]* | ?:[\\/]* ) # Absolute name.
15108 ac_srcdir=$srcdir$ac_dir_suffix;
15109 ac_top_srcdir=$srcdir
15110 ac_abs_top_srcdir=$srcdir ;;
15111 *) # Relative name.
15112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15113 ac_top_srcdir=$ac_top_build_prefix$srcdir
15114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15115esac
15116ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15117
15118
15119 case $ac_mode in
15120 :F)
15121 #
15122 # CONFIG_FILE
15123 #
15124
15125 case $INSTALL in
15126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15128 esac
15129 ac_MKDIR_P=$MKDIR_P
15130 case $MKDIR_P in
15131 [\\/$]* | ?:[\\/]* ) ;;
15132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15133 esac
15134_ACEOF
15135
15136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137# If the template does not know about datarootdir, expand it.
15138# FIXME: This hack should be removed a few years after 2.60.
15139ac_datarootdir_hack=; ac_datarootdir_seen=
15140ac_sed_dataroot='
15141/datarootdir/ {
15142 p
15143 q
15144}
15145/@datadir@/p
15146/@docdir@/p
15147/@infodir@/p
15148/@localedir@/p
15149/@mandir@/p'
15150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15151*datarootdir*) ac_datarootdir_seen=yes;;
15152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15155_ACEOF
15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 ac_datarootdir_hack='
15158 s&@datadir@&$datadir&g
15159 s&@docdir@&$docdir&g
15160 s&@infodir@&$infodir&g
15161 s&@localedir@&$localedir&g
15162 s&@mandir@&$mandir&g
15163 s&\\\${datarootdir}&$datarootdir&g' ;;
15164esac
15165_ACEOF
15166
15167# Neutralize VPATH when `$srcdir' = `.'.
15168# Shell code in configure.ac might set extrasub.
15169# FIXME: do we really want to maintain this feature?
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171ac_sed_extra="$ac_vpsub
15172$extrasub
15173_ACEOF
15174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175:t
15176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15177s|@configure_input@|$ac_sed_conf_input|;t t
15178s&@top_builddir@&$ac_top_builddir_sub&;t t
15179s&@top_build_prefix@&$ac_top_build_prefix&;t t
15180s&@srcdir@&$ac_srcdir&;t t
15181s&@abs_srcdir@&$ac_abs_srcdir&;t t
15182s&@top_srcdir@&$ac_top_srcdir&;t t
15183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15184s&@builddir@&$ac_builddir&;t t
15185s&@abs_builddir@&$ac_abs_builddir&;t t
15186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15187s&@INSTALL@&$ac_INSTALL&;t t
15188s&@MKDIR_P@&$ac_MKDIR_P&;t t
15189$ac_datarootdir_hack
15190"
15191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15192 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15193
15194test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15197 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15199which seems to be undefined. Please make sure it is defined" >&5
15200$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15201which seems to be undefined. Please make sure it is defined" >&2;}
15202
15203 rm -f "$ac_tmp/stdin"
15204 case $ac_file in
15205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15207 esac \
15208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15209 ;;
15210 :H)
15211 #
15212 # CONFIG_HEADER
15213 #
15214 if test x"$ac_file" != x-; then
15215 {
15216 $as_echo "/* $configure_input */" \
15217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15218 } >"$ac_tmp/config.h" \
15219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15222$as_echo "$as_me: $ac_file is unchanged" >&6;}
15223 else
15224 rm -f "$ac_file"
15225 mv "$ac_tmp/config.h" "$ac_file" \
15226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15227 fi
15228 else
15229 $as_echo "/* $configure_input */" \
15230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15231 || as_fn_error $? "could not create -" "$LINENO" 5
15232 fi
15233# Compute "$ac_file"'s index in $config_headers.
15234_am_arg="$ac_file"
15235_am_stamp_count=1
15236for _am_header in $config_headers :; do
15237 case $_am_header in
15238 $_am_arg | $_am_arg:* )
15239 break ;;
15240 * )
15241 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15242 esac
15243done
15244echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15245$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15246 X"$_am_arg" : 'X\(//\)[^/]' \| \
15247 X"$_am_arg" : 'X\(//\)$' \| \
15248 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15249$as_echo X"$_am_arg" |
15250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15251 s//\1/
15252 q
15253 }
15254 /^X\(\/\/\)[^/].*/{
15255 s//\1/
15256 q
15257 }
15258 /^X\(\/\/\)$/{
15259 s//\1/
15260 q
15261 }
15262 /^X\(\/\).*/{
15263 s//\1/
15264 q
15265 }
15266 s/.*/./; q'`/stamp-h$_am_stamp_count
15267 ;;
15268
15269 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15270$as_echo "$as_me: executing $ac_file commands" >&6;}
15271 ;;
15272 esac
15273
15274
15275 case $ac_file$ac_mode in
15276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15277 # Older Autoconf quotes --file arguments for eval, but not when files
15278 # are listed without --file. Let's play safe and only enable the eval
15279 # if we detect the quoting.
15280 # TODO: see whether this extra hack can be removed once we start
15281 # requiring Autoconf 2.70 or later.
15282 case $CONFIG_FILES in #(
15283 *\'*) :
15284 eval set x "$CONFIG_FILES" ;; #(
15285 *) :
15286 set x $CONFIG_FILES ;; #(
15287 *) :
15288 ;;
15289esac
15290 shift
15291 # Used to flag and report bootstrapping failures.
15292 am_rc=0
15293 for am_mf
15294 do
15295 # Strip MF so we end up with the name of the file.
15296 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15297 # Check whether this is an Automake generated Makefile which includes
15298 # dependency-tracking related rules and includes.
15299 # Grep'ing the whole file directly is not great: AIX grep has a line
15300 # limit of 2048, but all sed's we know have understand at least 4000.
15301 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15302 || continue
15303 am_dirpart=`$as_dirname -- "$am_mf" ||
15304$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15305 X"$am_mf" : 'X\(//\)[^/]' \| \
15306 X"$am_mf" : 'X\(//\)$' \| \
15307 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15308$as_echo X"$am_mf" |
15309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\(\/\/\)[^/].*/{
15314 s//\1/
15315 q
15316 }
15317 /^X\(\/\/\)$/{
15318 s//\1/
15319 q
15320 }
15321 /^X\(\/\).*/{
15322 s//\1/
15323 q
15324 }
15325 s/.*/./; q'`
15326 am_filepart=`$as_basename -- "$am_mf" ||
15327$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$am_mf" : 'X\(//\)$' \| \
15329 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15330$as_echo X/"$am_mf" |
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15332 s//\1/
15333 q
15334 }
15335 /^X\/\(\/\/\)$/{
15336 s//\1/
15337 q
15338 }
15339 /^X\/\(\/\).*/{
15340 s//\1/
15341 q
15342 }
15343 s/.*/./; q'`
15344 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15345 && sed -e '/# am--include-marker/d' "$am_filepart" \
15346 | $MAKE -f - am--depfiles" >&5
15347 (cd "$am_dirpart" \
15348 && sed -e '/# am--include-marker/d' "$am_filepart" \
15349 | $MAKE -f - am--depfiles) >&5 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } || am_rc=$?
15353 done
15354 if test $am_rc -ne 0; then
15355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15357as_fn_error $? "Something went wrong bootstrapping makefile fragments
15358 for automatic dependency tracking. If GNU make was not used, consider
15359 re-running the configure script with MAKE=\"gmake\" (or whatever is
15360 necessary). You can also try re-running configure with the
15361 '--disable-dependency-tracking' option to at least be able to build
15362 the package (albeit without support for automatic dependency tracking).
15363See \`config.log' for more details" "$LINENO" 5; }
15364 fi
15365 { am_dirpart=; unset am_dirpart;}
15366 { am_filepart=; unset am_filepart;}
15367 { am_mf=; unset am_mf;}
15368 { am_rc=; unset am_rc;}
15369 rm -f conftest-deps.mk
15370}
15371 ;;
15372 "libtool":C)
15373
15374 # See if we are running on zsh, and set the options that allow our
15375 # commands through without removal of \ escapes.
15376 if test -n "${ZSH_VERSION+set}"; then
15377 setopt NO_GLOB_SUBST
15378 fi
15379
15380 cfgfile=${ofile}T
15381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15382 $RM "$cfgfile"
15383
15384 cat <<_LT_EOF >> "$cfgfile"
15385#! $SHELL
15386# Generated automatically by $as_me ($PACKAGE) $VERSION
15387# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15388
15389# Provide generalized library-building support services.
15390# Written by Gordon Matzigkeit, 1996
15391
15392# Copyright (C) 2014 Free Software Foundation, Inc.
15393# This is free software; see the source for copying conditions. There is NO
15394# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15395
15396# GNU Libtool is free software; you can redistribute it and/or modify
15397# it under the terms of the GNU General Public License as published by
15398# the Free Software Foundation; either version 2 of of the License, or
15399# (at your option) any later version.
15400#
15401# As a special exception to the GNU General Public License, if you
15402# distribute this file as part of a program or library that is built
15403# using GNU Libtool, you may include this file under the same
15404# distribution terms that you use for the rest of that program.
15405#
15406# GNU Libtool is distributed in the hope that it will be useful, but
15407# WITHOUT ANY WARRANTY; without even the implied warranty of
15408# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15409# GNU General Public License for more details.
15410#
15411# You should have received a copy of the GNU General Public License
15412# along with this program. If not, see <http://www.gnu.org/licenses/>.
15413
15414
15415# The names of the tagged configurations supported by this script.
15416available_tags=''
15417
15418# Configured defaults for sys_lib_dlsearch_path munging.
15419: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15420
15421# ### BEGIN LIBTOOL CONFIG
15422
15423# Assembler program.
15424AS=$lt_AS
15425
15426# DLL creation program.
15427DLLTOOL=$lt_DLLTOOL
15428
15429# Object dumper program.
15430OBJDUMP=$lt_OBJDUMP
15431
15432# Which release of libtool.m4 was used?
15433macro_version=$macro_version
15434macro_revision=$macro_revision
15435
15436# Whether or not to build shared libraries.
15437build_libtool_libs=$enable_shared
15438
15439# Whether or not to build static libraries.
15440build_old_libs=$enable_static
15441
15442# What type of objects to build.
15443pic_mode=$pic_mode
15444
15445# Whether or not to optimize for fast installation.
15446fast_install=$enable_fast_install
15447
15448# Shared archive member basename,for filename based shared library versioning on AIX.
15449shared_archive_member_spec=$shared_archive_member_spec
15450
15451# Shell to use when invoking shell scripts.
15452SHELL=$lt_SHELL
15453
15454# An echo program that protects backslashes.
15455ECHO=$lt_ECHO
15456
15457# The PATH separator for the build system.
15458PATH_SEPARATOR=$lt_PATH_SEPARATOR
15459
15460# The host system.
15461host_alias=$host_alias
15462host=$host
15463host_os=$host_os
15464
15465# The build system.
15466build_alias=$build_alias
15467build=$build
15468build_os=$build_os
15469
15470# A sed program that does not truncate output.
15471SED=$lt_SED
15472
15473# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15474Xsed="\$SED -e 1s/^X//"
15475
15476# A grep program that handles long lines.
15477GREP=$lt_GREP
15478
15479# An ERE matcher.
15480EGREP=$lt_EGREP
15481
15482# A literal string matcher.
15483FGREP=$lt_FGREP
15484
15485# A BSD- or MS-compatible name lister.
15486NM=$lt_NM
15487
15488# Whether we need soft or hard links.
15489LN_S=$lt_LN_S
15490
15491# What is the maximum length of a command?
15492max_cmd_len=$max_cmd_len
15493
15494# Object file suffix (normally "o").
15495objext=$ac_objext
15496
15497# Executable file suffix (normally "").
15498exeext=$exeext
15499
15500# whether the shell understands "unset".
15501lt_unset=$lt_unset
15502
15503# turn spaces into newlines.
15504SP2NL=$lt_lt_SP2NL
15505
15506# turn newlines into spaces.
15507NL2SP=$lt_lt_NL2SP
15508
15509# convert \$build file names to \$host format.
15510to_host_file_cmd=$lt_cv_to_host_file_cmd
15511
15512# convert \$build files to toolchain format.
15513to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15514
15515# Method to check whether dependent libraries are shared objects.
15516deplibs_check_method=$lt_deplibs_check_method
15517
15518# Command to use when deplibs_check_method = "file_magic".
15519file_magic_cmd=$lt_file_magic_cmd
15520
15521# How to find potential files when deplibs_check_method = "file_magic".
15522file_magic_glob=$lt_file_magic_glob
15523
15524# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15525want_nocaseglob=$lt_want_nocaseglob
15526
15527# Command to associate shared and link libraries.
15528sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15529
15530# The archiver.
15531AR=$lt_AR
15532
15533# Flags to create an archive.
15534AR_FLAGS=$lt_AR_FLAGS
15535
15536# How to feed a file listing to the archiver.
15537archiver_list_spec=$lt_archiver_list_spec
15538
15539# A symbol stripping program.
15540STRIP=$lt_STRIP
15541
15542# Commands used to install an old-style archive.
15543RANLIB=$lt_RANLIB
15544old_postinstall_cmds=$lt_old_postinstall_cmds
15545old_postuninstall_cmds=$lt_old_postuninstall_cmds
15546
15547# Whether to use a lock for old archive extraction.
15548lock_old_archive_extraction=$lock_old_archive_extraction
15549
15550# A C compiler.
15551LTCC=$lt_CC
15552
15553# LTCC compiler flags.
15554LTCFLAGS=$lt_CFLAGS
15555
15556# Take the output of nm and produce a listing of raw symbols and C names.
15557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15558
15559# Transform the output of nm in a proper C declaration.
15560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15561
15562# Transform the output of nm into a list of symbols to manually relocate.
15563global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15564
15565# Transform the output of nm in a C name address pair.
15566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15567
15568# Transform the output of nm in a C name address pair when lib prefix is needed.
15569global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15570
15571# The name lister interface.
15572nm_interface=$lt_lt_cv_nm_interface
15573
15574# Specify filename containing input files for \$NM.
15575nm_file_list_spec=$lt_nm_file_list_spec
15576
15577# The root where to search for dependent libraries,and where our libraries should be installed.
15578lt_sysroot=$lt_sysroot
15579
15580# Command to truncate a binary pipe.
15581lt_truncate_bin=$lt_lt_cv_truncate_bin
15582
15583# The name of the directory that contains temporary libtool files.
15584objdir=$objdir
15585
15586# Used to examine libraries when file_magic_cmd begins with "file".
15587MAGIC_CMD=$MAGIC_CMD
15588
15589# Must we lock files when doing compilation?
15590need_locks=$lt_need_locks
15591
15592# Manifest tool.
15593MANIFEST_TOOL=$lt_MANIFEST_TOOL
15594
15595# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15596DSYMUTIL=$lt_DSYMUTIL
15597
15598# Tool to change global to local symbols on Mac OS X.
15599NMEDIT=$lt_NMEDIT
15600
15601# Tool to manipulate fat objects and archives on Mac OS X.
15602LIPO=$lt_LIPO
15603
15604# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15605OTOOL=$lt_OTOOL
15606
15607# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15608OTOOL64=$lt_OTOOL64
15609
15610# Old archive suffix (normally "a").
15611libext=$libext
15612
15613# Shared library suffix (normally ".so").
15614shrext_cmds=$lt_shrext_cmds
15615
15616# The commands to extract the exported symbol list from a shared archive.
15617extract_expsyms_cmds=$lt_extract_expsyms_cmds
15618
15619# Variables whose values should be saved in libtool wrapper scripts and
15620# restored at link time.
15621variables_saved_for_relink=$lt_variables_saved_for_relink
15622
15623# Do we need the "lib" prefix for modules?
15624need_lib_prefix=$need_lib_prefix
15625
15626# Do we need a version for libraries?
15627need_version=$need_version
15628
15629# Library versioning type.
15630version_type=$version_type
15631
15632# Shared library runtime path variable.
15633runpath_var=$runpath_var
15634
15635# Shared library path variable.
15636shlibpath_var=$shlibpath_var
15637
15638# Is shlibpath searched before the hard-coded library search path?
15639shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15640
15641# Format of library name prefix.
15642libname_spec=$lt_libname_spec
15643
15644# List of archive names. First name is the real one, the rest are links.
15645# The last name is the one that the linker finds with -lNAME
15646library_names_spec=$lt_library_names_spec
15647
15648# The coded name of the library, if different from the real name.
15649soname_spec=$lt_soname_spec
15650
15651# Permission mode override for installation of shared libraries.
15652install_override_mode=$lt_install_override_mode
15653
15654# Command to use after installation of a shared archive.
15655postinstall_cmds=$lt_postinstall_cmds
15656
15657# Command to use after uninstallation of a shared archive.
15658postuninstall_cmds=$lt_postuninstall_cmds
15659
15660# Commands used to finish a libtool library installation in a directory.
15661finish_cmds=$lt_finish_cmds
15662
15663# As "finish_cmds", except a single script fragment to be evaled but
15664# not shown.
15665finish_eval=$lt_finish_eval
15666
15667# Whether we should hardcode library paths into libraries.
15668hardcode_into_libs=$hardcode_into_libs
15669
15670# Compile-time system search path for libraries.
15671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15672
15673# Detected run-time system search path for libraries.
15674sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15675
15676# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15677configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15678
15679# Whether dlopen is supported.
15680dlopen_support=$enable_dlopen
15681
15682# Whether dlopen of programs is supported.
15683dlopen_self=$enable_dlopen_self
15684
15685# Whether dlopen of statically linked programs is supported.
15686dlopen_self_static=$enable_dlopen_self_static
15687
15688# Commands to strip libraries.
15689old_striplib=$lt_old_striplib
15690striplib=$lt_striplib
15691
15692
15693# The linker used to build libraries.
15694LD=$lt_LD
15695
15696# How to create reloadable object files.
15697reload_flag=$lt_reload_flag
15698reload_cmds=$lt_reload_cmds
15699
15700# Commands used to build an old-style archive.
15701old_archive_cmds=$lt_old_archive_cmds
15702
15703# A language specific compiler.
15704CC=$lt_compiler
15705
15706# Is the compiler the GNU compiler?
15707with_gcc=$GCC
15708
15709# Compiler flag to turn off builtin functions.
15710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15711
15712# Additional compiler flags for building library objects.
15713pic_flag=$lt_lt_prog_compiler_pic
15714
15715# How to pass a linker flag through the compiler.
15716wl=$lt_lt_prog_compiler_wl
15717
15718# Compiler flag to prevent dynamic linking.
15719link_static_flag=$lt_lt_prog_compiler_static
15720
15721# Does compiler simultaneously support -c and -o options?
15722compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15723
15724# Whether or not to add -lc for building shared libraries.
15725build_libtool_need_lc=$archive_cmds_need_lc
15726
15727# Whether or not to disallow shared libs when runtime libs are static.
15728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15729
15730# Compiler flag to allow reflexive dlopens.
15731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15732
15733# Compiler flag to generate shared objects directly from archives.
15734whole_archive_flag_spec=$lt_whole_archive_flag_spec
15735
15736# Whether the compiler copes with passing no objects directly.
15737compiler_needs_object=$lt_compiler_needs_object
15738
15739# Create an old-style archive from a shared archive.
15740old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15741
15742# Create a temporary old-style archive to link instead of a shared archive.
15743old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15744
15745# Commands used to build a shared archive.
15746archive_cmds=$lt_archive_cmds
15747archive_expsym_cmds=$lt_archive_expsym_cmds
15748
15749# Commands used to build a loadable module if different from building
15750# a shared archive.
15751module_cmds=$lt_module_cmds
15752module_expsym_cmds=$lt_module_expsym_cmds
15753
15754# Whether we are building with GNU ld or not.
15755with_gnu_ld=$lt_with_gnu_ld
15756
15757# Flag that allows shared libraries with undefined symbols to be built.
15758allow_undefined_flag=$lt_allow_undefined_flag
15759
15760# Flag that enforces no undefined symbols.
15761no_undefined_flag=$lt_no_undefined_flag
15762
15763# Flag to hardcode \$libdir into a binary during linking.
15764# This must work even if \$libdir does not exist
15765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15766
15767# Whether we need a single "-rpath" flag with a separated argument.
15768hardcode_libdir_separator=$lt_hardcode_libdir_separator
15769
15770# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15771# DIR into the resulting binary.
15772hardcode_direct=$hardcode_direct
15773
15774# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15775# DIR into the resulting binary and the resulting library dependency is
15776# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15777# library is relocated.
15778hardcode_direct_absolute=$hardcode_direct_absolute
15779
15780# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15781# into the resulting binary.
15782hardcode_minus_L=$hardcode_minus_L
15783
15784# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15785# into the resulting binary.
15786hardcode_shlibpath_var=$hardcode_shlibpath_var
15787
15788# Set to "yes" if building a shared library automatically hardcodes DIR
15789# into the library and all subsequent libraries and executables linked
15790# against it.
15791hardcode_automatic=$hardcode_automatic
15792
15793# Set to yes if linker adds runtime paths of dependent libraries
15794# to runtime path list.
15795inherit_rpath=$inherit_rpath
15796
15797# Whether libtool must link a program against all its dependency libraries.
15798link_all_deplibs=$link_all_deplibs
15799
15800# Set to "yes" if exported symbols are required.
15801always_export_symbols=$always_export_symbols
15802
15803# The commands to list exported symbols.
15804export_symbols_cmds=$lt_export_symbols_cmds
15805
15806# Symbols that should not be listed in the preloaded symbols.
15807exclude_expsyms=$lt_exclude_expsyms
15808
15809# Symbols that must always be exported.
15810include_expsyms=$lt_include_expsyms
15811
15812# Commands necessary for linking programs (against libraries) with templates.
15813prelink_cmds=$lt_prelink_cmds
15814
15815# Commands necessary for finishing linking programs.
15816postlink_cmds=$lt_postlink_cmds
15817
15818# Specify filename containing input files.
15819file_list_spec=$lt_file_list_spec
15820
15821# How to hardcode a shared library path into an executable.
15822hardcode_action=$hardcode_action
15823
15824# ### END LIBTOOL CONFIG
15825
15826_LT_EOF
15827
15828 cat <<'_LT_EOF' >> "$cfgfile"
15829
15830# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15831
15832# func_munge_path_list VARIABLE PATH
15833# -----------------------------------
15834# VARIABLE is name of variable containing _space_ separated list of
15835# directories to be munged by the contents of PATH, which is string
15836# having a format:
15837# "DIR[:DIR]:"
15838# string "DIR[ DIR]" will be prepended to VARIABLE
15839# ":DIR[:DIR]"
15840# string "DIR[ DIR]" will be appended to VARIABLE
15841# "DIRP[:DIRP]::[DIRA:]DIRA"
15842# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15843# "DIRA[ DIRA]" will be appended to VARIABLE
15844# "DIR[:DIR]"
15845# VARIABLE will be replaced by "DIR[ DIR]"
15846func_munge_path_list ()
15847{
15848 case x$2 in
15849 x)
15850 ;;
15851 *:)
15852 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15853 ;;
15854 x:*)
15855 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15856 ;;
15857 *::*)
15858 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15859 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15860 ;;
15861 *)
15862 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15863 ;;
15864 esac
15865}
15866
15867
15868# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15869func_cc_basename ()
15870{
15871 for cc_temp in $*""; do
15872 case $cc_temp in
15873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15875 \-*) ;;
15876 *) break;;
15877 esac
15878 done
15879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15880}
15881
15882
15883# ### END FUNCTIONS SHARED WITH CONFIGURE
15884
15885_LT_EOF
15886
15887 case $host_os in
15888 aix3*)
15889 cat <<\_LT_EOF >> "$cfgfile"
15890# AIX sometimes has problems with the GCC collect2 program. For some
15891# reason, if we set the COLLECT_NAMES environment variable, the problems
15892# vanish in a puff of smoke.
15893if test set != "${COLLECT_NAMES+set}"; then
15894 COLLECT_NAMES=
15895 export COLLECT_NAMES
15896fi
15897_LT_EOF
15898 ;;
15899 esac
15900
15901
15902ltmain=$ac_aux_dir/ltmain.sh
15903
15904
15905 # We use sed instead of cat because bash on DJGPP gets confused if
15906 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15907 # text mode, it properly converts lines to CR/LF. This bash problem
15908 # is reportedly fixed, but why not run on old versions too?
15909 sed '$q' "$ltmain" >> "$cfgfile" \
15910 || (rm -f "$cfgfile"; exit 1)
15911
15912 mv -f "$cfgfile" "$ofile" ||
15913 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15914 chmod +x "$ofile"
15915
15916 ;;
15917
15918 esac
15919done # for ac_tag
15920
15921
15922as_fn_exit 0
15923_ACEOF
15924ac_clean_files=$ac_clean_files_save
15925
15926test $ac_write_fail = 0 ||
15927 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15928
15929
15930# configure is writing to config.log, and then calls config.status.
15931# config.status does its own redirection, appending to config.log.
15932# Unfortunately, on DOS this fails, as config.log is still kept open
15933# by configure, so config.status won't be able to write to it; its
15934# output is simply discarded. So we exec the FD to /dev/null,
15935# effectively closing config.log, so it can be properly (re)opened and
15936# appended to by config.status. When coming back to configure, we
15937# need to make the FD available again.
15938if test "$no_create" != yes; then
15939 ac_cs_success=:
15940 ac_config_status_args=
15941 test "$silent" = yes &&
15942 ac_config_status_args="$ac_config_status_args --quiet"
15943 exec 5>/dev/null
15944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15945 exec 5>>config.log
15946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15947 # would make configure fail if this is the last instruction.
15948 $ac_cs_success || as_fn_exit 1
15949fi
15950if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15952$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15953fi
15954
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette