blob: bcb9c7ac792fe1a1efcab48a70d0bf77dc1d2d02 [file] [log] [blame]
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# 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
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="src/opus_encoder.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIBOBJS
616CUSTOM_MODES_FALSE
617CUSTOM_MODES_TRUE
618FIXED_POINT_FALSE
619FIXED_POINT_TRUE
620SIZE32
621SIZE16
622SYMBOL_VISIBILITY
623HAVE_DOXYGEN_FALSE
624HAVE_DOXYGEN_TRUE
625HAVE_DOXYGEN
626LIBM
627CPP
628OTOOL64
629OTOOL
630LIPO
631NMEDIT
632DSYMUTIL
633MANIFEST_TOOL
634RANLIB
635ac_ct_AR
636AR
637DLLTOOL
638OBJDUMP
639LN_S
640NM
641ac_ct_DUMPBIN
642DUMPBIN
643LD
644FGREP
645EGREP
646GREP
647SED
648am__fastdepCC_FALSE
649am__fastdepCC_TRUE
650CCDEPMODE
651am__nodep
652AMDEPBACKSLASH
653AMDEP_FALSE
654AMDEP_TRUE
655am__quote
656am__include
657DEPDIR
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665LIBTOOL
666host_os
667host_vendor
668host_cpu
669host
670build_os
671build_vendor
672build_cpu
673build
674MAINT
675MAINTAINER_MODE_FALSE
676MAINTAINER_MODE_TRUE
677am__untar
678am__tar
679AMTAR
680am__leading_dot
681SET_MAKE
682AWK
683mkdir_p
684MKDIR_P
685INSTALL_STRIP_PROGRAM
686STRIP
687install_sh
688MAKEINFO
689AUTOHEADER
690AUTOMAKE
691AUTOCONF
692ACLOCAL
693VERSION
694PACKAGE
695CYGPATH_W
696am__isrc
697INSTALL_DATA
698INSTALL_SCRIPT
699INSTALL_PROGRAM
700OPUS_LT_AGE
701OPUS_LT_REVISION
702OPUS_LT_CURRENT
703OPUS_VERSION
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_silent_rules
750enable_maintainer_mode
751enable_shared
752enable_static
753with_pic
754enable_fast_install
755enable_dependency_tracking
756with_gnu_ld
757with_sysroot
758enable_libtool_lock
759enable_fixed_point
760enable_fixed_point_debug
761enable_custom_modes
762enable_float_approx
763enable_assertions
764enable_fuzzing
765enable_doc
766'
767 ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
775CPP'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890"enable_$ac_useropt"
891"*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916"enable_$ac_useropt"
917"*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136"with_$ac_useropt"
1137"*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 ;;
1182
1183 esac
1184done
1185
1186if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189fi
1190
1191if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197fi
1198
1199# Check all directory arguments for consistency.
1200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used" >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
1244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261$as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
1286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289fi
1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318\`configure' configures this package to adapt to many kinds of systems.
1319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: `make V=1')
1395 --disable-silent-rules verbose build output (undo: `make V=0')
1396 --enable-maintainer-mode enable make rules and dependencies not useful
1397 (and sometimes confusing) to the casual installer
1398 --enable-shared[=PKGS] build shared libraries [default=yes]
1399 --enable-static[=PKGS] build static libraries [default=yes]
1400 --enable-fast-install[=PKGS]
1401 optimize for fast installation [default=yes]
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-fixed-point compile without floating point (for machines without a fast enough FPU)
1406 --enable-fixed-point-debug debug fixed-point implementation
1407 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1408 --enable-float-approx enable fast approximations for floating point
1409 --enable-assertions enable additional software error checking
1410 --enable-fuzzing causes the encoder to make random decisions
1411 --disable-doc Do not build API documentation
1412
1413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1417 both]
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1421
1422Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to the package provider.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497 cat <<\_ACEOF
1498configure
1499generated by GNU Autoconf 2.68
1500
1501Copyright (C) 2010 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505 exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539else
1540 $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 $as_test_x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists and can be compiled using the include files in
1599# INCLUDES, setting the cache variable VAR accordingly.
1600ac_fn_c_check_header_compile ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615else
1616 eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */
1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721#define $2 innocuous_$2
1722
1723/* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728#ifdef __STDC__
1729# include <limits.h>
1730#else
1731# include <assert.h>
1732#endif
1733
1734#undef $2
1735
1736/* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739#ifdef __cplusplus
1740extern "C"
1741#endif
1742char $2 ();
1743/* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746#if defined __stub_$2 || defined __stub___$2
1747choke me
1748#endif
1749
1750int
1751main ()
1752{
1753return $2 ();
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_func
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791 # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801else
1802 ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817else
1818 ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So? What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=\$ac_header_compiler"
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_header_mongrel
1859
1860# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1861# --------------------------------------------
1862# Tries to find the compile-time value of EXPR in a program that includes
1863# INCLUDES, setting VAR accordingly. Returns whether the value could be
1864# computed
1865ac_fn_c_compute_int ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if test "$cross_compiling" = yes; then
1869 # Depending upon the size, compute the lo and hi bounds.
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876static int test_array [1 - 2 * !(($2) >= 0)];
1877test_array [0] = 0
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_lo=0 ac_mid=0
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888$4
1889int
1890main ()
1891{
1892static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1893test_array [0] = 0
1894
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_hi=$ac_mid; break
1901else
1902 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) < 0)];
1919test_array [0] = 0
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_hi=-1 ac_mid=-1
1927 while :; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h. */
1930$4
1931int
1932main ()
1933{
1934static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1935test_array [0] = 0
1936
1937 ;
1938 return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_lo=$ac_mid; break
1943else
1944 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1945 if test $ac_mid -le $ac_hi; then
1946 ac_lo= ac_hi=
1947 break
1948 fi
1949 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 done
1953else
1954 ac_lo= ac_hi=
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959# Binary search between lo and hi bounds.
1960while test "x$ac_lo" != "x$ac_hi"; do
1961 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964$4
1965int
1966main ()
1967{
1968static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969test_array [0] = 0
1970
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid
1977else
1978 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981done
1982case $ac_lo in #((
1983?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1984'') ac_retval=1 ;;
1985esac
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990static long int longval () { return $2; }
1991static unsigned long int ulongval () { return $2; }
1992#include <stdio.h>
1993#include <stdlib.h>
1994int
1995main ()
1996{
1997
1998 FILE *f = fopen ("conftest.val", "w");
1999 if (! f)
2000 return 1;
2001 if (($2) < 0)
2002 {
2003 long int i = longval ();
2004 if (i != ($2))
2005 return 1;
2006 fprintf (f, "%ld", i);
2007 }
2008 else
2009 {
2010 unsigned long int i = ulongval ();
2011 if (i != ($2))
2012 return 1;
2013 fprintf (f, "%lu", i);
2014 }
2015 /* Do not output a trailing newline, as this causes \r\n confusion
2016 on some platforms. */
2017 return ferror (f) || fclose (f) != 0;
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_run "$LINENO"; then :
2024 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2025else
2026 ac_retval=1
2027fi
2028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2029 conftest.$ac_objext conftest.beam conftest.$ac_ext
2030rm -f conftest.val
2031
2032 fi
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2035
2036} # ac_fn_c_compute_int
2037cat >config.log <<_ACEOF
2038This file contains any messages produced by compilers while
2039running configure, to aid debugging if configure makes a mistake.
2040
2041It was created by $as_me, which was
2042generated by GNU Autoconf 2.68. Invocation command line was
2043
2044 $ $0 $@
2045
2046_ACEOF
2047exec 5>>config.log
2048{
2049cat <<_ASUNAME
2050## --------- ##
2051## Platform. ##
2052## --------- ##
2053
2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071_ASUNAME
2072
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 $as_echo "PATH: $as_dir"
2079 done
2080IFS=$as_save_IFS
2081
2082} >&5
2083
2084cat >&5 <<_ACEOF
2085
2086
2087## ----------- ##
2088## Core tests. ##
2089## ----------- ##
2090
2091_ACEOF
2092
2093
2094# Keep a trace of the command line.
2095# Strip out --no-create and --no-recursion so they do not pile up.
2096# Strip out --silent because we don't want to record it for future runs.
2097# Also quote any args containing shell meta-characters.
2098# Make two passes to allow for proper duplicate-argument suppression.
2099ac_configure_args=
2100ac_configure_args0=
2101ac_configure_args1=
2102ac_must_keep_next=false
2103for ac_pass in 1 2
2104do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 esac
2115 case $ac_pass in
2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 2)
2118 as_fn_append ac_configure_args1 " '$ac_arg'"
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
2134 as_fn_append ac_configure_args " '$ac_arg'"
2135 ;;
2136 esac
2137 done
2138done
2139{ ac_configure_args0=; unset ac_configure_args0;}
2140{ ac_configure_args1=; unset ac_configure_args1;}
2141
2142# When interrupted or exit'd, cleanup temporary files, and complete
2143# config.log. We remove comments because anyway the quotes in there
2144# would cause problems or look ugly.
2145# WARNING: Use '\'' to represent an apostrophe within the trap.
2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 $as_echo "## ---------------- ##
2153## Cache variables. ##
2154## ---------------- ##"
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
2157(
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
2173 (set) 2>&1 |
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
2176 sed -n \
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 ;; #(
2180 *)
2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ;;
2183 esac |
2184 sort
2185)
2186 echo
2187
2188 $as_echo "## ----------------- ##
2189## Output variables. ##
2190## ----------------- ##"
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 $as_echo "## ------------------- ##
2204## File substitutions. ##
2205## ------------------- ##"
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 $as_echo "## ----------- ##
2220## confdefs.h. ##
2221## ----------- ##"
2222 echo
2223 cat confdefs.h
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2233' 0
2234for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236done
2237ac_signal=0
2238
2239# confdefs.h avoids OS command line length limits that DEFS can exceed.
2240rm -f -r conftest* confdefs.h
2241
2242$as_echo "/* confdefs.h */" > confdefs.h
2243
2244# Predefined preprocessor variables.
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_NAME "$PACKAGE_NAME"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_VERSION "$PACKAGE_VERSION"
2256_ACEOF
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_STRING "$PACKAGE_STRING"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_URL "$PACKAGE_URL"
2268_ACEOF
2269
2270
2271# Let the site file select an alternate cache file if it wants to.
2272# Prefer an explicitly selected file to automatically selected ones.
2273ac_site_file1=NONE
2274ac_site_file2=NONE
2275if test -n "$CONFIG_SITE"; then
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
2282elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288fi
2289for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290do
2291 test "x$ac_site_file" = xNONE && continue
2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299as_fn_error $? "failed to load site script $ac_site_file
2300See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302done
2303
2304if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309$as_echo "$as_me: loading cache $cache_file" >&6;}
2310 case $cache_file in
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
2313 esac
2314 fi
2315else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317$as_echo "$as_me: creating cache $cache_file" >&6;}
2318 >$cache_file
2319fi
2320
2321# Check that the precious variables saved in the cache have kept the same
2322# value.
2323ac_cache_corrupted=false
2324for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2330 set,)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,set)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 esac
2369 fi
2370done
2371if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377fi
2378## -------------------- ##
2379## Main body of script. ##
2380## -------------------- ##
2381
2382ac_ext=c
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390ac_config_headers="$ac_config_headers config.h"
2391
2392
2393# Check whether --enable-silent-rules was given.
2394if test "${enable_silent_rules+set}" = set; then :
2395 enableval=$enable_silent_rules;
2396fi
2397
2398case $enable_silent_rules in
2399yes) AM_DEFAULT_VERBOSITY=0;;
2400no) AM_DEFAULT_VERBOSITY=1;;
2401*) AM_DEFAULT_VERBOSITY=0;;
2402esac
2403am_make=${MAKE-make}
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2405$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2406if ${am_cv_make_support_nested_variables+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408else
2409 if $as_echo 'TRUE=$(BAR$(V))
2410BAR0=false
2411BAR1=true
2412V=1
2413am__doit:
2414 @$(TRUE)
2415.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2416 am_cv_make_support_nested_variables=yes
2417else
2418 am_cv_make_support_nested_variables=no
2419fi
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2422$as_echo "$am_cv_make_support_nested_variables" >&6; }
2423if test $am_cv_make_support_nested_variables = yes; then
2424 AM_V='$(V)'
2425 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2426else
2427 AM_V=$AM_DEFAULT_VERBOSITY
2428 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2429fi
2430AM_BACKSLASH='\'
2431
2432
2433# Read our default version string from version.mk.
2434# Please update this file for releases.
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version.mk" >&5
2436$as_echo_n "checking version.mk... " >&6; }
2437MK_VERSION=$(awk 'BEGIN { FS = "=" }
2438 /OPUS_VERSION/ { ver = $2}
2439 END {
2440 gsub(/"/, "", ver);
2441 gsub(/^ /, "", ver);
2442 gsub(/ $/, "", ver);
2443 print ver;
2444 }' $srcdir/version.mk)
2445if test -z "$MK_VERSION"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
2448else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MK_VERSION" >&5
2450$as_echo "$MK_VERSION" >&6; }
2451 OPUS_VERSION="$MK_VERSION"
2452fi
2453
2454# Override with the git version, if available.
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision" >&5
2456$as_echo_n "checking git revision... " >&6; }
2457GIT_VERSION=$(git describe --tags --match 'v*' 2>/dev/null | sed 's/^v//')
2458if test -z "$GIT_VERSION"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460$as_echo "no" >&6; }
2461else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_VERSION" >&5
2463$as_echo "$GIT_VERSION" >&6; }
2464 OPUS_VERSION="$GIT_VERSION"
2465fi
2466
2467# Use 'unknown' if all else fails.
2468if test -z "$OPUS_VERSION"; then
2469 OPUS_VERSION="unknown"
2470fi
2471
2472# For automake.
2473PACKAGE=opus
2474VERSION=$OPUS_VERSION
2475
2476# For autoconf
2477
2478
2479# For config.h.
2480
2481cat >>confdefs.h <<_ACEOF
2482#define OPUS_VERSION "$OPUS_VERSION"
2483_ACEOF
2484
2485
2486# For libtool.
2487OPUS_LT_CURRENT=2
2488OPUS_LT_REVISION=0
2489OPUS_LT_AGE=2
2490
2491
2492
2493
2494
2495am__api_version='1.11'
2496
2497ac_aux_dir=
2498for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2511 fi
2512done
2513if test -z "$ac_aux_dir"; then
2514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515fi
2516
2517# These three variables are undocumented and unsupported,
2518# and are intended to be withdrawn in a future Autoconf release.
2519# They can cause serious problems if a builder's source tree is in a directory
2520# whose full name contains unusual characters.
2521ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2522ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2523ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2524
2525
2526# Find a good install program. We prefer a C program (faster),
2527# so one script is as good as another. But avoid the broken or
2528# incompatible versions:
2529# SysV /etc/install, /usr/sbin/install
2530# SunOS /usr/etc/install
2531# IRIX /sbin/install
2532# AIX /bin/install
2533# AmigaOS /C/install, which installs bootblocks on floppy discs
2534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2537# OS/2's system install, which has a completely different semantic
2538# ./install, which can be erroneously created by make from ./install.sh.
2539# Reject install programs that cannot install multiple files.
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2541$as_echo_n "checking for a BSD-compatible install... " >&6; }
2542if test -z "$INSTALL"; then
2543if ${ac_cv_path_install+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 # Account for people who put trailing slashes in PATH elements.
2552case $as_dir/ in #((
2553 ./ | .// | /[cC]/* | \
2554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2556 /usr/ucb/* ) ;;
2557 *)
2558 # OSF1 and SCO ODT 3.0 have their own names for install.
2559 # Don't use installbsd from OSF since it installs stuff as root
2560 # by default.
2561 for ac_prog in ginstall scoinst install; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2564 if test $ac_prog = install &&
2565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # AIX install. It has an incompatible calling convention.
2567 :
2568 elif test $ac_prog = install &&
2569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570 # program-specific install script used by HP pwplus--don't use.
2571 :
2572 else
2573 rm -rf conftest.one conftest.two conftest.dir
2574 echo one > conftest.one
2575 echo two > conftest.two
2576 mkdir conftest.dir
2577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2578 test -s conftest.one && test -s conftest.two &&
2579 test -s conftest.dir/conftest.one &&
2580 test -s conftest.dir/conftest.two
2581 then
2582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2583 break 3
2584 fi
2585 fi
2586 fi
2587 done
2588 done
2589 ;;
2590esac
2591
2592 done
2593IFS=$as_save_IFS
2594
2595rm -rf conftest.one conftest.two conftest.dir
2596
2597fi
2598 if test "${ac_cv_path_install+set}" = set; then
2599 INSTALL=$ac_cv_path_install
2600 else
2601 # As a last resort, use the slow shell script. Don't cache a
2602 # value for INSTALL within a source directory, because that will
2603 # break other packages using the cache if that directory is
2604 # removed, or if the value is a relative name.
2605 INSTALL=$ac_install_sh
2606 fi
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2609$as_echo "$INSTALL" >&6; }
2610
2611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2612# It thinks the first close brace ends the variable substitution.
2613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614
2615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616
2617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2620$as_echo_n "checking whether build environment is sane... " >&6; }
2621# Just in case
2622sleep 1
2623echo timestamp > conftest.file
2624# Reject unsafe characters in $srcdir or the absolute working directory
2625# name. Accept space and tab only in the latter.
2626am_lf='
2627'
2628case `pwd` in
2629 *[\\\"\#\$\&\'\`$am_lf]*)
2630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2631esac
2632case $srcdir in
2633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2635esac
2636
2637# Do `set' in a subshell so we don't clobber the current shell's
2638# arguments. Must try -L first in case configure is actually a
2639# symlink; some systems play weird games with the mod time of symlinks
2640# (eg FreeBSD returns the mod time of the symlink's containing
2641# directory).
2642if (
2643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644 if test "$*" = "X"; then
2645 # -L didn't work.
2646 set X `ls -t "$srcdir/configure" conftest.file`
2647 fi
2648 rm -f conftest.file
2649 if test "$*" != "X $srcdir/configure conftest.file" \
2650 && test "$*" != "X conftest.file $srcdir/configure"; then
2651
2652 # If neither matched, then we have a broken ls. This can happen
2653 # if, for instance, CONFIG_SHELL is bash and it inherits a
2654 # broken ls alias from the environment. This has actually
2655 # happened. Such a system could not be considered "sane".
2656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2657alias in your environment" "$LINENO" 5
2658 fi
2659
2660 test "$2" = conftest.file
2661 )
2662then
2663 # Ok.
2664 :
2665else
2666 as_fn_error $? "newly created file is older than distributed files!
2667Check your system clock" "$LINENO" 5
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670$as_echo "yes" >&6; }
2671test "$program_prefix" != NONE &&
2672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673# Use a double $ so make ignores it.
2674test "$program_suffix" != NONE &&
2675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676# Double any \ or $.
2677# By default was `s,x,x', remove it if useless.
2678ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2680
2681# expand $ac_aux_dir to an absolute path
2682am_aux_dir=`cd $ac_aux_dir && pwd`
2683
2684if test x"${MISSING+set}" != xset; then
2685 case $am_aux_dir in
2686 *\ * | *\ *)
2687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2688 *)
2689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2690 esac
2691fi
2692# Use eval to expand $SHELL
2693if eval "$MISSING --run true"; then
2694 am_missing_run="$MISSING --run "
2695else
2696 am_missing_run=
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2698$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2699fi
2700
2701if test x"${install_sh}" != xset; then
2702 case $am_aux_dir in
2703 *\ * | *\ *)
2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705 *)
2706 install_sh="\${SHELL} $am_aux_dir/install-sh"
2707 esac
2708fi
2709
2710# Installed binaries are usually stripped using `strip' when the user
2711# run `make install-strip'. However `strip' might not be the right
2712# tool to use in cross-compilation environments, therefore Automake
2713# will honor the `STRIP' environment variable to overrule this program.
2714if test "$cross_compiling" != no; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717set dummy ${ac_tool_prefix}strip; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722else
2723 if test -n "$STRIP"; then
2724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743STRIP=$ac_cv_prog_STRIP
2744if test -n "$STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746$as_echo "$STRIP" >&6; }
2747else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
2753fi
2754if test -z "$ac_cv_prog_STRIP"; then
2755 ac_ct_STRIP=$STRIP
2756 # Extract the first word of "strip", so it can be a program name with args.
2757set dummy strip; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$ac_ct_STRIP"; then
2764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_STRIP="strip"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778 done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784if test -n "$ac_ct_STRIP"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786$as_echo "$ac_ct_STRIP" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792 if test "x$ac_ct_STRIP" = x; then
2793 STRIP=":"
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799ac_tool_warned=yes ;;
2800esac
2801 STRIP=$ac_ct_STRIP
2802 fi
2803else
2804 STRIP="$ac_cv_prog_STRIP"
2805fi
2806
2807fi
2808INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2811$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812if test -z "$MKDIR_P"; then
2813 if ${ac_cv_path_mkdir+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_prog in mkdir gmkdir; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825 'mkdir (GNU coreutils) '* | \
2826 'mkdir (coreutils) '* | \
2827 'mkdir (fileutils) '4.1*)
2828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2829 break 3;;
2830 esac
2831 done
2832 done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837
2838 test -d ./--version && rmdir ./--version
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 MKDIR_P="$ac_install_sh -d"
2847 fi
2848fi
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850$as_echo "$MKDIR_P" >&6; }
2851
2852mkdir_p="$MKDIR_P"
2853case $mkdir_p in
2854 [\\/$]* | ?:[\\/]*) ;;
2855 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2856esac
2857
2858for ac_prog in gawk mawk nawk awk
2859do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861set dummy $ac_prog; ac_word=$2
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if ${ac_cv_prog_AWK+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866else
2867 if test -n "$AWK"; then
2868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_AWK="$ac_prog"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881done
2882 done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887AWK=$ac_cv_prog_AWK
2888if test -n "$AWK"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2890$as_echo "$AWK" >&6; }
2891else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896
2897 test -n "$AWK" && break
2898done
2899
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902set x ${MAKE-make}
2903ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2904if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906else
2907 cat >conftest.make <<\_ACEOF
2908SHELL = /bin/sh
2909all:
2910 @echo '@@@%%%=$(MAKE)=@@@%%%'
2911_ACEOF
2912# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914 *@@@%%%=?*=@@@%%%*)
2915 eval ac_cv_prog_make_${ac_make}_set=yes;;
2916 *)
2917 eval ac_cv_prog_make_${ac_make}_set=no;;
2918esac
2919rm -f conftest.make
2920fi
2921if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923$as_echo "yes" >&6; }
2924 SET_MAKE=
2925else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928 SET_MAKE="MAKE=${MAKE-make}"
2929fi
2930
2931rm -rf .tst 2>/dev/null
2932mkdir .tst 2>/dev/null
2933if test -d .tst; then
2934 am__leading_dot=.
2935else
2936 am__leading_dot=_
2937fi
2938rmdir .tst 2>/dev/null
2939
2940if test "`cd $srcdir && pwd`" != "`pwd`"; then
2941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2942 # is not polluted with repeated "-I."
2943 am__isrc=' -I$(srcdir)'
2944 # test to see if srcdir already configured
2945 if test -f $srcdir/config.status; then
2946 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947 fi
2948fi
2949
2950# test whether we have cygpath
2951if test -z "$CYGPATH_W"; then
2952 if (cygpath --version) >/dev/null 2>/dev/null; then
2953 CYGPATH_W='cygpath -w'
2954 else
2955 CYGPATH_W=echo
2956 fi
2957fi
2958
2959
2960# Define the identity of the package.
2961 PACKAGE=$PACKAGE
2962 VERSION=$VERSION
2963
2964
2965# Some tools Automake needs.
2966
2967ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968
2969
2970AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2971
2972
2973AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974
2975
2976AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2977
2978
2979MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2980
2981# We need awk for the "check" target. The system "awk" is bad on
2982# some platforms.
2983# Always define AMTAR for backward compatibility. Yes, it's still used
2984# in the wild :-( We should find a proper way to deprecate it ...
2985AMTAR='$${TAR-tar}'
2986
2987am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2988
2989
2990
2991
2992
2993
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2995$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2996 # Check whether --enable-maintainer-mode was given.
2997if test "${enable_maintainer_mode+set}" = set; then :
2998 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2999else
3000 USE_MAINTAINER_MODE=no
3001fi
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3004$as_echo "$USE_MAINTAINER_MODE" >&6; }
3005 if test $USE_MAINTAINER_MODE = yes; then
3006 MAINTAINER_MODE_TRUE=
3007 MAINTAINER_MODE_FALSE='#'
3008else
3009 MAINTAINER_MODE_TRUE='#'
3010 MAINTAINER_MODE_FALSE=
3011fi
3012
3013 MAINT=$MAINTAINER_MODE_TRUE
3014
3015
3016
3017# Make sure we can run config.sub.
3018$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3019 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3022$as_echo_n "checking build system type... " >&6; }
3023if ${ac_cv_build+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025else
3026 ac_build_alias=$build_alias
3027test "x$ac_build_alias" = x &&
3028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3029test "x$ac_build_alias" = x &&
3030 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3031ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3032 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3033
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3036$as_echo "$ac_cv_build" >&6; }
3037case $ac_cv_build in
3038*-*-*) ;;
3039*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3040esac
3041build=$ac_cv_build
3042ac_save_IFS=$IFS; IFS='-'
3043set x $ac_cv_build
3044shift
3045build_cpu=$1
3046build_vendor=$2
3047shift; shift
3048# Remember, the first character of IFS is used to create $*,
3049# except with old shells:
3050build_os=$*
3051IFS=$ac_save_IFS
3052case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3053
3054
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3056$as_echo_n "checking host system type... " >&6; }
3057if ${ac_cv_host+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 if test "x$host_alias" = x; then
3061 ac_cv_host=$ac_cv_build
3062else
3063 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3064 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3065fi
3066
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3069$as_echo "$ac_cv_host" >&6; }
3070case $ac_cv_host in
3071*-*-*) ;;
3072*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3073esac
3074host=$ac_cv_host
3075ac_save_IFS=$IFS; IFS='-'
3076set x $ac_cv_host
3077shift
3078host_cpu=$1
3079host_vendor=$2
3080shift; shift
3081# Remember, the first character of IFS is used to create $*,
3082# except with old shells:
3083host_os=$*
3084IFS=$ac_save_IFS
3085case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3086
3087
3088
3089case $host_os in
3090 *mingw32* ) MINGW32=yes;;
3091 * ) MINGW32=no;;
3092esac
3093
3094case `pwd` in
3095 *\ * | *\ *)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3097$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3098esac
3099
3100
3101
3102macro_version='2.4.2'
3103macro_revision='1.3337'
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117ltmain="$ac_aux_dir/ltmain.sh"
3118
3119# Backslashify metacharacters that are still active within
3120# double-quoted strings.
3121sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3122
3123# Same as above, but do not quote variable references.
3124double_quote_subst='s/\(["`\\]\)/\\\1/g'
3125
3126# Sed substitution to delay expansion of an escaped shell variable in a
3127# double_quote_subst'ed string.
3128delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3129
3130# Sed substitution to delay expansion of an escaped single quote.
3131delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3132
3133# Sed substitution to avoid accidental globbing in evaled expressions
3134no_glob_subst='s/\*/\\\*/g'
3135
3136ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3137ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3138ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3139
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3141$as_echo_n "checking how to print strings... " >&6; }
3142# Test print first, because it will be a builtin if present.
3143if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3144 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3145 ECHO='print -r --'
3146elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3147 ECHO='printf %s\n'
3148else
3149 # Use this function as a fallback that always works.
3150 func_fallback_echo ()
3151 {
3152 eval 'cat <<_LTECHO_EOF
3153$1
3154_LTECHO_EOF'
3155 }
3156 ECHO='func_fallback_echo'
3157fi
3158
3159# func_echo_all arg...
3160# Invoke $ECHO with all args, space-separated.
3161func_echo_all ()
3162{
3163 $ECHO ""
3164}
3165
3166case "$ECHO" in
3167 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3168$as_echo "printf" >&6; } ;;
3169 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3170$as_echo "print -r" >&6; } ;;
3171 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3172$as_echo "cat" >&6; } ;;
3173esac
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188DEPDIR="${am__leading_dot}deps"
3189
3190ac_config_commands="$ac_config_commands depfiles"
3191
3192
3193am_make=${MAKE-make}
3194cat > confinc << 'END'
3195am__doit:
3196 @echo this is the am__doit target
3197.PHONY: am__doit
3198END
3199# If we don't find an include directive, just comment out the code.
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3201$as_echo_n "checking for style of include used by $am_make... " >&6; }
3202am__include="#"
3203am__quote=
3204_am_result=none
3205# First try GNU make style include.
3206echo "include confinc" > confmf
3207# Ignore all kinds of additional output from `make'.
3208case `$am_make -s -f confmf 2> /dev/null` in #(
3209*the\ am__doit\ target*)
3210 am__include=include
3211 am__quote=
3212 _am_result=GNU
3213 ;;
3214esac
3215# Now try BSD make style include.
3216if test "$am__include" = "#"; then
3217 echo '.include "confinc"' > confmf
3218 case `$am_make -s -f confmf 2> /dev/null` in #(
3219 *the\ am__doit\ target*)
3220 am__include=.include
3221 am__quote="\""
3222 _am_result=BSD
3223 ;;
3224 esac
3225fi
3226
3227
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3229$as_echo "$_am_result" >&6; }
3230rm -f confinc confmf
3231
3232# Check whether --enable-dependency-tracking was given.
3233if test "${enable_dependency_tracking+set}" = set; then :
3234 enableval=$enable_dependency_tracking;
3235fi
3236
3237if test "x$enable_dependency_tracking" != xno; then
3238 am_depcomp="$ac_aux_dir/depcomp"
3239 AMDEPBACKSLASH='\'
3240 am__nodep='_no'
3241fi
3242 if test "x$enable_dependency_tracking" != xno; then
3243 AMDEP_TRUE=
3244 AMDEP_FALSE='#'
3245else
3246 AMDEP_TRUE='#'
3247 AMDEP_FALSE=
3248fi
3249
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3258set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260$as_echo_n "checking for $ac_word... " >&6; }
3261if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
3282fi
3283fi
3284CC=$ac_cv_prog_CC
3285if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287$as_echo "$CC" >&6; }
3288else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290$as_echo "no" >&6; }
3291fi
3292
3293
3294fi
3295if test -z "$ac_cv_prog_CC"; then
3296 ac_ct_CC=$CC
3297 # Extract the first word of "gcc", so it can be a program name with args.
3298set dummy gcc; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_ac_ct_CC="gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319 done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327$as_echo "$ac_ct_CC" >&6; }
3328else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333 if test "x$ac_ct_CC" = x; then
3334 CC=""
3335 else
3336 case $cross_compiling:$ac_tool_warned in
3337yes:)
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340ac_tool_warned=yes ;;
3341esac
3342 CC=$ac_ct_CC
3343 fi
3344else
3345 CC="$ac_cv_prog_CC"
3346fi
3347
3348if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351set dummy ${ac_tool_prefix}cc; ac_word=$2
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353$as_echo_n "checking for $ac_word... " >&6; }
3354if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359else
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371done
3372 done
3373IFS=$as_save_IFS
3374
3375fi
3376fi
3377CC=$ac_cv_prog_CC
3378if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380$as_echo "$CC" >&6; }
3381else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384fi
3385
3386
3387 fi
3388fi
3389if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391set dummy cc; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399else
3400 ac_prog_rejected=no
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3410 continue
3411 fi
3412 ac_cv_prog_CC="cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416done
3417 done
3418IFS=$as_save_IFS
3419
3420if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3423 shift
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3428 shift
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430 fi
3431fi
3432fi
3433fi
3434CC=$ac_cv_prog_CC
3435if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437$as_echo "$CC" >&6; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444fi
3445if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452$as_echo_n "checking for $ac_word... " >&6; }
3453if ${ac_cv_prog_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458else
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470done
3471 done
3472IFS=$as_save_IFS
3473
3474fi
3475fi
3476CC=$ac_cv_prog_CC
3477if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479$as_echo "$CC" >&6; }
3480else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483fi
3484
3485
3486 test -n "$CC" && break
3487 done
3488fi
3489if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl.exe
3492do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494set dummy $ac_prog; ac_word=$2
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496$as_echo_n "checking for $ac_word... " >&6; }
3497if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515 done
3516IFS=$as_save_IFS
3517
3518fi
3519fi
3520ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523$as_echo "$ac_ct_CC" >&6; }
3524else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526$as_echo "no" >&6; }
3527fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537yes:)
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540ac_tool_warned=yes ;;
3541esac
3542 CC=$ac_ct_CC
3543 fi
3544fi
3545
3546fi
3547
3548
3549test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "no acceptable C compiler found in \$PATH
3552See \`config.log' for more details" "$LINENO" 5; }
3553
3554# Provide some information about the compiler.
3555$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3556set X $ac_compile
3557ac_compiler=$2
3558for ac_option in --version -v -V -qversion; do
3559 { { ac_try="$ac_compiler $ac_option >&5"
3560case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567 ac_status=$?
3568 if test -s conftest.err; then
3569 sed '10a\
3570... rest of stderr output deleted ...
3571 10q' conftest.err >conftest.er1
3572 cat conftest.er1 >&5
3573 fi
3574 rm -f conftest.er1 conftest.err
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3577done
3578
3579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h. */
3581
3582int
3583main ()
3584{
3585
3586 ;
3587 return 0;
3588}
3589_ACEOF
3590ac_clean_files_save=$ac_clean_files
3591ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592# Try to create an executable without -o first, disregard a.out.
3593# It will help us diagnose broken compilers, and finding out an intuition
3594# of exeext.
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596$as_echo_n "checking whether the C compiler works... " >&6; }
3597ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598
3599# The possible output files:
3600ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3601
3602ac_rmfiles=
3603for ac_file in $ac_files
3604do
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608 esac
3609done
3610rm -f $ac_rmfiles
3611
3612if { { ac_try="$ac_link_default"
3613case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616esac
3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618$as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link_default") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625# in a Makefile. We should not override ac_cv_exeext if it was cached,
3626# so that the user can short-circuit this test for compilers unknown to
3627# Autoconf.
3628for ac_file in $ac_files ''
3629do
3630 test -f "$ac_file" || continue
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3633 ;;
3634 [ab].out )
3635 # We found the default executable, but exeext='' is most
3636 # certainly right.
3637 break;;
3638 *.* )
3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640 then :; else
3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 fi
3643 # We set ac_cv_exeext here because the later test for it is not
3644 # safe: cross compilers may not add the suffix if given an `-o'
3645 # argument, so we may need to know it at that point already.
3646 # Even if this section looks crufty: it has the advantage of
3647 # actually working.
3648 break;;
3649 * )
3650 break;;
3651 esac
3652done
3653test "$ac_cv_exeext" = no && ac_cv_exeext=
3654
3655else
3656 ac_file=''
3657fi
3658if test -z "$ac_file"; then :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661$as_echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error 77 "C compiler cannot create executables
3667See \`config.log' for more details" "$LINENO" 5; }
3668else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670$as_echo "yes" >&6; }
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673$as_echo_n "checking for C compiler default output file name... " >&6; }
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675$as_echo "$ac_file" >&6; }
3676ac_exeext=$ac_cv_exeext
3677
3678rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679ac_clean_files=$ac_clean_files_save
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681$as_echo_n "checking for suffix of executables... " >&6; }
3682if { { ac_try="$ac_link"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688$as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695# work properly (i.e., refer to `conftest.exe'), while it won't with
3696# `rm'.
3697for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702 break;;
3703 * ) break;;
3704 esac
3705done
3706else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710See \`config.log' for more details" "$LINENO" 5; }
3711fi
3712rm -f conftest conftest$ac_cv_exeext
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714$as_echo "$ac_cv_exeext" >&6; }
3715
3716rm -f conftest.$ac_ext
3717EXEEXT=$ac_cv_exeext
3718ac_exeext=$EXEEXT
3719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h. */
3721#include <stdio.h>
3722int
3723main ()
3724{
3725FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3727
3728 ;
3729 return 0;
3730}
3731_ACEOF
3732ac_clean_files="$ac_clean_files conftest.out"
3733# Check that the compiler produces executables we can run. If not, either
3734# the compiler is broken, or we cross compile.
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736$as_echo_n "checking whether we are cross compiling... " >&6; }
3737if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3739case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742esac
3743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744$as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755$as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767as_fn_error $? "cannot run C compiled programs.
3768If you meant to cross compile, use \`--host'.
3769See \`config.log' for more details" "$LINENO" 5; }
3770 fi
3771 fi
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774$as_echo "$cross_compiling" >&6; }
3775
3776rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777ac_clean_files=$ac_clean_files_save
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779$as_echo_n "checking for suffix of object files... " >&6; }
3780if ${ac_cv_objext+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
3785
3786int
3787main ()
3788{
3789
3790 ;
3791 return 0;
3792}
3793_ACEOF
3794rm -f conftest.o conftest.obj
3795if { { ac_try="$ac_compile"
3796case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801$as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 break;;
3812 esac
3813done
3814else
3815 $as_echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820as_fn_error $? "cannot compute suffix of object files: cannot compile
3821See \`config.log' for more details" "$LINENO" 5; }
3822fi
3823rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826$as_echo "$ac_cv_objext" >&6; }
3827OBJEXT=$ac_cv_objext
3828ac_objext=$OBJEXT
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831if ${ac_cv_c_compiler_gnu+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836
3837int
3838main ()
3839{
3840#ifndef __GNUC__
3841 choke me
3842#endif
3843
3844 ;
3845 return 0;
3846}
3847_ACEOF
3848if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_compiler_gnu=yes
3850else
3851 ac_compiler_gnu=no
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859if test $ac_compiler_gnu = yes; then
3860 GCC=yes
3861else
3862 GCC=
3863fi
3864ac_test_CFLAGS=${CFLAGS+set}
3865ac_save_CFLAGS=$CFLAGS
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867$as_echo_n "checking whether $CC accepts -g... " >&6; }
3868if ${ac_cv_prog_cc_g+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870else
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3873 ac_cv_prog_cc_g=no
3874 CFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_g=yes
3888else
3889 CFLAGS=""
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h. */
3892
3893int
3894main ()
3895{
3896
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901if ac_fn_c_try_compile "$LINENO"; then :
3902
3903else
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 CFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907/* end confdefs.h. */
3908
3909int
3910main ()
3911{
3912
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_g=yes
3919fi
3920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921fi
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928$as_echo "$ac_cv_prog_cc_g" >&6; }
3929if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3933 CFLAGS="-g -O2"
3934 else
3935 CFLAGS="-g"
3936 fi
3937else
3938 if test "$GCC" = yes; then
3939 CFLAGS="-O2"
3940 else
3941 CFLAGS=
3942 fi
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946if ${ac_cv_prog_cc_c89+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 ac_cv_prog_cc_c89=no
3950ac_save_CC=$CC
3951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953#include <stdarg.h>
3954#include <stdio.h>
3955#include <sys/types.h>
3956#include <sys/stat.h>
3957/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958struct buf { int x; };
3959FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960static char *e (p, i)
3961 char **p;
3962 int i;
3963{
3964 return p[i];
3965}
3966static char *f (char * (*g) (char **, int), char **p, ...)
3967{
3968 char *s;
3969 va_list v;
3970 va_start (v,p);
3971 s = g (p, va_arg (v,int));
3972 va_end (v);
3973 return s;
3974}
3975
3976/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3987#define FOO(x) 'x'
3988int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990int test (int i, double x);
3991struct s1 {int (*f) (int a);};
3992struct s2 {int (*f) (double a);};
3993int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994int argc;
3995char **argv;
3996int
3997main ()
3998{
3999return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006do
4007 CC="$ac_save_CC $ac_arg"
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_c89=$ac_arg
4010fi
4011rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4013done
4014rm -f conftest.$ac_ext
4015CC=$ac_save_CC
4016
4017fi
4018# AC_CACHE_VAL
4019case "x$ac_cv_prog_cc_c89" in
4020 x)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022$as_echo "none needed" >&6; } ;;
4023 xno)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025$as_echo "unsupported" >&6; } ;;
4026 *)
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030esac
4031if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033fi
4034
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041depcc="$CC" am_compiler_list=
4042
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044$as_echo_n "checking dependency style of $depcc... " >&6; }
4045if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047else
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
4054 rm -rf conftest.dir
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149else
4150 am_cv_CC_dependencies_compiler_type=none
4151fi
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4166fi
4167
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4170$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171if ${ac_cv_path_SED+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4192# Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194case `"$ac_path_SED" --version 2>&1` in
4195*GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197*)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
4226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4227 fi
4228else
4229 ac_cv_path_SED=$SED
4230fi
4231
4232fi
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234$as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4236 rm -f conftest.sed
4237
4238test -z "$SED" && SED=sed
4239Xsed="$SED -e 1s/^X//"
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4268# Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270case `"$ac_path_GREP" --version 2>&1` in
4271*GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273*)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304else
4305 ac_cv_path_GREP=$GREP
4306fi
4307
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310$as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315$as_echo_n "checking for egrep... " >&6; }
4316if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334# Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336case `"$ac_path_EGREP" --version 2>&1` in
4337*GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339*)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 fi
4370else
4371 ac_cv_path_EGREP=$EGREP
4372fi
4373
4374 fi
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377$as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382$as_echo_n "checking for fgrep... " >&6; }
4383if ${ac_cv_path_FGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385else
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4401# Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403case `"$ac_path_FGREP" --version 2>&1` in
4404*GNU*)
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406*)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427esac
4428
4429 $ac_path_FGREP_found && break 3
4430 done
4431 done
4432 done
4433IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_FGREP"; then
4435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 fi
4437else
4438 ac_cv_path_FGREP=$FGREP
4439fi
4440
4441 fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444$as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4446
4447
4448test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468# Check whether --with-gnu-ld was given.
4469if test "${with_gnu_ld+set}" = set; then :
4470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4471else
4472 with_gnu_ld=no
4473fi
4474
4475ac_prog=ld
4476if test "$GCC" = yes; then
4477 # Check if gcc -print-prog-name=ld gives a path.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4479$as_echo_n "checking for ld used by $CC... " >&6; }
4480 case $host in
4481 *-*-mingw*)
4482 # gcc leaves a trailing carriage return which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4484 *)
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4486 esac
4487 case $ac_prog in
4488 # Accept absolute paths.
4489 [\\/]* | ?:[\\/]*)
4490 re_direlt='/[^/][^/]*/\.\./'
4491 # Canonicalize the pathname of ld
4492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4495 done
4496 test -z "$LD" && LD="$ac_prog"
4497 ;;
4498 "")
4499 # If it fails, then pretend we aren't using GCC.
4500 ac_prog=ld
4501 ;;
4502 *)
4503 # If it is relative, then search for the first ld in PATH.
4504 with_gnu_ld=unknown
4505 ;;
4506 esac
4507elif test "$with_gnu_ld" = yes; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4509$as_echo_n "checking for GNU ld... " >&6; }
4510else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4512$as_echo_n "checking for non-GNU ld... " >&6; }
4513fi
4514if ${lt_cv_path_LD+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 if test -z "$LD"; then
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS="$lt_save_ifs"
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4523 lt_cv_path_LD="$ac_dir/$ac_prog"
4524 # Check to see if the program is GNU ld. I'd rather use --version,
4525 # but apparently some variants of GNU ld only accept -v.
4526 # Break only if it was the GNU/non-GNU ld that we prefer.
4527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
4529 test "$with_gnu_ld" != no && break
4530 ;;
4531 *)
4532 test "$with_gnu_ld" != yes && break
4533 ;;
4534 esac
4535 fi
4536 done
4537 IFS="$lt_save_ifs"
4538else
4539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4540fi
4541fi
4542
4543LD="$lt_cv_path_LD"
4544if test -n "$LD"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546$as_echo "$LD" >&6; }
4547else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549$as_echo "no" >&6; }
4550fi
4551test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554if ${lt_cv_prog_gnu_ld+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4558case `$LD -v 2>&1 </dev/null` in
4559*GNU* | *'with BFD'*)
4560 lt_cv_prog_gnu_ld=yes
4561 ;;
4562*)
4563 lt_cv_prog_gnu_ld=no
4564 ;;
4565esac
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4568$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4569with_gnu_ld=$lt_cv_prog_gnu_ld
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4580$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4581if ${lt_cv_path_NM+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583else
4584 if test -n "$NM"; then
4585 # Let the user override the test.
4586 lt_cv_path_NM="$NM"
4587else
4588 lt_nm_to_check="${ac_tool_prefix}nm"
4589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4590 lt_nm_to_check="$lt_nm_to_check nm"
4591 fi
4592 for lt_tmp_nm in $lt_nm_to_check; do
4593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4595 IFS="$lt_save_ifs"
4596 test -z "$ac_dir" && ac_dir=.
4597 tmp_nm="$ac_dir/$lt_tmp_nm"
4598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4599 # Check to see if the nm accepts a BSD-compat flag.
4600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4601 # nm: unknown option "B" ignored
4602 # Tru64's nm complains that /dev/null is an invalid object file
4603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4604 */dev/null* | *'Invalid file or object type'*)
4605 lt_cv_path_NM="$tmp_nm -B"
4606 break
4607 ;;
4608 *)
4609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4610 */dev/null*)
4611 lt_cv_path_NM="$tmp_nm -p"
4612 break
4613 ;;
4614 *)
4615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4616 continue # so that we can try to find one that supports BSD flags
4617 ;;
4618 esac
4619 ;;
4620 esac
4621 fi
4622 done
4623 IFS="$lt_save_ifs"
4624 done
4625 : ${lt_cv_path_NM=no}
4626fi
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4629$as_echo "$lt_cv_path_NM" >&6; }
4630if test "$lt_cv_path_NM" != "no"; then
4631 NM="$lt_cv_path_NM"
4632else
4633 # Didn't find any BSD compatible name lister, look for dumpbin.
4634 if test -n "$DUMPBIN"; then :
4635 # Let the user override the test.
4636 else
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in dumpbin "link -dump"
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
4644if ${ac_cv_prog_DUMPBIN+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646else
4647 if test -n "$DUMPBIN"; then
4648 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
4662 done
4663IFS=$as_save_IFS
4664
4665fi
4666fi
4667DUMPBIN=$ac_cv_prog_DUMPBIN
4668if test -n "$DUMPBIN"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4670$as_echo "$DUMPBIN" >&6; }
4671else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
4675
4676
4677 test -n "$DUMPBIN" && break
4678 done
4679fi
4680if test -z "$DUMPBIN"; then
4681 ac_ct_DUMPBIN=$DUMPBIN
4682 for ac_prog in dumpbin "link -dump"
4683do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685set dummy $ac_prog; ac_word=$2
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
4688if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$ac_ct_DUMPBIN"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705done
4706 done
4707IFS=$as_save_IFS
4708
4709fi
4710fi
4711ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4712if test -n "$ac_ct_DUMPBIN"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4714$as_echo "$ac_ct_DUMPBIN" >&6; }
4715else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
4718fi
4719
4720
4721 test -n "$ac_ct_DUMPBIN" && break
4722done
4723
4724 if test "x$ac_ct_DUMPBIN" = x; then
4725 DUMPBIN=":"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 DUMPBIN=$ac_ct_DUMPBIN
4734 fi
4735fi
4736
4737 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4738 *COFF*)
4739 DUMPBIN="$DUMPBIN -symbols"
4740 ;;
4741 *)
4742 DUMPBIN=:
4743 ;;
4744 esac
4745 fi
4746
4747 if test "$DUMPBIN" != ":"; then
4748 NM="$DUMPBIN"
4749 fi
4750fi
4751test -z "$NM" && NM=nm
4752
4753
4754
4755
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4759$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4760if ${lt_cv_nm_interface+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 lt_cv_nm_interface="BSD nm"
4764 echo "int some_variable = 0;" > conftest.$ac_ext
4765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4766 (eval "$ac_compile" 2>conftest.err)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4772 cat conftest.out >&5
4773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4774 lt_cv_nm_interface="MS dumpbin"
4775 fi
4776 rm -f conftest*
4777fi
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4779$as_echo "$lt_cv_nm_interface" >&6; }
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782$as_echo_n "checking whether ln -s works... " >&6; }
4783LN_S=$as_ln_s
4784if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786$as_echo "yes" >&6; }
4787else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789$as_echo "no, using $LN_S" >&6; }
4790fi
4791
4792# find the maximum length of command line arguments
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4794$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4795if ${lt_cv_sys_max_cmd_len+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797else
4798 i=0
4799 teststring="ABCD"
4800
4801 case $build_os in
4802 msdosdjgpp*)
4803 # On DJGPP, this test can blow up pretty badly due to problems in libc
4804 # (any single argument exceeding 2000 bytes causes a buffer overrun
4805 # during glob expansion). Even if it were fixed, the result of this
4806 # check would be larger than it should be.
4807 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4808 ;;
4809
4810 gnu*)
4811 # Under GNU Hurd, this test is not required because there is
4812 # no limit to the length of command line arguments.
4813 # Libtool will interpret -1 as no limit whatsoever
4814 lt_cv_sys_max_cmd_len=-1;
4815 ;;
4816
4817 cygwin* | mingw* | cegcc*)
4818 # On Win9x/ME, this test blows up -- it succeeds, but takes
4819 # about 5 minutes as the teststring grows exponentially.
4820 # Worse, since 9x/ME are not pre-emptively multitasking,
4821 # you end up with a "frozen" computer, even though with patience
4822 # the test eventually succeeds (with a max line length of 256k).
4823 # Instead, let's just punt: use the minimum linelength reported by
4824 # all of the supported platforms: 8192 (on NT/2K/XP).
4825 lt_cv_sys_max_cmd_len=8192;
4826 ;;
4827
4828 mint*)
4829 # On MiNT this can take a long time and run out of memory.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 amigaos*)
4834 # On AmigaOS with pdksh, this test takes hours, literally.
4835 # So we just punt and use a minimum line length of 8192.
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4840 # This has been around since 386BSD, at least. Likely further.
4841 if test -x /sbin/sysctl; then
4842 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4843 elif test -x /usr/sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4845 else
4846 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4847 fi
4848 # And add a safety zone
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 ;;
4852
4853 interix*)
4854 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4855 lt_cv_sys_max_cmd_len=196608
4856 ;;
4857
4858 os2*)
4859 # The test takes a long time on OS/2.
4860 lt_cv_sys_max_cmd_len=8192
4861 ;;
4862
4863 osf*)
4864 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4865 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4866 # nice to cause kernel panics so lets avoid the loop below.
4867 # First set a reasonable default.
4868 lt_cv_sys_max_cmd_len=16384
4869 #
4870 if test -x /sbin/sysconfig; then
4871 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4872 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4873 esac
4874 fi
4875 ;;
4876 sco3.2v5*)
4877 lt_cv_sys_max_cmd_len=102400
4878 ;;
4879 sysv5* | sco5v6* | sysv4.2uw2*)
4880 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4881 if test -n "$kargmax"; then
4882 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4883 else
4884 lt_cv_sys_max_cmd_len=32768
4885 fi
4886 ;;
4887 *)
4888 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4889 if test -n "$lt_cv_sys_max_cmd_len"; then
4890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4892 else
4893 # Make teststring a little bigger before we do anything with it.
4894 # a 1K string should be a reasonable start.
4895 for i in 1 2 3 4 5 6 7 8 ; do
4896 teststring=$teststring$teststring
4897 done
4898 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4899 # If test is not a shell built-in, we'll probably end up computing a
4900 # maximum length that is only half of the actual maximum length, but
4901 # we can't tell.
4902 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4903 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4904 test $i != 17 # 1/2 MB should be enough
4905 do
4906 i=`expr $i + 1`
4907 teststring=$teststring$teststring
4908 done
4909 # Only check the string length outside the loop.
4910 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4911 teststring=
4912 # Add a significant safety factor because C++ compilers can tack on
4913 # massive amounts of additional arguments before passing them to the
4914 # linker. It appears as though 1/2 is a usable value.
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4916 fi
4917 ;;
4918 esac
4919
4920fi
4921
4922if test -n $lt_cv_sys_max_cmd_len ; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4924$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4925else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4927$as_echo "none" >&6; }
4928fi
4929max_cmd_len=$lt_cv_sys_max_cmd_len
4930
4931
4932
4933
4934
4935
4936: ${CP="cp -f"}
4937: ${MV="mv -f"}
4938: ${RM="rm -f"}
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4941$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4942# Try some XSI features
4943xsi_shell=no
4944( _lt_dummy="a/b/c"
4945 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4946 = c,a/b,b/c, \
4947 && eval 'test $(( 1 + 1 )) -eq 2 \
4948 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4949 && xsi_shell=yes
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4951$as_echo "$xsi_shell" >&6; }
4952
4953
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4955$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4956lt_shell_append=no
4957( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4958 >/dev/null 2>&1 \
4959 && lt_shell_append=yes
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4961$as_echo "$lt_shell_append" >&6; }
4962
4963
4964if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4965 lt_unset=unset
4966else
4967 lt_unset=false
4968fi
4969
4970
4971
4972
4973
4974# test EBCDIC or ASCII
4975case `echo X|tr X '\101'` in
4976 A) # ASCII based system
4977 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4978 lt_SP2NL='tr \040 \012'
4979 lt_NL2SP='tr \015\012 \040\040'
4980 ;;
4981 *) # EBCDIC based system
4982 lt_SP2NL='tr \100 \n'
4983 lt_NL2SP='tr \r\n \100\100'
4984 ;;
4985esac
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4996$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4997if ${lt_cv_to_host_file_cmd+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999else
5000 case $host in
5001 *-*-mingw* )
5002 case $build in
5003 *-*-mingw* ) # actually msys
5004 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5005 ;;
5006 *-*-cygwin* )
5007 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5008 ;;
5009 * ) # otherwise, assume *nix
5010 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5011 ;;
5012 esac
5013 ;;
5014 *-*-cygwin* )
5015 case $build in
5016 *-*-mingw* ) # actually msys
5017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5018 ;;
5019 *-*-cygwin* )
5020 lt_cv_to_host_file_cmd=func_convert_file_noop
5021 ;;
5022 * ) # otherwise, assume *nix
5023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5024 ;;
5025 esac
5026 ;;
5027 * ) # unhandled hosts (and "normal" native builds)
5028 lt_cv_to_host_file_cmd=func_convert_file_noop
5029 ;;
5030esac
5031
5032fi
5033
5034to_host_file_cmd=$lt_cv_to_host_file_cmd
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5036$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5043$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5044if ${lt_cv_to_tool_file_cmd+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 #assume ordinary cross tools, or native build.
5048lt_cv_to_tool_file_cmd=func_convert_file_noop
5049case $host in
5050 *-*-mingw* )
5051 case $build in
5052 *-*-mingw* ) # actually msys
5053 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5054 ;;
5055 esac
5056 ;;
5057esac
5058
5059fi
5060
5061to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5063$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5064
5065
5066
5067
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5070$as_echo_n "checking for $LD option to reload object files... " >&6; }
5071if ${lt_cv_ld_reload_flag+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 lt_cv_ld_reload_flag='-r'
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5077$as_echo "$lt_cv_ld_reload_flag" >&6; }
5078reload_flag=$lt_cv_ld_reload_flag
5079case $reload_flag in
5080"" | " "*) ;;
5081*) reload_flag=" $reload_flag" ;;
5082esac
5083reload_cmds='$LD$reload_flag -o $output$reload_objs'
5084case $host_os in
5085 cygwin* | mingw* | pw32* | cegcc*)
5086 if test "$GCC" != yes; then
5087 reload_cmds=false
5088 fi
5089 ;;
5090 darwin*)
5091 if test "$GCC" = yes; then
5092 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5093 else
5094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095 fi
5096 ;;
5097esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if ${ac_cv_prog_OBJDUMP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 if test -n "$OBJDUMP"; then
5116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129done
5130 done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135OBJDUMP=$ac_cv_prog_OBJDUMP
5136if test -n "$OBJDUMP"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5138$as_echo "$OBJDUMP" >&6; }
5139else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144
5145fi
5146if test -z "$ac_cv_prog_OBJDUMP"; then
5147 ac_ct_OBJDUMP=$OBJDUMP
5148 # Extract the first word of "objdump", so it can be a program name with args.
5149set dummy objdump; ac_word=$2
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
5152if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 if test -n "$ac_ct_OBJDUMP"; then
5156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170 done
5171IFS=$as_save_IFS
5172
5173fi
5174fi
5175ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176if test -n "$ac_ct_OBJDUMP"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5178$as_echo "$ac_ct_OBJDUMP" >&6; }
5179else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }
5182fi
5183
5184 if test "x$ac_ct_OBJDUMP" = x; then
5185 OBJDUMP="false"
5186 else
5187 case $cross_compiling:$ac_tool_warned in
5188yes:)
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191ac_tool_warned=yes ;;
5192esac
5193 OBJDUMP=$ac_ct_OBJDUMP
5194 fi
5195else
5196 OBJDUMP="$ac_cv_prog_OBJDUMP"
5197fi
5198
5199test -z "$OBJDUMP" && OBJDUMP=objdump
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5210$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5211if ${lt_cv_deplibs_check_method+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 lt_cv_file_magic_cmd='$MAGIC_CMD'
5215lt_cv_file_magic_test_file=
5216lt_cv_deplibs_check_method='unknown'
5217# Need to set the preceding variable on all platforms that support
5218# interlibrary dependencies.
5219# 'none' -- dependencies not supported.
5220# `unknown' -- same as none, but documents that we really don't know.
5221# 'pass_all' -- all dependencies passed with no checks.
5222# 'test_compile' -- check by making test program.
5223# 'file_magic [[regex]]' -- check by looking for files in library path
5224# which responds to the $file_magic_cmd with a given extended regex.
5225# If you have `file' or equivalent on your system and you're not sure
5226# whether `pass_all' will *always* work, you probably want this one.
5227
5228case $host_os in
5229aix[4-9]*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233beos*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237bsdi[45]*)
5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5239 lt_cv_file_magic_cmd='/usr/bin/file -L'
5240 lt_cv_file_magic_test_file=/shlib/libc.so
5241 ;;
5242
5243cygwin*)
5244 # func_win32_libid is a shell function defined in ltmain.sh
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5247 ;;
5248
5249mingw* | pw32*)
5250 # Base MSYS/MinGW do not provide the 'file' command needed by
5251 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5252 # unless we find 'file', for example because we are cross-compiling.
5253 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5254 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256 lt_cv_file_magic_cmd='func_win32_libid'
5257 else
5258 # Keep this pattern in sync with the one in func_win32_libid.
5259 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 fi
5262 ;;
5263
5264cegcc*)
5265 # use the weaker test based on 'objdump'. See mingw*.
5266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 ;;
5269
5270darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274freebsd* | dragonfly*)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 case $host_cpu in
5277 i*86 )
5278 # Not sure whether the presence of OpenBSD here was a mistake.
5279 # Let's accept both of them until this is cleared up.
5280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5283 ;;
5284 esac
5285 else
5286 lt_cv_deplibs_check_method=pass_all
5287 fi
5288 ;;
5289
5290gnu*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294haiku*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298hpux10.20* | hpux11*)
5299 lt_cv_file_magic_cmd=/usr/bin/file
5300 case $host_cpu in
5301 ia64*)
5302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5303 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5304 ;;
5305 hppa*64*)
5306 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]'
5307 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5308 ;;
5309 *)
5310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5311 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5312 ;;
5313 esac
5314 ;;
5315
5316interix[3-9]*)
5317 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5319 ;;
5320
5321irix5* | irix6* | nonstopux*)
5322 case $LD in
5323 *-32|*"-32 ") libmagic=32-bit;;
5324 *-n32|*"-n32 ") libmagic=N32;;
5325 *-64|*"-64 ") libmagic=64-bit;;
5326 *) libmagic=never-match;;
5327 esac
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331# This must be glibc/ELF.
5332linux* | k*bsd*-gnu | kopensolaris*-gnu)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336netbsd*)
5337 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5339 else
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5341 fi
5342 ;;
5343
5344newos6*)
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5346 lt_cv_file_magic_cmd=/usr/bin/file
5347 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5348 ;;
5349
5350*nto* | *qnx*)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354openbsd*)
5355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5357 else
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5359 fi
5360 ;;
5361
5362osf3* | osf4* | osf5*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366rdos*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370solaris*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378sysv4 | sysv4.3*)
5379 case $host_vendor in
5380 motorola)
5381 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]'
5382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5383 ;;
5384 ncr)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387 sequent)
5388 lt_cv_file_magic_cmd='/bin/file'
5389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5390 ;;
5391 sni)
5392 lt_cv_file_magic_cmd='/bin/file'
5393 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5394 lt_cv_file_magic_test_file=/lib/libc.so
5395 ;;
5396 siemens)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 pc)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402 esac
5403 ;;
5404
5405tpf*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408esac
5409
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5412$as_echo "$lt_cv_deplibs_check_method" >&6; }
5413
5414file_magic_glob=
5415want_nocaseglob=no
5416if test "$build" = "$host"; then
5417 case $host_os in
5418 mingw* | pw32*)
5419 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5420 want_nocaseglob=yes
5421 else
5422 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5423 fi
5424 ;;
5425 esac
5426fi
5427
5428file_magic_cmd=$lt_cv_file_magic_cmd
5429deplibs_check_method=$lt_cv_deplibs_check_method
5430test -z "$deplibs_check_method" && deplibs_check_method=unknown
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5455set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
5458if ${ac_cv_prog_DLLTOOL+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460else
5461 if test -n "$DLLTOOL"; then
5462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476 done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481DLLTOOL=$ac_cv_prog_DLLTOOL
5482if test -n "$DLLTOOL"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5484$as_echo "$DLLTOOL" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490
5491fi
5492if test -z "$ac_cv_prog_DLLTOOL"; then
5493 ac_ct_DLLTOOL=$DLLTOOL
5494 # Extract the first word of "dlltool", so it can be a program name with args.
5495set dummy dlltool; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500else
5501 if test -n "$ac_ct_DLLTOOL"; then
5502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516 done
5517IFS=$as_save_IFS
5518
5519fi
5520fi
5521ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5522if test -n "$ac_ct_DLLTOOL"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5524$as_echo "$ac_ct_DLLTOOL" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530 if test "x$ac_ct_DLLTOOL" = x; then
5531 DLLTOOL="false"
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534yes:)
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537ac_tool_warned=yes ;;
5538esac
5539 DLLTOOL=$ac_ct_DLLTOOL
5540 fi
5541else
5542 DLLTOOL="$ac_cv_prog_DLLTOOL"
5543fi
5544
5545test -z "$DLLTOOL" && DLLTOOL=dlltool
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5557$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5558if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560else
5561 lt_cv_sharedlib_from_linklib_cmd='unknown'
5562
5563case $host_os in
5564cygwin* | mingw* | pw32* | cegcc*)
5565 # two different shell functions defined in ltmain.sh
5566 # decide which to use based on capabilities of $DLLTOOL
5567 case `$DLLTOOL --help 2>&1` in
5568 *--identify-strict*)
5569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5570 ;;
5571 *)
5572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5573 ;;
5574 esac
5575 ;;
5576*)
5577 # fallback: assume linklib IS sharedlib
5578 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5579 ;;
5580esac
5581
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5584$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5585sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5586test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5587
5588
5589
5590
5591
5592
5593
5594
5595if test -n "$ac_tool_prefix"; then
5596 for ac_prog in ar
5597 do
5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if ${ac_cv_prog_AR+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$AR"; then
5606 ac_cv_prog_AR="$AR" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620 done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625AR=$ac_cv_prog_AR
5626if test -n "$AR"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5628$as_echo "$AR" >&6; }
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635 test -n "$AR" && break
5636 done
5637fi
5638if test -z "$AR"; then
5639 ac_ct_AR=$AR
5640 for ac_prog in ar
5641do
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643set dummy $ac_prog; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_ac_ct_AR+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 if test -n "$ac_ct_AR"; then
5650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_ac_ct_AR="$ac_prog"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664 done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669ac_ct_AR=$ac_cv_prog_ac_ct_AR
5670if test -n "$ac_ct_AR"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5672$as_echo "$ac_ct_AR" >&6; }
5673else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679 test -n "$ac_ct_AR" && break
5680done
5681
5682 if test "x$ac_ct_AR" = x; then
5683 AR="false"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686yes:)
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689ac_tool_warned=yes ;;
5690esac
5691 AR=$ac_ct_AR
5692 fi
5693fi
5694
5695: ${AR=ar}
5696: ${AR_FLAGS=cru}
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5709$as_echo_n "checking for archiver @FILE support... " >&6; }
5710if ${lt_cv_ar_at_file+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712else
5713 lt_cv_ar_at_file=no
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h. */
5716
5717int
5718main ()
5719{
5720
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"; then :
5726 echo conftest.$ac_objext > conftest.lst
5727 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5729 (eval $lt_ar_try) 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; }
5733 if test "$ac_status" -eq 0; then
5734 # Ensure the archiver fails upon bogus file names.
5735 rm -f conftest.$ac_objext libconftest.a
5736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5737 (eval $lt_ar_try) 2>&5
5738 ac_status=$?
5739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740 test $ac_status = 0; }
5741 if test "$ac_status" -ne 0; then
5742 lt_cv_ar_at_file=@
5743 fi
5744 fi
5745 rm -f conftest.* libconftest.a
5746
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5752$as_echo "$lt_cv_ar_at_file" >&6; }
5753
5754if test "x$lt_cv_ar_at_file" = xno; then
5755 archiver_list_spec=
5756else
5757 archiver_list_spec=$lt_cv_ar_at_file
5758fi
5759
5760
5761
5762
5763
5764
5765
5766if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5768set dummy ${ac_tool_prefix}strip; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if ${ac_cv_prog_STRIP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 if test -n "$STRIP"; then
5775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789 done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794STRIP=$ac_cv_prog_STRIP
5795if test -n "$STRIP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5797$as_echo "$STRIP" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804fi
5805if test -z "$ac_cv_prog_STRIP"; then
5806 ac_ct_STRIP=$STRIP
5807 # Extract the first word of "strip", so it can be a program name with args.
5808set dummy strip; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
5811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 if test -n "$ac_ct_STRIP"; then
5815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_STRIP="strip"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829 done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5835if test -n "$ac_ct_STRIP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5837$as_echo "$ac_ct_STRIP" >&6; }
5838else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843 if test "x$ac_ct_STRIP" = x; then
5844 STRIP=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847yes:)
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850ac_tool_warned=yes ;;
5851esac
5852 STRIP=$ac_ct_STRIP
5853 fi
5854else
5855 STRIP="$ac_cv_prog_STRIP"
5856fi
5857
5858test -z "$STRIP" && STRIP=:
5859
5860
5861
5862
5863
5864
5865if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
5870if ${ac_cv_prog_RANLIB+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872else
5873 if test -n "$RANLIB"; then
5874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893RANLIB=$ac_cv_prog_RANLIB
5894if test -n "$RANLIB"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5896$as_echo "$RANLIB" >&6; }
5897else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902
5903fi
5904if test -z "$ac_cv_prog_RANLIB"; then
5905 ac_ct_RANLIB=$RANLIB
5906 # Extract the first word of "ranlib", so it can be a program name with args.
5907set dummy ranlib; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912else
5913 if test -n "$ac_ct_RANLIB"; then
5914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_RANLIB="ranlib"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928 done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5934if test -n "$ac_ct_RANLIB"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5936$as_echo "$ac_ct_RANLIB" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942 if test "x$ac_ct_RANLIB" = x; then
5943 RANLIB=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951 RANLIB=$ac_ct_RANLIB
5952 fi
5953else
5954 RANLIB="$ac_cv_prog_RANLIB"
5955fi
5956
5957test -z "$RANLIB" && RANLIB=:
5958
5959
5960
5961
5962
5963
5964# Determine commands to create old-style static archives.
5965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5966old_postinstall_cmds='chmod 644 $oldlib'
5967old_postuninstall_cmds=
5968
5969if test -n "$RANLIB"; then
5970 case $host_os in
5971 openbsd*)
5972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5973 ;;
5974 *)
5975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5976 ;;
5977 esac
5978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5979fi
5980
5981case $host_os in
5982 darwin*)
5983 lock_old_archive_extraction=yes ;;
5984 *)
5985 lock_old_archive_extraction=no ;;
5986esac
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026# If no C compiler was specified, use CC.
6027LTCC=${LTCC-"$CC"}
6028
6029# If no C compiler flags were specified, use CFLAGS.
6030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6031
6032# Allow CC to be a program name with arguments.
6033compiler=$CC
6034
6035
6036# Check for command to grab the raw symbol name followed by C symbol from nm.
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6039if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042
6043# These are sane defaults that work on at least a few old systems.
6044# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6045
6046# Character class describing NM global symbol codes.
6047symcode='[BCDEGRST]'
6048
6049# Regexp to match symbols that can be accessed directly from C.
6050sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6051
6052# Define system-specific variables.
6053case $host_os in
6054aix*)
6055 symcode='[BCDT]'
6056 ;;
6057cygwin* | mingw* | pw32* | cegcc*)
6058 symcode='[ABCDGISTW]'
6059 ;;
6060hpux*)
6061 if test "$host_cpu" = ia64; then
6062 symcode='[ABCDEGRST]'
6063 fi
6064 ;;
6065irix* | nonstopux*)
6066 symcode='[BCDEGRST]'
6067 ;;
6068osf*)
6069 symcode='[BCDEGQRST]'
6070 ;;
6071solaris*)
6072 symcode='[BDRT]'
6073 ;;
6074sco3.2v5*)
6075 symcode='[DT]'
6076 ;;
6077sysv4.2uw2*)
6078 symcode='[DT]'
6079 ;;
6080sysv5* | sco5v6* | unixware* | OpenUNIX*)
6081 symcode='[ABDT]'
6082 ;;
6083sysv4)
6084 symcode='[DFNSTU]'
6085 ;;
6086esac
6087
6088# If we're using GNU nm, then use its standard symbol codes.
6089case `$NM -V 2>&1` in
6090*GNU* | *'with BFD'*)
6091 symcode='[ABCDGIRSTW]' ;;
6092esac
6093
6094# Transform an extracted symbol line into a proper C declaration.
6095# Some systems (esp. on ia64) link data and code symbols differently,
6096# so use this general approach.
6097lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6098
6099# Transform an extracted symbol line into symbol name and symbol address
6100lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6101lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6102
6103# Handle CRLF in mingw tool chain
6104opt_cr=
6105case $build_os in
6106mingw*)
6107 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6108 ;;
6109esac
6110
6111# Try without a prefix underscore, then with it.
6112for ac_symprfx in "" "_"; do
6113
6114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6115 symxfrm="\\1 $ac_symprfx\\2 \\2"
6116
6117 # Write the raw and C identifiers.
6118 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6119 # Fake it for dumpbin and say T for any non-static function
6120 # and D for any global variable.
6121 # Also find C++ and __fastcall symbols from MSVC++,
6122 # which start with @ or ?.
6123 lt_cv_sys_global_symbol_pipe="$AWK '"\
6124" {last_section=section; section=\$ 3};"\
6125" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6126" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6127" \$ 0!~/External *\|/{next};"\
6128" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6129" {if(hide[section]) next};"\
6130" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6131" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6132" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6133" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6134" ' prfx=^$ac_symprfx"
6135 else
6136 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6137 fi
6138 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6139
6140 # Check to see that the pipe works correctly.
6141 pipe_works=no
6142
6143 rm -f conftest*
6144 cat > conftest.$ac_ext <<_LT_EOF
6145#ifdef __cplusplus
6146extern "C" {
6147#endif
6148char nm_test_var;
6149void nm_test_func(void);
6150void nm_test_func(void){}
6151#ifdef __cplusplus
6152}
6153#endif
6154int main(){nm_test_var='a';nm_test_func();return(0);}
6155_LT_EOF
6156
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6158 (eval $ac_compile) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; then
6162 # Now try to grab the symbols.
6163 nlist=conftest.nm
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6165 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s "$nlist"; then
6169 # Try sorting and uniquifying the output.
6170 if sort "$nlist" | uniq > "$nlist"T; then
6171 mv -f "$nlist"T "$nlist"
6172 else
6173 rm -f "$nlist"T
6174 fi
6175
6176 # Make sure that we snagged all the symbols we need.
6177 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6178 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6179 cat <<_LT_EOF > conftest.$ac_ext
6180/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6181#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6182/* DATA imports from DLLs on WIN32 con't be const, because runtime
6183 relocations are performed -- see ld's documentation on pseudo-relocs. */
6184# define LT_DLSYM_CONST
6185#elif defined(__osf__)
6186/* This system does not cope well with relocations in const data. */
6187# define LT_DLSYM_CONST
6188#else
6189# define LT_DLSYM_CONST const
6190#endif
6191
6192#ifdef __cplusplus
6193extern "C" {
6194#endif
6195
6196_LT_EOF
6197 # Now generate the symbol file.
6198 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6199
6200 cat <<_LT_EOF >> conftest.$ac_ext
6201
6202/* The mapping between symbol names and symbols. */
6203LT_DLSYM_CONST struct {
6204 const char *name;
6205 void *address;
6206}
6207lt__PROGRAM__LTX_preloaded_symbols[] =
6208{
6209 { "@PROGRAM@", (void *) 0 },
6210_LT_EOF
6211 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6212 cat <<\_LT_EOF >> conftest.$ac_ext
6213 {0, (void *) 0}
6214};
6215
6216/* This works around a problem in FreeBSD linker */
6217#ifdef FREEBSD_WORKAROUND
6218static const void *lt_preloaded_setup() {
6219 return lt__PROGRAM__LTX_preloaded_symbols;
6220}
6221#endif
6222
6223#ifdef __cplusplus
6224}
6225#endif
6226_LT_EOF
6227 # Now try linking the two files.
6228 mv conftest.$ac_objext conftstm.$ac_objext
6229 lt_globsym_save_LIBS=$LIBS
6230 lt_globsym_save_CFLAGS=$CFLAGS
6231 LIBS="conftstm.$ac_objext"
6232 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6234 (eval $ac_link) 2>&5
6235 ac_status=$?
6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6238 pipe_works=yes
6239 fi
6240 LIBS=$lt_globsym_save_LIBS
6241 CFLAGS=$lt_globsym_save_CFLAGS
6242 else
6243 echo "cannot find nm_test_func in $nlist" >&5
6244 fi
6245 else
6246 echo "cannot find nm_test_var in $nlist" >&5
6247 fi
6248 else
6249 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6250 fi
6251 else
6252 echo "$progname: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6254 fi
6255 rm -rf conftest* conftst*
6256
6257 # Do not use the global_symbol_pipe unless it works.
6258 if test "$pipe_works" = yes; then
6259 break
6260 else
6261 lt_cv_sys_global_symbol_pipe=
6262 fi
6263done
6264
6265fi
6266
6267if test -z "$lt_cv_sys_global_symbol_pipe"; then
6268 lt_cv_sys_global_symbol_to_cdecl=
6269fi
6270if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6272$as_echo "failed" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6275$as_echo "ok" >&6; }
6276fi
6277
6278# Response file support.
6279if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6280 nm_file_list_spec='@'
6281elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6282 nm_file_list_spec='@'
6283fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6312$as_echo_n "checking for sysroot... " >&6; }
6313
6314# Check whether --with-sysroot was given.
6315if test "${with_sysroot+set}" = set; then :
6316 withval=$with_sysroot;
6317else
6318 with_sysroot=no
6319fi
6320
6321
6322lt_sysroot=
6323case ${with_sysroot} in #(
6324 yes)
6325 if test "$GCC" = yes; then
6326 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6327 fi
6328 ;; #(
6329 /*)
6330 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6331 ;; #(
6332 no|'')
6333 ;; #(
6334 *)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6336$as_echo "${with_sysroot}" >&6; }
6337 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6338 ;;
6339esac
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6342$as_echo "${lt_sysroot:-no}" >&6; }
6343
6344
6345
6346
6347
6348# Check whether --enable-libtool-lock was given.
6349if test "${enable_libtool_lock+set}" = set; then :
6350 enableval=$enable_libtool_lock;
6351fi
6352
6353test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6354
6355# Some flags need to be propagated to the compiler or linker for good
6356# libtool support.
6357case $host in
6358ia64-*-hpux*)
6359 # Find out which ABI we are using.
6360 echo 'int i;' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362 (eval $ac_compile) 2>&5
6363 ac_status=$?
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
6366 case `/usr/bin/file conftest.$ac_objext` in
6367 *ELF-32*)
6368 HPUX_IA64_MODE="32"
6369 ;;
6370 *ELF-64*)
6371 HPUX_IA64_MODE="64"
6372 ;;
6373 esac
6374 fi
6375 rm -rf conftest*
6376 ;;
6377*-*-irix6*)
6378 # Find out which ABI we are using.
6379 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 if test "$lt_cv_prog_gnu_ld" = yes; then
6386 case `/usr/bin/file conftest.$ac_objext` in
6387 *32-bit*)
6388 LD="${LD-ld} -melf32bsmip"
6389 ;;
6390 *N32*)
6391 LD="${LD-ld} -melf32bmipn32"
6392 ;;
6393 *64-bit*)
6394 LD="${LD-ld} -melf64bmip"
6395 ;;
6396 esac
6397 else
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *32-bit*)
6400 LD="${LD-ld} -32"
6401 ;;
6402 *N32*)
6403 LD="${LD-ld} -n32"
6404 ;;
6405 *64-bit*)
6406 LD="${LD-ld} -64"
6407 ;;
6408 esac
6409 fi
6410 fi
6411 rm -rf conftest*
6412 ;;
6413
6414x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6415s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *32-bit*)
6425 case $host in
6426 x86_64-*kfreebsd*-gnu)
6427 LD="${LD-ld} -m elf_i386_fbsd"
6428 ;;
6429 x86_64-*linux*)
6430 LD="${LD-ld} -m elf_i386"
6431 ;;
6432 ppc64-*linux*|powerpc64-*linux*)
6433 LD="${LD-ld} -m elf32ppclinux"
6434 ;;
6435 s390x-*linux*)
6436 LD="${LD-ld} -m elf_s390"
6437 ;;
6438 sparc64-*linux*)
6439 LD="${LD-ld} -m elf32_sparc"
6440 ;;
6441 esac
6442 ;;
6443 *64-bit*)
6444 case $host in
6445 x86_64-*kfreebsd*-gnu)
6446 LD="${LD-ld} -m elf_x86_64_fbsd"
6447 ;;
6448 x86_64-*linux*)
6449 LD="${LD-ld} -m elf_x86_64"
6450 ;;
6451 ppc*-*linux*|powerpc*-*linux*)
6452 LD="${LD-ld} -m elf64ppc"
6453 ;;
6454 s390*-*linux*|s390*-*tpf*)
6455 LD="${LD-ld} -m elf64_s390"
6456 ;;
6457 sparc*-*linux*)
6458 LD="${LD-ld} -m elf64_sparc"
6459 ;;
6460 esac
6461 ;;
6462 esac
6463 fi
6464 rm -rf conftest*
6465 ;;
6466
6467*-*-sco3.2v5*)
6468 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6469 SAVE_CFLAGS="$CFLAGS"
6470 CFLAGS="$CFLAGS -belf"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6472$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6473if ${lt_cv_cc_needs_belf+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475else
6476 ac_ext=c
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494 lt_cv_cc_needs_belf=yes
6495else
6496 lt_cv_cc_needs_belf=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 ac_ext=c
6501ac_cpp='$CPP $CPPFLAGS'
6502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506fi
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6508$as_echo "$lt_cv_cc_needs_belf" >&6; }
6509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6511 CFLAGS="$SAVE_CFLAGS"
6512 fi
6513 ;;
6514*-*solaris*)
6515 # Find out which ABI we are using.
6516 echo 'int i;' > conftest.$ac_ext
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 case `/usr/bin/file conftest.o` in
6523 *64-bit*)
6524 case $lt_cv_prog_gnu_ld in
6525 yes*)
6526 case $host in
6527 i?86-*-solaris*)
6528 LD="${LD-ld} -m elf_x86_64"
6529 ;;
6530 sparc*-*-solaris*)
6531 LD="${LD-ld} -m elf64_sparc"
6532 ;;
6533 esac
6534 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6535 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6536 LD="${LD-ld}_sol2"
6537 fi
6538 ;;
6539 *)
6540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6541 LD="${LD-ld} -64"
6542 fi
6543 ;;
6544 esac
6545 ;;
6546 esac
6547 fi
6548 rm -rf conftest*
6549 ;;
6550esac
6551
6552need_locks="$enable_libtool_lock"
6553
6554if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}mt; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561else
6562 if test -n "$MANIFEST_TOOL"; then
6563 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576done
6577 done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6583if test -n "$MANIFEST_TOOL"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6585$as_echo "$MANIFEST_TOOL" >&6; }
6586else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591
6592fi
6593if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6594 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6595 # Extract the first word of "mt", so it can be a program name with args.
6596set dummy mt; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
6599if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$ac_ct_MANIFEST_TOOL"; then
6603 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617 done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6623if test -n "$ac_ct_MANIFEST_TOOL"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6625$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6632 MANIFEST_TOOL=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638ac_tool_warned=yes ;;
6639esac
6640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6641 fi
6642else
6643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6644fi
6645
6646test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6648$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6649if ${lt_cv_path_mainfest_tool+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651else
6652 lt_cv_path_mainfest_tool=no
6653 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6654 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6655 cat conftest.err >&5
6656 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6657 lt_cv_path_mainfest_tool=yes
6658 fi
6659 rm -f conftest*
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6662$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6663if test "x$lt_cv_path_mainfest_tool" != xyes; then
6664 MANIFEST_TOOL=:
6665fi
6666
6667
6668
6669
6670
6671
6672 case $host_os in
6673 rhapsody* | darwin*)
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6676set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_DSYMUTIL+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 if test -n "$DSYMUTIL"; then
6683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696done
6697 done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702DSYMUTIL=$ac_cv_prog_DSYMUTIL
6703if test -n "$DSYMUTIL"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6705$as_echo "$DSYMUTIL" >&6; }
6706else
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711
6712fi
6713if test -z "$ac_cv_prog_DSYMUTIL"; then
6714 ac_ct_DSYMUTIL=$DSYMUTIL
6715 # Extract the first word of "dsymutil", so it can be a program name with args.
6716set dummy dsymutil; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
6719if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721else
6722 if test -n "$ac_ct_DSYMUTIL"; then
6723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737 done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6743if test -n "$ac_ct_DSYMUTIL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6745$as_echo "$ac_ct_DSYMUTIL" >&6; }
6746else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
6749fi
6750
6751 if test "x$ac_ct_DSYMUTIL" = x; then
6752 DSYMUTIL=":"
6753 else
6754 case $cross_compiling:$ac_tool_warned in
6755yes:)
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758ac_tool_warned=yes ;;
6759esac
6760 DSYMUTIL=$ac_ct_DSYMUTIL
6761 fi
6762else
6763 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6764fi
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6768set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770$as_echo_n "checking for $ac_word... " >&6; }
6771if ${ac_cv_prog_NMEDIT+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774 if test -n "$NMEDIT"; then
6775 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788done
6789 done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794NMEDIT=$ac_cv_prog_NMEDIT
6795if test -n "$NMEDIT"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6797$as_echo "$NMEDIT" >&6; }
6798else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802
6803
6804fi
6805if test -z "$ac_cv_prog_NMEDIT"; then
6806 ac_ct_NMEDIT=$NMEDIT
6807 # Extract the first word of "nmedit", so it can be a program name with args.
6808set dummy nmedit; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813else
6814 if test -n "$ac_ct_NMEDIT"; then
6815 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829 done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6835if test -n "$ac_ct_NMEDIT"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6837$as_echo "$ac_ct_NMEDIT" >&6; }
6838else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843 if test "x$ac_ct_NMEDIT" = x; then
6844 NMEDIT=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852 NMEDIT=$ac_ct_NMEDIT
6853 fi
6854else
6855 NMEDIT="$ac_cv_prog_NMEDIT"
6856fi
6857
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}lipo; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if ${ac_cv_prog_LIPO+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881 done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886LIPO=$ac_cv_prog_LIPO
6887if test -n "$LIPO"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6889$as_echo "$LIPO" >&6; }
6890else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_LIPO"; then
6898 ac_ct_LIPO=$LIPO
6899 # Extract the first word of "lipo", so it can be a program name with args.
6900set dummy lipo; ac_word=$2
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905else
6906 if test -n "$ac_ct_LIPO"; then
6907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_ac_ct_LIPO="lipo"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921 done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6927if test -n "$ac_ct_LIPO"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6929$as_echo "$ac_ct_LIPO" >&6; }
6930else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
6933fi
6934
6935 if test "x$ac_ct_LIPO" = x; then
6936 LIPO=":"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942ac_tool_warned=yes ;;
6943esac
6944 LIPO=$ac_ct_LIPO
6945 fi
6946else
6947 LIPO="$ac_cv_prog_LIPO"
6948fi
6949
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6952set dummy ${ac_tool_prefix}otool; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if ${ac_cv_prog_OTOOL+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957else
6958 if test -n "$OTOOL"; then
6959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973 done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978OTOOL=$ac_cv_prog_OTOOL
6979if test -n "$OTOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6981$as_echo "$OTOOL" >&6; }
6982else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987
6988fi
6989if test -z "$ac_cv_prog_OTOOL"; then
6990 ac_ct_OTOOL=$OTOOL
6991 # Extract the first word of "otool", so it can be a program name with args.
6992set dummy otool; ac_word=$2
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994$as_echo_n "checking for $ac_word... " >&6; }
6995if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997else
6998 if test -n "$ac_ct_OTOOL"; then
6999 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_ac_ct_OTOOL="otool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013 done
7014IFS=$as_save_IFS
7015
7016fi
7017fi
7018ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7019if test -n "$ac_ct_OTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7021$as_echo "$ac_ct_OTOOL" >&6; }
7022else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025fi
7026
7027 if test "x$ac_ct_OTOOL" = x; then
7028 OTOOL=":"
7029 else
7030 case $cross_compiling:$ac_tool_warned in
7031yes:)
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034ac_tool_warned=yes ;;
7035esac
7036 OTOOL=$ac_ct_OTOOL
7037 fi
7038else
7039 OTOOL="$ac_cv_prog_OTOOL"
7040fi
7041
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}otool64; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if ${ac_cv_prog_OTOOL64+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test -n "$OTOOL64"; then
7051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065 done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070OTOOL64=$ac_cv_prog_OTOOL64
7071if test -n "$OTOOL64"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7073$as_echo "$OTOOL64" >&6; }
7074else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080fi
7081if test -z "$ac_cv_prog_OTOOL64"; then
7082 ac_ct_OTOOL64=$OTOOL64
7083 # Extract the first word of "otool64", so it can be a program name with args.
7084set dummy otool64; ac_word=$2
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086$as_echo_n "checking for $ac_word... " >&6; }
7087if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089else
7090 if test -n "$ac_ct_OTOOL64"; then
7091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_ac_ct_OTOOL64="otool64"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104done
7105 done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7111if test -n "$ac_ct_OTOOL64"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7113$as_echo "$ac_ct_OTOOL64" >&6; }
7114else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
7118
7119 if test "x$ac_ct_OTOOL64" = x; then
7120 OTOOL64=":"
7121 else
7122 case $cross_compiling:$ac_tool_warned in
7123yes:)
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126ac_tool_warned=yes ;;
7127esac
7128 OTOOL64=$ac_ct_OTOOL64
7129 fi
7130else
7131 OTOOL64="$ac_cv_prog_OTOOL64"
7132fi
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7161$as_echo_n "checking for -single_module linker flag... " >&6; }
7162if ${lt_cv_apple_cc_single_mod+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164else
7165 lt_cv_apple_cc_single_mod=no
7166 if test -z "${LT_MULTI_MODULE}"; then
7167 # By default we will add the -single_module flag. You can override
7168 # by either setting the environment variable LT_MULTI_MODULE
7169 # non-empty at configure time, or by adding -multi_module to the
7170 # link flags.
7171 rm -rf libconftest.dylib*
7172 echo "int foo(void){return 1;}" > conftest.c
7173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7174-dynamiclib -Wl,-single_module conftest.c" >&5
7175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7177 _lt_result=$?
7178 # If there is a non-empty error log, and "single_module"
7179 # appears in it, assume the flag caused a linker warning
7180 if test -s conftest.err && $GREP single_module conftest.err; then
7181 cat conftest.err >&5
7182 # Otherwise, if the output was created with a 0 exit code from
7183 # the compiler, it worked.
7184 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7185 lt_cv_apple_cc_single_mod=yes
7186 else
7187 cat conftest.err >&5
7188 fi
7189 rm -rf libconftest.dylib*
7190 rm -f conftest.*
7191 fi
7192fi
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7194$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7197$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7198if ${lt_cv_ld_exported_symbols_list+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200else
7201 lt_cv_ld_exported_symbols_list=no
7202 save_LDFLAGS=$LDFLAGS
7203 echo "_main" > conftest.sym
7204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h. */
7207
7208int
7209main ()
7210{
7211
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216if ac_fn_c_try_link "$LINENO"; then :
7217 lt_cv_ld_exported_symbols_list=yes
7218else
7219 lt_cv_ld_exported_symbols_list=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LDFLAGS="$save_LDFLAGS"
7224
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7227$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7230$as_echo_n "checking for -force_load linker flag... " >&6; }
7231if ${lt_cv_ld_force_load+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233else
7234 lt_cv_ld_force_load=no
7235 cat > conftest.c << _LT_EOF
7236int forced_loaded() { return 2;}
7237_LT_EOF
7238 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7239 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7240 echo "$AR cru libconftest.a conftest.o" >&5
7241 $AR cru libconftest.a conftest.o 2>&5
7242 echo "$RANLIB libconftest.a" >&5
7243 $RANLIB libconftest.a 2>&5
7244 cat > conftest.c << _LT_EOF
7245int main() { return 0;}
7246_LT_EOF
7247 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7248 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7249 _lt_result=$?
7250 if test -s conftest.err && $GREP force_load conftest.err; then
7251 cat conftest.err >&5
7252 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7253 lt_cv_ld_force_load=yes
7254 else
7255 cat conftest.err >&5
7256 fi
7257 rm -f conftest.err libconftest.a conftest conftest.c
7258 rm -rf conftest.dSYM
7259
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7262$as_echo "$lt_cv_ld_force_load" >&6; }
7263 case $host_os in
7264 rhapsody* | darwin1.[012])
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7266 darwin1.*)
7267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7268 darwin*) # darwin 5.x on
7269 # if running on 10.5 or later, the deployment target defaults
7270 # to the OS version, if on x86, and 10.4, the deployment
7271 # target defaults to 10.4. Don't you love it?
7272 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7273 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7275 10.[012]*)
7276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7277 10.*)
7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7279 esac
7280 ;;
7281 esac
7282 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7283 _lt_dar_single_mod='$single_module'
7284 fi
7285 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7286 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7287 else
7288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7289 fi
7290 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7291 _lt_dsymutil='~$DSYMUTIL $lib || :'
7292 else
7293 _lt_dsymutil=
7294 fi
7295 ;;
7296 esac
7297
7298ac_ext=c
7299ac_cpp='$CPP $CPPFLAGS'
7300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7304$as_echo_n "checking how to run the C preprocessor... " >&6; }
7305# On Suns, sometimes $CPP names a directory.
7306if test -n "$CPP" && test -d "$CPP"; then
7307 CPP=
7308fi
7309if test -z "$CPP"; then
7310 if ${ac_cv_prog_CPP+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312else
7313 # Double quotes because CPP needs to be expanded
7314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7315 do
7316 ac_preproc_ok=false
7317for ac_c_preproc_warn_flag in '' yes
7318do
7319 # Use a header file that comes with gcc, so configuring glibc
7320 # with a fresh cross-compiler works.
7321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 # <limits.h> exists even on freestanding compilers.
7323 # On the NeXT, cc -E runs the code through the compiler's parser,
7324 # not just through cpp. "Syntax error" is here to catch this case.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h. */
7327#ifdef __STDC__
7328# include <limits.h>
7329#else
7330# include <assert.h>
7331#endif
7332 Syntax error
7333_ACEOF
7334if ac_fn_c_try_cpp "$LINENO"; then :
7335
7336else
7337 # Broken: fails on valid input.
7338continue
7339fi
7340rm -f conftest.err conftest.i conftest.$ac_ext
7341
7342 # OK, works on sane cases. Now check whether nonexistent headers
7343 # can be detected and how.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h. */
7346#include <ac_nonexistent.h>
7347_ACEOF
7348if ac_fn_c_try_cpp "$LINENO"; then :
7349 # Broken: success on invalid input.
7350continue
7351else
7352 # Passes both tests.
7353ac_preproc_ok=:
7354break
7355fi
7356rm -f conftest.err conftest.i conftest.$ac_ext
7357
7358done
7359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7360rm -f conftest.i conftest.err conftest.$ac_ext
7361if $ac_preproc_ok; then :
7362 break
7363fi
7364
7365 done
7366 ac_cv_prog_CPP=$CPP
7367
7368fi
7369 CPP=$ac_cv_prog_CPP
7370else
7371 ac_cv_prog_CPP=$CPP
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7374$as_echo "$CPP" >&6; }
7375ac_preproc_ok=false
7376for ac_c_preproc_warn_flag in '' yes
7377do
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h. */
7386#ifdef __STDC__
7387# include <limits.h>
7388#else
7389# include <assert.h>
7390#endif
7391 Syntax error
7392_ACEOF
7393if ac_fn_c_try_cpp "$LINENO"; then :
7394
7395else
7396 # Broken: fails on valid input.
7397continue
7398fi
7399rm -f conftest.err conftest.i conftest.$ac_ext
7400
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h. */
7405#include <ac_nonexistent.h>
7406_ACEOF
7407if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7409continue
7410else
7411 # Passes both tests.
7412ac_preproc_ok=:
7413break
7414fi
7415rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417done
7418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419rm -f conftest.i conftest.err conftest.$ac_ext
7420if $ac_preproc_ok; then :
7421
7422else
7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7425as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7426See \`config.log' for more details" "$LINENO" 5; }
7427fi
7428
7429ac_ext=c
7430ac_cpp='$CPP $CPPFLAGS'
7431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7437$as_echo_n "checking for ANSI C header files... " >&6; }
7438if ${ac_cv_header_stdc+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h. */
7443#include <stdlib.h>
7444#include <stdarg.h>
7445#include <string.h>
7446#include <float.h>
7447
7448int
7449main ()
7450{
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_compile "$LINENO"; then :
7457 ac_cv_header_stdc=yes
7458else
7459 ac_cv_header_stdc=no
7460fi
7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462
7463if test $ac_cv_header_stdc = yes; then
7464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h. */
7467#include <string.h>
7468
7469_ACEOF
7470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 $EGREP "memchr" >/dev/null 2>&1; then :
7472
7473else
7474 ac_cv_header_stdc=no
7475fi
7476rm -f conftest*
7477
7478fi
7479
7480if test $ac_cv_header_stdc = yes; then
7481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h. */
7484#include <stdlib.h>
7485
7486_ACEOF
7487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488 $EGREP "free" >/dev/null 2>&1; then :
7489
7490else
7491 ac_cv_header_stdc=no
7492fi
7493rm -f conftest*
7494
7495fi
7496
7497if test $ac_cv_header_stdc = yes; then
7498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7499 if test "$cross_compiling" = yes; then :
7500 :
7501else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h. */
7504#include <ctype.h>
7505#include <stdlib.h>
7506#if ((' ' & 0x0FF) == 0x020)
7507# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7508# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7509#else
7510# define ISLOWER(c) \
7511 (('a' <= (c) && (c) <= 'i') \
7512 || ('j' <= (c) && (c) <= 'r') \
7513 || ('s' <= (c) && (c) <= 'z'))
7514# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7515#endif
7516
7517#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7518int
7519main ()
7520{
7521 int i;
7522 for (i = 0; i < 256; i++)
7523 if (XOR (islower (i), ISLOWER (i))
7524 || toupper (i) != TOUPPER (i))
7525 return 2;
7526 return 0;
7527}
7528_ACEOF
7529if ac_fn_c_try_run "$LINENO"; then :
7530
7531else
7532 ac_cv_header_stdc=no
7533fi
7534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7535 conftest.$ac_objext conftest.beam conftest.$ac_ext
7536fi
7537
7538fi
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7541$as_echo "$ac_cv_header_stdc" >&6; }
7542if test $ac_cv_header_stdc = yes; then
7543
7544$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7545
7546fi
7547
7548# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7550 inttypes.h stdint.h unistd.h
7551do :
7552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7554"
7555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7556 cat >>confdefs.h <<_ACEOF
7557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7558_ACEOF
7559
7560fi
7561
7562done
7563
7564
7565for ac_header in dlfcn.h
7566do :
7567 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7568"
7569if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571#define HAVE_DLFCN_H 1
7572_ACEOF
7573
7574fi
7575
7576done
7577
7578
7579
7580
7581
7582# Set options
7583
7584
7585
7586 enable_dlopen=no
7587
7588
7589 enable_win32_dll=no
7590
7591
7592 # Check whether --enable-shared was given.
7593if test "${enable_shared+set}" = set; then :
7594 enableval=$enable_shared; p=${PACKAGE-default}
7595 case $enableval in
7596 yes) enable_shared=yes ;;
7597 no) enable_shared=no ;;
7598 *)
7599 enable_shared=no
7600 # Look at the argument we got. We use all the common list separators.
7601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7602 for pkg in $enableval; do
7603 IFS="$lt_save_ifs"
7604 if test "X$pkg" = "X$p"; then
7605 enable_shared=yes
7606 fi
7607 done
7608 IFS="$lt_save_ifs"
7609 ;;
7610 esac
7611else
7612 enable_shared=yes
7613fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 # Check whether --enable-static was given.
7624if test "${enable_static+set}" = set; then :
7625 enableval=$enable_static; p=${PACKAGE-default}
7626 case $enableval in
7627 yes) enable_static=yes ;;
7628 no) enable_static=no ;;
7629 *)
7630 enable_static=no
7631 # Look at the argument we got. We use all the common list separators.
7632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7633 for pkg in $enableval; do
7634 IFS="$lt_save_ifs"
7635 if test "X$pkg" = "X$p"; then
7636 enable_static=yes
7637 fi
7638 done
7639 IFS="$lt_save_ifs"
7640 ;;
7641 esac
7642else
7643 enable_static=yes
7644fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655# Check whether --with-pic was given.
7656if test "${with_pic+set}" = set; then :
7657 withval=$with_pic; lt_p=${PACKAGE-default}
7658 case $withval in
7659 yes|no) pic_mode=$withval ;;
7660 *)
7661 pic_mode=default
7662 # Look at the argument we got. We use all the common list separators.
7663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7664 for lt_pkg in $withval; do
7665 IFS="$lt_save_ifs"
7666 if test "X$lt_pkg" = "X$lt_p"; then
7667 pic_mode=yes
7668 fi
7669 done
7670 IFS="$lt_save_ifs"
7671 ;;
7672 esac
7673else
7674 pic_mode=default
7675fi
7676
7677
7678test -z "$pic_mode" && pic_mode=default
7679
7680
7681
7682
7683
7684
7685
7686 # Check whether --enable-fast-install was given.
7687if test "${enable_fast_install+set}" = set; then :
7688 enableval=$enable_fast_install; p=${PACKAGE-default}
7689 case $enableval in
7690 yes) enable_fast_install=yes ;;
7691 no) enable_fast_install=no ;;
7692 *)
7693 enable_fast_install=no
7694 # Look at the argument we got. We use all the common list separators.
7695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7696 for pkg in $enableval; do
7697 IFS="$lt_save_ifs"
7698 if test "X$pkg" = "X$p"; then
7699 enable_fast_install=yes
7700 fi
7701 done
7702 IFS="$lt_save_ifs"
7703 ;;
7704 esac
7705else
7706 enable_fast_install=yes
7707fi
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719# This can be used to rebuild libtool when needed
7720LIBTOOL_DEPS="$ltmain"
7721
7722# Always use our own libtool.
7723LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754test -z "$LN_S" && LN_S="ln -s"
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769if test -n "${ZSH_VERSION+set}" ; then
7770 setopt NO_GLOB_SUBST
7771fi
7772
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7774$as_echo_n "checking for objdir... " >&6; }
7775if ${lt_cv_objdir+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777else
7778 rm -f .libs 2>/dev/null
7779mkdir .libs 2>/dev/null
7780if test -d .libs; then
7781 lt_cv_objdir=.libs
7782else
7783 # MS-DOS does not allow filenames that begin with a dot.
7784 lt_cv_objdir=_libs
7785fi
7786rmdir .libs 2>/dev/null
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7789$as_echo "$lt_cv_objdir" >&6; }
7790objdir=$lt_cv_objdir
7791
7792
7793
7794
7795
7796cat >>confdefs.h <<_ACEOF
7797#define LT_OBJDIR "$lt_cv_objdir/"
7798_ACEOF
7799
7800
7801
7802
7803case $host_os in
7804aix3*)
7805 # AIX sometimes has problems with the GCC collect2 program. For some
7806 # reason, if we set the COLLECT_NAMES environment variable, the problems
7807 # vanish in a puff of smoke.
7808 if test "X${COLLECT_NAMES+set}" != Xset; then
7809 COLLECT_NAMES=
7810 export COLLECT_NAMES
7811 fi
7812 ;;
7813esac
7814
7815# Global variables:
7816ofile=libtool
7817can_build_shared=yes
7818
7819# All known linkers require a `.a' archive for static linking (except MSVC,
7820# which needs '.lib').
7821libext=a
7822
7823with_gnu_ld="$lt_cv_prog_gnu_ld"
7824
7825old_CC="$CC"
7826old_CFLAGS="$CFLAGS"
7827
7828# Set sane defaults for various variables
7829test -z "$CC" && CC=cc
7830test -z "$LTCC" && LTCC=$CC
7831test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7832test -z "$LD" && LD=ld
7833test -z "$ac_objext" && ac_objext=o
7834
7835for cc_temp in $compiler""; do
7836 case $cc_temp in
7837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7839 \-*) ;;
7840 *) break;;
7841 esac
7842done
7843cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7844
7845
7846# Only perform the check for file, if the check method requires it
7847test -z "$MAGIC_CMD" && MAGIC_CMD=file
7848case $deplibs_check_method in
7849file_magic*)
7850 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7852$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7853if ${lt_cv_path_MAGIC_CMD+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855else
7856 case $MAGIC_CMD in
7857[\\/*] | ?:[\\/]*)
7858 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7859 ;;
7860*)
7861 lt_save_MAGIC_CMD="$MAGIC_CMD"
7862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7863 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7864 for ac_dir in $ac_dummy; do
7865 IFS="$lt_save_ifs"
7866 test -z "$ac_dir" && ac_dir=.
7867 if test -f $ac_dir/${ac_tool_prefix}file; then
7868 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7869 if test -n "$file_magic_test_file"; then
7870 case $deplibs_check_method in
7871 "file_magic "*)
7872 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7874 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7875 $EGREP "$file_magic_regex" > /dev/null; then
7876 :
7877 else
7878 cat <<_LT_EOF 1>&2
7879
7880*** Warning: the command libtool uses to detect shared libraries,
7881*** $file_magic_cmd, produces output that libtool cannot recognize.
7882*** The result is that libtool may fail to recognize shared libraries
7883*** as such. This will affect the creation of libtool libraries that
7884*** depend on shared libraries, but programs linked with such libtool
7885*** libraries will work regardless of this problem. Nevertheless, you
7886*** may want to report the problem to your system manager and/or to
7887*** bug-libtool@gnu.org
7888
7889_LT_EOF
7890 fi ;;
7891 esac
7892 fi
7893 break
7894 fi
7895 done
7896 IFS="$lt_save_ifs"
7897 MAGIC_CMD="$lt_save_MAGIC_CMD"
7898 ;;
7899esac
7900fi
7901
7902MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903if test -n "$MAGIC_CMD"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7905$as_echo "$MAGIC_CMD" >&6; }
7906else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911
7912
7913
7914
7915if test -z "$lt_cv_path_MAGIC_CMD"; then
7916 if test -n "$ac_tool_prefix"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7918$as_echo_n "checking for file... " >&6; }
7919if ${lt_cv_path_MAGIC_CMD+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921else
7922 case $MAGIC_CMD in
7923[\\/*] | ?:[\\/]*)
7924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7925 ;;
7926*)
7927 lt_save_MAGIC_CMD="$MAGIC_CMD"
7928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7930 for ac_dir in $ac_dummy; do
7931 IFS="$lt_save_ifs"
7932 test -z "$ac_dir" && ac_dir=.
7933 if test -f $ac_dir/file; then
7934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7935 if test -n "$file_magic_test_file"; then
7936 case $deplibs_check_method in
7937 "file_magic "*)
7938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7941 $EGREP "$file_magic_regex" > /dev/null; then
7942 :
7943 else
7944 cat <<_LT_EOF 1>&2
7945
7946*** Warning: the command libtool uses to detect shared libraries,
7947*** $file_magic_cmd, produces output that libtool cannot recognize.
7948*** The result is that libtool may fail to recognize shared libraries
7949*** as such. This will affect the creation of libtool libraries that
7950*** depend on shared libraries, but programs linked with such libtool
7951*** libraries will work regardless of this problem. Nevertheless, you
7952*** may want to report the problem to your system manager and/or to
7953*** bug-libtool@gnu.org
7954
7955_LT_EOF
7956 fi ;;
7957 esac
7958 fi
7959 break
7960 fi
7961 done
7962 IFS="$lt_save_ifs"
7963 MAGIC_CMD="$lt_save_MAGIC_CMD"
7964 ;;
7965esac
7966fi
7967
7968MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7969if test -n "$MAGIC_CMD"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7971$as_echo "$MAGIC_CMD" >&6; }
7972else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975fi
7976
7977
7978 else
7979 MAGIC_CMD=:
7980 fi
7981fi
7982
7983 fi
7984 ;;
7985esac
7986
7987# Use C for the default configuration in the libtool script
7988
7989lt_save_CC="$CC"
7990ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996
7997# Source file extension for C test sources.
7998ac_ext=c
7999
8000# Object file extension for compiled C test sources.
8001objext=o
8002objext=$objext
8003
8004# Code to be used in simple compile tests
8005lt_simple_compile_test_code="int some_variable = 0;"
8006
8007# Code to be used in simple link tests
8008lt_simple_link_test_code='int main(){return(0);}'
8009
8010
8011
8012
8013
8014
8015
8016# If no C compiler was specified, use CC.
8017LTCC=${LTCC-"$CC"}
8018
8019# If no C compiler flags were specified, use CFLAGS.
8020LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8021
8022# Allow CC to be a program name with arguments.
8023compiler=$CC
8024
8025# Save the default compiler, since it gets overwritten when the other
8026# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8027compiler_DEFAULT=$CC
8028
8029# save warnings/boilerplate of simple test code
8030ac_outfile=conftest.$ac_objext
8031echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8033_lt_compiler_boilerplate=`cat conftest.err`
8034$RM conftest*
8035
8036ac_outfile=conftest.$ac_objext
8037echo "$lt_simple_link_test_code" >conftest.$ac_ext
8038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8039_lt_linker_boilerplate=`cat conftest.err`
8040$RM -r conftest*
8041
8042
8043if test -n "$compiler"; then
8044
8045lt_prog_compiler_no_builtin_flag=
8046
8047if test "$GCC" = yes; then
8048 case $cc_basename in
8049 nvcc*)
8050 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8051 *)
8052 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8053 esac
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8056$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8057if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 lt_cv_prog_compiler_rtti_exceptions=no
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8063 lt_compiler_flag="-fno-rtti -fno-exceptions"
8064 # Insert the option either (1) after the last *FLAGS variable, or
8065 # (2) before a word containing "conftest.", or (3) at the end.
8066 # Note that $ac_compile itself does not contain backslashes and begins
8067 # with a dollar sign (not a hyphen), so the echo should work correctly.
8068 # The option is referenced via a variable to avoid confusing sed.
8069 lt_compile=`echo "$ac_compile" | $SED \
8070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8072 -e 's:$: $lt_compiler_flag:'`
8073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8074 (eval "$lt_compile" 2>conftest.err)
8075 ac_status=$?
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 if (exit $ac_status) && test -s "$ac_outfile"; then
8079 # The compiler can only warn and ignore the option if not recognized
8080 # So say no if there are warnings other than the usual output.
8081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8084 lt_cv_prog_compiler_rtti_exceptions=yes
8085 fi
8086 fi
8087 $RM conftest*
8088
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8091$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8092
8093if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8095else
8096 :
8097fi
8098
8099fi
8100
8101
8102
8103
8104
8105
8106 lt_prog_compiler_wl=
8107lt_prog_compiler_pic=
8108lt_prog_compiler_static=
8109
8110
8111 if test "$GCC" = yes; then
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_static='-static'
8114
8115 case $host_os in
8116 aix*)
8117 # All AIX code is PIC.
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8121 fi
8122 ;;
8123
8124 amigaos*)
8125 case $host_cpu in
8126 powerpc)
8127 # see comment about AmigaOS4 .so support
8128 lt_prog_compiler_pic='-fPIC'
8129 ;;
8130 m68k)
8131 # FIXME: we need at least 68020 code to build shared libraries, but
8132 # adding the `-m68020' flag to GCC prevents building anything better,
8133 # like `-m68040'.
8134 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8135 ;;
8136 esac
8137 ;;
8138
8139 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8140 # PIC is the default for these OSes.
8141 ;;
8142
8143 mingw* | cygwin* | pw32* | os2* | cegcc*)
8144 # This hack is so that the source file can tell whether it is being
8145 # built for inclusion in a dll (and should export symbols for example).
8146 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8147 # (--disable-auto-import) libraries
8148 lt_prog_compiler_pic='-DDLL_EXPORT'
8149 ;;
8150
8151 darwin* | rhapsody*)
8152 # PIC is the default on this platform
8153 # Common symbols not allowed in MH_DYLIB files
8154 lt_prog_compiler_pic='-fno-common'
8155 ;;
8156
8157 haiku*)
8158 # PIC is the default for Haiku.
8159 # The "-static" flag exists, but is broken.
8160 lt_prog_compiler_static=
8161 ;;
8162
8163 hpux*)
8164 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8165 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8166 # sets the default TLS model and affects inlining.
8167 case $host_cpu in
8168 hppa*64*)
8169 # +Z the default
8170 ;;
8171 *)
8172 lt_prog_compiler_pic='-fPIC'
8173 ;;
8174 esac
8175 ;;
8176
8177 interix[3-9]*)
8178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8179 # Instead, we relocate shared libraries at runtime.
8180 ;;
8181
8182 msdosdjgpp*)
8183 # Just because we use GCC doesn't mean we suddenly get shared libraries
8184 # on systems that don't support them.
8185 lt_prog_compiler_can_build_shared=no
8186 enable_shared=no
8187 ;;
8188
8189 *nto* | *qnx*)
8190 # QNX uses GNU C++, but need to define -shared option too, otherwise
8191 # it will coredump.
8192 lt_prog_compiler_pic='-fPIC -shared'
8193 ;;
8194
8195 sysv4*MP*)
8196 if test -d /usr/nec; then
8197 lt_prog_compiler_pic=-Kconform_pic
8198 fi
8199 ;;
8200
8201 *)
8202 lt_prog_compiler_pic='-fPIC'
8203 ;;
8204 esac
8205
8206 case $cc_basename in
8207 nvcc*) # Cuda Compiler Driver 2.2
8208 lt_prog_compiler_wl='-Xlinker '
8209 if test -n "$lt_prog_compiler_pic"; then
8210 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8211 fi
8212 ;;
8213 esac
8214 else
8215 # PORTME Check for flag to pass linker flags through the system compiler.
8216 case $host_os in
8217 aix*)
8218 lt_prog_compiler_wl='-Wl,'
8219 if test "$host_cpu" = ia64; then
8220 # AIX 5 now supports IA64 processor
8221 lt_prog_compiler_static='-Bstatic'
8222 else
8223 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8224 fi
8225 ;;
8226
8227 mingw* | cygwin* | pw32* | os2* | cegcc*)
8228 # This hack is so that the source file can tell whether it is being
8229 # built for inclusion in a dll (and should export symbols for example).
8230 lt_prog_compiler_pic='-DDLL_EXPORT'
8231 ;;
8232
8233 hpux9* | hpux10* | hpux11*)
8234 lt_prog_compiler_wl='-Wl,'
8235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8236 # not for PA HP-UX.
8237 case $host_cpu in
8238 hppa*64*|ia64*)
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='+Z'
8243 ;;
8244 esac
8245 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8246 lt_prog_compiler_static='${wl}-a ${wl}archive'
8247 ;;
8248
8249 irix5* | irix6* | nonstopux*)
8250 lt_prog_compiler_wl='-Wl,'
8251 # PIC (with -KPIC) is the default.
8252 lt_prog_compiler_static='-non_shared'
8253 ;;
8254
8255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8256 case $cc_basename in
8257 # old Intel for x86_64 which still supported -KPIC.
8258 ecc*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-static'
8262 ;;
8263 # icc used to be incompatible with GCC.
8264 # ICC 10 doesn't accept -KPIC any more.
8265 icc* | ifort*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fPIC'
8268 lt_prog_compiler_static='-static'
8269 ;;
8270 # Lahey Fortran 8.1.
8271 lf95*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='--shared'
8274 lt_prog_compiler_static='--static'
8275 ;;
8276 nagfor*)
8277 # NAG Fortran compiler
8278 lt_prog_compiler_wl='-Wl,-Wl,,'
8279 lt_prog_compiler_pic='-PIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 ;;
8282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8283 # Portland Group compilers (*not* the Pentium gcc compiler,
8284 # which looks to be a dead project)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_pic='-fpic'
8287 lt_prog_compiler_static='-Bstatic'
8288 ;;
8289 ccc*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # All Alpha code is PIC.
8292 lt_prog_compiler_static='-non_shared'
8293 ;;
8294 xl* | bgxl* | bgf* | mpixl*)
8295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-qpic'
8298 lt_prog_compiler_static='-qstaticlink'
8299 ;;
8300 *)
8301 case `$CC -V 2>&1 | sed 5q` in
8302 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl=''
8307 ;;
8308 *Sun\ F* | *Sun*Fortran*)
8309 lt_prog_compiler_pic='-KPIC'
8310 lt_prog_compiler_static='-Bstatic'
8311 lt_prog_compiler_wl='-Qoption ld '
8312 ;;
8313 *Sun\ C*)
8314 # Sun C 5.9
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-Bstatic'
8317 lt_prog_compiler_wl='-Wl,'
8318 ;;
8319 *Intel*\ [CF]*Compiler*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
8324 *Portland\ Group*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fpic'
8327 lt_prog_compiler_static='-Bstatic'
8328 ;;
8329 esac
8330 ;;
8331 esac
8332 ;;
8333
8334 newsos6)
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338
8339 *nto* | *qnx*)
8340 # QNX uses GNU C++, but need to define -shared option too, otherwise
8341 # it will coredump.
8342 lt_prog_compiler_pic='-fPIC -shared'
8343 ;;
8344
8345 osf3* | osf4* | osf5*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All OSF/1 code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350
8351 rdos*)
8352 lt_prog_compiler_static='-non_shared'
8353 ;;
8354
8355 solaris*)
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 case $cc_basename in
8359 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8360 lt_prog_compiler_wl='-Qoption ld ';;
8361 *)
8362 lt_prog_compiler_wl='-Wl,';;
8363 esac
8364 ;;
8365
8366 sunos4*)
8367 lt_prog_compiler_wl='-Qoption ld '
8368 lt_prog_compiler_pic='-PIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 sysv4 | sysv4.2uw2* | sysv4.3*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
8377
8378 sysv4*MP*)
8379 if test -d /usr/nec ;then
8380 lt_prog_compiler_pic='-Kconform_pic'
8381 lt_prog_compiler_static='-Bstatic'
8382 fi
8383 ;;
8384
8385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 ;;
8390
8391 unicos*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_can_build_shared=no
8394 ;;
8395
8396 uts4*)
8397 lt_prog_compiler_pic='-pic'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 *)
8402 lt_prog_compiler_can_build_shared=no
8403 ;;
8404 esac
8405 fi
8406
8407case $host_os in
8408 # For platforms which do not support PIC, -DPIC is meaningless:
8409 *djgpp*)
8410 lt_prog_compiler_pic=
8411 ;;
8412 *)
8413 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8414 ;;
8415esac
8416
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8418$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8419if ${lt_cv_prog_compiler_pic+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8425$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8426lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8427
8428#
8429# Check to make sure the PIC flag actually works.
8430#
8431if test -n "$lt_prog_compiler_pic"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8433$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8434if ${lt_cv_prog_compiler_pic_works+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436else
8437 lt_cv_prog_compiler_pic_works=no
8438 ac_outfile=conftest.$ac_objext
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8441 # Insert the option either (1) after the last *FLAGS variable, or
8442 # (2) before a word containing "conftest.", or (3) at the end.
8443 # Note that $ac_compile itself does not contain backslashes and begins
8444 # with a dollar sign (not a hyphen), so the echo should work correctly.
8445 # The option is referenced via a variable to avoid confusing sed.
8446 lt_compile=`echo "$ac_compile" | $SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 (eval "$lt_compile" 2>conftest.err)
8452 ac_status=$?
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 if (exit $ac_status) && test -s "$ac_outfile"; then
8456 # The compiler can only warn and ignore the option if not recognized
8457 # So say no if there are warnings other than the usual output.
8458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8461 lt_cv_prog_compiler_pic_works=yes
8462 fi
8463 fi
8464 $RM conftest*
8465
8466fi
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8468$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8469
8470if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8471 case $lt_prog_compiler_pic in
8472 "" | " "*) ;;
8473 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8474 esac
8475else
8476 lt_prog_compiler_pic=
8477 lt_prog_compiler_can_build_shared=no
8478fi
8479
8480fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492#
8493# Check to make sure the static flag actually works.
8494#
8495wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8497$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8498if ${lt_cv_prog_compiler_static_works+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 lt_cv_prog_compiler_static_works=no
8502 save_LDFLAGS="$LDFLAGS"
8503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8506 # The linker can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 if test -s conftest.err; then
8509 # Append any errors to the config.log.
8510 cat conftest.err 1>&5
8511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_static_works=yes
8515 fi
8516 else
8517 lt_cv_prog_compiler_static_works=yes
8518 fi
8519 fi
8520 $RM -r conftest*
8521 LDFLAGS="$save_LDFLAGS"
8522
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8525$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8526
8527if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8528 :
8529else
8530 lt_prog_compiler_static=
8531fi
8532
8533
8534
8535
8536
8537
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8541if ${lt_cv_prog_compiler_c_o+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543else
8544 lt_cv_prog_compiler_c_o=no
8545 $RM -r conftest 2>/dev/null
8546 mkdir conftest
8547 cd conftest
8548 mkdir out
8549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550
8551 lt_compiler_flag="-o out/conftest2.$ac_objext"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>out/conftest.err)
8562 ac_status=$?
8563 cat out/conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8566 then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_c_o=yes
8573 fi
8574 fi
8575 chmod u+w . 2>&5
8576 $RM conftest*
8577 # SGI C++ compiler will create directory out/ii_files/ for
8578 # template instantiation
8579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8580 $RM out/* && rmdir out
8581 cd ..
8582 $RM -r conftest
8583 $RM conftest*
8584
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8587$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8588
8589
8590
8591
8592
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596if ${lt_cv_prog_compiler_c_o+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598else
8599 lt_cv_prog_compiler_c_o=no
8600 $RM -r conftest 2>/dev/null
8601 mkdir conftest
8602 cd conftest
8603 mkdir out
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606 lt_compiler_flag="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out/conftest.err)
8617 ac_status=$?
8618 cat out/conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621 then
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8627 lt_cv_prog_compiler_c_o=yes
8628 fi
8629 fi
8630 chmod u+w . 2>&5
8631 $RM conftest*
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8635 $RM out/* && rmdir out
8636 cd ..
8637 $RM -r conftest
8638 $RM conftest*
8639
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8643
8644
8645
8646
8647hard_links="nottested"
8648if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8649 # do not overwrite the value of need_locks provided by the user
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8651$as_echo_n "checking if we can lock with hard links... " >&6; }
8652 hard_links=yes
8653 $RM conftest*
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655 touch conftest.a
8656 ln conftest.a conftest.b 2>&5 || hard_links=no
8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8659$as_echo "$hard_links" >&6; }
8660 if test "$hard_links" = no; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8662$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8663 need_locks=warn
8664 fi
8665else
8666 need_locks=no
8667fi
8668
8669
8670
8671
8672
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8675$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8676
8677 runpath_var=
8678 allow_undefined_flag=
8679 always_export_symbols=no
8680 archive_cmds=
8681 archive_expsym_cmds=
8682 compiler_needs_object=no
8683 enable_shared_with_static_runtimes=no
8684 export_dynamic_flag_spec=
8685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8686 hardcode_automatic=no
8687 hardcode_direct=no
8688 hardcode_direct_absolute=no
8689 hardcode_libdir_flag_spec=
8690 hardcode_libdir_separator=
8691 hardcode_minus_L=no
8692 hardcode_shlibpath_var=unsupported
8693 inherit_rpath=no
8694 link_all_deplibs=unknown
8695 module_cmds=
8696 module_expsym_cmds=
8697 old_archive_from_new_cmds=
8698 old_archive_from_expsyms_cmds=
8699 thread_safe_flag_spec=
8700 whole_archive_flag_spec=
8701 # include_expsyms should be a list of space-separated symbols to be *always*
8702 # included in the symbol list
8703 include_expsyms=
8704 # exclude_expsyms can be an extended regexp of symbols to exclude
8705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8707 # as well as any symbol that contains `d'.
8708 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8710 # platforms (ab)use it in PIC code, but their linkers get confused if
8711 # the symbol is explicitly referenced. Since portable code cannot
8712 # rely on this symbol name, it's probably fine to never include it in
8713 # preloaded symbol tables.
8714 # Exclude shared library initialization/finalization symbols.
8715 extract_expsyms_cmds=
8716
8717 case $host_os in
8718 cygwin* | mingw* | pw32* | cegcc*)
8719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8720 # When not using gcc, we currently assume that we are using
8721 # Microsoft Visual C++.
8722 if test "$GCC" != yes; then
8723 with_gnu_ld=no
8724 fi
8725 ;;
8726 interix*)
8727 # we just hope/assume this is gcc and not c89 (= MSVC++)
8728 with_gnu_ld=yes
8729 ;;
8730 openbsd*)
8731 with_gnu_ld=no
8732 ;;
8733 esac
8734
8735 ld_shlibs=yes
8736
8737 # On some targets, GNU ld is compatible enough with the native linker
8738 # that we're better off using the native interface for both.
8739 lt_use_gnu_ld_interface=no
8740 if test "$with_gnu_ld" = yes; then
8741 case $host_os in
8742 aix*)
8743 # The AIX port of GNU ld has always aspired to compatibility
8744 # with the native linker. However, as the warning in the GNU ld
8745 # block says, versions before 2.19.5* couldn't really create working
8746 # shared libraries, regardless of the interface used.
8747 case `$LD -v 2>&1` in
8748 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8749 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8750 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8751 *)
8752 lt_use_gnu_ld_interface=yes
8753 ;;
8754 esac
8755 ;;
8756 *)
8757 lt_use_gnu_ld_interface=yes
8758 ;;
8759 esac
8760 fi
8761
8762 if test "$lt_use_gnu_ld_interface" = yes; then
8763 # If archive_cmds runs LD, not CC, wlarc should be empty
8764 wlarc='${wl}'
8765
8766 # Set some defaults for GNU ld with shared library support. These
8767 # are reset later if shared libraries are not supported. Putting them
8768 # here allows them to be overridden if necessary.
8769 runpath_var=LD_RUN_PATH
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 export_dynamic_flag_spec='${wl}--export-dynamic'
8772 # ancient GNU ld didn't support --whole-archive et. al.
8773 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8774 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8775 else
8776 whole_archive_flag_spec=
8777 fi
8778 supports_anon_versioning=no
8779 case `$LD -v 2>&1` in
8780 *GNU\ gold*) supports_anon_versioning=yes ;;
8781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8784 *\ 2.11.*) ;; # other 2.11 versions
8785 *) supports_anon_versioning=yes ;;
8786 esac
8787
8788 # See if GNU ld supports shared libraries.
8789 case $host_os in
8790 aix[3-9]*)
8791 # On AIX/PPC, the GNU linker is very broken
8792 if test "$host_cpu" != ia64; then
8793 ld_shlibs=no
8794 cat <<_LT_EOF 1>&2
8795
8796*** Warning: the GNU linker, at least up to release 2.19, is reported
8797*** to be unable to reliably create shared libraries on AIX.
8798*** Therefore, libtool is disabling shared libraries support. If you
8799*** really care for shared libraries, you may want to install binutils
8800*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8801*** You will then need to restart the configuration process.
8802
8803_LT_EOF
8804 fi
8805 ;;
8806
8807 amigaos*)
8808 case $host_cpu in
8809 powerpc)
8810 # see comment about AmigaOS4 .so support
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds=''
8813 ;;
8814 m68k)
8815 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)'
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_minus_L=yes
8818 ;;
8819 esac
8820 ;;
8821
8822 beos*)
8823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824 allow_undefined_flag=unsupported
8825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8826 # support --undefined. This deserves some investigation. FIXME
8827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832
8833 cygwin* | mingw* | pw32* | cegcc*)
8834 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8835 # as there is no search path for DLLs.
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 export_dynamic_flag_spec='${wl}--export-all-symbols'
8838 allow_undefined_flag=unsupported
8839 always_export_symbols=no
8840 enable_shared_with_static_runtimes=yes
8841 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'
8842 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8843
8844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 # If the export-symbols file already is a .def file (1st line
8847 # is EXPORTS), use it as is; otherwise, prepend...
8848 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8849 cp $export_symbols $output_objdir/$soname.def;
8850 else
8851 echo EXPORTS > $output_objdir/$soname.def;
8852 cat $export_symbols >> $output_objdir/$soname.def;
8853 fi~
8854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 haiku*)
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 link_all_deplibs=yes
8863 ;;
8864
8865 interix[3-9]*)
8866 hardcode_direct=no
8867 hardcode_shlibpath_var=no
8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec='${wl}-E'
8870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8871 # Instead, shared libraries are loaded at an image base (0x10000000 by
8872 # default) and relocated if they conflict, which is a slow very memory
8873 # consuming and fragmenting process. To avoid this, we pick a random,
8874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8877 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'
8878 ;;
8879
8880 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8881 tmp_diet=no
8882 if test "$host_os" = linux-dietlibc; then
8883 case $cc_basename in
8884 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8885 esac
8886 fi
8887 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8888 && test "$tmp_diet" = no
8889 then
8890 tmp_addflag=' $pic_flag'
8891 tmp_sharedflag='-shared'
8892 case $cc_basename,$host_cpu in
8893 pgcc*) # Portland Group C compiler
8894 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'
8895 tmp_addflag=' $pic_flag'
8896 ;;
8897 pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group f77 and f90 compilers
8899 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'
8900 tmp_addflag=' $pic_flag -Mnomain' ;;
8901 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8902 tmp_addflag=' -i_dynamic' ;;
8903 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8904 tmp_addflag=' -i_dynamic -nofor_main' ;;
8905 ifc* | ifort*) # Intel Fortran compiler
8906 tmp_addflag=' -nofor_main' ;;
8907 lf95*) # Lahey Fortran 8.1
8908 whole_archive_flag_spec=
8909 tmp_sharedflag='--shared' ;;
8910 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8911 tmp_sharedflag='-qmkshrobj'
8912 tmp_addflag= ;;
8913 nvcc*) # Cuda Compiler Driver 2.2
8914 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'
8915 compiler_needs_object=yes
8916 ;;
8917 esac
8918 case `$CC -V 2>&1 | sed 5q` in
8919 *Sun\ C*) # Sun C 5.9
8920 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'
8921 compiler_needs_object=yes
8922 tmp_sharedflag='-G' ;;
8923 *Sun\ F*) # Sun Fortran 8.3
8924 tmp_sharedflag='-G' ;;
8925 esac
8926 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927
8928 if test "x$supports_anon_versioning" = xyes; then
8929 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8931 echo "local: *; };" >> $output_objdir/$libname.ver~
8932 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8933 fi
8934
8935 case $cc_basename in
8936 xlf* | bgf* | bgxlf* | mpixlf*)
8937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8938 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8941 if test "x$supports_anon_versioning" = xyes; then
8942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8944 echo "local: *; };" >> $output_objdir/$libname.ver~
8945 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8946 fi
8947 ;;
8948 esac
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953
8954 netbsd*)
8955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8957 wlarc=
8958 else
8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8961 fi
8962 ;;
8963
8964 solaris*)
8965 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8966 ld_shlibs=no
8967 cat <<_LT_EOF 1>&2
8968
8969*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8970*** create shared libraries on Solaris systems. Therefore, libtool
8971*** is disabling shared libraries support. We urge you to upgrade GNU
8972*** binutils to release 2.9.1 or newer. Another option is to modify
8973*** your PATH or compiler configuration so that the native linker is
8974*** used, and then restart.
8975
8976_LT_EOF
8977 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980 else
8981 ld_shlibs=no
8982 fi
8983 ;;
8984
8985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8986 case `$LD -v 2>&1` in
8987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8990
8991*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8992*** reliably create shared libraries on SCO systems. Therefore, libtool
8993*** is disabling shared libraries support. We urge you to upgrade GNU
8994*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8995*** your PATH or compiler configuration so that the native linker is
8996*** used, and then restart.
8997
8998_LT_EOF
8999 ;;
9000 *)
9001 # For security reasons, it is highly recommended that you always
9002 # use absolute paths for naming shared libraries, and exclude the
9003 # DT_RUNPATH tag from executables and libraries. But doing so
9004 # requires that you compile everything twice, which is a pain.
9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9009 else
9010 ld_shlibs=no
9011 fi
9012 ;;
9013 esac
9014 ;;
9015
9016 sunos4*)
9017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018 wlarc=
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 *)
9024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027 else
9028 ld_shlibs=no
9029 fi
9030 ;;
9031 esac
9032
9033 if test "$ld_shlibs" = no; then
9034 runpath_var=
9035 hardcode_libdir_flag_spec=
9036 export_dynamic_flag_spec=
9037 whole_archive_flag_spec=
9038 fi
9039 else
9040 # PORTME fill in a description of your system's linker (not GNU ld)
9041 case $host_os in
9042 aix3*)
9043 allow_undefined_flag=unsupported
9044 always_export_symbols=yes
9045 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'
9046 # Note: this linker hardcodes the directories in LIBPATH if there
9047 # are no directories specified by -L.
9048 hardcode_minus_L=yes
9049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9050 # Neither direct hardcoding nor static linking is supported with a
9051 # broken collect2.
9052 hardcode_direct=unsupported
9053 fi
9054 ;;
9055
9056 aix[4-9]*)
9057 if test "$host_cpu" = ia64; then
9058 # On IA64, the linker does run time linking by default, so we don't
9059 # have to do anything special.
9060 aix_use_runtimelinking=no
9061 exp_sym_flag='-Bexport'
9062 no_entry_flag=""
9063 else
9064 # If we're using GNU nm, then we don't want the "-C" option.
9065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9066 # Also, AIX nm treats weak defined symbols like other global
9067 # defined symbols, whereas GNU nm marks them as "W".
9068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9069 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9070 else
9071 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9072 fi
9073 aix_use_runtimelinking=no
9074
9075 # Test if we are trying to use run time linking or normal
9076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077 # need to do runtime linking.
9078 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9079 for ld_flag in $LDFLAGS; do
9080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9081 aix_use_runtimelinking=yes
9082 break
9083 fi
9084 done
9085 ;;
9086 esac
9087
9088 exp_sym_flag='-bexport'
9089 no_entry_flag='-bnoentry'
9090 fi
9091
9092 # When large executables or shared objects are built, AIX ld can
9093 # have problems creating the table of contents. If linking a library
9094 # or program results in "error TOC overflow" add -mminimal-toc to
9095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098 archive_cmds=''
9099 hardcode_direct=yes
9100 hardcode_direct_absolute=yes
9101 hardcode_libdir_separator=':'
9102 link_all_deplibs=yes
9103 file_list_spec='${wl}-f,'
9104
9105 if test "$GCC" = yes; then
9106 case $host_os in aix4.[012]|aix4.[012].*)
9107 # We only want to do this on AIX 4.2 and lower, the check
9108 # below for broken collect2 doesn't work under 4.3+
9109 collect2name=`${CC} -print-prog-name=collect2`
9110 if test -f "$collect2name" &&
9111 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9112 then
9113 # We have reworked collect2
9114 :
9115 else
9116 # We have old collect2
9117 hardcode_direct=unsupported
9118 # It fails to find uninstalled libraries when the uninstalled
9119 # path is not listed in the libpath. Setting hardcode_minus_L
9120 # to unsupported forces relinking
9121 hardcode_minus_L=yes
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_libdir_separator=
9124 fi
9125 ;;
9126 esac
9127 shared_flag='-shared'
9128 if test "$aix_use_runtimelinking" = yes; then
9129 shared_flag="$shared_flag "'${wl}-G'
9130 fi
9131 else
9132 # not using gcc
9133 if test "$host_cpu" = ia64; then
9134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9135 # chokes on -Wl,-G. The following line is correct:
9136 shared_flag='-G'
9137 else
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag='${wl}-G'
9140 else
9141 shared_flag='${wl}-bM:SRE'
9142 fi
9143 fi
9144 fi
9145
9146 export_dynamic_flag_spec='${wl}-bexpall'
9147 # It seems that -bexpall does not export symbols beginning with
9148 # underscore (_), so it is better to generate a list of symbols to export.
9149 always_export_symbols=yes
9150 if test "$aix_use_runtimelinking" = yes; then
9151 # Warning - without using the other runtime loading flags (-brtl),
9152 # -berok will link without error, but may produce a broken library.
9153 allow_undefined_flag='-berok'
9154 # Determine the default libpath from the value encoded in an
9155 # empty executable.
9156 if test "${lt_cv_aix_libpath+set}" = set; then
9157 aix_libpath=$lt_cv_aix_libpath
9158else
9159 if ${lt_cv_aix_libpath_+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
9164
9165int
9166main ()
9167{
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"; then :
9174
9175 lt_aix_libpath_sed='
9176 /Import File Strings/,/^$/ {
9177 /^0/ {
9178 s/^0 *\([^ ]*\) *$/\1/
9179 p
9180 }
9181 }'
9182 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 # Check for a 64-bit object if we didn't find anything.
9184 if test -z "$lt_cv_aix_libpath_"; then
9185 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 fi
9187fi
9188rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 if test -z "$lt_cv_aix_libpath_"; then
9191 lt_cv_aix_libpath_="/usr/lib:/lib"
9192 fi
9193
9194fi
9195
9196 aix_libpath=$lt_cv_aix_libpath_
9197fi
9198
9199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9200 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9201 else
9202 if test "$host_cpu" = ia64; then
9203 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9204 allow_undefined_flag="-z nodefs"
9205 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"
9206 else
9207 # Determine the default libpath from the value encoded in an
9208 # empty executable.
9209 if test "${lt_cv_aix_libpath+set}" = set; then
9210 aix_libpath=$lt_cv_aix_libpath
9211else
9212 if ${lt_cv_aix_libpath_+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214else
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h. */
9217
9218int
9219main ()
9220{
9221
9222 ;
9223 return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"; then :
9227
9228 lt_aix_libpath_sed='
9229 /Import File Strings/,/^$/ {
9230 /^0/ {
9231 s/^0 *\([^ ]*\) *$/\1/
9232 p
9233 }
9234 }'
9235 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 # Check for a 64-bit object if we didn't find anything.
9237 if test -z "$lt_cv_aix_libpath_"; then
9238 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 fi
9240fi
9241rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 if test -z "$lt_cv_aix_libpath_"; then
9244 lt_cv_aix_libpath_="/usr/lib:/lib"
9245 fi
9246
9247fi
9248
9249 aix_libpath=$lt_cv_aix_libpath_
9250fi
9251
9252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 # Warning - without using the other run time loading flags,
9254 # -berok will link without error, but may produce a broken library.
9255 no_undefined_flag=' ${wl}-bernotok'
9256 allow_undefined_flag=' ${wl}-berok'
9257 if test "$with_gnu_ld" = yes; then
9258 # We only use this code for GNU lds that support --whole-archive.
9259 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9260 else
9261 # Exported symbols can be pulled into shared objects from archives
9262 whole_archive_flag_spec='$convenience'
9263 fi
9264 archive_cmds_need_lc=yes
9265 # This is similar to how AIX traditionally builds its shared libraries.
9266 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9267 fi
9268 fi
9269 ;;
9270
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds=''
9277 ;;
9278 m68k)
9279 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)'
9280 hardcode_libdir_flag_spec='-L$libdir'
9281 hardcode_minus_L=yes
9282 ;;
9283 esac
9284 ;;
9285
9286 bsdi[45]*)
9287 export_dynamic_flag_spec=-rdynamic
9288 ;;
9289
9290 cygwin* | mingw* | pw32* | cegcc*)
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 # hardcode_libdir_flag_spec is actually meaningless, as there is
9294 # no search path for DLLs.
9295 case $cc_basename in
9296 cl*)
9297 # Native MSVC
9298 hardcode_libdir_flag_spec=' '
9299 allow_undefined_flag=unsupported
9300 always_export_symbols=yes
9301 file_list_spec='@'
9302 # Tell ltmain to make .lib files, not .a files.
9303 libext=lib
9304 # Tell ltmain to make .dll files, not .so files.
9305 shrext_cmds=".dll"
9306 # FIXME: Setting linknames here is a bad hack.
9307 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9308 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9309 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9310 else
9311 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9312 fi~
9313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9314 linknames='
9315 # The linker will not automatically build a static lib if we build a DLL.
9316 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9317 enable_shared_with_static_runtimes=yes
9318 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9320 # Don't use ranlib
9321 old_postinstall_cmds='chmod 644 $oldlib'
9322 postlink_cmds='lt_outputfile="@OUTPUT@"~
9323 lt_tool_outputfile="@TOOL_OUTPUT@"~
9324 case $lt_outputfile in
9325 *.exe|*.EXE) ;;
9326 *)
9327 lt_outputfile="$lt_outputfile.exe"
9328 lt_tool_outputfile="$lt_tool_outputfile.exe"
9329 ;;
9330 esac~
9331 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9332 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9333 $RM "$lt_outputfile.manifest";
9334 fi'
9335 ;;
9336 *)
9337 # Assume MSVC wrapper
9338 hardcode_libdir_flag_spec=' '
9339 allow_undefined_flag=unsupported
9340 # Tell ltmain to make .lib files, not .a files.
9341 libext=lib
9342 # Tell ltmain to make .dll files, not .so files.
9343 shrext_cmds=".dll"
9344 # FIXME: Setting linknames here is a bad hack.
9345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9346 # The linker will automatically build a .lib file if we build a DLL.
9347 old_archive_from_new_cmds='true'
9348 # FIXME: Should let the user specify the lib program.
9349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9350 enable_shared_with_static_runtimes=yes
9351 ;;
9352 esac
9353 ;;
9354
9355 darwin* | rhapsody*)
9356
9357
9358 archive_cmds_need_lc=no
9359 hardcode_direct=no
9360 hardcode_automatic=yes
9361 hardcode_shlibpath_var=unsupported
9362 if test "$lt_cv_ld_force_load" = "yes"; then
9363 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\"`'
9364
9365 else
9366 whole_archive_flag_spec=''
9367 fi
9368 link_all_deplibs=yes
9369 allow_undefined_flag="$_lt_dar_allow_undefined"
9370 case $cc_basename in
9371 ifort*) _lt_dar_can_shared=yes ;;
9372 *) _lt_dar_can_shared=$GCC ;;
9373 esac
9374 if test "$_lt_dar_can_shared" = "yes"; then
9375 output_verbose_link_cmd=func_echo_all
9376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9378 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}"
9379 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}"
9380
9381 else
9382 ld_shlibs=no
9383 fi
9384
9385 ;;
9386
9387 dgux*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9394 # support. Future versions do this automatically, but an explicit c++rt0.o
9395 # does not break anything, and helps significantly (at the cost of a little
9396 # extra space).
9397 freebsd2.2*)
9398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9399 hardcode_libdir_flag_spec='-R$libdir'
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9402 ;;
9403
9404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9405 freebsd2.*)
9406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_direct=yes
9408 hardcode_minus_L=yes
9409 hardcode_shlibpath_var=no
9410 ;;
9411
9412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9413 freebsd* | dragonfly*)
9414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9415 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 hpux9*)
9421 if test "$GCC" = yes; then
9422 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9423 else
9424 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9425 fi
9426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9427 hardcode_libdir_separator=:
9428 hardcode_direct=yes
9429
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9433 export_dynamic_flag_spec='${wl}-E'
9434 ;;
9435
9436 hpux10*)
9437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9438 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439 else
9440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9441 fi
9442 if test "$with_gnu_ld" = no; then
9443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444 hardcode_libdir_separator=:
9445 hardcode_direct=yes
9446 hardcode_direct_absolute=yes
9447 export_dynamic_flag_spec='${wl}-E'
9448 # hardcode_minus_L: Not really in the search PATH,
9449 # but as the default location of the library.
9450 hardcode_minus_L=yes
9451 fi
9452 ;;
9453
9454 hpux11*)
9455 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9456 case $host_cpu in
9457 hppa*64*)
9458 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 ;;
9460 ia64*)
9461 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 *)
9464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 esac
9467 else
9468 case $host_cpu in
9469 hppa*64*)
9470 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 ;;
9472 ia64*)
9473 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9474 ;;
9475 *)
9476
9477 # Older versions of the 11.00 compiler do not understand -b yet
9478 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9480$as_echo_n "checking if $CC understands -b... " >&6; }
9481if ${lt_cv_prog_compiler__b+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483else
9484 lt_cv_prog_compiler__b=no
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -b"
9487 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9489 # The linker can only warn and ignore the option if not recognized
9490 # So say no if there are warnings
9491 if test -s conftest.err; then
9492 # Append any errors to the config.log.
9493 cat conftest.err 1>&5
9494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9496 if diff conftest.exp conftest.er2 >/dev/null; then
9497 lt_cv_prog_compiler__b=yes
9498 fi
9499 else
9500 lt_cv_prog_compiler__b=yes
9501 fi
9502 fi
9503 $RM -r conftest*
9504 LDFLAGS="$save_LDFLAGS"
9505
9506fi
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9508$as_echo "$lt_cv_prog_compiler__b" >&6; }
9509
9510if test x"$lt_cv_prog_compiler__b" = xyes; then
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512else
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514fi
9515
9516 ;;
9517 esac
9518 fi
9519 if test "$with_gnu_ld" = no; then
9520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522
9523 case $host_cpu in
9524 hppa*64*|ia64*)
9525 hardcode_direct=no
9526 hardcode_shlibpath_var=no
9527 ;;
9528 *)
9529 hardcode_direct=yes
9530 hardcode_direct_absolute=yes
9531 export_dynamic_flag_spec='${wl}-E'
9532
9533 # hardcode_minus_L: Not really in the search PATH,
9534 # but as the default location of the library.
9535 hardcode_minus_L=yes
9536 ;;
9537 esac
9538 fi
9539 ;;
9540
9541 irix5* | irix6* | nonstopux*)
9542 if test "$GCC" = yes; then
9543 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'
9544 # Try to use the -exported_symbol ld option, if it does not
9545 # work, assume that -exports_file does not work either and
9546 # implicitly export all symbols.
9547 # This should be the same for all languages, so no per-tag cache variable.
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9549$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9550if ${lt_cv_irix_exported_symbol+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552else
9553 save_LDFLAGS="$LDFLAGS"
9554 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h. */
9557int foo (void) { return 0; }
9558_ACEOF
9559if ac_fn_c_try_link "$LINENO"; then :
9560 lt_cv_irix_exported_symbol=yes
9561else
9562 lt_cv_irix_exported_symbol=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LDFLAGS="$save_LDFLAGS"
9567fi
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9569$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9570 if test "$lt_cv_irix_exported_symbol" = yes; then
9571 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'
9572 fi
9573 else
9574 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'
9575 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'
9576 fi
9577 archive_cmds_need_lc='no'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 hardcode_libdir_separator=:
9580 inherit_rpath=yes
9581 link_all_deplibs=yes
9582 ;;
9583
9584 netbsd*)
9585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9587 else
9588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9589 fi
9590 hardcode_libdir_flag_spec='-R$libdir'
9591 hardcode_direct=yes
9592 hardcode_shlibpath_var=no
9593 ;;
9594
9595 newsos6)
9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_direct=yes
9598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 hardcode_shlibpath_var=no
9601 ;;
9602
9603 *nto* | *qnx*)
9604 ;;
9605
9606 openbsd*)
9607 if test -f /usr/libexec/ld.so; then
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 hardcode_direct_absolute=yes
9611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 export_dynamic_flag_spec='${wl}-E'
9616 else
9617 case $host_os in
9618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 ;;
9622 *)
9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625 ;;
9626 esac
9627 fi
9628 else
9629 ld_shlibs=no
9630 fi
9631 ;;
9632
9633 os2*)
9634 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_minus_L=yes
9636 allow_undefined_flag=unsupported
9637 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9638 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9639 ;;
9640
9641 osf3*)
9642 if test "$GCC" = yes; then
9643 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9644 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'
9645 else
9646 allow_undefined_flag=' -expect_unresolved \*'
9647 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'
9648 fi
9649 archive_cmds_need_lc='no'
9650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651 hardcode_libdir_separator=:
9652 ;;
9653
9654 osf4* | osf5*) # as osf3* with the addition of -msym flag
9655 if test "$GCC" = yes; then
9656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657 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'
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 else
9660 allow_undefined_flag=' -expect_unresolved \*'
9661 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'
9662 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~
9663 $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'
9664
9665 # Both c and cxx compiler support -rpath directly
9666 hardcode_libdir_flag_spec='-rpath $libdir'
9667 fi
9668 archive_cmds_need_lc='no'
9669 hardcode_libdir_separator=:
9670 ;;
9671
9672 solaris*)
9673 no_undefined_flag=' -z defs'
9674 if test "$GCC" = yes; then
9675 wlarc='${wl}'
9676 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9678 $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'
9679 else
9680 case `$CC -V 2>&1` in
9681 *"Compilers 5.0"*)
9682 wlarc=''
9683 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9685 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9686 ;;
9687 *)
9688 wlarc='${wl}'
9689 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9691 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9692 ;;
9693 esac
9694 fi
9695 hardcode_libdir_flag_spec='-R$libdir'
9696 hardcode_shlibpath_var=no
9697 case $host_os in
9698 solaris2.[0-5] | solaris2.[0-5].*) ;;
9699 *)
9700 # The compiler driver will combine and reorder linker options,
9701 # but understands `-z linker_flag'. GCC discards it without `$wl',
9702 # but is careful enough not to reorder.
9703 # Supported since Solaris 2.6 (maybe 2.5.1?)
9704 if test "$GCC" = yes; then
9705 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9706 else
9707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9708 fi
9709 ;;
9710 esac
9711 link_all_deplibs=yes
9712 ;;
9713
9714 sunos4*)
9715 if test "x$host_vendor" = xsequent; then
9716 # Use $CC to link under sequent, because it throws in some extra .o
9717 # files that make .init and .fini sections work.
9718 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9721 fi
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_direct=yes
9724 hardcode_minus_L=yes
9725 hardcode_shlibpath_var=no
9726 ;;
9727
9728 sysv4)
9729 case $host_vendor in
9730 sni)
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_direct=yes # is this really true???
9733 ;;
9734 siemens)
9735 ## LD is ld it makes a PLAMLIB
9736 ## CC just makes a GrossModule.
9737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9738 reload_cmds='$CC -r -o $output$reload_objs'
9739 hardcode_direct=no
9740 ;;
9741 motorola)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9744 ;;
9745 esac
9746 runpath_var='LD_RUN_PATH'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 sysv4.3*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_shlibpath_var=no
9753 export_dynamic_flag_spec='-Bexport'
9754 ;;
9755
9756 sysv4*MP*)
9757 if test -d /usr/nec; then
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_shlibpath_var=no
9760 runpath_var=LD_RUN_PATH
9761 hardcode_runpath_var=yes
9762 ld_shlibs=yes
9763 fi
9764 ;;
9765
9766 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9767 no_undefined_flag='${wl}-z,text'
9768 archive_cmds_need_lc=no
9769 hardcode_shlibpath_var=no
9770 runpath_var='LD_RUN_PATH'
9771
9772 if test "$GCC" = yes; then
9773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 else
9776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 fi
9779 ;;
9780
9781 sysv5* | sco3.2v5* | sco5v6*)
9782 # Note: We can NOT use -z defs as we might desire, because we do not
9783 # link with -lc, and that would cause any symbols used from libc to
9784 # always be unresolved, which means just about no library would
9785 # ever link correctly. If we're not using GNU ld we use -z text
9786 # though, which does catch some bad symbols but isn't as heavy-handed
9787 # as -z defs.
9788 no_undefined_flag='${wl}-z,text'
9789 allow_undefined_flag='${wl}-z,nodefs'
9790 archive_cmds_need_lc=no
9791 hardcode_shlibpath_var=no
9792 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9793 hardcode_libdir_separator=':'
9794 link_all_deplibs=yes
9795 export_dynamic_flag_spec='${wl}-Bexport'
9796 runpath_var='LD_RUN_PATH'
9797
9798 if test "$GCC" = yes; then
9799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 else
9802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 fi
9805 ;;
9806
9807 uts4*)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_shlibpath_var=no
9811 ;;
9812
9813 *)
9814 ld_shlibs=no
9815 ;;
9816 esac
9817
9818 if test x$host_vendor = xsni; then
9819 case $host in
9820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9821 export_dynamic_flag_spec='${wl}-Blargedynsym'
9822 ;;
9823 esac
9824 fi
9825 fi
9826
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9828$as_echo "$ld_shlibs" >&6; }
9829test "$ld_shlibs" = no && can_build_shared=no
9830
9831with_gnu_ld=$with_gnu_ld
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847#
9848# Do we need to explicitly link libc?
9849#
9850case "x$archive_cmds_need_lc" in
9851x|xyes)
9852 # Assume -lc should be added
9853 archive_cmds_need_lc=yes
9854
9855 if test "$enable_shared" = yes && test "$GCC" = yes; then
9856 case $archive_cmds in
9857 *'~'*)
9858 # FIXME: we may have to deal with multi-command sequences.
9859 ;;
9860 '$CC '*)
9861 # Test whether the compiler implicitly links with -lc since on some
9862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9863 # to ld, don't add -lc before -lgcc.
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9865$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9866if ${lt_cv_archive_cmds_need_lc+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868else
9869 $RM conftest*
9870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871
9872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9873 (eval $ac_compile) 2>&5
9874 ac_status=$?
9875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876 test $ac_status = 0; } 2>conftest.err; then
9877 soname=conftest
9878 lib=conftest
9879 libobjs=conftest.$ac_objext
9880 deplibs=
9881 wl=$lt_prog_compiler_wl
9882 pic_flag=$lt_prog_compiler_pic
9883 compiler_flags=-v
9884 linker_flags=-v
9885 verstring=
9886 output_objdir=.
9887 libname=conftest
9888 lt_save_allow_undefined_flag=$allow_undefined_flag
9889 allow_undefined_flag=
9890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9891 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9892 ac_status=$?
9893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9894 test $ac_status = 0; }
9895 then
9896 lt_cv_archive_cmds_need_lc=no
9897 else
9898 lt_cv_archive_cmds_need_lc=yes
9899 fi
9900 allow_undefined_flag=$lt_save_allow_undefined_flag
9901 else
9902 cat conftest.err 1>&5
9903 fi
9904 $RM conftest*
9905
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9908$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9909 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9910 ;;
9911 esac
9912 fi
9913 ;;
9914esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10068$as_echo_n "checking dynamic linker characteristics... " >&6; }
10069
10070if test "$GCC" = yes; then
10071 case $host_os in
10072 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10073 *) lt_awk_arg="/^libraries:/" ;;
10074 esac
10075 case $host_os in
10076 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10077 *) lt_sed_strip_eq="s,=/,/,g" ;;
10078 esac
10079 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10080 case $lt_search_path_spec in
10081 *\;*)
10082 # if the path contains ";" then we assume it to be the separator
10083 # otherwise default to the standard path separator (i.e. ":") - it is
10084 # assumed that no part of a normal pathname contains ";" but that should
10085 # okay in the real world where ";" in dirpaths is itself problematic.
10086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10087 ;;
10088 *)
10089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10090 ;;
10091 esac
10092 # Ok, now we have the path, separated by spaces, we can step through it
10093 # and add multilib dir if necessary.
10094 lt_tmp_lt_search_path_spec=
10095 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10096 for lt_sys_path in $lt_search_path_spec; do
10097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10099 else
10100 test -d "$lt_sys_path" && \
10101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10102 fi
10103 done
10104 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10105BEGIN {RS=" "; FS="/|\n";} {
10106 lt_foo="";
10107 lt_count=0;
10108 for (lt_i = NF; lt_i > 0; lt_i--) {
10109 if ($lt_i != "" && $lt_i != ".") {
10110 if ($lt_i == "..") {
10111 lt_count++;
10112 } else {
10113 if (lt_count == 0) {
10114 lt_foo="/" $lt_i lt_foo;
10115 } else {
10116 lt_count--;
10117 }
10118 }
10119 }
10120 }
10121 if (lt_foo != "") { lt_freq[lt_foo]++; }
10122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10123}'`
10124 # AWK program above erroneously prepends '/' to C:/dos/paths
10125 # for these hosts.
10126 case $host_os in
10127 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10128 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10129 esac
10130 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10131else
10132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10133fi
10134library_names_spec=
10135libname_spec='lib$name'
10136soname_spec=
10137shrext_cmds=".so"
10138postinstall_cmds=
10139postuninstall_cmds=
10140finish_cmds=
10141finish_eval=
10142shlibpath_var=
10143shlibpath_overrides_runpath=unknown
10144version_type=none
10145dynamic_linker="$host_os ld.so"
10146sys_lib_dlsearch_path_spec="/lib /usr/lib"
10147need_lib_prefix=unknown
10148hardcode_into_libs=no
10149
10150# when you set need_version to no, make sure it does not cause -set_version
10151# flags to be left without arguments
10152need_version=unknown
10153
10154case $host_os in
10155aix3*)
10156 version_type=linux # correct to gnu/linux during the next big refactor
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10158 shlibpath_var=LIBPATH
10159
10160 # AIX 3 has no versioning support, so we append a major version to the name.
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 ;;
10163
10164aix[4-9]*)
10165 version_type=linux # correct to gnu/linux during the next big refactor
10166 need_lib_prefix=no
10167 need_version=no
10168 hardcode_into_libs=yes
10169 if test "$host_cpu" = ia64; then
10170 # AIX 5 supports IA64
10171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 else
10174 # With GCC up to 2.95.x, collect2 would create an import file
10175 # for dependence libraries. The import file would start with
10176 # the line `#! .'. This would cause the generated library to
10177 # depend on `.', always an invalid library. This was fixed in
10178 # development snapshots of GCC prior to 3.0.
10179 case $host_os in
10180 aix4 | aix4.[01] | aix4.[01].*)
10181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10182 echo ' yes '
10183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10184 :
10185 else
10186 can_build_shared=no
10187 fi
10188 ;;
10189 esac
10190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10191 # soname into executable. Probably we can add versioning support to
10192 # collect2, so additional links can be useful in future.
10193 if test "$aix_use_runtimelinking" = yes; then
10194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10195 # instead of lib<name>.a to let people know that these are not
10196 # typical AIX shared libraries.
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 else
10199 # We preserve .a as extension for shared libraries through AIX4.2
10200 # and later when we are not doing run time linking.
10201 library_names_spec='${libname}${release}.a $libname.a'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 fi
10204 shlibpath_var=LIBPATH
10205 fi
10206 ;;
10207
10208amigaos*)
10209 case $host_cpu in
10210 powerpc)
10211 # Since July 2007 AmigaOS4 officially supports .so libraries.
10212 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 ;;
10215 m68k)
10216 library_names_spec='$libname.ixlibrary $libname.a'
10217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10218 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10219 ;;
10220 esac
10221 ;;
10222
10223beos*)
10224 library_names_spec='${libname}${shared_ext}'
10225 dynamic_linker="$host_os ld.so"
10226 shlibpath_var=LIBRARY_PATH
10227 ;;
10228
10229bsdi[45]*)
10230 version_type=linux # correct to gnu/linux during the next big refactor
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10238 # the default ld.so.conf also contains /usr/contrib/lib and
10239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10240 # libtool to hard-code these into programs
10241 ;;
10242
10243cygwin* | mingw* | pw32* | cegcc*)
10244 version_type=windows
10245 shrext_cmds=".dll"
10246 need_version=no
10247 need_lib_prefix=no
10248
10249 case $GCC,$cc_basename in
10250 yes,*)
10251 # gcc
10252 library_names_spec='$libname.dll.a'
10253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10254 postinstall_cmds='base_file=`basename \${file}`~
10255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10256 dldir=$destdir/`dirname \$dlpath`~
10257 test -d \$dldir || mkdir -p \$dldir~
10258 $install_prog $dir/$dlname \$dldir/$dlname~
10259 chmod a+x \$dldir/$dlname~
10260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10262 fi'
10263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10264 dlpath=$dir/\$dldll~
10265 $RM \$dlpath'
10266 shlibpath_overrides_runpath=yes
10267
10268 case $host_os in
10269 cygwin*)
10270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10272
10273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10274 ;;
10275 mingw* | cegcc*)
10276 # MinGW DLLs use traditional 'lib' prefix
10277 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10278 ;;
10279 pw32*)
10280 # pw32 DLLs use 'pw' prefix rather than 'lib'
10281 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282 ;;
10283 esac
10284 dynamic_linker='Win32 ld.exe'
10285 ;;
10286
10287 *,cl*)
10288 # Native MSVC
10289 libname_spec='$name'
10290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10291 library_names_spec='${libname}.dll.lib'
10292
10293 case $build_os in
10294 mingw*)
10295 sys_lib_search_path_spec=
10296 lt_save_ifs=$IFS
10297 IFS=';'
10298 for lt_path in $LIB
10299 do
10300 IFS=$lt_save_ifs
10301 # Let DOS variable expansion print the short 8.3 style file name.
10302 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10303 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10304 done
10305 IFS=$lt_save_ifs
10306 # Convert to MSYS style.
10307 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10308 ;;
10309 cygwin*)
10310 # Convert to unix form, then to dos form, then back to unix form
10311 # but this time dos style (no spaces!) so that the unix form looks
10312 # like /cygdrive/c/PROGRA~1:/cygdr...
10313 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10314 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10315 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10316 ;;
10317 *)
10318 sys_lib_search_path_spec="$LIB"
10319 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10320 # It is most probably a Windows format PATH.
10321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10322 else
10323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10324 fi
10325 # FIXME: find the short name or the path components, as spaces are
10326 # common. (e.g. "Program Files" -> "PROGRA~1")
10327 ;;
10328 esac
10329
10330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10331 postinstall_cmds='base_file=`basename \${file}`~
10332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10333 dldir=$destdir/`dirname \$dlpath`~
10334 test -d \$dldir || mkdir -p \$dldir~
10335 $install_prog $dir/$dlname \$dldir/$dlname'
10336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10337 dlpath=$dir/\$dldll~
10338 $RM \$dlpath'
10339 shlibpath_overrides_runpath=yes
10340 dynamic_linker='Win32 link.exe'
10341 ;;
10342
10343 *)
10344 # Assume MSVC wrapper
10345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10346 dynamic_linker='Win32 ld.exe'
10347 ;;
10348 esac
10349 # FIXME: first we should search . and the directory the executable is in
10350 shlibpath_var=PATH
10351 ;;
10352
10353darwin* | rhapsody*)
10354 dynamic_linker="$host_os dyld"
10355 version_type=darwin
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10359 soname_spec='${libname}${release}${major}$shared_ext'
10360 shlibpath_overrides_runpath=yes
10361 shlibpath_var=DYLD_LIBRARY_PATH
10362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10363
10364 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10366 ;;
10367
10368dgux*)
10369 version_type=linux # correct to gnu/linux during the next big refactor
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 ;;
10376
10377freebsd* | dragonfly*)
10378 # DragonFly does not have aout. When/if they implement a new
10379 # versioning mechanism, adjust this.
10380 if test -x /usr/bin/objformat; then
10381 objformat=`/usr/bin/objformat`
10382 else
10383 case $host_os in
10384 freebsd[23].*) objformat=aout ;;
10385 *) objformat=elf ;;
10386 esac
10387 fi
10388 version_type=freebsd-$objformat
10389 case $version_type in
10390 freebsd-elf*)
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 need_version=no
10393 need_lib_prefix=no
10394 ;;
10395 freebsd-*)
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10397 need_version=yes
10398 ;;
10399 esac
10400 shlibpath_var=LD_LIBRARY_PATH
10401 case $host_os in
10402 freebsd2.*)
10403 shlibpath_overrides_runpath=yes
10404 ;;
10405 freebsd3.[01]* | freebsdelf3.[01]*)
10406 shlibpath_overrides_runpath=yes
10407 hardcode_into_libs=yes
10408 ;;
10409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10413 ;;
10414 *) # from 4.6 on, and DragonFly
10415 shlibpath_overrides_runpath=yes
10416 hardcode_into_libs=yes
10417 ;;
10418 esac
10419 ;;
10420
10421gnu*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 hardcode_into_libs=yes
10430 ;;
10431
10432haiku*)
10433 version_type=linux # correct to gnu/linux during the next big refactor
10434 need_lib_prefix=no
10435 need_version=no
10436 dynamic_linker="$host_os runtime_loader"
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10442 hardcode_into_libs=yes
10443 ;;
10444
10445hpux9* | hpux10* | hpux11*)
10446 # Give a soname corresponding to the major version so that dld.sl refuses to
10447 # link against other versions.
10448 version_type=sunos
10449 need_lib_prefix=no
10450 need_version=no
10451 case $host_cpu in
10452 ia64*)
10453 shrext_cmds='.so'
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.so"
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 if test "X$HPUX_IA64_MODE" = X32; then
10461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10462 else
10463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10464 fi
10465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10466 ;;
10467 hppa*64*)
10468 shrext_cmds='.sl'
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.sl"
10471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10477 ;;
10478 *)
10479 shrext_cmds='.sl'
10480 dynamic_linker="$host_os dld.sl"
10481 shlibpath_var=SHLIB_PATH
10482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 ;;
10486 esac
10487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10488 postinstall_cmds='chmod 555 $lib'
10489 # or fails outright, so override atomically:
10490 install_override_mode=555
10491 ;;
10492
10493interix[3-9]*)
10494 version_type=linux # correct to gnu/linux during the next big refactor
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=no
10502 hardcode_into_libs=yes
10503 ;;
10504
10505irix5* | irix6* | nonstopux*)
10506 case $host_os in
10507 nonstopux*) version_type=nonstopux ;;
10508 *)
10509 if test "$lt_cv_prog_gnu_ld" = yes; then
10510 version_type=linux # correct to gnu/linux during the next big refactor
10511 else
10512 version_type=irix
10513 fi ;;
10514 esac
10515 need_lib_prefix=no
10516 need_version=no
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10519 case $host_os in
10520 irix5* | nonstopux*)
10521 libsuff= shlibsuff=
10522 ;;
10523 *)
10524 case $LD in # libtool.m4 will add one of these switches to LD
10525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10526 libsuff= shlibsuff= libmagic=32-bit;;
10527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10528 libsuff=32 shlibsuff=N32 libmagic=N32;;
10529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10531 *) libsuff= shlibsuff= libmagic=never-match;;
10532 esac
10533 ;;
10534 esac
10535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10536 shlibpath_overrides_runpath=no
10537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10539 hardcode_into_libs=yes
10540 ;;
10541
10542# No shared lib support for Linux oldld, aout, or coff.
10543linux*oldld* | linux*aout* | linux*coff*)
10544 dynamic_linker=no
10545 ;;
10546
10547# This must be glibc/ELF.
10548linux* | k*bsd*-gnu | kopensolaris*-gnu)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557
10558 # Some binutils ld are patched to set DT_RUNPATH
10559 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561else
10562 lt_cv_shlibpath_overrides_runpath=no
10563 save_LDFLAGS=$LDFLAGS
10564 save_libdir=$libdir
10565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h. */
10569
10570int
10571main ()
10572{
10573
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578if ac_fn_c_try_link "$LINENO"; then :
10579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10580 lt_cv_shlibpath_overrides_runpath=yes
10581fi
10582fi
10583rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LDFLAGS=$save_LDFLAGS
10586 libdir=$save_libdir
10587
10588fi
10589
10590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10591
10592 # This implies no fast_install, which is unacceptable.
10593 # Some rework will be needed to allow for fast_install
10594 # before this can be enabled.
10595 hardcode_into_libs=yes
10596
10597 # Add ABI-specific directories to the system library path.
10598 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10599
10600 # Append ld.so.conf contents to the search path
10601 if test -f /etc/ld.so.conf; then
10602 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' ' '`
10603 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10604
10605 fi
10606
10607 # We used to test for /lib/ld.so.1 and disable shared libraries on
10608 # powerpc, because MkLinux only supported shared libraries with the
10609 # GNU dynamic linker. Since this was broken with cross compilers,
10610 # most powerpc-linux boxes support dynamic linking these days and
10611 # people can always --disable-shared, the test was removed, and we
10612 # assume the GNU/Linux dynamic linker is in use.
10613 dynamic_linker='GNU/Linux ld.so'
10614 ;;
10615
10616netbsd*)
10617 version_type=sunos
10618 need_lib_prefix=no
10619 need_version=no
10620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10623 dynamic_linker='NetBSD (a.out) ld.so'
10624 else
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 dynamic_linker='NetBSD ld.elf_so'
10628 fi
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 ;;
10633
10634newsos6)
10635 version_type=linux # correct to gnu/linux during the next big refactor
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 ;;
10640
10641*nto* | *qnx*)
10642 version_type=qnx
10643 need_lib_prefix=no
10644 need_version=no
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10650 dynamic_linker='ldqnx.so'
10651 ;;
10652
10653openbsd*)
10654 version_type=sunos
10655 sys_lib_dlsearch_path_spec="/usr/lib"
10656 need_lib_prefix=no
10657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10658 case $host_os in
10659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10660 *) need_version=no ;;
10661 esac
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10666 case $host_os in
10667 openbsd2.[89] | openbsd2.[89].*)
10668 shlibpath_overrides_runpath=no
10669 ;;
10670 *)
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 esac
10674 else
10675 shlibpath_overrides_runpath=yes
10676 fi
10677 ;;
10678
10679os2*)
10680 libname_spec='$name'
10681 shrext_cmds=".dll"
10682 need_lib_prefix=no
10683 library_names_spec='$libname${shared_ext} $libname.a'
10684 dynamic_linker='OS/2 ld.exe'
10685 shlibpath_var=LIBPATH
10686 ;;
10687
10688osf3* | osf4* | osf5*)
10689 version_type=osf
10690 need_lib_prefix=no
10691 need_version=no
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10697 ;;
10698
10699rdos*)
10700 dynamic_linker=no
10701 ;;
10702
10703solaris*)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 hardcode_into_libs=yes
10712 # ldd complains unless libraries are executable
10713 postinstall_cmds='chmod +x $lib'
10714 ;;
10715
10716sunos4*)
10717 version_type=sunos
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes
10722 if test "$with_gnu_ld" = yes; then
10723 need_lib_prefix=no
10724 fi
10725 need_version=yes
10726 ;;
10727
10728sysv4 | sysv4.3*)
10729 version_type=linux # correct to gnu/linux during the next big refactor
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 case $host_vendor in
10734 sni)
10735 shlibpath_overrides_runpath=no
10736 need_lib_prefix=no
10737 runpath_var=LD_RUN_PATH
10738 ;;
10739 siemens)
10740 need_lib_prefix=no
10741 ;;
10742 motorola)
10743 need_lib_prefix=no
10744 need_version=no
10745 shlibpath_overrides_runpath=no
10746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 ;;
10748 esac
10749 ;;
10750
10751sysv4*MP*)
10752 if test -d /usr/nec ;then
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10755 soname_spec='$libname${shared_ext}.$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 fi
10758 ;;
10759
10760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10761 version_type=freebsd-elf
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 if test "$with_gnu_ld" = yes; then
10770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10771 else
10772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10773 case $host_os in
10774 sco3.2v5*)
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10776 ;;
10777 esac
10778 fi
10779 sys_lib_dlsearch_path_spec='/usr/lib'
10780 ;;
10781
10782tpf*)
10783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 ;;
10792
10793uts4*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 ;;
10799
10800*)
10801 dynamic_linker=no
10802 ;;
10803esac
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10805$as_echo "$dynamic_linker" >&6; }
10806test "$dynamic_linker" = no && can_build_shared=no
10807
10808variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10809if test "$GCC" = yes; then
10810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10811fi
10812
10813if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10815fi
10816if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10818fi
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10912$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10913hardcode_action=
10914if test -n "$hardcode_libdir_flag_spec" ||
10915 test -n "$runpath_var" ||
10916 test "X$hardcode_automatic" = "Xyes" ; then
10917
10918 # We can hardcode non-existent directories.
10919 if test "$hardcode_direct" != no &&
10920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10921 # have to relink, otherwise we might link with an installed library
10922 # when we should be linking with a yet-to-be-installed one
10923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10924 test "$hardcode_minus_L" != no; then
10925 # Linking always hardcodes the temporary library directory.
10926 hardcode_action=relink
10927 else
10928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10929 hardcode_action=immediate
10930 fi
10931else
10932 # We cannot hardcode anything, or else we can only hardcode existing
10933 # directories.
10934 hardcode_action=unsupported
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10937$as_echo "$hardcode_action" >&6; }
10938
10939if test "$hardcode_action" = relink ||
10940 test "$inherit_rpath" = yes; then
10941 # Fast installation is not supported
10942 enable_fast_install=no
10943elif test "$shlibpath_overrides_runpath" = yes ||
10944 test "$enable_shared" = no; then
10945 # Fast installation is not necessary
10946 enable_fast_install=needless
10947fi
10948
10949
10950
10951
10952
10953
10954 if test "x$enable_dlopen" != xyes; then
10955 enable_dlopen=unknown
10956 enable_dlopen_self=unknown
10957 enable_dlopen_self_static=unknown
10958else
10959 lt_cv_dlopen=no
10960 lt_cv_dlopen_libs=
10961
10962 case $host_os in
10963 beos*)
10964 lt_cv_dlopen="load_add_on"
10965 lt_cv_dlopen_libs=
10966 lt_cv_dlopen_self=yes
10967 ;;
10968
10969 mingw* | pw32* | cegcc*)
10970 lt_cv_dlopen="LoadLibrary"
10971 lt_cv_dlopen_libs=
10972 ;;
10973
10974 cygwin*)
10975 lt_cv_dlopen="dlopen"
10976 lt_cv_dlopen_libs=
10977 ;;
10978
10979 darwin*)
10980 # if libdl is installed we need to link against it
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10982$as_echo_n "checking for dlopen in -ldl... " >&6; }
10983if ${ac_cv_lib_dl_dlopen+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985else
10986 ac_check_lib_save_LIBS=$LIBS
10987LIBS="-ldl $LIBS"
10988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h. */
10990
10991/* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997char dlopen ();
10998int
10999main ()
11000{
11001return dlopen ();
11002 ;
11003 return 0;
11004}
11005_ACEOF
11006if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_dl_dlopen=yes
11008else
11009 ac_cv_lib_dl_dlopen=no
11010fi
11011rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013LIBS=$ac_check_lib_save_LIBS
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11016$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11017if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11019else
11020
11021 lt_cv_dlopen="dyld"
11022 lt_cv_dlopen_libs=
11023 lt_cv_dlopen_self=yes
11024
11025fi
11026
11027 ;;
11028
11029 *)
11030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11031if test "x$ac_cv_func_shl_load" = xyes; then :
11032 lt_cv_dlopen="shl_load"
11033else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11035$as_echo_n "checking for shl_load in -ldld... " >&6; }
11036if ${ac_cv_lib_dld_shl_load+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038else
11039 ac_check_lib_save_LIBS=$LIBS
11040LIBS="-ldld $LIBS"
11041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h. */
11043
11044/* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047#ifdef __cplusplus
11048extern "C"
11049#endif
11050char shl_load ();
11051int
11052main ()
11053{
11054return shl_load ();
11055 ;
11056 return 0;
11057}
11058_ACEOF
11059if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_dld_shl_load=yes
11061else
11062 ac_cv_lib_dld_shl_load=no
11063fi
11064rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066LIBS=$ac_check_lib_save_LIBS
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11069$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11070if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11072else
11073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11074if test "x$ac_cv_func_dlopen" = xyes; then :
11075 lt_cv_dlopen="dlopen"
11076else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11078$as_echo_n "checking for dlopen in -ldl... " >&6; }
11079if ${ac_cv_lib_dl_dlopen+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 ac_check_lib_save_LIBS=$LIBS
11083LIBS="-ldl $LIBS"
11084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h. */
11086
11087/* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090#ifdef __cplusplus
11091extern "C"
11092#endif
11093char dlopen ();
11094int
11095main ()
11096{
11097return dlopen ();
11098 ;
11099 return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_dl_dlopen=yes
11104else
11105 ac_cv_lib_dl_dlopen=no
11106fi
11107rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109LIBS=$ac_check_lib_save_LIBS
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11113if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11115else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11117$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11118if ${ac_cv_lib_svld_dlopen+:} false; then :
11119 $as_echo_n "(cached) " >&6
11120else
11121 ac_check_lib_save_LIBS=$LIBS
11122LIBS="-lsvld $LIBS"
11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h. */
11125
11126/* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char dlopen ();
11133int
11134main ()
11135{
11136return dlopen ();
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_svld_dlopen=yes
11143else
11144 ac_cv_lib_svld_dlopen=no
11145fi
11146rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148LIBS=$ac_check_lib_save_LIBS
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11151$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11152if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11154else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11156$as_echo_n "checking for dld_link in -ldld... " >&6; }
11157if ${ac_cv_lib_dld_dld_link+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159else
11160 ac_check_lib_save_LIBS=$LIBS
11161LIBS="-ldld $LIBS"
11162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h. */
11164
11165/* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168#ifdef __cplusplus
11169extern "C"
11170#endif
11171char dld_link ();
11172int
11173main ()
11174{
11175return dld_link ();
11176 ;
11177 return 0;
11178}
11179_ACEOF
11180if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_dld_dld_link=yes
11182else
11183 ac_cv_lib_dld_dld_link=no
11184fi
11185rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187LIBS=$ac_check_lib_save_LIBS
11188fi
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11190$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11191if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11193fi
11194
11195
11196fi
11197
11198
11199fi
11200
11201
11202fi
11203
11204
11205fi
11206
11207
11208fi
11209
11210 ;;
11211 esac
11212
11213 if test "x$lt_cv_dlopen" != xno; then
11214 enable_dlopen=yes
11215 else
11216 enable_dlopen=no
11217 fi
11218
11219 case $lt_cv_dlopen in
11220 dlopen)
11221 save_CPPFLAGS="$CPPFLAGS"
11222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11223
11224 save_LDFLAGS="$LDFLAGS"
11225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11226
11227 save_LIBS="$LIBS"
11228 LIBS="$lt_cv_dlopen_libs $LIBS"
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11231$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11232if ${lt_cv_dlopen_self+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234else
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self=cross
11237else
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<_LT_EOF
11241#line $LINENO "configure"
11242#include "confdefs.h"
11243
11244#if HAVE_DLFCN_H
11245#include <dlfcn.h>
11246#endif
11247
11248#include <stdio.h>
11249
11250#ifdef RTLD_GLOBAL
11251# define LT_DLGLOBAL RTLD_GLOBAL
11252#else
11253# ifdef DL_GLOBAL
11254# define LT_DLGLOBAL DL_GLOBAL
11255# else
11256# define LT_DLGLOBAL 0
11257# endif
11258#endif
11259
11260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262#ifndef LT_DLLAZY_OR_NOW
11263# ifdef RTLD_LAZY
11264# define LT_DLLAZY_OR_NOW RTLD_LAZY
11265# else
11266# ifdef DL_LAZY
11267# define LT_DLLAZY_OR_NOW DL_LAZY
11268# else
11269# ifdef RTLD_NOW
11270# define LT_DLLAZY_OR_NOW RTLD_NOW
11271# else
11272# ifdef DL_NOW
11273# define LT_DLLAZY_OR_NOW DL_NOW
11274# else
11275# define LT_DLLAZY_OR_NOW 0
11276# endif
11277# endif
11278# endif
11279# endif
11280#endif
11281
11282/* When -fvisbility=hidden is used, assume the code has been annotated
11283 correspondingly for the symbols needed. */
11284#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11285int fnord () __attribute__((visibility("default")));
11286#endif
11287
11288int fnord () { return 42; }
11289int main ()
11290{
11291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11292 int status = $lt_dlunknown;
11293
11294 if (self)
11295 {
11296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11297 else
11298 {
11299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 else puts (dlerror ());
11301 }
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
11307 return status;
11308}
11309_LT_EOF
11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self=no
11325 fi
11326fi
11327rm -fr conftest*
11328
11329
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11332$as_echo "$lt_cv_dlopen_self" >&6; }
11333
11334 if test "x$lt_cv_dlopen_self" = xyes; then
11335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11337$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11338if ${lt_cv_dlopen_self_static+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340else
11341 if test "$cross_compiling" = yes; then :
11342 lt_cv_dlopen_self_static=cross
11343else
11344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11345 lt_status=$lt_dlunknown
11346 cat > conftest.$ac_ext <<_LT_EOF
11347#line $LINENO "configure"
11348#include "confdefs.h"
11349
11350#if HAVE_DLFCN_H
11351#include <dlfcn.h>
11352#endif
11353
11354#include <stdio.h>
11355
11356#ifdef RTLD_GLOBAL
11357# define LT_DLGLOBAL RTLD_GLOBAL
11358#else
11359# ifdef DL_GLOBAL
11360# define LT_DLGLOBAL DL_GLOBAL
11361# else
11362# define LT_DLGLOBAL 0
11363# endif
11364#endif
11365
11366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11367 find out it does not work in some platform. */
11368#ifndef LT_DLLAZY_OR_NOW
11369# ifdef RTLD_LAZY
11370# define LT_DLLAZY_OR_NOW RTLD_LAZY
11371# else
11372# ifdef DL_LAZY
11373# define LT_DLLAZY_OR_NOW DL_LAZY
11374# else
11375# ifdef RTLD_NOW
11376# define LT_DLLAZY_OR_NOW RTLD_NOW
11377# else
11378# ifdef DL_NOW
11379# define LT_DLLAZY_OR_NOW DL_NOW
11380# else
11381# define LT_DLLAZY_OR_NOW 0
11382# endif
11383# endif
11384# endif
11385# endif
11386#endif
11387
11388/* When -fvisbility=hidden is used, assume the code has been annotated
11389 correspondingly for the symbols needed. */
11390#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11391int fnord () __attribute__((visibility("default")));
11392#endif
11393
11394int fnord () { return 42; }
11395int main ()
11396{
11397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11398 int status = $lt_dlunknown;
11399
11400 if (self)
11401 {
11402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11403 else
11404 {
11405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11406 else puts (dlerror ());
11407 }
11408 /* dlclose (self); */
11409 }
11410 else
11411 puts (dlerror ());
11412
11413 return status;
11414}
11415_LT_EOF
11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11421 (./conftest; exit; ) >&5 2>/dev/null
11422 lt_status=$?
11423 case x$lt_status in
11424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11427 esac
11428 else :
11429 # compilation failed
11430 lt_cv_dlopen_self_static=no
11431 fi
11432fi
11433rm -fr conftest*
11434
11435
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11438$as_echo "$lt_cv_dlopen_self_static" >&6; }
11439 fi
11440
11441 CPPFLAGS="$save_CPPFLAGS"
11442 LDFLAGS="$save_LDFLAGS"
11443 LIBS="$save_LIBS"
11444 ;;
11445 esac
11446
11447 case $lt_cv_dlopen_self in
11448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11449 *) enable_dlopen_self=unknown ;;
11450 esac
11451
11452 case $lt_cv_dlopen_self_static in
11453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11454 *) enable_dlopen_self_static=unknown ;;
11455 esac
11456fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474striplib=
11475old_striplib=
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11477$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11478if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482$as_echo "yes" >&6; }
11483else
11484# FIXME - insert some real tests, host_os isn't really good enough
11485 case $host_os in
11486 darwin*)
11487 if test -n "$STRIP" ; then
11488 striplib="$STRIP -x"
11489 old_striplib="$STRIP -S"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491$as_echo "yes" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
11495 fi
11496 ;;
11497 *)
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500 ;;
11501 esac
11502fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515 # Report which library types will actually be built
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11517$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11519$as_echo "$can_build_shared" >&6; }
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11522$as_echo_n "checking whether to build shared libraries... " >&6; }
11523 test "$can_build_shared" = "no" && enable_shared=no
11524
11525 # On AIX, shared libraries and static libraries use the same namespace, and
11526 # are all built from PIC.
11527 case $host_os in
11528 aix3*)
11529 test "$enable_shared" = yes && enable_static=no
11530 if test -n "$RANLIB"; then
11531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11532 postinstall_cmds='$RANLIB $lib'
11533 fi
11534 ;;
11535
11536 aix[4-9]*)
11537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11538 test "$enable_shared" = yes && enable_static=no
11539 fi
11540 ;;
11541 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11543$as_echo "$enable_shared" >&6; }
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11546$as_echo_n "checking whether to build static libraries... " >&6; }
11547 # Make sure either enable_shared or enable_static is yes.
11548 test "$enable_shared" = yes || enable_static=yes
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11550$as_echo "$enable_static" >&6; }
11551
11552
11553
11554
11555fi
11556ac_ext=c
11557ac_cpp='$CPP $CPPFLAGS'
11558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561
11562CC="$lt_save_CC"
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578 ac_config_commands="$ac_config_commands libtool"
11579
11580
11581
11582
11583# Only expand once:
11584
11585
11586if test "x$CC" != xcc; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11588$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11589else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11591$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11592fi
11593set dummy $CC; ac_cc=`$as_echo "$2" |
11594 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11595if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599/* end confdefs.h. */
11600
11601int
11602main ()
11603{
11604
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609# Make sure it works both with $CC and with simple cc.
11610# We do the test twice because some compilers refuse to overwrite an
11611# existing .o file with -o, though they will create one.
11612ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11613rm -f conftest2.*
11614if { { case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617esac
11618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11619$as_echo "$ac_try_echo"; } >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623 test $ac_status = 0; } &&
11624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627esac
11628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11629$as_echo "$ac_try_echo"; } >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; };
11634then
11635 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11636 if test "x$CC" != xcc; then
11637 # Test first that cc exists at all.
11638 if { ac_try='cc -c conftest.$ac_ext >&5'
11639 { { case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11644$as_echo "$ac_try_echo"; } >&5
11645 (eval "$ac_try") 2>&5
11646 ac_status=$?
11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648 test $ac_status = 0; }; }; then
11649 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11650 rm -f conftest2.*
11651 if { { case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11656$as_echo "$ac_try_echo"; } >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; } &&
11661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
11665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11666$as_echo "$ac_try_echo"; } >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670 test $ac_status = 0; };
11671 then
11672 # cc works too.
11673 :
11674 else
11675 # cc exists but doesn't like -o.
11676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11677 fi
11678 fi
11679 fi
11680else
11681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11682fi
11683rm -f core conftest*
11684
11685fi
11686if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688$as_echo "yes" >&6; }
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692
11693$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11694
11695fi
11696
11697# FIXME: we rely on the cache variable name because
11698# there is no other way.
11699set dummy $CC
11700am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11701eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11702if test "$am_t" != yes; then
11703 # Losing compiler, so override with the script.
11704 # FIXME: It is wrong to rewrite CC.
11705 # But if we don't then we get into trouble of one sort or another.
11706 # A longer-term fix would be to have automake use am__CC in this case,
11707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11708 CC="$am_aux_dir/compile $CC"
11709fi
11710
11711
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11714$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11715if ${ac_cv_prog_cc_c99+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717else
11718 ac_cv_prog_cc_c99=no
11719ac_save_CC=$CC
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h. */
11722#include <stdarg.h>
11723#include <stdbool.h>
11724#include <stdlib.h>
11725#include <wchar.h>
11726#include <stdio.h>
11727
11728// Check varargs macros. These examples are taken from C99 6.10.3.5.
11729#define debug(...) fprintf (stderr, __VA_ARGS__)
11730#define showlist(...) puts (#__VA_ARGS__)
11731#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11732static void
11733test_varargs_macros (void)
11734{
11735 int x = 1234;
11736 int y = 5678;
11737 debug ("Flag");
11738 debug ("X = %d\n", x);
11739 showlist (The first, second, and third items.);
11740 report (x>y, "x is %d but y is %d", x, y);
11741}
11742
11743// Check long long types.
11744#define BIG64 18446744073709551615ull
11745#define BIG32 4294967295ul
11746#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11747#if !BIG_OK
11748 your preprocessor is broken;
11749#endif
11750#if BIG_OK
11751#else
11752 your preprocessor is broken;
11753#endif
11754static long long int bignum = -9223372036854775807LL;
11755static unsigned long long int ubignum = BIG64;
11756
11757struct incomplete_array
11758{
11759 int datasize;
11760 double data[];
11761};
11762
11763struct named_init {
11764 int number;
11765 const wchar_t *name;
11766 double average;
11767};
11768
11769typedef const char *ccp;
11770
11771static inline int
11772test_restrict (ccp restrict text)
11773{
11774 // See if C++-style comments work.
11775 // Iterate through items via the restricted pointer.
11776 // Also check for declarations in for loops.
11777 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11778 continue;
11779 return 0;
11780}
11781
11782// Check varargs and va_copy.
11783static void
11784test_varargs (const char *format, ...)
11785{
11786 va_list args;
11787 va_start (args, format);
11788 va_list args_copy;
11789 va_copy (args_copy, args);
11790
11791 const char *str;
11792 int number;
11793 float fnumber;
11794
11795 while (*format)
11796 {
11797 switch (*format++)
11798 {
11799 case 's': // string
11800 str = va_arg (args_copy, const char *);
11801 break;
11802 case 'd': // int
11803 number = va_arg (args_copy, int);
11804 break;
11805 case 'f': // float
11806 fnumber = va_arg (args_copy, double);
11807 break;
11808 default:
11809 break;
11810 }
11811 }
11812 va_end (args_copy);
11813 va_end (args);
11814}
11815
11816int
11817main ()
11818{
11819
11820 // Check bool.
11821 _Bool success = false;
11822
11823 // Check restrict.
11824 if (test_restrict ("String literal") == 0)
11825 success = true;
11826 char *restrict newvar = "Another string";
11827
11828 // Check varargs.
11829 test_varargs ("s, d' f .", "string", 65, 34.234);
11830 test_varargs_macros ();
11831
11832 // Check flexible array members.
11833 struct incomplete_array *ia =
11834 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11835 ia->datasize = 10;
11836 for (int i = 0; i < ia->datasize; ++i)
11837 ia->data[i] = i * 1.234;
11838
11839 // Check named initializers.
11840 struct named_init ni = {
11841 .number = 34,
11842 .name = L"Test wide string",
11843 .average = 543.34343,
11844 };
11845
11846 ni.number = 58;
11847
11848 int dynamic_array[ni.number];
11849 dynamic_array[ni.number - 1] = 543;
11850
11851 // work around unused variable warnings
11852 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11853 || dynamic_array[ni.number - 1] != 543);
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11860do
11861 CC="$ac_save_CC $ac_arg"
11862 if ac_fn_c_try_compile "$LINENO"; then :
11863 ac_cv_prog_cc_c99=$ac_arg
11864fi
11865rm -f core conftest.err conftest.$ac_objext
11866 test "x$ac_cv_prog_cc_c99" != "xno" && break
11867done
11868rm -f conftest.$ac_ext
11869CC=$ac_save_CC
11870
11871fi
11872# AC_CACHE_VAL
11873case "x$ac_cv_prog_cc_c99" in
11874 x)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11876$as_echo "none needed" >&6; } ;;
11877 xno)
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11879$as_echo "unsupported" >&6; } ;;
11880 *)
11881 CC="$CC $ac_cv_prog_cc_c99"
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11883$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11884esac
11885if test "x$ac_cv_prog_cc_c99" != xno; then :
11886
11887fi
11888
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11891$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11892if ${ac_cv_c_bigendian+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894else
11895 ac_cv_c_bigendian=unknown
11896 # See if we're dealing with a universal compiler.
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898/* end confdefs.h. */
11899#ifndef __APPLE_CC__
11900 not a universal capable compiler
11901 #endif
11902 typedef int dummy;
11903
11904_ACEOF
11905if ac_fn_c_try_compile "$LINENO"; then :
11906
11907 # Check for potential -arch flags. It is not universal unless
11908 # there are at least two -arch flags with different values.
11909 ac_arch=
11910 ac_prev=
11911 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11912 if test -n "$ac_prev"; then
11913 case $ac_word in
11914 i?86 | x86_64 | ppc | ppc64)
11915 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11916 ac_arch=$ac_word
11917 else
11918 ac_cv_c_bigendian=universal
11919 break
11920 fi
11921 ;;
11922 esac
11923 ac_prev=
11924 elif test "x$ac_word" = "x-arch"; then
11925 ac_prev=arch
11926 fi
11927 done
11928fi
11929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 if test $ac_cv_c_bigendian = unknown; then
11931 # See if sys/param.h defines the BYTE_ORDER macro.
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h. */
11934#include <sys/types.h>
11935 #include <sys/param.h>
11936
11937int
11938main ()
11939{
11940#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11941 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11942 && LITTLE_ENDIAN)
11943 bogus endian macros
11944 #endif
11945
11946 ;
11947 return 0;
11948}
11949_ACEOF
11950if ac_fn_c_try_compile "$LINENO"; then :
11951 # It does; now see whether it defined to BIG_ENDIAN or not.
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h. */
11954#include <sys/types.h>
11955 #include <sys/param.h>
11956
11957int
11958main ()
11959{
11960#if BYTE_ORDER != BIG_ENDIAN
11961 not big endian
11962 #endif
11963
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968if ac_fn_c_try_compile "$LINENO"; then :
11969 ac_cv_c_bigendian=yes
11970else
11971 ac_cv_c_bigendian=no
11972fi
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974fi
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 if test $ac_cv_c_bigendian = unknown; then
11978 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h. */
11981#include <limits.h>
11982
11983int
11984main ()
11985{
11986#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11987 bogus endian macros
11988 #endif
11989
11990 ;
11991 return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_compile "$LINENO"; then :
11995 # It does; now see whether it defined to _BIG_ENDIAN or not.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998#include <limits.h>
11999
12000int
12001main ()
12002{
12003#ifndef _BIG_ENDIAN
12004 not big endian
12005 #endif
12006
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_compile "$LINENO"; then :
12012 ac_cv_c_bigendian=yes
12013else
12014 ac_cv_c_bigendian=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017fi
12018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 if test $ac_cv_c_bigendian = unknown; then
12021 # Compile a test program.
12022 if test "$cross_compiling" = yes; then :
12023 # Try to guess by grepping values from an object file.
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h. */
12026short int ascii_mm[] =
12027 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12028 short int ascii_ii[] =
12029 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12030 int use_ascii (int i) {
12031 return ascii_mm[i] + ascii_ii[i];
12032 }
12033 short int ebcdic_ii[] =
12034 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12035 short int ebcdic_mm[] =
12036 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12037 int use_ebcdic (int i) {
12038 return ebcdic_mm[i] + ebcdic_ii[i];
12039 }
12040 extern int foo;
12041
12042int
12043main ()
12044{
12045return use_ascii (foo) == use_ebcdic (foo);
12046 ;
12047 return 0;
12048}
12049_ACEOF
12050if ac_fn_c_try_compile "$LINENO"; then :
12051 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12052 ac_cv_c_bigendian=yes
12053 fi
12054 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12055 if test "$ac_cv_c_bigendian" = unknown; then
12056 ac_cv_c_bigendian=no
12057 else
12058 # finding both strings is unlikely to happen, but who knows?
12059 ac_cv_c_bigendian=unknown
12060 fi
12061 fi
12062fi
12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064else
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h. */
12067$ac_includes_default
12068int
12069main ()
12070{
12071
12072 /* Are we little or big endian? From Harbison&Steele. */
12073 union
12074 {
12075 long int l;
12076 char c[sizeof (long int)];
12077 } u;
12078 u.l = 1;
12079 return u.c[sizeof (long int) - 1] == 1;
12080
12081 ;
12082 return 0;
12083}
12084_ACEOF
12085if ac_fn_c_try_run "$LINENO"; then :
12086 ac_cv_c_bigendian=no
12087else
12088 ac_cv_c_bigendian=yes
12089fi
12090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12091 conftest.$ac_objext conftest.beam conftest.$ac_ext
12092fi
12093
12094 fi
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12097$as_echo "$ac_cv_c_bigendian" >&6; }
12098 case $ac_cv_c_bigendian in #(
12099 yes)
12100 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12101;; #(
12102 no)
12103 ;; #(
12104 universal)
12105
12106$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12107
12108 ;; #(
12109 *)
12110 as_fn_error $? "unknown endianness
12111 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12112 esac
12113
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12115$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12116if ${ac_cv_c_const+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h. */
12121
12122int
12123main ()
12124{
12125/* FIXME: Include the comments suggested by Paul. */
12126#ifndef __cplusplus
12127 /* Ultrix mips cc rejects this. */
12128 typedef int charset[2];
12129 const charset cs;
12130 /* SunOS 4.1.1 cc rejects this. */
12131 char const *const *pcpcc;
12132 char **ppc;
12133 /* NEC SVR4.0.2 mips cc rejects this. */
12134 struct point {int x, y;};
12135 static struct point const zero = {0,0};
12136 /* AIX XL C 1.02.0.0 rejects this.
12137 It does not let you subtract one const X* pointer from another in
12138 an arm of an if-expression whose if-part is not a constant
12139 expression */
12140 const char *g = "string";
12141 pcpcc = &g + (g ? g-g : 0);
12142 /* HPUX 7.0 cc rejects these. */
12143 ++pcpcc;
12144 ppc = (char**) pcpcc;
12145 pcpcc = (char const *const *) ppc;
12146 { /* SCO 3.2v4 cc rejects this. */
12147 char *t;
12148 char const *s = 0 ? (char *) 0 : (char const *) 0;
12149
12150 *t++ = 0;
12151 if (s) return 0;
12152 }
12153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12154 int x[] = {25, 17};
12155 const int *foo = &x[0];
12156 ++foo;
12157 }
12158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12159 typedef const int *iptr;
12160 iptr p = 0;
12161 ++p;
12162 }
12163 { /* AIX XL C 1.02.0.0 rejects this saying
12164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12165 struct s { int j; const int *ap[3]; };
12166 struct s *b; b->j = 5;
12167 }
12168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12169 const int foo = 10;
12170 if (!foo) return 0;
12171 }
12172 return !cs[0] && !zero.x;
12173#endif
12174
12175 ;
12176 return 0;
12177}
12178_ACEOF
12179if ac_fn_c_try_compile "$LINENO"; then :
12180 ac_cv_c_const=yes
12181else
12182 ac_cv_c_const=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12187$as_echo "$ac_cv_c_const" >&6; }
12188if test $ac_cv_c_const = no; then
12189
12190$as_echo "#define const /**/" >>confdefs.h
12191
12192fi
12193
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12195$as_echo_n "checking for inline... " >&6; }
12196if ${ac_cv_c_inline+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198else
12199 ac_cv_c_inline=no
12200for ac_kw in inline __inline__ __inline; do
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h. */
12203#ifndef __cplusplus
12204typedef int foo_t;
12205static $ac_kw foo_t static_foo () {return 0; }
12206$ac_kw foo_t foo () {return 0; }
12207#endif
12208
12209_ACEOF
12210if ac_fn_c_try_compile "$LINENO"; then :
12211 ac_cv_c_inline=$ac_kw
12212fi
12213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 test "$ac_cv_c_inline" != no && break
12215done
12216
12217fi
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12219$as_echo "$ac_cv_c_inline" >&6; }
12220
12221case $ac_cv_c_inline in
12222 inline | yes) ;;
12223 *)
12224 case $ac_cv_c_inline in
12225 no) ac_val=;;
12226 *) ac_val=$ac_cv_c_inline;;
12227 esac
12228 cat >>confdefs.h <<_ACEOF
12229#ifndef __cplusplus
12230#define inline $ac_val
12231#endif
12232_ACEOF
12233 ;;
12234esac
12235
12236
12237#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
12238#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12240$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12241if ${ac_cv_c_restrict+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243else
12244 ac_cv_c_restrict=no
12245 # The order here caters to the fact that C++ does not require restrict.
12246 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h. */
12249typedef int * int_ptr;
12250 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
12251 return ip[0];
12252 }
12253int
12254main ()
12255{
12256int s[1];
12257 int * $ac_kw t = s;
12258 t[0] = 0;
12259 return foo(t, (void *)0)
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_compile "$LINENO"; then :
12265 ac_cv_c_restrict=$ac_kw
12266fi
12267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 test "$ac_cv_c_restrict" != no && break
12269 done
12270
12271fi
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12273$as_echo "$ac_cv_c_restrict" >&6; }
12274
12275 case $ac_cv_c_restrict in
12276 restrict) ;;
12277 no) $as_echo "#define restrict /**/" >>confdefs.h
12278 ;;
12279 *) cat >>confdefs.h <<_ACEOF
12280#define restrict $ac_cv_c_restrict
12281_ACEOF
12282 ;;
12283 esac
12284
12285
12286$as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12287
12288
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12290$as_echo_n "checking for C99 variable-size arrays... " >&6; }
12291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h. */
12293
12294int
12295main ()
12296{
12297static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302if ac_fn_c_try_compile "$LINENO"; then :
12303 has_var_arrays=yes;
12304$as_echo "#define VAR_ARRAYS /**/" >>confdefs.h
12305
12306
12307else
12308 has_var_arrays=no
12309
12310fi
12311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12313$as_echo "$has_var_arrays" >&6; }
12314
12315for ac_header in alloca.h getopt.h
12316do :
12317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12320 cat >>confdefs.h <<_ACEOF
12321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322_ACEOF
12323
12324fi
12325
12326done
12327
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12329$as_echo_n "checking for alloca... " >&6; }
12330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h. */
12332#include <alloca.h>
12333int
12334main ()
12335{
12336
12337int foo=10;
12338int *array = alloca(foo);
12339
12340 ;
12341 return 0;
12342}
12343_ACEOF
12344if ac_fn_c_try_compile "$LINENO"; then :
12345
12346has_alloca=yes;
12347if test x$has_var_arrays = "xno" ; then
12348
12349$as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12350
12351fi
12352
12353else
12354 has_alloca=no
12355
12356fi
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5
12359$as_echo "$has_alloca" >&6; }
12360
12361ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
12362if test "x$ac_cv_func_exp" = xyes; then :
12363 fp_libm_not_needed=yes;LIBM=
12364else
12365 fp_libm_not_needed=dunno
12366fi
12367
12368if test x"$fp_libm_not_needed" = xdunno; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
12370$as_echo_n "checking for exp in -lm... " >&6; }
12371if ${ac_cv_lib_m_exp+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 ac_check_lib_save_LIBS=$LIBS
12375LIBS="-lm $LIBS"
12376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h. */
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char exp ();
12386int
12387main ()
12388{
12389return exp ();
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_m_exp=yes
12396else
12397 ac_cv_lib_m_exp=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401LIBS=$ac_check_lib_save_LIBS
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
12404$as_echo "$ac_cv_lib_m_exp" >&6; }
12405if test "x$ac_cv_lib_m_exp" = xyes; then :
12406 LIBS="-lm $LIBS"; LIBM="-lm"
12407else
12408 LIBM=
12409fi
12410
12411fi
12412
12413
12414has_float_approx=no
12415#case "$host_cpu" in
12416#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12417# has_float_approx=yes
12418# ;;
12419#esac
12420
12421ac_enable_fixed="no";
12422ac_enable_float="yes";
12423# Check whether --enable-fixed-point was given.
12424if test "${enable_fixed_point+set}" = set; then :
12425 enableval=$enable_fixed_point; if test "$enableval" = yes; then
12426 ac_enable_fixed="yes";
12427 ac_enable_float="no";
12428
12429$as_echo "#define FIXED_POINT 1" >>confdefs.h
12430
12431else
12432
12433$as_echo "#define FLOATING_POINT /**/" >>confdefs.h
12434
12435fi
12436else
12437
12438$as_echo "#define FLOATING_POINT /**/" >>confdefs.h
12439
12440fi
12441
12442
12443ac_enable_fixed_debug="no"
12444# Check whether --enable-fixed-point-debug was given.
12445if test "${enable_fixed_point_debug+set}" = set; then :
12446 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
12447 ac_enable_fixed_debug="yes"
12448
12449$as_echo "#define FIXED_DEBUG /**/" >>confdefs.h
12450
12451fi
12452fi
12453
12454
12455ac_enable_custom_modes="no"
12456# Check whether --enable-custom-modes was given.
12457if test "${enable_custom_modes+set}" = set; then :
12458 enableval=$enable_custom_modes; if test "$enableval" = yes; then
12459 ac_enable_custom_modes="yes"
12460
12461$as_echo "#define CUSTOM_MODES /**/" >>confdefs.h
12462
12463fi
12464fi
12465
12466
12467float_approx=$has_float_approx
12468# Check whether --enable-float-approx was given.
12469if test "${enable_float_approx+set}" = set; then :
12470 enableval=$enable_float_approx; if test "$enableval" = yes; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
12472$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
12473 float_approx=yes
12474 else
12475 float_approx=no
12476 fi
12477else
12478 float_approx=$has_float_approx
12479fi
12480
12481
12482if test "x${float_approx}" = "xyes"; then
12483
12484$as_echo "#define FLOAT_APPROX /**/" >>confdefs.h
12485
12486fi
12487
12488ac_enable_assertions="no"
12489# Check whether --enable-assertions was given.
12490if test "${enable_assertions+set}" = set; then :
12491 enableval=$enable_assertions; if test "$enableval" = yes; then
12492 ac_enable_assertions="yes"
12493
12494$as_echo "#define ENABLE_ASSERTIONS /**/" >>confdefs.h
12495
12496fi
12497fi
12498
12499
12500ac_enable_fuzzing="no"
12501# Check whether --enable-fuzzing was given.
12502if test "${enable_fuzzing+set}" = set; then :
12503 enableval=$enable_fuzzing; if test "$enableval" = yes; then
12504 ac_enable_fuzzing="yes"
12505
12506$as_echo "#define FUZZING /**/" >>confdefs.h
12507
12508fi
12509fi
12510
12511
12512ac_enable_doc="yes"
12513# Check whether --enable-doc was given.
12514if test "${enable_doc+set}" = set; then :
12515 enableval=$enable_doc; ac_enable_doc=$enableval
12516fi
12517
12518# Extract the first word of "doxygen", so it can be a program name with args.
12519set dummy doxygen; ac_word=$2
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
12522if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524else
12525 if test -n "$HAVE_DOXYGEN"; then
12526 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12527else
12528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529for as_dir in $PATH
12530do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12535 ac_cv_prog_HAVE_DOXYGEN="yes"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 break 2
12538 fi
12539done
12540 done
12541IFS=$as_save_IFS
12542
12543 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
12544fi
12545fi
12546HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12547if test -n "$HAVE_DOXYGEN"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12549$as_echo "$HAVE_DOXYGEN" >&6; }
12550else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553fi
12554
12555
12556if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then
12557 HAVE_DOXYGEN="false"
12558 ac_enable_doc="no"
12559fi
12560 if test $HAVE_DOXYGEN = yes; then
12561 HAVE_DOXYGEN_TRUE=
12562 HAVE_DOXYGEN_FALSE='#'
12563else
12564 HAVE_DOXYGEN_TRUE='#'
12565 HAVE_DOXYGEN_FALSE=
12566fi
12567
12568
12569saved_CFLAGS="$CFLAGS"
12570CFLAGS="$CFLAGS -fvisibility=hidden"
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
12572$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574/* end confdefs.h. */
12575char foo;
12576_ACEOF
12577if ac_fn_c_try_compile "$LINENO"; then :
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579$as_echo "yes" >&6; }
12580 SYMBOL_VISIBILITY="-fvisibility=hidden"
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
12587
12588
12589CFLAGS="$CFLAGS -W"
12590
12591saved_CFLAGS="$CFLAGS"
12592CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" >&5
12594$as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... " >&6; }
12595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h. */
12597char foo;
12598_ACEOF
12599if ac_fn_c_try_compile "$LINENO"; then :
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601$as_echo "yes" >&6; }
12602 EXTRA_WARNS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12603else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
12606fi
12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608CFLAGS="$saved_CFLAGS $EXTRA_WARNS"
12609
12610for ac_func in lrintf
12611do :
12612 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
12613if test "x$ac_cv_func_lrintf" = xyes; then :
12614 cat >>confdefs.h <<_ACEOF
12615#define HAVE_LRINTF 1
12616_ACEOF
12617
12618fi
12619done
12620
12621for ac_func in lrint
12622do :
12623 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
12624if test "x$ac_cv_func_lrint" = xyes; then :
12625 cat >>confdefs.h <<_ACEOF
12626#define HAVE_LRINT 1
12627_ACEOF
12628
12629fi
12630done
12631
12632for ac_func in __malloc_hook
12633do :
12634 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
12635if test "x$ac_cv_func___malloc_hook" = xyes; then :
12636 cat >>confdefs.h <<_ACEOF
12637#define HAVE___MALLOC_HOOK 1
12638_ACEOF
12639
12640fi
12641done
12642
12643
12644# The cast to long int works around a bug in the HP C Compiler
12645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647# This bug is HP SR number 8606223364.
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12649$as_echo_n "checking size of short... " >&6; }
12650if ${ac_cv_sizeof_short+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652else
12653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12654
12655else
12656 if test "$ac_cv_type_short" = yes; then
12657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12659as_fn_error 77 "cannot compute sizeof (short)
12660See \`config.log' for more details" "$LINENO" 5; }
12661 else
12662 ac_cv_sizeof_short=0
12663 fi
12664fi
12665
12666fi
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12668$as_echo "$ac_cv_sizeof_short" >&6; }
12669
12670
12671
12672cat >>confdefs.h <<_ACEOF
12673#define SIZEOF_SHORT $ac_cv_sizeof_short
12674_ACEOF
12675
12676
12677# The cast to long int works around a bug in the HP C Compiler
12678# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12679# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12680# This bug is HP SR number 8606223364.
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12682$as_echo_n "checking size of int... " >&6; }
12683if ${ac_cv_sizeof_int+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685else
12686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12687
12688else
12689 if test "$ac_cv_type_int" = yes; then
12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12692as_fn_error 77 "cannot compute sizeof (int)
12693See \`config.log' for more details" "$LINENO" 5; }
12694 else
12695 ac_cv_sizeof_int=0
12696 fi
12697fi
12698
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12701$as_echo "$ac_cv_sizeof_int" >&6; }
12702
12703
12704
12705cat >>confdefs.h <<_ACEOF
12706#define SIZEOF_INT $ac_cv_sizeof_int
12707_ACEOF
12708
12709
12710# The cast to long int works around a bug in the HP C Compiler
12711# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12712# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12713# This bug is HP SR number 8606223364.
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12715$as_echo_n "checking size of long... " >&6; }
12716if ${ac_cv_sizeof_long+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718else
12719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12720
12721else
12722 if test "$ac_cv_type_long" = yes; then
12723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12725as_fn_error 77 "cannot compute sizeof (long)
12726See \`config.log' for more details" "$LINENO" 5; }
12727 else
12728 ac_cv_sizeof_long=0
12729 fi
12730fi
12731
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12734$as_echo "$ac_cv_sizeof_long" >&6; }
12735
12736
12737
12738cat >>confdefs.h <<_ACEOF
12739#define SIZEOF_LONG $ac_cv_sizeof_long
12740_ACEOF
12741
12742
12743# The cast to long int works around a bug in the HP C Compiler
12744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12746# This bug is HP SR number 8606223364.
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12748$as_echo_n "checking size of long long... " >&6; }
12749if ${ac_cv_sizeof_long_long+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751else
12752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12753
12754else
12755 if test "$ac_cv_type_long_long" = yes; then
12756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12758as_fn_error 77 "cannot compute sizeof (long long)
12759See \`config.log' for more details" "$LINENO" 5; }
12760 else
12761 ac_cv_sizeof_long_long=0
12762 fi
12763fi
12764
12765fi
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12767$as_echo "$ac_cv_sizeof_long_long" >&6; }
12768
12769
12770
12771cat >>confdefs.h <<_ACEOF
12772#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12773_ACEOF
12774
12775
12776
12777if test x$has_char16 = "xyes" ; then
12778 case 1 in
12779 $ac_cv_sizeof_short) SIZE16="short";;
12780 $ac_cv_sizeof_int) SIZE16="int";;
12781 esac
12782else
12783 case 2 in
12784 $ac_cv_sizeof_short) SIZE16="short";;
12785 $ac_cv_sizeof_int) SIZE16="int";;
12786 esac
12787fi
12788
12789if test x$has_char16 = "xyes" ; then
12790 case 2 in
12791 $ac_cv_sizeof_int) SIZE32="int";;
12792 $ac_cv_sizeof_long) SIZE32="long";;
12793 $ac_cv_sizeof_short) SIZE32="short";;
12794 esac
12795else
12796 case 4 in
12797 $ac_cv_sizeof_int) SIZE32="int";;
12798 $ac_cv_sizeof_long) SIZE32="long";;
12799 $ac_cv_sizeof_short) SIZE32="short";;
12800 esac
12801fi
12802
12803
12804
12805
12806 if test x$ac_enable_fixed = xyes; then
12807 FIXED_POINT_TRUE=
12808 FIXED_POINT_FALSE='#'
12809else
12810 FIXED_POINT_TRUE='#'
12811 FIXED_POINT_FALSE=
12812fi
12813
12814 if test x$ac_enable_custom_modes = xyes; then
12815 CUSTOM_MODES_TRUE=
12816 CUSTOM_MODES_FALSE='#'
12817else
12818 CUSTOM_MODES_TRUE='#'
12819 CUSTOM_MODES_FALSE=
12820fi
12821
12822
12823ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc doc/Makefile doc/Doxyfile"
12824
12825cat >confcache <<\_ACEOF
12826# This file is a shell script that caches the results of configure
12827# tests run on this system so they can be shared between configure
12828# scripts and configure runs, see configure's option --config-cache.
12829# It is not useful on other systems. If it contains results you don't
12830# want to keep, you may remove or edit it.
12831#
12832# config.status only pays attention to the cache file if you give it
12833# the --recheck option to rerun configure.
12834#
12835# `ac_cv_env_foo' variables (set or unset) will be overridden when
12836# loading this file, other *unset* `ac_cv_foo' will be assigned the
12837# following values.
12838
12839_ACEOF
12840
12841# The following way of writing the cache mishandles newlines in values,
12842# but we know of no workaround that is simple, portable, and efficient.
12843# So, we kill variables containing newlines.
12844# Ultrix sh set writes to stderr and can't be redirected directly,
12845# and sets the high bit in the cache file unless we assign to the vars.
12846(
12847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12848 eval ac_val=\$$ac_var
12849 case $ac_val in #(
12850 *${as_nl}*)
12851 case $ac_var in #(
12852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12853$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12854 esac
12855 case $ac_var in #(
12856 _ | IFS | as_nl) ;; #(
12857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12858 *) { eval $ac_var=; unset $ac_var;} ;;
12859 esac ;;
12860 esac
12861 done
12862
12863 (set) 2>&1 |
12864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12865 *${as_nl}ac_space=\ *)
12866 # `set' does not quote correctly, so add quotes: double-quote
12867 # substitution turns \\\\ into \\, and sed turns \\ into \.
12868 sed -n \
12869 "s/'/'\\\\''/g;
12870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12871 ;; #(
12872 *)
12873 # `set' quotes correctly as required by POSIX, so do not add quotes.
12874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12875 ;;
12876 esac |
12877 sort
12878) |
12879 sed '
12880 /^ac_cv_env_/b end
12881 t clear
12882 :clear
12883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12884 t end
12885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12886 :end' >>confcache
12887if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12888 if test -w "$cache_file"; then
12889 if test "x$cache_file" != "x/dev/null"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12891$as_echo "$as_me: updating cache $cache_file" >&6;}
12892 if test ! -f "$cache_file" || test -h "$cache_file"; then
12893 cat confcache >"$cache_file"
12894 else
12895 case $cache_file in #(
12896 */* | ?:*)
12897 mv -f confcache "$cache_file"$$ &&
12898 mv -f "$cache_file"$$ "$cache_file" ;; #(
12899 *)
12900 mv -f confcache "$cache_file" ;;
12901 esac
12902 fi
12903 fi
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12906$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12907 fi
12908fi
12909rm -f confcache
12910
12911test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912# Let make expand exec_prefix.
12913test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12914
12915DEFS=-DHAVE_CONFIG_H
12916
12917ac_libobjs=
12918ac_ltlibobjs=
12919U=
12920for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12921 # 1. Remove the extension, and $U if already installed.
12922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12925 # will be set to the directory where LIBOBJS objects are built.
12926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12928done
12929LIBOBJS=$ac_libobjs
12930
12931LTLIBOBJS=$ac_ltlibobjs
12932
12933
12934 if test -n "$EXEEXT"; then
12935 am__EXEEXT_TRUE=
12936 am__EXEEXT_FALSE='#'
12937else
12938 am__EXEEXT_TRUE='#'
12939 am__EXEEXT_FALSE=
12940fi
12941
12942if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12943 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12944Usually this means the macro was only invoked conditionally." "$LINENO" 5
12945fi
12946if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12947 as_fn_error $? "conditional \"AMDEP\" was never defined.
12948Usually this means the macro was only invoked conditionally." "$LINENO" 5
12949fi
12950if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12952Usually this means the macro was only invoked conditionally." "$LINENO" 5
12953fi
12954
12955if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12956 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12957Usually this means the macro was only invoked conditionally." "$LINENO" 5
12958fi
12959if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
12960 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
12961Usually this means the macro was only invoked conditionally." "$LINENO" 5
12962fi
12963if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
12964 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
12965Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966fi
12967
12968: "${CONFIG_STATUS=./config.status}"
12969ac_write_fail=0
12970ac_clean_files_save=$ac_clean_files
12971ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12973$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12974as_write_fail=0
12975cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12976#! $SHELL
12977# Generated by $as_me.
12978# Run this file to recreate the current configuration.
12979# Compiler output produced by configure, useful for debugging
12980# configure, is in config.log if it exists.
12981
12982debug=false
12983ac_cs_recheck=false
12984ac_cs_silent=false
12985
12986SHELL=\${CONFIG_SHELL-$SHELL}
12987export SHELL
12988_ASEOF
12989cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12990## -------------------- ##
12991## M4sh Initialization. ##
12992## -------------------- ##
12993
12994# Be more Bourne compatible
12995DUALCASE=1; export DUALCASE # for MKS sh
12996if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12997 emulate sh
12998 NULLCMD=:
12999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13000 # is contrary to our usage. Disable this feature.
13001 alias -g '${1+"$@"}'='"$@"'
13002 setopt NO_GLOB_SUBST
13003else
13004 case `(set -o) 2>/dev/null` in #(
13005 *posix*) :
13006 set -o posix ;; #(
13007 *) :
13008 ;;
13009esac
13010fi
13011
13012
13013as_nl='
13014'
13015export as_nl
13016# Printing a long string crashes Solaris 7 /usr/bin/printf.
13017as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13018as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13019as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13020# Prefer a ksh shell builtin over an external printf program on Solaris,
13021# but without wasting forks for bash or zsh.
13022if test -z "$BASH_VERSION$ZSH_VERSION" \
13023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13024 as_echo='print -r --'
13025 as_echo_n='print -rn --'
13026elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13027 as_echo='printf %s\n'
13028 as_echo_n='printf %s'
13029else
13030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13032 as_echo_n='/usr/ucb/echo -n'
13033 else
13034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13035 as_echo_n_body='eval
13036 arg=$1;
13037 case $arg in #(
13038 *"$as_nl"*)
13039 expr "X$arg" : "X\\(.*\\)$as_nl";
13040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13041 esac;
13042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13043 '
13044 export as_echo_n_body
13045 as_echo_n='sh -c $as_echo_n_body as_echo'
13046 fi
13047 export as_echo_body
13048 as_echo='sh -c $as_echo_body as_echo'
13049fi
13050
13051# The user is always right.
13052if test "${PATH_SEPARATOR+set}" != set; then
13053 PATH_SEPARATOR=:
13054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13056 PATH_SEPARATOR=';'
13057 }
13058fi
13059
13060
13061# IFS
13062# We need space, tab and new line, in precisely that order. Quoting is
13063# there to prevent editors from complaining about space-tab.
13064# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13065# splitting by setting IFS to empty value.)
13066IFS=" "" $as_nl"
13067
13068# Find who we are. Look in the path if we contain no directory separator.
13069as_myself=
13070case $0 in #((
13071 *[\\/]* ) as_myself=$0 ;;
13072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13078 done
13079IFS=$as_save_IFS
13080
13081 ;;
13082esac
13083# We did not find ourselves, most probably we were run as `sh COMMAND'
13084# in which case we are not to be found in the path.
13085if test "x$as_myself" = x; then
13086 as_myself=$0
13087fi
13088if test ! -f "$as_myself"; then
13089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13090 exit 1
13091fi
13092
13093# Unset variables that we do not need and which cause bugs (e.g. in
13094# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13095# suppresses any "Segmentation fault" message there. '((' could
13096# trigger a bug in pdksh 5.2.14.
13097for as_var in BASH_ENV ENV MAIL MAILPATH
13098do eval test x\${$as_var+set} = xset \
13099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13100done
13101PS1='$ '
13102PS2='> '
13103PS4='+ '
13104
13105# NLS nuisances.
13106LC_ALL=C
13107export LC_ALL
13108LANGUAGE=C
13109export LANGUAGE
13110
13111# CDPATH.
13112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13113
13114
13115# as_fn_error STATUS ERROR [LINENO LOG_FD]
13116# ----------------------------------------
13117# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13118# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13119# script with STATUS, using 1 if that was 0.
13120as_fn_error ()
13121{
13122 as_status=$1; test $as_status -eq 0 && as_status=1
13123 if test "$4"; then
13124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13126 fi
13127 $as_echo "$as_me: error: $2" >&2
13128 as_fn_exit $as_status
13129} # as_fn_error
13130
13131
13132# as_fn_set_status STATUS
13133# -----------------------
13134# Set $? to STATUS, without forking.
13135as_fn_set_status ()
13136{
13137 return $1
13138} # as_fn_set_status
13139
13140# as_fn_exit STATUS
13141# -----------------
13142# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13143as_fn_exit ()
13144{
13145 set +e
13146 as_fn_set_status $1
13147 exit $1
13148} # as_fn_exit
13149
13150# as_fn_unset VAR
13151# ---------------
13152# Portably unset VAR.
13153as_fn_unset ()
13154{
13155 { eval $1=; unset $1;}
13156}
13157as_unset=as_fn_unset
13158# as_fn_append VAR VALUE
13159# ----------------------
13160# Append the text in VALUE to the end of the definition contained in VAR. Take
13161# advantage of any shell optimizations that allow amortized linear growth over
13162# repeated appends, instead of the typical quadratic growth present in naive
13163# implementations.
13164if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13165 eval 'as_fn_append ()
13166 {
13167 eval $1+=\$2
13168 }'
13169else
13170 as_fn_append ()
13171 {
13172 eval $1=\$$1\$2
13173 }
13174fi # as_fn_append
13175
13176# as_fn_arith ARG...
13177# ------------------
13178# Perform arithmetic evaluation on the ARGs, and store the result in the
13179# global $as_val. Take advantage of shells that can avoid forks. The arguments
13180# must be portable across $(()) and expr.
13181if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13182 eval 'as_fn_arith ()
13183 {
13184 as_val=$(( $* ))
13185 }'
13186else
13187 as_fn_arith ()
13188 {
13189 as_val=`expr "$@" || test $? -eq 1`
13190 }
13191fi # as_fn_arith
13192
13193
13194if expr a : '\(a\)' >/dev/null 2>&1 &&
13195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13196 as_expr=expr
13197else
13198 as_expr=false
13199fi
13200
13201if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13202 as_basename=basename
13203else
13204 as_basename=false
13205fi
13206
13207if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13208 as_dirname=dirname
13209else
13210 as_dirname=false
13211fi
13212
13213as_me=`$as_basename -- "$0" ||
13214$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13215 X"$0" : 'X\(//\)$' \| \
13216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13217$as_echo X/"$0" |
13218 sed '/^.*\/\([^/][^/]*\)\/*$/{
13219 s//\1/
13220 q
13221 }
13222 /^X\/\(\/\/\)$/{
13223 s//\1/
13224 q
13225 }
13226 /^X\/\(\/\).*/{
13227 s//\1/
13228 q
13229 }
13230 s/.*/./; q'`
13231
13232# Avoid depending upon Character Ranges.
13233as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13234as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13235as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13236as_cr_digits='0123456789'
13237as_cr_alnum=$as_cr_Letters$as_cr_digits
13238
13239ECHO_C= ECHO_N= ECHO_T=
13240case `echo -n x` in #(((((
13241-n*)
13242 case `echo 'xy\c'` in
13243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13244 xy) ECHO_C='\c';;
13245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13246 ECHO_T=' ';;
13247 esac;;
13248*)
13249 ECHO_N='-n';;
13250esac
13251
13252rm -f conf$$ conf$$.exe conf$$.file
13253if test -d conf$$.dir; then
13254 rm -f conf$$.dir/conf$$.file
13255else
13256 rm -f conf$$.dir
13257 mkdir conf$$.dir 2>/dev/null
13258fi
13259if (echo >conf$$.file) 2>/dev/null; then
13260 if ln -s conf$$.file conf$$ 2>/dev/null; then
13261 as_ln_s='ln -s'
13262 # ... but there are two gotchas:
13263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13265 # In both cases, we have to default to `cp -p'.
13266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13267 as_ln_s='cp -p'
13268 elif ln conf$$.file conf$$ 2>/dev/null; then
13269 as_ln_s=ln
13270 else
13271 as_ln_s='cp -p'
13272 fi
13273else
13274 as_ln_s='cp -p'
13275fi
13276rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13277rmdir conf$$.dir 2>/dev/null
13278
13279
13280# as_fn_mkdir_p
13281# -------------
13282# Create "$as_dir" as a directory, including parents if necessary.
13283as_fn_mkdir_p ()
13284{
13285
13286 case $as_dir in #(
13287 -*) as_dir=./$as_dir;;
13288 esac
13289 test -d "$as_dir" || eval $as_mkdir_p || {
13290 as_dirs=
13291 while :; do
13292 case $as_dir in #(
13293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13294 *) as_qdir=$as_dir;;
13295 esac
13296 as_dirs="'$as_qdir' $as_dirs"
13297 as_dir=`$as_dirname -- "$as_dir" ||
13298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13299 X"$as_dir" : 'X\(//\)[^/]' \| \
13300 X"$as_dir" : 'X\(//\)$' \| \
13301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13302$as_echo X"$as_dir" |
13303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\/\)[^/].*/{
13308 s//\1/
13309 q
13310 }
13311 /^X\(\/\/\)$/{
13312 s//\1/
13313 q
13314 }
13315 /^X\(\/\).*/{
13316 s//\1/
13317 q
13318 }
13319 s/.*/./; q'`
13320 test -d "$as_dir" && break
13321 done
13322 test -z "$as_dirs" || eval "mkdir $as_dirs"
13323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13324
13325
13326} # as_fn_mkdir_p
13327if mkdir -p . 2>/dev/null; then
13328 as_mkdir_p='mkdir -p "$as_dir"'
13329else
13330 test -d ./-p && rmdir ./-p
13331 as_mkdir_p=false
13332fi
13333
13334if test -x / >/dev/null 2>&1; then
13335 as_test_x='test -x'
13336else
13337 if ls -dL / >/dev/null 2>&1; then
13338 as_ls_L_option=L
13339 else
13340 as_ls_L_option=
13341 fi
13342 as_test_x='
13343 eval sh -c '\''
13344 if test -d "$1"; then
13345 test -d "$1/.";
13346 else
13347 case $1 in #(
13348 -*)set "./$1";;
13349 esac;
13350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13351 ???[sx]*):;;*)false;;esac;fi
13352 '\'' sh
13353 '
13354fi
13355as_executable_p=$as_test_x
13356
13357# Sed expression to map a string onto a valid CPP name.
13358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13359
13360# Sed expression to map a string onto a valid variable name.
13361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13362
13363
13364exec 6>&1
13365## ----------------------------------- ##
13366## Main body of $CONFIG_STATUS script. ##
13367## ----------------------------------- ##
13368_ASEOF
13369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13370
13371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13372# Save the log message, to keep $0 and so on meaningful, and to
13373# report actual input values of CONFIG_FILES etc. instead of their
13374# values after options handling.
13375ac_log="
13376This file was extended by $as_me, which was
13377generated by GNU Autoconf 2.68. Invocation command line was
13378
13379 CONFIG_FILES = $CONFIG_FILES
13380 CONFIG_HEADERS = $CONFIG_HEADERS
13381 CONFIG_LINKS = $CONFIG_LINKS
13382 CONFIG_COMMANDS = $CONFIG_COMMANDS
13383 $ $0 $@
13384
13385on `(hostname || uname -n) 2>/dev/null | sed 1q`
13386"
13387
13388_ACEOF
13389
13390case $ac_config_files in *"
13391"*) set x $ac_config_files; shift; ac_config_files=$*;;
13392esac
13393
13394case $ac_config_headers in *"
13395"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13396esac
13397
13398
13399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400# Files that config.status was made for.
13401config_files="$ac_config_files"
13402config_headers="$ac_config_headers"
13403config_commands="$ac_config_commands"
13404
13405_ACEOF
13406
13407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408ac_cs_usage="\
13409\`$as_me' instantiates files and other configuration actions
13410from templates according to the current configuration. Unless the files
13411and actions are specified as TAGs, all are instantiated by default.
13412
13413Usage: $0 [OPTION]... [TAG]...
13414
13415 -h, --help print this help, then exit
13416 -V, --version print version number and configuration settings, then exit
13417 --config print configuration, then exit
13418 -q, --quiet, --silent
13419 do not print progress messages
13420 -d, --debug don't remove temporary files
13421 --recheck update $as_me by reconfiguring in the same conditions
13422 --file=FILE[:TEMPLATE]
13423 instantiate the configuration file FILE
13424 --header=FILE[:TEMPLATE]
13425 instantiate the configuration header FILE
13426
13427Configuration files:
13428$config_files
13429
13430Configuration headers:
13431$config_headers
13432
13433Configuration commands:
13434$config_commands
13435
13436Report bugs to the package provider."
13437
13438_ACEOF
13439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13441ac_cs_version="\\
13442config.status
13443configured by $0, generated by GNU Autoconf 2.68,
13444 with options \\"\$ac_cs_config\\"
13445
13446Copyright (C) 2010 Free Software Foundation, Inc.
13447This config.status script is free software; the Free Software Foundation
13448gives unlimited permission to copy, distribute and modify it."
13449
13450ac_pwd='$ac_pwd'
13451srcdir='$srcdir'
13452INSTALL='$INSTALL'
13453MKDIR_P='$MKDIR_P'
13454AWK='$AWK'
13455test -n "\$AWK" || AWK=awk
13456_ACEOF
13457
13458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459# The default lists apply if the user does not specify any file.
13460ac_need_defaults=:
13461while test $# != 0
13462do
13463 case $1 in
13464 --*=?*)
13465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13467 ac_shift=:
13468 ;;
13469 --*=)
13470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13471 ac_optarg=
13472 ac_shift=:
13473 ;;
13474 *)
13475 ac_option=$1
13476 ac_optarg=$2
13477 ac_shift=shift
13478 ;;
13479 esac
13480
13481 case $ac_option in
13482 # Handling of the options.
13483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13484 ac_cs_recheck=: ;;
13485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13486 $as_echo "$ac_cs_version"; exit ;;
13487 --config | --confi | --conf | --con | --co | --c )
13488 $as_echo "$ac_cs_config"; exit ;;
13489 --debug | --debu | --deb | --de | --d | -d )
13490 debug=: ;;
13491 --file | --fil | --fi | --f )
13492 $ac_shift
13493 case $ac_optarg in
13494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13495 '') as_fn_error $? "missing file argument" ;;
13496 esac
13497 as_fn_append CONFIG_FILES " '$ac_optarg'"
13498 ac_need_defaults=false;;
13499 --header | --heade | --head | --hea )
13500 $ac_shift
13501 case $ac_optarg in
13502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13503 esac
13504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13505 ac_need_defaults=false;;
13506 --he | --h)
13507 # Conflict between --help and --header
13508 as_fn_error $? "ambiguous option: \`$1'
13509Try \`$0 --help' for more information.";;
13510 --help | --hel | -h )
13511 $as_echo "$ac_cs_usage"; exit ;;
13512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13514 ac_cs_silent=: ;;
13515
13516 # This is an error.
13517 -*) as_fn_error $? "unrecognized option: \`$1'
13518Try \`$0 --help' for more information." ;;
13519
13520 *) as_fn_append ac_config_targets " $1"
13521 ac_need_defaults=false ;;
13522
13523 esac
13524 shift
13525done
13526
13527ac_configure_extra_args=
13528
13529if $ac_cs_silent; then
13530 exec 6>/dev/null
13531 ac_configure_extra_args="$ac_configure_extra_args --silent"
13532fi
13533
13534_ACEOF
13535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536if \$ac_cs_recheck; then
13537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13538 shift
13539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13540 CONFIG_SHELL='$SHELL'
13541 export CONFIG_SHELL
13542 exec "\$@"
13543fi
13544
13545_ACEOF
13546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547exec 5>>config.log
13548{
13549 echo
13550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13551## Running $as_me. ##
13552_ASBOX
13553 $as_echo "$ac_log"
13554} >&5
13555
13556_ACEOF
13557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558#
13559# INIT-COMMANDS
13560#
13561AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13562
13563
13564# The HP-UX ksh and POSIX shell print the target directory to stdout
13565# if CDPATH is set.
13566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13567
13568sed_quote_subst='$sed_quote_subst'
13569double_quote_subst='$double_quote_subst'
13570delay_variable_subst='$delay_variable_subst'
13571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13577SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13578ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13579PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13580host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13581host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13582host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13583build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13584build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13585build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13586SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13587Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13588GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13589EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13590FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13591LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13592NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13593LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13594max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13595ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13596exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13597lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13598lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13599lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13600lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13601lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13602reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13603reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13604OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13605deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13606file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13607file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13608want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13609DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13612AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13613archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13614STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13615RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13616old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13617old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13618old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13619lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13620CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13621CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13622compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13623GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13624lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13625lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13626lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13627lt_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"`'
13628nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13629lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13630objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13631MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13632lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13633lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13634lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13635lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13636lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13637need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13638MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13639DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13640NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13641LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13642OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13643OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13644libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13645shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13646extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13647archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13648enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13649export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13650whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13651compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13652old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13653old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13654archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13655archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13656module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13657module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13658with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13659allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13660no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13661hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13662hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13663hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13664hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13665hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13666hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13667hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13668inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13669link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13670always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13671export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13672exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13673include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13674prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13675postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13676file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13677variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13678need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13679need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13680version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13681runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13682shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13683shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13684libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13685library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13686soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13687install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13688postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13689postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13690finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13691finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13692hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13693sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13694sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13695hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13696enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13697enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13698enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13699old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13700striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13701
13702LTCC='$LTCC'
13703LTCFLAGS='$LTCFLAGS'
13704compiler='$compiler_DEFAULT'
13705
13706# A function that is used when there is no print builtin or printf.
13707func_fallback_echo ()
13708{
13709 eval 'cat <<_LTECHO_EOF
13710\$1
13711_LTECHO_EOF'
13712}
13713
13714# Quote evaled strings.
13715for var in SHELL \
13716ECHO \
13717PATH_SEPARATOR \
13718SED \
13719GREP \
13720EGREP \
13721FGREP \
13722LD \
13723NM \
13724LN_S \
13725lt_SP2NL \
13726lt_NL2SP \
13727reload_flag \
13728OBJDUMP \
13729deplibs_check_method \
13730file_magic_cmd \
13731file_magic_glob \
13732want_nocaseglob \
13733DLLTOOL \
13734sharedlib_from_linklib_cmd \
13735AR \
13736AR_FLAGS \
13737archiver_list_spec \
13738STRIP \
13739RANLIB \
13740CC \
13741CFLAGS \
13742compiler \
13743lt_cv_sys_global_symbol_pipe \
13744lt_cv_sys_global_symbol_to_cdecl \
13745lt_cv_sys_global_symbol_to_c_name_address \
13746lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13747nm_file_list_spec \
13748lt_prog_compiler_no_builtin_flag \
13749lt_prog_compiler_pic \
13750lt_prog_compiler_wl \
13751lt_prog_compiler_static \
13752lt_cv_prog_compiler_c_o \
13753need_locks \
13754MANIFEST_TOOL \
13755DSYMUTIL \
13756NMEDIT \
13757LIPO \
13758OTOOL \
13759OTOOL64 \
13760shrext_cmds \
13761export_dynamic_flag_spec \
13762whole_archive_flag_spec \
13763compiler_needs_object \
13764with_gnu_ld \
13765allow_undefined_flag \
13766no_undefined_flag \
13767hardcode_libdir_flag_spec \
13768hardcode_libdir_separator \
13769exclude_expsyms \
13770include_expsyms \
13771file_list_spec \
13772variables_saved_for_relink \
13773libname_spec \
13774library_names_spec \
13775soname_spec \
13776install_override_mode \
13777finish_eval \
13778old_striplib \
13779striplib; do
13780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13781 *[\\\\\\\`\\"\\\$]*)
13782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13783 ;;
13784 *)
13785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13786 ;;
13787 esac
13788done
13789
13790# Double-quote double-evaled strings.
13791for var in reload_cmds \
13792old_postinstall_cmds \
13793old_postuninstall_cmds \
13794old_archive_cmds \
13795extract_expsyms_cmds \
13796old_archive_from_new_cmds \
13797old_archive_from_expsyms_cmds \
13798archive_cmds \
13799archive_expsym_cmds \
13800module_cmds \
13801module_expsym_cmds \
13802export_symbols_cmds \
13803prelink_cmds \
13804postlink_cmds \
13805postinstall_cmds \
13806postuninstall_cmds \
13807finish_cmds \
13808sys_lib_search_path_spec \
13809sys_lib_dlsearch_path_spec; do
13810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13811 *[\\\\\\\`\\"\\\$]*)
13812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13813 ;;
13814 *)
13815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13816 ;;
13817 esac
13818done
13819
13820ac_aux_dir='$ac_aux_dir'
13821xsi_shell='$xsi_shell'
13822lt_shell_append='$lt_shell_append'
13823
13824# See if we are running on zsh, and set the options which allow our
13825# commands through without removal of \ escapes INIT.
13826if test -n "\${ZSH_VERSION+set}" ; then
13827 setopt NO_GLOB_SUBST
13828fi
13829
13830
13831 PACKAGE='$PACKAGE'
13832 VERSION='$VERSION'
13833 TIMESTAMP='$TIMESTAMP'
13834 RM='$RM'
13835 ofile='$ofile'
13836
13837
13838
13839
13840_ACEOF
13841
13842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843
13844# Handling of arguments.
13845for ac_config_target in $ac_config_targets
13846do
13847 case $ac_config_target in
13848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13852 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
13853 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
13854 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13855 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13856
13857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13858 esac
13859done
13860
13861
13862# If the user did not use the arguments to specify the items to instantiate,
13863# then the envvar interface is used. Set only those that are not.
13864# We use the long form for the default assignment because of an extremely
13865# bizarre bug on SunOS 4.1.3.
13866if $ac_need_defaults; then
13867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13870fi
13871
13872# Have a temporary directory for convenience. Make it in the build tree
13873# simply because there is no reason against having it here, and in addition,
13874# creating and moving files from /tmp can sometimes cause problems.
13875# Hook for its removal unless debugging.
13876# Note that there is a small window in which the directory will not be cleaned:
13877# after its creation but before its name has been assigned to `$tmp'.
13878$debug ||
13879{
13880 tmp= ac_tmp=
13881 trap 'exit_status=$?
13882 : "${ac_tmp:=$tmp}"
13883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13884' 0
13885 trap 'as_fn_exit 1' 1 2 13 15
13886}
13887# Create a (secure) tmp directory for tmp files.
13888
13889{
13890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13891 test -d "$tmp"
13892} ||
13893{
13894 tmp=./conf$$-$RANDOM
13895 (umask 077 && mkdir "$tmp")
13896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13897ac_tmp=$tmp
13898
13899# Set up the scripts for CONFIG_FILES section.
13900# No need to generate them if there are no CONFIG_FILES.
13901# This happens for instance with `./config.status config.h'.
13902if test -n "$CONFIG_FILES"; then
13903
13904
13905ac_cr=`echo X | tr X '\015'`
13906# On cygwin, bash can eat \r inside `` if the user requested igncr.
13907# But we know of no other shell where ac_cr would be empty at this
13908# point, so we can use a bashism as a fallback.
13909if test "x$ac_cr" = x; then
13910 eval ac_cr=\$\'\\r\'
13911fi
13912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13914 ac_cs_awk_cr='\\r'
13915else
13916 ac_cs_awk_cr=$ac_cr
13917fi
13918
13919echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13920_ACEOF
13921
13922
13923{
13924 echo "cat >conf$$subs.awk <<_ACEOF" &&
13925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13926 echo "_ACEOF"
13927} >conf$$subs.sh ||
13928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13930ac_delim='%!_!# '
13931for ac_last_try in false false false false false :; do
13932 . ./conf$$subs.sh ||
13933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13934
13935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13936 if test $ac_delim_n = $ac_delim_num; then
13937 break
13938 elif $ac_last_try; then
13939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13940 else
13941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13942 fi
13943done
13944rm -f conf$$subs.sh
13945
13946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13948_ACEOF
13949sed -n '
13950h
13951s/^/S["/; s/!.*/"]=/
13952p
13953g
13954s/^[^!]*!//
13955:repl
13956t repl
13957s/'"$ac_delim"'$//
13958t delim
13959:nl
13960h
13961s/\(.\{148\}\)..*/\1/
13962t more1
13963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13964p
13965n
13966b repl
13967:more1
13968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13969p
13970g
13971s/.\{148\}//
13972t nl
13973:delim
13974h
13975s/\(.\{148\}\)..*/\1/
13976t more2
13977s/["\\]/\\&/g; s/^/"/; s/$/"/
13978p
13979b
13980:more2
13981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13982p
13983g
13984s/.\{148\}//
13985t delim
13986' <conf$$subs.awk | sed '
13987/^[^""]/{
13988 N
13989 s/\n//
13990}
13991' >>$CONFIG_STATUS || ac_write_fail=1
13992rm -f conf$$subs.awk
13993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994_ACAWK
13995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13996 for (key in S) S_is_set[key] = 1
13997 FS = ""
13998
13999}
14000{
14001 line = $ 0
14002 nfields = split(line, field, "@")
14003 substed = 0
14004 len = length(field[1])
14005 for (i = 2; i < nfields; i++) {
14006 key = field[i]
14007 keylen = length(key)
14008 if (S_is_set[key]) {
14009 value = S[key]
14010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14011 len += length(value) + length(field[++i])
14012 substed = 1
14013 } else
14014 len += 1 + keylen
14015 }
14016
14017 print line
14018}
14019
14020_ACAWK
14021_ACEOF
14022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14025else
14026 cat
14027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14029_ACEOF
14030
14031# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14033# trailing colons and then remove the whole line if VPATH becomes empty
14034# (actually we leave an empty line to preserve line numbers).
14035if test "x$srcdir" = x.; then
14036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14037h
14038s///
14039s/^/:/
14040s/[ ]*$/:/
14041s/:\$(srcdir):/:/g
14042s/:\${srcdir}:/:/g
14043s/:@srcdir@:/:/g
14044s/^:*//
14045s/:*$//
14046x
14047s/\(=[ ]*\).*/\1/
14048G
14049s/\n//
14050s/^[^=]*=[ ]*$//
14051}'
14052fi
14053
14054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055fi # test -n "$CONFIG_FILES"
14056
14057# Set up the scripts for CONFIG_HEADERS section.
14058# No need to generate them if there are no CONFIG_HEADERS.
14059# This happens for instance with `./config.status Makefile'.
14060if test -n "$CONFIG_HEADERS"; then
14061cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14062BEGIN {
14063_ACEOF
14064
14065# Transform confdefs.h into an awk script `defines.awk', embedded as
14066# here-document in config.status, that substitutes the proper values into
14067# config.h.in to produce config.h.
14068
14069# Create a delimiter string that does not exist in confdefs.h, to ease
14070# handling of long lines.
14071ac_delim='%!_!# '
14072for ac_last_try in false false :; do
14073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14074 if test -z "$ac_tt"; then
14075 break
14076 elif $ac_last_try; then
14077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14078 else
14079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14080 fi
14081done
14082
14083# For the awk script, D is an array of macro values keyed by name,
14084# likewise P contains macro parameters if any. Preserve backslash
14085# newline sequences.
14086
14087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14088sed -n '
14089s/.\{148\}/&'"$ac_delim"'/g
14090t rset
14091:rset
14092s/^[ ]*#[ ]*define[ ][ ]*/ /
14093t def
14094d
14095:def
14096s/\\$//
14097t bsnl
14098s/["\\]/\\&/g
14099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14100D["\1"]=" \3"/p
14101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14102d
14103:bsnl
14104s/["\\]/\\&/g
14105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14106D["\1"]=" \3\\\\\\n"\\/p
14107t cont
14108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14109t cont
14110d
14111:cont
14112n
14113s/.\{148\}/&'"$ac_delim"'/g
14114t clear
14115:clear
14116s/\\$//
14117t bsnlc
14118s/["\\]/\\&/g; s/^/"/; s/$/"/p
14119d
14120:bsnlc
14121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14122b cont
14123' <confdefs.h | sed '
14124s/'"$ac_delim"'/"\\\
14125"/g' >>$CONFIG_STATUS || ac_write_fail=1
14126
14127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 for (key in D) D_is_set[key] = 1
14129 FS = ""
14130}
14131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14132 line = \$ 0
14133 split(line, arg, " ")
14134 if (arg[1] == "#") {
14135 defundef = arg[2]
14136 mac1 = arg[3]
14137 } else {
14138 defundef = substr(arg[1], 2)
14139 mac1 = arg[2]
14140 }
14141 split(mac1, mac2, "(") #)
14142 macro = mac2[1]
14143 prefix = substr(line, 1, index(line, defundef) - 1)
14144 if (D_is_set[macro]) {
14145 # Preserve the white space surrounding the "#".
14146 print prefix "define", macro P[macro] D[macro]
14147 next
14148 } else {
14149 # Replace #undef with comments. This is necessary, for example,
14150 # in the case of _POSIX_SOURCE, which is predefined and required
14151 # on some systems where configure will not decide to define it.
14152 if (defundef == "undef") {
14153 print "/*", prefix defundef, macro, "*/"
14154 next
14155 }
14156 }
14157}
14158{ print }
14159_ACAWK
14160_ACEOF
14161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14163fi # test -n "$CONFIG_HEADERS"
14164
14165
14166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14167shift
14168for ac_tag
14169do
14170 case $ac_tag in
14171 :[FHLC]) ac_mode=$ac_tag; continue;;
14172 esac
14173 case $ac_mode$ac_tag in
14174 :[FHL]*:*);;
14175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14176 :[FH]-) ac_tag=-:-;;
14177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14178 esac
14179 ac_save_IFS=$IFS
14180 IFS=:
14181 set x $ac_tag
14182 IFS=$ac_save_IFS
14183 shift
14184 ac_file=$1
14185 shift
14186
14187 case $ac_mode in
14188 :L) ac_source=$1;;
14189 :[FH])
14190 ac_file_inputs=
14191 for ac_f
14192 do
14193 case $ac_f in
14194 -) ac_f="$ac_tmp/stdin";;
14195 *) # Look for the file first in the build tree, then in the source tree
14196 # (if the path is not absolute). The absolute path cannot be DOS-style,
14197 # because $ac_f cannot contain `:'.
14198 test -f "$ac_f" ||
14199 case $ac_f in
14200 [\\/$]*) false;;
14201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14202 esac ||
14203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14204 esac
14205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14206 as_fn_append ac_file_inputs " '$ac_f'"
14207 done
14208
14209 # Let's still pretend it is `configure' which instantiates (i.e., don't
14210 # use $as_me), people would be surprised to read:
14211 # /* config.h. Generated by config.status. */
14212 configure_input='Generated from '`
14213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14214 `' by configure.'
14215 if test x"$ac_file" != x-; then
14216 configure_input="$ac_file. $configure_input"
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14218$as_echo "$as_me: creating $ac_file" >&6;}
14219 fi
14220 # Neutralize special characters interpreted by sed in replacement strings.
14221 case $configure_input in #(
14222 *\&* | *\|* | *\\* )
14223 ac_sed_conf_input=`$as_echo "$configure_input" |
14224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14225 *) ac_sed_conf_input=$configure_input;;
14226 esac
14227
14228 case $ac_tag in
14229 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14231 esac
14232 ;;
14233 esac
14234
14235 ac_dir=`$as_dirname -- "$ac_file" ||
14236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14237 X"$ac_file" : 'X\(//\)[^/]' \| \
14238 X"$ac_file" : 'X\(//\)$' \| \
14239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14240$as_echo X"$ac_file" |
14241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14242 s//\1/
14243 q
14244 }
14245 /^X\(\/\/\)[^/].*/{
14246 s//\1/
14247 q
14248 }
14249 /^X\(\/\/\)$/{
14250 s//\1/
14251 q
14252 }
14253 /^X\(\/\).*/{
14254 s//\1/
14255 q
14256 }
14257 s/.*/./; q'`
14258 as_dir="$ac_dir"; as_fn_mkdir_p
14259 ac_builddir=.
14260
14261case "$ac_dir" in
14262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14263*)
14264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14265 # A ".." for each directory in $ac_dir_suffix.
14266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14267 case $ac_top_builddir_sub in
14268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14270 esac ;;
14271esac
14272ac_abs_top_builddir=$ac_pwd
14273ac_abs_builddir=$ac_pwd$ac_dir_suffix
14274# for backward compatibility:
14275ac_top_builddir=$ac_top_build_prefix
14276
14277case $srcdir in
14278 .) # We are building in place.
14279 ac_srcdir=.
14280 ac_top_srcdir=$ac_top_builddir_sub
14281 ac_abs_top_srcdir=$ac_pwd ;;
14282 [\\/]* | ?:[\\/]* ) # Absolute name.
14283 ac_srcdir=$srcdir$ac_dir_suffix;
14284 ac_top_srcdir=$srcdir
14285 ac_abs_top_srcdir=$srcdir ;;
14286 *) # Relative name.
14287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14288 ac_top_srcdir=$ac_top_build_prefix$srcdir
14289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14290esac
14291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14292
14293
14294 case $ac_mode in
14295 :F)
14296 #
14297 # CONFIG_FILE
14298 #
14299
14300 case $INSTALL in
14301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14303 esac
14304 ac_MKDIR_P=$MKDIR_P
14305 case $MKDIR_P in
14306 [\\/$]* | ?:[\\/]* ) ;;
14307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14308 esac
14309_ACEOF
14310
14311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14312# If the template does not know about datarootdir, expand it.
14313# FIXME: This hack should be removed a few years after 2.60.
14314ac_datarootdir_hack=; ac_datarootdir_seen=
14315ac_sed_dataroot='
14316/datarootdir/ {
14317 p
14318 q
14319}
14320/@datadir@/p
14321/@docdir@/p
14322/@infodir@/p
14323/@localedir@/p
14324/@mandir@/p'
14325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14326*datarootdir*) ac_datarootdir_seen=yes;;
14327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14330_ACEOF
14331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14332 ac_datarootdir_hack='
14333 s&@datadir@&$datadir&g
14334 s&@docdir@&$docdir&g
14335 s&@infodir@&$infodir&g
14336 s&@localedir@&$localedir&g
14337 s&@mandir@&$mandir&g
14338 s&\\\${datarootdir}&$datarootdir&g' ;;
14339esac
14340_ACEOF
14341
14342# Neutralize VPATH when `$srcdir' = `.'.
14343# Shell code in configure.ac might set extrasub.
14344# FIXME: do we really want to maintain this feature?
14345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14346ac_sed_extra="$ac_vpsub
14347$extrasub
14348_ACEOF
14349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350:t
14351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14352s|@configure_input@|$ac_sed_conf_input|;t t
14353s&@top_builddir@&$ac_top_builddir_sub&;t t
14354s&@top_build_prefix@&$ac_top_build_prefix&;t t
14355s&@srcdir@&$ac_srcdir&;t t
14356s&@abs_srcdir@&$ac_abs_srcdir&;t t
14357s&@top_srcdir@&$ac_top_srcdir&;t t
14358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14359s&@builddir@&$ac_builddir&;t t
14360s&@abs_builddir@&$ac_abs_builddir&;t t
14361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14362s&@INSTALL@&$ac_INSTALL&;t t
14363s&@MKDIR_P@&$ac_MKDIR_P&;t t
14364$ac_datarootdir_hack
14365"
14366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14368
14369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14372 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14374which seems to be undefined. Please make sure it is defined" >&5
14375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14376which seems to be undefined. Please make sure it is defined" >&2;}
14377
14378 rm -f "$ac_tmp/stdin"
14379 case $ac_file in
14380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14382 esac \
14383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14384 ;;
14385 :H)
14386 #
14387 # CONFIG_HEADER
14388 #
14389 if test x"$ac_file" != x-; then
14390 {
14391 $as_echo "/* $configure_input */" \
14392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14393 } >"$ac_tmp/config.h" \
14394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14397$as_echo "$as_me: $ac_file is unchanged" >&6;}
14398 else
14399 rm -f "$ac_file"
14400 mv "$ac_tmp/config.h" "$ac_file" \
14401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14402 fi
14403 else
14404 $as_echo "/* $configure_input */" \
14405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14406 || as_fn_error $? "could not create -" "$LINENO" 5
14407 fi
14408# Compute "$ac_file"'s index in $config_headers.
14409_am_arg="$ac_file"
14410_am_stamp_count=1
14411for _am_header in $config_headers :; do
14412 case $_am_header in
14413 $_am_arg | $_am_arg:* )
14414 break ;;
14415 * )
14416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14417 esac
14418done
14419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14421 X"$_am_arg" : 'X\(//\)[^/]' \| \
14422 X"$_am_arg" : 'X\(//\)$' \| \
14423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14424$as_echo X"$_am_arg" |
14425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14426 s//\1/
14427 q
14428 }
14429 /^X\(\/\/\)[^/].*/{
14430 s//\1/
14431 q
14432 }
14433 /^X\(\/\/\)$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\(\/\).*/{
14438 s//\1/
14439 q
14440 }
14441 s/.*/./; q'`/stamp-h$_am_stamp_count
14442 ;;
14443
14444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14445$as_echo "$as_me: executing $ac_file commands" >&6;}
14446 ;;
14447 esac
14448
14449
14450 case $ac_file$ac_mode in
14451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14452 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14453 # are listed without --file. Let's play safe and only enable the eval
14454 # if we detect the quoting.
14455 case $CONFIG_FILES in
14456 *\'*) eval set x "$CONFIG_FILES" ;;
14457 *) set x $CONFIG_FILES ;;
14458 esac
14459 shift
14460 for mf
14461 do
14462 # Strip MF so we end up with the name of the file.
14463 mf=`echo "$mf" | sed -e 's/:.*$//'`
14464 # Check whether this is an Automake generated Makefile or not.
14465 # We used to match only the files named `Makefile.in', but
14466 # some people rename them; so instead we look at the file content.
14467 # Grep'ing the first line is not enough: some people post-process
14468 # each Makefile.in and add a new line on top of each file to say so.
14469 # Grep'ing the whole file is not good either: AIX grep has a line
14470 # limit of 2048, but all sed's we know have understand at least 4000.
14471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14472 dirpart=`$as_dirname -- "$mf" ||
14473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14474 X"$mf" : 'X\(//\)[^/]' \| \
14475 X"$mf" : 'X\(//\)$' \| \
14476 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14477$as_echo X"$mf" |
14478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14479 s//\1/
14480 q
14481 }
14482 /^X\(\/\/\)[^/].*/{
14483 s//\1/
14484 q
14485 }
14486 /^X\(\/\/\)$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\(\/\).*/{
14491 s//\1/
14492 q
14493 }
14494 s/.*/./; q'`
14495 else
14496 continue
14497 fi
14498 # Extract the definition of DEPDIR, am__include, and am__quote
14499 # from the Makefile without running `make'.
14500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14501 test -z "$DEPDIR" && continue
14502 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14503 test -z "am__include" && continue
14504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14505 # When using ansi2knr, U may be empty or an underscore; expand it
14506 U=`sed -n 's/^U = //p' < "$mf"`
14507 # Find all dependency output files, they are included files with
14508 # $(DEPDIR) in their names. We invoke sed twice because it is the
14509 # simplest approach to changing $(DEPDIR) to its actual value in the
14510 # expansion.
14511 for file in `sed -n "
14512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14514 # Make sure the directory exists.
14515 test -f "$dirpart/$file" && continue
14516 fdir=`$as_dirname -- "$file" ||
14517$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14518 X"$file" : 'X\(//\)[^/]' \| \
14519 X"$file" : 'X\(//\)$' \| \
14520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14521$as_echo X"$file" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)[^/].*/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\).*/{
14535 s//\1/
14536 q
14537 }
14538 s/.*/./; q'`
14539 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14540 # echo "creating $dirpart/$file"
14541 echo '# dummy' > "$dirpart/$file"
14542 done
14543 done
14544}
14545 ;;
14546 "libtool":C)
14547
14548 # See if we are running on zsh, and set the options which allow our
14549 # commands through without removal of \ escapes.
14550 if test -n "${ZSH_VERSION+set}" ; then
14551 setopt NO_GLOB_SUBST
14552 fi
14553
14554 cfgfile="${ofile}T"
14555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14556 $RM "$cfgfile"
14557
14558 cat <<_LT_EOF >> "$cfgfile"
14559#! $SHELL
14560
14561# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14562# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14564# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14565#
14566# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14567# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14568# Foundation, Inc.
14569# Written by Gordon Matzigkeit, 1996
14570#
14571# This file is part of GNU Libtool.
14572#
14573# GNU Libtool is free software; you can redistribute it and/or
14574# modify it under the terms of the GNU General Public License as
14575# published by the Free Software Foundation; either version 2 of
14576# the License, or (at your option) any later version.
14577#
14578# As a special exception to the GNU General Public License,
14579# if you distribute this file as part of a program or library that
14580# is built using GNU Libtool, you may include this file under the
14581# same distribution terms that you use for the rest of that program.
14582#
14583# GNU Libtool is distributed in the hope that it will be useful,
14584# but WITHOUT ANY WARRANTY; without even the implied warranty of
14585# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14586# GNU General Public License for more details.
14587#
14588# You should have received a copy of the GNU General Public License
14589# along with GNU Libtool; see the file COPYING. If not, a copy
14590# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14591# obtained by writing to the Free Software Foundation, Inc.,
14592# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14593
14594
14595# The names of the tagged configurations supported by this script.
14596available_tags=""
14597
14598# ### BEGIN LIBTOOL CONFIG
14599
14600# Which release of libtool.m4 was used?
14601macro_version=$macro_version
14602macro_revision=$macro_revision
14603
14604# Whether or not to build shared libraries.
14605build_libtool_libs=$enable_shared
14606
14607# Whether or not to build static libraries.
14608build_old_libs=$enable_static
14609
14610# What type of objects to build.
14611pic_mode=$pic_mode
14612
14613# Whether or not to optimize for fast installation.
14614fast_install=$enable_fast_install
14615
14616# Shell to use when invoking shell scripts.
14617SHELL=$lt_SHELL
14618
14619# An echo program that protects backslashes.
14620ECHO=$lt_ECHO
14621
14622# The PATH separator for the build system.
14623PATH_SEPARATOR=$lt_PATH_SEPARATOR
14624
14625# The host system.
14626host_alias=$host_alias
14627host=$host
14628host_os=$host_os
14629
14630# The build system.
14631build_alias=$build_alias
14632build=$build
14633build_os=$build_os
14634
14635# A sed program that does not truncate output.
14636SED=$lt_SED
14637
14638# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14639Xsed="\$SED -e 1s/^X//"
14640
14641# A grep program that handles long lines.
14642GREP=$lt_GREP
14643
14644# An ERE matcher.
14645EGREP=$lt_EGREP
14646
14647# A literal string matcher.
14648FGREP=$lt_FGREP
14649
14650# A BSD- or MS-compatible name lister.
14651NM=$lt_NM
14652
14653# Whether we need soft or hard links.
14654LN_S=$lt_LN_S
14655
14656# What is the maximum length of a command?
14657max_cmd_len=$max_cmd_len
14658
14659# Object file suffix (normally "o").
14660objext=$ac_objext
14661
14662# Executable file suffix (normally "").
14663exeext=$exeext
14664
14665# whether the shell understands "unset".
14666lt_unset=$lt_unset
14667
14668# turn spaces into newlines.
14669SP2NL=$lt_lt_SP2NL
14670
14671# turn newlines into spaces.
14672NL2SP=$lt_lt_NL2SP
14673
14674# convert \$build file names to \$host format.
14675to_host_file_cmd=$lt_cv_to_host_file_cmd
14676
14677# convert \$build files to toolchain format.
14678to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14679
14680# An object symbol dumper.
14681OBJDUMP=$lt_OBJDUMP
14682
14683# Method to check whether dependent libraries are shared objects.
14684deplibs_check_method=$lt_deplibs_check_method
14685
14686# Command to use when deplibs_check_method = "file_magic".
14687file_magic_cmd=$lt_file_magic_cmd
14688
14689# How to find potential files when deplibs_check_method = "file_magic".
14690file_magic_glob=$lt_file_magic_glob
14691
14692# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14693want_nocaseglob=$lt_want_nocaseglob
14694
14695# DLL creation program.
14696DLLTOOL=$lt_DLLTOOL
14697
14698# Command to associate shared and link libraries.
14699sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14700
14701# The archiver.
14702AR=$lt_AR
14703
14704# Flags to create an archive.
14705AR_FLAGS=$lt_AR_FLAGS
14706
14707# How to feed a file listing to the archiver.
14708archiver_list_spec=$lt_archiver_list_spec
14709
14710# A symbol stripping program.
14711STRIP=$lt_STRIP
14712
14713# Commands used to install an old-style archive.
14714RANLIB=$lt_RANLIB
14715old_postinstall_cmds=$lt_old_postinstall_cmds
14716old_postuninstall_cmds=$lt_old_postuninstall_cmds
14717
14718# Whether to use a lock for old archive extraction.
14719lock_old_archive_extraction=$lock_old_archive_extraction
14720
14721# A C compiler.
14722LTCC=$lt_CC
14723
14724# LTCC compiler flags.
14725LTCFLAGS=$lt_CFLAGS
14726
14727# Take the output of nm and produce a listing of raw symbols and C names.
14728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14729
14730# Transform the output of nm in a proper C declaration.
14731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14732
14733# Transform the output of nm in a C name address pair.
14734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14735
14736# Transform the output of nm in a C name address pair when lib prefix is needed.
14737global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14738
14739# Specify filename containing input files for \$NM.
14740nm_file_list_spec=$lt_nm_file_list_spec
14741
14742# The root where to search for dependent libraries,and in which our libraries should be installed.
14743lt_sysroot=$lt_sysroot
14744
14745# The name of the directory that contains temporary libtool files.
14746objdir=$objdir
14747
14748# Used to examine libraries when file_magic_cmd begins with "file".
14749MAGIC_CMD=$MAGIC_CMD
14750
14751# Must we lock files when doing compilation?
14752need_locks=$lt_need_locks
14753
14754# Manifest tool.
14755MANIFEST_TOOL=$lt_MANIFEST_TOOL
14756
14757# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14758DSYMUTIL=$lt_DSYMUTIL
14759
14760# Tool to change global to local symbols on Mac OS X.
14761NMEDIT=$lt_NMEDIT
14762
14763# Tool to manipulate fat objects and archives on Mac OS X.
14764LIPO=$lt_LIPO
14765
14766# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14767OTOOL=$lt_OTOOL
14768
14769# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14770OTOOL64=$lt_OTOOL64
14771
14772# Old archive suffix (normally "a").
14773libext=$libext
14774
14775# Shared library suffix (normally ".so").
14776shrext_cmds=$lt_shrext_cmds
14777
14778# The commands to extract the exported symbol list from a shared archive.
14779extract_expsyms_cmds=$lt_extract_expsyms_cmds
14780
14781# Variables whose values should be saved in libtool wrapper scripts and
14782# restored at link time.
14783variables_saved_for_relink=$lt_variables_saved_for_relink
14784
14785# Do we need the "lib" prefix for modules?
14786need_lib_prefix=$need_lib_prefix
14787
14788# Do we need a version for libraries?
14789need_version=$need_version
14790
14791# Library versioning type.
14792version_type=$version_type
14793
14794# Shared library runtime path variable.
14795runpath_var=$runpath_var
14796
14797# Shared library path variable.
14798shlibpath_var=$shlibpath_var
14799
14800# Is shlibpath searched before the hard-coded library search path?
14801shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14802
14803# Format of library name prefix.
14804libname_spec=$lt_libname_spec
14805
14806# List of archive names. First name is the real one, the rest are links.
14807# The last name is the one that the linker finds with -lNAME
14808library_names_spec=$lt_library_names_spec
14809
14810# The coded name of the library, if different from the real name.
14811soname_spec=$lt_soname_spec
14812
14813# Permission mode override for installation of shared libraries.
14814install_override_mode=$lt_install_override_mode
14815
14816# Command to use after installation of a shared archive.
14817postinstall_cmds=$lt_postinstall_cmds
14818
14819# Command to use after uninstallation of a shared archive.
14820postuninstall_cmds=$lt_postuninstall_cmds
14821
14822# Commands used to finish a libtool library installation in a directory.
14823finish_cmds=$lt_finish_cmds
14824
14825# As "finish_cmds", except a single script fragment to be evaled but
14826# not shown.
14827finish_eval=$lt_finish_eval
14828
14829# Whether we should hardcode library paths into libraries.
14830hardcode_into_libs=$hardcode_into_libs
14831
14832# Compile-time system search path for libraries.
14833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14834
14835# Run-time system search path for libraries.
14836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14837
14838# Whether dlopen is supported.
14839dlopen_support=$enable_dlopen
14840
14841# Whether dlopen of programs is supported.
14842dlopen_self=$enable_dlopen_self
14843
14844# Whether dlopen of statically linked programs is supported.
14845dlopen_self_static=$enable_dlopen_self_static
14846
14847# Commands to strip libraries.
14848old_striplib=$lt_old_striplib
14849striplib=$lt_striplib
14850
14851
14852# The linker used to build libraries.
14853LD=$lt_LD
14854
14855# How to create reloadable object files.
14856reload_flag=$lt_reload_flag
14857reload_cmds=$lt_reload_cmds
14858
14859# Commands used to build an old-style archive.
14860old_archive_cmds=$lt_old_archive_cmds
14861
14862# A language specific compiler.
14863CC=$lt_compiler
14864
14865# Is the compiler the GNU compiler?
14866with_gcc=$GCC
14867
14868# Compiler flag to turn off builtin functions.
14869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14870
14871# Additional compiler flags for building library objects.
14872pic_flag=$lt_lt_prog_compiler_pic
14873
14874# How to pass a linker flag through the compiler.
14875wl=$lt_lt_prog_compiler_wl
14876
14877# Compiler flag to prevent dynamic linking.
14878link_static_flag=$lt_lt_prog_compiler_static
14879
14880# Does compiler simultaneously support -c and -o options?
14881compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14882
14883# Whether or not to add -lc for building shared libraries.
14884build_libtool_need_lc=$archive_cmds_need_lc
14885
14886# Whether or not to disallow shared libs when runtime libs are static.
14887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14888
14889# Compiler flag to allow reflexive dlopens.
14890export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14891
14892# Compiler flag to generate shared objects directly from archives.
14893whole_archive_flag_spec=$lt_whole_archive_flag_spec
14894
14895# Whether the compiler copes with passing no objects directly.
14896compiler_needs_object=$lt_compiler_needs_object
14897
14898# Create an old-style archive from a shared archive.
14899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14900
14901# Create a temporary old-style archive to link instead of a shared archive.
14902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14903
14904# Commands used to build a shared archive.
14905archive_cmds=$lt_archive_cmds
14906archive_expsym_cmds=$lt_archive_expsym_cmds
14907
14908# Commands used to build a loadable module if different from building
14909# a shared archive.
14910module_cmds=$lt_module_cmds
14911module_expsym_cmds=$lt_module_expsym_cmds
14912
14913# Whether we are building with GNU ld or not.
14914with_gnu_ld=$lt_with_gnu_ld
14915
14916# Flag that allows shared libraries with undefined symbols to be built.
14917allow_undefined_flag=$lt_allow_undefined_flag
14918
14919# Flag that enforces no undefined symbols.
14920no_undefined_flag=$lt_no_undefined_flag
14921
14922# Flag to hardcode \$libdir into a binary during linking.
14923# This must work even if \$libdir does not exist
14924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14925
14926# Whether we need a single "-rpath" flag with a separated argument.
14927hardcode_libdir_separator=$lt_hardcode_libdir_separator
14928
14929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14930# DIR into the resulting binary.
14931hardcode_direct=$hardcode_direct
14932
14933# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14934# DIR into the resulting binary and the resulting library dependency is
14935# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14936# library is relocated.
14937hardcode_direct_absolute=$hardcode_direct_absolute
14938
14939# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14940# into the resulting binary.
14941hardcode_minus_L=$hardcode_minus_L
14942
14943# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14944# into the resulting binary.
14945hardcode_shlibpath_var=$hardcode_shlibpath_var
14946
14947# Set to "yes" if building a shared library automatically hardcodes DIR
14948# into the library and all subsequent libraries and executables linked
14949# against it.
14950hardcode_automatic=$hardcode_automatic
14951
14952# Set to yes if linker adds runtime paths of dependent libraries
14953# to runtime path list.
14954inherit_rpath=$inherit_rpath
14955
14956# Whether libtool must link a program against all its dependency libraries.
14957link_all_deplibs=$link_all_deplibs
14958
14959# Set to "yes" if exported symbols are required.
14960always_export_symbols=$always_export_symbols
14961
14962# The commands to list exported symbols.
14963export_symbols_cmds=$lt_export_symbols_cmds
14964
14965# Symbols that should not be listed in the preloaded symbols.
14966exclude_expsyms=$lt_exclude_expsyms
14967
14968# Symbols that must always be exported.
14969include_expsyms=$lt_include_expsyms
14970
14971# Commands necessary for linking programs (against libraries) with templates.
14972prelink_cmds=$lt_prelink_cmds
14973
14974# Commands necessary for finishing linking programs.
14975postlink_cmds=$lt_postlink_cmds
14976
14977# Specify filename containing input files.
14978file_list_spec=$lt_file_list_spec
14979
14980# How to hardcode a shared library path into an executable.
14981hardcode_action=$hardcode_action
14982
14983# ### END LIBTOOL CONFIG
14984
14985_LT_EOF
14986
14987 case $host_os in
14988 aix3*)
14989 cat <<\_LT_EOF >> "$cfgfile"
14990# AIX sometimes has problems with the GCC collect2 program. For some
14991# reason, if we set the COLLECT_NAMES environment variable, the problems
14992# vanish in a puff of smoke.
14993if test "X${COLLECT_NAMES+set}" != Xset; then
14994 COLLECT_NAMES=
14995 export COLLECT_NAMES
14996fi
14997_LT_EOF
14998 ;;
14999 esac
15000
15001
15002ltmain="$ac_aux_dir/ltmain.sh"
15003
15004
15005 # We use sed instead of cat because bash on DJGPP gets confused if
15006 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15007 # text mode, it properly converts lines to CR/LF. This bash problem
15008 # is reportedly fixed, but why not run on old versions too?
15009 sed '$q' "$ltmain" >> "$cfgfile" \
15010 || (rm -f "$cfgfile"; exit 1)
15011
15012 if test x"$xsi_shell" = xyes; then
15013 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15014func_dirname ()\
15015{\
15016\ case ${1} in\
15017\ */*) func_dirname_result="${1%/*}${2}" ;;\
15018\ * ) func_dirname_result="${3}" ;;\
15019\ esac\
15020} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15021 && mv -f "$cfgfile.tmp" "$cfgfile" \
15022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15023test 0 -eq $? || _lt_function_replace_fail=:
15024
15025
15026 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15027func_basename ()\
15028{\
15029\ func_basename_result="${1##*/}"\
15030} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15031 && mv -f "$cfgfile.tmp" "$cfgfile" \
15032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15033test 0 -eq $? || _lt_function_replace_fail=:
15034
15035
15036 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15037func_dirname_and_basename ()\
15038{\
15039\ case ${1} in\
15040\ */*) func_dirname_result="${1%/*}${2}" ;;\
15041\ * ) func_dirname_result="${3}" ;;\
15042\ esac\
15043\ func_basename_result="${1##*/}"\
15044} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15045 && mv -f "$cfgfile.tmp" "$cfgfile" \
15046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15047test 0 -eq $? || _lt_function_replace_fail=:
15048
15049
15050 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15051func_stripname ()\
15052{\
15053\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15054\ # positional parameters, so assign one to ordinary parameter first.\
15055\ func_stripname_result=${3}\
15056\ func_stripname_result=${func_stripname_result#"${1}"}\
15057\ func_stripname_result=${func_stripname_result%"${2}"}\
15058} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15059 && mv -f "$cfgfile.tmp" "$cfgfile" \
15060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15061test 0 -eq $? || _lt_function_replace_fail=:
15062
15063
15064 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15065func_split_long_opt ()\
15066{\
15067\ func_split_long_opt_name=${1%%=*}\
15068\ func_split_long_opt_arg=${1#*=}\
15069} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15070 && mv -f "$cfgfile.tmp" "$cfgfile" \
15071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15072test 0 -eq $? || _lt_function_replace_fail=:
15073
15074
15075 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15076func_split_short_opt ()\
15077{\
15078\ func_split_short_opt_arg=${1#??}\
15079\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15080} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15081 && mv -f "$cfgfile.tmp" "$cfgfile" \
15082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15083test 0 -eq $? || _lt_function_replace_fail=:
15084
15085
15086 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15087func_lo2o ()\
15088{\
15089\ case ${1} in\
15090\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15091\ *) func_lo2o_result=${1} ;;\
15092\ esac\
15093} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15094 && mv -f "$cfgfile.tmp" "$cfgfile" \
15095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15096test 0 -eq $? || _lt_function_replace_fail=:
15097
15098
15099 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15100func_xform ()\
15101{\
15102 func_xform_result=${1%.*}.lo\
15103} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15104 && mv -f "$cfgfile.tmp" "$cfgfile" \
15105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15106test 0 -eq $? || _lt_function_replace_fail=:
15107
15108
15109 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15110func_arith ()\
15111{\
15112 func_arith_result=$(( $* ))\
15113} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15116test 0 -eq $? || _lt_function_replace_fail=:
15117
15118
15119 sed -e '/^func_len ()$/,/^} # func_len /c\
15120func_len ()\
15121{\
15122 func_len_result=${#1}\
15123} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15124 && mv -f "$cfgfile.tmp" "$cfgfile" \
15125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15126test 0 -eq $? || _lt_function_replace_fail=:
15127
15128fi
15129
15130if test x"$lt_shell_append" = xyes; then
15131 sed -e '/^func_append ()$/,/^} # func_append /c\
15132func_append ()\
15133{\
15134 eval "${1}+=\\${2}"\
15135} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15136 && mv -f "$cfgfile.tmp" "$cfgfile" \
15137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15138test 0 -eq $? || _lt_function_replace_fail=:
15139
15140
15141 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15142func_append_quoted ()\
15143{\
15144\ func_quote_for_eval "${2}"\
15145\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15146} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15147 && mv -f "$cfgfile.tmp" "$cfgfile" \
15148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15149test 0 -eq $? || _lt_function_replace_fail=:
15150
15151
15152 # Save a `func_append' function call where possible by direct use of '+='
15153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15154 && mv -f "$cfgfile.tmp" "$cfgfile" \
15155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15156 test 0 -eq $? || _lt_function_replace_fail=:
15157else
15158 # Save a `func_append' function call even when '+=' is not available
15159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15160 && mv -f "$cfgfile.tmp" "$cfgfile" \
15161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15162 test 0 -eq $? || _lt_function_replace_fail=:
15163fi
15164
15165if test x"$_lt_function_replace_fail" = x":"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15167$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15168fi
15169
15170
15171 mv -f "$cfgfile" "$ofile" ||
15172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15173 chmod +x "$ofile"
15174
15175 ;;
15176
15177 esac
15178done # for ac_tag
15179
15180
15181as_fn_exit 0
15182_ACEOF
15183ac_clean_files=$ac_clean_files_save
15184
15185test $ac_write_fail = 0 ||
15186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15187
15188
15189# configure is writing to config.log, and then calls config.status.
15190# config.status does its own redirection, appending to config.log.
15191# Unfortunately, on DOS this fails, as config.log is still kept open
15192# by configure, so config.status won't be able to write to it; its
15193# output is simply discarded. So we exec the FD to /dev/null,
15194# effectively closing config.log, so it can be properly (re)opened and
15195# appended to by config.status. When coming back to configure, we
15196# need to make the FD available again.
15197if test "$no_create" != yes; then
15198 ac_cs_success=:
15199 ac_config_status_args=
15200 test "$silent" = yes &&
15201 ac_config_status_args="$ac_config_status_args --quiet"
15202 exec 5>/dev/null
15203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15204 exec 5>>config.log
15205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15206 # would make configure fail if this is the last instruction.
15207 $ac_cs_success || as_fn_exit 1
15208fi
15209if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15211$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15212fi
15213
15214
15215{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15216------------------------------------------------------------------------
15217 $PACKAGE $VERSION: Automatic configuration OK.
15218
15219 Compiler support:
15220
15221 C99 var arrays: ................ ${has_var_arrays}
15222 C99 lrintf: .................... ${ac_cv_func_lrintf}
15223 Alloca: ........................ ${has_alloca}
15224
15225 General configuration:
15226
15227 Floating point support: ........ ${ac_enable_float}
15228 Fast float approximations: ..... ${float_approx}
15229 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15230 Custom modes: .................. ${ac_enable_custom_modes}
15231 Assertion checking: ............ ${ac_enable_assertions}
15232 Fuzzing: ....................... ${ac_enable_fuzzing}
15233
15234 API documentation: ............. ${ac_enable_doc}
15235------------------------------------------------------------------------
15236" >&5
15237$as_echo "
15238------------------------------------------------------------------------
15239 $PACKAGE $VERSION: Automatic configuration OK.
15240
15241 Compiler support:
15242
15243 C99 var arrays: ................ ${has_var_arrays}
15244 C99 lrintf: .................... ${ac_cv_func_lrintf}
15245 Alloca: ........................ ${has_alloca}
15246
15247 General configuration:
15248
15249 Floating point support: ........ ${ac_enable_float}
15250 Fast float approximations: ..... ${float_approx}
15251 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15252 Custom modes: .................. ${ac_enable_custom_modes}
15253 Assertion checking: ............ ${ac_enable_assertions}
15254 Fuzzing: ....................... ${ac_enable_fuzzing}
15255
15256 API documentation: ............. ${ac_enable_doc}
15257------------------------------------------------------------------------
15258" >&6; }
15259
15260echo "Type \"make; make install\" to compile and install";
15261echo "Type \"make check\" to run the test suite";