comparison src/opusfile-0.9/configure @ 69:7aeed7906520

Add Opus sources and macOS builds
author Chris Cannam
date Wed, 23 Jan 2019 13:48:08 +0000
parents
children
comparison
equal deleted inserted replaced
68:85d5306e114e 69:7aeed7906520
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for opusfile 0.9.
4 #
5 # Report bugs to <opus@xiph.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='opusfile'
592 PACKAGE_TARNAME='opusfile'
593 PACKAGE_VERSION='0.9'
594 PACKAGE_STRING='opusfile 0.9'
595 PACKAGE_BUGREPORT='opus@xiph.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/opusfile.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_DOXYGEN_FALSE
640 HAVE_DOXYGEN_TRUE
641 HAVE_DOT
642 HAVE_DOXYGEN
643 lrintf_lib
644 OP_ENABLE_EXAMPLES_FALSE
645 OP_ENABLE_EXAMPLES_TRUE
646 DEPS_LIBS
647 DEPS_CFLAGS
648 openssl
649 OP_ENABLE_HTTP_FALSE
650 OP_ENABLE_HTTP_TRUE
651 URL_DEPS_LIBS
652 URL_DEPS_CFLAGS
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 OP_WIN32_FALSE
657 OP_WIN32_TRUE
658 OP_LT_AGE
659 OP_LT_REVISION
660 OP_LT_CURRENT
661 LT_SYS_LIBRARY_PATH
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 SED
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 LIBTOOL
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 EGREP
730 GREP
731 CPP
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_largefile
781 enable_dependency_tracking
782 enable_silent_rules
783 enable_maintainer_mode
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_assertions
793 enable_http
794 enable_fixed_point
795 enable_float
796 enable_examples
797 enable_doc
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP
808 LT_SYS_LIBRARY_PATH
809 PKG_CONFIG
810 PKG_CONFIG_PATH
811 PKG_CONFIG_LIBDIR
812 URL_DEPS_CFLAGS
813 URL_DEPS_LIBS
814 DEPS_CFLAGS
815 DEPS_LIBS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures opusfile 0.9 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/opusfile]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of opusfile 0.9:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --disable-largefile omit support for large files
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --disable-maintainer-mode
1442 disable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-assertions Enable assertions in code
1450 --disable-http Disable HTTP support
1451 --enable-fixed-point Enable fixed-point calculation
1452 --disable-float Disable floating-point API
1453 --disable-examples Do not build example applications
1454 --disable-doc Do not build API documentation
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-aix-soname=aix|svr4|both
1462 shared library versioning (aka "SONAME") variant to
1463 provide on AIX, [default=aix].
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1466 compiler's sysroot if not specified).
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 LT_SYS_LIBRARY_PATH
1478 User-defined run-time library search path.
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 URL_DEPS_CFLAGS
1485 C compiler flags for URL_DEPS, overriding pkg-config
1486 URL_DEPS_LIBS
1487 linker flags for URL_DEPS, overriding pkg-config
1488 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1489 DEPS_LIBS linker flags for DEPS, overriding pkg-config
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <opus@xiph.org>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" ||
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504 continue
1505 ac_builddir=.
1506
1507 case "$ac_dir" in
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *)
1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511 # A ".." for each directory in $ac_dir_suffix.
1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 esac ;;
1517 esac
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1522
1523 case $srcdir in
1524 .) # We are building in place.
1525 ac_srcdir=.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1532 *) # Relative name.
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 esac
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for guested configure.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556 cat <<\_ACEOF
1557 opusfile configure 0.9
1558 generated by GNU Autoconf 2.69
1559
1560 Copyright (C) 2012 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564 exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_cpp ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_cpp
1645
1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649 # the include files in INCLUDES and setting the cache variable VAR
1650 # accordingly.
1651 ac_fn_c_check_header_mongrel ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if eval \${$3+:} false; then :
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 else
1664 # Is the header compilable?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666 $as_echo_n "checking $2 usability... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_header_compiler=yes
1674 else
1675 ac_header_compiler=no
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679 $as_echo "$ac_header_compiler" >&6; }
1680
1681 # Is the header present?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683 $as_echo_n "checking $2 presence... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_cpp "$LINENO"; then :
1689 ac_header_preproc=yes
1690 else
1691 ac_header_preproc=no
1692 fi
1693 rm -f conftest.err conftest.i conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695 $as_echo "$ac_header_preproc" >&6; }
1696
1697 # So? What about this header?
1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699 yes:no: )
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ;;
1705 no:yes:* )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 ( $as_echo "## ---------------------------- ##
1717 ## Report this to opus@xiph.org ##
1718 ## ---------------------------- ##"
1719 ) | sed "s/^/$as_me: WARNING: /" >&2
1720 ;;
1721 esac
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 eval "$3=\$ac_header_compiler"
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_mongrel
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_try_link LINENO
1811 # -----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_link ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext conftest$ac_exeext
1817 if { { ac_try="$ac_link"
1818 case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>conftest.err
1825 ac_status=$?
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1830 fi
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest$ac_exeext && {
1836 test "$cross_compiling" = yes ||
1837 test -x conftest$ac_exeext
1838 }; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1848 # interfere with the next link command; also delete a directory that is
1849 # left behind by Apple's compiler. We do this before executing the actions.
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_link
1855
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1872
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1877
1878 #ifdef __STDC__
1879 # include <limits.h>
1880 #else
1881 # include <assert.h>
1882 #endif
1883
1884 #undef $2
1885
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1889 #ifdef __cplusplus
1890 extern "C"
1891 #endif
1892 char $2 ();
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1897 choke me
1898 #endif
1899
1900 int
1901 main ()
1902 {
1903 return $2 ();
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 if ac_fn_c_try_link "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_check_func
1922 cat >config.log <<_ACEOF
1923 This file contains any messages produced by compilers while
1924 running configure, to aid debugging if configure makes a mistake.
1925
1926 It was created by opusfile $as_me 0.9, which was
1927 generated by GNU Autoconf 2.69. Invocation command line was
1928
1929 $ $0 $@
1930
1931 _ACEOF
1932 exec 5>>config.log
1933 {
1934 cat <<_ASUNAME
1935 ## --------- ##
1936 ## Platform. ##
1937 ## --------- ##
1938
1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1947
1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1955
1956 _ASUNAME
1957
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 $as_echo "PATH: $as_dir"
1964 done
1965 IFS=$as_save_IFS
1966
1967 } >&5
1968
1969 cat >&5 <<_ACEOF
1970
1971
1972 ## ----------- ##
1973 ## Core tests. ##
1974 ## ----------- ##
1975
1976 _ACEOF
1977
1978
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1984 ac_configure_args=
1985 ac_configure_args0=
1986 ac_configure_args1=
1987 ac_must_keep_next=false
1988 for ac_pass in 1 2
1989 do
1990 for ac_arg
1991 do
1992 case $ac_arg in
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1996 continue ;;
1997 *\'*)
1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 case $ac_pass in
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002 2)
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2006 else
2007 case $ac_arg in
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014 esac
2015 ;;
2016 -* ) ac_must_keep_next=true ;;
2017 esac
2018 fi
2019 as_fn_append ac_configure_args " '$ac_arg'"
2020 ;;
2021 esac
2022 done
2023 done
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2026
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log. We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2033 # Save into config.log some information that might help in debugging.
2034 {
2035 echo
2036
2037 $as_echo "## ---------------- ##
2038 ## Cache variables. ##
2039 ## ---------------- ##"
2040 echo
2041 # The following way of writing the cache mishandles newlines in values,
2042 (
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in #(
2046 *${as_nl}*)
2047 case $ac_var in #(
2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 esac
2051 case $ac_var in #(
2052 _ | IFS | as_nl) ;; #(
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054 *) { eval $ac_var=; unset $ac_var;} ;;
2055 esac ;;
2056 esac
2057 done
2058 (set) 2>&1 |
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060 *${as_nl}ac_space=\ *)
2061 sed -n \
2062 "s/'\''/'\''\\\\'\'''\''/g;
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 ;; #(
2065 *)
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 ;;
2068 esac |
2069 sort
2070 )
2071 echo
2072
2073 $as_echo "## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##"
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 $as_echo "## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##"
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 $as_echo "## ----------- ##
2105 ## confdefs.h. ##
2106 ## ----------- ##"
2107 echo
2108 cat confdefs.h
2109 echo
2110 fi
2111 test "$ac_signal" != 0 &&
2112 $as_echo "$as_me: caught signal $ac_signal"
2113 $as_echo "$as_me: exit $exit_status"
2114 } >&5
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 exit $exit_status
2118 ' 0
2119 for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121 done
2122 ac_signal=0
2123
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2126
2127 $as_echo "/* confdefs.h */" > confdefs.h
2128
2129 # Predefined preprocessor variables.
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_NAME "$PACKAGE_NAME"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_STRING "$PACKAGE_STRING"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_URL "$PACKAGE_URL"
2153 _ACEOF
2154
2155
2156 # Let the site file select an alternate cache file if it wants to.
2157 # Prefer an explicitly selected file to automatically selected ones.
2158 ac_site_file1=NONE
2159 ac_site_file2=NONE
2160 if test -n "$CONFIG_SITE"; then
2161 # We do not want a PATH search for config.site.
2162 case $CONFIG_SITE in #((
2163 -*) ac_site_file1=./$CONFIG_SITE;;
2164 */*) ac_site_file1=$CONFIG_SITE;;
2165 *) ac_site_file1=./$CONFIG_SITE;;
2166 esac
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2173 fi
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175 do
2176 test "x$ac_site_file" = xNONE && continue
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file" \
2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 as_fn_error $? "failed to load site script $ac_site_file
2185 See \`config.log' for more details" "$LINENO" 5; }
2186 fi
2187 done
2188
2189 if test -r "$cache_file"; then
2190 # Some versions of bash will fail to source /dev/null (special files
2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194 $as_echo "$as_me: loading cache $cache_file" >&6;}
2195 case $cache_file in
2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197 *) . "./$cache_file";;
2198 esac
2199 fi
2200 else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202 $as_echo "$as_me: creating cache $cache_file" >&6;}
2203 >$cache_file
2204 fi
2205
2206 # Check that the precious variables saved in the cache have kept the same
2207 # value.
2208 ac_cache_corrupted=false
2209 for ac_var in $ac_precious_vars; do
2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2211 eval ac_new_set=\$ac_env_${ac_var}_set
2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2213 eval ac_new_val=\$ac_env_${ac_var}_value
2214 case $ac_old_set,$ac_new_set in
2215 set,)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,set)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2221 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,);;
2224 *)
2225 if test "x$ac_old_val" != "x$ac_new_val"; then
2226 # differences in whitespace do not lead to failure.
2227 ac_old_val_w=`echo x $ac_old_val`
2228 ac_new_val_w=`echo x $ac_new_val`
2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2231 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2232 ac_cache_corrupted=:
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2235 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2236 eval $ac_var=\$ac_old_val
2237 fi
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2239 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2241 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2242 fi;;
2243 esac
2244 # Pass precious variables to config.status.
2245 if test "$ac_new_set" = set; then
2246 case $ac_new_val in
2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 *) ac_arg=$ac_var=$ac_new_val ;;
2249 esac
2250 case " $ac_configure_args " in
2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2253 esac
2254 fi
2255 done
2256 if $ac_cache_corrupted; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2260 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2262 fi
2263 ## -------------------- ##
2264 ## Main body of script. ##
2265 ## -------------------- ##
2266
2267 ac_ext=c
2268 ac_cpp='$CPP $CPPFLAGS'
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273
2274
2275
2276
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292 done
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295 fi
2296
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306 # Expand $ac_aux_dir to an absolute path.
2307 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_CC+:} false; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2345 $as_echo "$CC" >&6; }
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$ac_cv_prog_CC"; then
2354 ac_ct_CC=$CC
2355 # Extract the first word of "gcc", so it can be a program name with args.
2356 set dummy gcc; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CC="gcc"
2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376 done
2377 done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383 if test -n "$ac_ct_CC"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2385 $as_echo "$ac_ct_CC" >&6; }
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2389 fi
2390
2391 if test "x$ac_ct_CC" = x; then
2392 CC=""
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400 CC=$ac_ct_CC
2401 fi
2402 else
2403 CC="$ac_cv_prog_CC"
2404 fi
2405
2406 if test -z "$CC"; then
2407 if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2409 set dummy ${ac_tool_prefix}cc; ac_word=$2
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411 $as_echo_n "checking for $ac_word... " >&6; }
2412 if ${ac_cv_prog_CC+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425 ac_cv_prog_CC="${ac_tool_prefix}cc"
2426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2428 fi
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2438 $as_echo "$CC" >&6; }
2439 else
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441 $as_echo "no" >&6; }
2442 fi
2443
2444
2445 fi
2446 fi
2447 if test -z "$CC"; then
2448 # Extract the first word of "cc", so it can be a program name with args.
2449 set dummy cc; ac_word=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if ${ac_cv_prog_CC+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 ac_prog_rejected=no
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2467 ac_prog_rejected=yes
2468 continue
2469 fi
2470 ac_cv_prog_CC="cc"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 if test $ac_prog_rejected = yes; then
2479 # We found a bogon in the path, so make sure we never use it.
2480 set dummy $ac_cv_prog_CC
2481 shift
2482 if test $# != 0; then
2483 # We chose a different compiler from the bogus one.
2484 # However, it has the same basename, so the bogon will be chosen
2485 # first if we set CC to just the basename; use the full file name.
2486 shift
2487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2488 fi
2489 fi
2490 fi
2491 fi
2492 CC=$ac_cv_prog_CC
2493 if test -n "$CC"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2495 $as_echo "$CC" >&6; }
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2499 fi
2500
2501
2502 fi
2503 if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
2505 for ac_prog in cl.exe
2506 do
2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if ${ac_cv_prog_CC+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2537 $as_echo "$CC" >&6; }
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543
2544 test -n "$CC" && break
2545 done
2546 fi
2547 if test -z "$CC"; then
2548 ac_ct_CC=$CC
2549 for ac_prog in cl.exe
2550 do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_ac_ct_CC="$ac_prog"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$ac_ct_CC" && break
2589 done
2590
2591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595 yes:)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 CC=$ac_ct_CC
2601 fi
2602 fi
2603
2604 fi
2605
2606
2607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "no acceptable C compiler found in \$PATH
2610 See \`config.log' for more details" "$LINENO" 5; }
2611
2612 # Provide some information about the compiler.
2613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2614 set X $ac_compile
2615 ac_compiler=$2
2616 for ac_option in --version -v -V -qversion; do
2617 { { ac_try="$ac_compiler $ac_option >&5"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 sed '10a\
2628 ... rest of stderr output deleted ...
2629 10q' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 fi
2632 rm -f conftest.er1 conftest.err
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; }
2635 done
2636
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639
2640 int
2641 main ()
2642 {
2643
2644 ;
2645 return 0;
2646 }
2647 _ACEOF
2648 ac_clean_files_save=$ac_clean_files
2649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2650 # Try to create an executable without -o first, disregard a.out.
2651 # It will help us diagnose broken compilers, and finding out an intuition
2652 # of exeext.
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2654 $as_echo_n "checking whether the C compiler works... " >&6; }
2655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2656
2657 # The possible output files:
2658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2659
2660 ac_rmfiles=
2661 for ac_file in $ac_files
2662 do
2663 case $ac_file in
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2666 esac
2667 done
2668 rm -f $ac_rmfiles
2669
2670 if { { ac_try="$ac_link_default"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676 $as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_link_default") 2>&5
2678 ac_status=$?
2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680 test $ac_status = 0; }; then :
2681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2684 # so that the user can short-circuit this test for compilers unknown to
2685 # Autoconf.
2686 for ac_file in $ac_files ''
2687 do
2688 test -f "$ac_file" || continue
2689 case $ac_file in
2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2691 ;;
2692 [ab].out )
2693 # We found the default executable, but exeext='' is most
2694 # certainly right.
2695 break;;
2696 *.* )
2697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2698 then :; else
2699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700 fi
2701 # We set ac_cv_exeext here because the later test for it is not
2702 # safe: cross compilers may not add the suffix if given an `-o'
2703 # argument, so we may need to know it at that point already.
2704 # Even if this section looks crufty: it has the advantage of
2705 # actually working.
2706 break;;
2707 * )
2708 break;;
2709 esac
2710 done
2711 test "$ac_cv_exeext" = no && ac_cv_exeext=
2712
2713 else
2714 ac_file=''
2715 fi
2716 if test -z "$ac_file"; then :
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 as_fn_error 77 "C compiler cannot create executables
2725 See \`config.log' for more details" "$LINENO" 5; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2728 $as_echo "yes" >&6; }
2729 fi
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2731 $as_echo_n "checking for C compiler default output file name... " >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2733 $as_echo "$ac_file" >&6; }
2734 ac_exeext=$ac_cv_exeext
2735
2736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2737 ac_clean_files=$ac_clean_files_save
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2739 $as_echo_n "checking for suffix of executables... " >&6; }
2740 if { { ac_try="$ac_link"
2741 case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744 esac
2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746 $as_echo "$ac_try_echo"; } >&5
2747 (eval "$ac_link") 2>&5
2748 ac_status=$?
2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750 test $ac_status = 0; }; then :
2751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2752 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2753 # work properly (i.e., refer to `conftest.exe'), while it won't with
2754 # `rm'.
2755 for ac_file in conftest.exe conftest conftest.*; do
2756 test -f "$ac_file" || continue
2757 case $ac_file in
2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 break;;
2761 * ) break;;
2762 esac
2763 done
2764 else
2765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2768 See \`config.log' for more details" "$LINENO" 5; }
2769 fi
2770 rm -f conftest conftest$ac_cv_exeext
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2772 $as_echo "$ac_cv_exeext" >&6; }
2773
2774 rm -f conftest.$ac_ext
2775 EXEEXT=$ac_cv_exeext
2776 ac_exeext=$EXEEXT
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 #include <stdio.h>
2780 int
2781 main ()
2782 {
2783 FILE *f = fopen ("conftest.out", "w");
2784 return ferror (f) || fclose (f) != 0;
2785
2786 ;
2787 return 0;
2788 }
2789 _ACEOF
2790 ac_clean_files="$ac_clean_files conftest.out"
2791 # Check that the compiler produces executables we can run. If not, either
2792 # the compiler is broken, or we cross compile.
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2794 $as_echo_n "checking whether we are cross compiling... " >&6; }
2795 if test "$cross_compiling" != yes; then
2796 { { ac_try="$ac_link"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2802 $as_echo "$ac_try_echo"; } >&5
2803 (eval "$ac_link") 2>&5
2804 ac_status=$?
2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2806 test $ac_status = 0; }
2807 if { ac_try='./conftest$ac_cv_exeext'
2808 { { case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_try") 2>&5
2815 ac_status=$?
2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817 test $ac_status = 0; }; }; then
2818 cross_compiling=no
2819 else
2820 if test "$cross_compiling" = maybe; then
2821 cross_compiling=yes
2822 else
2823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 as_fn_error $? "cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details" "$LINENO" 5; }
2828 fi
2829 fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2832 $as_echo "$cross_compiling" >&6; }
2833
2834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2835 ac_clean_files=$ac_clean_files_save
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2837 $as_echo_n "checking for suffix of object files... " >&6; }
2838 if ${ac_cv_objext+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2843
2844 int
2845 main ()
2846 {
2847
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.o conftest.obj
2853 if { { ac_try="$ac_compile"
2854 case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857 esac
2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859 $as_echo "$ac_try_echo"; } >&5
2860 (eval "$ac_compile") 2>&5
2861 ac_status=$?
2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863 test $ac_status = 0; }; then :
2864 for ac_file in conftest.o conftest.obj conftest.*; do
2865 test -f "$ac_file" || continue;
2866 case $ac_file in
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2869 break;;
2870 esac
2871 done
2872 else
2873 $as_echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878 as_fn_error $? "cannot compute suffix of object files: cannot compile
2879 See \`config.log' for more details" "$LINENO" 5; }
2880 fi
2881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2884 $as_echo "$ac_cv_objext" >&6; }
2885 OBJEXT=$ac_cv_objext
2886 ac_objext=$OBJEXT
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2889 if ${ac_cv_c_compiler_gnu+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894
2895 int
2896 main ()
2897 {
2898 #ifndef __GNUC__
2899 choke me
2900 #endif
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_compile "$LINENO"; then :
2907 ac_compiler_gnu=yes
2908 else
2909 ac_compiler_gnu=no
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2913
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2917 if test $ac_compiler_gnu = yes; then
2918 GCC=yes
2919 else
2920 GCC=
2921 fi
2922 ac_test_CFLAGS=${CFLAGS+set}
2923 ac_save_CFLAGS=$CFLAGS
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2926 if ${ac_cv_prog_cc_g+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 ac_save_c_werror_flag=$ac_c_werror_flag
2930 ac_c_werror_flag=yes
2931 ac_cv_prog_cc_g=no
2932 CFLAGS="-g"
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2935
2936 int
2937 main ()
2938 {
2939
2940 ;
2941 return 0;
2942 }
2943 _ACEOF
2944 if ac_fn_c_try_compile "$LINENO"; then :
2945 ac_cv_prog_cc_g=yes
2946 else
2947 CFLAGS=""
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2950
2951 int
2952 main ()
2953 {
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 if ac_fn_c_try_compile "$LINENO"; then :
2960
2961 else
2962 ac_c_werror_flag=$ac_save_c_werror_flag
2963 CFLAGS="-g"
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2966
2967 int
2968 main ()
2969 {
2970
2971 ;
2972 return 0;
2973 }
2974 _ACEOF
2975 if ac_fn_c_try_compile "$LINENO"; then :
2976 ac_cv_prog_cc_g=yes
2977 fi
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 fi
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_c_werror_flag=$ac_save_c_werror_flag
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2986 $as_echo "$ac_cv_prog_cc_g" >&6; }
2987 if test "$ac_test_CFLAGS" = set; then
2988 CFLAGS=$ac_save_CFLAGS
2989 elif test $ac_cv_prog_cc_g = yes; then
2990 if test "$GCC" = yes; then
2991 CFLAGS="-g -O2"
2992 else
2993 CFLAGS="-g"
2994 fi
2995 else
2996 if test "$GCC" = yes; then
2997 CFLAGS="-O2"
2998 else
2999 CFLAGS=
3000 fi
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3004 if ${ac_cv_prog_cc_c89+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 ac_cv_prog_cc_c89=no
3008 ac_save_CC=$CC
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011 #include <stdarg.h>
3012 #include <stdio.h>
3013 struct stat;
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3018 char **p;
3019 int i;
3020 {
3021 return p[i];
3022 }
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3024 {
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031 }
3032
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043 inside strings and character constants. */
3044 #define FOO(x) 'x'
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046
3047 int test (int i, double x);
3048 struct s1 {int (*f) (int a);};
3049 struct s2 {int (*f) (double a);};
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3051 int argc;
3052 char **argv;
3053 int
3054 main ()
3055 {
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 do
3064 CC="$ac_save_CC $ac_arg"
3065 if ac_fn_c_try_compile "$LINENO"; then :
3066 ac_cv_prog_cc_c89=$ac_arg
3067 fi
3068 rm -f core conftest.err conftest.$ac_objext
3069 test "x$ac_cv_prog_cc_c89" != "xno" && break
3070 done
3071 rm -f conftest.$ac_ext
3072 CC=$ac_save_CC
3073
3074 fi
3075 # AC_CACHE_VAL
3076 case "x$ac_cv_prog_cc_c89" in
3077 x)
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3079 $as_echo "none needed" >&6; } ;;
3080 xno)
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3082 $as_echo "unsupported" >&6; } ;;
3083 *)
3084 CC="$CC $ac_cv_prog_cc_c89"
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3087 esac
3088 if test "x$ac_cv_prog_cc_c89" != xno; then :
3089
3090 fi
3091
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3104 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3105 if ${am_cv_prog_cc_c_o+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 # Make sure it works both with $CC and with simple cc.
3120 # Following AC_PROG_CC_C_O, we do the test twice because some
3121 # compilers refuse to overwrite an existing .o file with -o,
3122 # though they will create one.
3123 am_cv_prog_cc_c_o=yes
3124 for am_i in 1 2; do
3125 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3126 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } \
3130 && test -f conftest2.$ac_objext; then
3131 : OK
3132 else
3133 am_cv_prog_cc_c_o=no
3134 break
3135 fi
3136 done
3137 rm -f core conftest*
3138 unset am_i
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3141 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3142 if test "$am_cv_prog_cc_c_o" != yes; then
3143 # Losing compiler, so override with the script.
3144 # FIXME: It is wrong to rewrite CC.
3145 # But if we don't then we get into trouble of one sort or another.
3146 # A longer-term fix would be to have automake use am__CC in this case,
3147 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3148 CC="$am_aux_dir/compile $CC"
3149 fi
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
3156
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3165 # On Suns, sometimes $CPP names a directory.
3166 if test -n "$CPP" && test -d "$CPP"; then
3167 CPP=
3168 fi
3169 if test -z "$CPP"; then
3170 if ${ac_cv_prog_CPP+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 # Double quotes because CPP needs to be expanded
3174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175 do
3176 ac_preproc_ok=false
3177 for ac_c_preproc_warn_flag in '' yes
3178 do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187 #ifdef __STDC__
3188 # include <limits.h>
3189 #else
3190 # include <assert.h>
3191 #endif
3192 Syntax error
3193 _ACEOF
3194 if ac_fn_c_try_cpp "$LINENO"; then :
3195
3196 else
3197 # Broken: fails on valid input.
3198 continue
3199 fi
3200 rm -f conftest.err conftest.i conftest.$ac_ext
3201
3202 # OK, works on sane cases. Now check whether nonexistent headers
3203 # can be detected and how.
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <ac_nonexistent.h>
3207 _ACEOF
3208 if ac_fn_c_try_cpp "$LINENO"; then :
3209 # Broken: success on invalid input.
3210 continue
3211 else
3212 # Passes both tests.
3213 ac_preproc_ok=:
3214 break
3215 fi
3216 rm -f conftest.err conftest.i conftest.$ac_ext
3217
3218 done
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220 rm -f conftest.i conftest.err conftest.$ac_ext
3221 if $ac_preproc_ok; then :
3222 break
3223 fi
3224
3225 done
3226 ac_cv_prog_CPP=$CPP
3227
3228 fi
3229 CPP=$ac_cv_prog_CPP
3230 else
3231 ac_cv_prog_CPP=$CPP
3232 fi
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3234 $as_echo "$CPP" >&6; }
3235 ac_preproc_ok=false
3236 for ac_c_preproc_warn_flag in '' yes
3237 do
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246 #ifdef __STDC__
3247 # include <limits.h>
3248 #else
3249 # include <assert.h>
3250 #endif
3251 Syntax error
3252 _ACEOF
3253 if ac_fn_c_try_cpp "$LINENO"; then :
3254
3255 else
3256 # Broken: fails on valid input.
3257 continue
3258 fi
3259 rm -f conftest.err conftest.i conftest.$ac_ext
3260
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265 #include <ac_nonexistent.h>
3266 _ACEOF
3267 if ac_fn_c_try_cpp "$LINENO"; then :
3268 # Broken: success on invalid input.
3269 continue
3270 else
3271 # Passes both tests.
3272 ac_preproc_ok=:
3273 break
3274 fi
3275 rm -f conftest.err conftest.i conftest.$ac_ext
3276
3277 done
3278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279 rm -f conftest.i conftest.err conftest.$ac_ext
3280 if $ac_preproc_ok; then :
3281
3282 else
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3286 See \`config.log' for more details" "$LINENO" 5; }
3287 fi
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3298 if ${ac_cv_path_GREP+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -z "$GREP"; then
3302 ac_path_GREP_found=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_prog in grep ggrep; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3312 as_fn_executable_p "$ac_path_GREP" || continue
3313 # Check for GNU ac_path_GREP and select it if it is found.
3314 # Check for GNU $ac_path_GREP
3315 case `"$ac_path_GREP" --version 2>&1` in
3316 *GNU*)
3317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3318 *)
3319 ac_count=0
3320 $as_echo_n 0123456789 >"conftest.in"
3321 while :
3322 do
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 $as_echo 'GREP' >> "conftest.nl"
3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329 as_fn_arith $ac_count + 1 && ac_count=$as_val
3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_GREP="$ac_path_GREP"
3333 ac_path_GREP_max=$ac_count
3334 fi
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3337 done
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339 esac
3340
3341 $ac_path_GREP_found && break 3
3342 done
3343 done
3344 done
3345 IFS=$as_save_IFS
3346 if test -z "$ac_cv_path_GREP"; then
3347 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3348 fi
3349 else
3350 ac_cv_path_GREP=$GREP
3351 fi
3352
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3355 $as_echo "$ac_cv_path_GREP" >&6; }
3356 GREP="$ac_cv_path_GREP"
3357
3358
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3360 $as_echo_n "checking for egrep... " >&6; }
3361 if ${ac_cv_path_EGREP+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3365 then ac_cv_path_EGREP="$GREP -E"
3366 else
3367 if test -z "$EGREP"; then
3368 ac_path_EGREP_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_prog in egrep; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3378 as_fn_executable_p "$ac_path_EGREP" || continue
3379 # Check for GNU ac_path_EGREP and select it if it is found.
3380 # Check for GNU $ac_path_EGREP
3381 case `"$ac_path_EGREP" --version 2>&1` in
3382 *GNU*)
3383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3384 *)
3385 ac_count=0
3386 $as_echo_n 0123456789 >"conftest.in"
3387 while :
3388 do
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo 'EGREP' >> "conftest.nl"
3393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395 as_fn_arith $ac_count + 1 && ac_count=$as_val
3396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_EGREP="$ac_path_EGREP"
3399 ac_path_EGREP_max=$ac_count
3400 fi
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405 esac
3406
3407 $ac_path_EGREP_found && break 3
3408 done
3409 done
3410 done
3411 IFS=$as_save_IFS
3412 if test -z "$ac_cv_path_EGREP"; then
3413 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3414 fi
3415 else
3416 ac_cv_path_EGREP=$EGREP
3417 fi
3418
3419 fi
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3422 $as_echo "$ac_cv_path_EGREP" >&6; }
3423 EGREP="$ac_cv_path_EGREP"
3424
3425
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3427 $as_echo_n "checking for ANSI C header files... " >&6; }
3428 if ${ac_cv_header_stdc+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <stdlib.h>
3434 #include <stdarg.h>
3435 #include <string.h>
3436 #include <float.h>
3437
3438 int
3439 main ()
3440 {
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_cv_header_stdc=yes
3448 else
3449 ac_cv_header_stdc=no
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452
3453 if test $ac_cv_header_stdc = yes; then
3454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <string.h>
3458
3459 _ACEOF
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 $EGREP "memchr" >/dev/null 2>&1; then :
3462
3463 else
3464 ac_cv_header_stdc=no
3465 fi
3466 rm -f conftest*
3467
3468 fi
3469
3470 if test $ac_cv_header_stdc = yes; then
3471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdlib.h>
3475
3476 _ACEOF
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 $EGREP "free" >/dev/null 2>&1; then :
3479
3480 else
3481 ac_cv_header_stdc=no
3482 fi
3483 rm -f conftest*
3484
3485 fi
3486
3487 if test $ac_cv_header_stdc = yes; then
3488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3489 if test "$cross_compiling" = yes; then :
3490 :
3491 else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494 #include <ctype.h>
3495 #include <stdlib.h>
3496 #if ((' ' & 0x0FF) == 0x020)
3497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3499 #else
3500 # define ISLOWER(c) \
3501 (('a' <= (c) && (c) <= 'i') \
3502 || ('j' <= (c) && (c) <= 'r') \
3503 || ('s' <= (c) && (c) <= 'z'))
3504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3505 #endif
3506
3507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3508 int
3509 main ()
3510 {
3511 int i;
3512 for (i = 0; i < 256; i++)
3513 if (XOR (islower (i), ISLOWER (i))
3514 || toupper (i) != TOUPPER (i))
3515 return 2;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_run "$LINENO"; then :
3520
3521 else
3522 ac_cv_header_stdc=no
3523 fi
3524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3525 conftest.$ac_objext conftest.beam conftest.$ac_ext
3526 fi
3527
3528 fi
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3531 $as_echo "$ac_cv_header_stdc" >&6; }
3532 if test $ac_cv_header_stdc = yes; then
3533
3534 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3535
3536 fi
3537
3538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3540 inttypes.h stdint.h unistd.h
3541 do :
3542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3544 "
3545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3546 cat >>confdefs.h <<_ACEOF
3547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548 _ACEOF
3549
3550 fi
3551
3552 done
3553
3554
3555
3556 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3557 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3558 MINIX=yes
3559 else
3560 MINIX=
3561 fi
3562
3563
3564 if test "$MINIX" = yes; then
3565
3566 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3567
3568
3569 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3570
3571
3572 $as_echo "#define _MINIX 1" >>confdefs.h
3573
3574 fi
3575
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3578 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3579 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 # define __EXTENSIONS__ 1
3586 $ac_includes_default
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_safe_to_define___extensions__=yes
3597 else
3598 ac_cv_safe_to_define___extensions__=no
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3603 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3604 test $ac_cv_safe_to_define___extensions__ = yes &&
3605 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3606
3607 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3608
3609 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3610
3611 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3612
3613 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3614
3615
3616 # Check whether --enable-largefile was given.
3617 if test "${enable_largefile+set}" = set; then :
3618 enableval=$enable_largefile;
3619 fi
3620
3621 if test "$enable_largefile" != no; then
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3625 if ${ac_cv_sys_largefile_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 ac_cv_sys_largefile_CC=no
3629 if test "$GCC" != yes; then
3630 ac_save_CC=$CC
3631 while :; do
3632 # IRIX 6.2 and later do not support large files by default,
3633 # so use the C compiler's -n32 option if that helps.
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 #include <sys/types.h>
3637 /* Check that off_t can represent 2**63 - 1 correctly.
3638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3639 since some C++ compilers masquerading as C compilers
3640 incorrectly reject 9223372036854775807. */
3641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3643 && LARGE_OFF_T % 2147483647 == 1)
3644 ? 1 : -1];
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 break
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext
3657 CC="$CC -n32"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_sys_largefile_CC=' -n32'; break
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext
3662 break
3663 done
3664 CC=$ac_save_CC
3665 rm -f conftest.$ac_ext
3666 fi
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3669 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3670 if test "$ac_cv_sys_largefile_CC" != no; then
3671 CC=$CC$ac_cv_sys_largefile_CC
3672 fi
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3675 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3676 if ${ac_cv_sys_file_offset_bits+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 while :; do
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <sys/types.h>
3683 /* Check that off_t can represent 2**63 - 1 correctly.
3684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3685 since some C++ compilers masquerading as C compilers
3686 incorrectly reject 9223372036854775807. */
3687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3689 && LARGE_OFF_T % 2147483647 == 1)
3690 ? 1 : -1];
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_sys_file_offset_bits=no; break
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #define _FILE_OFFSET_BITS 64
3706 #include <sys/types.h>
3707 /* Check that off_t can represent 2**63 - 1 correctly.
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3709 since some C++ compilers masquerading as C compilers
3710 incorrectly reject 9223372036854775807. */
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3713 && LARGE_OFF_T % 2147483647 == 1)
3714 ? 1 : -1];
3715 int
3716 main ()
3717 {
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_sys_file_offset_bits=64; break
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_sys_file_offset_bits=unknown
3728 break
3729 done
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3732 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3733 case $ac_cv_sys_file_offset_bits in #(
3734 no | unknown) ;;
3735 *)
3736 cat >>confdefs.h <<_ACEOF
3737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3738 _ACEOF
3739 ;;
3740 esac
3741 rm -rf conftest*
3742 if test $ac_cv_sys_file_offset_bits = unknown; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3744 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3745 if ${ac_cv_sys_large_files+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 while :; do
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <sys/types.h>
3752 /* Check that off_t can represent 2**63 - 1 correctly.
3753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3754 since some C++ compilers masquerading as C compilers
3755 incorrectly reject 9223372036854775807. */
3756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3758 && LARGE_OFF_T % 2147483647 == 1)
3759 ? 1 : -1];
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_sys_large_files=no; break
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #define _LARGE_FILES 1
3775 #include <sys/types.h>
3776 /* Check that off_t can represent 2**63 - 1 correctly.
3777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3778 since some C++ compilers masquerading as C compilers
3779 incorrectly reject 9223372036854775807. */
3780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3782 && LARGE_OFF_T % 2147483647 == 1)
3783 ? 1 : -1];
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_sys_large_files=1; break
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_cv_sys_large_files=unknown
3797 break
3798 done
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3801 $as_echo "$ac_cv_sys_large_files" >&6; }
3802 case $ac_cv_sys_large_files in #(
3803 no | unknown) ;;
3804 *)
3805 cat >>confdefs.h <<_ACEOF
3806 #define _LARGE_FILES $ac_cv_sys_large_files
3807 _ACEOF
3808 ;;
3809 esac
3810 rm -rf conftest*
3811 fi
3812
3813
3814 fi
3815
3816
3817 am__api_version='1.15'
3818
3819 # Find a good install program. We prefer a C program (faster),
3820 # so one script is as good as another. But avoid the broken or
3821 # incompatible versions:
3822 # SysV /etc/install, /usr/sbin/install
3823 # SunOS /usr/etc/install
3824 # IRIX /sbin/install
3825 # AIX /bin/install
3826 # AmigaOS /C/install, which installs bootblocks on floppy discs
3827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3830 # OS/2's system install, which has a completely different semantic
3831 # ./install, which can be erroneously created by make from ./install.sh.
3832 # Reject install programs that cannot install multiple files.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3834 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3835 if test -z "$INSTALL"; then
3836 if ${ac_cv_path_install+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 # Account for people who put trailing slashes in PATH elements.
3845 case $as_dir/ in #((
3846 ./ | .// | /[cC]/* | \
3847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3849 /usr/ucb/* ) ;;
3850 *)
3851 # OSF1 and SCO ODT 3.0 have their own names for install.
3852 # Don't use installbsd from OSF since it installs stuff as root
3853 # by default.
3854 for ac_prog in ginstall scoinst install; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3857 if test $ac_prog = install &&
3858 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3859 # AIX install. It has an incompatible calling convention.
3860 :
3861 elif test $ac_prog = install &&
3862 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3863 # program-specific install script used by HP pwplus--don't use.
3864 :
3865 else
3866 rm -rf conftest.one conftest.two conftest.dir
3867 echo one > conftest.one
3868 echo two > conftest.two
3869 mkdir conftest.dir
3870 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3871 test -s conftest.one && test -s conftest.two &&
3872 test -s conftest.dir/conftest.one &&
3873 test -s conftest.dir/conftest.two
3874 then
3875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3876 break 3
3877 fi
3878 fi
3879 fi
3880 done
3881 done
3882 ;;
3883 esac
3884
3885 done
3886 IFS=$as_save_IFS
3887
3888 rm -rf conftest.one conftest.two conftest.dir
3889
3890 fi
3891 if test "${ac_cv_path_install+set}" = set; then
3892 INSTALL=$ac_cv_path_install
3893 else
3894 # As a last resort, use the slow shell script. Don't cache a
3895 # value for INSTALL within a source directory, because that will
3896 # break other packages using the cache if that directory is
3897 # removed, or if the value is a relative name.
3898 INSTALL=$ac_install_sh
3899 fi
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3902 $as_echo "$INSTALL" >&6; }
3903
3904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3905 # It thinks the first close brace ends the variable substitution.
3906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3907
3908 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3909
3910 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3913 $as_echo_n "checking whether build environment is sane... " >&6; }
3914 # Reject unsafe characters in $srcdir or the absolute working directory
3915 # name. Accept space and tab only in the latter.
3916 am_lf='
3917 '
3918 case `pwd` in
3919 *[\\\"\#\$\&\'\`$am_lf]*)
3920 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3921 esac
3922 case $srcdir in
3923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3924 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3925 esac
3926
3927 # Do 'set' in a subshell so we don't clobber the current shell's
3928 # arguments. Must try -L first in case configure is actually a
3929 # symlink; some systems play weird games with the mod time of symlinks
3930 # (eg FreeBSD returns the mod time of the symlink's containing
3931 # directory).
3932 if (
3933 am_has_slept=no
3934 for am_try in 1 2; do
3935 echo "timestamp, slept: $am_has_slept" > conftest.file
3936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3937 if test "$*" = "X"; then
3938 # -L didn't work.
3939 set X `ls -t "$srcdir/configure" conftest.file`
3940 fi
3941 if test "$*" != "X $srcdir/configure conftest.file" \
3942 && test "$*" != "X conftest.file $srcdir/configure"; then
3943
3944 # If neither matched, then we have a broken ls. This can happen
3945 # if, for instance, CONFIG_SHELL is bash and it inherits a
3946 # broken ls alias from the environment. This has actually
3947 # happened. Such a system could not be considered "sane".
3948 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3949 alias in your environment" "$LINENO" 5
3950 fi
3951 if test "$2" = conftest.file || test $am_try -eq 2; then
3952 break
3953 fi
3954 # Just in case.
3955 sleep 1
3956 am_has_slept=yes
3957 done
3958 test "$2" = conftest.file
3959 )
3960 then
3961 # Ok.
3962 :
3963 else
3964 as_fn_error $? "newly created file is older than distributed files!
3965 Check your system clock" "$LINENO" 5
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3969 # If we didn't sleep, we still need to ensure time stamps of config.status and
3970 # generated files are strictly newer.
3971 am_sleep_pid=
3972 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3973 ( sleep 1 ) &
3974 am_sleep_pid=$!
3975 fi
3976
3977 rm -f conftest.file
3978
3979 test "$program_prefix" != NONE &&
3980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3981 # Use a double $ so make ignores it.
3982 test "$program_suffix" != NONE &&
3983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3984 # Double any \ or $.
3985 # By default was `s,x,x', remove it if useless.
3986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3987 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3988
3989 if test x"${MISSING+set}" != xset; then
3990 case $am_aux_dir in
3991 *\ * | *\ *)
3992 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3993 *)
3994 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3995 esac
3996 fi
3997 # Use eval to expand $SHELL
3998 if eval "$MISSING --is-lightweight"; then
3999 am_missing_run="$MISSING "
4000 else
4001 am_missing_run=
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4003 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4004 fi
4005
4006 if test x"${install_sh+set}" != xset; then
4007 case $am_aux_dir in
4008 *\ * | *\ *)
4009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4010 *)
4011 install_sh="\${SHELL} $am_aux_dir/install-sh"
4012 esac
4013 fi
4014
4015 # Installed binaries are usually stripped using 'strip' when the user
4016 # run "make install-strip". However 'strip' might not be the right
4017 # tool to use in cross-compilation environments, therefore Automake
4018 # will honor the 'STRIP' environment variable to overrule this program.
4019 if test "$cross_compiling" != no; then
4020 if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4022 set dummy ${ac_tool_prefix}strip; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_STRIP+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$STRIP"; then
4029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 STRIP=$ac_cv_prog_STRIP
4049 if test -n "$STRIP"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4051 $as_echo "$STRIP" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057
4058 fi
4059 if test -z "$ac_cv_prog_STRIP"; then
4060 ac_ct_STRIP=$STRIP
4061 # Extract the first word of "strip", so it can be a program name with args.
4062 set dummy strip; ac_word=$2
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 $as_echo_n "checking for $ac_word... " >&6; }
4065 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if test -n "$ac_ct_STRIP"; then
4069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_ac_ct_STRIP="strip"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4089 if test -n "$ac_ct_STRIP"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4091 $as_echo "$ac_ct_STRIP" >&6; }
4092 else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097 if test "x$ac_ct_STRIP" = x; then
4098 STRIP=":"
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101 yes:)
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 STRIP=$ac_ct_STRIP
4107 fi
4108 else
4109 STRIP="$ac_cv_prog_STRIP"
4110 fi
4111
4112 fi
4113 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4116 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4117 if test -z "$MKDIR_P"; then
4118 if ${ac_cv_path_mkdir+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_prog in mkdir gmkdir; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4130 'mkdir (GNU coreutils) '* | \
4131 'mkdir (coreutils) '* | \
4132 'mkdir (fileutils) '4.1*)
4133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4134 break 3;;
4135 esac
4136 done
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142
4143 test -d ./--version && rmdir ./--version
4144 if test "${ac_cv_path_mkdir+set}" = set; then
4145 MKDIR_P="$ac_cv_path_mkdir -p"
4146 else
4147 # As a last resort, use the slow shell script. Don't cache a
4148 # value for MKDIR_P within a source directory, because that will
4149 # break other packages using the cache if that directory is
4150 # removed, or if the value is a relative name.
4151 MKDIR_P="$ac_install_sh -d"
4152 fi
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4155 $as_echo "$MKDIR_P" >&6; }
4156
4157 for ac_prog in gawk mawk nawk awk
4158 do
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_AWK+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$AWK"; then
4167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_AWK="$ac_prog"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 AWK=$ac_cv_prog_AWK
4187 if test -n "$AWK"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4189 $as_echo "$AWK" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 fi
4194
4195
4196 test -n "$AWK" && break
4197 done
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4201 set x ${MAKE-make}
4202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4203 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 cat >conftest.make <<\_ACEOF
4207 SHELL = /bin/sh
4208 all:
4209 @echo '@@@%%%=$(MAKE)=@@@%%%'
4210 _ACEOF
4211 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4213 *@@@%%%=?*=@@@%%%*)
4214 eval ac_cv_prog_make_${ac_make}_set=yes;;
4215 *)
4216 eval ac_cv_prog_make_${ac_make}_set=no;;
4217 esac
4218 rm -f conftest.make
4219 fi
4220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222 $as_echo "yes" >&6; }
4223 SET_MAKE=
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 SET_MAKE="MAKE=${MAKE-make}"
4228 fi
4229
4230 rm -rf .tst 2>/dev/null
4231 mkdir .tst 2>/dev/null
4232 if test -d .tst; then
4233 am__leading_dot=.
4234 else
4235 am__leading_dot=_
4236 fi
4237 rmdir .tst 2>/dev/null
4238
4239 DEPDIR="${am__leading_dot}deps"
4240
4241 ac_config_commands="$ac_config_commands depfiles"
4242
4243
4244 am_make=${MAKE-make}
4245 cat > confinc << 'END'
4246 am__doit:
4247 @echo this is the am__doit target
4248 .PHONY: am__doit
4249 END
4250 # If we don't find an include directive, just comment out the code.
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4253 am__include="#"
4254 am__quote=
4255 _am_result=none
4256 # First try GNU make style include.
4257 echo "include confinc" > confmf
4258 # Ignore all kinds of additional output from 'make'.
4259 case `$am_make -s -f confmf 2> /dev/null` in #(
4260 *the\ am__doit\ target*)
4261 am__include=include
4262 am__quote=
4263 _am_result=GNU
4264 ;;
4265 esac
4266 # Now try BSD make style include.
4267 if test "$am__include" = "#"; then
4268 echo '.include "confinc"' > confmf
4269 case `$am_make -s -f confmf 2> /dev/null` in #(
4270 *the\ am__doit\ target*)
4271 am__include=.include
4272 am__quote="\""
4273 _am_result=BSD
4274 ;;
4275 esac
4276 fi
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4280 $as_echo "$_am_result" >&6; }
4281 rm -f confinc confmf
4282
4283 # Check whether --enable-dependency-tracking was given.
4284 if test "${enable_dependency_tracking+set}" = set; then :
4285 enableval=$enable_dependency_tracking;
4286 fi
4287
4288 if test "x$enable_dependency_tracking" != xno; then
4289 am_depcomp="$ac_aux_dir/depcomp"
4290 AMDEPBACKSLASH='\'
4291 am__nodep='_no'
4292 fi
4293 if test "x$enable_dependency_tracking" != xno; then
4294 AMDEP_TRUE=
4295 AMDEP_FALSE='#'
4296 else
4297 AMDEP_TRUE='#'
4298 AMDEP_FALSE=
4299 fi
4300
4301
4302 # Check whether --enable-silent-rules was given.
4303 if test "${enable_silent_rules+set}" = set; then :
4304 enableval=$enable_silent_rules;
4305 fi
4306
4307 case $enable_silent_rules in # (((
4308 yes) AM_DEFAULT_VERBOSITY=0;;
4309 no) AM_DEFAULT_VERBOSITY=1;;
4310 *) AM_DEFAULT_VERBOSITY=1;;
4311 esac
4312 am_make=${MAKE-make}
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4315 if ${am_cv_make_support_nested_variables+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if $as_echo 'TRUE=$(BAR$(V))
4319 BAR0=false
4320 BAR1=true
4321 V=1
4322 am__doit:
4323 @$(TRUE)
4324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4325 am_cv_make_support_nested_variables=yes
4326 else
4327 am_cv_make_support_nested_variables=no
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4332 if test $am_cv_make_support_nested_variables = yes; then
4333 AM_V='$(V)'
4334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4335 else
4336 AM_V=$AM_DEFAULT_VERBOSITY
4337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4338 fi
4339 AM_BACKSLASH='\'
4340
4341 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4343 # is not polluted with repeated "-I."
4344 am__isrc=' -I$(srcdir)'
4345 # test to see if srcdir already configured
4346 if test -f $srcdir/config.status; then
4347 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4348 fi
4349 fi
4350
4351 # test whether we have cygpath
4352 if test -z "$CYGPATH_W"; then
4353 if (cygpath --version) >/dev/null 2>/dev/null; then
4354 CYGPATH_W='cygpath -w'
4355 else
4356 CYGPATH_W=echo
4357 fi
4358 fi
4359
4360
4361 # Define the identity of the package.
4362 PACKAGE='opusfile'
4363 VERSION='0.9'
4364
4365
4366 # Some tools Automake needs.
4367
4368 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4369
4370
4371 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4372
4373
4374 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4375
4376
4377 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4378
4379
4380 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4381
4382 # For better backward compatibility. To be removed once Automake 1.9.x
4383 # dies out for good. For more background, see:
4384 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4385 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4386 mkdir_p='$(MKDIR_P)'
4387
4388 # We need awk for the "check" target (and possibly the TAP driver). The
4389 # system "awk" is bad on some platforms.
4390 # Always define AMTAR for backward compatibility. Yes, it's still used
4391 # in the wild :-( We should find a proper way to deprecate it ...
4392 AMTAR='$${TAR-tar}'
4393
4394
4395 # We'll loop over all known methods to create a tar archive until one works.
4396 _am_tools='gnutar pax cpio none'
4397
4398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4399
4400
4401
4402
4403
4404 depcc="$CC" am_compiler_list=
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
4408 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412 # We make a subdir and do the tests there. Otherwise we can end up
4413 # making bogus files that we don't know about and never remove. For
4414 # instance it was reported that on HP-UX the gcc test will end up
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
4416 # in D".
4417 rm -rf conftest.dir
4418 mkdir conftest.dir
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
4420 # using a relative directory.
4421 cp "$am_depcomp" conftest.dir
4422 cd conftest.dir
4423 # We will build objects and dependencies in a subdirectory because
4424 # it helps to detect inapplicable dependency modes. For instance
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
4426 # side effect of compilation, but ICC will put the dependencies in
4427 # the current directory while Tru64 will put them in the object
4428 # directory.
4429 mkdir sub
4430
4431 am_cv_CC_dependencies_compiler_type=none
4432 if test "$am_compiler_list" = ""; then
4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4434 fi
4435 am__universal=false
4436 case " $depcc " in #(
4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4438 esac
4439
4440 for depmode in $am_compiler_list; do
4441 # Setup a source with many dependencies, because some compilers
4442 # like to wrap large dependency lists on column 80 (with \), and
4443 # we should not choose a depcomp mode which is confused by this.
4444 #
4445 # We need to recreate these files for each test, as the compiler may
4446 # overwrite some of them when testing with obscure command lines.
4447 # This happens at least with the AIX C compiler.
4448 : > sub/conftest.c
4449 for i in 1 2 3 4 5 6; do
4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4452 # Solaris 10 /bin/sh.
4453 echo '/* dummy */' > sub/conftst$i.h
4454 done
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4456
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4458 # mode. It turns out that the SunPro C++ compiler does not properly
4459 # handle '-M -o', and we need to detect this. Also, some Intel
4460 # versions had trouble with output in subdirs.
4461 am__obj=sub/conftest.${OBJEXT-o}
4462 am__minus_obj="-o $am__obj"
4463 case $depmode in
4464 gcc)
4465 # This depmode causes a compiler race in universal mode.
4466 test "$am__universal" = false || continue
4467 ;;
4468 nosideeffect)
4469 # After this tag, mechanisms are not by side-effect, so they'll
4470 # only be used when explicitly requested.
4471 if test "x$enable_dependency_tracking" = xyes; then
4472 continue
4473 else
4474 break
4475 fi
4476 ;;
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4478 # This compiler won't grok '-c -o', but also, the minuso test has
4479 # not run yet. These depmodes are late enough in the game, and
4480 # so weak that their functioning should not be impacted.
4481 am__obj=conftest.${OBJEXT-o}
4482 am__minus_obj=
4483 ;;
4484 none) break ;;
4485 esac
4486 if depmode=$depmode \
4487 source=sub/conftest.c object=$am__obj \
4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4490 >/dev/null 2>conftest.err &&
4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4495 # icc doesn't choke on unknown options, it will just issue warnings
4496 # or remarks (even with -Werror). So we grep stderr for any message
4497 # that says an option was ignored or not supported.
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
4499 # icc: Command line warning: ignoring option '-M'; no argument required
4500 # The diagnosis changed in icc 8.0:
4501 # icc: Command line remark: option '-MP' not supported
4502 if (grep 'ignoring option' conftest.err ||
4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4504 am_cv_CC_dependencies_compiler_type=$depmode
4505 break
4506 fi
4507 fi
4508 done
4509
4510 cd ..
4511 rm -rf conftest.dir
4512 else
4513 am_cv_CC_dependencies_compiler_type=none
4514 fi
4515
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4518 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4519 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4520
4521 if
4522 test "x$enable_dependency_tracking" != xno \
4523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4524 am__fastdepCC_TRUE=
4525 am__fastdepCC_FALSE='#'
4526 else
4527 am__fastdepCC_TRUE='#'
4528 am__fastdepCC_FALSE=
4529 fi
4530
4531
4532
4533 # POSIX will say in a future version that running "rm -f" with no argument
4534 # is OK; and we want to be able to make that assumption in our Makefile
4535 # recipes. So use an aggressive probe to check that the usage we want is
4536 # actually supported "in the wild" to an acceptable degree.
4537 # See automake bug#10828.
4538 # To make any issue more visible, cause the running configure to be aborted
4539 # by default if the 'rm' program in use doesn't match our expectations; the
4540 # user can still override this though.
4541 if rm -f && rm -fr && rm -rf; then : OK; else
4542 cat >&2 <<'END'
4543 Oops!
4544
4545 Your 'rm' program seems unable to run without file operands specified
4546 on the command line, even when the '-f' option is present. This is contrary
4547 to the behaviour of most rm programs out there, and not conforming with
4548 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4549
4550 Please tell bug-automake@gnu.org about your system, including the value
4551 of your $PATH and any error possibly output before this message. This
4552 can help us improve future automake versions.
4553
4554 END
4555 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4556 echo 'Configuration will proceed anyway, since you have set the' >&2
4557 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4558 echo >&2
4559 else
4560 cat >&2 <<'END'
4561 Aborting the configuration process, to ensure you take notice of the issue.
4562
4563 You can download and install GNU coreutils to get an 'rm' implementation
4564 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4565
4566 If you want to complete the configuration process using your problematic
4567 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4568 to "yes", and re-run configure.
4569
4570 END
4571 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4572 fi
4573 fi
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4577 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4578 # Check whether --enable-maintainer-mode was given.
4579 if test "${enable_maintainer_mode+set}" = set; then :
4580 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4581 else
4582 USE_MAINTAINER_MODE=yes
4583 fi
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4586 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4587 if test $USE_MAINTAINER_MODE = yes; then
4588 MAINTAINER_MODE_TRUE=
4589 MAINTAINER_MODE_FALSE='#'
4590 else
4591 MAINTAINER_MODE_TRUE='#'
4592 MAINTAINER_MODE_FALSE=
4593 fi
4594
4595 MAINT=$MAINTAINER_MODE_TRUE
4596
4597
4598 case `pwd` in
4599 *\ * | *\ *)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4601 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4602 esac
4603
4604
4605
4606 macro_version='2.4.6'
4607 macro_revision='2.4.6'
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621 ltmain=$ac_aux_dir/ltmain.sh
4622
4623 # Make sure we can run config.sub.
4624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4628 $as_echo_n "checking build system type... " >&6; }
4629 if ${ac_cv_build+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 ac_build_alias=$build_alias
4633 test "x$ac_build_alias" = x &&
4634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4635 test "x$ac_build_alias" = x &&
4636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4639
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4642 $as_echo "$ac_cv_build" >&6; }
4643 case $ac_cv_build in
4644 *-*-*) ;;
4645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4646 esac
4647 build=$ac_cv_build
4648 ac_save_IFS=$IFS; IFS='-'
4649 set x $ac_cv_build
4650 shift
4651 build_cpu=$1
4652 build_vendor=$2
4653 shift; shift
4654 # Remember, the first character of IFS is used to create $*,
4655 # except with old shells:
4656 build_os=$*
4657 IFS=$ac_save_IFS
4658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4662 $as_echo_n "checking host system type... " >&6; }
4663 if ${ac_cv_host+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test "x$host_alias" = x; then
4667 ac_cv_host=$ac_cv_build
4668 else
4669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4675 $as_echo "$ac_cv_host" >&6; }
4676 case $ac_cv_host in
4677 *-*-*) ;;
4678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4679 esac
4680 host=$ac_cv_host
4681 ac_save_IFS=$IFS; IFS='-'
4682 set x $ac_cv_host
4683 shift
4684 host_cpu=$1
4685 host_vendor=$2
4686 shift; shift
4687 # Remember, the first character of IFS is used to create $*,
4688 # except with old shells:
4689 host_os=$*
4690 IFS=$ac_save_IFS
4691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4692
4693
4694 # Backslashify metacharacters that are still active within
4695 # double-quoted strings.
4696 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4697
4698 # Same as above, but do not quote variable references.
4699 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4700
4701 # Sed substitution to delay expansion of an escaped shell variable in a
4702 # double_quote_subst'ed string.
4703 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4704
4705 # Sed substitution to delay expansion of an escaped single quote.
4706 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4707
4708 # Sed substitution to avoid accidental globbing in evaled expressions
4709 no_glob_subst='s/\*/\\\*/g'
4710
4711 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4713 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4716 $as_echo_n "checking how to print strings... " >&6; }
4717 # Test print first, because it will be a builtin if present.
4718 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4719 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4720 ECHO='print -r --'
4721 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4722 ECHO='printf %s\n'
4723 else
4724 # Use this function as a fallback that always works.
4725 func_fallback_echo ()
4726 {
4727 eval 'cat <<_LTECHO_EOF
4728 $1
4729 _LTECHO_EOF'
4730 }
4731 ECHO='func_fallback_echo'
4732 fi
4733
4734 # func_echo_all arg...
4735 # Invoke $ECHO with all args, space-separated.
4736 func_echo_all ()
4737 {
4738 $ECHO ""
4739 }
4740
4741 case $ECHO in
4742 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4743 $as_echo "printf" >&6; } ;;
4744 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4745 $as_echo "print -r" >&6; } ;;
4746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4747 $as_echo "cat" >&6; } ;;
4748 esac
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4764 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4765 if ${ac_cv_path_SED+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4769 for ac_i in 1 2 3 4 5 6 7; do
4770 ac_script="$ac_script$as_nl$ac_script"
4771 done
4772 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4773 { ac_script=; unset ac_script;}
4774 if test -z "$SED"; then
4775 ac_path_SED_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in sed gsed; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4785 as_fn_executable_p "$ac_path_SED" || continue
4786 # Check for GNU ac_path_SED and select it if it is found.
4787 # Check for GNU $ac_path_SED
4788 case `"$ac_path_SED" --version 2>&1` in
4789 *GNU*)
4790 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4791 *)
4792 ac_count=0
4793 $as_echo_n 0123456789 >"conftest.in"
4794 while :
4795 do
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo '' >> "conftest.nl"
4800 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
4803 if test $ac_count -gt ${ac_path_SED_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_SED="$ac_path_SED"
4806 ac_path_SED_max=$ac_count
4807 fi
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4810 done
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812 esac
4813
4814 $ac_path_SED_found && break 3
4815 done
4816 done
4817 done
4818 IFS=$as_save_IFS
4819 if test -z "$ac_cv_path_SED"; then
4820 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4821 fi
4822 else
4823 ac_cv_path_SED=$SED
4824 fi
4825
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4828 $as_echo "$ac_cv_path_SED" >&6; }
4829 SED="$ac_cv_path_SED"
4830 rm -f conftest.sed
4831
4832 test -z "$SED" && SED=sed
4833 Xsed="$SED -e 1s/^X//"
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4846 $as_echo_n "checking for fgrep... " >&6; }
4847 if ${ac_cv_path_FGREP+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4851 then ac_cv_path_FGREP="$GREP -F"
4852 else
4853 if test -z "$FGREP"; then
4854 ac_path_FGREP_found=false
4855 # Loop through the user's path and test for each of PROGNAME-LIST
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4858 do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_prog in fgrep; do
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4864 as_fn_executable_p "$ac_path_FGREP" || continue
4865 # Check for GNU ac_path_FGREP and select it if it is found.
4866 # Check for GNU $ac_path_FGREP
4867 case `"$ac_path_FGREP" --version 2>&1` in
4868 *GNU*)
4869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4870 *)
4871 ac_count=0
4872 $as_echo_n 0123456789 >"conftest.in"
4873 while :
4874 do
4875 cat "conftest.in" "conftest.in" >"conftest.tmp"
4876 mv "conftest.tmp" "conftest.in"
4877 cp "conftest.in" "conftest.nl"
4878 $as_echo 'FGREP' >> "conftest.nl"
4879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4881 as_fn_arith $ac_count + 1 && ac_count=$as_val
4882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4883 # Best one so far, save it but keep looking for a better one
4884 ac_cv_path_FGREP="$ac_path_FGREP"
4885 ac_path_FGREP_max=$ac_count
4886 fi
4887 # 10*(2^10) chars as input seems more than enough
4888 test $ac_count -gt 10 && break
4889 done
4890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4891 esac
4892
4893 $ac_path_FGREP_found && break 3
4894 done
4895 done
4896 done
4897 IFS=$as_save_IFS
4898 if test -z "$ac_cv_path_FGREP"; then
4899 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4900 fi
4901 else
4902 ac_cv_path_FGREP=$FGREP
4903 fi
4904
4905 fi
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4908 $as_echo "$ac_cv_path_FGREP" >&6; }
4909 FGREP="$ac_cv_path_FGREP"
4910
4911
4912 test -z "$GREP" && GREP=grep
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 # Check whether --with-gnu-ld was given.
4933 if test "${with_gnu_ld+set}" = set; then :
4934 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4935 else
4936 with_gnu_ld=no
4937 fi
4938
4939 ac_prog=ld
4940 if test yes = "$GCC"; then
4941 # Check if gcc -print-prog-name=ld gives a path.
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4943 $as_echo_n "checking for ld used by $CC... " >&6; }
4944 case $host in
4945 *-*-mingw*)
4946 # gcc leaves a trailing carriage return, which upsets mingw
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4948 *)
4949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4950 esac
4951 case $ac_prog in
4952 # Accept absolute paths.
4953 [\\/]* | ?:[\\/]*)
4954 re_direlt='/[^/][^/]*/\.\./'
4955 # Canonicalize the pathname of ld
4956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4959 done
4960 test -z "$LD" && LD=$ac_prog
4961 ;;
4962 "")
4963 # If it fails, then pretend we aren't using GCC.
4964 ac_prog=ld
4965 ;;
4966 *)
4967 # If it is relative, then search for the first ld in PATH.
4968 with_gnu_ld=unknown
4969 ;;
4970 esac
4971 elif test yes = "$with_gnu_ld"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4973 $as_echo_n "checking for GNU ld... " >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4976 $as_echo_n "checking for non-GNU ld... " >&6; }
4977 fi
4978 if ${lt_cv_path_LD+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -z "$LD"; then
4982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4983 for ac_dir in $PATH; do
4984 IFS=$lt_save_ifs
4985 test -z "$ac_dir" && ac_dir=.
4986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4987 lt_cv_path_LD=$ac_dir/$ac_prog
4988 # Check to see if the program is GNU ld. I'd rather use --version,
4989 # but apparently some variants of GNU ld only accept -v.
4990 # Break only if it was the GNU/non-GNU ld that we prefer.
4991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4992 *GNU* | *'with BFD'*)
4993 test no != "$with_gnu_ld" && break
4994 ;;
4995 *)
4996 test yes != "$with_gnu_ld" && break
4997 ;;
4998 esac
4999 fi
5000 done
5001 IFS=$lt_save_ifs
5002 else
5003 lt_cv_path_LD=$LD # Let the user override the test with a path.
5004 fi
5005 fi
5006
5007 LD=$lt_cv_path_LD
5008 if test -n "$LD"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5010 $as_echo "$LD" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5018 if ${lt_cv_prog_gnu_ld+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5022 case `$LD -v 2>&1 </dev/null` in
5023 *GNU* | *'with BFD'*)
5024 lt_cv_prog_gnu_ld=yes
5025 ;;
5026 *)
5027 lt_cv_prog_gnu_ld=no
5028 ;;
5029 esac
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5032 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5033 with_gnu_ld=$lt_cv_prog_gnu_ld
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5044 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5045 if ${lt_cv_path_NM+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$NM"; then
5049 # Let the user override the test.
5050 lt_cv_path_NM=$NM
5051 else
5052 lt_nm_to_check=${ac_tool_prefix}nm
5053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5054 lt_nm_to_check="$lt_nm_to_check nm"
5055 fi
5056 for lt_tmp_nm in $lt_nm_to_check; do
5057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5059 IFS=$lt_save_ifs
5060 test -z "$ac_dir" && ac_dir=.
5061 tmp_nm=$ac_dir/$lt_tmp_nm
5062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5063 # Check to see if the nm accepts a BSD-compat flag.
5064 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5065 # nm: unknown option "B" ignored
5066 # Tru64's nm complains that /dev/null is an invalid object file
5067 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5068 case $build_os in
5069 mingw*) lt_bad_file=conftest.nm/nofile ;;
5070 *) lt_bad_file=/dev/null ;;
5071 esac
5072 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5073 *$lt_bad_file* | *'Invalid file or object type'*)
5074 lt_cv_path_NM="$tmp_nm -B"
5075 break 2
5076 ;;
5077 *)
5078 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5079 */dev/null*)
5080 lt_cv_path_NM="$tmp_nm -p"
5081 break 2
5082 ;;
5083 *)
5084 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5085 continue # so that we can try to find one that supports BSD flags
5086 ;;
5087 esac
5088 ;;
5089 esac
5090 fi
5091 done
5092 IFS=$lt_save_ifs
5093 done
5094 : ${lt_cv_path_NM=no}
5095 fi
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5098 $as_echo "$lt_cv_path_NM" >&6; }
5099 if test no != "$lt_cv_path_NM"; then
5100 NM=$lt_cv_path_NM
5101 else
5102 # Didn't find any BSD compatible name lister, look for dumpbin.
5103 if test -n "$DUMPBIN"; then :
5104 # Let the user override the test.
5105 else
5106 if test -n "$ac_tool_prefix"; then
5107 for ac_prog in dumpbin "link -dump"
5108 do
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_DUMPBIN+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$DUMPBIN"; then
5117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 DUMPBIN=$ac_cv_prog_DUMPBIN
5137 if test -n "$DUMPBIN"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5139 $as_echo "$DUMPBIN" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 test -n "$DUMPBIN" && break
5147 done
5148 fi
5149 if test -z "$DUMPBIN"; then
5150 ac_ct_DUMPBIN=$DUMPBIN
5151 for ac_prog in dumpbin "link -dump"
5152 do
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$ac_ct_DUMPBIN"; then
5161 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5181 if test -n "$ac_ct_DUMPBIN"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5183 $as_echo "$ac_ct_DUMPBIN" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 test -n "$ac_ct_DUMPBIN" && break
5191 done
5192
5193 if test "x$ac_ct_DUMPBIN" = x; then
5194 DUMPBIN=":"
5195 else
5196 case $cross_compiling:$ac_tool_warned in
5197 yes:)
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5201 esac
5202 DUMPBIN=$ac_ct_DUMPBIN
5203 fi
5204 fi
5205
5206 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5207 *COFF*)
5208 DUMPBIN="$DUMPBIN -symbols -headers"
5209 ;;
5210 *)
5211 DUMPBIN=:
5212 ;;
5213 esac
5214 fi
5215
5216 if test : != "$DUMPBIN"; then
5217 NM=$DUMPBIN
5218 fi
5219 fi
5220 test -z "$NM" && NM=nm
5221
5222
5223
5224
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5228 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5229 if ${lt_cv_nm_interface+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 lt_cv_nm_interface="BSD nm"
5233 echo "int some_variable = 0;" > conftest.$ac_ext
5234 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5235 (eval "$ac_compile" 2>conftest.err)
5236 cat conftest.err >&5
5237 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5238 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5239 cat conftest.err >&5
5240 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5241 cat conftest.out >&5
5242 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5243 lt_cv_nm_interface="MS dumpbin"
5244 fi
5245 rm -f conftest*
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5248 $as_echo "$lt_cv_nm_interface" >&6; }
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5251 $as_echo_n "checking whether ln -s works... " >&6; }
5252 LN_S=$as_ln_s
5253 if test "$LN_S" = "ln -s"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5258 $as_echo "no, using $LN_S" >&6; }
5259 fi
5260
5261 # find the maximum length of command line arguments
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5263 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5264 if ${lt_cv_sys_max_cmd_len+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 i=0
5268 teststring=ABCD
5269
5270 case $build_os in
5271 msdosdjgpp*)
5272 # On DJGPP, this test can blow up pretty badly due to problems in libc
5273 # (any single argument exceeding 2000 bytes causes a buffer overrun
5274 # during glob expansion). Even if it were fixed, the result of this
5275 # check would be larger than it should be.
5276 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5277 ;;
5278
5279 gnu*)
5280 # Under GNU Hurd, this test is not required because there is
5281 # no limit to the length of command line arguments.
5282 # Libtool will interpret -1 as no limit whatsoever
5283 lt_cv_sys_max_cmd_len=-1;
5284 ;;
5285
5286 cygwin* | mingw* | cegcc*)
5287 # On Win9x/ME, this test blows up -- it succeeds, but takes
5288 # about 5 minutes as the teststring grows exponentially.
5289 # Worse, since 9x/ME are not pre-emptively multitasking,
5290 # you end up with a "frozen" computer, even though with patience
5291 # the test eventually succeeds (with a max line length of 256k).
5292 # Instead, let's just punt: use the minimum linelength reported by
5293 # all of the supported platforms: 8192 (on NT/2K/XP).
5294 lt_cv_sys_max_cmd_len=8192;
5295 ;;
5296
5297 mint*)
5298 # On MiNT this can take a long time and run out of memory.
5299 lt_cv_sys_max_cmd_len=8192;
5300 ;;
5301
5302 amigaos*)
5303 # On AmigaOS with pdksh, this test takes hours, literally.
5304 # So we just punt and use a minimum line length of 8192.
5305 lt_cv_sys_max_cmd_len=8192;
5306 ;;
5307
5308 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5309 # This has been around since 386BSD, at least. Likely further.
5310 if test -x /sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5312 elif test -x /usr/sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5314 else
5315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5316 fi
5317 # And add a safety zone
5318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5320 ;;
5321
5322 interix*)
5323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5324 lt_cv_sys_max_cmd_len=196608
5325 ;;
5326
5327 os2*)
5328 # The test takes a long time on OS/2.
5329 lt_cv_sys_max_cmd_len=8192
5330 ;;
5331
5332 osf*)
5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5335 # nice to cause kernel panics so lets avoid the loop below.
5336 # First set a reasonable default.
5337 lt_cv_sys_max_cmd_len=16384
5338 #
5339 if test -x /sbin/sysconfig; then
5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5342 esac
5343 fi
5344 ;;
5345 sco3.2v5*)
5346 lt_cv_sys_max_cmd_len=102400
5347 ;;
5348 sysv5* | sco5v6* | sysv4.2uw2*)
5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5350 if test -n "$kargmax"; then
5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5352 else
5353 lt_cv_sys_max_cmd_len=32768
5354 fi
5355 ;;
5356 *)
5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5358 if test -n "$lt_cv_sys_max_cmd_len" && \
5359 test undefined != "$lt_cv_sys_max_cmd_len"; then
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 else
5363 # Make teststring a little bigger before we do anything with it.
5364 # a 1K string should be a reasonable start.
5365 for i in 1 2 3 4 5 6 7 8; do
5366 teststring=$teststring$teststring
5367 done
5368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5369 # If test is not a shell built-in, we'll probably end up computing a
5370 # maximum length that is only half of the actual maximum length, but
5371 # we can't tell.
5372 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5373 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5374 test 17 != "$i" # 1/2 MB should be enough
5375 do
5376 i=`expr $i + 1`
5377 teststring=$teststring$teststring
5378 done
5379 # Only check the string length outside the loop.
5380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5381 teststring=
5382 # Add a significant safety factor because C++ compilers can tack on
5383 # massive amounts of additional arguments before passing them to the
5384 # linker. It appears as though 1/2 is a usable value.
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5386 fi
5387 ;;
5388 esac
5389
5390 fi
5391
5392 if test -n "$lt_cv_sys_max_cmd_len"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5394 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5397 $as_echo "none" >&6; }
5398 fi
5399 max_cmd_len=$lt_cv_sys_max_cmd_len
5400
5401
5402
5403
5404
5405
5406 : ${CP="cp -f"}
5407 : ${MV="mv -f"}
5408 : ${RM="rm -f"}
5409
5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5411 lt_unset=unset
5412 else
5413 lt_unset=false
5414 fi
5415
5416
5417
5418
5419
5420 # test EBCDIC or ASCII
5421 case `echo X|tr X '\101'` in
5422 A) # ASCII based system
5423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5424 lt_SP2NL='tr \040 \012'
5425 lt_NL2SP='tr \015\012 \040\040'
5426 ;;
5427 *) # EBCDIC based system
5428 lt_SP2NL='tr \100 \n'
5429 lt_NL2SP='tr \r\n \100\100'
5430 ;;
5431 esac
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5442 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5443 if ${lt_cv_to_host_file_cmd+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 case $host in
5447 *-*-mingw* )
5448 case $build in
5449 *-*-mingw* ) # actually msys
5450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5451 ;;
5452 *-*-cygwin* )
5453 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5454 ;;
5455 * ) # otherwise, assume *nix
5456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5457 ;;
5458 esac
5459 ;;
5460 *-*-cygwin* )
5461 case $build in
5462 *-*-mingw* ) # actually msys
5463 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5464 ;;
5465 *-*-cygwin* )
5466 lt_cv_to_host_file_cmd=func_convert_file_noop
5467 ;;
5468 * ) # otherwise, assume *nix
5469 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5470 ;;
5471 esac
5472 ;;
5473 * ) # unhandled hosts (and "normal" native builds)
5474 lt_cv_to_host_file_cmd=func_convert_file_noop
5475 ;;
5476 esac
5477
5478 fi
5479
5480 to_host_file_cmd=$lt_cv_to_host_file_cmd
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5482 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5489 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5490 if ${lt_cv_to_tool_file_cmd+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 #assume ordinary cross tools, or native build.
5494 lt_cv_to_tool_file_cmd=func_convert_file_noop
5495 case $host in
5496 *-*-mingw* )
5497 case $build in
5498 *-*-mingw* ) # actually msys
5499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5500 ;;
5501 esac
5502 ;;
5503 esac
5504
5505 fi
5506
5507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5509 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5510
5511
5512
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5516 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5517 if ${lt_cv_ld_reload_flag+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 lt_cv_ld_reload_flag='-r'
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5523 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5524 reload_flag=$lt_cv_ld_reload_flag
5525 case $reload_flag in
5526 "" | " "*) ;;
5527 *) reload_flag=" $reload_flag" ;;
5528 esac
5529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5530 case $host_os in
5531 cygwin* | mingw* | pw32* | cegcc*)
5532 if test yes != "$GCC"; then
5533 reload_cmds=false
5534 fi
5535 ;;
5536 darwin*)
5537 if test yes = "$GCC"; then
5538 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5539 else
5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5541 fi
5542 ;;
5543 esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5555 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_OBJDUMP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$OBJDUMP"; then
5562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575 done
5576 done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 OBJDUMP=$ac_cv_prog_OBJDUMP
5582 if test -n "$OBJDUMP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5584 $as_echo "$OBJDUMP" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590
5591 fi
5592 if test -z "$ac_cv_prog_OBJDUMP"; then
5593 ac_ct_OBJDUMP=$OBJDUMP
5594 # Extract the first word of "objdump", so it can be a program name with args.
5595 set dummy objdump; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$ac_ct_OBJDUMP"; then
5602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615 done
5616 done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5622 if test -n "$ac_ct_OBJDUMP"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5624 $as_echo "$ac_ct_OBJDUMP" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630 if test "x$ac_ct_OBJDUMP" = x; then
5631 OBJDUMP="false"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634 yes:)
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637 ac_tool_warned=yes ;;
5638 esac
5639 OBJDUMP=$ac_ct_OBJDUMP
5640 fi
5641 else
5642 OBJDUMP="$ac_cv_prog_OBJDUMP"
5643 fi
5644
5645 test -z "$OBJDUMP" && OBJDUMP=objdump
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5656 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5657 if ${lt_cv_deplibs_check_method+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 lt_cv_file_magic_cmd='$MAGIC_CMD'
5661 lt_cv_file_magic_test_file=
5662 lt_cv_deplibs_check_method='unknown'
5663 # Need to set the preceding variable on all platforms that support
5664 # interlibrary dependencies.
5665 # 'none' -- dependencies not supported.
5666 # 'unknown' -- same as none, but documents that we really don't know.
5667 # 'pass_all' -- all dependencies passed with no checks.
5668 # 'test_compile' -- check by making test program.
5669 # 'file_magic [[regex]]' -- check by looking for files in library path
5670 # that responds to the $file_magic_cmd with a given extended regex.
5671 # If you have 'file' or equivalent on your system and you're not sure
5672 # whether 'pass_all' will *always* work, you probably want this one.
5673
5674 case $host_os in
5675 aix[4-9]*)
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679 beos*)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682
5683 bsdi[45]*)
5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5685 lt_cv_file_magic_cmd='/usr/bin/file -L'
5686 lt_cv_file_magic_test_file=/shlib/libc.so
5687 ;;
5688
5689 cygwin*)
5690 # func_win32_libid is a shell function defined in ltmain.sh
5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5692 lt_cv_file_magic_cmd='func_win32_libid'
5693 ;;
5694
5695 mingw* | pw32*)
5696 # Base MSYS/MinGW do not provide the 'file' command needed by
5697 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5698 # unless we find 'file', for example because we are cross-compiling.
5699 if ( file / ) >/dev/null 2>&1; then
5700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5701 lt_cv_file_magic_cmd='func_win32_libid'
5702 else
5703 # Keep this pattern in sync with the one in func_win32_libid.
5704 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5705 lt_cv_file_magic_cmd='$OBJDUMP -f'
5706 fi
5707 ;;
5708
5709 cegcc*)
5710 # use the weaker test based on 'objdump'. See mingw*.
5711 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5712 lt_cv_file_magic_cmd='$OBJDUMP -f'
5713 ;;
5714
5715 darwin* | rhapsody*)
5716 lt_cv_deplibs_check_method=pass_all
5717 ;;
5718
5719 freebsd* | dragonfly*)
5720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5721 case $host_cpu in
5722 i*86 )
5723 # Not sure whether the presence of OpenBSD here was a mistake.
5724 # Let's accept both of them until this is cleared up.
5725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5726 lt_cv_file_magic_cmd=/usr/bin/file
5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5728 ;;
5729 esac
5730 else
5731 lt_cv_deplibs_check_method=pass_all
5732 fi
5733 ;;
5734
5735 haiku*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739 hpux10.20* | hpux11*)
5740 lt_cv_file_magic_cmd=/usr/bin/file
5741 case $host_cpu in
5742 ia64*)
5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5745 ;;
5746 hppa*64*)
5747 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]'
5748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5749 ;;
5750 *)
5751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5752 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5753 ;;
5754 esac
5755 ;;
5756
5757 interix[3-9]*)
5758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5760 ;;
5761
5762 irix5* | irix6* | nonstopux*)
5763 case $LD in
5764 *-32|*"-32 ") libmagic=32-bit;;
5765 *-n32|*"-n32 ") libmagic=N32;;
5766 *-64|*"-64 ") libmagic=64-bit;;
5767 *) libmagic=never-match;;
5768 esac
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771
5772 # This must be glibc/ELF.
5773 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776
5777 netbsd*)
5778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5780 else
5781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5782 fi
5783 ;;
5784
5785 newos6*)
5786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5787 lt_cv_file_magic_cmd=/usr/bin/file
5788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5789 ;;
5790
5791 *nto* | *qnx*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 openbsd* | bitrig*)
5796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5798 else
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5800 fi
5801 ;;
5802
5803 osf3* | osf4* | osf5*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 rdos*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810
5811 solaris*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 sysv4 | sysv4.3*)
5820 case $host_vendor in
5821 motorola)
5822 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]'
5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5824 ;;
5825 ncr)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828 sequent)
5829 lt_cv_file_magic_cmd='/bin/file'
5830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5831 ;;
5832 sni)
5833 lt_cv_file_magic_cmd='/bin/file'
5834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5835 lt_cv_file_magic_test_file=/lib/libc.so
5836 ;;
5837 siemens)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840 pc)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843 esac
5844 ;;
5845
5846 tpf*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849 os2*)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852 esac
5853
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5856 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5857
5858 file_magic_glob=
5859 want_nocaseglob=no
5860 if test "$build" = "$host"; then
5861 case $host_os in
5862 mingw* | pw32*)
5863 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5864 want_nocaseglob=yes
5865 else
5866 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5867 fi
5868 ;;
5869 esac
5870 fi
5871
5872 file_magic_cmd=$lt_cv_file_magic_cmd
5873 deplibs_check_method=$lt_cv_deplibs_check_method
5874 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_prog_DLLTOOL+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$DLLTOOL"; then
5906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 DLLTOOL=$ac_cv_prog_DLLTOOL
5926 if test -n "$DLLTOOL"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5928 $as_echo "$DLLTOOL" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 fi
5936 if test -z "$ac_cv_prog_DLLTOOL"; then
5937 ac_ct_DLLTOOL=$DLLTOOL
5938 # Extract the first word of "dlltool", so it can be a program name with args.
5939 set dummy dlltool; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_DLLTOOL"; then
5946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5966 if test -n "$ac_ct_DLLTOOL"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5968 $as_echo "$ac_ct_DLLTOOL" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974 if test "x$ac_ct_DLLTOOL" = x; then
5975 DLLTOOL="false"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 DLLTOOL=$ac_ct_DLLTOOL
5984 fi
5985 else
5986 DLLTOOL="$ac_cv_prog_DLLTOOL"
5987 fi
5988
5989 test -z "$DLLTOOL" && DLLTOOL=dlltool
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6001 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6002 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 lt_cv_sharedlib_from_linklib_cmd='unknown'
6006
6007 case $host_os in
6008 cygwin* | mingw* | pw32* | cegcc*)
6009 # two different shell functions defined in ltmain.sh;
6010 # decide which one to use based on capabilities of $DLLTOOL
6011 case `$DLLTOOL --help 2>&1` in
6012 *--identify-strict*)
6013 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6014 ;;
6015 *)
6016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6017 ;;
6018 esac
6019 ;;
6020 *)
6021 # fallback: assume linklib IS sharedlib
6022 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6023 ;;
6024 esac
6025
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6028 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6029 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6030 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6031
6032
6033
6034
6035
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039 for ac_prog in ar
6040 do
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_AR+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$AR"; then
6049 ac_cv_prog_AR="$AR" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 AR=$ac_cv_prog_AR
6069 if test -n "$AR"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6071 $as_echo "$AR" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 test -n "$AR" && break
6079 done
6080 fi
6081 if test -z "$AR"; then
6082 ac_ct_AR=$AR
6083 for ac_prog in ar
6084 do
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
6086 set dummy $ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$ac_ct_AR"; then
6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_AR="$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6113 if test -n "$ac_ct_AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6115 $as_echo "$ac_ct_AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122 test -n "$ac_ct_AR" && break
6123 done
6124
6125 if test "x$ac_ct_AR" = x; then
6126 AR="false"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134 AR=$ac_ct_AR
6135 fi
6136 fi
6137
6138 : ${AR=ar}
6139 : ${AR_FLAGS=cru}
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6152 $as_echo_n "checking for archiver @FILE support... " >&6; }
6153 if ${lt_cv_ar_at_file+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 lt_cv_ar_at_file=no
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159
6160 int
6161 main ()
6162 {
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_compile "$LINENO"; then :
6169 echo conftest.$ac_objext > conftest.lst
6170 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6172 (eval $lt_ar_try) 2>&5
6173 ac_status=$?
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175 test $ac_status = 0; }
6176 if test 0 -eq "$ac_status"; then
6177 # Ensure the archiver fails upon bogus file names.
6178 rm -f conftest.$ac_objext libconftest.a
6179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6180 (eval $lt_ar_try) 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183 test $ac_status = 0; }
6184 if test 0 -ne "$ac_status"; then
6185 lt_cv_ar_at_file=@
6186 fi
6187 fi
6188 rm -f conftest.* libconftest.a
6189
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6195 $as_echo "$lt_cv_ar_at_file" >&6; }
6196
6197 if test no = "$lt_cv_ar_at_file"; then
6198 archiver_list_spec=
6199 else
6200 archiver_list_spec=$lt_cv_ar_at_file
6201 fi
6202
6203
6204
6205
6206
6207
6208
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}strip; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_STRIP+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$STRIP"; then
6218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 STRIP=$ac_cv_prog_STRIP
6238 if test -n "$STRIP"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6240 $as_echo "$STRIP" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_STRIP"; then
6249 ac_ct_STRIP=$STRIP
6250 # Extract the first word of "strip", so it can be a program name with args.
6251 set dummy strip; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_STRIP"; then
6258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_ac_ct_STRIP="strip"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6278 if test -n "$ac_ct_STRIP"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6280 $as_echo "$ac_ct_STRIP" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286 if test "x$ac_ct_STRIP" = x; then
6287 STRIP=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 STRIP=$ac_ct_STRIP
6296 fi
6297 else
6298 STRIP="$ac_cv_prog_STRIP"
6299 fi
6300
6301 test -z "$STRIP" && STRIP=:
6302
6303
6304
6305
6306
6307
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_RANLIB+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$RANLIB"; then
6317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 RANLIB=$ac_cv_prog_RANLIB
6337 if test -n "$RANLIB"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6339 $as_echo "$RANLIB" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344
6345
6346 fi
6347 if test -z "$ac_cv_prog_RANLIB"; then
6348 ac_ct_RANLIB=$RANLIB
6349 # Extract the first word of "ranlib", so it can be a program name with args.
6350 set dummy ranlib; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_RANLIB"; then
6357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_RANLIB="ranlib"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6377 if test -n "$ac_ct_RANLIB"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6379 $as_echo "$ac_ct_RANLIB" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385 if test "x$ac_ct_RANLIB" = x; then
6386 RANLIB=":"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 RANLIB=$ac_ct_RANLIB
6395 fi
6396 else
6397 RANLIB="$ac_cv_prog_RANLIB"
6398 fi
6399
6400 test -z "$RANLIB" && RANLIB=:
6401
6402
6403
6404
6405
6406
6407 # Determine commands to create old-style static archives.
6408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6409 old_postinstall_cmds='chmod 644 $oldlib'
6410 old_postuninstall_cmds=
6411
6412 if test -n "$RANLIB"; then
6413 case $host_os in
6414 bitrig* | openbsd*)
6415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6416 ;;
6417 *)
6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6419 ;;
6420 esac
6421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6422 fi
6423
6424 case $host_os in
6425 darwin*)
6426 lock_old_archive_extraction=yes ;;
6427 *)
6428 lock_old_archive_extraction=no ;;
6429 esac
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 # If no C compiler was specified, use CC.
6470 LTCC=${LTCC-"$CC"}
6471
6472 # If no C compiler flags were specified, use CFLAGS.
6473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6474
6475 # Allow CC to be a program name with arguments.
6476 compiler=$CC
6477
6478
6479 # Check for command to grab the raw symbol name followed by C symbol from nm.
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6482 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485
6486 # These are sane defaults that work on at least a few old systems.
6487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6488
6489 # Character class describing NM global symbol codes.
6490 symcode='[BCDEGRST]'
6491
6492 # Regexp to match symbols that can be accessed directly from C.
6493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6494
6495 # Define system-specific variables.
6496 case $host_os in
6497 aix*)
6498 symcode='[BCDT]'
6499 ;;
6500 cygwin* | mingw* | pw32* | cegcc*)
6501 symcode='[ABCDGISTW]'
6502 ;;
6503 hpux*)
6504 if test ia64 = "$host_cpu"; then
6505 symcode='[ABCDEGRST]'
6506 fi
6507 ;;
6508 irix* | nonstopux*)
6509 symcode='[BCDEGRST]'
6510 ;;
6511 osf*)
6512 symcode='[BCDEGQRST]'
6513 ;;
6514 solaris*)
6515 symcode='[BDRT]'
6516 ;;
6517 sco3.2v5*)
6518 symcode='[DT]'
6519 ;;
6520 sysv4.2uw2*)
6521 symcode='[DT]'
6522 ;;
6523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6524 symcode='[ABDT]'
6525 ;;
6526 sysv4)
6527 symcode='[DFNSTU]'
6528 ;;
6529 esac
6530
6531 # If we're using GNU nm, then use its standard symbol codes.
6532 case `$NM -V 2>&1` in
6533 *GNU* | *'with BFD'*)
6534 symcode='[ABCDGIRSTW]' ;;
6535 esac
6536
6537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6538 # Gets list of data symbols to import.
6539 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6540 # Adjust the below global symbol transforms to fixup imported variables.
6541 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6542 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6543 lt_c_name_lib_hook="\
6544 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6545 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6546 else
6547 # Disable hooks by default.
6548 lt_cv_sys_global_symbol_to_import=
6549 lt_cdecl_hook=
6550 lt_c_name_hook=
6551 lt_c_name_lib_hook=
6552 fi
6553
6554 # Transform an extracted symbol line into a proper C declaration.
6555 # Some systems (esp. on ia64) link data and code symbols differently,
6556 # so use this general approach.
6557 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6558 $lt_cdecl_hook\
6559 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6560 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6561
6562 # Transform an extracted symbol line into symbol name and symbol address
6563 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6564 $lt_c_name_hook\
6565 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6566 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6567
6568 # Transform an extracted symbol line into symbol name with lib prefix and
6569 # symbol address.
6570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6571 $lt_c_name_lib_hook\
6572 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6573 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6574 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6575
6576 # Handle CRLF in mingw tool chain
6577 opt_cr=
6578 case $build_os in
6579 mingw*)
6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6581 ;;
6582 esac
6583
6584 # Try without a prefix underscore, then with it.
6585 for ac_symprfx in "" "_"; do
6586
6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
6589
6590 # Write the raw and C identifiers.
6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592 # Fake it for dumpbin and say T for any non-static function,
6593 # D for any global variable and I for any imported variable.
6594 # Also find C++ and __fastcall symbols from MSVC++,
6595 # which start with @ or ?.
6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
6597 " {last_section=section; section=\$ 3};"\
6598 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6600 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6601 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6602 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6603 " \$ 0!~/External *\|/{next};"\
6604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6605 " {if(hide[section]) next};"\
6606 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6607 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6608 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6609 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6610 " ' prfx=^$ac_symprfx"
6611 else
6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6613 fi
6614 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6615
6616 # Check to see that the pipe works correctly.
6617 pipe_works=no
6618
6619 rm -f conftest*
6620 cat > conftest.$ac_ext <<_LT_EOF
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624 char nm_test_var;
6625 void nm_test_func(void);
6626 void nm_test_func(void){}
6627 #ifdef __cplusplus
6628 }
6629 #endif
6630 int main(){nm_test_var='a';nm_test_func();return(0);}
6631 _LT_EOF
6632
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634 (eval $ac_compile) 2>&5
6635 ac_status=$?
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6638 # Now try to grab the symbols.
6639 nlist=conftest.nm
6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6642 ac_status=$?
6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644 test $ac_status = 0; } && test -s "$nlist"; then
6645 # Try sorting and uniquifying the output.
6646 if sort "$nlist" | uniq > "$nlist"T; then
6647 mv -f "$nlist"T "$nlist"
6648 else
6649 rm -f "$nlist"T
6650 fi
6651
6652 # Make sure that we snagged all the symbols we need.
6653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6655 cat <<_LT_EOF > conftest.$ac_ext
6656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6657 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6658 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6659 relocations are performed -- see ld's documentation on pseudo-relocs. */
6660 # define LT_DLSYM_CONST
6661 #elif defined __osf__
6662 /* This system does not cope well with relocations in const data. */
6663 # define LT_DLSYM_CONST
6664 #else
6665 # define LT_DLSYM_CONST const
6666 #endif
6667
6668 #ifdef __cplusplus
6669 extern "C" {
6670 #endif
6671
6672 _LT_EOF
6673 # Now generate the symbol file.
6674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6675
6676 cat <<_LT_EOF >> conftest.$ac_ext
6677
6678 /* The mapping between symbol names and symbols. */
6679 LT_DLSYM_CONST struct {
6680 const char *name;
6681 void *address;
6682 }
6683 lt__PROGRAM__LTX_preloaded_symbols[] =
6684 {
6685 { "@PROGRAM@", (void *) 0 },
6686 _LT_EOF
6687 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6688 cat <<\_LT_EOF >> conftest.$ac_ext
6689 {0, (void *) 0}
6690 };
6691
6692 /* This works around a problem in FreeBSD linker */
6693 #ifdef FREEBSD_WORKAROUND
6694 static const void *lt_preloaded_setup() {
6695 return lt__PROGRAM__LTX_preloaded_symbols;
6696 }
6697 #endif
6698
6699 #ifdef __cplusplus
6700 }
6701 #endif
6702 _LT_EOF
6703 # Now try linking the two files.
6704 mv conftest.$ac_objext conftstm.$ac_objext
6705 lt_globsym_save_LIBS=$LIBS
6706 lt_globsym_save_CFLAGS=$CFLAGS
6707 LIBS=conftstm.$ac_objext
6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6710 (eval $ac_link) 2>&5
6711 ac_status=$?
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6714 pipe_works=yes
6715 fi
6716 LIBS=$lt_globsym_save_LIBS
6717 CFLAGS=$lt_globsym_save_CFLAGS
6718 else
6719 echo "cannot find nm_test_func in $nlist" >&5
6720 fi
6721 else
6722 echo "cannot find nm_test_var in $nlist" >&5
6723 fi
6724 else
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6726 fi
6727 else
6728 echo "$progname: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 fi
6731 rm -rf conftest* conftst*
6732
6733 # Do not use the global_symbol_pipe unless it works.
6734 if test yes = "$pipe_works"; then
6735 break
6736 else
6737 lt_cv_sys_global_symbol_pipe=
6738 fi
6739 done
6740
6741 fi
6742
6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6744 lt_cv_sys_global_symbol_to_cdecl=
6745 fi
6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6748 $as_echo "failed" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6751 $as_echo "ok" >&6; }
6752 fi
6753
6754 # Response file support.
6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6756 nm_file_list_spec='@'
6757 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6758 nm_file_list_spec='@'
6759 fi
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6798 $as_echo_n "checking for sysroot... " >&6; }
6799
6800 # Check whether --with-sysroot was given.
6801 if test "${with_sysroot+set}" = set; then :
6802 withval=$with_sysroot;
6803 else
6804 with_sysroot=no
6805 fi
6806
6807
6808 lt_sysroot=
6809 case $with_sysroot in #(
6810 yes)
6811 if test yes = "$GCC"; then
6812 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6813 fi
6814 ;; #(
6815 /*)
6816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6817 ;; #(
6818 no|'')
6819 ;; #(
6820 *)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6822 $as_echo "$with_sysroot" >&6; }
6823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6824 ;;
6825 esac
6826
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6828 $as_echo "${lt_sysroot:-no}" >&6; }
6829
6830
6831
6832
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6835 $as_echo_n "checking for a working dd... " >&6; }
6836 if ${ac_cv_path_lt_DD+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 printf 0123456789abcdef0123456789abcdef >conftest.i
6840 cat conftest.i conftest.i >conftest2.i
6841 : ${lt_DD:=$DD}
6842 if test -z "$lt_DD"; then
6843 ac_path_lt_DD_found=false
6844 # Loop through the user's path and test for each of PROGNAME-LIST
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_prog in dd; do
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6853 as_fn_executable_p "$ac_path_lt_DD" || continue
6854 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6855 cmp -s conftest.i conftest.out \
6856 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6857 fi
6858 $ac_path_lt_DD_found && break 3
6859 done
6860 done
6861 done
6862 IFS=$as_save_IFS
6863 if test -z "$ac_cv_path_lt_DD"; then
6864 :
6865 fi
6866 else
6867 ac_cv_path_lt_DD=$lt_DD
6868 fi
6869
6870 rm -f conftest.i conftest2.i conftest.out
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6873 $as_echo "$ac_cv_path_lt_DD" >&6; }
6874
6875
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6877 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6878 if ${lt_cv_truncate_bin+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 printf 0123456789abcdef0123456789abcdef >conftest.i
6882 cat conftest.i conftest.i >conftest2.i
6883 lt_cv_truncate_bin=
6884 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6885 cmp -s conftest.i conftest.out \
6886 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6887 fi
6888 rm -f conftest.i conftest2.i conftest.out
6889 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6892 $as_echo "$lt_cv_truncate_bin" >&6; }
6893
6894
6895
6896
6897
6898
6899
6900 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6901 func_cc_basename ()
6902 {
6903 for cc_temp in $*""; do
6904 case $cc_temp in
6905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6907 \-*) ;;
6908 *) break;;
6909 esac
6910 done
6911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6912 }
6913
6914 # Check whether --enable-libtool-lock was given.
6915 if test "${enable_libtool_lock+set}" = set; then :
6916 enableval=$enable_libtool_lock;
6917 fi
6918
6919 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6920
6921 # Some flags need to be propagated to the compiler or linker for good
6922 # libtool support.
6923 case $host in
6924 ia64-*-hpux*)
6925 # Find out what ABI is being produced by ac_compile, and set mode
6926 # options accordingly.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6930 ac_status=$?
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.$ac_objext` in
6934 *ELF-32*)
6935 HPUX_IA64_MODE=32
6936 ;;
6937 *ELF-64*)
6938 HPUX_IA64_MODE=64
6939 ;;
6940 esac
6941 fi
6942 rm -rf conftest*
6943 ;;
6944 *-*-irix6*)
6945 # Find out what ABI is being produced by ac_compile, and set linker
6946 # options accordingly.
6947 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949 (eval $ac_compile) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; then
6953 if test yes = "$lt_cv_prog_gnu_ld"; then
6954 case `/usr/bin/file conftest.$ac_objext` in
6955 *32-bit*)
6956 LD="${LD-ld} -melf32bsmip"
6957 ;;
6958 *N32*)
6959 LD="${LD-ld} -melf32bmipn32"
6960 ;;
6961 *64-bit*)
6962 LD="${LD-ld} -melf64bmip"
6963 ;;
6964 esac
6965 else
6966 case `/usr/bin/file conftest.$ac_objext` in
6967 *32-bit*)
6968 LD="${LD-ld} -32"
6969 ;;
6970 *N32*)
6971 LD="${LD-ld} -n32"
6972 ;;
6973 *64-bit*)
6974 LD="${LD-ld} -64"
6975 ;;
6976 esac
6977 fi
6978 fi
6979 rm -rf conftest*
6980 ;;
6981
6982 mips64*-*linux*)
6983 # Find out what ABI is being produced by ac_compile, and set linker
6984 # options accordingly.
6985 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6988 ac_status=$?
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 emul=elf
6992 case `/usr/bin/file conftest.$ac_objext` in
6993 *32-bit*)
6994 emul="${emul}32"
6995 ;;
6996 *64-bit*)
6997 emul="${emul}64"
6998 ;;
6999 esac
7000 case `/usr/bin/file conftest.$ac_objext` in
7001 *MSB*)
7002 emul="${emul}btsmip"
7003 ;;
7004 *LSB*)
7005 emul="${emul}ltsmip"
7006 ;;
7007 esac
7008 case `/usr/bin/file conftest.$ac_objext` in
7009 *N32*)
7010 emul="${emul}n32"
7011 ;;
7012 esac
7013 LD="${LD-ld} -m $emul"
7014 fi
7015 rm -rf conftest*
7016 ;;
7017
7018 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7019 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7020 # Find out what ABI is being produced by ac_compile, and set linker
7021 # options accordingly. Note that the listed cases only cover the
7022 # situations where additional linker options are needed (such as when
7023 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7024 # vice versa); the common cases where no linker options are needed do
7025 # not appear in the list.
7026 echo 'int i;' > conftest.$ac_ext
7027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028 (eval $ac_compile) 2>&5
7029 ac_status=$?
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031 test $ac_status = 0; }; then
7032 case `/usr/bin/file conftest.o` in
7033 *32-bit*)
7034 case $host in
7035 x86_64-*kfreebsd*-gnu)
7036 LD="${LD-ld} -m elf_i386_fbsd"
7037 ;;
7038 x86_64-*linux*)
7039 case `/usr/bin/file conftest.o` in
7040 *x86-64*)
7041 LD="${LD-ld} -m elf32_x86_64"
7042 ;;
7043 *)
7044 LD="${LD-ld} -m elf_i386"
7045 ;;
7046 esac
7047 ;;
7048 powerpc64le-*linux*)
7049 LD="${LD-ld} -m elf32lppclinux"
7050 ;;
7051 powerpc64-*linux*)
7052 LD="${LD-ld} -m elf32ppclinux"
7053 ;;
7054 s390x-*linux*)
7055 LD="${LD-ld} -m elf_s390"
7056 ;;
7057 sparc64-*linux*)
7058 LD="${LD-ld} -m elf32_sparc"
7059 ;;
7060 esac
7061 ;;
7062 *64-bit*)
7063 case $host in
7064 x86_64-*kfreebsd*-gnu)
7065 LD="${LD-ld} -m elf_x86_64_fbsd"
7066 ;;
7067 x86_64-*linux*)
7068 LD="${LD-ld} -m elf_x86_64"
7069 ;;
7070 powerpcle-*linux*)
7071 LD="${LD-ld} -m elf64lppc"
7072 ;;
7073 powerpc-*linux*)
7074 LD="${LD-ld} -m elf64ppc"
7075 ;;
7076 s390*-*linux*|s390*-*tpf*)
7077 LD="${LD-ld} -m elf64_s390"
7078 ;;
7079 sparc*-*linux*)
7080 LD="${LD-ld} -m elf64_sparc"
7081 ;;
7082 esac
7083 ;;
7084 esac
7085 fi
7086 rm -rf conftest*
7087 ;;
7088
7089 *-*-sco3.2v5*)
7090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7091 SAVE_CFLAGS=$CFLAGS
7092 CFLAGS="$CFLAGS -belf"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7095 if ${lt_cv_cc_needs_belf+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106
7107 int
7108 main ()
7109 {
7110
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 lt_cv_cc_needs_belf=yes
7117 else
7118 lt_cv_cc_needs_belf=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext \
7121 conftest$ac_exeext conftest.$ac_ext
7122 ac_ext=c
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7127
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7131 if test yes != "$lt_cv_cc_needs_belf"; then
7132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7133 CFLAGS=$SAVE_CFLAGS
7134 fi
7135 ;;
7136 *-*solaris*)
7137 # Find out what ABI is being produced by ac_compile, and set linker
7138 # options accordingly.
7139 echo 'int i;' > conftest.$ac_ext
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141 (eval $ac_compile) 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; then
7145 case `/usr/bin/file conftest.o` in
7146 *64-bit*)
7147 case $lt_cv_prog_gnu_ld in
7148 yes*)
7149 case $host in
7150 i?86-*-solaris*|x86_64-*-solaris*)
7151 LD="${LD-ld} -m elf_x86_64"
7152 ;;
7153 sparc*-*-solaris*)
7154 LD="${LD-ld} -m elf64_sparc"
7155 ;;
7156 esac
7157 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7158 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7159 LD=${LD-ld}_sol2
7160 fi
7161 ;;
7162 *)
7163 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7164 LD="${LD-ld} -64"
7165 fi
7166 ;;
7167 esac
7168 ;;
7169 esac
7170 fi
7171 rm -rf conftest*
7172 ;;
7173 esac
7174
7175 need_locks=$enable_libtool_lock
7176
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}mt; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$MANIFEST_TOOL"; then
7186 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7206 if test -n "$MANIFEST_TOOL"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7208 $as_echo "$MANIFEST_TOOL" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7217 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7218 # Extract the first word of "mt", so it can be a program name with args.
7219 set dummy mt; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_MANIFEST_TOOL"; then
7226 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7246 if test -n "$ac_ct_MANIFEST_TOOL"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7248 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7255 MANIFEST_TOOL=":"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7264 fi
7265 else
7266 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7267 fi
7268
7269 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7271 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7272 if ${lt_cv_path_mainfest_tool+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 lt_cv_path_mainfest_tool=no
7276 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7277 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7278 cat conftest.err >&5
7279 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7280 lt_cv_path_mainfest_tool=yes
7281 fi
7282 rm -f conftest*
7283 fi
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7285 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7286 if test yes != "$lt_cv_path_mainfest_tool"; then
7287 MANIFEST_TOOL=:
7288 fi
7289
7290
7291
7292
7293
7294
7295 case $host_os in
7296 rhapsody* | darwin*)
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$DSYMUTIL"; then
7306 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7326 if test -n "$DSYMUTIL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7328 $as_echo "$DSYMUTIL" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_DSYMUTIL"; then
7337 ac_ct_DSYMUTIL=$DSYMUTIL
7338 # Extract the first word of "dsymutil", so it can be a program name with args.
7339 set dummy dsymutil; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$ac_ct_DSYMUTIL"; then
7346 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7366 if test -n "$ac_ct_DSYMUTIL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7368 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374 if test "x$ac_ct_DSYMUTIL" = x; then
7375 DSYMUTIL=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383 DSYMUTIL=$ac_ct_DSYMUTIL
7384 fi
7385 else
7386 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7387 fi
7388
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_NMEDIT+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$NMEDIT"; then
7398 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 NMEDIT=$ac_cv_prog_NMEDIT
7418 if test -n "$NMEDIT"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7420 $as_echo "$NMEDIT" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_NMEDIT"; then
7429 ac_ct_NMEDIT=$NMEDIT
7430 # Extract the first word of "nmedit", so it can be a program name with args.
7431 set dummy nmedit; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$ac_ct_NMEDIT"; then
7438 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7458 if test -n "$ac_ct_NMEDIT"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7460 $as_echo "$ac_ct_NMEDIT" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466 if test "x$ac_ct_NMEDIT" = x; then
7467 NMEDIT=":"
7468 else
7469 case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475 NMEDIT=$ac_ct_NMEDIT
7476 fi
7477 else
7478 NMEDIT="$ac_cv_prog_NMEDIT"
7479 fi
7480
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_LIPO+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$LIPO"; then
7490 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 LIPO=$ac_cv_prog_LIPO
7510 if test -n "$LIPO"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7512 $as_echo "$LIPO" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 fi
7520 if test -z "$ac_cv_prog_LIPO"; then
7521 ac_ct_LIPO=$LIPO
7522 # Extract the first word of "lipo", so it can be a program name with args.
7523 set dummy lipo; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$ac_ct_LIPO"; then
7530 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_ac_ct_LIPO="lipo"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7550 if test -n "$ac_ct_LIPO"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7552 $as_echo "$ac_ct_LIPO" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558 if test "x$ac_ct_LIPO" = x; then
7559 LIPO=":"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567 LIPO=$ac_ct_LIPO
7568 fi
7569 else
7570 LIPO="$ac_cv_prog_LIPO"
7571 fi
7572
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}otool; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_OTOOL+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$OTOOL"; then
7582 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 OTOOL=$ac_cv_prog_OTOOL
7602 if test -n "$OTOOL"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7604 $as_echo "$OTOOL" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611 fi
7612 if test -z "$ac_cv_prog_OTOOL"; then
7613 ac_ct_OTOOL=$OTOOL
7614 # Extract the first word of "otool", so it can be a program name with args.
7615 set dummy otool; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$ac_ct_OTOOL"; then
7622 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_OTOOL="otool"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7642 if test -n "$ac_ct_OTOOL"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7644 $as_echo "$ac_ct_OTOOL" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650 if test "x$ac_ct_OTOOL" = x; then
7651 OTOOL=":"
7652 else
7653 case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659 OTOOL=$ac_ct_OTOOL
7660 fi
7661 else
7662 OTOOL="$ac_cv_prog_OTOOL"
7663 fi
7664
7665 if test -n "$ac_tool_prefix"; then
7666 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7667 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_OTOOL64+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$OTOOL64"; then
7674 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 OTOOL64=$ac_cv_prog_OTOOL64
7694 if test -n "$OTOOL64"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7696 $as_echo "$OTOOL64" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703 fi
7704 if test -z "$ac_cv_prog_OTOOL64"; then
7705 ac_ct_OTOOL64=$OTOOL64
7706 # Extract the first word of "otool64", so it can be a program name with args.
7707 set dummy otool64; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$ac_ct_OTOOL64"; then
7714 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_ac_ct_OTOOL64="otool64"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7734 if test -n "$ac_ct_OTOOL64"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7736 $as_echo "$ac_ct_OTOOL64" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742 if test "x$ac_ct_OTOOL64" = x; then
7743 OTOOL64=":"
7744 else
7745 case $cross_compiling:$ac_tool_warned in
7746 yes:)
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749 ac_tool_warned=yes ;;
7750 esac
7751 OTOOL64=$ac_ct_OTOOL64
7752 fi
7753 else
7754 OTOOL64="$ac_cv_prog_OTOOL64"
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7784 $as_echo_n "checking for -single_module linker flag... " >&6; }
7785 if ${lt_cv_apple_cc_single_mod+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 lt_cv_apple_cc_single_mod=no
7789 if test -z "$LT_MULTI_MODULE"; then
7790 # By default we will add the -single_module flag. You can override
7791 # by either setting the environment variable LT_MULTI_MODULE
7792 # non-empty at configure time, or by adding -multi_module to the
7793 # link flags.
7794 rm -rf libconftest.dylib*
7795 echo "int foo(void){return 1;}" > conftest.c
7796 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7797 -dynamiclib -Wl,-single_module conftest.c" >&5
7798 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7800 _lt_result=$?
7801 # If there is a non-empty error log, and "single_module"
7802 # appears in it, assume the flag caused a linker warning
7803 if test -s conftest.err && $GREP single_module conftest.err; then
7804 cat conftest.err >&5
7805 # Otherwise, if the output was created with a 0 exit code from
7806 # the compiler, it worked.
7807 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7808 lt_cv_apple_cc_single_mod=yes
7809 else
7810 cat conftest.err >&5
7811 fi
7812 rm -rf libconftest.dylib*
7813 rm -f conftest.*
7814 fi
7815 fi
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7820 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7821 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 lt_cv_ld_exported_symbols_list=no
7825 save_LDFLAGS=$LDFLAGS
7826 echo "_main" > conftest.sym
7827 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830
7831 int
7832 main ()
7833 {
7834
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840 lt_cv_ld_exported_symbols_list=yes
7841 else
7842 lt_cv_ld_exported_symbols_list=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 LDFLAGS=$save_LDFLAGS
7847
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7850 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7853 $as_echo_n "checking for -force_load linker flag... " >&6; }
7854 if ${lt_cv_ld_force_load+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 lt_cv_ld_force_load=no
7858 cat > conftest.c << _LT_EOF
7859 int forced_loaded() { return 2;}
7860 _LT_EOF
7861 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7862 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7863 echo "$AR cru libconftest.a conftest.o" >&5
7864 $AR cru libconftest.a conftest.o 2>&5
7865 echo "$RANLIB libconftest.a" >&5
7866 $RANLIB libconftest.a 2>&5
7867 cat > conftest.c << _LT_EOF
7868 int main() { return 0;}
7869 _LT_EOF
7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7871 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7872 _lt_result=$?
7873 if test -s conftest.err && $GREP force_load conftest.err; then
7874 cat conftest.err >&5
7875 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7876 lt_cv_ld_force_load=yes
7877 else
7878 cat conftest.err >&5
7879 fi
7880 rm -f conftest.err libconftest.a conftest conftest.c
7881 rm -rf conftest.dSYM
7882
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7885 $as_echo "$lt_cv_ld_force_load" >&6; }
7886 case $host_os in
7887 rhapsody* | darwin1.[012])
7888 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7889 darwin1.*)
7890 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7891 darwin*) # darwin 5.x on
7892 # if running on 10.5 or later, the deployment target defaults
7893 # to the OS version, if on x86, and 10.4, the deployment
7894 # target defaults to 10.4. Don't you love it?
7895 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7896 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7897 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7898 10.[012][,.]*)
7899 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7900 10.*)
7901 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7902 esac
7903 ;;
7904 esac
7905 if test yes = "$lt_cv_apple_cc_single_mod"; then
7906 _lt_dar_single_mod='$single_module'
7907 fi
7908 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7909 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7910 else
7911 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7912 fi
7913 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7914 _lt_dsymutil='~$DSYMUTIL $lib || :'
7915 else
7916 _lt_dsymutil=
7917 fi
7918 ;;
7919 esac
7920
7921 # func_munge_path_list VARIABLE PATH
7922 # -----------------------------------
7923 # VARIABLE is name of variable containing _space_ separated list of
7924 # directories to be munged by the contents of PATH, which is string
7925 # having a format:
7926 # "DIR[:DIR]:"
7927 # string "DIR[ DIR]" will be prepended to VARIABLE
7928 # ":DIR[:DIR]"
7929 # string "DIR[ DIR]" will be appended to VARIABLE
7930 # "DIRP[:DIRP]::[DIRA:]DIRA"
7931 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7932 # "DIRA[ DIRA]" will be appended to VARIABLE
7933 # "DIR[:DIR]"
7934 # VARIABLE will be replaced by "DIR[ DIR]"
7935 func_munge_path_list ()
7936 {
7937 case x$2 in
7938 x)
7939 ;;
7940 *:)
7941 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7942 ;;
7943 x:*)
7944 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7945 ;;
7946 *::*)
7947 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7948 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7949 ;;
7950 *)
7951 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7952 ;;
7953 esac
7954 }
7955
7956 for ac_header in dlfcn.h
7957 do :
7958 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7959 "
7960 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DLFCN_H 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969
7970
7971
7972
7973 # Set options
7974
7975
7976
7977 enable_dlopen=no
7978
7979
7980 enable_win32_dll=no
7981
7982
7983 # Check whether --enable-shared was given.
7984 if test "${enable_shared+set}" = set; then :
7985 enableval=$enable_shared; p=${PACKAGE-default}
7986 case $enableval in
7987 yes) enable_shared=yes ;;
7988 no) enable_shared=no ;;
7989 *)
7990 enable_shared=no
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7993 for pkg in $enableval; do
7994 IFS=$lt_save_ifs
7995 if test "X$pkg" = "X$p"; then
7996 enable_shared=yes
7997 fi
7998 done
7999 IFS=$lt_save_ifs
8000 ;;
8001 esac
8002 else
8003 enable_shared=yes
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 # Check whether --enable-static was given.
8015 if test "${enable_static+set}" = set; then :
8016 enableval=$enable_static; p=${PACKAGE-default}
8017 case $enableval in
8018 yes) enable_static=yes ;;
8019 no) enable_static=no ;;
8020 *)
8021 enable_static=no
8022 # Look at the argument we got. We use all the common list separators.
8023 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8024 for pkg in $enableval; do
8025 IFS=$lt_save_ifs
8026 if test "X$pkg" = "X$p"; then
8027 enable_static=yes
8028 fi
8029 done
8030 IFS=$lt_save_ifs
8031 ;;
8032 esac
8033 else
8034 enable_static=yes
8035 fi
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 # Check whether --with-pic was given.
8047 if test "${with_pic+set}" = set; then :
8048 withval=$with_pic; lt_p=${PACKAGE-default}
8049 case $withval in
8050 yes|no) pic_mode=$withval ;;
8051 *)
8052 pic_mode=default
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8055 for lt_pkg in $withval; do
8056 IFS=$lt_save_ifs
8057 if test "X$lt_pkg" = "X$lt_p"; then
8058 pic_mode=yes
8059 fi
8060 done
8061 IFS=$lt_save_ifs
8062 ;;
8063 esac
8064 else
8065 pic_mode=default
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075 # Check whether --enable-fast-install was given.
8076 if test "${enable_fast_install+set}" = set; then :
8077 enableval=$enable_fast_install; p=${PACKAGE-default}
8078 case $enableval in
8079 yes) enable_fast_install=yes ;;
8080 no) enable_fast_install=no ;;
8081 *)
8082 enable_fast_install=no
8083 # Look at the argument we got. We use all the common list separators.
8084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8085 for pkg in $enableval; do
8086 IFS=$lt_save_ifs
8087 if test "X$pkg" = "X$p"; then
8088 enable_fast_install=yes
8089 fi
8090 done
8091 IFS=$lt_save_ifs
8092 ;;
8093 esac
8094 else
8095 enable_fast_install=yes
8096 fi
8097
8098
8099
8100
8101
8102
8103
8104
8105 shared_archive_member_spec=
8106 case $host,$enable_shared in
8107 power*-*-aix[5-9]*,yes)
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8109 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8110
8111 # Check whether --with-aix-soname was given.
8112 if test "${with_aix_soname+set}" = set; then :
8113 withval=$with_aix_soname; case $withval in
8114 aix|svr4|both)
8115 ;;
8116 *)
8117 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8118 ;;
8119 esac
8120 lt_cv_with_aix_soname=$with_aix_soname
8121 else
8122 if ${lt_cv_with_aix_soname+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 lt_cv_with_aix_soname=aix
8126 fi
8127
8128 with_aix_soname=$lt_cv_with_aix_soname
8129 fi
8130
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8132 $as_echo "$with_aix_soname" >&6; }
8133 if test aix != "$with_aix_soname"; then
8134 # For the AIX way of multilib, we name the shared archive member
8135 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8136 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8137 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8138 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8139 if test 64 = "${OBJECT_MODE-32}"; then
8140 shared_archive_member_spec=shr_64
8141 else
8142 shared_archive_member_spec=shr
8143 fi
8144 fi
8145 ;;
8146 *)
8147 with_aix_soname=aix
8148 ;;
8149 esac
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160 # This can be used to rebuild libtool when needed
8161 LIBTOOL_DEPS=$ltmain
8162
8163 # Always use our own libtool.
8164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 test -z "$LN_S" && LN_S="ln -s"
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 if test -n "${ZSH_VERSION+set}"; then
8211 setopt NO_GLOB_SUBST
8212 fi
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8215 $as_echo_n "checking for objdir... " >&6; }
8216 if ${lt_cv_objdir+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 rm -f .libs 2>/dev/null
8220 mkdir .libs 2>/dev/null
8221 if test -d .libs; then
8222 lt_cv_objdir=.libs
8223 else
8224 # MS-DOS does not allow filenames that begin with a dot.
8225 lt_cv_objdir=_libs
8226 fi
8227 rmdir .libs 2>/dev/null
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8230 $as_echo "$lt_cv_objdir" >&6; }
8231 objdir=$lt_cv_objdir
8232
8233
8234
8235
8236
8237 cat >>confdefs.h <<_ACEOF
8238 #define LT_OBJDIR "$lt_cv_objdir/"
8239 _ACEOF
8240
8241
8242
8243
8244 case $host_os in
8245 aix3*)
8246 # AIX sometimes has problems with the GCC collect2 program. For some
8247 # reason, if we set the COLLECT_NAMES environment variable, the problems
8248 # vanish in a puff of smoke.
8249 if test set != "${COLLECT_NAMES+set}"; then
8250 COLLECT_NAMES=
8251 export COLLECT_NAMES
8252 fi
8253 ;;
8254 esac
8255
8256 # Global variables:
8257 ofile=libtool
8258 can_build_shared=yes
8259
8260 # All known linkers require a '.a' archive for static linking (except MSVC,
8261 # which needs '.lib').
8262 libext=a
8263
8264 with_gnu_ld=$lt_cv_prog_gnu_ld
8265
8266 old_CC=$CC
8267 old_CFLAGS=$CFLAGS
8268
8269 # Set sane defaults for various variables
8270 test -z "$CC" && CC=cc
8271 test -z "$LTCC" && LTCC=$CC
8272 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8273 test -z "$LD" && LD=ld
8274 test -z "$ac_objext" && ac_objext=o
8275
8276 func_cc_basename $compiler
8277 cc_basename=$func_cc_basename_result
8278
8279
8280 # Only perform the check for file, if the check method requires it
8281 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8282 case $deplibs_check_method in
8283 file_magic*)
8284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8286 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8287 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 case $MAGIC_CMD in
8291 [\\/*] | ?:[\\/]*)
8292 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8293 ;;
8294 *)
8295 lt_save_MAGIC_CMD=$MAGIC_CMD
8296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8298 for ac_dir in $ac_dummy; do
8299 IFS=$lt_save_ifs
8300 test -z "$ac_dir" && ac_dir=.
8301 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8302 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8303 if test -n "$file_magic_test_file"; then
8304 case $deplibs_check_method in
8305 "file_magic "*)
8306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8309 $EGREP "$file_magic_regex" > /dev/null; then
8310 :
8311 else
8312 cat <<_LT_EOF 1>&2
8313
8314 *** Warning: the command libtool uses to detect shared libraries,
8315 *** $file_magic_cmd, produces output that libtool cannot recognize.
8316 *** The result is that libtool may fail to recognize shared libraries
8317 *** as such. This will affect the creation of libtool libraries that
8318 *** depend on shared libraries, but programs linked with such libtool
8319 *** libraries will work regardless of this problem. Nevertheless, you
8320 *** may want to report the problem to your system manager and/or to
8321 *** bug-libtool@gnu.org
8322
8323 _LT_EOF
8324 fi ;;
8325 esac
8326 fi
8327 break
8328 fi
8329 done
8330 IFS=$lt_save_ifs
8331 MAGIC_CMD=$lt_save_MAGIC_CMD
8332 ;;
8333 esac
8334 fi
8335
8336 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8337 if test -n "$MAGIC_CMD"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8339 $as_echo "$MAGIC_CMD" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346
8347
8348
8349 if test -z "$lt_cv_path_MAGIC_CMD"; then
8350 if test -n "$ac_tool_prefix"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8352 $as_echo_n "checking for file... " >&6; }
8353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 case $MAGIC_CMD in
8357 [\\/*] | ?:[\\/]*)
8358 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8359 ;;
8360 *)
8361 lt_save_MAGIC_CMD=$MAGIC_CMD
8362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8364 for ac_dir in $ac_dummy; do
8365 IFS=$lt_save_ifs
8366 test -z "$ac_dir" && ac_dir=.
8367 if test -f "$ac_dir/file"; then
8368 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8369 if test -n "$file_magic_test_file"; then
8370 case $deplibs_check_method in
8371 "file_magic "*)
8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8373 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8375 $EGREP "$file_magic_regex" > /dev/null; then
8376 :
8377 else
8378 cat <<_LT_EOF 1>&2
8379
8380 *** Warning: the command libtool uses to detect shared libraries,
8381 *** $file_magic_cmd, produces output that libtool cannot recognize.
8382 *** The result is that libtool may fail to recognize shared libraries
8383 *** as such. This will affect the creation of libtool libraries that
8384 *** depend on shared libraries, but programs linked with such libtool
8385 *** libraries will work regardless of this problem. Nevertheless, you
8386 *** may want to report the problem to your system manager and/or to
8387 *** bug-libtool@gnu.org
8388
8389 _LT_EOF
8390 fi ;;
8391 esac
8392 fi
8393 break
8394 fi
8395 done
8396 IFS=$lt_save_ifs
8397 MAGIC_CMD=$lt_save_MAGIC_CMD
8398 ;;
8399 esac
8400 fi
8401
8402 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8403 if test -n "$MAGIC_CMD"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8405 $as_echo "$MAGIC_CMD" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409 fi
8410
8411
8412 else
8413 MAGIC_CMD=:
8414 fi
8415 fi
8416
8417 fi
8418 ;;
8419 esac
8420
8421 # Use C for the default configuration in the libtool script
8422
8423 lt_save_CC=$CC
8424 ac_ext=c
8425 ac_cpp='$CPP $CPPFLAGS'
8426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8429
8430
8431 # Source file extension for C test sources.
8432 ac_ext=c
8433
8434 # Object file extension for compiled C test sources.
8435 objext=o
8436 objext=$objext
8437
8438 # Code to be used in simple compile tests
8439 lt_simple_compile_test_code="int some_variable = 0;"
8440
8441 # Code to be used in simple link tests
8442 lt_simple_link_test_code='int main(){return(0);}'
8443
8444
8445
8446
8447
8448
8449
8450 # If no C compiler was specified, use CC.
8451 LTCC=${LTCC-"$CC"}
8452
8453 # If no C compiler flags were specified, use CFLAGS.
8454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8455
8456 # Allow CC to be a program name with arguments.
8457 compiler=$CC
8458
8459 # Save the default compiler, since it gets overwritten when the other
8460 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8461 compiler_DEFAULT=$CC
8462
8463 # save warnings/boilerplate of simple test code
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8467 _lt_compiler_boilerplate=`cat conftest.err`
8468 $RM conftest*
8469
8470 ac_outfile=conftest.$ac_objext
8471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8473 _lt_linker_boilerplate=`cat conftest.err`
8474 $RM -r conftest*
8475
8476
8477 ## CAVEAT EMPTOR:
8478 ## There is no encapsulation within the following macros, do not change
8479 ## the running order or otherwise move them around unless you know exactly
8480 ## what you are doing...
8481 if test -n "$compiler"; then
8482
8483 lt_prog_compiler_no_builtin_flag=
8484
8485 if test yes = "$GCC"; then
8486 case $cc_basename in
8487 nvcc*)
8488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8489 *)
8490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8491 esac
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8494 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8495 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 lt_cv_prog_compiler_rtti_exceptions=no
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8502 # Insert the option either (1) after the last *FLAGS variable, or
8503 # (2) before a word containing "conftest.", or (3) at the end.
8504 # Note that $ac_compile itself does not contain backslashes and begins
8505 # with a dollar sign (not a hyphen), so the echo should work correctly.
8506 # The option is referenced via a variable to avoid confusing sed.
8507 lt_compile=`echo "$ac_compile" | $SED \
8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510 -e 's:$: $lt_compiler_flag:'`
8511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8512 (eval "$lt_compile" 2>conftest.err)
8513 ac_status=$?
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 if (exit $ac_status) && test -s "$ac_outfile"; then
8517 # The compiler can only warn and ignore the option if not recognized
8518 # So say no if there are warnings other than the usual output.
8519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8522 lt_cv_prog_compiler_rtti_exceptions=yes
8523 fi
8524 fi
8525 $RM conftest*
8526
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8529 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8530
8531 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8533 else
8534 :
8535 fi
8536
8537 fi
8538
8539
8540
8541
8542
8543
8544 lt_prog_compiler_wl=
8545 lt_prog_compiler_pic=
8546 lt_prog_compiler_static=
8547
8548
8549 if test yes = "$GCC"; then
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_static='-static'
8552
8553 case $host_os in
8554 aix*)
8555 # All AIX code is PIC.
8556 if test ia64 = "$host_cpu"; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static='-Bstatic'
8559 fi
8560 lt_prog_compiler_pic='-fPIC'
8561 ;;
8562
8563 amigaos*)
8564 case $host_cpu in
8565 powerpc)
8566 # see comment about AmigaOS4 .so support
8567 lt_prog_compiler_pic='-fPIC'
8568 ;;
8569 m68k)
8570 # FIXME: we need at least 68020 code to build shared libraries, but
8571 # adding the '-m68020' flag to GCC prevents building anything better,
8572 # like '-m68040'.
8573 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8574 ;;
8575 esac
8576 ;;
8577
8578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8579 # PIC is the default for these OSes.
8580 ;;
8581
8582 mingw* | cygwin* | pw32* | os2* | cegcc*)
8583 # This hack is so that the source file can tell whether it is being
8584 # built for inclusion in a dll (and should export symbols for example).
8585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8586 # (--disable-auto-import) libraries
8587 lt_prog_compiler_pic='-DDLL_EXPORT'
8588 case $host_os in
8589 os2*)
8590 lt_prog_compiler_static='$wl-static'
8591 ;;
8592 esac
8593 ;;
8594
8595 darwin* | rhapsody*)
8596 # PIC is the default on this platform
8597 # Common symbols not allowed in MH_DYLIB files
8598 lt_prog_compiler_pic='-fno-common'
8599 ;;
8600
8601 haiku*)
8602 # PIC is the default for Haiku.
8603 # The "-static" flag exists, but is broken.
8604 lt_prog_compiler_static=
8605 ;;
8606
8607 hpux*)
8608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8610 # sets the default TLS model and affects inlining.
8611 case $host_cpu in
8612 hppa*64*)
8613 # +Z the default
8614 ;;
8615 *)
8616 lt_prog_compiler_pic='-fPIC'
8617 ;;
8618 esac
8619 ;;
8620
8621 interix[3-9]*)
8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8623 # Instead, we relocate shared libraries at runtime.
8624 ;;
8625
8626 msdosdjgpp*)
8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
8628 # on systems that don't support them.
8629 lt_prog_compiler_can_build_shared=no
8630 enable_shared=no
8631 ;;
8632
8633 *nto* | *qnx*)
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
8635 # it will coredump.
8636 lt_prog_compiler_pic='-fPIC -shared'
8637 ;;
8638
8639 sysv4*MP*)
8640 if test -d /usr/nec; then
8641 lt_prog_compiler_pic=-Kconform_pic
8642 fi
8643 ;;
8644
8645 *)
8646 lt_prog_compiler_pic='-fPIC'
8647 ;;
8648 esac
8649
8650 case $cc_basename in
8651 nvcc*) # Cuda Compiler Driver 2.2
8652 lt_prog_compiler_wl='-Xlinker '
8653 if test -n "$lt_prog_compiler_pic"; then
8654 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8655 fi
8656 ;;
8657 esac
8658 else
8659 # PORTME Check for flag to pass linker flags through the system compiler.
8660 case $host_os in
8661 aix*)
8662 lt_prog_compiler_wl='-Wl,'
8663 if test ia64 = "$host_cpu"; then
8664 # AIX 5 now supports IA64 processor
8665 lt_prog_compiler_static='-Bstatic'
8666 else
8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8668 fi
8669 ;;
8670
8671 darwin* | rhapsody*)
8672 # PIC is the default on this platform
8673 # Common symbols not allowed in MH_DYLIB files
8674 lt_prog_compiler_pic='-fno-common'
8675 case $cc_basename in
8676 nagfor*)
8677 # NAG Fortran compiler
8678 lt_prog_compiler_wl='-Wl,-Wl,,'
8679 lt_prog_compiler_pic='-PIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 ;;
8682 esac
8683 ;;
8684
8685 mingw* | cygwin* | pw32* | os2* | cegcc*)
8686 # This hack is so that the source file can tell whether it is being
8687 # built for inclusion in a dll (and should export symbols for example).
8688 lt_prog_compiler_pic='-DDLL_EXPORT'
8689 case $host_os in
8690 os2*)
8691 lt_prog_compiler_static='$wl-static'
8692 ;;
8693 esac
8694 ;;
8695
8696 hpux9* | hpux10* | hpux11*)
8697 lt_prog_compiler_wl='-Wl,'
8698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8699 # not for PA HP-UX.
8700 case $host_cpu in
8701 hppa*64*|ia64*)
8702 # +Z the default
8703 ;;
8704 *)
8705 lt_prog_compiler_pic='+Z'
8706 ;;
8707 esac
8708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8709 lt_prog_compiler_static='$wl-a ${wl}archive'
8710 ;;
8711
8712 irix5* | irix6* | nonstopux*)
8713 lt_prog_compiler_wl='-Wl,'
8714 # PIC (with -KPIC) is the default.
8715 lt_prog_compiler_static='-non_shared'
8716 ;;
8717
8718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8719 case $cc_basename in
8720 # old Intel for x86_64, which still supported -KPIC.
8721 ecc*)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-static'
8725 ;;
8726 # icc used to be incompatible with GCC.
8727 # ICC 10 doesn't accept -KPIC any more.
8728 icc* | ifort*)
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-fPIC'
8731 lt_prog_compiler_static='-static'
8732 ;;
8733 # Lahey Fortran 8.1.
8734 lf95*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='--shared'
8737 lt_prog_compiler_static='--static'
8738 ;;
8739 nagfor*)
8740 # NAG Fortran compiler
8741 lt_prog_compiler_wl='-Wl,-Wl,,'
8742 lt_prog_compiler_pic='-PIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745 tcc*)
8746 # Fabrice Bellard et al's Tiny C Compiler
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-fPIC'
8749 lt_prog_compiler_static='-static'
8750 ;;
8751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8752 # Portland Group compilers (*not* the Pentium gcc compiler,
8753 # which looks to be a dead project)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-fpic'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758 ccc*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # All Alpha code is PIC.
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763 xl* | bgxl* | bgf* | mpixl*)
8764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='-qpic'
8767 lt_prog_compiler_static='-qstaticlink'
8768 ;;
8769 *)
8770 case `$CC -V 2>&1 | sed 5q` in
8771 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 lt_prog_compiler_wl=''
8776 ;;
8777 *Sun\ F* | *Sun*Fortran*)
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_wl='-Qoption ld '
8781 ;;
8782 *Sun\ C*)
8783 # Sun C 5.9
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8786 lt_prog_compiler_wl='-Wl,'
8787 ;;
8788 *Intel*\ [CF]*Compiler*)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-fPIC'
8791 lt_prog_compiler_static='-static'
8792 ;;
8793 *Portland\ Group*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='-fpic'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798 esac
8799 ;;
8800 esac
8801 ;;
8802
8803 newsos6)
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807
8808 *nto* | *qnx*)
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
8810 # it will coredump.
8811 lt_prog_compiler_pic='-fPIC -shared'
8812 ;;
8813
8814 osf3* | osf4* | osf5*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # All OSF/1 code is PIC.
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819
8820 rdos*)
8821 lt_prog_compiler_static='-non_shared'
8822 ;;
8823
8824 solaris*)
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 case $cc_basename in
8828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8829 lt_prog_compiler_wl='-Qoption ld ';;
8830 *)
8831 lt_prog_compiler_wl='-Wl,';;
8832 esac
8833 ;;
8834
8835 sunos4*)
8836 lt_prog_compiler_wl='-Qoption ld '
8837 lt_prog_compiler_pic='-PIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 ;;
8840
8841 sysv4 | sysv4.2uw2* | sysv4.3*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 ;;
8846
8847 sysv4*MP*)
8848 if test -d /usr/nec; then
8849 lt_prog_compiler_pic='-Kconform_pic'
8850 lt_prog_compiler_static='-Bstatic'
8851 fi
8852 ;;
8853
8854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8858 ;;
8859
8860 unicos*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_can_build_shared=no
8863 ;;
8864
8865 uts4*)
8866 lt_prog_compiler_pic='-pic'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869
8870 *)
8871 lt_prog_compiler_can_build_shared=no
8872 ;;
8873 esac
8874 fi
8875
8876 case $host_os in
8877 # For platforms that do not support PIC, -DPIC is meaningless:
8878 *djgpp*)
8879 lt_prog_compiler_pic=
8880 ;;
8881 *)
8882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8883 ;;
8884 esac
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8888 if ${lt_cv_prog_compiler_pic+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8894 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8896
8897 #
8898 # Check to make sure the PIC flag actually works.
8899 #
8900 if test -n "$lt_prog_compiler_pic"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8903 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_prog_compiler_pic_works=no
8907 ac_outfile=conftest.$ac_objext
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 # The option is referenced via a variable to avoid confusing sed.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>conftest.err)
8921 ac_status=$?
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s "$ac_outfile"; then
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings other than the usual output.
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_pic_works=yes
8931 fi
8932 fi
8933 $RM conftest*
8934
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8938
8939 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8940 case $lt_prog_compiler_pic in
8941 "" | " "*) ;;
8942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8943 esac
8944 else
8945 lt_prog_compiler_pic=
8946 lt_prog_compiler_can_build_shared=no
8947 fi
8948
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 #
8962 # Check to make sure the static flag actually works.
8963 #
8964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8967 if ${lt_cv_prog_compiler_static_works+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 lt_cv_prog_compiler_static_works=no
8971 save_LDFLAGS=$LDFLAGS
8972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8975 # The linker can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 if test -s conftest.err; then
8978 # Append any errors to the config.log.
8979 cat conftest.err 1>&5
8980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_static_works=yes
8984 fi
8985 else
8986 lt_cv_prog_compiler_static_works=yes
8987 fi
8988 fi
8989 $RM -r conftest*
8990 LDFLAGS=$save_LDFLAGS
8991
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8995
8996 if test yes = "$lt_cv_prog_compiler_static_works"; then
8997 :
8998 else
8999 lt_prog_compiler_static=
9000 fi
9001
9002
9003
9004
9005
9006
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 lt_cv_prog_compiler_c_o=no
9014 $RM -r conftest 2>/dev/null
9015 mkdir conftest
9016 cd conftest
9017 mkdir out
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019
9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 lt_compile=`echo "$ac_compile" | $SED \
9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028 -e 's:$: $lt_compiler_flag:'`
9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030 (eval "$lt_compile" 2>out/conftest.err)
9031 ac_status=$?
9032 cat out/conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9035 then
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_c_o=yes
9042 fi
9043 fi
9044 chmod u+w . 2>&5
9045 $RM conftest*
9046 # SGI C++ compiler will create directory out/ii_files/ for
9047 # template instantiation
9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049 $RM out/* && rmdir out
9050 cd ..
9051 $RM -r conftest
9052 $RM conftest*
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9057
9058
9059
9060
9061
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 lt_cv_prog_compiler_c_o=no
9069 $RM -r conftest 2>/dev/null
9070 mkdir conftest
9071 cd conftest
9072 mkdir out
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
9076 # Insert the option either (1) after the last *FLAGS variable, or
9077 # (2) before a word containing "conftest.", or (3) at the end.
9078 # Note that $ac_compile itself does not contain backslashes and begins
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
9080 lt_compile=`echo "$ac_compile" | $SED \
9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083 -e 's:$: $lt_compiler_flag:'`
9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9085 (eval "$lt_compile" 2>out/conftest.err)
9086 ac_status=$?
9087 cat out/conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9090 then
9091 # The compiler can only warn and ignore the option if not recognized
9092 # So say no if there are warnings
9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096 lt_cv_prog_compiler_c_o=yes
9097 fi
9098 fi
9099 chmod u+w . 2>&5
9100 $RM conftest*
9101 # SGI C++ compiler will create directory out/ii_files/ for
9102 # template instantiation
9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104 $RM out/* && rmdir out
9105 cd ..
9106 $RM -r conftest
9107 $RM conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112
9113
9114
9115
9116 hard_links=nottested
9117 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9118 # do not overwrite the value of need_locks provided by the user
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9120 $as_echo_n "checking if we can lock with hard links... " >&6; }
9121 hard_links=yes
9122 $RM conftest*
9123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9124 touch conftest.a
9125 ln conftest.a conftest.b 2>&5 || hard_links=no
9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9128 $as_echo "$hard_links" >&6; }
9129 if test no = "$hard_links"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9131 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9132 need_locks=warn
9133 fi
9134 else
9135 need_locks=no
9136 fi
9137
9138
9139
9140
9141
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9145
9146 runpath_var=
9147 allow_undefined_flag=
9148 always_export_symbols=no
9149 archive_cmds=
9150 archive_expsym_cmds=
9151 compiler_needs_object=no
9152 enable_shared_with_static_runtimes=no
9153 export_dynamic_flag_spec=
9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9155 hardcode_automatic=no
9156 hardcode_direct=no
9157 hardcode_direct_absolute=no
9158 hardcode_libdir_flag_spec=
9159 hardcode_libdir_separator=
9160 hardcode_minus_L=no
9161 hardcode_shlibpath_var=unsupported
9162 inherit_rpath=no
9163 link_all_deplibs=unknown
9164 module_cmds=
9165 module_expsym_cmds=
9166 old_archive_from_new_cmds=
9167 old_archive_from_expsyms_cmds=
9168 thread_safe_flag_spec=
9169 whole_archive_flag_spec=
9170 # include_expsyms should be a list of space-separated symbols to be *always*
9171 # included in the symbol list
9172 include_expsyms=
9173 # exclude_expsyms can be an extended regexp of symbols to exclude
9174 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9175 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9176 # as well as any symbol that contains 'd'.
9177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9179 # platforms (ab)use it in PIC code, but their linkers get confused if
9180 # the symbol is explicitly referenced. Since portable code cannot
9181 # rely on this symbol name, it's probably fine to never include it in
9182 # preloaded symbol tables.
9183 # Exclude shared library initialization/finalization symbols.
9184 extract_expsyms_cmds=
9185
9186 case $host_os in
9187 cygwin* | mingw* | pw32* | cegcc*)
9188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9189 # When not using gcc, we currently assume that we are using
9190 # Microsoft Visual C++.
9191 if test yes != "$GCC"; then
9192 with_gnu_ld=no
9193 fi
9194 ;;
9195 interix*)
9196 # we just hope/assume this is gcc and not c89 (= MSVC++)
9197 with_gnu_ld=yes
9198 ;;
9199 openbsd* | bitrig*)
9200 with_gnu_ld=no
9201 ;;
9202 esac
9203
9204 ld_shlibs=yes
9205
9206 # On some targets, GNU ld is compatible enough with the native linker
9207 # that we're better off using the native interface for both.
9208 lt_use_gnu_ld_interface=no
9209 if test yes = "$with_gnu_ld"; then
9210 case $host_os in
9211 aix*)
9212 # The AIX port of GNU ld has always aspired to compatibility
9213 # with the native linker. However, as the warning in the GNU ld
9214 # block says, versions before 2.19.5* couldn't really create working
9215 # shared libraries, regardless of the interface used.
9216 case `$LD -v 2>&1` in
9217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9220 *)
9221 lt_use_gnu_ld_interface=yes
9222 ;;
9223 esac
9224 ;;
9225 *)
9226 lt_use_gnu_ld_interface=yes
9227 ;;
9228 esac
9229 fi
9230
9231 if test yes = "$lt_use_gnu_ld_interface"; then
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
9233 wlarc='$wl'
9234
9235 # Set some defaults for GNU ld with shared library support. These
9236 # are reset later if shared libraries are not supported. Putting them
9237 # here allows them to be overridden if necessary.
9238 runpath_var=LD_RUN_PATH
9239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9240 export_dynamic_flag_spec='$wl--export-dynamic'
9241 # ancient GNU ld didn't support --whole-archive et. al.
9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9244 else
9245 whole_archive_flag_spec=
9246 fi
9247 supports_anon_versioning=no
9248 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9249 *GNU\ gold*) supports_anon_versioning=yes ;;
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9253 *\ 2.11.*) ;; # other 2.11 versions
9254 *) supports_anon_versioning=yes ;;
9255 esac
9256
9257 # See if GNU ld supports shared libraries.
9258 case $host_os in
9259 aix[3-9]*)
9260 # On AIX/PPC, the GNU linker is very broken
9261 if test ia64 != "$host_cpu"; then
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265 *** Warning: the GNU linker, at least up to release 2.19, is reported
9266 *** to be unable to reliably create shared libraries on AIX.
9267 *** Therefore, libtool is disabling shared libraries support. If you
9268 *** really care for shared libraries, you may want to install binutils
9269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9270 *** You will then need to restart the configuration process.
9271
9272 _LT_EOF
9273 fi
9274 ;;
9275
9276 amigaos*)
9277 case $host_cpu in
9278 powerpc)
9279 # see comment about AmigaOS4 .so support
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9281 archive_expsym_cmds=''
9282 ;;
9283 m68k)
9284 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)'
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_minus_L=yes
9287 ;;
9288 esac
9289 ;;
9290
9291 beos*)
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 allow_undefined_flag=unsupported
9294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9295 # support --undefined. This deserves some investigation. FIXME
9296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301
9302 cygwin* | mingw* | pw32* | cegcc*)
9303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9304 # as there is no search path for DLLs.
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 export_dynamic_flag_spec='$wl--export-all-symbols'
9307 allow_undefined_flag=unsupported
9308 always_export_symbols=no
9309 enable_shared_with_static_runtimes=yes
9310 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'
9311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9312
9313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9315 # If the export-symbols file already is a .def file, use it as
9316 # is; otherwise, prepend EXPORTS...
9317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9318 cp $export_symbols $output_objdir/$soname.def;
9319 else
9320 echo EXPORTS > $output_objdir/$soname.def;
9321 cat $export_symbols >> $output_objdir/$soname.def;
9322 fi~
9323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328
9329 haiku*)
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9331 link_all_deplibs=yes
9332 ;;
9333
9334 os2*)
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_minus_L=yes
9337 allow_undefined_flag=unsupported
9338 shrext_cmds=.dll
9339 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9342 $ECHO EXPORTS >> $output_objdir/$libname.def~
9343 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9345 emximp -o $lib $output_objdir/$libname.def'
9346 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9349 $ECHO EXPORTS >> $output_objdir/$libname.def~
9350 prefix_cmds="$SED"~
9351 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9352 prefix_cmds="$prefix_cmds -e 1d";
9353 fi~
9354 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9355 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9357 emximp -o $lib $output_objdir/$libname.def'
9358 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9359 enable_shared_with_static_runtimes=yes
9360 ;;
9361
9362 interix[3-9]*)
9363 hardcode_direct=no
9364 hardcode_shlibpath_var=no
9365 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9366 export_dynamic_flag_spec='$wl-E'
9367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9368 # Instead, shared libraries are loaded at an image base (0x10000000 by
9369 # default) and relocated if they conflict, which is a slow very memory
9370 # consuming and fragmenting process. To avoid this, we pick a random,
9371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9374 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'
9375 ;;
9376
9377 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9378 tmp_diet=no
9379 if test linux-dietlibc = "$host_os"; then
9380 case $cc_basename in
9381 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9382 esac
9383 fi
9384 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9385 && test no = "$tmp_diet"
9386 then
9387 tmp_addflag=' $pic_flag'
9388 tmp_sharedflag='-shared'
9389 case $cc_basename,$host_cpu in
9390 pgcc*) # Portland Group C compiler
9391 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'
9392 tmp_addflag=' $pic_flag'
9393 ;;
9394 pgf77* | pgf90* | pgf95* | pgfortran*)
9395 # Portland Group f77 and f90 compilers
9396 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'
9397 tmp_addflag=' $pic_flag -Mnomain' ;;
9398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9399 tmp_addflag=' -i_dynamic' ;;
9400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9401 tmp_addflag=' -i_dynamic -nofor_main' ;;
9402 ifc* | ifort*) # Intel Fortran compiler
9403 tmp_addflag=' -nofor_main' ;;
9404 lf95*) # Lahey Fortran 8.1
9405 whole_archive_flag_spec=
9406 tmp_sharedflag='--shared' ;;
9407 nagfor*) # NAGFOR 5.3
9408 tmp_sharedflag='-Wl,-shared' ;;
9409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9410 tmp_sharedflag='-qmkshrobj'
9411 tmp_addflag= ;;
9412 nvcc*) # Cuda Compiler Driver 2.2
9413 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'
9414 compiler_needs_object=yes
9415 ;;
9416 esac
9417 case `$CC -V 2>&1 | sed 5q` in
9418 *Sun\ C*) # Sun C 5.9
9419 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'
9420 compiler_needs_object=yes
9421 tmp_sharedflag='-G' ;;
9422 *Sun\ F*) # Sun Fortran 8.3
9423 tmp_sharedflag='-G' ;;
9424 esac
9425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9426
9427 if test yes = "$supports_anon_versioning"; then
9428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9430 echo "local: *; };" >> $output_objdir/$libname.ver~
9431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9432 fi
9433
9434 case $cc_basename in
9435 tcc*)
9436 export_dynamic_flag_spec='-rdynamic'
9437 ;;
9438 xlf* | bgf* | bgxlf* | mpixlf*)
9439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9442 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9443 if test yes = "$supports_anon_versioning"; then
9444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9446 echo "local: *; };" >> $output_objdir/$libname.ver~
9447 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9448 fi
9449 ;;
9450 esac
9451 else
9452 ld_shlibs=no
9453 fi
9454 ;;
9455
9456 netbsd*)
9457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9459 wlarc=
9460 else
9461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9463 fi
9464 ;;
9465
9466 solaris*)
9467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9468 ld_shlibs=no
9469 cat <<_LT_EOF 1>&2
9470
9471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9472 *** create shared libraries on Solaris systems. Therefore, libtool
9473 *** is disabling shared libraries support. We urge you to upgrade GNU
9474 *** binutils to release 2.9.1 or newer. Another option is to modify
9475 *** your PATH or compiler configuration so that the native linker is
9476 *** used, and then restart.
9477
9478 _LT_EOF
9479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9482 else
9483 ld_shlibs=no
9484 fi
9485 ;;
9486
9487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9488 case `$LD -v 2>&1` in
9489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9490 ld_shlibs=no
9491 cat <<_LT_EOF 1>&2
9492
9493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9494 *** reliably create shared libraries on SCO systems. Therefore, libtool
9495 *** is disabling shared libraries support. We urge you to upgrade GNU
9496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9497 *** your PATH or compiler configuration so that the native linker is
9498 *** used, and then restart.
9499
9500 _LT_EOF
9501 ;;
9502 *)
9503 # For security reasons, it is highly recommended that you always
9504 # use absolute paths for naming shared libraries, and exclude the
9505 # DT_RUNPATH tag from executables and libraries. But doing so
9506 # requires that you compile everything twice, which is a pain.
9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9511 else
9512 ld_shlibs=no
9513 fi
9514 ;;
9515 esac
9516 ;;
9517
9518 sunos4*)
9519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520 wlarc=
9521 hardcode_direct=yes
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 *)
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9529 else
9530 ld_shlibs=no
9531 fi
9532 ;;
9533 esac
9534
9535 if test no = "$ld_shlibs"; then
9536 runpath_var=
9537 hardcode_libdir_flag_spec=
9538 export_dynamic_flag_spec=
9539 whole_archive_flag_spec=
9540 fi
9541 else
9542 # PORTME fill in a description of your system's linker (not GNU ld)
9543 case $host_os in
9544 aix3*)
9545 allow_undefined_flag=unsupported
9546 always_export_symbols=yes
9547 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'
9548 # Note: this linker hardcodes the directories in LIBPATH if there
9549 # are no directories specified by -L.
9550 hardcode_minus_L=yes
9551 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9552 # Neither direct hardcoding nor static linking is supported with a
9553 # broken collect2.
9554 hardcode_direct=unsupported
9555 fi
9556 ;;
9557
9558 aix[4-9]*)
9559 if test ia64 = "$host_cpu"; then
9560 # On IA64, the linker does run time linking by default, so we don't
9561 # have to do anything special.
9562 aix_use_runtimelinking=no
9563 exp_sym_flag='-Bexport'
9564 no_entry_flag=
9565 else
9566 # If we're using GNU nm, then we don't want the "-C" option.
9567 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9568 # Without the "-l" option, or with the "-B" option, AIX nm treats
9569 # weak defined symbols like other global defined symbols, whereas
9570 # GNU nm marks them as "W".
9571 # While the 'weak' keyword is ignored in the Export File, we need
9572 # it in the Import File for the 'aix-soname' feature, so we have
9573 # to replace the "-B" option with "-P" for AIX nm.
9574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9575 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9576 else
9577 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9578 fi
9579 aix_use_runtimelinking=no
9580
9581 # Test if we are trying to use run time linking or normal
9582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9583 # have runtime linking enabled, and use it for executables.
9584 # For shared libraries, we enable/disable runtime linking
9585 # depending on the kind of the shared library created -
9586 # when "with_aix_soname,aix_use_runtimelinking" is:
9587 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9588 # "aix,yes" lib.so shared, rtl:yes, for executables
9589 # lib.a static archive
9590 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9591 # lib.a(lib.so.V) shared, rtl:no, for executables
9592 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9593 # lib.a(lib.so.V) shared, rtl:no
9594 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9595 # lib.a static archive
9596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9597 for ld_flag in $LDFLAGS; do
9598 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9599 aix_use_runtimelinking=yes
9600 break
9601 fi
9602 done
9603 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9604 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9605 # so we don't have lib.a shared libs to link our executables.
9606 # We have to force runtime linking in this case.
9607 aix_use_runtimelinking=yes
9608 LDFLAGS="$LDFLAGS -Wl,-brtl"
9609 fi
9610 ;;
9611 esac
9612
9613 exp_sym_flag='-bexport'
9614 no_entry_flag='-bnoentry'
9615 fi
9616
9617 # When large executables or shared objects are built, AIX ld can
9618 # have problems creating the table of contents. If linking a library
9619 # or program results in "error TOC overflow" add -mminimal-toc to
9620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9622
9623 archive_cmds=''
9624 hardcode_direct=yes
9625 hardcode_direct_absolute=yes
9626 hardcode_libdir_separator=':'
9627 link_all_deplibs=yes
9628 file_list_spec='$wl-f,'
9629 case $with_aix_soname,$aix_use_runtimelinking in
9630 aix,*) ;; # traditional, no import file
9631 svr4,* | *,yes) # use import file
9632 # The Import File defines what to hardcode.
9633 hardcode_direct=no
9634 hardcode_direct_absolute=no
9635 ;;
9636 esac
9637
9638 if test yes = "$GCC"; then
9639 case $host_os in aix4.[012]|aix4.[012].*)
9640 # We only want to do this on AIX 4.2 and lower, the check
9641 # below for broken collect2 doesn't work under 4.3+
9642 collect2name=`$CC -print-prog-name=collect2`
9643 if test -f "$collect2name" &&
9644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9645 then
9646 # We have reworked collect2
9647 :
9648 else
9649 # We have old collect2
9650 hardcode_direct=unsupported
9651 # It fails to find uninstalled libraries when the uninstalled
9652 # path is not listed in the libpath. Setting hardcode_minus_L
9653 # to unsupported forces relinking
9654 hardcode_minus_L=yes
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_libdir_separator=
9657 fi
9658 ;;
9659 esac
9660 shared_flag='-shared'
9661 if test yes = "$aix_use_runtimelinking"; then
9662 shared_flag="$shared_flag "'$wl-G'
9663 fi
9664 # Need to ensure runtime linking is disabled for the traditional
9665 # shared library, or the linker may eventually find shared libraries
9666 # /with/ Import File - we do not want to mix them.
9667 shared_flag_aix='-shared'
9668 shared_flag_svr4='-shared $wl-G'
9669 else
9670 # not using gcc
9671 if test ia64 = "$host_cpu"; then
9672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9673 # chokes on -Wl,-G. The following line is correct:
9674 shared_flag='-G'
9675 else
9676 if test yes = "$aix_use_runtimelinking"; then
9677 shared_flag='$wl-G'
9678 else
9679 shared_flag='$wl-bM:SRE'
9680 fi
9681 shared_flag_aix='$wl-bM:SRE'
9682 shared_flag_svr4='$wl-G'
9683 fi
9684 fi
9685
9686 export_dynamic_flag_spec='$wl-bexpall'
9687 # It seems that -bexpall does not export symbols beginning with
9688 # underscore (_), so it is better to generate a list of symbols to export.
9689 always_export_symbols=yes
9690 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9691 # Warning - without using the other runtime loading flags (-brtl),
9692 # -berok will link without error, but may produce a broken library.
9693 allow_undefined_flag='-berok'
9694 # Determine the default libpath from the value encoded in an
9695 # empty executable.
9696 if test set = "${lt_cv_aix_libpath+set}"; then
9697 aix_libpath=$lt_cv_aix_libpath
9698 else
9699 if ${lt_cv_aix_libpath_+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704
9705 int
9706 main ()
9707 {
9708
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714
9715 lt_aix_libpath_sed='
9716 /Import File Strings/,/^$/ {
9717 /^0/ {
9718 s/^0 *\([^ ]*\) *$/\1/
9719 p
9720 }
9721 }'
9722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 # Check for a 64-bit object if we didn't find anything.
9724 if test -z "$lt_cv_aix_libpath_"; then
9725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726 fi
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$lt_cv_aix_libpath_"; then
9731 lt_cv_aix_libpath_=/usr/lib:/lib
9732 fi
9733
9734 fi
9735
9736 aix_libpath=$lt_cv_aix_libpath_
9737 fi
9738
9739 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9740 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9741 else
9742 if test ia64 = "$host_cpu"; then
9743 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9744 allow_undefined_flag="-z nodefs"
9745 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"
9746 else
9747 # Determine the default libpath from the value encoded in an
9748 # empty executable.
9749 if test set = "${lt_cv_aix_libpath+set}"; then
9750 aix_libpath=$lt_cv_aix_libpath
9751 else
9752 if ${lt_cv_aix_libpath_+:} false; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757
9758 int
9759 main ()
9760 {
9761
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767
9768 lt_aix_libpath_sed='
9769 /Import File Strings/,/^$/ {
9770 /^0/ {
9771 s/^0 *\([^ ]*\) *$/\1/
9772 p
9773 }
9774 }'
9775 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9776 # Check for a 64-bit object if we didn't find anything.
9777 if test -z "$lt_cv_aix_libpath_"; then
9778 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9779 fi
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 if test -z "$lt_cv_aix_libpath_"; then
9784 lt_cv_aix_libpath_=/usr/lib:/lib
9785 fi
9786
9787 fi
9788
9789 aix_libpath=$lt_cv_aix_libpath_
9790 fi
9791
9792 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9793 # Warning - without using the other run time loading flags,
9794 # -berok will link without error, but may produce a broken library.
9795 no_undefined_flag=' $wl-bernotok'
9796 allow_undefined_flag=' $wl-berok'
9797 if test yes = "$with_gnu_ld"; then
9798 # We only use this code for GNU lds that support --whole-archive.
9799 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9800 else
9801 # Exported symbols can be pulled into shared objects from archives
9802 whole_archive_flag_spec='$convenience'
9803 fi
9804 archive_cmds_need_lc=yes
9805 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9806 # -brtl affects multiple linker settings, -berok does not and is overridden later
9807 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9808 if test svr4 != "$with_aix_soname"; then
9809 # This is similar to how AIX traditionally builds its shared libraries.
9810 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9811 fi
9812 if test aix != "$with_aix_soname"; then
9813 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9814 else
9815 # used by -dlpreopen to get the symbols
9816 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9817 fi
9818 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9819 fi
9820 fi
9821 ;;
9822
9823 amigaos*)
9824 case $host_cpu in
9825 powerpc)
9826 # see comment about AmigaOS4 .so support
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9828 archive_expsym_cmds=''
9829 ;;
9830 m68k)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
9836 ;;
9837
9838 bsdi[45]*)
9839 export_dynamic_flag_spec=-rdynamic
9840 ;;
9841
9842 cygwin* | mingw* | pw32* | cegcc*)
9843 # When not using gcc, we currently assume that we are using
9844 # Microsoft Visual C++.
9845 # hardcode_libdir_flag_spec is actually meaningless, as there is
9846 # no search path for DLLs.
9847 case $cc_basename in
9848 cl*)
9849 # Native MSVC
9850 hardcode_libdir_flag_spec=' '
9851 allow_undefined_flag=unsupported
9852 always_export_symbols=yes
9853 file_list_spec='@'
9854 # Tell ltmain to make .lib files, not .a files.
9855 libext=lib
9856 # Tell ltmain to make .dll files, not .so files.
9857 shrext_cmds=.dll
9858 # FIXME: Setting linknames here is a bad hack.
9859 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9860 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9861 cp "$export_symbols" "$output_objdir/$soname.def";
9862 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9863 else
9864 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9865 fi~
9866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9867 linknames='
9868 # The linker will not automatically build a static lib if we build a DLL.
9869 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9870 enable_shared_with_static_runtimes=yes
9871 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9873 # Don't use ranlib
9874 old_postinstall_cmds='chmod 644 $oldlib'
9875 postlink_cmds='lt_outputfile="@OUTPUT@"~
9876 lt_tool_outputfile="@TOOL_OUTPUT@"~
9877 case $lt_outputfile in
9878 *.exe|*.EXE) ;;
9879 *)
9880 lt_outputfile=$lt_outputfile.exe
9881 lt_tool_outputfile=$lt_tool_outputfile.exe
9882 ;;
9883 esac~
9884 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9885 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9886 $RM "$lt_outputfile.manifest";
9887 fi'
9888 ;;
9889 *)
9890 # Assume MSVC wrapper
9891 hardcode_libdir_flag_spec=' '
9892 allow_undefined_flag=unsupported
9893 # Tell ltmain to make .lib files, not .a files.
9894 libext=lib
9895 # Tell ltmain to make .dll files, not .so files.
9896 shrext_cmds=.dll
9897 # FIXME: Setting linknames here is a bad hack.
9898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9899 # The linker will automatically build a .lib file if we build a DLL.
9900 old_archive_from_new_cmds='true'
9901 # FIXME: Should let the user specify the lib program.
9902 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9903 enable_shared_with_static_runtimes=yes
9904 ;;
9905 esac
9906 ;;
9907
9908 darwin* | rhapsody*)
9909
9910
9911 archive_cmds_need_lc=no
9912 hardcode_direct=no
9913 hardcode_automatic=yes
9914 hardcode_shlibpath_var=unsupported
9915 if test yes = "$lt_cv_ld_force_load"; then
9916 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\"`'
9917
9918 else
9919 whole_archive_flag_spec=''
9920 fi
9921 link_all_deplibs=yes
9922 allow_undefined_flag=$_lt_dar_allow_undefined
9923 case $cc_basename in
9924 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9925 *) _lt_dar_can_shared=$GCC ;;
9926 esac
9927 if test yes = "$_lt_dar_can_shared"; then
9928 output_verbose_link_cmd=func_echo_all
9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9931 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"
9932 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"
9933
9934 else
9935 ld_shlibs=no
9936 fi
9937
9938 ;;
9939
9940 dgux*)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_shlibpath_var=no
9944 ;;
9945
9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9947 # support. Future versions do this automatically, but an explicit c++rt0.o
9948 # does not break anything, and helps significantly (at the cost of a little
9949 # extra space).
9950 freebsd2.2*)
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_direct=yes
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9958 freebsd2.*)
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct=yes
9961 hardcode_minus_L=yes
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9966 freebsd* | dragonfly*)
9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 hpux9*)
9974 if test yes = "$GCC"; then
9975 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9976 else
9977 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9978 fi
9979 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_direct=yes
9982
9983 # hardcode_minus_L: Not really in the search PATH,
9984 # but as the default location of the library.
9985 hardcode_minus_L=yes
9986 export_dynamic_flag_spec='$wl-E'
9987 ;;
9988
9989 hpux10*)
9990 if test yes,no = "$GCC,$with_gnu_ld"; then
9991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9994 fi
9995 if test no = "$with_gnu_ld"; then
9996 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9997 hardcode_libdir_separator=:
9998 hardcode_direct=yes
9999 hardcode_direct_absolute=yes
10000 export_dynamic_flag_spec='$wl-E'
10001 # hardcode_minus_L: Not really in the search PATH,
10002 # but as the default location of the library.
10003 hardcode_minus_L=yes
10004 fi
10005 ;;
10006
10007 hpux11*)
10008 if test yes,no = "$GCC,$with_gnu_ld"; then
10009 case $host_cpu in
10010 hppa*64*)
10011 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 ;;
10013 ia64*)
10014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10015 ;;
10016 *)
10017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10018 ;;
10019 esac
10020 else
10021 case $host_cpu in
10022 hppa*64*)
10023 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 ;;
10025 ia64*)
10026 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 ;;
10028 *)
10029
10030 # Older versions of the 11.00 compiler do not understand -b yet
10031 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10033 $as_echo_n "checking if $CC understands -b... " >&6; }
10034 if ${lt_cv_prog_compiler__b+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 lt_cv_prog_compiler__b=no
10038 save_LDFLAGS=$LDFLAGS
10039 LDFLAGS="$LDFLAGS -b"
10040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10042 # The linker can only warn and ignore the option if not recognized
10043 # So say no if there are warnings
10044 if test -s conftest.err; then
10045 # Append any errors to the config.log.
10046 cat conftest.err 1>&5
10047 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10049 if diff conftest.exp conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler__b=yes
10051 fi
10052 else
10053 lt_cv_prog_compiler__b=yes
10054 fi
10055 fi
10056 $RM -r conftest*
10057 LDFLAGS=$save_LDFLAGS
10058
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10061 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10062
10063 if test yes = "$lt_cv_prog_compiler__b"; then
10064 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10067 fi
10068
10069 ;;
10070 esac
10071 fi
10072 if test no = "$with_gnu_ld"; then
10073 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10074 hardcode_libdir_separator=:
10075
10076 case $host_cpu in
10077 hppa*64*|ia64*)
10078 hardcode_direct=no
10079 hardcode_shlibpath_var=no
10080 ;;
10081 *)
10082 hardcode_direct=yes
10083 hardcode_direct_absolute=yes
10084 export_dynamic_flag_spec='$wl-E'
10085
10086 # hardcode_minus_L: Not really in the search PATH,
10087 # but as the default location of the library.
10088 hardcode_minus_L=yes
10089 ;;
10090 esac
10091 fi
10092 ;;
10093
10094 irix5* | irix6* | nonstopux*)
10095 if test yes = "$GCC"; then
10096 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'
10097 # Try to use the -exported_symbol ld option, if it does not
10098 # work, assume that -exports_file does not work either and
10099 # implicitly export all symbols.
10100 # This should be the same for all languages, so no per-tag cache variable.
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10102 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10103 if ${lt_cv_irix_exported_symbol+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10106 save_LDFLAGS=$LDFLAGS
10107 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int foo (void) { return 0; }
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"; then :
10113 lt_cv_irix_exported_symbol=yes
10114 else
10115 lt_cv_irix_exported_symbol=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LDFLAGS=$save_LDFLAGS
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10122 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10123 if test yes = "$lt_cv_irix_exported_symbol"; then
10124 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'
10125 fi
10126 else
10127 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'
10128 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'
10129 fi
10130 archive_cmds_need_lc='no'
10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10132 hardcode_libdir_separator=:
10133 inherit_rpath=yes
10134 link_all_deplibs=yes
10135 ;;
10136
10137 linux*)
10138 case $cc_basename in
10139 tcc*)
10140 # Fabrice Bellard et al's Tiny C Compiler
10141 ld_shlibs=yes
10142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10143 ;;
10144 esac
10145 ;;
10146
10147 netbsd*)
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10150 else
10151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10152 fi
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 hardcode_direct=yes
10155 hardcode_shlibpath_var=no
10156 ;;
10157
10158 newsos6)
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 hardcode_direct=yes
10161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10162 hardcode_libdir_separator=:
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 *nto* | *qnx*)
10167 ;;
10168
10169 openbsd* | bitrig*)
10170 if test -f /usr/libexec/ld.so; then
10171 hardcode_direct=yes
10172 hardcode_shlibpath_var=no
10173 hardcode_direct_absolute=yes
10174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10177 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10178 export_dynamic_flag_spec='$wl-E'
10179 else
10180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10181 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10182 fi
10183 else
10184 ld_shlibs=no
10185 fi
10186 ;;
10187
10188 os2*)
10189 hardcode_libdir_flag_spec='-L$libdir'
10190 hardcode_minus_L=yes
10191 allow_undefined_flag=unsupported
10192 shrext_cmds=.dll
10193 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10194 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10195 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10196 $ECHO EXPORTS >> $output_objdir/$libname.def~
10197 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10199 emximp -o $lib $output_objdir/$libname.def'
10200 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10203 $ECHO EXPORTS >> $output_objdir/$libname.def~
10204 prefix_cmds="$SED"~
10205 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10206 prefix_cmds="$prefix_cmds -e 1d";
10207 fi~
10208 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10209 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10210 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10211 emximp -o $lib $output_objdir/$libname.def'
10212 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10213 enable_shared_with_static_runtimes=yes
10214 ;;
10215
10216 osf3*)
10217 if test yes = "$GCC"; then
10218 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10219 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'
10220 else
10221 allow_undefined_flag=' -expect_unresolved \*'
10222 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'
10223 fi
10224 archive_cmds_need_lc='no'
10225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10226 hardcode_libdir_separator=:
10227 ;;
10228
10229 osf4* | osf5*) # as osf3* with the addition of -msym flag
10230 if test yes = "$GCC"; then
10231 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10232 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'
10233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10234 else
10235 allow_undefined_flag=' -expect_unresolved \*'
10236 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'
10237 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~
10238 $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'
10239
10240 # Both c and cxx compiler support -rpath directly
10241 hardcode_libdir_flag_spec='-rpath $libdir'
10242 fi
10243 archive_cmds_need_lc='no'
10244 hardcode_libdir_separator=:
10245 ;;
10246
10247 solaris*)
10248 no_undefined_flag=' -z defs'
10249 if test yes = "$GCC"; then
10250 wlarc='$wl'
10251 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10253 $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'
10254 else
10255 case `$CC -V 2>&1` in
10256 *"Compilers 5.0"*)
10257 wlarc=''
10258 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10261 ;;
10262 *)
10263 wlarc='$wl'
10264 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10266 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267 ;;
10268 esac
10269 fi
10270 hardcode_libdir_flag_spec='-R$libdir'
10271 hardcode_shlibpath_var=no
10272 case $host_os in
10273 solaris2.[0-5] | solaris2.[0-5].*) ;;
10274 *)
10275 # The compiler driver will combine and reorder linker options,
10276 # but understands '-z linker_flag'. GCC discards it without '$wl',
10277 # but is careful enough not to reorder.
10278 # Supported since Solaris 2.6 (maybe 2.5.1?)
10279 if test yes = "$GCC"; then
10280 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10281 else
10282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10283 fi
10284 ;;
10285 esac
10286 link_all_deplibs=yes
10287 ;;
10288
10289 sunos4*)
10290 if test sequent = "$host_vendor"; then
10291 # Use $CC to link under sequent, because it throws in some extra .o
10292 # files that make .init and .fini sections work.
10293 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10294 else
10295 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10296 fi
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_direct=yes
10299 hardcode_minus_L=yes
10300 hardcode_shlibpath_var=no
10301 ;;
10302
10303 sysv4)
10304 case $host_vendor in
10305 sni)
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 hardcode_direct=yes # is this really true???
10308 ;;
10309 siemens)
10310 ## LD is ld it makes a PLAMLIB
10311 ## CC just makes a GrossModule.
10312 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10313 reload_cmds='$CC -r -o $output$reload_objs'
10314 hardcode_direct=no
10315 ;;
10316 motorola)
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10319 ;;
10320 esac
10321 runpath_var='LD_RUN_PATH'
10322 hardcode_shlibpath_var=no
10323 ;;
10324
10325 sysv4.3*)
10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_shlibpath_var=no
10328 export_dynamic_flag_spec='-Bexport'
10329 ;;
10330
10331 sysv4*MP*)
10332 if test -d /usr/nec; then
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_shlibpath_var=no
10335 runpath_var=LD_RUN_PATH
10336 hardcode_runpath_var=yes
10337 ld_shlibs=yes
10338 fi
10339 ;;
10340
10341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10342 no_undefined_flag='$wl-z,text'
10343 archive_cmds_need_lc=no
10344 hardcode_shlibpath_var=no
10345 runpath_var='LD_RUN_PATH'
10346
10347 if test yes = "$GCC"; then
10348 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 else
10351 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 fi
10354 ;;
10355
10356 sysv5* | sco3.2v5* | sco5v6*)
10357 # Note: We CANNOT use -z defs as we might desire, because we do not
10358 # link with -lc, and that would cause any symbols used from libc to
10359 # always be unresolved, which means just about no library would
10360 # ever link correctly. If we're not using GNU ld we use -z text
10361 # though, which does catch some bad symbols but isn't as heavy-handed
10362 # as -z defs.
10363 no_undefined_flag='$wl-z,text'
10364 allow_undefined_flag='$wl-z,nodefs'
10365 archive_cmds_need_lc=no
10366 hardcode_shlibpath_var=no
10367 hardcode_libdir_flag_spec='$wl-R,$libdir'
10368 hardcode_libdir_separator=':'
10369 link_all_deplibs=yes
10370 export_dynamic_flag_spec='$wl-Bexport'
10371 runpath_var='LD_RUN_PATH'
10372
10373 if test yes = "$GCC"; then
10374 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 else
10377 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 fi
10380 ;;
10381
10382 uts4*)
10383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384 hardcode_libdir_flag_spec='-L$libdir'
10385 hardcode_shlibpath_var=no
10386 ;;
10387
10388 *)
10389 ld_shlibs=no
10390 ;;
10391 esac
10392
10393 if test sni = "$host_vendor"; then
10394 case $host in
10395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10396 export_dynamic_flag_spec='$wl-Blargedynsym'
10397 ;;
10398 esac
10399 fi
10400 fi
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10403 $as_echo "$ld_shlibs" >&6; }
10404 test no = "$ld_shlibs" && can_build_shared=no
10405
10406 with_gnu_ld=$with_gnu_ld
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 #
10423 # Do we need to explicitly link libc?
10424 #
10425 case "x$archive_cmds_need_lc" in
10426 x|xyes)
10427 # Assume -lc should be added
10428 archive_cmds_need_lc=yes
10429
10430 if test yes,yes = "$GCC,$enable_shared"; then
10431 case $archive_cmds in
10432 *'~'*)
10433 # FIXME: we may have to deal with multi-command sequences.
10434 ;;
10435 '$CC '*)
10436 # Test whether the compiler implicitly links with -lc since on some
10437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10438 # to ld, don't add -lc before -lgcc.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10441 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 $RM conftest*
10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446
10447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10448 (eval $ac_compile) 2>&5
10449 ac_status=$?
10450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10451 test $ac_status = 0; } 2>conftest.err; then
10452 soname=conftest
10453 lib=conftest
10454 libobjs=conftest.$ac_objext
10455 deplibs=
10456 wl=$lt_prog_compiler_wl
10457 pic_flag=$lt_prog_compiler_pic
10458 compiler_flags=-v
10459 linker_flags=-v
10460 verstring=
10461 output_objdir=.
10462 libname=conftest
10463 lt_save_allow_undefined_flag=$allow_undefined_flag
10464 allow_undefined_flag=
10465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10467 ac_status=$?
10468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10469 test $ac_status = 0; }
10470 then
10471 lt_cv_archive_cmds_need_lc=no
10472 else
10473 lt_cv_archive_cmds_need_lc=yes
10474 fi
10475 allow_undefined_flag=$lt_save_allow_undefined_flag
10476 else
10477 cat conftest.err 1>&5
10478 fi
10479 $RM conftest*
10480
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10483 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10485 ;;
10486 esac
10487 fi
10488 ;;
10489 esac
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10643 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10644
10645 if test yes = "$GCC"; then
10646 case $host_os in
10647 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10648 *) lt_awk_arg='/^libraries:/' ;;
10649 esac
10650 case $host_os in
10651 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10652 *) lt_sed_strip_eq='s|=/|/|g' ;;
10653 esac
10654 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10655 case $lt_search_path_spec in
10656 *\;*)
10657 # if the path contains ";" then we assume it to be the separator
10658 # otherwise default to the standard path separator (i.e. ":") - it is
10659 # assumed that no part of a normal pathname contains ";" but that should
10660 # okay in the real world where ";" in dirpaths is itself problematic.
10661 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10662 ;;
10663 *)
10664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10665 ;;
10666 esac
10667 # Ok, now we have the path, separated by spaces, we can step through it
10668 # and add multilib dir if necessary...
10669 lt_tmp_lt_search_path_spec=
10670 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10671 # ...but if some path component already ends with the multilib dir we assume
10672 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10673 case "$lt_multi_os_dir; $lt_search_path_spec " in
10674 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10675 lt_multi_os_dir=
10676 ;;
10677 esac
10678 for lt_sys_path in $lt_search_path_spec; do
10679 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10681 elif test -n "$lt_multi_os_dir"; then
10682 test -d "$lt_sys_path" && \
10683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10684 fi
10685 done
10686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10687 BEGIN {RS = " "; FS = "/|\n";} {
10688 lt_foo = "";
10689 lt_count = 0;
10690 for (lt_i = NF; lt_i > 0; lt_i--) {
10691 if ($lt_i != "" && $lt_i != ".") {
10692 if ($lt_i == "..") {
10693 lt_count++;
10694 } else {
10695 if (lt_count == 0) {
10696 lt_foo = "/" $lt_i lt_foo;
10697 } else {
10698 lt_count--;
10699 }
10700 }
10701 }
10702 }
10703 if (lt_foo != "") { lt_freq[lt_foo]++; }
10704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10705 }'`
10706 # AWK program above erroneously prepends '/' to C:/dos/paths
10707 # for these hosts.
10708 case $host_os in
10709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10710 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10711 esac
10712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10713 else
10714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10715 fi
10716 library_names_spec=
10717 libname_spec='lib$name'
10718 soname_spec=
10719 shrext_cmds=.so
10720 postinstall_cmds=
10721 postuninstall_cmds=
10722 finish_cmds=
10723 finish_eval=
10724 shlibpath_var=
10725 shlibpath_overrides_runpath=unknown
10726 version_type=none
10727 dynamic_linker="$host_os ld.so"
10728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10729 need_lib_prefix=unknown
10730 hardcode_into_libs=no
10731
10732 # when you set need_version to no, make sure it does not cause -set_version
10733 # flags to be left without arguments
10734 need_version=unknown
10735
10736
10737
10738 case $host_os in
10739 aix3*)
10740 version_type=linux # correct to gnu/linux during the next big refactor
10741 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10742 shlibpath_var=LIBPATH
10743
10744 # AIX 3 has no versioning support, so we append a major version to the name.
10745 soname_spec='$libname$release$shared_ext$major'
10746 ;;
10747
10748 aix[4-9]*)
10749 version_type=linux # correct to gnu/linux during the next big refactor
10750 need_lib_prefix=no
10751 need_version=no
10752 hardcode_into_libs=yes
10753 if test ia64 = "$host_cpu"; then
10754 # AIX 5 supports IA64
10755 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 else
10758 # With GCC up to 2.95.x, collect2 would create an import file
10759 # for dependence libraries. The import file would start with
10760 # the line '#! .'. This would cause the generated library to
10761 # depend on '.', always an invalid library. This was fixed in
10762 # development snapshots of GCC prior to 3.0.
10763 case $host_os in
10764 aix4 | aix4.[01] | aix4.[01].*)
10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10766 echo ' yes '
10767 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10768 :
10769 else
10770 can_build_shared=no
10771 fi
10772 ;;
10773 esac
10774 # Using Import Files as archive members, it is possible to support
10775 # filename-based versioning of shared library archives on AIX. While
10776 # this would work for both with and without runtime linking, it will
10777 # prevent static linking of such archives. So we do filename-based
10778 # shared library versioning with .so extension only, which is used
10779 # when both runtime linking and shared linking is enabled.
10780 # Unfortunately, runtime linking may impact performance, so we do
10781 # not want this to be the default eventually. Also, we use the
10782 # versioned .so libs for executables only if there is the -brtl
10783 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10784 # To allow for filename-based versioning support, we need to create
10785 # libNAME.so.V as an archive file, containing:
10786 # *) an Import File, referring to the versioned filename of the
10787 # archive as well as the shared archive member, telling the
10788 # bitwidth (32 or 64) of that shared object, and providing the
10789 # list of exported symbols of that shared object, eventually
10790 # decorated with the 'weak' keyword
10791 # *) the shared object with the F_LOADONLY flag set, to really avoid
10792 # it being seen by the linker.
10793 # At run time we better use the real file rather than another symlink,
10794 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10795
10796 case $with_aix_soname,$aix_use_runtimelinking in
10797 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10798 # soname into executable. Probably we can add versioning support to
10799 # collect2, so additional links can be useful in future.
10800 aix,yes) # traditional libtool
10801 dynamic_linker='AIX unversionable lib.so'
10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10803 # instead of lib<name>.a to let people know that these are not
10804 # typical AIX shared libraries.
10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806 ;;
10807 aix,no) # traditional AIX only
10808 dynamic_linker='AIX lib.a(lib.so.V)'
10809 # We preserve .a as extension for shared libraries through AIX4.2
10810 # and later when we are not doing run time linking.
10811 library_names_spec='$libname$release.a $libname.a'
10812 soname_spec='$libname$release$shared_ext$major'
10813 ;;
10814 svr4,*) # full svr4 only
10815 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10816 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10817 # We do not specify a path in Import Files, so LIBPATH fires.
10818 shlibpath_overrides_runpath=yes
10819 ;;
10820 *,yes) # both, prefer svr4
10821 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10822 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10823 # unpreferred sharedlib libNAME.a needs extra handling
10824 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10825 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10826 # We do not specify a path in Import Files, so LIBPATH fires.
10827 shlibpath_overrides_runpath=yes
10828 ;;
10829 *,no) # both, prefer aix
10830 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10831 library_names_spec='$libname$release.a $libname.a'
10832 soname_spec='$libname$release$shared_ext$major'
10833 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10834 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10835 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10836 ;;
10837 esac
10838 shlibpath_var=LIBPATH
10839 fi
10840 ;;
10841
10842 amigaos*)
10843 case $host_cpu in
10844 powerpc)
10845 # Since July 2007 AmigaOS4 officially supports .so libraries.
10846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848 ;;
10849 m68k)
10850 library_names_spec='$libname.ixlibrary $libname.a'
10851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10852 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10853 ;;
10854 esac
10855 ;;
10856
10857 beos*)
10858 library_names_spec='$libname$shared_ext'
10859 dynamic_linker="$host_os ld.so"
10860 shlibpath_var=LIBRARY_PATH
10861 ;;
10862
10863 bsdi[45]*)
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 need_version=no
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10872 # the default ld.so.conf also contains /usr/contrib/lib and
10873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10874 # libtool to hard-code these into programs
10875 ;;
10876
10877 cygwin* | mingw* | pw32* | cegcc*)
10878 version_type=windows
10879 shrext_cmds=.dll
10880 need_version=no
10881 need_lib_prefix=no
10882
10883 case $GCC,$cc_basename in
10884 yes,*)
10885 # gcc
10886 library_names_spec='$libname.dll.a'
10887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10888 postinstall_cmds='base_file=`basename \$file`~
10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10890 dldir=$destdir/`dirname \$dlpath`~
10891 test -d \$dldir || mkdir -p \$dldir~
10892 $install_prog $dir/$dlname \$dldir/$dlname~
10893 chmod a+x \$dldir/$dlname~
10894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10896 fi'
10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10898 dlpath=$dir/\$dldll~
10899 $RM \$dlpath'
10900 shlibpath_overrides_runpath=yes
10901
10902 case $host_os in
10903 cygwin*)
10904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10905 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10906
10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10908 ;;
10909 mingw* | cegcc*)
10910 # MinGW DLLs use traditional 'lib' prefix
10911 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10912 ;;
10913 pw32*)
10914 # pw32 DLLs use 'pw' prefix rather than 'lib'
10915 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10916 ;;
10917 esac
10918 dynamic_linker='Win32 ld.exe'
10919 ;;
10920
10921 *,cl*)
10922 # Native MSVC
10923 libname_spec='$name'
10924 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10925 library_names_spec='$libname.dll.lib'
10926
10927 case $build_os in
10928 mingw*)
10929 sys_lib_search_path_spec=
10930 lt_save_ifs=$IFS
10931 IFS=';'
10932 for lt_path in $LIB
10933 do
10934 IFS=$lt_save_ifs
10935 # Let DOS variable expansion print the short 8.3 style file name.
10936 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10937 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10938 done
10939 IFS=$lt_save_ifs
10940 # Convert to MSYS style.
10941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10942 ;;
10943 cygwin*)
10944 # Convert to unix form, then to dos form, then back to unix form
10945 # but this time dos style (no spaces!) so that the unix form looks
10946 # like /cygdrive/c/PROGRA~1:/cygdr...
10947 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10948 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10949 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10950 ;;
10951 *)
10952 sys_lib_search_path_spec=$LIB
10953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10954 # It is most probably a Windows format PATH.
10955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10956 else
10957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10958 fi
10959 # FIXME: find the short name or the path components, as spaces are
10960 # common. (e.g. "Program Files" -> "PROGRA~1")
10961 ;;
10962 esac
10963
10964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10965 postinstall_cmds='base_file=`basename \$file`~
10966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10967 dldir=$destdir/`dirname \$dlpath`~
10968 test -d \$dldir || mkdir -p \$dldir~
10969 $install_prog $dir/$dlname \$dldir/$dlname'
10970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10971 dlpath=$dir/\$dldll~
10972 $RM \$dlpath'
10973 shlibpath_overrides_runpath=yes
10974 dynamic_linker='Win32 link.exe'
10975 ;;
10976
10977 *)
10978 # Assume MSVC wrapper
10979 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10980 dynamic_linker='Win32 ld.exe'
10981 ;;
10982 esac
10983 # FIXME: first we should search . and the directory the executable is in
10984 shlibpath_var=PATH
10985 ;;
10986
10987 darwin* | rhapsody*)
10988 dynamic_linker="$host_os dyld"
10989 version_type=darwin
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10993 soname_spec='$libname$release$major$shared_ext'
10994 shlibpath_overrides_runpath=yes
10995 shlibpath_var=DYLD_LIBRARY_PATH
10996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10997
10998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11000 ;;
11001
11002 dgux*)
11003 version_type=linux # correct to gnu/linux during the next big refactor
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007 soname_spec='$libname$release$shared_ext$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 ;;
11010
11011 freebsd* | dragonfly*)
11012 # DragonFly does not have aout. When/if they implement a new
11013 # versioning mechanism, adjust this.
11014 if test -x /usr/bin/objformat; then
11015 objformat=`/usr/bin/objformat`
11016 else
11017 case $host_os in
11018 freebsd[23].*) objformat=aout ;;
11019 *) objformat=elf ;;
11020 esac
11021 fi
11022 version_type=freebsd-$objformat
11023 case $version_type in
11024 freebsd-elf*)
11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11026 soname_spec='$libname$release$shared_ext$major'
11027 need_version=no
11028 need_lib_prefix=no
11029 ;;
11030 freebsd-*)
11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11032 need_version=yes
11033 ;;
11034 esac
11035 shlibpath_var=LD_LIBRARY_PATH
11036 case $host_os in
11037 freebsd2.*)
11038 shlibpath_overrides_runpath=yes
11039 ;;
11040 freebsd3.[01]* | freebsdelf3.[01]*)
11041 shlibpath_overrides_runpath=yes
11042 hardcode_into_libs=yes
11043 ;;
11044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11048 ;;
11049 *) # from 4.6 on, and DragonFly
11050 shlibpath_overrides_runpath=yes
11051 hardcode_into_libs=yes
11052 ;;
11053 esac
11054 ;;
11055
11056 haiku*)
11057 version_type=linux # correct to gnu/linux during the next big refactor
11058 need_lib_prefix=no
11059 need_version=no
11060 dynamic_linker="$host_os runtime_loader"
11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11062 soname_spec='$libname$release$shared_ext$major'
11063 shlibpath_var=LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
11065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11066 hardcode_into_libs=yes
11067 ;;
11068
11069 hpux9* | hpux10* | hpux11*)
11070 # Give a soname corresponding to the major version so that dld.sl refuses to
11071 # link against other versions.
11072 version_type=sunos
11073 need_lib_prefix=no
11074 need_version=no
11075 case $host_cpu in
11076 ia64*)
11077 shrext_cmds='.so'
11078 hardcode_into_libs=yes
11079 dynamic_linker="$host_os dld.so"
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 soname_spec='$libname$release$shared_ext$major'
11084 if test 32 = "$HPUX_IA64_MODE"; then
11085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11086 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11087 else
11088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11089 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11090 fi
11091 ;;
11092 hppa*64*)
11093 shrext_cmds='.sl'
11094 hardcode_into_libs=yes
11095 dynamic_linker="$host_os dld.sl"
11096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 soname_spec='$libname$release$shared_ext$major'
11100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11102 ;;
11103 *)
11104 shrext_cmds='.sl'
11105 dynamic_linker="$host_os dld.sl"
11106 shlibpath_var=SHLIB_PATH
11107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11109 soname_spec='$libname$release$shared_ext$major'
11110 ;;
11111 esac
11112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11113 postinstall_cmds='chmod 555 $lib'
11114 # or fails outright, so override atomically:
11115 install_override_mode=555
11116 ;;
11117
11118 interix[3-9]*)
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 soname_spec='$libname$release$shared_ext$major'
11124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129
11130 irix5* | irix6* | nonstopux*)
11131 case $host_os in
11132 nonstopux*) version_type=nonstopux ;;
11133 *)
11134 if test yes = "$lt_cv_prog_gnu_ld"; then
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 else
11137 version_type=irix
11138 fi ;;
11139 esac
11140 need_lib_prefix=no
11141 need_version=no
11142 soname_spec='$libname$release$shared_ext$major'
11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11144 case $host_os in
11145 irix5* | nonstopux*)
11146 libsuff= shlibsuff=
11147 ;;
11148 *)
11149 case $LD in # libtool.m4 will add one of these switches to LD
11150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11151 libsuff= shlibsuff= libmagic=32-bit;;
11152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11153 libsuff=32 shlibsuff=N32 libmagic=N32;;
11154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11156 *) libsuff= shlibsuff= libmagic=never-match;;
11157 esac
11158 ;;
11159 esac
11160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11161 shlibpath_overrides_runpath=no
11162 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11163 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11164 hardcode_into_libs=yes
11165 ;;
11166
11167 # No shared lib support for Linux oldld, aout, or coff.
11168 linux*oldld* | linux*aout* | linux*coff*)
11169 dynamic_linker=no
11170 ;;
11171
11172 linux*android*)
11173 version_type=none # Android doesn't support versioned libraries.
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='$libname$release$shared_ext'
11177 soname_spec='$libname$release$shared_ext'
11178 finish_cmds=
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181
11182 # This implies no fast_install, which is unacceptable.
11183 # Some rework will be needed to allow for fast_install
11184 # before this can be enabled.
11185 hardcode_into_libs=yes
11186
11187 dynamic_linker='Android linker'
11188 # Don't embed -rpath directories since the linker doesn't support them.
11189 hardcode_libdir_flag_spec='-L$libdir'
11190 ;;
11191
11192 # This must be glibc/ELF.
11193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
11199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=no
11202
11203 # Some binutils ld are patched to set DT_RUNPATH
11204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 lt_cv_shlibpath_overrides_runpath=no
11208 save_LDFLAGS=$LDFLAGS
11209 save_libdir=$libdir
11210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214
11215 int
11216 main ()
11217 {
11218
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11225 lt_cv_shlibpath_overrides_runpath=yes
11226 fi
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LDFLAGS=$save_LDFLAGS
11231 libdir=$save_libdir
11232
11233 fi
11234
11235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11236
11237 # This implies no fast_install, which is unacceptable.
11238 # Some rework will be needed to allow for fast_install
11239 # before this can be enabled.
11240 hardcode_into_libs=yes
11241
11242 # Add ABI-specific directories to the system library path.
11243 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11244
11245 # Ideally, we could use ldconfig to report *all* directores which are
11246 # searched for libraries, however this is still not possible. Aside from not
11247 # being certain /sbin/ldconfig is available, command
11248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11249 # even though it is searched at run-time. Try to do the best guess by
11250 # appending ld.so.conf contents (and includes) to the search path.
11251 if test -f /etc/ld.so.conf; then
11252 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' ' '`
11253 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11254 fi
11255
11256 # We used to test for /lib/ld.so.1 and disable shared libraries on
11257 # powerpc, because MkLinux only supported shared libraries with the
11258 # GNU dynamic linker. Since this was broken with cross compilers,
11259 # most powerpc-linux boxes support dynamic linking these days and
11260 # people can always --disable-shared, the test was removed, and we
11261 # assume the GNU/Linux dynamic linker is in use.
11262 dynamic_linker='GNU/Linux ld.so'
11263 ;;
11264
11265 netbsd*)
11266 version_type=sunos
11267 need_lib_prefix=no
11268 need_version=no
11269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11272 dynamic_linker='NetBSD (a.out) ld.so'
11273 else
11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11275 soname_spec='$libname$release$shared_ext$major'
11276 dynamic_linker='NetBSD ld.elf_so'
11277 fi
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=yes
11280 hardcode_into_libs=yes
11281 ;;
11282
11283 newsos6)
11284 version_type=linux # correct to gnu/linux during the next big refactor
11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=yes
11288 ;;
11289
11290 *nto* | *qnx*)
11291 version_type=qnx
11292 need_lib_prefix=no
11293 need_version=no
11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295 soname_spec='$libname$release$shared_ext$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=no
11298 hardcode_into_libs=yes
11299 dynamic_linker='ldqnx.so'
11300 ;;
11301
11302 openbsd* | bitrig*)
11303 version_type=sunos
11304 sys_lib_dlsearch_path_spec=/usr/lib
11305 need_lib_prefix=no
11306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11307 need_version=no
11308 else
11309 need_version=yes
11310 fi
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 shlibpath_overrides_runpath=yes
11315 ;;
11316
11317 os2*)
11318 libname_spec='$name'
11319 version_type=windows
11320 shrext_cmds=.dll
11321 need_version=no
11322 need_lib_prefix=no
11323 # OS/2 can only load a DLL with a base name of 8 characters or less.
11324 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11325 v=$($ECHO $release$versuffix | tr -d .-);
11326 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11327 $ECHO $n$v`$shared_ext'
11328 library_names_spec='${libname}_dll.$libext'
11329 dynamic_linker='OS/2 ld.exe'
11330 shlibpath_var=BEGINLIBPATH
11331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333 postinstall_cmds='base_file=`basename \$file`~
11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11335 dldir=$destdir/`dirname \$dlpath`~
11336 test -d \$dldir || mkdir -p \$dldir~
11337 $install_prog $dir/$dlname \$dldir/$dlname~
11338 chmod a+x \$dldir/$dlname~
11339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11341 fi'
11342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11343 dlpath=$dir/\$dldll~
11344 $RM \$dlpath'
11345 ;;
11346
11347 osf3* | osf4* | osf5*)
11348 version_type=osf
11349 need_lib_prefix=no
11350 need_version=no
11351 soname_spec='$libname$release$shared_ext$major'
11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356 ;;
11357
11358 rdos*)
11359 dynamic_linker=no
11360 ;;
11361
11362 solaris*)
11363 version_type=linux # correct to gnu/linux during the next big refactor
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 soname_spec='$libname$release$shared_ext$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=yes
11370 hardcode_into_libs=yes
11371 # ldd complains unless libraries are executable
11372 postinstall_cmds='chmod +x $lib'
11373 ;;
11374
11375 sunos4*)
11376 version_type=sunos
11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11379 shlibpath_var=LD_LIBRARY_PATH
11380 shlibpath_overrides_runpath=yes
11381 if test yes = "$with_gnu_ld"; then
11382 need_lib_prefix=no
11383 fi
11384 need_version=yes
11385 ;;
11386
11387 sysv4 | sysv4.3*)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11390 soname_spec='$libname$release$shared_ext$major'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 case $host_vendor in
11393 sni)
11394 shlibpath_overrides_runpath=no
11395 need_lib_prefix=no
11396 runpath_var=LD_RUN_PATH
11397 ;;
11398 siemens)
11399 need_lib_prefix=no
11400 ;;
11401 motorola)
11402 need_lib_prefix=no
11403 need_version=no
11404 shlibpath_overrides_runpath=no
11405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11406 ;;
11407 esac
11408 ;;
11409
11410 sysv4*MP*)
11411 if test -d /usr/nec; then
11412 version_type=linux # correct to gnu/linux during the next big refactor
11413 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11414 soname_spec='$libname$shared_ext.$major'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 fi
11417 ;;
11418
11419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11420 version_type=sco
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11424 soname_spec='$libname$release$shared_ext$major'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11427 hardcode_into_libs=yes
11428 if test yes = "$with_gnu_ld"; then
11429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11430 else
11431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11432 case $host_os in
11433 sco3.2v5*)
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11435 ;;
11436 esac
11437 fi
11438 sys_lib_dlsearch_path_spec='/usr/lib'
11439 ;;
11440
11441 tpf*)
11442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11443 version_type=linux # correct to gnu/linux during the next big refactor
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=no
11449 hardcode_into_libs=yes
11450 ;;
11451
11452 uts4*)
11453 version_type=linux # correct to gnu/linux during the next big refactor
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455 soname_spec='$libname$release$shared_ext$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 ;;
11458
11459 *)
11460 dynamic_linker=no
11461 ;;
11462 esac
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11464 $as_echo "$dynamic_linker" >&6; }
11465 test no = "$dynamic_linker" && can_build_shared=no
11466
11467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11468 if test yes = "$GCC"; then
11469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11470 fi
11471
11472 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11473 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11474 fi
11475
11476 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11477 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11478 fi
11479
11480 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11481 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11482
11483 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11484 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11485
11486 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11487 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11586 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11587 hardcode_action=
11588 if test -n "$hardcode_libdir_flag_spec" ||
11589 test -n "$runpath_var" ||
11590 test yes = "$hardcode_automatic"; then
11591
11592 # We can hardcode non-existent directories.
11593 if test no != "$hardcode_direct" &&
11594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11595 # have to relink, otherwise we might link with an installed library
11596 # when we should be linking with a yet-to-be-installed one
11597 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11598 test no != "$hardcode_minus_L"; then
11599 # Linking always hardcodes the temporary library directory.
11600 hardcode_action=relink
11601 else
11602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11603 hardcode_action=immediate
11604 fi
11605 else
11606 # We cannot hardcode anything, or else we can only hardcode existing
11607 # directories.
11608 hardcode_action=unsupported
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11611 $as_echo "$hardcode_action" >&6; }
11612
11613 if test relink = "$hardcode_action" ||
11614 test yes = "$inherit_rpath"; then
11615 # Fast installation is not supported
11616 enable_fast_install=no
11617 elif test yes = "$shlibpath_overrides_runpath" ||
11618 test no = "$enable_shared"; then
11619 # Fast installation is not necessary
11620 enable_fast_install=needless
11621 fi
11622
11623
11624
11625
11626
11627
11628 if test yes != "$enable_dlopen"; then
11629 enable_dlopen=unknown
11630 enable_dlopen_self=unknown
11631 enable_dlopen_self_static=unknown
11632 else
11633 lt_cv_dlopen=no
11634 lt_cv_dlopen_libs=
11635
11636 case $host_os in
11637 beos*)
11638 lt_cv_dlopen=load_add_on
11639 lt_cv_dlopen_libs=
11640 lt_cv_dlopen_self=yes
11641 ;;
11642
11643 mingw* | pw32* | cegcc*)
11644 lt_cv_dlopen=LoadLibrary
11645 lt_cv_dlopen_libs=
11646 ;;
11647
11648 cygwin*)
11649 lt_cv_dlopen=dlopen
11650 lt_cv_dlopen_libs=
11651 ;;
11652
11653 darwin*)
11654 # if libdl is installed we need to link against it
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11657 if ${ac_cv_lib_dl_dlopen+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-ldl $LIBS"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char dlopen ();
11672 int
11673 main ()
11674 {
11675 return dlopen ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_lib_dl_dlopen=yes
11682 else
11683 ac_cv_lib_dl_dlopen=no
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11693 else
11694
11695 lt_cv_dlopen=dyld
11696 lt_cv_dlopen_libs=
11697 lt_cv_dlopen_self=yes
11698
11699 fi
11700
11701 ;;
11702
11703 tpf*)
11704 # Don't try to run any link tests for TPF. We know it's impossible
11705 # because TPF is a cross-compiler, and we know how we open DSOs.
11706 lt_cv_dlopen=dlopen
11707 lt_cv_dlopen_libs=
11708 lt_cv_dlopen_self=no
11709 ;;
11710
11711 *)
11712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11713 if test "x$ac_cv_func_shl_load" = xyes; then :
11714 lt_cv_dlopen=shl_load
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11717 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11718 if ${ac_cv_lib_dld_shl_load+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 ac_check_lib_save_LIBS=$LIBS
11722 LIBS="-ldld $LIBS"
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char shl_load ();
11733 int
11734 main ()
11735 {
11736 return shl_load ();
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_c_try_link "$LINENO"; then :
11742 ac_cv_lib_dld_shl_load=yes
11743 else
11744 ac_cv_lib_dld_shl_load=no
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 LIBS=$ac_check_lib_save_LIBS
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11751 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11752 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11753 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11754 else
11755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11756 if test "x$ac_cv_func_dlopen" = xyes; then :
11757 lt_cv_dlopen=dlopen
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11761 if ${ac_cv_lib_dl_dlopen+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 ac_check_lib_save_LIBS=$LIBS
11765 LIBS="-ldl $LIBS"
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char dlopen ();
11776 int
11777 main ()
11778 {
11779 return dlopen ();
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"; then :
11785 ac_cv_lib_dl_dlopen=yes
11786 else
11787 ac_cv_lib_dl_dlopen=no
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11792 fi
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11796 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11799 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11800 if ${ac_cv_lib_svld_dlopen+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-lsvld $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_svld_dlopen=yes
11825 else
11826 ac_cv_lib_svld_dlopen=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11833 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11834 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11838 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11839 if ${ac_cv_lib_dld_dld_link+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-ldld $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char dld_link ();
11854 int
11855 main ()
11856 {
11857 return dld_link ();
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_dld_dld_link=yes
11864 else
11865 ac_cv_lib_dld_dld_link=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11872 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11873 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11874 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11875 fi
11876
11877
11878 fi
11879
11880
11881 fi
11882
11883
11884 fi
11885
11886
11887 fi
11888
11889
11890 fi
11891
11892 ;;
11893 esac
11894
11895 if test no = "$lt_cv_dlopen"; then
11896 enable_dlopen=no
11897 else
11898 enable_dlopen=yes
11899 fi
11900
11901 case $lt_cv_dlopen in
11902 dlopen)
11903 save_CPPFLAGS=$CPPFLAGS
11904 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11905
11906 save_LDFLAGS=$LDFLAGS
11907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11908
11909 save_LIBS=$LIBS
11910 LIBS="$lt_cv_dlopen_libs $LIBS"
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11913 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11914 if ${lt_cv_dlopen_self+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test yes = "$cross_compiling"; then :
11918 lt_cv_dlopen_self=cross
11919 else
11920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11921 lt_status=$lt_dlunknown
11922 cat > conftest.$ac_ext <<_LT_EOF
11923 #line $LINENO "configure"
11924 #include "confdefs.h"
11925
11926 #if HAVE_DLFCN_H
11927 #include <dlfcn.h>
11928 #endif
11929
11930 #include <stdio.h>
11931
11932 #ifdef RTLD_GLOBAL
11933 # define LT_DLGLOBAL RTLD_GLOBAL
11934 #else
11935 # ifdef DL_GLOBAL
11936 # define LT_DLGLOBAL DL_GLOBAL
11937 # else
11938 # define LT_DLGLOBAL 0
11939 # endif
11940 #endif
11941
11942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11943 find out it does not work in some platform. */
11944 #ifndef LT_DLLAZY_OR_NOW
11945 # ifdef RTLD_LAZY
11946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11947 # else
11948 # ifdef DL_LAZY
11949 # define LT_DLLAZY_OR_NOW DL_LAZY
11950 # else
11951 # ifdef RTLD_NOW
11952 # define LT_DLLAZY_OR_NOW RTLD_NOW
11953 # else
11954 # ifdef DL_NOW
11955 # define LT_DLLAZY_OR_NOW DL_NOW
11956 # else
11957 # define LT_DLLAZY_OR_NOW 0
11958 # endif
11959 # endif
11960 # endif
11961 # endif
11962 #endif
11963
11964 /* When -fvisibility=hidden is used, assume the code has been annotated
11965 correspondingly for the symbols needed. */
11966 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11967 int fnord () __attribute__((visibility("default")));
11968 #endif
11969
11970 int fnord () { return 42; }
11971 int main ()
11972 {
11973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11974 int status = $lt_dlunknown;
11975
11976 if (self)
11977 {
11978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11979 else
11980 {
11981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11982 else puts (dlerror ());
11983 }
11984 /* dlclose (self); */
11985 }
11986 else
11987 puts (dlerror ());
11988
11989 return status;
11990 }
11991 _LT_EOF
11992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11993 (eval $ac_link) 2>&5
11994 ac_status=$?
11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11996 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11997 (./conftest; exit; ) >&5 2>/dev/null
11998 lt_status=$?
11999 case x$lt_status in
12000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12003 esac
12004 else :
12005 # compilation failed
12006 lt_cv_dlopen_self=no
12007 fi
12008 fi
12009 rm -fr conftest*
12010
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12014 $as_echo "$lt_cv_dlopen_self" >&6; }
12015
12016 if test yes = "$lt_cv_dlopen_self"; then
12017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12019 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12020 if ${lt_cv_dlopen_self_static+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 if test yes = "$cross_compiling"; then :
12024 lt_cv_dlopen_self_static=cross
12025 else
12026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12027 lt_status=$lt_dlunknown
12028 cat > conftest.$ac_ext <<_LT_EOF
12029 #line $LINENO "configure"
12030 #include "confdefs.h"
12031
12032 #if HAVE_DLFCN_H
12033 #include <dlfcn.h>
12034 #endif
12035
12036 #include <stdio.h>
12037
12038 #ifdef RTLD_GLOBAL
12039 # define LT_DLGLOBAL RTLD_GLOBAL
12040 #else
12041 # ifdef DL_GLOBAL
12042 # define LT_DLGLOBAL DL_GLOBAL
12043 # else
12044 # define LT_DLGLOBAL 0
12045 # endif
12046 #endif
12047
12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12049 find out it does not work in some platform. */
12050 #ifndef LT_DLLAZY_OR_NOW
12051 # ifdef RTLD_LAZY
12052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12053 # else
12054 # ifdef DL_LAZY
12055 # define LT_DLLAZY_OR_NOW DL_LAZY
12056 # else
12057 # ifdef RTLD_NOW
12058 # define LT_DLLAZY_OR_NOW RTLD_NOW
12059 # else
12060 # ifdef DL_NOW
12061 # define LT_DLLAZY_OR_NOW DL_NOW
12062 # else
12063 # define LT_DLLAZY_OR_NOW 0
12064 # endif
12065 # endif
12066 # endif
12067 # endif
12068 #endif
12069
12070 /* When -fvisibility=hidden is used, assume the code has been annotated
12071 correspondingly for the symbols needed. */
12072 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12073 int fnord () __attribute__((visibility("default")));
12074 #endif
12075
12076 int fnord () { return 42; }
12077 int main ()
12078 {
12079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12080 int status = $lt_dlunknown;
12081
12082 if (self)
12083 {
12084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12085 else
12086 {
12087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12088 else puts (dlerror ());
12089 }
12090 /* dlclose (self); */
12091 }
12092 else
12093 puts (dlerror ());
12094
12095 return status;
12096 }
12097 _LT_EOF
12098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12099 (eval $ac_link) 2>&5
12100 ac_status=$?
12101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12103 (./conftest; exit; ) >&5 2>/dev/null
12104 lt_status=$?
12105 case x$lt_status in
12106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12109 esac
12110 else :
12111 # compilation failed
12112 lt_cv_dlopen_self_static=no
12113 fi
12114 fi
12115 rm -fr conftest*
12116
12117
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12120 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12121 fi
12122
12123 CPPFLAGS=$save_CPPFLAGS
12124 LDFLAGS=$save_LDFLAGS
12125 LIBS=$save_LIBS
12126 ;;
12127 esac
12128
12129 case $lt_cv_dlopen_self in
12130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12131 *) enable_dlopen_self=unknown ;;
12132 esac
12133
12134 case $lt_cv_dlopen_self_static in
12135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12136 *) enable_dlopen_self_static=unknown ;;
12137 esac
12138 fi
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 striplib=
12157 old_striplib=
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12159 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12160 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164 $as_echo "yes" >&6; }
12165 else
12166 # FIXME - insert some real tests, host_os isn't really good enough
12167 case $host_os in
12168 darwin*)
12169 if test -n "$STRIP"; then
12170 striplib="$STRIP -x"
12171 old_striplib="$STRIP -S"
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12173 $as_echo "yes" >&6; }
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178 ;;
12179 *)
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 ;;
12183 esac
12184 fi
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197 # Report what library types will actually be built
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12199 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12201 $as_echo "$can_build_shared" >&6; }
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12204 $as_echo_n "checking whether to build shared libraries... " >&6; }
12205 test no = "$can_build_shared" && enable_shared=no
12206
12207 # On AIX, shared libraries and static libraries use the same namespace, and
12208 # are all built from PIC.
12209 case $host_os in
12210 aix3*)
12211 test yes = "$enable_shared" && enable_static=no
12212 if test -n "$RANLIB"; then
12213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12214 postinstall_cmds='$RANLIB $lib'
12215 fi
12216 ;;
12217
12218 aix[4-9]*)
12219 if test ia64 != "$host_cpu"; then
12220 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12221 yes,aix,yes) ;; # shared object as lib.so file only
12222 yes,svr4,*) ;; # shared object as lib.so archive member only
12223 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12224 esac
12225 fi
12226 ;;
12227 esac
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12229 $as_echo "$enable_shared" >&6; }
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12232 $as_echo_n "checking whether to build static libraries... " >&6; }
12233 # Make sure either enable_shared or enable_static is yes.
12234 test yes = "$enable_shared" || enable_static=yes
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12236 $as_echo "$enable_static" >&6; }
12237
12238
12239
12240
12241 fi
12242 ac_ext=c
12243 ac_cpp='$CPP $CPPFLAGS'
12244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12247
12248 CC=$lt_save_CC
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264 ac_config_commands="$ac_config_commands libtool"
12265
12266
12267
12268
12269 # Only expand once:
12270
12271
12272
12273 # Check whether --enable-silent-rules was given.
12274 if test "${enable_silent_rules+set}" = set; then :
12275 enableval=$enable_silent_rules;
12276 fi
12277
12278 case $enable_silent_rules in # (((
12279 yes) AM_DEFAULT_VERBOSITY=0;;
12280 no) AM_DEFAULT_VERBOSITY=1;;
12281 *) AM_DEFAULT_VERBOSITY=0;;
12282 esac
12283 am_make=${MAKE-make}
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12285 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12286 if ${am_cv_make_support_nested_variables+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if $as_echo 'TRUE=$(BAR$(V))
12290 BAR0=false
12291 BAR1=true
12292 V=1
12293 am__doit:
12294 @$(TRUE)
12295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12296 am_cv_make_support_nested_variables=yes
12297 else
12298 am_cv_make_support_nested_variables=no
12299 fi
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12302 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12303 if test $am_cv_make_support_nested_variables = yes; then
12304 AM_V='$(V)'
12305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12306 else
12307 AM_V=$AM_DEFAULT_VERBOSITY
12308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12309 fi
12310 AM_BACKSLASH='\'
12311
12312
12313
12314 OP_LT_CURRENT=4
12315 OP_LT_REVISION=2
12316 OP_LT_AGE=4
12317
12318
12319
12320
12321
12322
12323 for flag in -std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long; do
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
12326 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
12327 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330
12331 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 ac_save_CFLAGS="$CFLAGS"
12335 CFLAGS="$CFLAGS $flag"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 int main() { return 0; }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
12342 else
12343 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 CFLAGS="$ac_save_CFLAGS"
12348
12349 fi
12350
12351
12352 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
12353
12354 fi
12355
12356 fi
12357 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12359 $as_echo "$ac_res" >&6; }
12360
12361 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
12362 CFLAGS="$CFLAGS $flag";
12363 fi
12364
12365 done
12366
12367
12368 # Platform-specific tweaks
12369 case $host in
12370 *-mingw*)
12371 # -std=c89 causes some warnings under mingw.
12372
12373 for flag in -U__STRICT_ANSI__; do
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
12376 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
12377 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380
12381 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_save_CFLAGS="$CFLAGS"
12385 CFLAGS="$CFLAGS $flag"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 int main() { return 0; }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
12392 else
12393 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 CFLAGS="$ac_save_CFLAGS"
12398
12399 fi
12400
12401
12402 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
12403
12404 fi
12405
12406 fi
12407 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12409 $as_echo "$ac_res" >&6; }
12410
12411 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
12412 CFLAGS="$CFLAGS $flag";
12413 fi
12414
12415 done
12416
12417 # We need WINNT>=0x501 (WindowsXP) for getaddrinfo/freeaddrinfo.
12418 # It's okay to define this even when HTTP support is disabled, as it only
12419 # affects header declarations, not linking (unless we actually use some
12420 # XP-only functions).
12421
12422 cat >>confdefs.h <<_ACEOF
12423 #define _WIN32_WINNT 0x501
12424 _ACEOF
12425
12426 host_mingw=true
12427 ;;
12428 esac
12429 if test "$host_mingw" = "true"; then
12430 OP_WIN32_TRUE=
12431 OP_WIN32_FALSE='#'
12432 else
12433 OP_WIN32_TRUE='#'
12434 OP_WIN32_FALSE=
12435 fi
12436
12437
12438 # Check whether --enable-assertions was given.
12439 if test "${enable_assertions+set}" = set; then :
12440 enableval=$enable_assertions;
12441 else
12442 enable_assertions=no
12443 fi
12444
12445
12446 if test "$enable_assertions" = "yes"; then :
12447
12448
12449 $as_echo "#define OP_ENABLE_ASSERTIONS 1" >>confdefs.h
12450
12451
12452 fi
12453
12454 # Check whether --enable-http was given.
12455 if test "${enable_http+set}" = set; then :
12456 enableval=$enable_http;
12457 else
12458 enable_http=yes
12459 fi
12460
12461
12462 if test -z "$OP_WIN32_TRUE"; then :
12463 if test "$enable_http" != "no"; then :
12464 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12465 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12466
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a Winsock socket library." >&5
12469 $as_echo "$as_me: WARNING: HTTP support requires a Winsock socket library." >&2;}
12470 enable_http=no
12471
12472 fi
12473
12474
12475
12476 fi
12477 else
12478 if test "$enable_http" != "no"; then :
12479 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12480 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12481
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a POSIX socket library." >&5
12484 $as_echo "$as_me: WARNING: HTTP support requires a POSIX socket library." >&2;}
12485 enable_http=no
12486
12487 fi
12488
12489
12490
12491 fi
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ftime" >&5
12495 $as_echo_n "checking for library containing ftime... " >&6; }
12496 if ${ac_cv_search_ftime+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 ac_func_search_save_LIBS=$LIBS
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char ftime ();
12510 int
12511 main ()
12512 {
12513 return ftime ();
12514 ;
12515 return 0;
12516 }
12517 _ACEOF
12518 for ac_lib in '' compat; do
12519 if test -z "$ac_lib"; then
12520 ac_res="none required"
12521 else
12522 ac_res=-l$ac_lib
12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12524 fi
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 ac_cv_search_ftime=$ac_res
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext
12530 if ${ac_cv_search_ftime+:} false; then :
12531 break
12532 fi
12533 done
12534 if ${ac_cv_search_ftime+:} false; then :
12535
12536 else
12537 ac_cv_search_ftime=no
12538 fi
12539 rm conftest.$ac_ext
12540 LIBS=$ac_func_search_save_LIBS
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ftime" >&5
12543 $as_echo "$ac_cv_search_ftime" >&6; }
12544 ac_res=$ac_cv_search_ftime
12545 if test "$ac_res" != no; then :
12546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12547
12548 else
12549 enable_http=no
12550 fi
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12563 if test -n "$ac_tool_prefix"; then
12564 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12565 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 case $PKG_CONFIG in
12572 [\\/]* | ?:[\\/]*)
12573 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12574 ;;
12575 *)
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12578 do
12579 IFS=$as_save_IFS
12580 test -z "$as_dir" && as_dir=.
12581 for ac_exec_ext in '' $ac_executable_extensions; do
12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 break 2
12586 fi
12587 done
12588 done
12589 IFS=$as_save_IFS
12590
12591 ;;
12592 esac
12593 fi
12594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12595 if test -n "$PKG_CONFIG"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12597 $as_echo "$PKG_CONFIG" >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604 fi
12605 if test -z "$ac_cv_path_PKG_CONFIG"; then
12606 ac_pt_PKG_CONFIG=$PKG_CONFIG
12607 # Extract the first word of "pkg-config", so it can be a program name with args.
12608 set dummy pkg-config; ac_word=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 case $ac_pt_PKG_CONFIG in
12615 [\\/]* | ?:[\\/]*)
12616 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12617 ;;
12618 *)
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12621 do
12622 IFS=$as_save_IFS
12623 test -z "$as_dir" && as_dir=.
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12626 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628 break 2
12629 fi
12630 done
12631 done
12632 IFS=$as_save_IFS
12633
12634 ;;
12635 esac
12636 fi
12637 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12638 if test -n "$ac_pt_PKG_CONFIG"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12640 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645
12646 if test "x$ac_pt_PKG_CONFIG" = x; then
12647 PKG_CONFIG=""
12648 else
12649 case $cross_compiling:$ac_tool_warned in
12650 yes:)
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12653 ac_tool_warned=yes ;;
12654 esac
12655 PKG_CONFIG=$ac_pt_PKG_CONFIG
12656 fi
12657 else
12658 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12659 fi
12660
12661 fi
12662 if test -n "$PKG_CONFIG"; then
12663 _pkg_min_version=0.9.0
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12665 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12666 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668 $as_echo "yes" >&6; }
12669 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 PKG_CONFIG=""
12673 fi
12674 fi
12675 if test "$enable_http" != "no"; then :
12676
12677 openssl="openssl"
12678
12679 $as_echo "#define OP_ENABLE_HTTP 1" >>confdefs.h
12680
12681
12682 pkg_failed=no
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for URL_DEPS" >&5
12684 $as_echo_n "checking for URL_DEPS... " >&6; }
12685
12686 if test -n "$URL_DEPS_CFLAGS"; then
12687 pkg_cv_URL_DEPS_CFLAGS="$URL_DEPS_CFLAGS"
12688 elif test -n "$PKG_CONFIG"; then
12689 if test -n "$PKG_CONFIG" && \
12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12691 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12692 ac_status=$?
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; }; then
12695 pkg_cv_URL_DEPS_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
12696 test "x$?" != "x0" && pkg_failed=yes
12697 else
12698 pkg_failed=yes
12699 fi
12700 else
12701 pkg_failed=untried
12702 fi
12703 if test -n "$URL_DEPS_LIBS"; then
12704 pkg_cv_URL_DEPS_LIBS="$URL_DEPS_LIBS"
12705 elif test -n "$PKG_CONFIG"; then
12706 if test -n "$PKG_CONFIG" && \
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12708 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; }; then
12712 pkg_cv_URL_DEPS_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
12713 test "x$?" != "x0" && pkg_failed=yes
12714 else
12715 pkg_failed=yes
12716 fi
12717 else
12718 pkg_failed=untried
12719 fi
12720
12721
12722
12723 if test $pkg_failed = yes; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12726
12727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12728 _pkg_short_errors_supported=yes
12729 else
12730 _pkg_short_errors_supported=no
12731 fi
12732 if test $_pkg_short_errors_supported = yes; then
12733 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
12734 else
12735 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
12736 fi
12737 # Put the nasty error message in config.log where it belongs
12738 echo "$URL_DEPS_PKG_ERRORS" >&5
12739
12740 as_fn_error $? "Package requirements (openssl) were not met:
12741
12742 $URL_DEPS_PKG_ERRORS
12743
12744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12745 installed software in a non-standard prefix.
12746
12747 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
12748 and URL_DEPS_LIBS to avoid the need to call pkg-config.
12749 See the pkg-config man page for more details." "$LINENO" 5
12750 elif test $pkg_failed = untried; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12755 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12756 is in your PATH or set the PKG_CONFIG environment variable to the full
12757 path to pkg-config.
12758
12759 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
12760 and URL_DEPS_LIBS to avoid the need to call pkg-config.
12761 See the pkg-config man page for more details.
12762
12763 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12764 See \`config.log' for more details" "$LINENO" 5; }
12765 else
12766 URL_DEPS_CFLAGS=$pkg_cv_URL_DEPS_CFLAGS
12767 URL_DEPS_LIBS=$pkg_cv_URL_DEPS_LIBS
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769 $as_echo "yes" >&6; }
12770
12771 fi
12772
12773 fi
12774 if test "$enable_http" != "no"; then
12775 OP_ENABLE_HTTP_TRUE=
12776 OP_ENABLE_HTTP_FALSE='#'
12777 else
12778 OP_ENABLE_HTTP_TRUE='#'
12779 OP_ENABLE_HTTP_FALSE=
12780 fi
12781
12782
12783
12784
12785 pkg_failed=no
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
12787 $as_echo_n "checking for DEPS... " >&6; }
12788
12789 if test -n "$DEPS_CFLAGS"; then
12790 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
12791 elif test -n "$PKG_CONFIG"; then
12792 if test -n "$PKG_CONFIG" && \
12793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
12794 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
12795 ac_status=$?
12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12797 test $ac_status = 0; }; then
12798 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
12799 test "x$?" != "x0" && pkg_failed=yes
12800 else
12801 pkg_failed=yes
12802 fi
12803 else
12804 pkg_failed=untried
12805 fi
12806 if test -n "$DEPS_LIBS"; then
12807 pkg_cv_DEPS_LIBS="$DEPS_LIBS"
12808 elif test -n "$PKG_CONFIG"; then
12809 if test -n "$PKG_CONFIG" && \
12810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
12811 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; }; then
12815 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
12816 test "x$?" != "x0" && pkg_failed=yes
12817 else
12818 pkg_failed=yes
12819 fi
12820 else
12821 pkg_failed=untried
12822 fi
12823
12824
12825
12826 if test $pkg_failed = yes; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829
12830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12831 _pkg_short_errors_supported=yes
12832 else
12833 _pkg_short_errors_supported=no
12834 fi
12835 if test $_pkg_short_errors_supported = yes; then
12836 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
12837 else
12838 DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
12839 fi
12840 # Put the nasty error message in config.log where it belongs
12841 echo "$DEPS_PKG_ERRORS" >&5
12842
12843 as_fn_error $? "Package requirements (ogg >= 1.3 opus >= 1.0.1) were not met:
12844
12845 $DEPS_PKG_ERRORS
12846
12847 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12848 installed software in a non-standard prefix.
12849
12850 Alternatively, you may set the environment variables DEPS_CFLAGS
12851 and DEPS_LIBS to avoid the need to call pkg-config.
12852 See the pkg-config man page for more details." "$LINENO" 5
12853 elif test $pkg_failed = untried; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12858 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12859 is in your PATH or set the PKG_CONFIG environment variable to the full
12860 path to pkg-config.
12861
12862 Alternatively, you may set the environment variables DEPS_CFLAGS
12863 and DEPS_LIBS to avoid the need to call pkg-config.
12864 See the pkg-config man page for more details.
12865
12866 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12867 See \`config.log' for more details" "$LINENO" 5; }
12868 else
12869 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
12870 DEPS_LIBS=$pkg_cv_DEPS_LIBS
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873
12874 fi
12875
12876 # Check whether --enable-fixed-point was given.
12877 if test "${enable_fixed_point+set}" = set; then :
12878 enableval=$enable_fixed_point;
12879 else
12880 enable_fixed_point=no
12881 fi
12882
12883 # Check whether --enable-float was given.
12884 if test "${enable_float+set}" = set; then :
12885 enableval=$enable_float;
12886 else
12887 enable_float=yes
12888 fi
12889
12890
12891 if test "$enable_float" = "no"; then :
12892 enable_fixed_point=yes
12893
12894 $as_echo "#define OP_DISABLE_FLOAT_API 1" >>confdefs.h
12895
12896
12897
12898 fi
12899
12900 if test "$enable_fixed_point" = "yes"; then :
12901
12902 $as_echo "#define OP_FIXED_POINT 1" >>confdefs.h
12903
12904 else
12905 saved_LIBS="$LIBS"
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrintf" >&5
12907 $as_echo_n "checking for library containing lrintf... " >&6; }
12908 if ${ac_cv_search_lrintf+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 ac_func_search_save_LIBS=$LIBS
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 char lrintf ();
12922 int
12923 main ()
12924 {
12925 return lrintf ();
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 for ac_lib in '' m; do
12931 if test -z "$ac_lib"; then
12932 ac_res="none required"
12933 else
12934 ac_res=-l$ac_lib
12935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12936 fi
12937 if ac_fn_c_try_link "$LINENO"; then :
12938 ac_cv_search_lrintf=$ac_res
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext
12942 if ${ac_cv_search_lrintf+:} false; then :
12943 break
12944 fi
12945 done
12946 if ${ac_cv_search_lrintf+:} false; then :
12947
12948 else
12949 ac_cv_search_lrintf=no
12950 fi
12951 rm conftest.$ac_ext
12952 LIBS=$ac_func_search_save_LIBS
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrintf" >&5
12955 $as_echo "$ac_cv_search_lrintf" >&6; }
12956 ac_res=$ac_cv_search_lrintf
12957 if test "$ac_res" != no; then :
12958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959
12960
12961 $as_echo "#define OP_HAVE_LRINTF 1" >>confdefs.h
12962
12963 lrintf_notice="
12964 Library for lrintf() ......... ${ac_cv_search_lrintf}"
12965
12966 fi
12967
12968 LIBS="$saved_LIBS"
12969
12970
12971 fi
12972
12973 # Check whether --enable-examples was given.
12974 if test "${enable_examples+set}" = set; then :
12975 enableval=$enable_examples;
12976 else
12977 enable_examples=yes
12978 fi
12979
12980 if test "$enable_examples" = "yes"; then
12981 OP_ENABLE_EXAMPLES_TRUE=
12982 OP_ENABLE_EXAMPLES_FALSE='#'
12983 else
12984 OP_ENABLE_EXAMPLES_TRUE='#'
12985 OP_ENABLE_EXAMPLES_FALSE=
12986 fi
12987
12988
12989 case "$ac_cv_search_lrintf" in #(
12990 "no") :
12991 ;; #(
12992 "none required") :
12993 ;; #(
12994 *) :
12995 lrintf_lib="$ac_cv_search_lrintf" ;;
12996 esac
12997
12998
12999
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
13002 $as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
13003 if ${cc_cv_werror+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006
13007 if ${cc_cv_cflags__Werror+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 ac_save_CFLAGS="$CFLAGS"
13011 CFLAGS="$CFLAGS -Werror"
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 int main() { return 0; }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 eval "cc_cv_cflags__Werror='yes'"
13018 else
13019 eval "cc_cv_cflags__Werror='no'"
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 CFLAGS="$ac_save_CFLAGS"
13024
13025 fi
13026
13027
13028 if eval test x$cc_cv_cflags__Werror = xyes; then :
13029 cc_cv_werror=-Werror
13030 else
13031
13032 if ${cc_cv_cflags__errwarn__all+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 ac_save_CFLAGS="$CFLAGS"
13036 CFLAGS="$CFLAGS -errwarn=%all"
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 int main() { return 0; }
13040 _ACEOF
13041 if ac_fn_c_try_link "$LINENO"; then :
13042 eval "cc_cv_cflags__errwarn__all='yes'"
13043 else
13044 eval "cc_cv_cflags__errwarn__all='no'"
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13048 CFLAGS="$ac_save_CFLAGS"
13049
13050 fi
13051
13052
13053 if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
13054 cc_cv_werror=-errwarn=%all
13055 fi
13056
13057 fi
13058
13059
13060 fi
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
13062 $as_echo "$cc_cv_werror" >&6; }
13063
13064
13065
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
13068 $as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
13069 if ${cc_cv_attribute_visibility_default+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_save_CFLAGS="$CFLAGS"
13073 CFLAGS="$CFLAGS $cc_cv_werror"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 void __attribute__((visibility("default"))) default_function() { }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 eval "cc_cv_attribute_visibility_default='yes'"
13080 else
13081 eval "cc_cv_attribute_visibility_default='no'"
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 CFLAGS="$ac_save_CFLAGS"
13085
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
13088 $as_echo "$cc_cv_attribute_visibility_default" >&6; }
13089
13090 if eval test x$cc_cv_attribute_visibility_default = xyes; then :
13091
13092 $as_echo "#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
13093
13094
13095
13096
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
13098 $as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
13099 if ${cc_cv_flag_visibility+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 cc_flag_visibility_save_CFLAGS="$CFLAGS"
13103 CFLAGS="$CFLAGS $cc_cv_werror"
13104
13105 if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 ac_save_CFLAGS="$CFLAGS"
13109 CFLAGS="$CFLAGS -fvisibility=hidden"
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 int main() { return 0; }
13113 _ACEOF
13114 if ac_fn_c_try_link "$LINENO"; then :
13115 eval "cc_cv_cflags__fvisibility_hidden='yes'"
13116 else
13117 eval "cc_cv_cflags__fvisibility_hidden='no'"
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 CFLAGS="$ac_save_CFLAGS"
13122
13123 fi
13124
13125
13126 if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
13127 cc_cv_flag_visibility='yes'
13128 else
13129 cc_cv_flag_visibility='no'
13130 fi
13131
13132 CFLAGS="$cc_flag_visibility_save_CFLAGS"
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
13135 $as_echo "$cc_cv_flag_visibility" >&6; }
13136
13137 if test "x$cc_cv_flag_visibility" = "xyes"; then :
13138
13139 $as_echo "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
13140
13141 CFLAGS="${CFLAGS} -fvisibility=hidden"
13142 fi
13143
13144
13145 fi
13146
13147
13148
13149 # Check whether --enable-doc was given.
13150 if test "${enable_doc+set}" = set; then :
13151 enableval=$enable_doc;
13152 else
13153 enable_doc=yes
13154
13155 fi
13156
13157
13158 if test "$enable_doc" = "yes"; then :
13159
13160 # Extract the first word of "doxygen", so it can be a program name with args.
13161 set dummy doxygen; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$HAVE_DOXYGEN"; then
13168 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_prog_HAVE_DOXYGEN="yes"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13180 fi
13181 done
13182 done
13183 IFS=$as_save_IFS
13184
13185 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
13186 fi
13187 fi
13188 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
13189 if test -n "$HAVE_DOXYGEN"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
13191 $as_echo "$HAVE_DOXYGEN" >&6; }
13192 else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195 fi
13196
13197
13198 # Extract the first word of "dot", so it can be a program name with args.
13199 set dummy dot; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_prog_HAVE_DOT+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test -n "$HAVE_DOT"; then
13206 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_prog_HAVE_DOT="yes"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
13224 fi
13225 fi
13226 HAVE_DOT=$ac_cv_prog_HAVE_DOT
13227 if test -n "$HAVE_DOT"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
13229 $as_echo "$HAVE_DOT" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234
13235
13236
13237 else
13238
13239 HAVE_DOXYGEN=no
13240
13241 fi
13242
13243 if test "$HAVE_DOXYGEN" = "yes"; then
13244 HAVE_DOXYGEN_TRUE=
13245 HAVE_DOXYGEN_FALSE='#'
13246 else
13247 HAVE_DOXYGEN_TRUE='#'
13248 HAVE_DOXYGEN_FALSE=
13249 fi
13250
13251
13252 ac_config_files="$ac_config_files Makefile opusfile.pc opusurl.pc opusfile-uninstalled.pc opusurl-uninstalled.pc doc/Doxyfile"
13253
13254 ac_config_headers="$ac_config_headers config.h"
13255
13256 cat >confcache <<\_ACEOF
13257 # This file is a shell script that caches the results of configure
13258 # tests run on this system so they can be shared between configure
13259 # scripts and configure runs, see configure's option --config-cache.
13260 # It is not useful on other systems. If it contains results you don't
13261 # want to keep, you may remove or edit it.
13262 #
13263 # config.status only pays attention to the cache file if you give it
13264 # the --recheck option to rerun configure.
13265 #
13266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13268 # following values.
13269
13270 _ACEOF
13271
13272 # The following way of writing the cache mishandles newlines in values,
13273 # but we know of no workaround that is simple, portable, and efficient.
13274 # So, we kill variables containing newlines.
13275 # Ultrix sh set writes to stderr and can't be redirected directly,
13276 # and sets the high bit in the cache file unless we assign to the vars.
13277 (
13278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13279 eval ac_val=\$$ac_var
13280 case $ac_val in #(
13281 *${as_nl}*)
13282 case $ac_var in #(
13283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13285 esac
13286 case $ac_var in #(
13287 _ | IFS | as_nl) ;; #(
13288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13289 *) { eval $ac_var=; unset $ac_var;} ;;
13290 esac ;;
13291 esac
13292 done
13293
13294 (set) 2>&1 |
13295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13296 *${as_nl}ac_space=\ *)
13297 # `set' does not quote correctly, so add quotes: double-quote
13298 # substitution turns \\\\ into \\, and sed turns \\ into \.
13299 sed -n \
13300 "s/'/'\\\\''/g;
13301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13302 ;; #(
13303 *)
13304 # `set' quotes correctly as required by POSIX, so do not add quotes.
13305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13306 ;;
13307 esac |
13308 sort
13309 ) |
13310 sed '
13311 /^ac_cv_env_/b end
13312 t clear
13313 :clear
13314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13315 t end
13316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13317 :end' >>confcache
13318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13319 if test -w "$cache_file"; then
13320 if test "x$cache_file" != "x/dev/null"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13322 $as_echo "$as_me: updating cache $cache_file" >&6;}
13323 if test ! -f "$cache_file" || test -h "$cache_file"; then
13324 cat confcache >"$cache_file"
13325 else
13326 case $cache_file in #(
13327 */* | ?:*)
13328 mv -f confcache "$cache_file"$$ &&
13329 mv -f "$cache_file"$$ "$cache_file" ;; #(
13330 *)
13331 mv -f confcache "$cache_file" ;;
13332 esac
13333 fi
13334 fi
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13338 fi
13339 fi
13340 rm -f confcache
13341
13342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13343 # Let make expand exec_prefix.
13344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13345
13346 DEFS=-DHAVE_CONFIG_H
13347
13348 ac_libobjs=
13349 ac_ltlibobjs=
13350 U=
13351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13352 # 1. Remove the extension, and $U if already installed.
13353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13356 # will be set to the directory where LIBOBJS objects are built.
13357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13359 done
13360 LIBOBJS=$ac_libobjs
13361
13362 LTLIBOBJS=$ac_ltlibobjs
13363
13364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13367 if test -n "$am_sleep_pid"; then
13368 # Hide warnings about reused PIDs.
13369 wait $am_sleep_pid 2>/dev/null
13370 fi
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13372 $as_echo "done" >&6; }
13373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13374 as_fn_error $? "conditional \"AMDEP\" was never defined.
13375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13376 fi
13377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13378 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13380 fi
13381 if test -n "$EXEEXT"; then
13382 am__EXEEXT_TRUE=
13383 am__EXEEXT_FALSE='#'
13384 else
13385 am__EXEEXT_TRUE='#'
13386 am__EXEEXT_FALSE=
13387 fi
13388
13389 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13390 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13392 fi
13393 if test -z "${OP_WIN32_TRUE}" && test -z "${OP_WIN32_FALSE}"; then
13394 as_fn_error $? "conditional \"OP_WIN32\" was never defined.
13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13396 fi
13397 if test -z "${OP_ENABLE_HTTP_TRUE}" && test -z "${OP_ENABLE_HTTP_FALSE}"; then
13398 as_fn_error $? "conditional \"OP_ENABLE_HTTP\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400 fi
13401 if test -z "${OP_ENABLE_EXAMPLES_TRUE}" && test -z "${OP_ENABLE_EXAMPLES_FALSE}"; then
13402 as_fn_error $? "conditional \"OP_ENABLE_EXAMPLES\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404 fi
13405 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13406 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408 fi
13409
13410 : "${CONFIG_STATUS=./config.status}"
13411 ac_write_fail=0
13412 ac_clean_files_save=$ac_clean_files
13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13416 as_write_fail=0
13417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13418 #! $SHELL
13419 # Generated by $as_me.
13420 # Run this file to recreate the current configuration.
13421 # Compiler output produced by configure, useful for debugging
13422 # configure, is in config.log if it exists.
13423
13424 debug=false
13425 ac_cs_recheck=false
13426 ac_cs_silent=false
13427
13428 SHELL=\${CONFIG_SHELL-$SHELL}
13429 export SHELL
13430 _ASEOF
13431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13432 ## -------------------- ##
13433 ## M4sh Initialization. ##
13434 ## -------------------- ##
13435
13436 # Be more Bourne compatible
13437 DUALCASE=1; export DUALCASE # for MKS sh
13438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13439 emulate sh
13440 NULLCMD=:
13441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13442 # is contrary to our usage. Disable this feature.
13443 alias -g '${1+"$@"}'='"$@"'
13444 setopt NO_GLOB_SUBST
13445 else
13446 case `(set -o) 2>/dev/null` in #(
13447 *posix*) :
13448 set -o posix ;; #(
13449 *) :
13450 ;;
13451 esac
13452 fi
13453
13454
13455 as_nl='
13456 '
13457 export as_nl
13458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13462 # Prefer a ksh shell builtin over an external printf program on Solaris,
13463 # but without wasting forks for bash or zsh.
13464 if test -z "$BASH_VERSION$ZSH_VERSION" \
13465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13466 as_echo='print -r --'
13467 as_echo_n='print -rn --'
13468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13469 as_echo='printf %s\n'
13470 as_echo_n='printf %s'
13471 else
13472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13474 as_echo_n='/usr/ucb/echo -n'
13475 else
13476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13477 as_echo_n_body='eval
13478 arg=$1;
13479 case $arg in #(
13480 *"$as_nl"*)
13481 expr "X$arg" : "X\\(.*\\)$as_nl";
13482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13483 esac;
13484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13485 '
13486 export as_echo_n_body
13487 as_echo_n='sh -c $as_echo_n_body as_echo'
13488 fi
13489 export as_echo_body
13490 as_echo='sh -c $as_echo_body as_echo'
13491 fi
13492
13493 # The user is always right.
13494 if test "${PATH_SEPARATOR+set}" != set; then
13495 PATH_SEPARATOR=:
13496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13498 PATH_SEPARATOR=';'
13499 }
13500 fi
13501
13502
13503 # IFS
13504 # We need space, tab and new line, in precisely that order. Quoting is
13505 # there to prevent editors from complaining about space-tab.
13506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13507 # splitting by setting IFS to empty value.)
13508 IFS=" "" $as_nl"
13509
13510 # Find who we are. Look in the path if we contain no directory separator.
13511 as_myself=
13512 case $0 in #((
13513 *[\\/]* ) as_myself=$0 ;;
13514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13516 do
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13520 done
13521 IFS=$as_save_IFS
13522
13523 ;;
13524 esac
13525 # We did not find ourselves, most probably we were run as `sh COMMAND'
13526 # in which case we are not to be found in the path.
13527 if test "x$as_myself" = x; then
13528 as_myself=$0
13529 fi
13530 if test ! -f "$as_myself"; then
13531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13532 exit 1
13533 fi
13534
13535 # Unset variables that we do not need and which cause bugs (e.g. in
13536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13537 # suppresses any "Segmentation fault" message there. '((' could
13538 # trigger a bug in pdksh 5.2.14.
13539 for as_var in BASH_ENV ENV MAIL MAILPATH
13540 do eval test x\${$as_var+set} = xset \
13541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13542 done
13543 PS1='$ '
13544 PS2='> '
13545 PS4='+ '
13546
13547 # NLS nuisances.
13548 LC_ALL=C
13549 export LC_ALL
13550 LANGUAGE=C
13551 export LANGUAGE
13552
13553 # CDPATH.
13554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13555
13556
13557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13558 # ----------------------------------------
13559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13561 # script with STATUS, using 1 if that was 0.
13562 as_fn_error ()
13563 {
13564 as_status=$1; test $as_status -eq 0 && as_status=1
13565 if test "$4"; then
13566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13568 fi
13569 $as_echo "$as_me: error: $2" >&2
13570 as_fn_exit $as_status
13571 } # as_fn_error
13572
13573
13574 # as_fn_set_status STATUS
13575 # -----------------------
13576 # Set $? to STATUS, without forking.
13577 as_fn_set_status ()
13578 {
13579 return $1
13580 } # as_fn_set_status
13581
13582 # as_fn_exit STATUS
13583 # -----------------
13584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13585 as_fn_exit ()
13586 {
13587 set +e
13588 as_fn_set_status $1
13589 exit $1
13590 } # as_fn_exit
13591
13592 # as_fn_unset VAR
13593 # ---------------
13594 # Portably unset VAR.
13595 as_fn_unset ()
13596 {
13597 { eval $1=; unset $1;}
13598 }
13599 as_unset=as_fn_unset
13600 # as_fn_append VAR VALUE
13601 # ----------------------
13602 # Append the text in VALUE to the end of the definition contained in VAR. Take
13603 # advantage of any shell optimizations that allow amortized linear growth over
13604 # repeated appends, instead of the typical quadratic growth present in naive
13605 # implementations.
13606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13607 eval 'as_fn_append ()
13608 {
13609 eval $1+=\$2
13610 }'
13611 else
13612 as_fn_append ()
13613 {
13614 eval $1=\$$1\$2
13615 }
13616 fi # as_fn_append
13617
13618 # as_fn_arith ARG...
13619 # ------------------
13620 # Perform arithmetic evaluation on the ARGs, and store the result in the
13621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13622 # must be portable across $(()) and expr.
13623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13624 eval 'as_fn_arith ()
13625 {
13626 as_val=$(( $* ))
13627 }'
13628 else
13629 as_fn_arith ()
13630 {
13631 as_val=`expr "$@" || test $? -eq 1`
13632 }
13633 fi # as_fn_arith
13634
13635
13636 if expr a : '\(a\)' >/dev/null 2>&1 &&
13637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13638 as_expr=expr
13639 else
13640 as_expr=false
13641 fi
13642
13643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13644 as_basename=basename
13645 else
13646 as_basename=false
13647 fi
13648
13649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13650 as_dirname=dirname
13651 else
13652 as_dirname=false
13653 fi
13654
13655 as_me=`$as_basename -- "$0" ||
13656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13657 X"$0" : 'X\(//\)$' \| \
13658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13659 $as_echo X/"$0" |
13660 sed '/^.*\/\([^/][^/]*\)\/*$/{
13661 s//\1/
13662 q
13663 }
13664 /^X\/\(\/\/\)$/{
13665 s//\1/
13666 q
13667 }
13668 /^X\/\(\/\).*/{
13669 s//\1/
13670 q
13671 }
13672 s/.*/./; q'`
13673
13674 # Avoid depending upon Character Ranges.
13675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13678 as_cr_digits='0123456789'
13679 as_cr_alnum=$as_cr_Letters$as_cr_digits
13680
13681 ECHO_C= ECHO_N= ECHO_T=
13682 case `echo -n x` in #(((((
13683 -n*)
13684 case `echo 'xy\c'` in
13685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13686 xy) ECHO_C='\c';;
13687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13688 ECHO_T=' ';;
13689 esac;;
13690 *)
13691 ECHO_N='-n';;
13692 esac
13693
13694 rm -f conf$$ conf$$.exe conf$$.file
13695 if test -d conf$$.dir; then
13696 rm -f conf$$.dir/conf$$.file
13697 else
13698 rm -f conf$$.dir
13699 mkdir conf$$.dir 2>/dev/null
13700 fi
13701 if (echo >conf$$.file) 2>/dev/null; then
13702 if ln -s conf$$.file conf$$ 2>/dev/null; then
13703 as_ln_s='ln -s'
13704 # ... but there are two gotchas:
13705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13707 # In both cases, we have to default to `cp -pR'.
13708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13709 as_ln_s='cp -pR'
13710 elif ln conf$$.file conf$$ 2>/dev/null; then
13711 as_ln_s=ln
13712 else
13713 as_ln_s='cp -pR'
13714 fi
13715 else
13716 as_ln_s='cp -pR'
13717 fi
13718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13719 rmdir conf$$.dir 2>/dev/null
13720
13721
13722 # as_fn_mkdir_p
13723 # -------------
13724 # Create "$as_dir" as a directory, including parents if necessary.
13725 as_fn_mkdir_p ()
13726 {
13727
13728 case $as_dir in #(
13729 -*) as_dir=./$as_dir;;
13730 esac
13731 test -d "$as_dir" || eval $as_mkdir_p || {
13732 as_dirs=
13733 while :; do
13734 case $as_dir in #(
13735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13736 *) as_qdir=$as_dir;;
13737 esac
13738 as_dirs="'$as_qdir' $as_dirs"
13739 as_dir=`$as_dirname -- "$as_dir" ||
13740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13741 X"$as_dir" : 'X\(//\)[^/]' \| \
13742 X"$as_dir" : 'X\(//\)$' \| \
13743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13744 $as_echo X"$as_dir" |
13745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13746 s//\1/
13747 q
13748 }
13749 /^X\(\/\/\)[^/].*/{
13750 s//\1/
13751 q
13752 }
13753 /^X\(\/\/\)$/{
13754 s//\1/
13755 q
13756 }
13757 /^X\(\/\).*/{
13758 s//\1/
13759 q
13760 }
13761 s/.*/./; q'`
13762 test -d "$as_dir" && break
13763 done
13764 test -z "$as_dirs" || eval "mkdir $as_dirs"
13765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13766
13767
13768 } # as_fn_mkdir_p
13769 if mkdir -p . 2>/dev/null; then
13770 as_mkdir_p='mkdir -p "$as_dir"'
13771 else
13772 test -d ./-p && rmdir ./-p
13773 as_mkdir_p=false
13774 fi
13775
13776
13777 # as_fn_executable_p FILE
13778 # -----------------------
13779 # Test if FILE is an executable regular file.
13780 as_fn_executable_p ()
13781 {
13782 test -f "$1" && test -x "$1"
13783 } # as_fn_executable_p
13784 as_test_x='test -x'
13785 as_executable_p=as_fn_executable_p
13786
13787 # Sed expression to map a string onto a valid CPP name.
13788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13789
13790 # Sed expression to map a string onto a valid variable name.
13791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13792
13793
13794 exec 6>&1
13795 ## ----------------------------------- ##
13796 ## Main body of $CONFIG_STATUS script. ##
13797 ## ----------------------------------- ##
13798 _ASEOF
13799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13800
13801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13802 # Save the log message, to keep $0 and so on meaningful, and to
13803 # report actual input values of CONFIG_FILES etc. instead of their
13804 # values after options handling.
13805 ac_log="
13806 This file was extended by opusfile $as_me 0.9, which was
13807 generated by GNU Autoconf 2.69. Invocation command line was
13808
13809 CONFIG_FILES = $CONFIG_FILES
13810 CONFIG_HEADERS = $CONFIG_HEADERS
13811 CONFIG_LINKS = $CONFIG_LINKS
13812 CONFIG_COMMANDS = $CONFIG_COMMANDS
13813 $ $0 $@
13814
13815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13816 "
13817
13818 _ACEOF
13819
13820 case $ac_config_files in *"
13821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13822 esac
13823
13824 case $ac_config_headers in *"
13825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13826 esac
13827
13828
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830 # Files that config.status was made for.
13831 config_files="$ac_config_files"
13832 config_headers="$ac_config_headers"
13833 config_commands="$ac_config_commands"
13834
13835 _ACEOF
13836
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838 ac_cs_usage="\
13839 \`$as_me' instantiates files and other configuration actions
13840 from templates according to the current configuration. Unless the files
13841 and actions are specified as TAGs, all are instantiated by default.
13842
13843 Usage: $0 [OPTION]... [TAG]...
13844
13845 -h, --help print this help, then exit
13846 -V, --version print version number and configuration settings, then exit
13847 --config print configuration, then exit
13848 -q, --quiet, --silent
13849 do not print progress messages
13850 -d, --debug don't remove temporary files
13851 --recheck update $as_me by reconfiguring in the same conditions
13852 --file=FILE[:TEMPLATE]
13853 instantiate the configuration file FILE
13854 --header=FILE[:TEMPLATE]
13855 instantiate the configuration header FILE
13856
13857 Configuration files:
13858 $config_files
13859
13860 Configuration headers:
13861 $config_headers
13862
13863 Configuration commands:
13864 $config_commands
13865
13866 Report bugs to <opus@xiph.org>."
13867
13868 _ACEOF
13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13871 ac_cs_version="\\
13872 opusfile config.status 0.9
13873 configured by $0, generated by GNU Autoconf 2.69,
13874 with options \\"\$ac_cs_config\\"
13875
13876 Copyright (C) 2012 Free Software Foundation, Inc.
13877 This config.status script is free software; the Free Software Foundation
13878 gives unlimited permission to copy, distribute and modify it."
13879
13880 ac_pwd='$ac_pwd'
13881 srcdir='$srcdir'
13882 INSTALL='$INSTALL'
13883 MKDIR_P='$MKDIR_P'
13884 AWK='$AWK'
13885 test -n "\$AWK" || AWK=awk
13886 _ACEOF
13887
13888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889 # The default lists apply if the user does not specify any file.
13890 ac_need_defaults=:
13891 while test $# != 0
13892 do
13893 case $1 in
13894 --*=?*)
13895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13897 ac_shift=:
13898 ;;
13899 --*=)
13900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13901 ac_optarg=
13902 ac_shift=:
13903 ;;
13904 *)
13905 ac_option=$1
13906 ac_optarg=$2
13907 ac_shift=shift
13908 ;;
13909 esac
13910
13911 case $ac_option in
13912 # Handling of the options.
13913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13914 ac_cs_recheck=: ;;
13915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13916 $as_echo "$ac_cs_version"; exit ;;
13917 --config | --confi | --conf | --con | --co | --c )
13918 $as_echo "$ac_cs_config"; exit ;;
13919 --debug | --debu | --deb | --de | --d | -d )
13920 debug=: ;;
13921 --file | --fil | --fi | --f )
13922 $ac_shift
13923 case $ac_optarg in
13924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13925 '') as_fn_error $? "missing file argument" ;;
13926 esac
13927 as_fn_append CONFIG_FILES " '$ac_optarg'"
13928 ac_need_defaults=false;;
13929 --header | --heade | --head | --hea )
13930 $ac_shift
13931 case $ac_optarg in
13932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13933 esac
13934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13935 ac_need_defaults=false;;
13936 --he | --h)
13937 # Conflict between --help and --header
13938 as_fn_error $? "ambiguous option: \`$1'
13939 Try \`$0 --help' for more information.";;
13940 --help | --hel | -h )
13941 $as_echo "$ac_cs_usage"; exit ;;
13942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13944 ac_cs_silent=: ;;
13945
13946 # This is an error.
13947 -*) as_fn_error $? "unrecognized option: \`$1'
13948 Try \`$0 --help' for more information." ;;
13949
13950 *) as_fn_append ac_config_targets " $1"
13951 ac_need_defaults=false ;;
13952
13953 esac
13954 shift
13955 done
13956
13957 ac_configure_extra_args=
13958
13959 if $ac_cs_silent; then
13960 exec 6>/dev/null
13961 ac_configure_extra_args="$ac_configure_extra_args --silent"
13962 fi
13963
13964 _ACEOF
13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13966 if \$ac_cs_recheck; then
13967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13968 shift
13969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13970 CONFIG_SHELL='$SHELL'
13971 export CONFIG_SHELL
13972 exec "\$@"
13973 fi
13974
13975 _ACEOF
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 exec 5>>config.log
13978 {
13979 echo
13980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13981 ## Running $as_me. ##
13982 _ASBOX
13983 $as_echo "$ac_log"
13984 } >&5
13985
13986 _ACEOF
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 #
13989 # INIT-COMMANDS
13990 #
13991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13992
13993
13994 # The HP-UX ksh and POSIX shell print the target directory to stdout
13995 # if CDPATH is set.
13996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13997
13998 sed_quote_subst='$sed_quote_subst'
13999 double_quote_subst='$double_quote_subst'
14000 delay_variable_subst='$delay_variable_subst'
14001 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14002 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14003 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14004 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14005 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14006 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14007 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14008 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14009 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14010 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14011 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14012 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14013 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14014 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14015 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14016 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14023 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14024 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14025 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14026 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14027 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14028 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14029 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14030 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14031 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14032 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14038 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14039 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14040 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14041 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14042 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14043 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14044 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14045 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14046 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14047 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14048 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14049 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14050 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14051 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14052 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14053 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14054 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14055 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14057 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14059 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14060 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14061 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14062 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14063 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14128 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14129 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14136
14137 LTCC='$LTCC'
14138 LTCFLAGS='$LTCFLAGS'
14139 compiler='$compiler_DEFAULT'
14140
14141 # A function that is used when there is no print builtin or printf.
14142 func_fallback_echo ()
14143 {
14144 eval 'cat <<_LTECHO_EOF
14145 \$1
14146 _LTECHO_EOF'
14147 }
14148
14149 # Quote evaled strings.
14150 for var in SHELL \
14151 ECHO \
14152 PATH_SEPARATOR \
14153 SED \
14154 GREP \
14155 EGREP \
14156 FGREP \
14157 LD \
14158 NM \
14159 LN_S \
14160 lt_SP2NL \
14161 lt_NL2SP \
14162 reload_flag \
14163 OBJDUMP \
14164 deplibs_check_method \
14165 file_magic_cmd \
14166 file_magic_glob \
14167 want_nocaseglob \
14168 DLLTOOL \
14169 sharedlib_from_linklib_cmd \
14170 AR \
14171 AR_FLAGS \
14172 archiver_list_spec \
14173 STRIP \
14174 RANLIB \
14175 CC \
14176 CFLAGS \
14177 compiler \
14178 lt_cv_sys_global_symbol_pipe \
14179 lt_cv_sys_global_symbol_to_cdecl \
14180 lt_cv_sys_global_symbol_to_import \
14181 lt_cv_sys_global_symbol_to_c_name_address \
14182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14183 lt_cv_nm_interface \
14184 nm_file_list_spec \
14185 lt_cv_truncate_bin \
14186 lt_prog_compiler_no_builtin_flag \
14187 lt_prog_compiler_pic \
14188 lt_prog_compiler_wl \
14189 lt_prog_compiler_static \
14190 lt_cv_prog_compiler_c_o \
14191 need_locks \
14192 MANIFEST_TOOL \
14193 DSYMUTIL \
14194 NMEDIT \
14195 LIPO \
14196 OTOOL \
14197 OTOOL64 \
14198 shrext_cmds \
14199 export_dynamic_flag_spec \
14200 whole_archive_flag_spec \
14201 compiler_needs_object \
14202 with_gnu_ld \
14203 allow_undefined_flag \
14204 no_undefined_flag \
14205 hardcode_libdir_flag_spec \
14206 hardcode_libdir_separator \
14207 exclude_expsyms \
14208 include_expsyms \
14209 file_list_spec \
14210 variables_saved_for_relink \
14211 libname_spec \
14212 library_names_spec \
14213 soname_spec \
14214 install_override_mode \
14215 finish_eval \
14216 old_striplib \
14217 striplib; do
14218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14219 *[\\\\\\\`\\"\\\$]*)
14220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14221 ;;
14222 *)
14223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14224 ;;
14225 esac
14226 done
14227
14228 # Double-quote double-evaled strings.
14229 for var in reload_cmds \
14230 old_postinstall_cmds \
14231 old_postuninstall_cmds \
14232 old_archive_cmds \
14233 extract_expsyms_cmds \
14234 old_archive_from_new_cmds \
14235 old_archive_from_expsyms_cmds \
14236 archive_cmds \
14237 archive_expsym_cmds \
14238 module_cmds \
14239 module_expsym_cmds \
14240 export_symbols_cmds \
14241 prelink_cmds \
14242 postlink_cmds \
14243 postinstall_cmds \
14244 postuninstall_cmds \
14245 finish_cmds \
14246 sys_lib_search_path_spec \
14247 configure_time_dlsearch_path \
14248 configure_time_lt_sys_library_path; do
14249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14250 *[\\\\\\\`\\"\\\$]*)
14251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14252 ;;
14253 *)
14254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14255 ;;
14256 esac
14257 done
14258
14259 ac_aux_dir='$ac_aux_dir'
14260
14261 # See if we are running on zsh, and set the options that allow our
14262 # commands through without removal of \ escapes INIT.
14263 if test -n "\${ZSH_VERSION+set}"; then
14264 setopt NO_GLOB_SUBST
14265 fi
14266
14267
14268 PACKAGE='$PACKAGE'
14269 VERSION='$VERSION'
14270 RM='$RM'
14271 ofile='$ofile'
14272
14273
14274
14275
14276 _ACEOF
14277
14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279
14280 # Handling of arguments.
14281 for ac_config_target in $ac_config_targets
14282 do
14283 case $ac_config_target in
14284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14285 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14286 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14287 "opusfile.pc") CONFIG_FILES="$CONFIG_FILES opusfile.pc" ;;
14288 "opusurl.pc") CONFIG_FILES="$CONFIG_FILES opusurl.pc" ;;
14289 "opusfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusfile-uninstalled.pc" ;;
14290 "opusurl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusurl-uninstalled.pc" ;;
14291 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14292 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14293
14294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14295 esac
14296 done
14297
14298
14299 # If the user did not use the arguments to specify the items to instantiate,
14300 # then the envvar interface is used. Set only those that are not.
14301 # We use the long form for the default assignment because of an extremely
14302 # bizarre bug on SunOS 4.1.3.
14303 if $ac_need_defaults; then
14304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14307 fi
14308
14309 # Have a temporary directory for convenience. Make it in the build tree
14310 # simply because there is no reason against having it here, and in addition,
14311 # creating and moving files from /tmp can sometimes cause problems.
14312 # Hook for its removal unless debugging.
14313 # Note that there is a small window in which the directory will not be cleaned:
14314 # after its creation but before its name has been assigned to `$tmp'.
14315 $debug ||
14316 {
14317 tmp= ac_tmp=
14318 trap 'exit_status=$?
14319 : "${ac_tmp:=$tmp}"
14320 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14321 ' 0
14322 trap 'as_fn_exit 1' 1 2 13 15
14323 }
14324 # Create a (secure) tmp directory for tmp files.
14325
14326 {
14327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14328 test -d "$tmp"
14329 } ||
14330 {
14331 tmp=./conf$$-$RANDOM
14332 (umask 077 && mkdir "$tmp")
14333 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14334 ac_tmp=$tmp
14335
14336 # Set up the scripts for CONFIG_FILES section.
14337 # No need to generate them if there are no CONFIG_FILES.
14338 # This happens for instance with `./config.status config.h'.
14339 if test -n "$CONFIG_FILES"; then
14340
14341
14342 ac_cr=`echo X | tr X '\015'`
14343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14344 # But we know of no other shell where ac_cr would be empty at this
14345 # point, so we can use a bashism as a fallback.
14346 if test "x$ac_cr" = x; then
14347 eval ac_cr=\$\'\\r\'
14348 fi
14349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14351 ac_cs_awk_cr='\\r'
14352 else
14353 ac_cs_awk_cr=$ac_cr
14354 fi
14355
14356 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14357 _ACEOF
14358
14359
14360 {
14361 echo "cat >conf$$subs.awk <<_ACEOF" &&
14362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14363 echo "_ACEOF"
14364 } >conf$$subs.sh ||
14365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14367 ac_delim='%!_!# '
14368 for ac_last_try in false false false false false :; do
14369 . ./conf$$subs.sh ||
14370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14371
14372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14373 if test $ac_delim_n = $ac_delim_num; then
14374 break
14375 elif $ac_last_try; then
14376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14377 else
14378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14379 fi
14380 done
14381 rm -f conf$$subs.sh
14382
14383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14384 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14385 _ACEOF
14386 sed -n '
14387 h
14388 s/^/S["/; s/!.*/"]=/
14389 p
14390 g
14391 s/^[^!]*!//
14392 :repl
14393 t repl
14394 s/'"$ac_delim"'$//
14395 t delim
14396 :nl
14397 h
14398 s/\(.\{148\}\)..*/\1/
14399 t more1
14400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14401 p
14402 n
14403 b repl
14404 :more1
14405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14406 p
14407 g
14408 s/.\{148\}//
14409 t nl
14410 :delim
14411 h
14412 s/\(.\{148\}\)..*/\1/
14413 t more2
14414 s/["\\]/\\&/g; s/^/"/; s/$/"/
14415 p
14416 b
14417 :more2
14418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14419 p
14420 g
14421 s/.\{148\}//
14422 t delim
14423 ' <conf$$subs.awk | sed '
14424 /^[^""]/{
14425 N
14426 s/\n//
14427 }
14428 ' >>$CONFIG_STATUS || ac_write_fail=1
14429 rm -f conf$$subs.awk
14430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14431 _ACAWK
14432 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14433 for (key in S) S_is_set[key] = 1
14434 FS = ""
14435
14436 }
14437 {
14438 line = $ 0
14439 nfields = split(line, field, "@")
14440 substed = 0
14441 len = length(field[1])
14442 for (i = 2; i < nfields; i++) {
14443 key = field[i]
14444 keylen = length(key)
14445 if (S_is_set[key]) {
14446 value = S[key]
14447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14448 len += length(value) + length(field[++i])
14449 substed = 1
14450 } else
14451 len += 1 + keylen
14452 }
14453
14454 print line
14455 }
14456
14457 _ACAWK
14458 _ACEOF
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14462 else
14463 cat
14464 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14465 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14466 _ACEOF
14467
14468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14470 # trailing colons and then remove the whole line if VPATH becomes empty
14471 # (actually we leave an empty line to preserve line numbers).
14472 if test "x$srcdir" = x.; then
14473 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14474 h
14475 s///
14476 s/^/:/
14477 s/[ ]*$/:/
14478 s/:\$(srcdir):/:/g
14479 s/:\${srcdir}:/:/g
14480 s/:@srcdir@:/:/g
14481 s/^:*//
14482 s/:*$//
14483 x
14484 s/\(=[ ]*\).*/\1/
14485 G
14486 s/\n//
14487 s/^[^=]*=[ ]*$//
14488 }'
14489 fi
14490
14491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14492 fi # test -n "$CONFIG_FILES"
14493
14494 # Set up the scripts for CONFIG_HEADERS section.
14495 # No need to generate them if there are no CONFIG_HEADERS.
14496 # This happens for instance with `./config.status Makefile'.
14497 if test -n "$CONFIG_HEADERS"; then
14498 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14499 BEGIN {
14500 _ACEOF
14501
14502 # Transform confdefs.h into an awk script `defines.awk', embedded as
14503 # here-document in config.status, that substitutes the proper values into
14504 # config.h.in to produce config.h.
14505
14506 # Create a delimiter string that does not exist in confdefs.h, to ease
14507 # handling of long lines.
14508 ac_delim='%!_!# '
14509 for ac_last_try in false false :; do
14510 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14511 if test -z "$ac_tt"; then
14512 break
14513 elif $ac_last_try; then
14514 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14515 else
14516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14517 fi
14518 done
14519
14520 # For the awk script, D is an array of macro values keyed by name,
14521 # likewise P contains macro parameters if any. Preserve backslash
14522 # newline sequences.
14523
14524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14525 sed -n '
14526 s/.\{148\}/&'"$ac_delim"'/g
14527 t rset
14528 :rset
14529 s/^[ ]*#[ ]*define[ ][ ]*/ /
14530 t def
14531 d
14532 :def
14533 s/\\$//
14534 t bsnl
14535 s/["\\]/\\&/g
14536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14537 D["\1"]=" \3"/p
14538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14539 d
14540 :bsnl
14541 s/["\\]/\\&/g
14542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14543 D["\1"]=" \3\\\\\\n"\\/p
14544 t cont
14545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14546 t cont
14547 d
14548 :cont
14549 n
14550 s/.\{148\}/&'"$ac_delim"'/g
14551 t clear
14552 :clear
14553 s/\\$//
14554 t bsnlc
14555 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14556 d
14557 :bsnlc
14558 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14559 b cont
14560 ' <confdefs.h | sed '
14561 s/'"$ac_delim"'/"\\\
14562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14563
14564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14565 for (key in D) D_is_set[key] = 1
14566 FS = ""
14567 }
14568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14569 line = \$ 0
14570 split(line, arg, " ")
14571 if (arg[1] == "#") {
14572 defundef = arg[2]
14573 mac1 = arg[3]
14574 } else {
14575 defundef = substr(arg[1], 2)
14576 mac1 = arg[2]
14577 }
14578 split(mac1, mac2, "(") #)
14579 macro = mac2[1]
14580 prefix = substr(line, 1, index(line, defundef) - 1)
14581 if (D_is_set[macro]) {
14582 # Preserve the white space surrounding the "#".
14583 print prefix "define", macro P[macro] D[macro]
14584 next
14585 } else {
14586 # Replace #undef with comments. This is necessary, for example,
14587 # in the case of _POSIX_SOURCE, which is predefined and required
14588 # on some systems where configure will not decide to define it.
14589 if (defundef == "undef") {
14590 print "/*", prefix defundef, macro, "*/"
14591 next
14592 }
14593 }
14594 }
14595 { print }
14596 _ACAWK
14597 _ACEOF
14598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14599 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14600 fi # test -n "$CONFIG_HEADERS"
14601
14602
14603 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14604 shift
14605 for ac_tag
14606 do
14607 case $ac_tag in
14608 :[FHLC]) ac_mode=$ac_tag; continue;;
14609 esac
14610 case $ac_mode$ac_tag in
14611 :[FHL]*:*);;
14612 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14613 :[FH]-) ac_tag=-:-;;
14614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14615 esac
14616 ac_save_IFS=$IFS
14617 IFS=:
14618 set x $ac_tag
14619 IFS=$ac_save_IFS
14620 shift
14621 ac_file=$1
14622 shift
14623
14624 case $ac_mode in
14625 :L) ac_source=$1;;
14626 :[FH])
14627 ac_file_inputs=
14628 for ac_f
14629 do
14630 case $ac_f in
14631 -) ac_f="$ac_tmp/stdin";;
14632 *) # Look for the file first in the build tree, then in the source tree
14633 # (if the path is not absolute). The absolute path cannot be DOS-style,
14634 # because $ac_f cannot contain `:'.
14635 test -f "$ac_f" ||
14636 case $ac_f in
14637 [\\/$]*) false;;
14638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14639 esac ||
14640 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14641 esac
14642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14643 as_fn_append ac_file_inputs " '$ac_f'"
14644 done
14645
14646 # Let's still pretend it is `configure' which instantiates (i.e., don't
14647 # use $as_me), people would be surprised to read:
14648 # /* config.h. Generated by config.status. */
14649 configure_input='Generated from '`
14650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14651 `' by configure.'
14652 if test x"$ac_file" != x-; then
14653 configure_input="$ac_file. $configure_input"
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14655 $as_echo "$as_me: creating $ac_file" >&6;}
14656 fi
14657 # Neutralize special characters interpreted by sed in replacement strings.
14658 case $configure_input in #(
14659 *\&* | *\|* | *\\* )
14660 ac_sed_conf_input=`$as_echo "$configure_input" |
14661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14662 *) ac_sed_conf_input=$configure_input;;
14663 esac
14664
14665 case $ac_tag in
14666 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14668 esac
14669 ;;
14670 esac
14671
14672 ac_dir=`$as_dirname -- "$ac_file" ||
14673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14674 X"$ac_file" : 'X\(//\)[^/]' \| \
14675 X"$ac_file" : 'X\(//\)$' \| \
14676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14677 $as_echo X"$ac_file" |
14678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14679 s//\1/
14680 q
14681 }
14682 /^X\(\/\/\)[^/].*/{
14683 s//\1/
14684 q
14685 }
14686 /^X\(\/\/\)$/{
14687 s//\1/
14688 q
14689 }
14690 /^X\(\/\).*/{
14691 s//\1/
14692 q
14693 }
14694 s/.*/./; q'`
14695 as_dir="$ac_dir"; as_fn_mkdir_p
14696 ac_builddir=.
14697
14698 case "$ac_dir" in
14699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14700 *)
14701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14702 # A ".." for each directory in $ac_dir_suffix.
14703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14704 case $ac_top_builddir_sub in
14705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14707 esac ;;
14708 esac
14709 ac_abs_top_builddir=$ac_pwd
14710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14711 # for backward compatibility:
14712 ac_top_builddir=$ac_top_build_prefix
14713
14714 case $srcdir in
14715 .) # We are building in place.
14716 ac_srcdir=.
14717 ac_top_srcdir=$ac_top_builddir_sub
14718 ac_abs_top_srcdir=$ac_pwd ;;
14719 [\\/]* | ?:[\\/]* ) # Absolute name.
14720 ac_srcdir=$srcdir$ac_dir_suffix;
14721 ac_top_srcdir=$srcdir
14722 ac_abs_top_srcdir=$srcdir ;;
14723 *) # Relative name.
14724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14725 ac_top_srcdir=$ac_top_build_prefix$srcdir
14726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14727 esac
14728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14729
14730
14731 case $ac_mode in
14732 :F)
14733 #
14734 # CONFIG_FILE
14735 #
14736
14737 case $INSTALL in
14738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14739 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14740 esac
14741 ac_MKDIR_P=$MKDIR_P
14742 case $MKDIR_P in
14743 [\\/$]* | ?:[\\/]* ) ;;
14744 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14745 esac
14746 _ACEOF
14747
14748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14749 # If the template does not know about datarootdir, expand it.
14750 # FIXME: This hack should be removed a few years after 2.60.
14751 ac_datarootdir_hack=; ac_datarootdir_seen=
14752 ac_sed_dataroot='
14753 /datarootdir/ {
14754 p
14755 q
14756 }
14757 /@datadir@/p
14758 /@docdir@/p
14759 /@infodir@/p
14760 /@localedir@/p
14761 /@mandir@/p'
14762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14763 *datarootdir*) ac_datarootdir_seen=yes;;
14764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14767 _ACEOF
14768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769 ac_datarootdir_hack='
14770 s&@datadir@&$datadir&g
14771 s&@docdir@&$docdir&g
14772 s&@infodir@&$infodir&g
14773 s&@localedir@&$localedir&g
14774 s&@mandir@&$mandir&g
14775 s&\\\${datarootdir}&$datarootdir&g' ;;
14776 esac
14777 _ACEOF
14778
14779 # Neutralize VPATH when `$srcdir' = `.'.
14780 # Shell code in configure.ac might set extrasub.
14781 # FIXME: do we really want to maintain this feature?
14782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14783 ac_sed_extra="$ac_vpsub
14784 $extrasub
14785 _ACEOF
14786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14787 :t
14788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14789 s|@configure_input@|$ac_sed_conf_input|;t t
14790 s&@top_builddir@&$ac_top_builddir_sub&;t t
14791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14792 s&@srcdir@&$ac_srcdir&;t t
14793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14794 s&@top_srcdir@&$ac_top_srcdir&;t t
14795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14796 s&@builddir@&$ac_builddir&;t t
14797 s&@abs_builddir@&$ac_abs_builddir&;t t
14798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14799 s&@INSTALL@&$ac_INSTALL&;t t
14800 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14801 $ac_datarootdir_hack
14802 "
14803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14804 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14805
14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14807 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14809 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14811 which seems to be undefined. Please make sure it is defined" >&5
14812 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14813 which seems to be undefined. Please make sure it is defined" >&2;}
14814
14815 rm -f "$ac_tmp/stdin"
14816 case $ac_file in
14817 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14818 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14819 esac \
14820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14821 ;;
14822 :H)
14823 #
14824 # CONFIG_HEADER
14825 #
14826 if test x"$ac_file" != x-; then
14827 {
14828 $as_echo "/* $configure_input */" \
14829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14830 } >"$ac_tmp/config.h" \
14831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14832 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14834 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14835 else
14836 rm -f "$ac_file"
14837 mv "$ac_tmp/config.h" "$ac_file" \
14838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14839 fi
14840 else
14841 $as_echo "/* $configure_input */" \
14842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14843 || as_fn_error $? "could not create -" "$LINENO" 5
14844 fi
14845 # Compute "$ac_file"'s index in $config_headers.
14846 _am_arg="$ac_file"
14847 _am_stamp_count=1
14848 for _am_header in $config_headers :; do
14849 case $_am_header in
14850 $_am_arg | $_am_arg:* )
14851 break ;;
14852 * )
14853 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14854 esac
14855 done
14856 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14857 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14858 X"$_am_arg" : 'X\(//\)[^/]' \| \
14859 X"$_am_arg" : 'X\(//\)$' \| \
14860 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14861 $as_echo X"$_am_arg" |
14862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14863 s//\1/
14864 q
14865 }
14866 /^X\(\/\/\)[^/].*/{
14867 s//\1/
14868 q
14869 }
14870 /^X\(\/\/\)$/{
14871 s//\1/
14872 q
14873 }
14874 /^X\(\/\).*/{
14875 s//\1/
14876 q
14877 }
14878 s/.*/./; q'`/stamp-h$_am_stamp_count
14879 ;;
14880
14881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14882 $as_echo "$as_me: executing $ac_file commands" >&6;}
14883 ;;
14884 esac
14885
14886
14887 case $ac_file$ac_mode in
14888 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14889 # Older Autoconf quotes --file arguments for eval, but not when files
14890 # are listed without --file. Let's play safe and only enable the eval
14891 # if we detect the quoting.
14892 case $CONFIG_FILES in
14893 *\'*) eval set x "$CONFIG_FILES" ;;
14894 *) set x $CONFIG_FILES ;;
14895 esac
14896 shift
14897 for mf
14898 do
14899 # Strip MF so we end up with the name of the file.
14900 mf=`echo "$mf" | sed -e 's/:.*$//'`
14901 # Check whether this is an Automake generated Makefile or not.
14902 # We used to match only the files named 'Makefile.in', but
14903 # some people rename them; so instead we look at the file content.
14904 # Grep'ing the first line is not enough: some people post-process
14905 # each Makefile.in and add a new line on top of each file to say so.
14906 # Grep'ing the whole file is not good either: AIX grep has a line
14907 # limit of 2048, but all sed's we know have understand at least 4000.
14908 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14909 dirpart=`$as_dirname -- "$mf" ||
14910 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14911 X"$mf" : 'X\(//\)[^/]' \| \
14912 X"$mf" : 'X\(//\)$' \| \
14913 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14914 $as_echo X"$mf" |
14915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\/\)[^/].*/{
14920 s//\1/
14921 q
14922 }
14923 /^X\(\/\/\)$/{
14924 s//\1/
14925 q
14926 }
14927 /^X\(\/\).*/{
14928 s//\1/
14929 q
14930 }
14931 s/.*/./; q'`
14932 else
14933 continue
14934 fi
14935 # Extract the definition of DEPDIR, am__include, and am__quote
14936 # from the Makefile without running 'make'.
14937 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14938 test -z "$DEPDIR" && continue
14939 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14940 test -z "$am__include" && continue
14941 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14942 # Find all dependency output files, they are included files with
14943 # $(DEPDIR) in their names. We invoke sed twice because it is the
14944 # simplest approach to changing $(DEPDIR) to its actual value in the
14945 # expansion.
14946 for file in `sed -n "
14947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14949 # Make sure the directory exists.
14950 test -f "$dirpart/$file" && continue
14951 fdir=`$as_dirname -- "$file" ||
14952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14953 X"$file" : 'X\(//\)[^/]' \| \
14954 X"$file" : 'X\(//\)$' \| \
14955 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14956 $as_echo X"$file" |
14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14958 s//\1/
14959 q
14960 }
14961 /^X\(\/\/\)[^/].*/{
14962 s//\1/
14963 q
14964 }
14965 /^X\(\/\/\)$/{
14966 s//\1/
14967 q
14968 }
14969 /^X\(\/\).*/{
14970 s//\1/
14971 q
14972 }
14973 s/.*/./; q'`
14974 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14975 # echo "creating $dirpart/$file"
14976 echo '# dummy' > "$dirpart/$file"
14977 done
14978 done
14979 }
14980 ;;
14981 "libtool":C)
14982
14983 # See if we are running on zsh, and set the options that allow our
14984 # commands through without removal of \ escapes.
14985 if test -n "${ZSH_VERSION+set}"; then
14986 setopt NO_GLOB_SUBST
14987 fi
14988
14989 cfgfile=${ofile}T
14990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14991 $RM "$cfgfile"
14992
14993 cat <<_LT_EOF >> "$cfgfile"
14994 #! $SHELL
14995 # Generated automatically by $as_me ($PACKAGE) $VERSION
14996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14998
14999 # Provide generalized library-building support services.
15000 # Written by Gordon Matzigkeit, 1996
15001
15002 # Copyright (C) 2014 Free Software Foundation, Inc.
15003 # This is free software; see the source for copying conditions. There is NO
15004 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15005
15006 # GNU Libtool is free software; you can redistribute it and/or modify
15007 # it under the terms of the GNU General Public License as published by
15008 # the Free Software Foundation; either version 2 of of the License, or
15009 # (at your option) any later version.
15010 #
15011 # As a special exception to the GNU General Public License, if you
15012 # distribute this file as part of a program or library that is built
15013 # using GNU Libtool, you may include this file under the same
15014 # distribution terms that you use for the rest of that program.
15015 #
15016 # GNU Libtool is distributed in the hope that it will be useful, but
15017 # WITHOUT ANY WARRANTY; without even the implied warranty of
15018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15019 # GNU General Public License for more details.
15020 #
15021 # You should have received a copy of the GNU General Public License
15022 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15023
15024
15025 # The names of the tagged configurations supported by this script.
15026 available_tags=''
15027
15028 # Configured defaults for sys_lib_dlsearch_path munging.
15029 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15030
15031 # ### BEGIN LIBTOOL CONFIG
15032
15033 # Which release of libtool.m4 was used?
15034 macro_version=$macro_version
15035 macro_revision=$macro_revision
15036
15037 # Whether or not to build shared libraries.
15038 build_libtool_libs=$enable_shared
15039
15040 # Whether or not to build static libraries.
15041 build_old_libs=$enable_static
15042
15043 # What type of objects to build.
15044 pic_mode=$pic_mode
15045
15046 # Whether or not to optimize for fast installation.
15047 fast_install=$enable_fast_install
15048
15049 # Shared archive member basename,for filename based shared library versioning on AIX.
15050 shared_archive_member_spec=$shared_archive_member_spec
15051
15052 # Shell to use when invoking shell scripts.
15053 SHELL=$lt_SHELL
15054
15055 # An echo program that protects backslashes.
15056 ECHO=$lt_ECHO
15057
15058 # The PATH separator for the build system.
15059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15060
15061 # The host system.
15062 host_alias=$host_alias
15063 host=$host
15064 host_os=$host_os
15065
15066 # The build system.
15067 build_alias=$build_alias
15068 build=$build
15069 build_os=$build_os
15070
15071 # A sed program that does not truncate output.
15072 SED=$lt_SED
15073
15074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15075 Xsed="\$SED -e 1s/^X//"
15076
15077 # A grep program that handles long lines.
15078 GREP=$lt_GREP
15079
15080 # An ERE matcher.
15081 EGREP=$lt_EGREP
15082
15083 # A literal string matcher.
15084 FGREP=$lt_FGREP
15085
15086 # A BSD- or MS-compatible name lister.
15087 NM=$lt_NM
15088
15089 # Whether we need soft or hard links.
15090 LN_S=$lt_LN_S
15091
15092 # What is the maximum length of a command?
15093 max_cmd_len=$max_cmd_len
15094
15095 # Object file suffix (normally "o").
15096 objext=$ac_objext
15097
15098 # Executable file suffix (normally "").
15099 exeext=$exeext
15100
15101 # whether the shell understands "unset".
15102 lt_unset=$lt_unset
15103
15104 # turn spaces into newlines.
15105 SP2NL=$lt_lt_SP2NL
15106
15107 # turn newlines into spaces.
15108 NL2SP=$lt_lt_NL2SP
15109
15110 # convert \$build file names to \$host format.
15111 to_host_file_cmd=$lt_cv_to_host_file_cmd
15112
15113 # convert \$build files to toolchain format.
15114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15115
15116 # An object symbol dumper.
15117 OBJDUMP=$lt_OBJDUMP
15118
15119 # Method to check whether dependent libraries are shared objects.
15120 deplibs_check_method=$lt_deplibs_check_method
15121
15122 # Command to use when deplibs_check_method = "file_magic".
15123 file_magic_cmd=$lt_file_magic_cmd
15124
15125 # How to find potential files when deplibs_check_method = "file_magic".
15126 file_magic_glob=$lt_file_magic_glob
15127
15128 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15129 want_nocaseglob=$lt_want_nocaseglob
15130
15131 # DLL creation program.
15132 DLLTOOL=$lt_DLLTOOL
15133
15134 # Command to associate shared and link libraries.
15135 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15136
15137 # The archiver.
15138 AR=$lt_AR
15139
15140 # Flags to create an archive.
15141 AR_FLAGS=$lt_AR_FLAGS
15142
15143 # How to feed a file listing to the archiver.
15144 archiver_list_spec=$lt_archiver_list_spec
15145
15146 # A symbol stripping program.
15147 STRIP=$lt_STRIP
15148
15149 # Commands used to install an old-style archive.
15150 RANLIB=$lt_RANLIB
15151 old_postinstall_cmds=$lt_old_postinstall_cmds
15152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15153
15154 # Whether to use a lock for old archive extraction.
15155 lock_old_archive_extraction=$lock_old_archive_extraction
15156
15157 # A C compiler.
15158 LTCC=$lt_CC
15159
15160 # LTCC compiler flags.
15161 LTCFLAGS=$lt_CFLAGS
15162
15163 # Take the output of nm and produce a listing of raw symbols and C names.
15164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15165
15166 # Transform the output of nm in a proper C declaration.
15167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15168
15169 # Transform the output of nm into a list of symbols to manually relocate.
15170 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15171
15172 # Transform the output of nm in a C name address pair.
15173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15174
15175 # Transform the output of nm in a C name address pair when lib prefix is needed.
15176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15177
15178 # The name lister interface.
15179 nm_interface=$lt_lt_cv_nm_interface
15180
15181 # Specify filename containing input files for \$NM.
15182 nm_file_list_spec=$lt_nm_file_list_spec
15183
15184 # The root where to search for dependent libraries,and where our libraries should be installed.
15185 lt_sysroot=$lt_sysroot
15186
15187 # Command to truncate a binary pipe.
15188 lt_truncate_bin=$lt_lt_cv_truncate_bin
15189
15190 # The name of the directory that contains temporary libtool files.
15191 objdir=$objdir
15192
15193 # Used to examine libraries when file_magic_cmd begins with "file".
15194 MAGIC_CMD=$MAGIC_CMD
15195
15196 # Must we lock files when doing compilation?
15197 need_locks=$lt_need_locks
15198
15199 # Manifest tool.
15200 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15201
15202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15203 DSYMUTIL=$lt_DSYMUTIL
15204
15205 # Tool to change global to local symbols on Mac OS X.
15206 NMEDIT=$lt_NMEDIT
15207
15208 # Tool to manipulate fat objects and archives on Mac OS X.
15209 LIPO=$lt_LIPO
15210
15211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15212 OTOOL=$lt_OTOOL
15213
15214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15215 OTOOL64=$lt_OTOOL64
15216
15217 # Old archive suffix (normally "a").
15218 libext=$libext
15219
15220 # Shared library suffix (normally ".so").
15221 shrext_cmds=$lt_shrext_cmds
15222
15223 # The commands to extract the exported symbol list from a shared archive.
15224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15225
15226 # Variables whose values should be saved in libtool wrapper scripts and
15227 # restored at link time.
15228 variables_saved_for_relink=$lt_variables_saved_for_relink
15229
15230 # Do we need the "lib" prefix for modules?
15231 need_lib_prefix=$need_lib_prefix
15232
15233 # Do we need a version for libraries?
15234 need_version=$need_version
15235
15236 # Library versioning type.
15237 version_type=$version_type
15238
15239 # Shared library runtime path variable.
15240 runpath_var=$runpath_var
15241
15242 # Shared library path variable.
15243 shlibpath_var=$shlibpath_var
15244
15245 # Is shlibpath searched before the hard-coded library search path?
15246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15247
15248 # Format of library name prefix.
15249 libname_spec=$lt_libname_spec
15250
15251 # List of archive names. First name is the real one, the rest are links.
15252 # The last name is the one that the linker finds with -lNAME
15253 library_names_spec=$lt_library_names_spec
15254
15255 # The coded name of the library, if different from the real name.
15256 soname_spec=$lt_soname_spec
15257
15258 # Permission mode override for installation of shared libraries.
15259 install_override_mode=$lt_install_override_mode
15260
15261 # Command to use after installation of a shared archive.
15262 postinstall_cmds=$lt_postinstall_cmds
15263
15264 # Command to use after uninstallation of a shared archive.
15265 postuninstall_cmds=$lt_postuninstall_cmds
15266
15267 # Commands used to finish a libtool library installation in a directory.
15268 finish_cmds=$lt_finish_cmds
15269
15270 # As "finish_cmds", except a single script fragment to be evaled but
15271 # not shown.
15272 finish_eval=$lt_finish_eval
15273
15274 # Whether we should hardcode library paths into libraries.
15275 hardcode_into_libs=$hardcode_into_libs
15276
15277 # Compile-time system search path for libraries.
15278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15279
15280 # Detected run-time system search path for libraries.
15281 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15282
15283 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15284 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15285
15286 # Whether dlopen is supported.
15287 dlopen_support=$enable_dlopen
15288
15289 # Whether dlopen of programs is supported.
15290 dlopen_self=$enable_dlopen_self
15291
15292 # Whether dlopen of statically linked programs is supported.
15293 dlopen_self_static=$enable_dlopen_self_static
15294
15295 # Commands to strip libraries.
15296 old_striplib=$lt_old_striplib
15297 striplib=$lt_striplib
15298
15299
15300 # The linker used to build libraries.
15301 LD=$lt_LD
15302
15303 # How to create reloadable object files.
15304 reload_flag=$lt_reload_flag
15305 reload_cmds=$lt_reload_cmds
15306
15307 # Commands used to build an old-style archive.
15308 old_archive_cmds=$lt_old_archive_cmds
15309
15310 # A language specific compiler.
15311 CC=$lt_compiler
15312
15313 # Is the compiler the GNU compiler?
15314 with_gcc=$GCC
15315
15316 # Compiler flag to turn off builtin functions.
15317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15318
15319 # Additional compiler flags for building library objects.
15320 pic_flag=$lt_lt_prog_compiler_pic
15321
15322 # How to pass a linker flag through the compiler.
15323 wl=$lt_lt_prog_compiler_wl
15324
15325 # Compiler flag to prevent dynamic linking.
15326 link_static_flag=$lt_lt_prog_compiler_static
15327
15328 # Does compiler simultaneously support -c and -o options?
15329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15330
15331 # Whether or not to add -lc for building shared libraries.
15332 build_libtool_need_lc=$archive_cmds_need_lc
15333
15334 # Whether or not to disallow shared libs when runtime libs are static.
15335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15336
15337 # Compiler flag to allow reflexive dlopens.
15338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15339
15340 # Compiler flag to generate shared objects directly from archives.
15341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15342
15343 # Whether the compiler copes with passing no objects directly.
15344 compiler_needs_object=$lt_compiler_needs_object
15345
15346 # Create an old-style archive from a shared archive.
15347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15348
15349 # Create a temporary old-style archive to link instead of a shared archive.
15350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15351
15352 # Commands used to build a shared archive.
15353 archive_cmds=$lt_archive_cmds
15354 archive_expsym_cmds=$lt_archive_expsym_cmds
15355
15356 # Commands used to build a loadable module if different from building
15357 # a shared archive.
15358 module_cmds=$lt_module_cmds
15359 module_expsym_cmds=$lt_module_expsym_cmds
15360
15361 # Whether we are building with GNU ld or not.
15362 with_gnu_ld=$lt_with_gnu_ld
15363
15364 # Flag that allows shared libraries with undefined symbols to be built.
15365 allow_undefined_flag=$lt_allow_undefined_flag
15366
15367 # Flag that enforces no undefined symbols.
15368 no_undefined_flag=$lt_no_undefined_flag
15369
15370 # Flag to hardcode \$libdir into a binary during linking.
15371 # This must work even if \$libdir does not exist
15372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15373
15374 # Whether we need a single "-rpath" flag with a separated argument.
15375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15376
15377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15378 # DIR into the resulting binary.
15379 hardcode_direct=$hardcode_direct
15380
15381 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15382 # DIR into the resulting binary and the resulting library dependency is
15383 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15384 # library is relocated.
15385 hardcode_direct_absolute=$hardcode_direct_absolute
15386
15387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15388 # into the resulting binary.
15389 hardcode_minus_L=$hardcode_minus_L
15390
15391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15392 # into the resulting binary.
15393 hardcode_shlibpath_var=$hardcode_shlibpath_var
15394
15395 # Set to "yes" if building a shared library automatically hardcodes DIR
15396 # into the library and all subsequent libraries and executables linked
15397 # against it.
15398 hardcode_automatic=$hardcode_automatic
15399
15400 # Set to yes if linker adds runtime paths of dependent libraries
15401 # to runtime path list.
15402 inherit_rpath=$inherit_rpath
15403
15404 # Whether libtool must link a program against all its dependency libraries.
15405 link_all_deplibs=$link_all_deplibs
15406
15407 # Set to "yes" if exported symbols are required.
15408 always_export_symbols=$always_export_symbols
15409
15410 # The commands to list exported symbols.
15411 export_symbols_cmds=$lt_export_symbols_cmds
15412
15413 # Symbols that should not be listed in the preloaded symbols.
15414 exclude_expsyms=$lt_exclude_expsyms
15415
15416 # Symbols that must always be exported.
15417 include_expsyms=$lt_include_expsyms
15418
15419 # Commands necessary for linking programs (against libraries) with templates.
15420 prelink_cmds=$lt_prelink_cmds
15421
15422 # Commands necessary for finishing linking programs.
15423 postlink_cmds=$lt_postlink_cmds
15424
15425 # Specify filename containing input files.
15426 file_list_spec=$lt_file_list_spec
15427
15428 # How to hardcode a shared library path into an executable.
15429 hardcode_action=$hardcode_action
15430
15431 # ### END LIBTOOL CONFIG
15432
15433 _LT_EOF
15434
15435 cat <<'_LT_EOF' >> "$cfgfile"
15436
15437 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15438
15439 # func_munge_path_list VARIABLE PATH
15440 # -----------------------------------
15441 # VARIABLE is name of variable containing _space_ separated list of
15442 # directories to be munged by the contents of PATH, which is string
15443 # having a format:
15444 # "DIR[:DIR]:"
15445 # string "DIR[ DIR]" will be prepended to VARIABLE
15446 # ":DIR[:DIR]"
15447 # string "DIR[ DIR]" will be appended to VARIABLE
15448 # "DIRP[:DIRP]::[DIRA:]DIRA"
15449 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15450 # "DIRA[ DIRA]" will be appended to VARIABLE
15451 # "DIR[:DIR]"
15452 # VARIABLE will be replaced by "DIR[ DIR]"
15453 func_munge_path_list ()
15454 {
15455 case x$2 in
15456 x)
15457 ;;
15458 *:)
15459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15460 ;;
15461 x:*)
15462 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15463 ;;
15464 *::*)
15465 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15466 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15467 ;;
15468 *)
15469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15470 ;;
15471 esac
15472 }
15473
15474
15475 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15476 func_cc_basename ()
15477 {
15478 for cc_temp in $*""; do
15479 case $cc_temp in
15480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15482 \-*) ;;
15483 *) break;;
15484 esac
15485 done
15486 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15487 }
15488
15489
15490 # ### END FUNCTIONS SHARED WITH CONFIGURE
15491
15492 _LT_EOF
15493
15494 case $host_os in
15495 aix3*)
15496 cat <<\_LT_EOF >> "$cfgfile"
15497 # AIX sometimes has problems with the GCC collect2 program. For some
15498 # reason, if we set the COLLECT_NAMES environment variable, the problems
15499 # vanish in a puff of smoke.
15500 if test set != "${COLLECT_NAMES+set}"; then
15501 COLLECT_NAMES=
15502 export COLLECT_NAMES
15503 fi
15504 _LT_EOF
15505 ;;
15506 esac
15507
15508
15509 ltmain=$ac_aux_dir/ltmain.sh
15510
15511
15512 # We use sed instead of cat because bash on DJGPP gets confused if
15513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15514 # text mode, it properly converts lines to CR/LF. This bash problem
15515 # is reportedly fixed, but why not run on old versions too?
15516 sed '$q' "$ltmain" >> "$cfgfile" \
15517 || (rm -f "$cfgfile"; exit 1)
15518
15519 mv -f "$cfgfile" "$ofile" ||
15520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15521 chmod +x "$ofile"
15522
15523 ;;
15524
15525 esac
15526 done # for ac_tag
15527
15528
15529 as_fn_exit 0
15530 _ACEOF
15531 ac_clean_files=$ac_clean_files_save
15532
15533 test $ac_write_fail = 0 ||
15534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15535
15536
15537 # configure is writing to config.log, and then calls config.status.
15538 # config.status does its own redirection, appending to config.log.
15539 # Unfortunately, on DOS this fails, as config.log is still kept open
15540 # by configure, so config.status won't be able to write to it; its
15541 # output is simply discarded. So we exec the FD to /dev/null,
15542 # effectively closing config.log, so it can be properly (re)opened and
15543 # appended to by config.status. When coming back to configure, we
15544 # need to make the FD available again.
15545 if test "$no_create" != yes; then
15546 ac_cs_success=:
15547 ac_config_status_args=
15548 test "$silent" = yes &&
15549 ac_config_status_args="$ac_config_status_args --quiet"
15550 exec 5>/dev/null
15551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15552 exec 5>>config.log
15553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15554 # would make configure fail if this is the last instruction.
15555 $ac_cs_success || as_fn_exit 1
15556 fi
15557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15560 fi
15561
15562
15563 { $as_echo "$as_me:${as_lineno-$LINENO}:
15564 ------------------------------------------------------------------------
15565 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
15566
15567 Assertions ................... ${enable_assertions}
15568
15569 HTTP support ................. ${enable_http}
15570 Fixed-point .................. ${enable_fixed_point}
15571 Floating-point API ........... ${enable_float}${lrintf_notice}
15572
15573 Hidden visibility ............ ${cc_cv_flag_visibility}
15574
15575 API code examples ............ ${enable_examples}
15576 API documentation ............ ${enable_doc}
15577 ------------------------------------------------------------------------
15578 " >&5
15579 $as_echo "$as_me:
15580 ------------------------------------------------------------------------
15581 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
15582
15583 Assertions ................... ${enable_assertions}
15584
15585 HTTP support ................. ${enable_http}
15586 Fixed-point .................. ${enable_fixed_point}
15587 Floating-point API ........... ${enable_float}${lrintf_notice}
15588
15589 Hidden visibility ............ ${cc_cv_flag_visibility}
15590
15591 API code examples ............ ${enable_examples}
15592 API documentation ............ ${enable_doc}
15593 ------------------------------------------------------------------------
15594 " >&6;}