Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for sbc 2.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 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 case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='sbc'
613 PACKAGE_TARNAME='sbc'
614 PACKAGE_VERSION='2.1'
615 PACKAGE_STRING='sbc 2.1'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_default_prefix=/usr/local
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 TESTER_FALSE
657 TESTER_TRUE
658 SNDFILE_LIBS
659 SNDFILE_CFLAGS
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 TOOLS_FALSE
664 TOOLS_TRUE
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 MAINT
713 MAINTAINER_MODE_FALSE
714 MAINTAINER_MODE_TRUE
715 AM_BACKSLASH
716 AM_DEFAULT_VERBOSITY
717 AM_DEFAULT_V
718 AM_V
719 CSCOPE
720 ETAGS
721 CTAGS
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 runstatedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL
784 am__quote'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_maintainer_mode
790 enable_dependency_tracking
791 enable_static
792 enable_shared
793 with_pic
794 enable_fast_install
795 with_aix_soname
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 enable_optimization
800 enable_debug
801 enable_pie
802 enable_high_precision
803 enable_tools
804 enable_tester
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 LT_SYS_LIBRARY_PATH
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 SNDFILE_CFLAGS
819 SNDFILE_LIBS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: '$ac_useropt'"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: '$ac_useropt'"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -runstatedir | --runstatedir | --runstatedi | --runstated \
1110 | --runstate | --runstat | --runsta | --runst | --runs \
1111 | --run | --ru | --r)
1112 ac_prev=runstatedir ;;
1113 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1114 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1115 | --run=* | --ru=* | --r=*)
1116 runstatedir=$ac_optarg ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: '$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: '$ac_useropt'"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error $? "unrecognized option: '$ac_option'
1214 Try '$0 --help' for more information"
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 ;;
1234
1235 esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir runstatedir
1256 do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: '$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 printf "%s\n" X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 'configure' configures sbc 2.1 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print 'checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for '--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or '..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, 'make install' will install all the files in
1395 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than '$ac_default_prefix' using '--prefix',
1397 for instance '--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/sbc]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of sbc 2.1:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-static[=PKGS] build static libraries [default=no]
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --disable-optimization disable code optimization through compiler
1462 --enable-debug enable compiling with debugging information
1463 --enable-pie enable position independent executables flag
1464 --enable-high-precision enable SBC high precision support
1465 --disable-tools disable SBC tools
1466 --disable-tester disable SBC tester
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-aix-soname=aix|svr4|both
1474 shared library versioning (aka "SONAME") variant to
1475 provide on AIX, [default=aix].
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1478 compiler's sysroot if not specified).
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 LT_SYS_LIBRARY_PATH
1489 User-defined run-time library search path.
1490 PKG_CONFIG path to pkg-config utility
1491 PKG_CONFIG_PATH
1492 directories to add to pkg-config's search path
1493 PKG_CONFIG_LIBDIR
1494 path overriding pkg-config's built-in search path
1495 SNDFILE_CFLAGS
1496 C compiler flags for SNDFILE, overriding pkg-config
1497 SNDFILE_LIBS
1498 linker flags for SNDFILE, overriding pkg-config
1499
1500 Use these variables to override the choices made by 'configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to the package provider.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for configure.gnu first; this name is used for a wrapper for
1550 # Metaconfig's "Configure" on case-insensitive file systems.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 sbc configure 2.1
1568 generated by GNU Autoconf 2.72
1569
1570 Copyright (C) 2023 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest.beam
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 printf "%s\n" "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext
1607 then :
1608 ac_retval=0
1609 else case e in #(
1610 e) printf "%s\n" "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1 ;;
1614 esac
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 printf "%s\n" "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1649 }
1650 then :
1651 ac_retval=0
1652 else case e in #(
1653 e) printf "%s\n" "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1 ;;
1657 esac
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 printf %s "checking for $2... " >&6; }
1678 if eval test \${$3+y}
1679 then :
1680 printf %s "(cached) " >&6
1681 else case e in #(
1682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"
1688 then :
1689 eval "$3=yes"
1690 else case e in #(
1691 e) eval "$3=no" ;;
1692 esac
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1695 esac
1696 fi
1697 eval ac_res=\$$3
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 printf "%s\n" "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_compile
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else case e in #(
1716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1721
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (void); below. */
1724
1725 #include <limits.h>
1726 #undef $2
1727
1728 /* Override any GCC internal prototype to avoid an error.
1729 Use char because int might match the return type of a GCC
1730 builtin and then its argument prototype would still apply. */
1731 #ifdef __cplusplus
1732 extern "C"
1733 #endif
1734 char $2 (void);
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined __stub_$2 || defined __stub___$2
1739 choke me
1740 #endif
1741
1742 int
1743 main (void)
1744 {
1745 return $2 ();
1746 ;
1747 return 0;
1748 }
1749 _ACEOF
1750 if ac_fn_c_try_link "$LINENO"
1751 then :
1752 eval "$3=yes"
1753 else case e in #(
1754 e) eval "$3=no" ;;
1755 esac
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1758 conftest$ac_exeext conftest.$ac_ext ;;
1759 esac
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_func
1767 ac_configure_args_raw=
1768 for ac_arg
1769 do
1770 case $ac_arg in
1771 *\'*)
1772 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 as_fn_append ac_configure_args_raw " '$ac_arg'"
1775 done
1776
1777 case $ac_configure_args_raw in
1778 *$as_nl*)
1779 ac_safe_unquote= ;;
1780 *)
1781 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1782 ac_unsafe_a="$ac_unsafe_z#~"
1783 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1784 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1785 esac
1786
1787 cat >config.log <<_ACEOF
1788 This file contains any messages produced by compilers while
1789 running configure, to aid debugging if configure makes a mistake.
1790
1791 It was created by sbc $as_me 2.1, which was
1792 generated by GNU Autoconf 2.72. Invocation command line was
1793
1794 $ $0$ac_configure_args_raw
1795
1796 _ACEOF
1797 exec 5>>config.log
1798 {
1799 cat <<_ASUNAME
1800 ## --------- ##
1801 ## Platform. ##
1802 ## --------- ##
1803
1804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809
1810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1811 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812
1813 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1814 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1816 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1817 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1818 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1819 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1820
1821 _ASUNAME
1822
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826 IFS=$as_save_IFS
1827 case $as_dir in #(((
1828 '') as_dir=./ ;;
1829 */) ;;
1830 *) as_dir=$as_dir/ ;;
1831 esac
1832 printf "%s\n" "PATH: $as_dir"
1833 done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859 for ac_arg
1860 do
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871 2)
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1884 ;;
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1887 fi
1888 as_fn_append ac_configure_args " '$ac_arg'"
1889 ;;
1890 esac
1891 done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Sanitize IFS.
1903 IFS=" "" $as_nl"
1904 # Save into config.log some information that might help in debugging.
1905 {
1906 echo
1907
1908 printf "%s\n" "## ---------------- ##
1909 ## Cache variables. ##
1910 ## ---------------- ##"
1911 echo
1912 # The following way of writing the cache mishandles newlines in values,
1913 (
1914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in #(
1917 *${as_nl}*)
1918 case $ac_var in #(
1919 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 esac
1922 case $ac_var in #(
1923 _ | IFS | as_nl) ;; #(
1924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925 *) { eval $ac_var=; unset $ac_var;} ;;
1926 esac ;;
1927 esac
1928 done
1929 (set) 2>&1 |
1930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931 *${as_nl}ac_space=\ *)
1932 sed -n \
1933 "s/'\''/'\''\\\\'\'''\''/g;
1934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 ;; #(
1936 *)
1937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 ;;
1939 esac |
1940 sort
1941 )
1942 echo
1943
1944 printf "%s\n" "## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##"
1947 echo
1948 for ac_var in $ac_subst_vars
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 esac
1954 printf "%s\n" "$ac_var='\''$ac_val'\''"
1955 done | sort
1956 echo
1957
1958 if test -n "$ac_subst_files"; then
1959 printf "%s\n" "## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##"
1962 echo
1963 for ac_var in $ac_subst_files
1964 do
1965 eval ac_val=\$$ac_var
1966 case $ac_val in
1967 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968 esac
1969 printf "%s\n" "$ac_var='\''$ac_val'\''"
1970 done | sort
1971 echo
1972 fi
1973
1974 if test -s confdefs.h; then
1975 printf "%s\n" "## ----------- ##
1976 ## confdefs.h. ##
1977 ## ----------- ##"
1978 echo
1979 cat confdefs.h
1980 echo
1981 fi
1982 test "$ac_signal" != 0 &&
1983 printf "%s\n" "$as_me: caught signal $ac_signal"
1984 printf "%s\n" "$as_me: exit $exit_status"
1985 } >&5
1986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 exit $exit_status
1989 ' 0
1990 for ac_signal in 1 2 13 15; do
1991 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992 done
1993 ac_signal=0
1994
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1997
1998 printf "%s\n" "/* confdefs.h */" > confdefs.h
1999
2000 # Predefined preprocessor variables.
2001
2002 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2003
2004 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2005
2006 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2007
2008 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2009
2010 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2011
2012 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2013
2014
2015 # Let the site file select an alternate cache file if it wants to.
2016 # Prefer an explicitly selected file to automatically selected ones.
2017 if test -n "$CONFIG_SITE"; then
2018 ac_site_files="$CONFIG_SITE"
2019 elif test "x$prefix" != xNONE; then
2020 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2021 else
2022 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2023 fi
2024
2025 for ac_site_file in $ac_site_files
2026 do
2027 case $ac_site_file in #(
2028 */*) :
2029 ;; #(
2030 *) :
2031 ac_site_file=./$ac_site_file ;;
2032 esac
2033 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2037 . "$ac_site_file" \
2038 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2039 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2040 as_fn_error $? "failed to load site script $ac_site_file
2041 See 'config.log' for more details" "$LINENO" 5; }
2042 fi
2043 done
2044
2045 if test -r "$cache_file"; then
2046 # Some versions of bash will fail to source /dev/null (special files
2047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2051 case $cache_file in
2052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053 *) . "./$cache_file";;
2054 esac
2055 fi
2056 else
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2059 >$cache_file
2060 fi
2061
2062 # Test code for whether the C compiler supports C89 (global declarations)
2063 ac_c_conftest_c89_globals='
2064 /* Does the compiler advertise C89 conformance?
2065 Do not test the value of __STDC__, because some compilers set it to 0
2066 while being otherwise adequately conformant. */
2067 #if !defined __STDC__
2068 # error "Compiler does not advertise C89 conformance"
2069 #endif
2070
2071 #include <stddef.h>
2072 #include <stdarg.h>
2073 struct stat;
2074 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2075 struct buf { int x; };
2076 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2077 static char *e (char **p, int i)
2078 {
2079 return p[i];
2080 }
2081 static char *f (char * (*g) (char **, int), char **p, ...)
2082 {
2083 char *s;
2084 va_list v;
2085 va_start (v,p);
2086 s = g (p, va_arg (v,int));
2087 va_end (v);
2088 return s;
2089 }
2090
2091 /* C89 style stringification. */
2092 #define noexpand_stringify(a) #a
2093 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2094
2095 /* C89 style token pasting. Exercises some of the corner cases that
2096 e.g. old MSVC gets wrong, but not very hard. */
2097 #define noexpand_concat(a,b) a##b
2098 #define expand_concat(a,b) noexpand_concat(a,b)
2099 extern int vA;
2100 extern int vbee;
2101 #define aye A
2102 #define bee B
2103 int *pvA = &expand_concat(v,aye);
2104 int *pvbee = &noexpand_concat(v,bee);
2105
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not \xHH hex character constants.
2108 These do not provoke an error unfortunately, instead are silently treated
2109 as an "x". The following induces an error, until -std is added to get
2110 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2111 array size at least. It is necessary to write \x00 == 0 to get something
2112 that is true only with -std. */
2113 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2114
2115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2116 inside strings and character constants. */
2117 #define FOO(x) '\''x'\''
2118 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2119
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2124 int, int);'
2125
2126 # Test code for whether the C compiler supports C89 (body of main).
2127 ac_c_conftest_c89_main='
2128 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2129 '
2130
2131 # Test code for whether the C compiler supports C99 (global declarations)
2132 ac_c_conftest_c99_globals='
2133 /* Does the compiler advertise C99 conformance? */
2134 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2135 # error "Compiler does not advertise C99 conformance"
2136 #endif
2137
2138 // See if C++-style comments work.
2139
2140 #include <stdbool.h>
2141 extern int puts (const char *);
2142 extern int printf (const char *, ...);
2143 extern int dprintf (int, const char *, ...);
2144 extern void *malloc (size_t);
2145 extern void free (void *);
2146
2147 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2148 // dprintf is used instead of fprintf to avoid needing to declare
2149 // FILE and stderr.
2150 #define debug(...) dprintf (2, __VA_ARGS__)
2151 #define showlist(...) puts (#__VA_ARGS__)
2152 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2153 static void
2154 test_varargs_macros (void)
2155 {
2156 int x = 1234;
2157 int y = 5678;
2158 debug ("Flag");
2159 debug ("X = %d\n", x);
2160 showlist (The first, second, and third items.);
2161 report (x>y, "x is %d but y is %d", x, y);
2162 }
2163
2164 // Check long long types.
2165 #define BIG64 18446744073709551615ull
2166 #define BIG32 4294967295ul
2167 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2168 #if !BIG_OK
2169 #error "your preprocessor is broken"
2170 #endif
2171 #if BIG_OK
2172 #else
2173 #error "your preprocessor is broken"
2174 #endif
2175 static long long int bignum = -9223372036854775807LL;
2176 static unsigned long long int ubignum = BIG64;
2177
2178 struct incomplete_array
2179 {
2180 int datasize;
2181 double data[];
2182 };
2183
2184 struct named_init {
2185 int number;
2186 const wchar_t *name;
2187 double average;
2188 };
2189
2190 typedef const char *ccp;
2191
2192 static inline int
2193 test_restrict (ccp restrict text)
2194 {
2195 // Iterate through items via the restricted pointer.
2196 // Also check for declarations in for loops.
2197 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2198 continue;
2199 return 0;
2200 }
2201
2202 // Check varargs and va_copy.
2203 static bool
2204 test_varargs (const char *format, ...)
2205 {
2206 va_list args;
2207 va_start (args, format);
2208 va_list args_copy;
2209 va_copy (args_copy, args);
2210
2211 const char *str = "";
2212 int number = 0;
2213 float fnumber = 0;
2214
2215 while (*format)
2216 {
2217 switch (*format++)
2218 {
2219 case '\''s'\'': // string
2220 str = va_arg (args_copy, const char *);
2221 break;
2222 case '\''d'\'': // int
2223 number = va_arg (args_copy, int);
2224 break;
2225 case '\''f'\'': // float
2226 fnumber = va_arg (args_copy, double);
2227 break;
2228 default:
2229 break;
2230 }
2231 }
2232 va_end (args_copy);
2233 va_end (args);
2234
2235 return *str && number && fnumber;
2236 }
2237 '
2238
2239 # Test code for whether the C compiler supports C99 (body of main).
2240 ac_c_conftest_c99_main='
2241 // Check bool.
2242 _Bool success = false;
2243 success |= (argc != 0);
2244
2245 // Check restrict.
2246 if (test_restrict ("String literal") == 0)
2247 success = true;
2248 char *restrict newvar = "Another string";
2249
2250 // Check varargs.
2251 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2252 test_varargs_macros ();
2253
2254 // Check flexible array members.
2255 struct incomplete_array *ia =
2256 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2257 ia->datasize = 10;
2258 for (int i = 0; i < ia->datasize; ++i)
2259 ia->data[i] = i * 1.234;
2260 // Work around memory leak warnings.
2261 free (ia);
2262
2263 // Check named initializers.
2264 struct named_init ni = {
2265 .number = 34,
2266 .name = L"Test wide string",
2267 .average = 543.34343,
2268 };
2269
2270 ni.number = 58;
2271
2272 int dynamic_array[ni.number];
2273 dynamic_array[0] = argv[0][0];
2274 dynamic_array[ni.number - 1] = 543;
2275
2276 // work around unused variable warnings
2277 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2278 || dynamic_array[ni.number - 1] != 543);
2279 '
2280
2281 # Test code for whether the C compiler supports C11 (global declarations)
2282 ac_c_conftest_c11_globals='
2283 /* Does the compiler advertise C11 conformance? */
2284 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2285 # error "Compiler does not advertise C11 conformance"
2286 #endif
2287
2288 // Check _Alignas.
2289 char _Alignas (double) aligned_as_double;
2290 char _Alignas (0) no_special_alignment;
2291 extern char aligned_as_int;
2292 char _Alignas (0) _Alignas (int) aligned_as_int;
2293
2294 // Check _Alignof.
2295 enum
2296 {
2297 int_alignment = _Alignof (int),
2298 int_array_alignment = _Alignof (int[100]),
2299 char_alignment = _Alignof (char)
2300 };
2301 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2302
2303 // Check _Noreturn.
2304 int _Noreturn does_not_return (void) { for (;;) continue; }
2305
2306 // Check _Static_assert.
2307 struct test_static_assert
2308 {
2309 int x;
2310 _Static_assert (sizeof (int) <= sizeof (long int),
2311 "_Static_assert does not work in struct");
2312 long int y;
2313 };
2314
2315 // Check UTF-8 literals.
2316 #define u8 syntax error!
2317 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2318
2319 // Check duplicate typedefs.
2320 typedef long *long_ptr;
2321 typedef long int *long_ptr;
2322 typedef long_ptr long_ptr;
2323
2324 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2325 struct anonymous
2326 {
2327 union {
2328 struct { int i; int j; };
2329 struct { int k; long int l; } w;
2330 };
2331 int m;
2332 } v1;
2333 '
2334
2335 # Test code for whether the C compiler supports C11 (body of main).
2336 ac_c_conftest_c11_main='
2337 _Static_assert ((offsetof (struct anonymous, i)
2338 == offsetof (struct anonymous, w.k)),
2339 "Anonymous union alignment botch");
2340 v1.i = 2;
2341 v1.w.k = 5;
2342 ok |= v1.i != 5;
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (complete).
2346 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2347 ${ac_c_conftest_c99_globals}
2348 ${ac_c_conftest_c11_globals}
2349
2350 int
2351 main (int argc, char **argv)
2352 {
2353 int ok = 0;
2354 ${ac_c_conftest_c89_main}
2355 ${ac_c_conftest_c99_main}
2356 ${ac_c_conftest_c11_main}
2357 return ok;
2358 }
2359 "
2360
2361 # Test code for whether the C compiler supports C99 (complete).
2362 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2363 ${ac_c_conftest_c99_globals}
2364
2365 int
2366 main (int argc, char **argv)
2367 {
2368 int ok = 0;
2369 ${ac_c_conftest_c89_main}
2370 ${ac_c_conftest_c99_main}
2371 return ok;
2372 }
2373 "
2374
2375 # Test code for whether the C compiler supports C89 (complete).
2376 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2377
2378 int
2379 main (int argc, char **argv)
2380 {
2381 int ok = 0;
2382 ${ac_c_conftest_c89_main}
2383 return ok;
2384 }
2385 "
2386
2387 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2388 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2389 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2390 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2391 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2392 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2393 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2394 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2395 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2396
2397 # Auxiliary files required by this configure script.
2398 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2399
2400 # Locations in which to look for auxiliary files.
2401 ac_aux_dir_candidates="${srcdir}/build-aux"
2402
2403 # Search for a directory containing all of the required auxiliary files,
2404 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405 # If we don't find one directory that contains all the files we need,
2406 # we report the set of missing files from the *first* directory in
2407 # $ac_aux_dir_candidates and give up.
2408 ac_missing_aux_files=""
2409 ac_first_candidate=:
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 as_found=false
2413 for as_dir in $ac_aux_dir_candidates
2414 do
2415 IFS=$as_save_IFS
2416 case $as_dir in #(((
2417 '') as_dir=./ ;;
2418 */) ;;
2419 *) as_dir=$as_dir/ ;;
2420 esac
2421 as_found=:
2422
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2424 ac_aux_dir_found=yes
2425 ac_install_sh=
2426 for ac_aux in $ac_aux_files
2427 do
2428 # As a special case, if "install-sh" is required, that requirement
2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430 # and $ac_install_sh is set appropriately for whichever one is found.
2431 if test x"$ac_aux" = x"install-sh"
2432 then
2433 if test -f "${as_dir}install-sh"; then
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2435 ac_install_sh="${as_dir}install-sh -c"
2436 elif test -f "${as_dir}install.sh"; then
2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2438 ac_install_sh="${as_dir}install.sh -c"
2439 elif test -f "${as_dir}shtool"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2441 ac_install_sh="${as_dir}shtool install -c"
2442 else
2443 ac_aux_dir_found=no
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2446 else
2447 break
2448 fi
2449 fi
2450 else
2451 if test -f "${as_dir}${ac_aux}"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2453 else
2454 ac_aux_dir_found=no
2455 if $ac_first_candidate; then
2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2457 else
2458 break
2459 fi
2460 fi
2461 fi
2462 done
2463 if test "$ac_aux_dir_found" = yes; then
2464 ac_aux_dir="$as_dir"
2465 break
2466 fi
2467 ac_first_candidate=false
2468
2469 as_found=false
2470 done
2471 IFS=$as_save_IFS
2472 if $as_found
2473 then :
2474
2475 else case e in #(
2476 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2477 esac
2478 fi
2479
2480
2481 # These three variables are undocumented and unsupported,
2482 # and are intended to be withdrawn in a future Autoconf release.
2483 # They can cause serious problems if a builder's source tree is in a directory
2484 # whose full name contains unusual characters.
2485 if test -f "${ac_aux_dir}config.guess"; then
2486 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2487 fi
2488 if test -f "${ac_aux_dir}config.sub"; then
2489 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2490 fi
2491 if test -f "$ac_aux_dir/configure"; then
2492 ac_configure="$SHELL ${ac_aux_dir}configure"
2493 fi
2494
2495 # Check that the precious variables saved in the cache have kept the same
2496 # value.
2497 ac_cache_corrupted=false
2498 for ac_var in $ac_precious_vars; do
2499 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500 eval ac_new_set=\$ac_env_${ac_var}_set
2501 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502 eval ac_new_val=\$ac_env_${ac_var}_value
2503 case $ac_old_set,$ac_new_set in
2504 set,)
2505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2506 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2508 ,set)
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2510 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,);;
2513 *)
2514 if test "x$ac_old_val" != "x$ac_new_val"; then
2515 # differences in whitespace do not lead to failure.
2516 ac_old_val_w=`echo x $ac_old_val`
2517 ac_new_val_w=`echo x $ac_new_val`
2518 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2520 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2521 ac_cache_corrupted=:
2522 else
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2524 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2525 eval $ac_var=\$ac_old_val
2526 fi
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2528 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2530 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2531 fi;;
2532 esac
2533 # Pass precious variables to config.status.
2534 if test "$ac_new_set" = set; then
2535 case $ac_new_val in
2536 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2537 *) ac_arg=$ac_var=$ac_new_val ;;
2538 esac
2539 case " $ac_configure_args " in
2540 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2541 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 esac
2543 fi
2544 done
2545 if $ac_cache_corrupted; then
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2547 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2550 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2551 and start over" "$LINENO" 5
2552 fi
2553 ## -------------------- ##
2554 ## Main body of script. ##
2555 ## -------------------- ##
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562
2563
2564
2565 ac_config_headers="$ac_config_headers config.h"
2566
2567
2568
2569
2570 am__api_version='1.16'
2571
2572
2573
2574 # Find a good install program. We prefer a C program (faster),
2575 # so one script is as good as another. But avoid the broken or
2576 # incompatible versions:
2577 # SysV /etc/install, /usr/sbin/install
2578 # SunOS /usr/etc/install
2579 # IRIX /sbin/install
2580 # AIX /bin/install
2581 # AmigaOS /C/install, which installs bootblocks on floppy discs
2582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2585 # OS/2's system install, which has a completely different semantic
2586 # ./install, which can be erroneously created by make from ./install.sh.
2587 # Reject install programs that cannot install multiple files.
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2589 printf %s "checking for a BSD-compatible install... " >&6; }
2590 if test -z "$INSTALL"; then
2591 if test ${ac_cv_path_install+y}
2592 then :
2593 printf %s "(cached) " >&6
2594 else case e in #(
2595 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 case $as_dir in #(((
2600 '') as_dir=./ ;;
2601 */) ;;
2602 *) as_dir=$as_dir/ ;;
2603 esac
2604 # Account for fact that we put trailing slashes in our PATH walk.
2605 case $as_dir in #((
2606 ./ | /[cC]/* | \
2607 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2608 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2609 /usr/ucb/* ) ;;
2610 *)
2611 # OSF1 and SCO ODT 3.0 have their own names for install.
2612 # Don't use installbsd from OSF since it installs stuff as root
2613 # by default.
2614 for ac_prog in ginstall scoinst install; do
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2617 if test $ac_prog = install &&
2618 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619 # AIX install. It has an incompatible calling convention.
2620 :
2621 elif test $ac_prog = install &&
2622 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623 # program-specific install script used by HP pwplus--don't use.
2624 :
2625 else
2626 rm -rf conftest.one conftest.two conftest.dir
2627 echo one > conftest.one
2628 echo two > conftest.two
2629 mkdir conftest.dir
2630 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2631 test -s conftest.one && test -s conftest.two &&
2632 test -s conftest.dir/conftest.one &&
2633 test -s conftest.dir/conftest.two
2634 then
2635 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2636 break 3
2637 fi
2638 fi
2639 fi
2640 done
2641 done
2642 ;;
2643 esac
2644
2645 done
2646 IFS=$as_save_IFS
2647
2648 rm -rf conftest.one conftest.two conftest.dir
2649 ;;
2650 esac
2651 fi
2652 if test ${ac_cv_path_install+y}; then
2653 INSTALL=$ac_cv_path_install
2654 else
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for INSTALL within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 INSTALL=$ac_install_sh
2660 fi
2661 fi
2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2663 printf "%s\n" "$INSTALL" >&6; }
2664
2665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2666 # It thinks the first close brace ends the variable substitution.
2667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2668
2669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2670
2671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2672
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2674 printf %s "checking whether build environment is sane... " >&6; }
2675 # Reject unsafe characters in $srcdir or the absolute working directory
2676 # name. Accept space and tab only in the latter.
2677 am_lf='
2678 '
2679 case `pwd` in
2680 *[\\\"\#\$\&\'\`$am_lf]*)
2681 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2682 esac
2683 case $srcdir in
2684 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2685 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2686 esac
2687
2688 # Do 'set' in a subshell so we don't clobber the current shell's
2689 # arguments. Must try -L first in case configure is actually a
2690 # symlink; some systems play weird games with the mod time of symlinks
2691 # (eg FreeBSD returns the mod time of the symlink's containing
2692 # directory).
2693 if (
2694 am_has_slept=no
2695 for am_try in 1 2; do
2696 echo "timestamp, slept: $am_has_slept" > conftest.file
2697 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2698 if test "$*" = "X"; then
2699 # -L didn't work.
2700 set X `ls -t "$srcdir/configure" conftest.file`
2701 fi
2702 if test "$*" != "X $srcdir/configure conftest.file" \
2703 && test "$*" != "X conftest.file $srcdir/configure"; then
2704
2705 # If neither matched, then we have a broken ls. This can happen
2706 # if, for instance, CONFIG_SHELL is bash and it inherits a
2707 # broken ls alias from the environment. This has actually
2708 # happened. Such a system could not be considered "sane".
2709 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2710 alias in your environment" "$LINENO" 5
2711 fi
2712 if test "$2" = conftest.file || test $am_try -eq 2; then
2713 break
2714 fi
2715 # Just in case.
2716 sleep 1
2717 am_has_slept=yes
2718 done
2719 test "$2" = conftest.file
2720 )
2721 then
2722 # Ok.
2723 :
2724 else
2725 as_fn_error $? "newly created file is older than distributed files!
2726 Check your system clock" "$LINENO" 5
2727 fi
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729 printf "%s\n" "yes" >&6; }
2730 # If we didn't sleep, we still need to ensure time stamps of config.status and
2731 # generated files are strictly newer.
2732 am_sleep_pid=
2733 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2734 ( sleep 1 ) &
2735 am_sleep_pid=$!
2736 fi
2737
2738 rm -f conftest.file
2739
2740 test "$program_prefix" != NONE &&
2741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2742 # Use a double $ so make ignores it.
2743 test "$program_suffix" != NONE &&
2744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2745 # Double any \ or $.
2746 # By default was 's,x,x', remove it if useless.
2747 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2748 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2749
2750
2751 # Expand $ac_aux_dir to an absolute path.
2752 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2753
2754
2755 if test x"${MISSING+set}" != xset; then
2756 MISSING="\${SHELL} '$am_aux_dir/missing'"
2757 fi
2758 # Use eval to expand $SHELL
2759 if eval "$MISSING --is-lightweight"; then
2760 am_missing_run="$MISSING "
2761 else
2762 am_missing_run=
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2764 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2765 fi
2766
2767 if test x"${install_sh+set}" != xset; then
2768 case $am_aux_dir in
2769 *\ * | *\ *)
2770 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2771 *)
2772 install_sh="\${SHELL} $am_aux_dir/install-sh"
2773 esac
2774 fi
2775
2776 # Installed binaries are usually stripped using 'strip' when the user
2777 # run "make install-strip". However 'strip' might not be the right
2778 # tool to use in cross-compilation environments, therefore Automake
2779 # will honor the 'STRIP' environment variable to overrule this program.
2780 if test "$cross_compiling" != no; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}strip; ac_word=$2
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 printf %s "checking for $ac_word... " >&6; }
2786 if test ${ac_cv_prog_STRIP+y}
2787 then :
2788 printf %s "(cached) " >&6
2789 else case e in #(
2790 e) if test -n "$STRIP"; then
2791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 case $as_dir in #(((
2798 '') as_dir=./ ;;
2799 */) ;;
2800 *) as_dir=$as_dir/ ;;
2801 esac
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi ;;
2813 esac
2814 fi
2815 STRIP=$ac_cv_prog_STRIP
2816 if test -n "$STRIP"; then
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2818 printf "%s\n" "$STRIP" >&6; }
2819 else
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 printf "%s\n" "no" >&6; }
2822 fi
2823
2824
2825 fi
2826 if test -z "$ac_cv_prog_STRIP"; then
2827 ac_ct_STRIP=$STRIP
2828 # Extract the first word of "strip", so it can be a program name with args.
2829 set dummy strip; ac_word=$2
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 printf %s "checking for $ac_word... " >&6; }
2832 if test ${ac_cv_prog_ac_ct_STRIP+y}
2833 then :
2834 printf %s "(cached) " >&6
2835 else case e in #(
2836 e) if test -n "$ac_ct_STRIP"; then
2837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 case $as_dir in #(((
2844 '') as_dir=./ ;;
2845 */) ;;
2846 *) as_dir=$as_dir/ ;;
2847 esac
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_STRIP="strip"
2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi ;;
2859 esac
2860 fi
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 printf "%s\n" "$ac_ct_STRIP" >&6; }
2865 else
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 printf "%s\n" "no" >&6; }
2868 fi
2869
2870 if test "x$ac_ct_STRIP" = x; then
2871 STRIP=":"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 STRIP=$ac_ct_STRIP
2880 fi
2881 else
2882 STRIP="$ac_cv_prog_STRIP"
2883 fi
2884
2885 fi
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887
2888
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2890 printf %s "checking for a race-free mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if test ${ac_cv_path_mkdir+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else case e in #(
2896 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_prog in mkdir gmkdir; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2908 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909 'mkdir ('*'coreutils) '* | \
2910 *'BusyBox '* | \
2911 'mkdir (fileutils) '4.1*)
2912 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2913 break 3;;
2914 esac
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2919 ;;
2920 esac
2921 fi
2922
2923 test -d ./--version && rmdir ./--version
2924 if test ${ac_cv_path_mkdir+y}; then
2925 MKDIR_P="$ac_cv_path_mkdir -p"
2926 else
2927 # As a last resort, use plain mkdir -p,
2928 # in the hope it doesn't have the bugs of ancient mkdir.
2929 MKDIR_P='mkdir -p'
2930 fi
2931 fi
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2933 printf "%s\n" "$MKDIR_P" >&6; }
2934
2935 for ac_prog in gawk mawk nawk awk
2936 do
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy $ac_prog; ac_word=$2
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 printf %s "checking for $ac_word... " >&6; }
2941 if test ${ac_cv_prog_AWK+y}
2942 then :
2943 printf %s "(cached) " >&6
2944 else case e in #(
2945 e) if test -n "$AWK"; then
2946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 case $as_dir in #(((
2953 '') as_dir=./ ;;
2954 */) ;;
2955 *) as_dir=$as_dir/ ;;
2956 esac
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_AWK="$ac_prog"
2960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi ;;
2968 esac
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 printf "%s\n" "$AWK" >&6; }
2974 else
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf "%s\n" "no" >&6; }
2977 fi
2978
2979
2980 test -n "$AWK" && break
2981 done
2982
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2988 then :
2989 printf %s "(cached) " >&6
2990 else case e in #(
2991 e) cat >conftest.make <<\_ACEOF
2992 SHELL = /bin/sh
2993 all:
2994 @echo '@@@%%%=$(MAKE)=@@@%%%'
2995 _ACEOF
2996 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 *@@@%%%=?*=@@@%%%*)
2999 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 *)
3001 eval ac_cv_prog_make_${ac_make}_set=no;;
3002 esac
3003 rm -f conftest.make ;;
3004 esac
3005 fi
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 printf "%s\n" "yes" >&6; }
3009 SET_MAKE=
3010 else
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 printf "%s\n" "no" >&6; }
3013 SET_MAKE="MAKE=${MAKE-make}"
3014 fi
3015
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019 am__leading_dot=.
3020 else
3021 am__leading_dot=_
3022 fi
3023 rmdir .tst 2>/dev/null
3024
3025 # Check whether --enable-silent-rules was given.
3026 if test ${enable_silent_rules+y}
3027 then :
3028 enableval=$enable_silent_rules;
3029 fi
3030
3031 case $enable_silent_rules in # (((
3032 yes) AM_DEFAULT_VERBOSITY=0;;
3033 no) AM_DEFAULT_VERBOSITY=1;;
3034 *) AM_DEFAULT_VERBOSITY=1;;
3035 esac
3036 am_make=${MAKE-make}
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3038 printf %s "checking whether $am_make supports nested variables... " >&6; }
3039 if test ${am_cv_make_support_nested_variables+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else case e in #(
3043 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3044 BAR0=false
3045 BAR1=true
3046 V=1
3047 am__doit:
3048 @$(TRUE)
3049 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050 am_cv_make_support_nested_variables=yes
3051 else
3052 am_cv_make_support_nested_variables=no
3053 fi ;;
3054 esac
3055 fi
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3057 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3058 if test $am_cv_make_support_nested_variables = yes; then
3059 AM_V='$(V)'
3060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3061 else
3062 AM_V=$AM_DEFAULT_VERBOSITY
3063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3064 fi
3065 AM_BACKSLASH='\'
3066
3067 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3068 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3069 # is not polluted with repeated "-I."
3070 am__isrc=' -I$(srcdir)'
3071 # test to see if srcdir already configured
3072 if test -f $srcdir/config.status; then
3073 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3074 fi
3075 fi
3076
3077 # test whether we have cygpath
3078 if test -z "$CYGPATH_W"; then
3079 if (cygpath --version) >/dev/null 2>/dev/null; then
3080 CYGPATH_W='cygpath -w'
3081 else
3082 CYGPATH_W=echo
3083 fi
3084 fi
3085
3086
3087 # Define the identity of the package.
3088 PACKAGE='sbc'
3089 VERSION='2.1'
3090
3091
3092 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3093
3094
3095 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3096
3097 # Some tools Automake needs.
3098
3099 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3100
3101
3102 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3103
3104
3105 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3106
3107
3108 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3109
3110
3111 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3112
3113 # For better backward compatibility. To be removed once Automake 1.9.x
3114 # dies out for good. For more background, see:
3115 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3116 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3117 mkdir_p='$(MKDIR_P)'
3118
3119 # We need awk for the "check" target (and possibly the TAP driver). The
3120 # system "awk" is bad on some platforms.
3121 # Always define AMTAR for backward compatibility. Yes, it's still used
3122 # in the wild :-( We should find a proper way to deprecate it ...
3123 AMTAR='$${TAR-tar}'
3124
3125
3126 # We'll loop over all known methods to create a tar archive until one works.
3127 _am_tools='gnutar pax cpio none'
3128
3129
3130
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3132 printf %s "checking how to create a pax tar archive... " >&6; }
3133
3134 # Go ahead even if we have the value already cached. We do so because we
3135 # need to set the values for the 'am__tar' and 'am__untar' variables.
3136 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3137
3138 for _am_tool in $_am_tools; do
3139 case $_am_tool in
3140 gnutar)
3141 for _am_tar in tar gnutar gtar; do
3142 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3143 ($_am_tar --version) >&5 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && break
3147 done
3148 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3149 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3150 am__untar="$_am_tar -xf -"
3151 ;;
3152 plaintar)
3153 # Must skip GNU tar: if it does not support --format= it doesn't create
3154 # ustar tarball either.
3155 (tar --version) >/dev/null 2>&1 && continue
3156 am__tar='tar chf - "$$tardir"'
3157 am__tar_='tar chf - "$tardir"'
3158 am__untar='tar xf -'
3159 ;;
3160 pax)
3161 am__tar='pax -L -x pax -w "$$tardir"'
3162 am__tar_='pax -L -x pax -w "$tardir"'
3163 am__untar='pax -r'
3164 ;;
3165 cpio)
3166 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3167 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3168 am__untar='cpio -i -H pax -d'
3169 ;;
3170 none)
3171 am__tar=false
3172 am__tar_=false
3173 am__untar=false
3174 ;;
3175 esac
3176
3177 # If the value was cached, stop now. We just wanted to have am__tar
3178 # and am__untar set.
3179 test -n "${am_cv_prog_tar_pax}" && break
3180
3181 # tar/untar a dummy directory, and stop if the command works.
3182 rm -rf conftest.dir
3183 mkdir conftest.dir
3184 echo GrepMe > conftest.dir/file
3185 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3186 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 rm -rf conftest.dir
3191 if test -s conftest.tar; then
3192 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3193 ($am__untar <conftest.tar) >&5 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3198 (cat conftest.dir/file) >&5 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3202 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3203 fi
3204 done
3205 rm -rf conftest.dir
3206
3207 if test ${am_cv_prog_tar_pax+y}
3208 then :
3209 printf %s "(cached) " >&6
3210 else case e in #(
3211 e) am_cv_prog_tar_pax=$_am_tool ;;
3212 esac
3213 fi
3214
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3216 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3217
3218
3219
3220
3221
3222 # Variables for tags utilities; see am/tags.am
3223 if test -z "$CTAGS"; then
3224 CTAGS=ctags
3225 fi
3226
3227 if test -z "$ETAGS"; then
3228 ETAGS=etags
3229 fi
3230
3231 if test -z "$CSCOPE"; then
3232 CSCOPE=cscope
3233 fi
3234
3235
3236
3237 # POSIX will say in a future version that running "rm -f" with no argument
3238 # is OK; and we want to be able to make that assumption in our Makefile
3239 # recipes. So use an aggressive probe to check that the usage we want is
3240 # actually supported "in the wild" to an acceptable degree.
3241 # See automake bug#10828.
3242 # To make any issue more visible, cause the running configure to be aborted
3243 # by default if the 'rm' program in use doesn't match our expectations; the
3244 # user can still override this though.
3245 if rm -f && rm -fr && rm -rf; then : OK; else
3246 cat >&2 <<'END'
3247 Oops!
3248
3249 Your 'rm' program seems unable to run without file operands specified
3250 on the command line, even when the '-f' option is present. This is contrary
3251 to the behaviour of most rm programs out there, and not conforming with
3252 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3253
3254 Please tell [email protected] about your system, including the value
3255 of your $PATH and any error possibly output before this message. This
3256 can help us improve future automake versions.
3257
3258 END
3259 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3260 echo 'Configuration will proceed anyway, since you have set the' >&2
3261 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3262 echo >&2
3263 else
3264 cat >&2 <<'END'
3265 Aborting the configuration process, to ensure you take notice of the issue.
3266
3267 You can download and install GNU coreutils to get an 'rm' implementation
3268 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3269
3270 If you want to complete the configuration process using your problematic
3271 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3272 to "yes", and re-run configure.
3273
3274 END
3275 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3276 fi
3277 fi
3278
3279
3280 # Check whether --enable-silent-rules was given.
3281 if test ${enable_silent_rules+y}
3282 then :
3283 enableval=$enable_silent_rules;
3284 fi
3285
3286 case $enable_silent_rules in # (((
3287 yes) AM_DEFAULT_VERBOSITY=0;;
3288 no) AM_DEFAULT_VERBOSITY=1;;
3289 *) AM_DEFAULT_VERBOSITY=0;;
3290 esac
3291 am_make=${MAKE-make}
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3293 printf %s "checking whether $am_make supports nested variables... " >&6; }
3294 if test ${am_cv_make_support_nested_variables+y}
3295 then :
3296 printf %s "(cached) " >&6
3297 else case e in #(
3298 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3299 BAR0=false
3300 BAR1=true
3301 V=1
3302 am__doit:
3303 @$(TRUE)
3304 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3305 am_cv_make_support_nested_variables=yes
3306 else
3307 am_cv_make_support_nested_variables=no
3308 fi ;;
3309 esac
3310 fi
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3312 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3313 if test $am_cv_make_support_nested_variables = yes; then
3314 AM_V='$(V)'
3315 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3316 else
3317 AM_V=$AM_DEFAULT_VERBOSITY
3318 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3319 fi
3320 AM_BACKSLASH='\'
3321
3322
3323
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3325 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3326 # Check whether --enable-maintainer-mode was given.
3327 if test ${enable_maintainer_mode+y}
3328 then :
3329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3330 else case e in #(
3331 e) USE_MAINTAINER_MODE=no ;;
3332 esac
3333 fi
3334
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3336 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3337 if test $USE_MAINTAINER_MODE = yes; then
3338 MAINTAINER_MODE_TRUE=
3339 MAINTAINER_MODE_FALSE='#'
3340 else
3341 MAINTAINER_MODE_TRUE='#'
3342 MAINTAINER_MODE_FALSE=
3343 fi
3344
3345 MAINT=$MAINTAINER_MODE_TRUE
3346
3347
3348
3349
3350
3351
3352 if (test "${CFLAGS}" = ""); then
3353 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
3354 fi
3355 if (test "$USE_MAINTAINER_MODE" = "yes"); then
3356 CFLAGS+=" -Werror -Wextra -Wshadow"
3357 CFLAGS+=" -Wno-unused-parameter"
3358 CFLAGS+=" -Wno-missing-field-initializers"
3359 CFLAGS+=" -Wdeclaration-after-statement"
3360 CFLAGS+=" -Wmissing-declarations"
3361 CFLAGS+=" -Wredundant-decls"
3362 CFLAGS+=" -Wcast-align"
3363 fi
3364
3365
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 printf %s "checking for $ac_word... " >&6; }
3392 if test ${ac_cv_prog_CC+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else case e in #(
3396 e) if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 case $as_dir in #(((
3404 '') as_dir=./ ;;
3405 */) ;;
3406 *) as_dir=$as_dir/ ;;
3407 esac
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi ;;
3419 esac
3420 fi
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 printf "%s\n" "$CC" >&6; }
3425 else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 fi
3429
3430
3431 fi
3432 if test -z "$ac_cv_prog_CC"; then
3433 ac_ct_CC=$CC
3434 # Extract the first word of "gcc", so it can be a program name with args.
3435 set dummy gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_ac_ct_CC+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else case e in #(
3442 e) if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi ;;
3465 esac
3466 fi
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3468 if test -n "$ac_ct_CC"; then
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3470 printf "%s\n" "$ac_ct_CC" >&6; }
3471 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3474 fi
3475
3476 if test "x$ac_ct_CC" = x; then
3477 CC=""
3478 else
3479 case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3484 esac
3485 CC=$ac_ct_CC
3486 fi
3487 else
3488 CC="$ac_cv_prog_CC"
3489 fi
3490
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}cc; ac_word=$2
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 printf %s "checking for $ac_word... " >&6; }
3497 if test ${ac_cv_prog_CC+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else case e in #(
3501 e) if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 case $as_dir in #(((
3509 '') as_dir=./ ;;
3510 */) ;;
3511 *) as_dir=$as_dir/ ;;
3512 esac
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="${ac_tool_prefix}cc"
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi ;;
3524 esac
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 printf "%s\n" "$CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535
3536 fi
3537 fi
3538 if test -z "$CC"; then
3539 # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 ac_prog_rejected=no
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3563 ac_prog_rejected=yes
3564 continue
3565 fi
3566 ac_cv_prog_CC="cc"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 if test $ac_prog_rejected = yes; then
3575 # We found a bogon in the path, so make sure we never use it.
3576 set dummy $ac_cv_prog_CC
3577 shift
3578 if test $# != 0; then
3579 # We chose a different compiler from the bogus one.
3580 # However, it has the same basename, so the bogon will be chosen
3581 # first if we set CC to just the basename; use the full file name.
3582 shift
3583 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3584 fi
3585 fi
3586 fi ;;
3587 esac
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 printf "%s\n" "$CC" >&6; }
3593 else
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 printf "%s\n" "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in cl.exe
3603 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 printf %s "checking for $ac_word... " >&6; }
3608 if test ${ac_cv_prog_CC+y}
3609 then :
3610 printf %s "(cached) " >&6
3611 else case e in #(
3612 e) if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618 IFS=$as_save_IFS
3619 case $as_dir in #(((
3620 '') as_dir=./ ;;
3621 */) ;;
3622 *) as_dir=$as_dir/ ;;
3623 esac
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3628 break 2
3629 fi
3630 done
3631 done
3632 IFS=$as_save_IFS
3633
3634 fi ;;
3635 esac
3636 fi
3637 CC=$ac_cv_prog_CC
3638 if test -n "$CC"; then
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 printf "%s\n" "$CC" >&6; }
3641 else
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 fi
3645
3646
3647 test -n "$CC" && break
3648 done
3649 fi
3650 if test -z "$CC"; then
3651 ac_ct_CC=$CC
3652 for ac_prog in cl.exe
3653 do
3654 # Extract the first word of "$ac_prog", so it can be a program name with args.
3655 set dummy $ac_prog; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_ac_ct_CC+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else case e in #(
3662 e) if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668 IFS=$as_save_IFS
3669 case $as_dir in #(((
3670 '') as_dir=./ ;;
3671 */) ;;
3672 *) as_dir=$as_dir/ ;;
3673 esac
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_ac_ct_CC="$ac_prog"
3677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3681 done
3682 IFS=$as_save_IFS
3683
3684 fi ;;
3685 esac
3686 fi
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3690 printf "%s\n" "$ac_ct_CC" >&6; }
3691 else
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694 fi
3695
3696
3697 test -n "$ac_ct_CC" && break
3698 done
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709 CC=$ac_ct_CC
3710 fi
3711 fi
3712
3713 fi
3714 if test -z "$CC"; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}clang; ac_word=$2
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 printf %s "checking for $ac_word... " >&6; }
3720 if test ${ac_cv_prog_CC+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else case e in #(
3724 e) if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 case $as_dir in #(((
3732 '') as_dir=./ ;;
3733 */) ;;
3734 *) as_dir=$as_dir/ ;;
3735 esac
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}clang"
3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi ;;
3747 esac
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 printf "%s\n" "$CC" >&6; }
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
3762 # Extract the first word of "clang", so it can be a program name with args.
3763 set dummy clang; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_ac_ct_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_CC="clang"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798 printf "%s\n" "$ac_ct_CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3814 fi
3815 else
3816 CC="$ac_cv_prog_CC"
3817 fi
3818
3819 fi
3820
3821
3822 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3823 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3824 as_fn_error $? "no acceptable C compiler found in \$PATH
3825 See 'config.log' for more details" "$LINENO" 5; }
3826
3827 # Provide some information about the compiler.
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829 set X $ac_compile
3830 ac_compiler=$2
3831 for ac_option in --version -v -V -qversion -version; do
3832 { { ac_try="$ac_compiler $ac_option >&5"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 printf "%s\n" "$ac_try_echo"; } >&5
3839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3840 ac_status=$?
3841 if test -s conftest.err; then
3842 sed '10a\
3843 ... rest of stderr output deleted ...
3844 10q' conftest.err >conftest.er1
3845 cat conftest.er1 >&5
3846 fi
3847 rm -f conftest.er1 conftest.err
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }
3850 done
3851
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main (void)
3857 {
3858
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 ac_clean_files_save=$ac_clean_files
3864 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3865 # Try to create an executable without -o first, disregard a.out.
3866 # It will help us diagnose broken compilers, and finding out an intuition
3867 # of exeext.
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3869 printf %s "checking whether the C compiler works... " >&6; }
3870 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871
3872 # The possible output files:
3873 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874
3875 ac_rmfiles=
3876 for ac_file in $ac_files
3877 do
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3881 esac
3882 done
3883 rm -f $ac_rmfiles
3884
3885 if { { ac_try="$ac_link_default"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 printf "%s\n" "$ac_try_echo"; } >&5
3892 (eval "$ac_link_default") 2>&5
3893 ac_status=$?
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }
3896 then :
3897 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3898 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3899 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3900 # so that the user can short-circuit this test for compilers unknown to
3901 # Autoconf.
3902 for ac_file in $ac_files ''
3903 do
3904 test -f "$ac_file" || continue
3905 case $ac_file in
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3907 ;;
3908 [ab].out )
3909 # We found the default executable, but exeext='' is most
3910 # certainly right.
3911 break;;
3912 *.* )
3913 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3914 then :; else
3915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3916 fi
3917 # We set ac_cv_exeext here because the later test for it is not
3918 # safe: cross compilers may not add the suffix if given an '-o'
3919 # argument, so we may need to know it at that point already.
3920 # Even if this section looks crufty: it has the advantage of
3921 # actually working.
3922 break;;
3923 * )
3924 break;;
3925 esac
3926 done
3927 test "$ac_cv_exeext" = no && ac_cv_exeext=
3928
3929 else case e in #(
3930 e) ac_file='' ;;
3931 esac
3932 fi
3933 if test -z "$ac_file"
3934 then :
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 printf "%s\n" "no" >&6; }
3937 printf "%s\n" "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3941 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3942 as_fn_error 77 "C compiler cannot create executables
3943 See 'config.log' for more details" "$LINENO" 5; }
3944 else case e in #(
3945 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946 printf "%s\n" "yes" >&6; } ;;
3947 esac
3948 fi
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3950 printf %s "checking for C compiler default output file name... " >&6; }
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3952 printf "%s\n" "$ac_file" >&6; }
3953 ac_exeext=$ac_cv_exeext
3954
3955 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3956 ac_clean_files=$ac_clean_files_save
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3958 printf %s "checking for suffix of executables... " >&6; }
3959 if { { ac_try="$ac_link"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 printf "%s\n" "$ac_try_echo"; } >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 then :
3971 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3972 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3973 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3974 # 'rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 break;;
3981 * ) break;;
3982 esac
3983 done
3984 else case e in #(
3985 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3986 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988 See 'config.log' for more details" "$LINENO" 5; } ;;
3989 esac
3990 fi
3991 rm -f conftest conftest$ac_cv_exeext
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 printf "%s\n" "$ac_cv_exeext" >&6; }
3994
3995 rm -f conftest.$ac_ext
3996 EXEEXT=$ac_cv_exeext
3997 ac_exeext=$EXEEXT
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #include <stdio.h>
4001 int
4002 main (void)
4003 {
4004 FILE *f = fopen ("conftest.out", "w");
4005 if (!f)
4006 return 1;
4007 return ferror (f) || fclose (f) != 0;
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 ac_clean_files="$ac_clean_files conftest.out"
4014 # Check that the compiler produces executables we can run. If not, either
4015 # the compiler is broken, or we cross compile.
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017 printf %s "checking whether we are cross compiling... " >&6; }
4018 if test "$cross_compiling" != yes; then
4019 { { ac_try="$ac_link"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 printf "%s\n" "$ac_try_echo"; } >&5
4026 (eval "$ac_link") 2>&5
4027 ac_status=$?
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 if { ac_try='./conftest$ac_cv_exeext'
4031 { { case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 printf "%s\n" "$ac_try_echo"; } >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; }; then
4041 cross_compiling=no
4042 else
4043 if test "$cross_compiling" = maybe; then
4044 cross_compiling=yes
4045 else
4046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4048 as_fn_error 77 "cannot run C compiled programs.
4049 If you meant to cross compile, use '--host'.
4050 See 'config.log' for more details" "$LINENO" 5; }
4051 fi
4052 fi
4053 fi
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055 printf "%s\n" "$cross_compiling" >&6; }
4056
4057 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4058 conftest.o conftest.obj conftest.out
4059 ac_clean_files=$ac_clean_files_save
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4061 printf %s "checking for suffix of object files... " >&6; }
4062 if test ${ac_cv_objext+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else case e in #(
4066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main (void)
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 printf "%s\n" "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }
4089 then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4092 case $ac_file in
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4095 break;;
4096 esac
4097 done
4098 else case e in #(
4099 e) printf "%s\n" "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files: cannot compile
4105 See 'config.log' for more details" "$LINENO" 5; } ;;
4106 esac
4107 fi
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4109 esac
4110 fi
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4112 printf "%s\n" "$ac_cv_objext" >&6; }
4113 OBJEXT=$ac_cv_objext
4114 ac_objext=$OBJEXT
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4116 printf %s "checking whether the compiler supports GNU C... " >&6; }
4117 if test ${ac_cv_c_compiler_gnu+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else case e in #(
4121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 int
4125 main (void)
4126 {
4127 #ifndef __GNUC__
4128 choke me
4129 #endif
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"
4136 then :
4137 ac_compiler_gnu=yes
4138 else case e in #(
4139 e) ac_compiler_gnu=no ;;
4140 esac
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4144 ;;
4145 esac
4146 fi
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151 if test $ac_compiler_gnu = yes; then
4152 GCC=yes
4153 else
4154 GCC=
4155 fi
4156 ac_test_CFLAGS=${CFLAGS+y}
4157 ac_save_CFLAGS=$CFLAGS
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4159 printf %s "checking whether $CC accepts -g... " >&6; }
4160 if test ${ac_cv_prog_cc_g+y}
4161 then :
4162 printf %s "(cached) " >&6
4163 else case e in #(
4164 e) ac_save_c_werror_flag=$ac_c_werror_flag
4165 ac_c_werror_flag=yes
4166 ac_cv_prog_cc_g=no
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main (void)
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"
4180 then :
4181 ac_cv_prog_cc_g=yes
4182 else case e in #(
4183 e) CFLAGS=""
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main (void)
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"
4196 then :
4197
4198 else case e in #(
4199 e) ac_c_werror_flag=$ac_save_c_werror_flag
4200 CFLAGS="-g"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203
4204 int
4205 main (void)
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_cv_prog_cc_g=yes
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4217 esac
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4220 esac
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4223 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4224 esac
4225 fi
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4227 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4228 if test $ac_test_CFLAGS; then
4229 CFLAGS=$ac_save_CFLAGS
4230 elif test $ac_cv_prog_cc_g = yes; then
4231 if test "$GCC" = yes; then
4232 CFLAGS="-g -O2"
4233 else
4234 CFLAGS="-g"
4235 fi
4236 else
4237 if test "$GCC" = yes; then
4238 CFLAGS="-O2"
4239 else
4240 CFLAGS=
4241 fi
4242 fi
4243 ac_prog_cc_stdc=no
4244 if test x$ac_prog_cc_stdc = xno
4245 then :
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4247 printf %s "checking for $CC option to enable C11 features... " >&6; }
4248 if test ${ac_cv_prog_cc_c11+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else case e in #(
4252 e) ac_cv_prog_cc_c11=no
4253 ac_save_CC=$CC
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 $ac_c_conftest_c11_program
4257 _ACEOF
4258 for ac_arg in '' -std=gnu11
4259 do
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"
4262 then :
4263 ac_cv_prog_cc_c11=$ac_arg
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.beam
4266 test "x$ac_cv_prog_cc_c11" != "xno" && break
4267 done
4268 rm -f conftest.$ac_ext
4269 CC=$ac_save_CC ;;
4270 esac
4271 fi
4272
4273 if test "x$ac_cv_prog_cc_c11" = xno
4274 then :
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 printf "%s\n" "unsupported" >&6; }
4277 else case e in #(
4278 e) if test "x$ac_cv_prog_cc_c11" = x
4279 then :
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4281 printf "%s\n" "none needed" >&6; }
4282 else case e in #(
4283 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4284 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4285 CC="$CC $ac_cv_prog_cc_c11" ;;
4286 esac
4287 fi
4288 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4289 ac_prog_cc_stdc=c11 ;;
4290 esac
4291 fi
4292 fi
4293 if test x$ac_prog_cc_stdc = xno
4294 then :
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4296 printf %s "checking for $CC option to enable C99 features... " >&6; }
4297 if test ${ac_cv_prog_cc_c99+y}
4298 then :
4299 printf %s "(cached) " >&6
4300 else case e in #(
4301 e) ac_cv_prog_cc_c99=no
4302 ac_save_CC=$CC
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 $ac_c_conftest_c99_program
4306 _ACEOF
4307 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4308 do
4309 CC="$ac_save_CC $ac_arg"
4310 if ac_fn_c_try_compile "$LINENO"
4311 then :
4312 ac_cv_prog_cc_c99=$ac_arg
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.beam
4315 test "x$ac_cv_prog_cc_c99" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC ;;
4319 esac
4320 fi
4321
4322 if test "x$ac_cv_prog_cc_c99" = xno
4323 then :
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 printf "%s\n" "unsupported" >&6; }
4326 else case e in #(
4327 e) if test "x$ac_cv_prog_cc_c99" = x
4328 then :
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330 printf "%s\n" "none needed" >&6; }
4331 else case e in #(
4332 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4333 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4334 CC="$CC $ac_cv_prog_cc_c99" ;;
4335 esac
4336 fi
4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4338 ac_prog_cc_stdc=c99 ;;
4339 esac
4340 fi
4341 fi
4342 if test x$ac_prog_cc_stdc = xno
4343 then :
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4345 printf %s "checking for $CC option to enable C89 features... " >&6; }
4346 if test ${ac_cv_prog_cc_c89+y}
4347 then :
4348 printf %s "(cached) " >&6
4349 else case e in #(
4350 e) ac_cv_prog_cc_c89=no
4351 ac_save_CC=$CC
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 $ac_c_conftest_c89_program
4355 _ACEOF
4356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4357 do
4358 CC="$ac_save_CC $ac_arg"
4359 if ac_fn_c_try_compile "$LINENO"
4360 then :
4361 ac_cv_prog_cc_c89=$ac_arg
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.beam
4364 test "x$ac_cv_prog_cc_c89" != "xno" && break
4365 done
4366 rm -f conftest.$ac_ext
4367 CC=$ac_save_CC ;;
4368 esac
4369 fi
4370
4371 if test "x$ac_cv_prog_cc_c89" = xno
4372 then :
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374 printf "%s\n" "unsupported" >&6; }
4375 else case e in #(
4376 e) if test "x$ac_cv_prog_cc_c89" = x
4377 then :
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4379 printf "%s\n" "none needed" >&6; }
4380 else case e in #(
4381 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4382 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4383 CC="$CC $ac_cv_prog_cc_c89" ;;
4384 esac
4385 fi
4386 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4387 ac_prog_cc_stdc=c89 ;;
4388 esac
4389 fi
4390 fi
4391
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4405 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4406 if test ${am_cv_prog_cc_c_o+y}
4407 then :
4408 printf %s "(cached) " >&6
4409 else case e in #(
4410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412
4413 int
4414 main (void)
4415 {
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 # Make sure it works both with $CC and with simple cc.
4422 # Following AC_PROG_CC_C_O, we do the test twice because some
4423 # compilers refuse to overwrite an existing .o file with -o,
4424 # though they will create one.
4425 am_cv_prog_cc_c_o=yes
4426 for am_i in 1 2; do
4427 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4428 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } \
4432 && test -f conftest2.$ac_objext; then
4433 : OK
4434 else
4435 am_cv_prog_cc_c_o=no
4436 break
4437 fi
4438 done
4439 rm -f core conftest*
4440 unset am_i ;;
4441 esac
4442 fi
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4444 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4445 if test "$am_cv_prog_cc_c_o" != yes; then
4446 # Losing compiler, so override with the script.
4447 # FIXME: It is wrong to rewrite CC.
4448 # But if we don't then we get into trouble of one sort or another.
4449 # A longer-term fix would be to have automake use am__CC in this case,
4450 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4451 CC="$am_aux_dir/compile $CC"
4452 fi
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458
4459 DEPDIR="${am__leading_dot}deps"
4460
4461 ac_config_commands="$ac_config_commands depfiles"
4462
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4464 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4465 cat > confinc.mk << 'END'
4466 am__doit:
4467 @echo this is the am__doit target >confinc.out
4468 .PHONY: am__doit
4469 END
4470 am__include="#"
4471 am__quote=
4472 # BSD make does it like this.
4473 echo '.include "confinc.mk" # ignored' > confmf.BSD
4474 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4475 echo 'include confinc.mk # ignored' > confmf.GNU
4476 _am_result=no
4477 for s in GNU BSD; do
4478 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4479 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }
4483 case $?:`cat confinc.out 2>/dev/null` in #(
4484 '0:this is the am__doit target') :
4485 case $s in #(
4486 BSD) :
4487 am__include='.include' am__quote='"' ;; #(
4488 *) :
4489 am__include='include' am__quote='' ;;
4490 esac ;; #(
4491 *) :
4492 ;;
4493 esac
4494 if test "$am__include" != "#"; then
4495 _am_result="yes ($s style)"
4496 break
4497 fi
4498 done
4499 rm -f confinc.* confmf.*
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4501 printf "%s\n" "${_am_result}" >&6; }
4502
4503 # Check whether --enable-dependency-tracking was given.
4504 if test ${enable_dependency_tracking+y}
4505 then :
4506 enableval=$enable_dependency_tracking;
4507 fi
4508
4509 if test "x$enable_dependency_tracking" != xno; then
4510 am_depcomp="$ac_aux_dir/depcomp"
4511 AMDEPBACKSLASH='\'
4512 am__nodep='_no'
4513 fi
4514 if test "x$enable_dependency_tracking" != xno; then
4515 AMDEP_TRUE=
4516 AMDEP_FALSE='#'
4517 else
4518 AMDEP_TRUE='#'
4519 AMDEP_FALSE=
4520 fi
4521
4522
4523
4524 depcc="$CC" am_compiler_list=
4525
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 printf %s "checking dependency style of $depcc... " >&6; }
4528 if test ${am_cv_CC_dependencies_compiler_type+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else case e in #(
4532 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4533 # We make a subdir and do the tests there. Otherwise we can end up
4534 # making bogus files that we don't know about and never remove. For
4535 # instance it was reported that on HP-UX the gcc test will end up
4536 # making a dummy file named 'D' -- because '-MD' means "put the output
4537 # in D".
4538 rm -rf conftest.dir
4539 mkdir conftest.dir
4540 # Copy depcomp to subdir because otherwise we won't find it if we're
4541 # using a relative directory.
4542 cp "$am_depcomp" conftest.dir
4543 cd conftest.dir
4544 # We will build objects and dependencies in a subdirectory because
4545 # it helps to detect inapplicable dependency modes. For instance
4546 # both Tru64's cc and ICC support -MD to output dependencies as a
4547 # side effect of compilation, but ICC will put the dependencies in
4548 # the current directory while Tru64 will put them in the object
4549 # directory.
4550 mkdir sub
4551
4552 am_cv_CC_dependencies_compiler_type=none
4553 if test "$am_compiler_list" = ""; then
4554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4555 fi
4556 am__universal=false
4557 case " $depcc " in #(
4558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4559 esac
4560
4561 for depmode in $am_compiler_list; do
4562 # Setup a source with many dependencies, because some compilers
4563 # like to wrap large dependency lists on column 80 (with \), and
4564 # we should not choose a depcomp mode which is confused by this.
4565 #
4566 # We need to recreate these files for each test, as the compiler may
4567 # overwrite some of them when testing with obscure command lines.
4568 # This happens at least with the AIX C compiler.
4569 : > sub/conftest.c
4570 for i in 1 2 3 4 5 6; do
4571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4573 # Solaris 10 /bin/sh.
4574 echo '/* dummy */' > sub/conftst$i.h
4575 done
4576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4577
4578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4579 # mode. It turns out that the SunPro C++ compiler does not properly
4580 # handle '-M -o', and we need to detect this. Also, some Intel
4581 # versions had trouble with output in subdirs.
4582 am__obj=sub/conftest.${OBJEXT-o}
4583 am__minus_obj="-o $am__obj"
4584 case $depmode in
4585 gcc)
4586 # This depmode causes a compiler race in universal mode.
4587 test "$am__universal" = false || continue
4588 ;;
4589 nosideeffect)
4590 # After this tag, mechanisms are not by side-effect, so they'll
4591 # only be used when explicitly requested.
4592 if test "x$enable_dependency_tracking" = xyes; then
4593 continue
4594 else
4595 break
4596 fi
4597 ;;
4598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4599 # This compiler won't grok '-c -o', but also, the minuso test has
4600 # not run yet. These depmodes are late enough in the game, and
4601 # so weak that their functioning should not be impacted.
4602 am__obj=conftest.${OBJEXT-o}
4603 am__minus_obj=
4604 ;;
4605 none) break ;;
4606 esac
4607 if depmode=$depmode \
4608 source=sub/conftest.c object=$am__obj \
4609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4611 >/dev/null 2>conftest.err &&
4612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4616 # icc doesn't choke on unknown options, it will just issue warnings
4617 # or remarks (even with -Werror). So we grep stderr for any message
4618 # that says an option was ignored or not supported.
4619 # When given -MP, icc 7.0 and 7.1 complain thusly:
4620 # icc: Command line warning: ignoring option '-M'; no argument required
4621 # The diagnosis changed in icc 8.0:
4622 # icc: Command line remark: option '-MP' not supported
4623 if (grep 'ignoring option' conftest.err ||
4624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4625 am_cv_CC_dependencies_compiler_type=$depmode
4626 break
4627 fi
4628 fi
4629 done
4630
4631 cd ..
4632 rm -rf conftest.dir
4633 else
4634 am_cv_CC_dependencies_compiler_type=none
4635 fi
4636 ;;
4637 esac
4638 fi
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4640 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4642
4643 if
4644 test "x$enable_dependency_tracking" != xno \
4645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4646 am__fastdepCC_TRUE=
4647 am__fastdepCC_FALSE='#'
4648 else
4649 am__fastdepCC_TRUE='#'
4650 am__fastdepCC_FALSE=
4651 fi
4652
4653
4654
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
4656 printf %s "checking whether ${CC-cc} accepts -fPIE... " >&6; }
4657 if test ${ac_cv_prog_cc_pie+y}
4658 then :
4659 printf %s "(cached) " >&6
4660 else case e in #(
4661 e)
4662 echo 'void f(){}' > conftest.c
4663 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
4664 ac_cv_prog_cc_pie=yes
4665 else
4666 ac_cv_prog_cc_pie=no
4667 fi
4668 rm -rf conftest*
4669 ;;
4670 esac
4671 fi
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
4673 printf "%s\n" "$ac_cv_prog_cc_pie" >&6; }
4674
4675
4676
4677
4678 case `pwd` in
4679 *\ * | *\ *)
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4681 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4682 esac
4683
4684
4685
4686 macro_version='2.4.7'
4687 macro_revision='2.4.7'
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 ltmain=$ac_aux_dir/ltmain.sh
4703
4704
4705
4706 # Make sure we can run config.sub.
4707 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4708 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4709
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4711 printf %s "checking build system type... " >&6; }
4712 if test ${ac_cv_build+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else case e in #(
4716 e) ac_build_alias=$build_alias
4717 test "x$ac_build_alias" = x &&
4718 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4719 test "x$ac_build_alias" = x &&
4720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4721 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4723 ;;
4724 esac
4725 fi
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4727 printf "%s\n" "$ac_cv_build" >&6; }
4728 case $ac_cv_build in
4729 *-*-*) ;;
4730 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4731 esac
4732 build=$ac_cv_build
4733 ac_save_IFS=$IFS; IFS='-'
4734 set x $ac_cv_build
4735 shift
4736 build_cpu=$1
4737 build_vendor=$2
4738 shift; shift
4739 # Remember, the first character of IFS is used to create $*,
4740 # except with old shells:
4741 build_os=$*
4742 IFS=$ac_save_IFS
4743 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4744
4745
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4747 printf %s "checking host system type... " >&6; }
4748 if test ${ac_cv_host+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else case e in #(
4752 e) if test "x$host_alias" = x; then
4753 ac_cv_host=$ac_cv_build
4754 else
4755 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4756 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4757 fi
4758 ;;
4759 esac
4760 fi
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4762 printf "%s\n" "$ac_cv_host" >&6; }
4763 case $ac_cv_host in
4764 *-*-*) ;;
4765 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4766 esac
4767 host=$ac_cv_host
4768 ac_save_IFS=$IFS; IFS='-'
4769 set x $ac_cv_host
4770 shift
4771 host_cpu=$1
4772 host_vendor=$2
4773 shift; shift
4774 # Remember, the first character of IFS is used to create $*,
4775 # except with old shells:
4776 host_os=$*
4777 IFS=$ac_save_IFS
4778 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4779
4780
4781 # Backslashify metacharacters that are still active within
4782 # double-quoted strings.
4783 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4784
4785 # Same as above, but do not quote variable references.
4786 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4787
4788 # Sed substitution to delay expansion of an escaped shell variable in a
4789 # double_quote_subst'ed string.
4790 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4791
4792 # Sed substitution to delay expansion of an escaped single quote.
4793 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4794
4795 # Sed substitution to avoid accidental globbing in evaled expressions
4796 no_glob_subst='s/\*/\\\*/g'
4797
4798 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4801
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4803 printf %s "checking how to print strings... " >&6; }
4804 # Test print first, because it will be a builtin if present.
4805 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4807 ECHO='print -r --'
4808 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4809 ECHO='printf %s\n'
4810 else
4811 # Use this function as a fallback that always works.
4812 func_fallback_echo ()
4813 {
4814 eval 'cat <<_LTECHO_EOF
4815 $1
4816 _LTECHO_EOF'
4817 }
4818 ECHO='func_fallback_echo'
4819 fi
4820
4821 # func_echo_all arg...
4822 # Invoke $ECHO with all args, space-separated.
4823 func_echo_all ()
4824 {
4825 $ECHO ""
4826 }
4827
4828 case $ECHO in
4829 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4830 printf "%s\n" "printf" >&6; } ;;
4831 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4832 printf "%s\n" "print -r" >&6; } ;;
4833 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4834 printf "%s\n" "cat" >&6; } ;;
4835 esac
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4851 printf %s "checking for a sed that does not truncate output... " >&6; }
4852 if test ${ac_cv_path_SED+y}
4853 then :
4854 printf %s "(cached) " >&6
4855 else case e in #(
4856 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4857 for ac_i in 1 2 3 4 5 6 7; do
4858 ac_script="$ac_script$as_nl$ac_script"
4859 done
4860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4861 { ac_script=; unset ac_script;}
4862 if test -z "$SED"; then
4863 ac_path_SED_found=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 case $as_dir in #(((
4870 '') as_dir=./ ;;
4871 */) ;;
4872 *) as_dir=$as_dir/ ;;
4873 esac
4874 for ac_prog in sed gsed
4875 do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4878 as_fn_executable_p "$ac_path_SED" || continue
4879 # Check for GNU ac_path_SED and select it if it is found.
4880 # Check for GNU $ac_path_SED
4881 case `"$ac_path_SED" --version 2>&1` in #(
4882 *GNU*)
4883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4884 #(
4885 *)
4886 ac_count=0
4887 printf %s 0123456789 >"conftest.in"
4888 while :
4889 do
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 printf "%s\n" '' >> "conftest.nl"
4894 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_SED_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_SED="$ac_path_SED"
4900 ac_path_SED_max=$ac_count
4901 fi
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4904 done
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4907
4908 $ac_path_SED_found && break 3
4909 done
4910 done
4911 done
4912 IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_SED"; then
4914 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4915 fi
4916 else
4917 ac_cv_path_SED=$SED
4918 fi
4919 ;;
4920 esac
4921 fi
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4923 printf "%s\n" "$ac_cv_path_SED" >&6; }
4924 SED="$ac_cv_path_SED"
4925 rm -f conftest.sed
4926
4927 test -z "$SED" && SED=sed
4928 Xsed="$SED -e 1s/^X//"
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4941 printf %s "checking for grep that handles long lines and -e... " >&6; }
4942 if test ${ac_cv_path_GREP+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else case e in #(
4946 e) if test -z "$GREP"; then
4947 ac_path_GREP_found=false
4948 # Loop through the user's path and test for each of PROGNAME-LIST
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4951 do
4952 IFS=$as_save_IFS
4953 case $as_dir in #(((
4954 '') as_dir=./ ;;
4955 */) ;;
4956 *) as_dir=$as_dir/ ;;
4957 esac
4958 for ac_prog in grep ggrep
4959 do
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4962 as_fn_executable_p "$ac_path_GREP" || continue
4963 # Check for GNU ac_path_GREP and select it if it is found.
4964 # Check for GNU $ac_path_GREP
4965 case `"$ac_path_GREP" --version 2>&1` in #(
4966 *GNU*)
4967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968 #(
4969 *)
4970 ac_count=0
4971 printf %s 0123456789 >"conftest.in"
4972 while :
4973 do
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 printf "%s\n" 'GREP' >> "conftest.nl"
4978 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_GREP="$ac_path_GREP"
4984 ac_path_GREP_max=$ac_count
4985 fi
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4988 done
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990 esac
4991
4992 $ac_path_GREP_found && break 3
4993 done
4994 done
4995 done
4996 IFS=$as_save_IFS
4997 if test -z "$ac_cv_path_GREP"; then
4998 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999 fi
5000 else
5001 ac_cv_path_GREP=$GREP
5002 fi
5003 ;;
5004 esac
5005 fi
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5007 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5008 GREP="$ac_cv_path_GREP"
5009
5010
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5012 printf %s "checking for egrep... " >&6; }
5013 if test ${ac_cv_path_EGREP+y}
5014 then :
5015 printf %s "(cached) " >&6
5016 else case e in #(
5017 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5018 then ac_cv_path_EGREP="$GREP -E"
5019 else
5020 if test -z "$EGREP"; then
5021 ac_path_EGREP_found=false
5022 # Loop through the user's path and test for each of PROGNAME-LIST
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5025 do
5026 IFS=$as_save_IFS
5027 case $as_dir in #(((
5028 '') as_dir=./ ;;
5029 */) ;;
5030 *) as_dir=$as_dir/ ;;
5031 esac
5032 for ac_prog in egrep
5033 do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5036 as_fn_executable_p "$ac_path_EGREP" || continue
5037 # Check for GNU ac_path_EGREP and select it if it is found.
5038 # Check for GNU $ac_path_EGREP
5039 case `"$ac_path_EGREP" --version 2>&1` in #(
5040 *GNU*)
5041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5042 #(
5043 *)
5044 ac_count=0
5045 printf %s 0123456789 >"conftest.in"
5046 while :
5047 do
5048 cat "conftest.in" "conftest.in" >"conftest.tmp"
5049 mv "conftest.tmp" "conftest.in"
5050 cp "conftest.in" "conftest.nl"
5051 printf "%s\n" 'EGREP' >> "conftest.nl"
5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054 as_fn_arith $ac_count + 1 && ac_count=$as_val
5055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5056 # Best one so far, save it but keep looking for a better one
5057 ac_cv_path_EGREP="$ac_path_EGREP"
5058 ac_path_EGREP_max=$ac_count
5059 fi
5060 # 10*(2^10) chars as input seems more than enough
5061 test $ac_count -gt 10 && break
5062 done
5063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5064 esac
5065
5066 $ac_path_EGREP_found && break 3
5067 done
5068 done
5069 done
5070 IFS=$as_save_IFS
5071 if test -z "$ac_cv_path_EGREP"; then
5072 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5073 fi
5074 else
5075 ac_cv_path_EGREP=$EGREP
5076 fi
5077
5078 fi ;;
5079 esac
5080 fi
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5082 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5083 EGREP="$ac_cv_path_EGREP"
5084
5085 EGREP_TRADITIONAL=$EGREP
5086 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5087
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5089 printf %s "checking for fgrep... " >&6; }
5090 if test ${ac_cv_path_FGREP+y}
5091 then :
5092 printf %s "(cached) " >&6
5093 else case e in #(
5094 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5095 then ac_cv_path_FGREP="$GREP -F"
5096 else
5097 if test -z "$FGREP"; then
5098 ac_path_FGREP_found=false
5099 # Loop through the user's path and test for each of PROGNAME-LIST
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 do
5103 IFS=$as_save_IFS
5104 case $as_dir in #(((
5105 '') as_dir=./ ;;
5106 */) ;;
5107 *) as_dir=$as_dir/ ;;
5108 esac
5109 for ac_prog in fgrep
5110 do
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5113 as_fn_executable_p "$ac_path_FGREP" || continue
5114 # Check for GNU ac_path_FGREP and select it if it is found.
5115 # Check for GNU $ac_path_FGREP
5116 case `"$ac_path_FGREP" --version 2>&1` in #(
5117 *GNU*)
5118 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5119 #(
5120 *)
5121 ac_count=0
5122 printf %s 0123456789 >"conftest.in"
5123 while :
5124 do
5125 cat "conftest.in" "conftest.in" >"conftest.tmp"
5126 mv "conftest.tmp" "conftest.in"
5127 cp "conftest.in" "conftest.nl"
5128 printf "%s\n" 'FGREP' >> "conftest.nl"
5129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5131 as_fn_arith $ac_count + 1 && ac_count=$as_val
5132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5133 # Best one so far, save it but keep looking for a better one
5134 ac_cv_path_FGREP="$ac_path_FGREP"
5135 ac_path_FGREP_max=$ac_count
5136 fi
5137 # 10*(2^10) chars as input seems more than enough
5138 test $ac_count -gt 10 && break
5139 done
5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 esac
5142
5143 $ac_path_FGREP_found && break 3
5144 done
5145 done
5146 done
5147 IFS=$as_save_IFS
5148 if test -z "$ac_cv_path_FGREP"; then
5149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 fi
5151 else
5152 ac_cv_path_FGREP=$FGREP
5153 fi
5154
5155 fi ;;
5156 esac
5157 fi
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5159 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5160 FGREP="$ac_cv_path_FGREP"
5161
5162
5163 test -z "$GREP" && GREP=grep
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 # Check whether --with-gnu-ld was given.
5184 if test ${with_gnu_ld+y}
5185 then :
5186 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5187 else case e in #(
5188 e) with_gnu_ld=no ;;
5189 esac
5190 fi
5191
5192 ac_prog=ld
5193 if test yes = "$GCC"; then
5194 # Check if gcc -print-prog-name=ld gives a path.
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5196 printf %s "checking for ld used by $CC... " >&6; }
5197 case $host in
5198 *-*-mingw*)
5199 # gcc leaves a trailing carriage return, which upsets mingw
5200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5201 *)
5202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5203 esac
5204 case $ac_prog in
5205 # Accept absolute paths.
5206 [\\/]* | ?:[\\/]*)
5207 re_direlt='/[^/][^/]*/\.\./'
5208 # Canonicalize the pathname of ld
5209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5212 done
5213 test -z "$LD" && LD=$ac_prog
5214 ;;
5215 "")
5216 # If it fails, then pretend we aren't using GCC.
5217 ac_prog=ld
5218 ;;
5219 *)
5220 # If it is relative, then search for the first ld in PATH.
5221 with_gnu_ld=unknown
5222 ;;
5223 esac
5224 elif test yes = "$with_gnu_ld"; then
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5226 printf %s "checking for GNU ld... " >&6; }
5227 else
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5229 printf %s "checking for non-GNU ld... " >&6; }
5230 fi
5231 if test ${lt_cv_path_LD+y}
5232 then :
5233 printf %s "(cached) " >&6
5234 else case e in #(
5235 e) if test -z "$LD"; then
5236 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5237 for ac_dir in $PATH; do
5238 IFS=$lt_save_ifs
5239 test -z "$ac_dir" && ac_dir=.
5240 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5241 lt_cv_path_LD=$ac_dir/$ac_prog
5242 # Check to see if the program is GNU ld. I'd rather use --version,
5243 # but apparently some variants of GNU ld only accept -v.
5244 # Break only if it was the GNU/non-GNU ld that we prefer.
5245 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5246 *GNU* | *'with BFD'*)
5247 test no != "$with_gnu_ld" && break
5248 ;;
5249 *)
5250 test yes != "$with_gnu_ld" && break
5251 ;;
5252 esac
5253 fi
5254 done
5255 IFS=$lt_save_ifs
5256 else
5257 lt_cv_path_LD=$LD # Let the user override the test with a path.
5258 fi ;;
5259 esac
5260 fi
5261
5262 LD=$lt_cv_path_LD
5263 if test -n "$LD"; then
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5265 printf "%s\n" "$LD" >&6; }
5266 else
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 printf "%s\n" "no" >&6; }
5269 fi
5270 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5272 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5273 if test ${lt_cv_prog_gnu_ld+y}
5274 then :
5275 printf %s "(cached) " >&6
5276 else case e in #(
5277 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5278 case `$LD -v 2>&1 </dev/null` in
5279 *GNU* | *'with BFD'*)
5280 lt_cv_prog_gnu_ld=yes
5281 ;;
5282 *)
5283 lt_cv_prog_gnu_ld=no
5284 ;;
5285 esac ;;
5286 esac
5287 fi
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5289 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5290 with_gnu_ld=$lt_cv_prog_gnu_ld
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5301 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5302 if test ${lt_cv_path_NM+y}
5303 then :
5304 printf %s "(cached) " >&6
5305 else case e in #(
5306 e) if test -n "$NM"; then
5307 # Let the user override the test.
5308 lt_cv_path_NM=$NM
5309 else
5310 lt_nm_to_check=${ac_tool_prefix}nm
5311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5312 lt_nm_to_check="$lt_nm_to_check nm"
5313 fi
5314 for lt_tmp_nm in $lt_nm_to_check; do
5315 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5317 IFS=$lt_save_ifs
5318 test -z "$ac_dir" && ac_dir=.
5319 tmp_nm=$ac_dir/$lt_tmp_nm
5320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5321 # Check to see if the nm accepts a BSD-compat flag.
5322 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5323 # nm: unknown option "B" ignored
5324 # Tru64's nm complains that /dev/null is an invalid object file
5325 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5326 case $build_os in
5327 mingw*) lt_bad_file=conftest.nm/nofile ;;
5328 *) lt_bad_file=/dev/null ;;
5329 esac
5330 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5331 *$lt_bad_file* | *'Invalid file or object type'*)
5332 lt_cv_path_NM="$tmp_nm -B"
5333 break 2
5334 ;;
5335 *)
5336 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5337 */dev/null*)
5338 lt_cv_path_NM="$tmp_nm -p"
5339 break 2
5340 ;;
5341 *)
5342 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5343 continue # so that we can try to find one that supports BSD flags
5344 ;;
5345 esac
5346 ;;
5347 esac
5348 fi
5349 done
5350 IFS=$lt_save_ifs
5351 done
5352 : ${lt_cv_path_NM=no}
5353 fi ;;
5354 esac
5355 fi
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5357 printf "%s\n" "$lt_cv_path_NM" >&6; }
5358 if test no != "$lt_cv_path_NM"; then
5359 NM=$lt_cv_path_NM
5360 else
5361 # Didn't find any BSD compatible name lister, look for dumpbin.
5362 if test -n "$DUMPBIN"; then :
5363 # Let the user override the test.
5364 else
5365 if test -n "$ac_tool_prefix"; then
5366 for ac_prog in dumpbin "link -dump"
5367 do
5368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 printf %s "checking for $ac_word... " >&6; }
5372 if test ${ac_cv_prog_DUMPBIN+y}
5373 then :
5374 printf %s "(cached) " >&6
5375 else case e in #(
5376 e) if test -n "$DUMPBIN"; then
5377 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 case $as_dir in #(((
5384 '') as_dir=./ ;;
5385 */) ;;
5386 *) as_dir=$as_dir/ ;;
5387 esac
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394 done
5395 done
5396 IFS=$as_save_IFS
5397
5398 fi ;;
5399 esac
5400 fi
5401 DUMPBIN=$ac_cv_prog_DUMPBIN
5402 if test -n "$DUMPBIN"; then
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5404 printf "%s\n" "$DUMPBIN" >&6; }
5405 else
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 printf "%s\n" "no" >&6; }
5408 fi
5409
5410
5411 test -n "$DUMPBIN" && break
5412 done
5413 fi
5414 if test -z "$DUMPBIN"; then
5415 ac_ct_DUMPBIN=$DUMPBIN
5416 for ac_prog in dumpbin "link -dump"
5417 do
5418 # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy $ac_prog; ac_word=$2
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 printf %s "checking for $ac_word... " >&6; }
5422 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5423 then :
5424 printf %s "(cached) " >&6
5425 else case e in #(
5426 e) if test -n "$ac_ct_DUMPBIN"; then
5427 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 case $as_dir in #(((
5434 '') as_dir=./ ;;
5435 */) ;;
5436 *) as_dir=$as_dir/ ;;
5437 esac
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi ;;
5449 esac
5450 fi
5451 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5452 if test -n "$ac_ct_DUMPBIN"; then
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5454 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5455 else
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 printf "%s\n" "no" >&6; }
5458 fi
5459
5460
5461 test -n "$ac_ct_DUMPBIN" && break
5462 done
5463
5464 if test "x$ac_ct_DUMPBIN" = x; then
5465 DUMPBIN=":"
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5471 ac_tool_warned=yes ;;
5472 esac
5473 DUMPBIN=$ac_ct_DUMPBIN
5474 fi
5475 fi
5476
5477 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5478 *COFF*)
5479 DUMPBIN="$DUMPBIN -symbols -headers"
5480 ;;
5481 *)
5482 DUMPBIN=:
5483 ;;
5484 esac
5485 fi
5486
5487 if test : != "$DUMPBIN"; then
5488 NM=$DUMPBIN
5489 fi
5490 fi
5491 test -z "$NM" && NM=nm
5492
5493
5494
5495
5496
5497
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5499 printf %s "checking the name lister ($NM) interface... " >&6; }
5500 if test ${lt_cv_nm_interface+y}
5501 then :
5502 printf %s "(cached) " >&6
5503 else case e in #(
5504 e) lt_cv_nm_interface="BSD nm"
5505 echo "int some_variable = 0;" > conftest.$ac_ext
5506 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5507 (eval "$ac_compile" 2>conftest.err)
5508 cat conftest.err >&5
5509 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5510 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5511 cat conftest.err >&5
5512 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5513 cat conftest.out >&5
5514 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5515 lt_cv_nm_interface="MS dumpbin"
5516 fi
5517 rm -f conftest* ;;
5518 esac
5519 fi
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5521 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5522
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5524 printf %s "checking whether ln -s works... " >&6; }
5525 LN_S=$as_ln_s
5526 if test "$LN_S" = "ln -s"; then
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 printf "%s\n" "yes" >&6; }
5529 else
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5531 printf "%s\n" "no, using $LN_S" >&6; }
5532 fi
5533
5534 # find the maximum length of command line arguments
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5536 printf %s "checking the maximum length of command line arguments... " >&6; }
5537 if test ${lt_cv_sys_max_cmd_len+y}
5538 then :
5539 printf %s "(cached) " >&6
5540 else case e in #(
5541 e) i=0
5542 teststring=ABCD
5543
5544 case $build_os in
5545 msdosdjgpp*)
5546 # On DJGPP, this test can blow up pretty badly due to problems in libc
5547 # (any single argument exceeding 2000 bytes causes a buffer overrun
5548 # during glob expansion). Even if it were fixed, the result of this
5549 # check would be larger than it should be.
5550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5551 ;;
5552
5553 gnu*)
5554 # Under GNU Hurd, this test is not required because there is
5555 # no limit to the length of command line arguments.
5556 # Libtool will interpret -1 as no limit whatsoever
5557 lt_cv_sys_max_cmd_len=-1;
5558 ;;
5559
5560 cygwin* | mingw* | cegcc*)
5561 # On Win9x/ME, this test blows up -- it succeeds, but takes
5562 # about 5 minutes as the teststring grows exponentially.
5563 # Worse, since 9x/ME are not pre-emptively multitasking,
5564 # you end up with a "frozen" computer, even though with patience
5565 # the test eventually succeeds (with a max line length of 256k).
5566 # Instead, let's just punt: use the minimum linelength reported by
5567 # all of the supported platforms: 8192 (on NT/2K/XP).
5568 lt_cv_sys_max_cmd_len=8192;
5569 ;;
5570
5571 mint*)
5572 # On MiNT this can take a long time and run out of memory.
5573 lt_cv_sys_max_cmd_len=8192;
5574 ;;
5575
5576 amigaos*)
5577 # On AmigaOS with pdksh, this test takes hours, literally.
5578 # So we just punt and use a minimum line length of 8192.
5579 lt_cv_sys_max_cmd_len=8192;
5580 ;;
5581
5582 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5583 # This has been around since 386BSD, at least. Likely further.
5584 if test -x /sbin/sysctl; then
5585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5586 elif test -x /usr/sbin/sysctl; then
5587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5588 else
5589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5590 fi
5591 # And add a safety zone
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5594 ;;
5595
5596 interix*)
5597 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5598 lt_cv_sys_max_cmd_len=196608
5599 ;;
5600
5601 os2*)
5602 # The test takes a long time on OS/2.
5603 lt_cv_sys_max_cmd_len=8192
5604 ;;
5605
5606 osf*)
5607 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5608 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5609 # nice to cause kernel panics so lets avoid the loop below.
5610 # First set a reasonable default.
5611 lt_cv_sys_max_cmd_len=16384
5612 #
5613 if test -x /sbin/sysconfig; then
5614 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5615 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5616 esac
5617 fi
5618 ;;
5619 sco3.2v5*)
5620 lt_cv_sys_max_cmd_len=102400
5621 ;;
5622 sysv5* | sco5v6* | sysv4.2uw2*)
5623 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5624 if test -n "$kargmax"; then
5625 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5626 else
5627 lt_cv_sys_max_cmd_len=32768
5628 fi
5629 ;;
5630 *)
5631 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5632 if test -n "$lt_cv_sys_max_cmd_len" && \
5633 test undefined != "$lt_cv_sys_max_cmd_len"; then
5634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5636 else
5637 # Make teststring a little bigger before we do anything with it.
5638 # a 1K string should be a reasonable start.
5639 for i in 1 2 3 4 5 6 7 8; do
5640 teststring=$teststring$teststring
5641 done
5642 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5643 # If test is not a shell built-in, we'll probably end up computing a
5644 # maximum length that is only half of the actual maximum length, but
5645 # we can't tell.
5646 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5647 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5648 test 17 != "$i" # 1/2 MB should be enough
5649 do
5650 i=`expr $i + 1`
5651 teststring=$teststring$teststring
5652 done
5653 # Only check the string length outside the loop.
5654 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5655 teststring=
5656 # Add a significant safety factor because C++ compilers can tack on
5657 # massive amounts of additional arguments before passing them to the
5658 # linker. It appears as though 1/2 is a usable value.
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5660 fi
5661 ;;
5662 esac
5663 ;;
5664 esac
5665 fi
5666
5667 if test -n "$lt_cv_sys_max_cmd_len"; then
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5669 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5670 else
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5672 printf "%s\n" "none" >&6; }
5673 fi
5674 max_cmd_len=$lt_cv_sys_max_cmd_len
5675
5676
5677
5678
5679
5680
5681 : ${CP="cp -f"}
5682 : ${MV="mv -f"}
5683 : ${RM="rm -f"}
5684
5685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5686 lt_unset=unset
5687 else
5688 lt_unset=false
5689 fi
5690
5691
5692
5693
5694
5695 # test EBCDIC or ASCII
5696 case `echo X|tr X '\101'` in
5697 A) # ASCII based system
5698 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5699 lt_SP2NL='tr \040 \012'
5700 lt_NL2SP='tr \015\012 \040\040'
5701 ;;
5702 *) # EBCDIC based system
5703 lt_SP2NL='tr \100 \n'
5704 lt_NL2SP='tr \r\n \100\100'
5705 ;;
5706 esac
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5717 printf %s "checking how to convert $build file names to $host format... " >&6; }
5718 if test ${lt_cv_to_host_file_cmd+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else case e in #(
5722 e) case $host in
5723 *-*-mingw* )
5724 case $build in
5725 *-*-mingw* ) # actually msys
5726 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5727 ;;
5728 *-*-cygwin* )
5729 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5730 ;;
5731 * ) # otherwise, assume *nix
5732 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5733 ;;
5734 esac
5735 ;;
5736 *-*-cygwin* )
5737 case $build in
5738 *-*-mingw* ) # actually msys
5739 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5740 ;;
5741 *-*-cygwin* )
5742 lt_cv_to_host_file_cmd=func_convert_file_noop
5743 ;;
5744 * ) # otherwise, assume *nix
5745 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5746 ;;
5747 esac
5748 ;;
5749 * ) # unhandled hosts (and "normal" native builds)
5750 lt_cv_to_host_file_cmd=func_convert_file_noop
5751 ;;
5752 esac
5753 ;;
5754 esac
5755 fi
5756
5757 to_host_file_cmd=$lt_cv_to_host_file_cmd
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5759 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5760
5761
5762
5763
5764
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5766 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5767 if test ${lt_cv_to_tool_file_cmd+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e) #assume ordinary cross tools, or native build.
5772 lt_cv_to_tool_file_cmd=func_convert_file_noop
5773 case $host in
5774 *-*-mingw* )
5775 case $build in
5776 *-*-mingw* ) # actually msys
5777 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5778 ;;
5779 esac
5780 ;;
5781 esac
5782 ;;
5783 esac
5784 fi
5785
5786 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5788 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5789
5790
5791
5792
5793
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5795 printf %s "checking for $LD option to reload object files... " >&6; }
5796 if test ${lt_cv_ld_reload_flag+y}
5797 then :
5798 printf %s "(cached) " >&6
5799 else case e in #(
5800 e) lt_cv_ld_reload_flag='-r' ;;
5801 esac
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5804 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5805 reload_flag=$lt_cv_ld_reload_flag
5806 case $reload_flag in
5807 "" | " "*) ;;
5808 *) reload_flag=" $reload_flag" ;;
5809 esac
5810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811 case $host_os in
5812 cygwin* | mingw* | pw32* | cegcc*)
5813 if test yes != "$GCC"; then
5814 reload_cmds=false
5815 fi
5816 ;;
5817 darwin*)
5818 if test yes = "$GCC"; then
5819 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5820 else
5821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5822 fi
5823 ;;
5824 esac
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834 if test -n "$ac_tool_prefix"; then
5835 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5836 set dummy ${ac_tool_prefix}file; ac_word=$2
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 printf %s "checking for $ac_word... " >&6; }
5839 if test ${ac_cv_prog_FILECMD+y}
5840 then :
5841 printf %s "(cached) " >&6
5842 else case e in #(
5843 e) if test -n "$FILECMD"; then
5844 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 case $as_dir in #(((
5851 '') as_dir=./ ;;
5852 */) ;;
5853 *) as_dir=$as_dir/ ;;
5854 esac
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi ;;
5866 esac
5867 fi
5868 FILECMD=$ac_cv_prog_FILECMD
5869 if test -n "$FILECMD"; then
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5871 printf "%s\n" "$FILECMD" >&6; }
5872 else
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 printf "%s\n" "no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_FILECMD"; then
5880 ac_ct_FILECMD=$FILECMD
5881 # Extract the first word of "file", so it can be a program name with args.
5882 set dummy file; ac_word=$2
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 printf %s "checking for $ac_word... " >&6; }
5885 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5886 then :
5887 printf %s "(cached) " >&6
5888 else case e in #(
5889 e) if test -n "$ac_ct_FILECMD"; then
5890 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895 IFS=$as_save_IFS
5896 case $as_dir in #(((
5897 '') as_dir=./ ;;
5898 */) ;;
5899 *) as_dir=$as_dir/ ;;
5900 esac
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_FILECMD="file"
5904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi ;;
5912 esac
5913 fi
5914 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5915 if test -n "$ac_ct_FILECMD"; then
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5917 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5918 else
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 printf "%s\n" "no" >&6; }
5921 fi
5922
5923 if test "x$ac_ct_FILECMD" = x; then
5924 FILECMD=":"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 FILECMD=$ac_ct_FILECMD
5933 fi
5934 else
5935 FILECMD="$ac_cv_prog_FILECMD"
5936 fi
5937
5938
5939
5940
5941
5942
5943
5944 if test -n "$ac_tool_prefix"; then
5945 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5946 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 printf %s "checking for $ac_word... " >&6; }
5949 if test ${ac_cv_prog_OBJDUMP+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else case e in #(
5953 e) if test -n "$OBJDUMP"; then
5954 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 case $as_dir in #(((
5961 '') as_dir=./ ;;
5962 */) ;;
5963 *) as_dir=$as_dir/ ;;
5964 esac
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi ;;
5976 esac
5977 fi
5978 OBJDUMP=$ac_cv_prog_OBJDUMP
5979 if test -n "$OBJDUMP"; then
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5981 printf "%s\n" "$OBJDUMP" >&6; }
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 printf "%s\n" "no" >&6; }
5985 fi
5986
5987
5988 fi
5989 if test -z "$ac_cv_prog_OBJDUMP"; then
5990 ac_ct_OBJDUMP=$OBJDUMP
5991 # Extract the first word of "objdump", so it can be a program name with args.
5992 set dummy objdump; ac_word=$2
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 printf %s "checking for $ac_word... " >&6; }
5995 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5996 then :
5997 printf %s "(cached) " >&6
5998 else case e in #(
5999 e) if test -n "$ac_ct_OBJDUMP"; then
6000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 case $as_dir in #(((
6007 '') as_dir=./ ;;
6008 */) ;;
6009 *) as_dir=$as_dir/ ;;
6010 esac
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi ;;
6022 esac
6023 fi
6024 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6025 if test -n "$ac_ct_OBJDUMP"; then
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6027 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6028 else
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 printf "%s\n" "no" >&6; }
6031 fi
6032
6033 if test "x$ac_ct_OBJDUMP" = x; then
6034 OBJDUMP="false"
6035 else
6036 case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042 OBJDUMP=$ac_ct_OBJDUMP
6043 fi
6044 else
6045 OBJDUMP="$ac_cv_prog_OBJDUMP"
6046 fi
6047
6048 test -z "$OBJDUMP" && OBJDUMP=objdump
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6059 printf %s "checking how to recognize dependent libraries... " >&6; }
6060 if test ${lt_cv_deplibs_check_method+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else case e in #(
6064 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6065 lt_cv_file_magic_test_file=
6066 lt_cv_deplibs_check_method='unknown'
6067 # Need to set the preceding variable on all platforms that support
6068 # interlibrary dependencies.
6069 # 'none' -- dependencies not supported.
6070 # 'unknown' -- same as none, but documents that we really don't know.
6071 # 'pass_all' -- all dependencies passed with no checks.
6072 # 'test_compile' -- check by making test program.
6073 # 'file_magic [[regex]]' -- check by looking for files in library path
6074 # that responds to the $file_magic_cmd with a given extended regex.
6075 # If you have 'file' or equivalent on your system and you're not sure
6076 # whether 'pass_all' will *always* work, you probably want this one.
6077
6078 case $host_os in
6079 aix[4-9]*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 beos*)
6084 lt_cv_deplibs_check_method=pass_all
6085 ;;
6086
6087 bsdi[45]*)
6088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6089 lt_cv_file_magic_cmd='$FILECMD -L'
6090 lt_cv_file_magic_test_file=/shlib/libc.so
6091 ;;
6092
6093 cygwin*)
6094 # func_win32_libid is a shell function defined in ltmain.sh
6095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6096 lt_cv_file_magic_cmd='func_win32_libid'
6097 ;;
6098
6099 mingw* | pw32*)
6100 # Base MSYS/MinGW do not provide the 'file' command needed by
6101 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6102 # unless we find 'file', for example because we are cross-compiling.
6103 if ( file / ) >/dev/null 2>&1; then
6104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6105 lt_cv_file_magic_cmd='func_win32_libid'
6106 else
6107 # Keep this pattern in sync with the one in func_win32_libid.
6108 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6109 lt_cv_file_magic_cmd='$OBJDUMP -f'
6110 fi
6111 ;;
6112
6113 cegcc*)
6114 # use the weaker test based on 'objdump'. See mingw*.
6115 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6116 lt_cv_file_magic_cmd='$OBJDUMP -f'
6117 ;;
6118
6119 darwin* | rhapsody*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
6122
6123 freebsd* | dragonfly* | midnightbsd*)
6124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6125 case $host_cpu in
6126 i*86 )
6127 # Not sure whether the presence of OpenBSD here was a mistake.
6128 # Let's accept both of them until this is cleared up.
6129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6130 lt_cv_file_magic_cmd=$FILECMD
6131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6132 ;;
6133 esac
6134 else
6135 lt_cv_deplibs_check_method=pass_all
6136 fi
6137 ;;
6138
6139 haiku*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
6143 hpux10.20* | hpux11*)
6144 lt_cv_file_magic_cmd=$FILECMD
6145 case $host_cpu in
6146 ia64*)
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6149 ;;
6150 hppa*64*)
6151 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]'
6152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6153 ;;
6154 *)
6155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6157 ;;
6158 esac
6159 ;;
6160
6161 interix[3-9]*)
6162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6164 ;;
6165
6166 irix5* | irix6* | nonstopux*)
6167 case $LD in
6168 *-32|*"-32 ") libmagic=32-bit;;
6169 *-n32|*"-n32 ") libmagic=N32;;
6170 *-64|*"-64 ") libmagic=64-bit;;
6171 *) libmagic=never-match;;
6172 esac
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 # This must be glibc/ELF.
6177 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 netbsd* | netbsdelf*-gnu)
6182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6184 else
6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6186 fi
6187 ;;
6188
6189 newos6*)
6190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6191 lt_cv_file_magic_cmd=$FILECMD
6192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6193 ;;
6194
6195 *nto* | *qnx*)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198
6199 openbsd* | bitrig*)
6200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6202 else
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 fi
6205 ;;
6206
6207 osf3* | osf4* | osf5*)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210
6211 rdos*)
6212 lt_cv_deplibs_check_method=pass_all
6213 ;;
6214
6215 solaris*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223 sysv4 | sysv4.3*)
6224 case $host_vendor in
6225 motorola)
6226 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]'
6227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6228 ;;
6229 ncr)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232 sequent)
6233 lt_cv_file_magic_cmd='/bin/file'
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6235 ;;
6236 sni)
6237 lt_cv_file_magic_cmd='/bin/file'
6238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6239 lt_cv_file_magic_test_file=/lib/libc.so
6240 ;;
6241 siemens)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244 pc)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247 esac
6248 ;;
6249
6250 tpf*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 os2*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256 esac
6257 ;;
6258 esac
6259 fi
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6261 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6262
6263 file_magic_glob=
6264 want_nocaseglob=no
6265 if test "$build" = "$host"; then
6266 case $host_os in
6267 mingw* | pw32*)
6268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6269 want_nocaseglob=yes
6270 else
6271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6272 fi
6273 ;;
6274 esac
6275 fi
6276
6277 file_magic_cmd=$lt_cv_file_magic_cmd
6278 deplibs_check_method=$lt_cv_deplibs_check_method
6279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 printf %s "checking for $ac_word... " >&6; }
6307 if test ${ac_cv_prog_DLLTOOL+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) if test -n "$DLLTOOL"; then
6312 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi ;;
6334 esac
6335 fi
6336 DLLTOOL=$ac_cv_prog_DLLTOOL
6337 if test -n "$DLLTOOL"; then
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6339 printf "%s\n" "$DLLTOOL" >&6; }
6340 else
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6343 fi
6344
6345
6346 fi
6347 if test -z "$ac_cv_prog_DLLTOOL"; then
6348 ac_ct_DLLTOOL=$DLLTOOL
6349 # Extract the first word of "dlltool", so it can be a program name with args.
6350 set dummy dlltool; ac_word=$2
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 printf %s "checking for $ac_word... " >&6; }
6353 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6354 then :
6355 printf %s "(cached) " >&6
6356 else case e in #(
6357 e) if test -n "$ac_ct_DLLTOOL"; then
6358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 case $as_dir in #(((
6365 '') as_dir=./ ;;
6366 */) ;;
6367 *) as_dir=$as_dir/ ;;
6368 esac
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi ;;
6380 esac
6381 fi
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6386 else
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 printf "%s\n" "no" >&6; }
6389 fi
6390
6391 if test "x$ac_ct_DLLTOOL" = x; then
6392 DLLTOOL="false"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 DLLTOOL=$ac_ct_DLLTOOL
6401 fi
6402 else
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6404 fi
6405
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 printf %s "checking how to associate runtime and link libraries... " >&6; }
6419 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6420 then :
6421 printf %s "(cached) " >&6
6422 else case e in #(
6423 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6424
6425 case $host_os in
6426 cygwin* | mingw* | pw32* | cegcc*)
6427 # two different shell functions defined in ltmain.sh;
6428 # decide which one to use based on capabilities of $DLLTOOL
6429 case `$DLLTOOL --help 2>&1` in
6430 *--identify-strict*)
6431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6432 ;;
6433 *)
6434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6435 ;;
6436 esac
6437 ;;
6438 *)
6439 # fallback: assume linklib IS sharedlib
6440 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6441 ;;
6442 esac
6443 ;;
6444 esac
6445 fi
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6447 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6448 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6449 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6450
6451
6452
6453
6454
6455
6456
6457
6458 if test -n "$ac_tool_prefix"; then
6459 for ac_prog in ar
6460 do
6461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 printf %s "checking for $ac_word... " >&6; }
6465 if test ${ac_cv_prog_AR+y}
6466 then :
6467 printf %s "(cached) " >&6
6468 else case e in #(
6469 e) if test -n "$AR"; then
6470 ac_cv_prog_AR="$AR" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 case $as_dir in #(((
6477 '') as_dir=./ ;;
6478 */) ;;
6479 *) as_dir=$as_dir/ ;;
6480 esac
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491 fi ;;
6492 esac
6493 fi
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 printf "%s\n" "$AR" >&6; }
6498 else
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 printf "%s\n" "no" >&6; }
6501 fi
6502
6503
6504 test -n "$AR" && break
6505 done
6506 fi
6507 if test -z "$AR"; then
6508 ac_ct_AR=$AR
6509 for ac_prog in ar
6510 do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 printf %s "checking for $ac_word... " >&6; }
6515 if test ${ac_cv_prog_ac_ct_AR+y}
6516 then :
6517 printf %s "(cached) " >&6
6518 else case e in #(
6519 e) if test -n "$ac_ct_AR"; then
6520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525 IFS=$as_save_IFS
6526 case $as_dir in #(((
6527 '') as_dir=./ ;;
6528 */) ;;
6529 *) as_dir=$as_dir/ ;;
6530 esac
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_ac_ct_AR="$ac_prog"
6534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi ;;
6542 esac
6543 fi
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6547 printf "%s\n" "$ac_ct_AR" >&6; }
6548 else
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 printf "%s\n" "no" >&6; }
6551 fi
6552
6553
6554 test -n "$ac_ct_AR" && break
6555 done
6556
6557 if test "x$ac_ct_AR" = x; then
6558 AR="false"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 AR=$ac_ct_AR
6567 fi
6568 fi
6569
6570 : ${AR=ar}
6571
6572
6573
6574
6575
6576
6577 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6578 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6579 # higher priority because thats what people were doing historically (setting
6580 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6581 # variable obsoleted/removed.
6582
6583 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6584 lt_ar_flags=$AR_FLAGS
6585
6586
6587
6588
6589
6590
6591 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6592 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6593
6594
6595
6596
6597
6598
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6600 printf %s "checking for archiver @FILE support... " >&6; }
6601 if test ${lt_cv_ar_at_file+y}
6602 then :
6603 printf %s "(cached) " >&6
6604 else case e in #(
6605 e) lt_cv_ar_at_file=no
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main (void)
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"
6618 then :
6619 echo conftest.$ac_objext > conftest.lst
6620 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6622 (eval $lt_ar_try) 2>&5
6623 ac_status=$?
6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }
6626 if test 0 -eq "$ac_status"; then
6627 # Ensure the archiver fails upon bogus file names.
6628 rm -f conftest.$ac_objext libconftest.a
6629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6630 (eval $lt_ar_try) 2>&5
6631 ac_status=$?
6632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }
6634 if test 0 -ne "$ac_status"; then
6635 lt_cv_ar_at_file=@
6636 fi
6637 fi
6638 rm -f conftest.* libconftest.a
6639
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6642 ;;
6643 esac
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6646 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6647
6648 if test no = "$lt_cv_ar_at_file"; then
6649 archiver_list_spec=
6650 else
6651 archiver_list_spec=$lt_cv_ar_at_file
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 printf %s "checking for $ac_word... " >&6; }
6665 if test ${ac_cv_prog_STRIP+y}
6666 then :
6667 printf %s "(cached) " >&6
6668 else case e in #(
6669 e) if test -n "$STRIP"; then
6670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 case $as_dir in #(((
6677 '') as_dir=./ ;;
6678 */) ;;
6679 *) as_dir=$as_dir/ ;;
6680 esac
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi ;;
6692 esac
6693 fi
6694 STRIP=$ac_cv_prog_STRIP
6695 if test -n "$STRIP"; then
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6697 printf "%s\n" "$STRIP" >&6; }
6698 else
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 printf "%s\n" "no" >&6; }
6701 fi
6702
6703
6704 fi
6705 if test -z "$ac_cv_prog_STRIP"; then
6706 ac_ct_STRIP=$STRIP
6707 # Extract the first word of "strip", so it can be a program name with args.
6708 set dummy strip; ac_word=$2
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 printf %s "checking for $ac_word... " >&6; }
6711 if test ${ac_cv_prog_ac_ct_STRIP+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 case $as_dir in #(((
6723 '') as_dir=./ ;;
6724 */) ;;
6725 *) as_dir=$as_dir/ ;;
6726 esac
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_ac_ct_STRIP="strip"
6730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi ;;
6738 esac
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6743 printf "%s\n" "$ac_ct_STRIP" >&6; }
6744 else
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 printf "%s\n" "no" >&6; }
6747 fi
6748
6749 if test "x$ac_ct_STRIP" = x; then
6750 STRIP=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758 STRIP=$ac_ct_STRIP
6759 fi
6760 else
6761 STRIP="$ac_cv_prog_STRIP"
6762 fi
6763
6764 test -z "$STRIP" && STRIP=:
6765
6766
6767
6768
6769
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 printf %s "checking for $ac_word... " >&6; }
6776 if test ${ac_cv_prog_RANLIB+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else case e in #(
6780 e) if test -n "$RANLIB"; then
6781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 case $as_dir in #(((
6788 '') as_dir=./ ;;
6789 */) ;;
6790 *) as_dir=$as_dir/ ;;
6791 esac
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi ;;
6803 esac
6804 fi
6805 RANLIB=$ac_cv_prog_RANLIB
6806 if test -n "$RANLIB"; then
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6808 printf "%s\n" "$RANLIB" >&6; }
6809 else
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 printf "%s\n" "no" >&6; }
6812 fi
6813
6814
6815 fi
6816 if test -z "$ac_cv_prog_RANLIB"; then
6817 ac_ct_RANLIB=$RANLIB
6818 # Extract the first word of "ranlib", so it can be a program name with args.
6819 set dummy ranlib; ac_word=$2
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 printf %s "checking for $ac_word... " >&6; }
6822 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else case e in #(
6826 e) if test -n "$ac_ct_RANLIB"; then
6827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 case $as_dir in #(((
6834 '') as_dir=./ ;;
6835 */) ;;
6836 *) as_dir=$as_dir/ ;;
6837 esac
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_ac_ct_RANLIB="ranlib"
6841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi ;;
6849 esac
6850 fi
6851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852 if test -n "$ac_ct_RANLIB"; then
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6854 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6855 else
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 printf "%s\n" "no" >&6; }
6858 fi
6859
6860 if test "x$ac_ct_RANLIB" = x; then
6861 RANLIB=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 RANLIB=$ac_ct_RANLIB
6870 fi
6871 else
6872 RANLIB="$ac_cv_prog_RANLIB"
6873 fi
6874
6875 test -z "$RANLIB" && RANLIB=:
6876
6877
6878
6879
6880
6881
6882 # Determine commands to create old-style static archives.
6883 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6884 old_postinstall_cmds='chmod 644 $oldlib'
6885 old_postuninstall_cmds=
6886
6887 if test -n "$RANLIB"; then
6888 case $host_os in
6889 bitrig* | openbsd*)
6890 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6891 ;;
6892 *)
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6894 ;;
6895 esac
6896 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6897 fi
6898
6899 case $host_os in
6900 darwin*)
6901 lock_old_archive_extraction=yes ;;
6902 *)
6903 lock_old_archive_extraction=no ;;
6904 esac
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 # If no C compiler was specified, use CC.
6945 LTCC=${LTCC-"$CC"}
6946
6947 # If no C compiler flags were specified, use CFLAGS.
6948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6949
6950 # Allow CC to be a program name with arguments.
6951 compiler=$CC
6952
6953
6954 # Check for command to grab the raw symbol name followed by C symbol from nm.
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6956 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6957 if test ${lt_cv_sys_global_symbol_pipe+y}
6958 then :
6959 printf %s "(cached) " >&6
6960 else case e in #(
6961 e)
6962 # These are sane defaults that work on at least a few old systems.
6963 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6964
6965 # Character class describing NM global symbol codes.
6966 symcode='[BCDEGRST]'
6967
6968 # Regexp to match symbols that can be accessed directly from C.
6969 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6970
6971 # Define system-specific variables.
6972 case $host_os in
6973 aix*)
6974 symcode='[BCDT]'
6975 ;;
6976 cygwin* | mingw* | pw32* | cegcc*)
6977 symcode='[ABCDGISTW]'
6978 ;;
6979 hpux*)
6980 if test ia64 = "$host_cpu"; then
6981 symcode='[ABCDEGRST]'
6982 fi
6983 ;;
6984 irix* | nonstopux*)
6985 symcode='[BCDEGRST]'
6986 ;;
6987 osf*)
6988 symcode='[BCDEGQRST]'
6989 ;;
6990 solaris*)
6991 symcode='[BDRT]'
6992 ;;
6993 sco3.2v5*)
6994 symcode='[DT]'
6995 ;;
6996 sysv4.2uw2*)
6997 symcode='[DT]'
6998 ;;
6999 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7000 symcode='[ABDT]'
7001 ;;
7002 sysv4)
7003 symcode='[DFNSTU]'
7004 ;;
7005 esac
7006
7007 # If we're using GNU nm, then use its standard symbol codes.
7008 case `$NM -V 2>&1` in
7009 *GNU* | *'with BFD'*)
7010 symcode='[ABCDGIRSTW]' ;;
7011 esac
7012
7013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7014 # Gets list of data symbols to import.
7015 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7016 # Adjust the below global symbol transforms to fixup imported variables.
7017 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7018 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7019 lt_c_name_lib_hook="\
7020 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7021 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7022 else
7023 # Disable hooks by default.
7024 lt_cv_sys_global_symbol_to_import=
7025 lt_cdecl_hook=
7026 lt_c_name_hook=
7027 lt_c_name_lib_hook=
7028 fi
7029
7030 # Transform an extracted symbol line into a proper C declaration.
7031 # Some systems (esp. on ia64) link data and code symbols differently,
7032 # so use this general approach.
7033 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7034 $lt_cdecl_hook\
7035 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7036 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7037
7038 # Transform an extracted symbol line into symbol name and symbol address
7039 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7040 $lt_c_name_hook\
7041 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7042 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7043
7044 # Transform an extracted symbol line into symbol name with lib prefix and
7045 # symbol address.
7046 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7047 $lt_c_name_lib_hook\
7048 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7049 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7050 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7051
7052 # Handle CRLF in mingw tool chain
7053 opt_cr=
7054 case $build_os in
7055 mingw*)
7056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7057 ;;
7058 esac
7059
7060 # Try without a prefix underscore, then with it.
7061 for ac_symprfx in "" "_"; do
7062
7063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7064 symxfrm="\\1 $ac_symprfx\\2 \\2"
7065
7066 # Write the raw and C identifiers.
7067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7068 # Fake it for dumpbin and say T for any non-static function,
7069 # D for any global variable and I for any imported variable.
7070 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7071 # which start with @ or ?.
7072 lt_cv_sys_global_symbol_pipe="$AWK '"\
7073 " {last_section=section; section=\$ 3};"\
7074 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7075 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7076 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7077 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7078 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7079 " \$ 0!~/External *\|/{next};"\
7080 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7081 " {if(hide[section]) next};"\
7082 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7083 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7084 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7085 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7086 " ' prfx=^$ac_symprfx"
7087 else
7088 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7089 fi
7090 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7091
7092 # Check to see that the pipe works correctly.
7093 pipe_works=no
7094
7095 rm -f conftest*
7096 cat > conftest.$ac_ext <<_LT_EOF
7097 #ifdef __cplusplus
7098 extern "C" {
7099 #endif
7100 char nm_test_var;
7101 void nm_test_func(void);
7102 void nm_test_func(void){}
7103 #ifdef __cplusplus
7104 }
7105 #endif
7106 int main(){nm_test_var='a';nm_test_func();return(0);}
7107 _LT_EOF
7108
7109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7110 (eval $ac_compile) 2>&5
7111 ac_status=$?
7112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113 test $ac_status = 0; }; then
7114 # Now try to grab the symbols.
7115 nlist=conftest.nm
7116 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7117 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7118 # Try sorting and uniquifying the output.
7119 if sort "$nlist" | uniq > "$nlist"T; then
7120 mv -f "$nlist"T "$nlist"
7121 else
7122 rm -f "$nlist"T
7123 fi
7124
7125 # Make sure that we snagged all the symbols we need.
7126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7128 cat <<_LT_EOF > conftest.$ac_ext
7129 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7130 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7131 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7132 relocations are performed -- see ld's documentation on pseudo-relocs. */
7133 # define LT_DLSYM_CONST
7134 #elif defined __osf__
7135 /* This system does not cope well with relocations in const data. */
7136 # define LT_DLSYM_CONST
7137 #else
7138 # define LT_DLSYM_CONST const
7139 #endif
7140
7141 #ifdef __cplusplus
7142 extern "C" {
7143 #endif
7144
7145 _LT_EOF
7146 # Now generate the symbol file.
7147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148
7149 cat <<_LT_EOF >> conftest.$ac_ext
7150
7151 /* The mapping between symbol names and symbols. */
7152 LT_DLSYM_CONST struct {
7153 const char *name;
7154 void *address;
7155 }
7156 lt__PROGRAM__LTX_preloaded_symbols[] =
7157 {
7158 { "@PROGRAM@", (void *) 0 },
7159 _LT_EOF
7160 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7161 cat <<\_LT_EOF >> conftest.$ac_ext
7162 {0, (void *) 0}
7163 };
7164
7165 /* This works around a problem in FreeBSD linker */
7166 #ifdef FREEBSD_WORKAROUND
7167 static const void *lt_preloaded_setup() {
7168 return lt__PROGRAM__LTX_preloaded_symbols;
7169 }
7170 #endif
7171
7172 #ifdef __cplusplus
7173 }
7174 #endif
7175 _LT_EOF
7176 # Now try linking the two files.
7177 mv conftest.$ac_objext conftstm.$ac_objext
7178 lt_globsym_save_LIBS=$LIBS
7179 lt_globsym_save_CFLAGS=$CFLAGS
7180 LIBS=conftstm.$ac_objext
7181 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7183 (eval $ac_link) 2>&5
7184 ac_status=$?
7185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7187 pipe_works=yes
7188 fi
7189 LIBS=$lt_globsym_save_LIBS
7190 CFLAGS=$lt_globsym_save_CFLAGS
7191 else
7192 echo "cannot find nm_test_func in $nlist" >&5
7193 fi
7194 else
7195 echo "cannot find nm_test_var in $nlist" >&5
7196 fi
7197 else
7198 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7199 fi
7200 else
7201 echo "$progname: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 fi
7204 rm -rf conftest* conftst*
7205
7206 # Do not use the global_symbol_pipe unless it works.
7207 if test yes = "$pipe_works"; then
7208 break
7209 else
7210 lt_cv_sys_global_symbol_pipe=
7211 fi
7212 done
7213 ;;
7214 esac
7215 fi
7216
7217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7218 lt_cv_sys_global_symbol_to_cdecl=
7219 fi
7220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7222 printf "%s\n" "failed" >&6; }
7223 else
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7225 printf "%s\n" "ok" >&6; }
7226 fi
7227
7228 # Response file support.
7229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7230 nm_file_list_spec='@'
7231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7232 nm_file_list_spec='@'
7233 fi
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7272 printf %s "checking for sysroot... " >&6; }
7273
7274 # Check whether --with-sysroot was given.
7275 if test ${with_sysroot+y}
7276 then :
7277 withval=$with_sysroot;
7278 else case e in #(
7279 e) with_sysroot=no ;;
7280 esac
7281 fi
7282
7283
7284 lt_sysroot=
7285 case $with_sysroot in #(
7286 yes)
7287 if test yes = "$GCC"; then
7288 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7289 fi
7290 ;; #(
7291 /*)
7292 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7293 ;; #(
7294 no|'')
7295 ;; #(
7296 *)
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7298 printf "%s\n" "$with_sysroot" >&6; }
7299 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7300 ;;
7301 esac
7302
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7304 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7305
7306
7307
7308
7309
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7311 printf %s "checking for a working dd... " >&6; }
7312 if test ${ac_cv_path_lt_DD+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else case e in #(
7316 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7317 cat conftest.i conftest.i >conftest2.i
7318 : ${lt_DD:=$DD}
7319 if test -z "$lt_DD"; then
7320 ac_path_lt_DD_found=false
7321 # Loop through the user's path and test for each of PROGNAME-LIST
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 case $as_dir in #(((
7327 '') as_dir=./ ;;
7328 */) ;;
7329 *) as_dir=$as_dir/ ;;
7330 esac
7331 for ac_prog in dd
7332 do
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7335 as_fn_executable_p "$ac_path_lt_DD" || continue
7336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7337 cmp -s conftest.i conftest.out \
7338 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7339 fi
7340 $ac_path_lt_DD_found && break 3
7341 done
7342 done
7343 done
7344 IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_lt_DD"; then
7346 :
7347 fi
7348 else
7349 ac_cv_path_lt_DD=$lt_DD
7350 fi
7351
7352 rm -f conftest.i conftest2.i conftest.out ;;
7353 esac
7354 fi
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7356 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7357
7358
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7360 printf %s "checking how to truncate binary pipes... " >&6; }
7361 if test ${lt_cv_truncate_bin+y}
7362 then :
7363 printf %s "(cached) " >&6
7364 else case e in #(
7365 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7366 cat conftest.i conftest.i >conftest2.i
7367 lt_cv_truncate_bin=
7368 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7369 cmp -s conftest.i conftest.out \
7370 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7371 fi
7372 rm -f conftest.i conftest2.i conftest.out
7373 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7374 esac
7375 fi
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7377 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7378
7379
7380
7381
7382
7383
7384
7385 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7386 func_cc_basename ()
7387 {
7388 for cc_temp in $*""; do
7389 case $cc_temp in
7390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7392 \-*) ;;
7393 *) break;;
7394 esac
7395 done
7396 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7397 }
7398
7399 # Check whether --enable-libtool-lock was given.
7400 if test ${enable_libtool_lock+y}
7401 then :
7402 enableval=$enable_libtool_lock;
7403 fi
7404
7405 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7406
7407 # Some flags need to be propagated to the compiler or linker for good
7408 # libtool support.
7409 case $host in
7410 ia64-*-hpux*)
7411 # Find out what ABI is being produced by ac_compile, and set mode
7412 # options accordingly.
7413 echo 'int i;' > conftest.$ac_ext
7414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7415 (eval $ac_compile) 2>&5
7416 ac_status=$?
7417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; }; then
7419 case `$FILECMD conftest.$ac_objext` in
7420 *ELF-32*)
7421 HPUX_IA64_MODE=32
7422 ;;
7423 *ELF-64*)
7424 HPUX_IA64_MODE=64
7425 ;;
7426 esac
7427 fi
7428 rm -rf conftest*
7429 ;;
7430 *-*-irix6*)
7431 # Find out what ABI is being produced by ac_compile, and set linker
7432 # options accordingly.
7433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 if test yes = "$lt_cv_prog_gnu_ld"; then
7440 case `$FILECMD conftest.$ac_objext` in
7441 *32-bit*)
7442 LD="${LD-ld} -melf32bsmip"
7443 ;;
7444 *N32*)
7445 LD="${LD-ld} -melf32bmipn32"
7446 ;;
7447 *64-bit*)
7448 LD="${LD-ld} -melf64bmip"
7449 ;;
7450 esac
7451 else
7452 case `$FILECMD conftest.$ac_objext` in
7453 *32-bit*)
7454 LD="${LD-ld} -32"
7455 ;;
7456 *N32*)
7457 LD="${LD-ld} -n32"
7458 ;;
7459 *64-bit*)
7460 LD="${LD-ld} -64"
7461 ;;
7462 esac
7463 fi
7464 fi
7465 rm -rf conftest*
7466 ;;
7467
7468 mips64*-*linux*)
7469 # Find out what ABI is being produced by ac_compile, and set linker
7470 # options accordingly.
7471 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473 (eval $ac_compile) 2>&5
7474 ac_status=$?
7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }; then
7477 emul=elf
7478 case `$FILECMD conftest.$ac_objext` in
7479 *32-bit*)
7480 emul="${emul}32"
7481 ;;
7482 *64-bit*)
7483 emul="${emul}64"
7484 ;;
7485 esac
7486 case `$FILECMD conftest.$ac_objext` in
7487 *MSB*)
7488 emul="${emul}btsmip"
7489 ;;
7490 *LSB*)
7491 emul="${emul}ltsmip"
7492 ;;
7493 esac
7494 case `$FILECMD conftest.$ac_objext` in
7495 *N32*)
7496 emul="${emul}n32"
7497 ;;
7498 esac
7499 LD="${LD-ld} -m $emul"
7500 fi
7501 rm -rf conftest*
7502 ;;
7503
7504 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7505 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7506 # Find out what ABI is being produced by ac_compile, and set linker
7507 # options accordingly. Note that the listed cases only cover the
7508 # situations where additional linker options are needed (such as when
7509 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7510 # vice versa); the common cases where no linker options are needed do
7511 # not appear in the list.
7512 echo 'int i;' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 case `$FILECMD conftest.o` in
7519 *32-bit*)
7520 case $host in
7521 x86_64-*kfreebsd*-gnu)
7522 LD="${LD-ld} -m elf_i386_fbsd"
7523 ;;
7524 x86_64-*linux*)
7525 case `$FILECMD conftest.o` in
7526 *x86-64*)
7527 LD="${LD-ld} -m elf32_x86_64"
7528 ;;
7529 *)
7530 LD="${LD-ld} -m elf_i386"
7531 ;;
7532 esac
7533 ;;
7534 powerpc64le-*linux*)
7535 LD="${LD-ld} -m elf32lppclinux"
7536 ;;
7537 powerpc64-*linux*)
7538 LD="${LD-ld} -m elf32ppclinux"
7539 ;;
7540 s390x-*linux*)
7541 LD="${LD-ld} -m elf_s390"
7542 ;;
7543 sparc64-*linux*)
7544 LD="${LD-ld} -m elf32_sparc"
7545 ;;
7546 esac
7547 ;;
7548 *64-bit*)
7549 case $host in
7550 x86_64-*kfreebsd*-gnu)
7551 LD="${LD-ld} -m elf_x86_64_fbsd"
7552 ;;
7553 x86_64-*linux*)
7554 LD="${LD-ld} -m elf_x86_64"
7555 ;;
7556 powerpcle-*linux*)
7557 LD="${LD-ld} -m elf64lppc"
7558 ;;
7559 powerpc-*linux*)
7560 LD="${LD-ld} -m elf64ppc"
7561 ;;
7562 s390*-*linux*|s390*-*tpf*)
7563 LD="${LD-ld} -m elf64_s390"
7564 ;;
7565 sparc*-*linux*)
7566 LD="${LD-ld} -m elf64_sparc"
7567 ;;
7568 esac
7569 ;;
7570 esac
7571 fi
7572 rm -rf conftest*
7573 ;;
7574
7575 *-*-sco3.2v5*)
7576 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7577 SAVE_CFLAGS=$CFLAGS
7578 CFLAGS="$CFLAGS -belf"
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7580 printf %s "checking whether the C compiler needs -belf... " >&6; }
7581 if test ${lt_cv_cc_needs_belf+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else case e in #(
7585 e) ac_ext=c
7586 ac_cpp='$CPP $CPPFLAGS'
7587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593
7594 int
7595 main (void)
7596 {
7597
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_link "$LINENO"
7603 then :
7604 lt_cv_cc_needs_belf=yes
7605 else case e in #(
7606 e) lt_cv_cc_needs_belf=no ;;
7607 esac
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7610 conftest$ac_exeext conftest.$ac_ext
7611 ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616 ;;
7617 esac
7618 fi
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7620 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7621 if test yes != "$lt_cv_cc_needs_belf"; then
7622 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7623 CFLAGS=$SAVE_CFLAGS
7624 fi
7625 ;;
7626 *-*solaris*)
7627 # Find out what ABI is being produced by ac_compile, and set linker
7628 # options accordingly.
7629 echo 'int i;' > conftest.$ac_ext
7630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7631 (eval $ac_compile) 2>&5
7632 ac_status=$?
7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 case `$FILECMD conftest.o` in
7636 *64-bit*)
7637 case $lt_cv_prog_gnu_ld in
7638 yes*)
7639 case $host in
7640 i?86-*-solaris*|x86_64-*-solaris*)
7641 LD="${LD-ld} -m elf_x86_64"
7642 ;;
7643 sparc*-*-solaris*)
7644 LD="${LD-ld} -m elf64_sparc"
7645 ;;
7646 esac
7647 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7648 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7649 LD=${LD-ld}_sol2
7650 fi
7651 ;;
7652 *)
7653 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7654 LD="${LD-ld} -64"
7655 fi
7656 ;;
7657 esac
7658 ;;
7659 esac
7660 fi
7661 rm -rf conftest*
7662 ;;
7663 esac
7664
7665 need_locks=$enable_libtool_lock
7666
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}mt; ac_word=$2
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 printf %s "checking for $ac_word... " >&6; }
7672 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7673 then :
7674 printf %s "(cached) " >&6
7675 else case e in #(
7676 e) if test -n "$MANIFEST_TOOL"; then
7677 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 case $as_dir in #(((
7684 '') as_dir=./ ;;
7685 */) ;;
7686 *) as_dir=$as_dir/ ;;
7687 esac
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi ;;
7699 esac
7700 fi
7701 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7702 if test -n "$MANIFEST_TOOL"; then
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7704 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7705 else
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 printf "%s\n" "no" >&6; }
7708 fi
7709
7710
7711 fi
7712 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7713 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7714 # Extract the first word of "mt", so it can be a program name with args.
7715 set dummy mt; ac_word=$2
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 printf %s "checking for $ac_word... " >&6; }
7718 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else case e in #(
7722 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7723 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728 IFS=$as_save_IFS
7729 case $as_dir in #(((
7730 '') as_dir=./ ;;
7731 */) ;;
7732 *) as_dir=$as_dir/ ;;
7733 esac
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 fi ;;
7745 esac
7746 fi
7747 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7748 if test -n "$ac_ct_MANIFEST_TOOL"; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7750 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7751 else
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 printf "%s\n" "no" >&6; }
7754 fi
7755
7756 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7757 MANIFEST_TOOL=":"
7758 else
7759 case $cross_compiling:$ac_tool_warned in
7760 yes:)
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763 ac_tool_warned=yes ;;
7764 esac
7765 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7766 fi
7767 else
7768 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7769 fi
7770
7771 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7773 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7774 if test ${lt_cv_path_mainfest_tool+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else case e in #(
7778 e) lt_cv_path_mainfest_tool=no
7779 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7780 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7781 cat conftest.err >&5
7782 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7783 lt_cv_path_mainfest_tool=yes
7784 fi
7785 rm -f conftest* ;;
7786 esac
7787 fi
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7789 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7790 if test yes != "$lt_cv_path_mainfest_tool"; then
7791 MANIFEST_TOOL=:
7792 fi
7793
7794
7795
7796
7797
7798
7799 case $host_os in
7800 rhapsody* | darwin*)
7801 if test -n "$ac_tool_prefix"; then
7802 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 printf %s "checking for $ac_word... " >&6; }
7806 if test ${ac_cv_prog_DSYMUTIL+y}
7807 then :
7808 printf %s "(cached) " >&6
7809 else case e in #(
7810 e) if test -n "$DSYMUTIL"; then
7811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 case $as_dir in #(((
7818 '') as_dir=./ ;;
7819 */) ;;
7820 *) as_dir=$as_dir/ ;;
7821 esac
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi ;;
7833 esac
7834 fi
7835 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7836 if test -n "$DSYMUTIL"; then
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7838 printf "%s\n" "$DSYMUTIL" >&6; }
7839 else
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 printf "%s\n" "no" >&6; }
7842 fi
7843
7844
7845 fi
7846 if test -z "$ac_cv_prog_DSYMUTIL"; then
7847 ac_ct_DSYMUTIL=$DSYMUTIL
7848 # Extract the first word of "dsymutil", so it can be a program name with args.
7849 set dummy dsymutil; ac_word=$2
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 printf %s "checking for $ac_word... " >&6; }
7852 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else case e in #(
7856 e) if test -n "$ac_ct_DSYMUTIL"; then
7857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 case $as_dir in #(((
7864 '') as_dir=./ ;;
7865 */) ;;
7866 *) as_dir=$as_dir/ ;;
7867 esac
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi ;;
7879 esac
7880 fi
7881 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7882 if test -n "$ac_ct_DSYMUTIL"; then
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7884 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7885 else
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 printf "%s\n" "no" >&6; }
7888 fi
7889
7890 if test "x$ac_ct_DSYMUTIL" = x; then
7891 DSYMUTIL=":"
7892 else
7893 case $cross_compiling:$ac_tool_warned in
7894 yes:)
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7898 esac
7899 DSYMUTIL=$ac_ct_DSYMUTIL
7900 fi
7901 else
7902 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7903 fi
7904
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_NMEDIT+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else case e in #(
7914 e) if test -n "$NMEDIT"; then
7915 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 case $as_dir in #(((
7922 '') as_dir=./ ;;
7923 */) ;;
7924 *) as_dir=$as_dir/ ;;
7925 esac
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi ;;
7937 esac
7938 fi
7939 NMEDIT=$ac_cv_prog_NMEDIT
7940 if test -n "$NMEDIT"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7942 printf "%s\n" "$NMEDIT" >&6; }
7943 else
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_NMEDIT"; then
7951 ac_ct_NMEDIT=$NMEDIT
7952 # Extract the first word of "nmedit", so it can be a program name with args.
7953 set dummy nmedit; ac_word=$2
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 printf %s "checking for $ac_word... " >&6; }
7956 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else case e in #(
7960 e) if test -n "$ac_ct_NMEDIT"; then
7961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 case $as_dir in #(((
7968 '') as_dir=./ ;;
7969 */) ;;
7970 *) as_dir=$as_dir/ ;;
7971 esac
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978 done
7979 done
7980 IFS=$as_save_IFS
7981
7982 fi ;;
7983 esac
7984 fi
7985 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7986 if test -n "$ac_ct_NMEDIT"; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7988 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7989 else
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 printf "%s\n" "no" >&6; }
7992 fi
7993
7994 if test "x$ac_ct_NMEDIT" = x; then
7995 NMEDIT=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 NMEDIT=$ac_ct_NMEDIT
8004 fi
8005 else
8006 NMEDIT="$ac_cv_prog_NMEDIT"
8007 fi
8008
8009 if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8011 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 printf %s "checking for $ac_word... " >&6; }
8014 if test ${ac_cv_prog_LIPO+y}
8015 then :
8016 printf %s "(cached) " >&6
8017 else case e in #(
8018 e) if test -n "$LIPO"; then
8019 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 case $as_dir in #(((
8026 '') as_dir=./ ;;
8027 */) ;;
8028 *) as_dir=$as_dir/ ;;
8029 esac
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi ;;
8041 esac
8042 fi
8043 LIPO=$ac_cv_prog_LIPO
8044 if test -n "$LIPO"; then
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8046 printf "%s\n" "$LIPO" >&6; }
8047 else
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 printf "%s\n" "no" >&6; }
8050 fi
8051
8052
8053 fi
8054 if test -z "$ac_cv_prog_LIPO"; then
8055 ac_ct_LIPO=$LIPO
8056 # Extract the first word of "lipo", so it can be a program name with args.
8057 set dummy lipo; ac_word=$2
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 printf %s "checking for $ac_word... " >&6; }
8060 if test ${ac_cv_prog_ac_ct_LIPO+y}
8061 then :
8062 printf %s "(cached) " >&6
8063 else case e in #(
8064 e) if test -n "$ac_ct_LIPO"; then
8065 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 case $as_dir in #(((
8072 '') as_dir=./ ;;
8073 */) ;;
8074 *) as_dir=$as_dir/ ;;
8075 esac
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8078 ac_cv_prog_ac_ct_LIPO="lipo"
8079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8080 break 2
8081 fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8086 fi ;;
8087 esac
8088 fi
8089 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8090 if test -n "$ac_ct_LIPO"; then
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8092 printf "%s\n" "$ac_ct_LIPO" >&6; }
8093 else
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 printf "%s\n" "no" >&6; }
8096 fi
8097
8098 if test "x$ac_ct_LIPO" = x; then
8099 LIPO=":"
8100 else
8101 case $cross_compiling:$ac_tool_warned in
8102 yes:)
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105 ac_tool_warned=yes ;;
8106 esac
8107 LIPO=$ac_ct_LIPO
8108 fi
8109 else
8110 LIPO="$ac_cv_prog_LIPO"
8111 fi
8112
8113 if test -n "$ac_tool_prefix"; then
8114 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8115 set dummy ${ac_tool_prefix}otool; ac_word=$2
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 printf %s "checking for $ac_word... " >&6; }
8118 if test ${ac_cv_prog_OTOOL+y}
8119 then :
8120 printf %s "(cached) " >&6
8121 else case e in #(
8122 e) if test -n "$OTOOL"; then
8123 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 case $as_dir in #(((
8130 '') as_dir=./ ;;
8131 */) ;;
8132 *) as_dir=$as_dir/ ;;
8133 esac
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi ;;
8145 esac
8146 fi
8147 OTOOL=$ac_cv_prog_OTOOL
8148 if test -n "$OTOOL"; then
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8150 printf "%s\n" "$OTOOL" >&6; }
8151 else
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 printf "%s\n" "no" >&6; }
8154 fi
8155
8156
8157 fi
8158 if test -z "$ac_cv_prog_OTOOL"; then
8159 ac_ct_OTOOL=$OTOOL
8160 # Extract the first word of "otool", so it can be a program name with args.
8161 set dummy otool; ac_word=$2
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 printf %s "checking for $ac_word... " >&6; }
8164 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8165 then :
8166 printf %s "(cached) " >&6
8167 else case e in #(
8168 e) if test -n "$ac_ct_OTOOL"; then
8169 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 case $as_dir in #(((
8176 '') as_dir=./ ;;
8177 */) ;;
8178 *) as_dir=$as_dir/ ;;
8179 esac
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_OTOOL="otool"
8183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi ;;
8191 esac
8192 fi
8193 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8194 if test -n "$ac_ct_OTOOL"; then
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8196 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8197 else
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 printf "%s\n" "no" >&6; }
8200 fi
8201
8202 if test "x$ac_ct_OTOOL" = x; then
8203 OTOOL=":"
8204 else
8205 case $cross_compiling:$ac_tool_warned in
8206 yes:)
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8209 ac_tool_warned=yes ;;
8210 esac
8211 OTOOL=$ac_ct_OTOOL
8212 fi
8213 else
8214 OTOOL="$ac_cv_prog_OTOOL"
8215 fi
8216
8217 if test -n "$ac_tool_prefix"; then
8218 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 printf %s "checking for $ac_word... " >&6; }
8222 if test ${ac_cv_prog_OTOOL64+y}
8223 then :
8224 printf %s "(cached) " >&6
8225 else case e in #(
8226 e) if test -n "$OTOOL64"; then
8227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232 IFS=$as_save_IFS
8233 case $as_dir in #(((
8234 '') as_dir=./ ;;
8235 */) ;;
8236 *) as_dir=$as_dir/ ;;
8237 esac
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8240 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi ;;
8249 esac
8250 fi
8251 OTOOL64=$ac_cv_prog_OTOOL64
8252 if test -n "$OTOOL64"; then
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8254 printf "%s\n" "$OTOOL64" >&6; }
8255 else
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 printf "%s\n" "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_OTOOL64"; then
8263 ac_ct_OTOOL64=$OTOOL64
8264 # Extract the first word of "otool64", so it can be a program name with args.
8265 set dummy otool64; ac_word=$2
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 printf %s "checking for $ac_word... " >&6; }
8268 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8269 then :
8270 printf %s "(cached) " >&6
8271 else case e in #(
8272 e) if test -n "$ac_ct_OTOOL64"; then
8273 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 case $as_dir in #(((
8280 '') as_dir=./ ;;
8281 */) ;;
8282 *) as_dir=$as_dir/ ;;
8283 esac
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_ac_ct_OTOOL64="otool64"
8287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi ;;
8295 esac
8296 fi
8297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8298 if test -n "$ac_ct_OTOOL64"; then
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8300 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8301 else
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 printf "%s\n" "no" >&6; }
8304 fi
8305
8306 if test "x$ac_ct_OTOOL64" = x; then
8307 OTOOL64=":"
8308 else
8309 case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8312 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315 OTOOL64=$ac_ct_OTOOL64
8316 fi
8317 else
8318 OTOOL64="$ac_cv_prog_OTOOL64"
8319 fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8348 printf %s "checking for -single_module linker flag... " >&6; }
8349 if test ${lt_cv_apple_cc_single_mod+y}
8350 then :
8351 printf %s "(cached) " >&6
8352 else case e in #(
8353 e) lt_cv_apple_cc_single_mod=no
8354 if test -z "$LT_MULTI_MODULE"; then
8355 # By default we will add the -single_module flag. You can override
8356 # by either setting the environment variable LT_MULTI_MODULE
8357 # non-empty at configure time, or by adding -multi_module to the
8358 # link flags.
8359 rm -rf libconftest.dylib*
8360 echo "int foo(void){return 1;}" > conftest.c
8361 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8362 -dynamiclib -Wl,-single_module conftest.c" >&5
8363 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8364 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8365 _lt_result=$?
8366 # If there is a non-empty error log, and "single_module"
8367 # appears in it, assume the flag caused a linker warning
8368 if test -s conftest.err && $GREP single_module conftest.err; then
8369 cat conftest.err >&5
8370 # Otherwise, if the output was created with a 0 exit code from
8371 # the compiler, it worked.
8372 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8373 lt_cv_apple_cc_single_mod=yes
8374 else
8375 cat conftest.err >&5
8376 fi
8377 rm -rf libconftest.dylib*
8378 rm -f conftest.*
8379 fi ;;
8380 esac
8381 fi
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8383 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8384
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8386 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8387 if test ${lt_cv_ld_exported_symbols_list+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else case e in #(
8391 e) lt_cv_ld_exported_symbols_list=no
8392 save_LDFLAGS=$LDFLAGS
8393 echo "_main" > conftest.sym
8394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397
8398 int
8399 main (void)
8400 {
8401
8402 ;
8403 return 0;
8404 }
8405 _ACEOF
8406 if ac_fn_c_try_link "$LINENO"
8407 then :
8408 lt_cv_ld_exported_symbols_list=yes
8409 else case e in #(
8410 e) lt_cv_ld_exported_symbols_list=no ;;
8411 esac
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LDFLAGS=$save_LDFLAGS
8416 ;;
8417 esac
8418 fi
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8420 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8421
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8423 printf %s "checking for -force_load linker flag... " >&6; }
8424 if test ${lt_cv_ld_force_load+y}
8425 then :
8426 printf %s "(cached) " >&6
8427 else case e in #(
8428 e) lt_cv_ld_force_load=no
8429 cat > conftest.c << _LT_EOF
8430 int forced_loaded() { return 2;}
8431 _LT_EOF
8432 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8433 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8434 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8435 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8436 echo "$RANLIB libconftest.a" >&5
8437 $RANLIB libconftest.a 2>&5
8438 cat > conftest.c << _LT_EOF
8439 int main() { return 0;}
8440 _LT_EOF
8441 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8442 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8443 _lt_result=$?
8444 if test -s conftest.err && $GREP force_load conftest.err; then
8445 cat conftest.err >&5
8446 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8447 lt_cv_ld_force_load=yes
8448 else
8449 cat conftest.err >&5
8450 fi
8451 rm -f conftest.err libconftest.a conftest conftest.c
8452 rm -rf conftest.dSYM
8453 ;;
8454 esac
8455 fi
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8457 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8458 case $host_os in
8459 rhapsody* | darwin1.[012])
8460 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8461 darwin1.*)
8462 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8463 darwin*)
8464 case $MACOSX_DEPLOYMENT_TARGET,$host in
8465 10.[012],*|,*powerpc*-darwin[5-8]*)
8466 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8467 *)
8468 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8469 esac
8470 ;;
8471 esac
8472 if test yes = "$lt_cv_apple_cc_single_mod"; then
8473 _lt_dar_single_mod='$single_module'
8474 fi
8475 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8476 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8477 else
8478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8479 fi
8480 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8481 _lt_dsymutil='~$DSYMUTIL $lib || :'
8482 else
8483 _lt_dsymutil=
8484 fi
8485 ;;
8486 esac
8487
8488 # func_munge_path_list VARIABLE PATH
8489 # -----------------------------------
8490 # VARIABLE is name of variable containing _space_ separated list of
8491 # directories to be munged by the contents of PATH, which is string
8492 # having a format:
8493 # "DIR[:DIR]:"
8494 # string "DIR[ DIR]" will be prepended to VARIABLE
8495 # ":DIR[:DIR]"
8496 # string "DIR[ DIR]" will be appended to VARIABLE
8497 # "DIRP[:DIRP]::[DIRA:]DIRA"
8498 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8499 # "DIRA[ DIRA]" will be appended to VARIABLE
8500 # "DIR[:DIR]"
8501 # VARIABLE will be replaced by "DIR[ DIR]"
8502 func_munge_path_list ()
8503 {
8504 case x$2 in
8505 x)
8506 ;;
8507 *:)
8508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8509 ;;
8510 x:*)
8511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8512 ;;
8513 *::*)
8514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8516 ;;
8517 *)
8518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8519 ;;
8520 esac
8521 }
8522
8523 ac_header= ac_cache=
8524 for ac_item in $ac_header_c_list
8525 do
8526 if test $ac_cache; then
8527 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8528 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8529 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8530 fi
8531 ac_header= ac_cache=
8532 elif test $ac_header; then
8533 ac_cache=$ac_item
8534 else
8535 ac_header=$ac_item
8536 fi
8537 done
8538
8539
8540
8541
8542
8543
8544
8545
8546 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8547 then :
8548
8549 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8550
8551 fi
8552 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8553 "
8554 if test "x$ac_cv_header_dlfcn_h" = xyes
8555 then :
8556 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8557
8558 fi
8559
8560
8561
8562
8563
8564 # Set options
8565 # Check whether --enable-static was given.
8566 if test ${enable_static+y}
8567 then :
8568 enableval=$enable_static; p=${PACKAGE-default}
8569 case $enableval in
8570 yes) enable_static=yes ;;
8571 no) enable_static=no ;;
8572 *)
8573 enable_static=no
8574 # Look at the argument we got. We use all the common list separators.
8575 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8576 for pkg in $enableval; do
8577 IFS=$lt_save_ifs
8578 if test "X$pkg" = "X$p"; then
8579 enable_static=yes
8580 fi
8581 done
8582 IFS=$lt_save_ifs
8583 ;;
8584 esac
8585 else case e in #(
8586 e) enable_static=no ;;
8587 esac
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 enable_dlopen=no
8600
8601
8602 enable_win32_dll=no
8603
8604
8605 # Check whether --enable-shared was given.
8606 if test ${enable_shared+y}
8607 then :
8608 enableval=$enable_shared; p=${PACKAGE-default}
8609 case $enableval in
8610 yes) enable_shared=yes ;;
8611 no) enable_shared=no ;;
8612 *)
8613 enable_shared=no
8614 # Look at the argument we got. We use all the common list separators.
8615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8616 for pkg in $enableval; do
8617 IFS=$lt_save_ifs
8618 if test "X$pkg" = "X$p"; then
8619 enable_shared=yes
8620 fi
8621 done
8622 IFS=$lt_save_ifs
8623 ;;
8624 esac
8625 else case e in #(
8626 e) enable_shared=yes ;;
8627 esac
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 # Check whether --with-pic was given.
8641 if test ${with_pic+y}
8642 then :
8643 withval=$with_pic; lt_p=${PACKAGE-default}
8644 case $withval in
8645 yes|no) pic_mode=$withval ;;
8646 *)
8647 pic_mode=default
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8650 for lt_pkg in $withval; do
8651 IFS=$lt_save_ifs
8652 if test "X$lt_pkg" = "X$lt_p"; then
8653 pic_mode=yes
8654 fi
8655 done
8656 IFS=$lt_save_ifs
8657 ;;
8658 esac
8659 else case e in #(
8660 e) pic_mode=default ;;
8661 esac
8662 fi
8663
8664
8665
8666
8667
8668
8669
8670
8671 # Check whether --enable-fast-install was given.
8672 if test ${enable_fast_install+y}
8673 then :
8674 enableval=$enable_fast_install; p=${PACKAGE-default}
8675 case $enableval in
8676 yes) enable_fast_install=yes ;;
8677 no) enable_fast_install=no ;;
8678 *)
8679 enable_fast_install=no
8680 # Look at the argument we got. We use all the common list separators.
8681 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8682 for pkg in $enableval; do
8683 IFS=$lt_save_ifs
8684 if test "X$pkg" = "X$p"; then
8685 enable_fast_install=yes
8686 fi
8687 done
8688 IFS=$lt_save_ifs
8689 ;;
8690 esac
8691 else case e in #(
8692 e) enable_fast_install=yes ;;
8693 esac
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703 shared_archive_member_spec=
8704 case $host,$enable_shared in
8705 power*-*-aix[5-9]*,yes)
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8707 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8708
8709 # Check whether --with-aix-soname was given.
8710 if test ${with_aix_soname+y}
8711 then :
8712 withval=$with_aix_soname; case $withval in
8713 aix|svr4|both)
8714 ;;
8715 *)
8716 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8717 ;;
8718 esac
8719 lt_cv_with_aix_soname=$with_aix_soname
8720 else case e in #(
8721 e) if test ${lt_cv_with_aix_soname+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else case e in #(
8725 e) lt_cv_with_aix_soname=aix ;;
8726 esac
8727 fi
8728
8729 with_aix_soname=$lt_cv_with_aix_soname ;;
8730 esac
8731 fi
8732
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8734 printf "%s\n" "$with_aix_soname" >&6; }
8735 if test aix != "$with_aix_soname"; then
8736 # For the AIX way of multilib, we name the shared archive member
8737 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8738 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8739 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8740 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8741 if test 64 = "${OBJECT_MODE-32}"; then
8742 shared_archive_member_spec=shr_64
8743 else
8744 shared_archive_member_spec=shr
8745 fi
8746 fi
8747 ;;
8748 *)
8749 with_aix_soname=aix
8750 ;;
8751 esac
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762 # This can be used to rebuild libtool when needed
8763 LIBTOOL_DEPS=$ltmain
8764
8765 # Always use our own libtool.
8766 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 test -z "$LN_S" && LN_S="ln -s"
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812 if test -n "${ZSH_VERSION+set}"; then
8813 setopt NO_GLOB_SUBST
8814 fi
8815
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8817 printf %s "checking for objdir... " >&6; }
8818 if test ${lt_cv_objdir+y}
8819 then :
8820 printf %s "(cached) " >&6
8821 else case e in #(
8822 e) rm -f .libs 2>/dev/null
8823 mkdir .libs 2>/dev/null
8824 if test -d .libs; then
8825 lt_cv_objdir=.libs
8826 else
8827 # MS-DOS does not allow filenames that begin with a dot.
8828 lt_cv_objdir=_libs
8829 fi
8830 rmdir .libs 2>/dev/null ;;
8831 esac
8832 fi
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8834 printf "%s\n" "$lt_cv_objdir" >&6; }
8835 objdir=$lt_cv_objdir
8836
8837
8838
8839
8840
8841 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8842
8843
8844
8845
8846 case $host_os in
8847 aix3*)
8848 # AIX sometimes has problems with the GCC collect2 program. For some
8849 # reason, if we set the COLLECT_NAMES environment variable, the problems
8850 # vanish in a puff of smoke.
8851 if test set != "${COLLECT_NAMES+set}"; then
8852 COLLECT_NAMES=
8853 export COLLECT_NAMES
8854 fi
8855 ;;
8856 esac
8857
8858 # Global variables:
8859 ofile=libtool
8860 can_build_shared=yes
8861
8862 # All known linkers require a '.a' archive for static linking (except MSVC and
8863 # ICC, which need '.lib').
8864 libext=a
8865
8866 with_gnu_ld=$lt_cv_prog_gnu_ld
8867
8868 old_CC=$CC
8869 old_CFLAGS=$CFLAGS
8870
8871 # Set sane defaults for various variables
8872 test -z "$CC" && CC=cc
8873 test -z "$LTCC" && LTCC=$CC
8874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8875 test -z "$LD" && LD=ld
8876 test -z "$ac_objext" && ac_objext=o
8877
8878 func_cc_basename $compiler
8879 cc_basename=$func_cc_basename_result
8880
8881
8882 # Only perform the check for file, if the check method requires it
8883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8884 case $deplibs_check_method in
8885 file_magic*)
8886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8888 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8889 if test ${lt_cv_path_MAGIC_CMD+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else case e in #(
8893 e) case $MAGIC_CMD in
8894 [\\/*] | ?:[\\/]*)
8895 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8896 ;;
8897 *)
8898 lt_save_MAGIC_CMD=$MAGIC_CMD
8899 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901 for ac_dir in $ac_dummy; do
8902 IFS=$lt_save_ifs
8903 test -z "$ac_dir" && ac_dir=.
8904 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8905 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8906 if test -n "$file_magic_test_file"; then
8907 case $deplibs_check_method in
8908 "file_magic "*)
8909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912 $EGREP "$file_magic_regex" > /dev/null; then
8913 :
8914 else
8915 cat <<_LT_EOF 1>&2
8916
8917 *** Warning: the command libtool uses to detect shared libraries,
8918 *** $file_magic_cmd, produces output that libtool cannot recognize.
8919 *** The result is that libtool may fail to recognize shared libraries
8920 *** as such. This will affect the creation of libtool libraries that
8921 *** depend on shared libraries, but programs linked with such libtool
8922 *** libraries will work regardless of this problem. Nevertheless, you
8923 *** may want to report the problem to your system manager and/or to
8924 *** [email protected]
8925
8926 _LT_EOF
8927 fi ;;
8928 esac
8929 fi
8930 break
8931 fi
8932 done
8933 IFS=$lt_save_ifs
8934 MAGIC_CMD=$lt_save_MAGIC_CMD
8935 ;;
8936 esac ;;
8937 esac
8938 fi
8939
8940 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8941 if test -n "$MAGIC_CMD"; then
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8943 printf "%s\n" "$MAGIC_CMD" >&6; }
8944 else
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 printf "%s\n" "no" >&6; }
8947 fi
8948
8949
8950
8951
8952
8953 if test -z "$lt_cv_path_MAGIC_CMD"; then
8954 if test -n "$ac_tool_prefix"; then
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8956 printf %s "checking for file... " >&6; }
8957 if test ${lt_cv_path_MAGIC_CMD+y}
8958 then :
8959 printf %s "(cached) " >&6
8960 else case e in #(
8961 e) case $MAGIC_CMD in
8962 [\\/*] | ?:[\\/]*)
8963 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8964 ;;
8965 *)
8966 lt_save_MAGIC_CMD=$MAGIC_CMD
8967 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8969 for ac_dir in $ac_dummy; do
8970 IFS=$lt_save_ifs
8971 test -z "$ac_dir" && ac_dir=.
8972 if test -f "$ac_dir/file"; then
8973 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8974 if test -n "$file_magic_test_file"; then
8975 case $deplibs_check_method in
8976 "file_magic "*)
8977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8978 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8980 $EGREP "$file_magic_regex" > /dev/null; then
8981 :
8982 else
8983 cat <<_LT_EOF 1>&2
8984
8985 *** Warning: the command libtool uses to detect shared libraries,
8986 *** $file_magic_cmd, produces output that libtool cannot recognize.
8987 *** The result is that libtool may fail to recognize shared libraries
8988 *** as such. This will affect the creation of libtool libraries that
8989 *** depend on shared libraries, but programs linked with such libtool
8990 *** libraries will work regardless of this problem. Nevertheless, you
8991 *** may want to report the problem to your system manager and/or to
8992 *** [email protected]
8993
8994 _LT_EOF
8995 fi ;;
8996 esac
8997 fi
8998 break
8999 fi
9000 done
9001 IFS=$lt_save_ifs
9002 MAGIC_CMD=$lt_save_MAGIC_CMD
9003 ;;
9004 esac ;;
9005 esac
9006 fi
9007
9008 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9009 if test -n "$MAGIC_CMD"; then
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9011 printf "%s\n" "$MAGIC_CMD" >&6; }
9012 else
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 printf "%s\n" "no" >&6; }
9015 fi
9016
9017
9018 else
9019 MAGIC_CMD=:
9020 fi
9021 fi
9022
9023 fi
9024 ;;
9025 esac
9026
9027 # Use C for the default configuration in the libtool script
9028
9029 lt_save_CC=$CC
9030 ac_ext=c
9031 ac_cpp='$CPP $CPPFLAGS'
9032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035
9036
9037 # Source file extension for C test sources.
9038 ac_ext=c
9039
9040 # Object file extension for compiled C test sources.
9041 objext=o
9042 objext=$objext
9043
9044 # Code to be used in simple compile tests
9045 lt_simple_compile_test_code="int some_variable = 0;"
9046
9047 # Code to be used in simple link tests
9048 lt_simple_link_test_code='int main(){return(0);}'
9049
9050
9051
9052
9053
9054
9055
9056 # If no C compiler was specified, use CC.
9057 LTCC=${LTCC-"$CC"}
9058
9059 # If no C compiler flags were specified, use CFLAGS.
9060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9061
9062 # Allow CC to be a program name with arguments.
9063 compiler=$CC
9064
9065 # Save the default compiler, since it gets overwritten when the other
9066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9067 compiler_DEFAULT=$CC
9068
9069 # save warnings/boilerplate of simple test code
9070 ac_outfile=conftest.$ac_objext
9071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9073 _lt_compiler_boilerplate=`cat conftest.err`
9074 $RM conftest*
9075
9076 ac_outfile=conftest.$ac_objext
9077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9079 _lt_linker_boilerplate=`cat conftest.err`
9080 $RM -r conftest*
9081
9082
9083 ## CAVEAT EMPTOR:
9084 ## There is no encapsulation within the following macros, do not change
9085 ## the running order or otherwise move them around unless you know exactly
9086 ## what you are doing...
9087 if test -n "$compiler"; then
9088
9089 lt_prog_compiler_no_builtin_flag=
9090
9091 if test yes = "$GCC"; then
9092 case $cc_basename in
9093 nvcc*)
9094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9095 *)
9096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9097 esac
9098
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9100 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9101 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9102 then :
9103 printf %s "(cached) " >&6
9104 else case e in #(
9105 e) lt_cv_prog_compiler_rtti_exceptions=no
9106 ac_outfile=conftest.$ac_objext
9107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9109 # Insert the option either (1) after the last *FLAGS variable, or
9110 # (2) before a word containing "conftest.", or (3) at the end.
9111 # Note that $ac_compile itself does not contain backslashes and begins
9112 # with a dollar sign (not a hyphen), so the echo should work correctly.
9113 # The option is referenced via a variable to avoid confusing sed.
9114 lt_compile=`echo "$ac_compile" | $SED \
9115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117 -e 's:$: $lt_compiler_flag:'`
9118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119 (eval "$lt_compile" 2>conftest.err)
9120 ac_status=$?
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 if (exit $ac_status) && test -s "$ac_outfile"; then
9124 # The compiler can only warn and ignore the option if not recognized
9125 # So say no if there are warnings other than the usual output.
9126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_rtti_exceptions=yes
9130 fi
9131 fi
9132 $RM conftest*
9133 ;;
9134 esac
9135 fi
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9137 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9138
9139 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9141 else
9142 :
9143 fi
9144
9145 fi
9146
9147
9148
9149
9150
9151
9152 lt_prog_compiler_wl=
9153 lt_prog_compiler_pic=
9154 lt_prog_compiler_static=
9155
9156
9157 if test yes = "$GCC"; then
9158 lt_prog_compiler_wl='-Wl,'
9159 lt_prog_compiler_static='-static'
9160
9161 case $host_os in
9162 aix*)
9163 # All AIX code is PIC.
9164 if test ia64 = "$host_cpu"; then
9165 # AIX 5 now supports IA64 processor
9166 lt_prog_compiler_static='-Bstatic'
9167 fi
9168 lt_prog_compiler_pic='-fPIC'
9169 ;;
9170
9171 amigaos*)
9172 case $host_cpu in
9173 powerpc)
9174 # see comment about AmigaOS4 .so support
9175 lt_prog_compiler_pic='-fPIC'
9176 ;;
9177 m68k)
9178 # FIXME: we need at least 68020 code to build shared libraries, but
9179 # adding the '-m68020' flag to GCC prevents building anything better,
9180 # like '-m68040'.
9181 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9182 ;;
9183 esac
9184 ;;
9185
9186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9187 # PIC is the default for these OSes.
9188 ;;
9189
9190 mingw* | cygwin* | pw32* | os2* | cegcc*)
9191 # This hack is so that the source file can tell whether it is being
9192 # built for inclusion in a dll (and should export symbols for example).
9193 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9194 # (--disable-auto-import) libraries
9195 lt_prog_compiler_pic='-DDLL_EXPORT'
9196 case $host_os in
9197 os2*)
9198 lt_prog_compiler_static='$wl-static'
9199 ;;
9200 esac
9201 ;;
9202
9203 darwin* | rhapsody*)
9204 # PIC is the default on this platform
9205 # Common symbols not allowed in MH_DYLIB files
9206 lt_prog_compiler_pic='-fno-common'
9207 ;;
9208
9209 haiku*)
9210 # PIC is the default for Haiku.
9211 # The "-static" flag exists, but is broken.
9212 lt_prog_compiler_static=
9213 ;;
9214
9215 hpux*)
9216 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9217 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9218 # sets the default TLS model and affects inlining.
9219 case $host_cpu in
9220 hppa*64*)
9221 # +Z the default
9222 ;;
9223 *)
9224 lt_prog_compiler_pic='-fPIC'
9225 ;;
9226 esac
9227 ;;
9228
9229 interix[3-9]*)
9230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9231 # Instead, we relocate shared libraries at runtime.
9232 ;;
9233
9234 msdosdjgpp*)
9235 # Just because we use GCC doesn't mean we suddenly get shared libraries
9236 # on systems that don't support them.
9237 lt_prog_compiler_can_build_shared=no
9238 enable_shared=no
9239 ;;
9240
9241 *nto* | *qnx*)
9242 # QNX uses GNU C++, but need to define -shared option too, otherwise
9243 # it will coredump.
9244 lt_prog_compiler_pic='-fPIC -shared'
9245 ;;
9246
9247 sysv4*MP*)
9248 if test -d /usr/nec; then
9249 lt_prog_compiler_pic=-Kconform_pic
9250 fi
9251 ;;
9252
9253 *)
9254 lt_prog_compiler_pic='-fPIC'
9255 ;;
9256 esac
9257
9258 case $cc_basename in
9259 nvcc*) # Cuda Compiler Driver 2.2
9260 lt_prog_compiler_wl='-Xlinker '
9261 if test -n "$lt_prog_compiler_pic"; then
9262 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9263 fi
9264 ;;
9265 esac
9266 else
9267 # PORTME Check for flag to pass linker flags through the system compiler.
9268 case $host_os in
9269 aix*)
9270 lt_prog_compiler_wl='-Wl,'
9271 if test ia64 = "$host_cpu"; then
9272 # AIX 5 now supports IA64 processor
9273 lt_prog_compiler_static='-Bstatic'
9274 else
9275 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9276 fi
9277 ;;
9278
9279 darwin* | rhapsody*)
9280 # PIC is the default on this platform
9281 # Common symbols not allowed in MH_DYLIB files
9282 lt_prog_compiler_pic='-fno-common'
9283 case $cc_basename in
9284 nagfor*)
9285 # NAG Fortran compiler
9286 lt_prog_compiler_wl='-Wl,-Wl,,'
9287 lt_prog_compiler_pic='-PIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290 esac
9291 ;;
9292
9293 mingw* | cygwin* | pw32* | os2* | cegcc*)
9294 # This hack is so that the source file can tell whether it is being
9295 # built for inclusion in a dll (and should export symbols for example).
9296 lt_prog_compiler_pic='-DDLL_EXPORT'
9297 case $host_os in
9298 os2*)
9299 lt_prog_compiler_static='$wl-static'
9300 ;;
9301 esac
9302 ;;
9303
9304 hpux9* | hpux10* | hpux11*)
9305 lt_prog_compiler_wl='-Wl,'
9306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9307 # not for PA HP-UX.
9308 case $host_cpu in
9309 hppa*64*|ia64*)
9310 # +Z the default
9311 ;;
9312 *)
9313 lt_prog_compiler_pic='+Z'
9314 ;;
9315 esac
9316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9317 lt_prog_compiler_static='$wl-a ${wl}archive'
9318 ;;
9319
9320 irix5* | irix6* | nonstopux*)
9321 lt_prog_compiler_wl='-Wl,'
9322 # PIC (with -KPIC) is the default.
9323 lt_prog_compiler_static='-non_shared'
9324 ;;
9325
9326 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9327 case $cc_basename in
9328 # old Intel for x86_64, which still supported -KPIC.
9329 ecc*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-static'
9333 ;;
9334 # flang / f18. f95 an alias for gfortran or flang on Debian
9335 flang* | f18* | f95*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='-fPIC'
9338 lt_prog_compiler_static='-static'
9339 ;;
9340 # icc used to be incompatible with GCC.
9341 # ICC 10 doesn't accept -KPIC any more.
9342 icc* | ifort*)
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='-fPIC'
9345 lt_prog_compiler_static='-static'
9346 ;;
9347 # Lahey Fortran 8.1.
9348 lf95*)
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='--shared'
9351 lt_prog_compiler_static='--static'
9352 ;;
9353 nagfor*)
9354 # NAG Fortran compiler
9355 lt_prog_compiler_wl='-Wl,-Wl,,'
9356 lt_prog_compiler_pic='-PIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359 tcc*)
9360 # Fabrice Bellard et al's Tiny C Compiler
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-fPIC'
9363 lt_prog_compiler_static='-static'
9364 ;;
9365 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9366 # Portland Group compilers (*not* the Pentium gcc compiler,
9367 # which looks to be a dead project)
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_pic='-fpic'
9370 lt_prog_compiler_static='-Bstatic'
9371 ;;
9372 ccc*)
9373 lt_prog_compiler_wl='-Wl,'
9374 # All Alpha code is PIC.
9375 lt_prog_compiler_static='-non_shared'
9376 ;;
9377 xl* | bgxl* | bgf* | mpixl*)
9378 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='-qpic'
9381 lt_prog_compiler_static='-qstaticlink'
9382 ;;
9383 *)
9384 case `$CC -V 2>&1 | $SED 5q` in
9385 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9386 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9387 lt_prog_compiler_pic='-KPIC'
9388 lt_prog_compiler_static='-Bstatic'
9389 lt_prog_compiler_wl=''
9390 ;;
9391 *Sun\ F* | *Sun*Fortran*)
9392 lt_prog_compiler_pic='-KPIC'
9393 lt_prog_compiler_static='-Bstatic'
9394 lt_prog_compiler_wl='-Qoption ld '
9395 ;;
9396 *Sun\ C*)
9397 # Sun C 5.9
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
9400 lt_prog_compiler_wl='-Wl,'
9401 ;;
9402 *Intel*\ [CF]*Compiler*)
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-fPIC'
9405 lt_prog_compiler_static='-static'
9406 ;;
9407 *Portland\ Group*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_pic='-fpic'
9410 lt_prog_compiler_static='-Bstatic'
9411 ;;
9412 esac
9413 ;;
9414 esac
9415 ;;
9416
9417 newsos6)
9418 lt_prog_compiler_pic='-KPIC'
9419 lt_prog_compiler_static='-Bstatic'
9420 ;;
9421
9422 *nto* | *qnx*)
9423 # QNX uses GNU C++, but need to define -shared option too, otherwise
9424 # it will coredump.
9425 lt_prog_compiler_pic='-fPIC -shared'
9426 ;;
9427
9428 osf3* | osf4* | osf5*)
9429 lt_prog_compiler_wl='-Wl,'
9430 # All OSF/1 code is PIC.
9431 lt_prog_compiler_static='-non_shared'
9432 ;;
9433
9434 rdos*)
9435 lt_prog_compiler_static='-non_shared'
9436 ;;
9437
9438 solaris*)
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9441 case $cc_basename in
9442 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9443 lt_prog_compiler_wl='-Qoption ld ';;
9444 *)
9445 lt_prog_compiler_wl='-Wl,';;
9446 esac
9447 ;;
9448
9449 sunos4*)
9450 lt_prog_compiler_wl='-Qoption ld '
9451 lt_prog_compiler_pic='-PIC'
9452 lt_prog_compiler_static='-Bstatic'
9453 ;;
9454
9455 sysv4 | sysv4.2uw2* | sysv4.3*)
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_pic='-KPIC'
9458 lt_prog_compiler_static='-Bstatic'
9459 ;;
9460
9461 sysv4*MP*)
9462 if test -d /usr/nec; then
9463 lt_prog_compiler_pic='-Kconform_pic'
9464 lt_prog_compiler_static='-Bstatic'
9465 fi
9466 ;;
9467
9468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-KPIC'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473
9474 unicos*)
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_can_build_shared=no
9477 ;;
9478
9479 uts4*)
9480 lt_prog_compiler_pic='-pic'
9481 lt_prog_compiler_static='-Bstatic'
9482 ;;
9483
9484 *)
9485 lt_prog_compiler_can_build_shared=no
9486 ;;
9487 esac
9488 fi
9489
9490 case $host_os in
9491 # For platforms that do not support PIC, -DPIC is meaningless:
9492 *djgpp*)
9493 lt_prog_compiler_pic=
9494 ;;
9495 *)
9496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9497 ;;
9498 esac
9499
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9501 printf %s "checking for $compiler option to produce PIC... " >&6; }
9502 if test ${lt_cv_prog_compiler_pic+y}
9503 then :
9504 printf %s "(cached) " >&6
9505 else case e in #(
9506 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9507 esac
9508 fi
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9510 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9511 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9512
9513 #
9514 # Check to make sure the PIC flag actually works.
9515 #
9516 if test -n "$lt_prog_compiler_pic"; then
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9518 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9519 if test ${lt_cv_prog_compiler_pic_works+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else case e in #(
9523 e) lt_cv_prog_compiler_pic_works=no
9524 ac_outfile=conftest.$ac_objext
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9527 # Insert the option either (1) after the last *FLAGS variable, or
9528 # (2) before a word containing "conftest.", or (3) at the end.
9529 # Note that $ac_compile itself does not contain backslashes and begins
9530 # with a dollar sign (not a hyphen), so the echo should work correctly.
9531 # The option is referenced via a variable to avoid confusing sed.
9532 lt_compile=`echo "$ac_compile" | $SED \
9533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9535 -e 's:$: $lt_compiler_flag:'`
9536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9537 (eval "$lt_compile" 2>conftest.err)
9538 ac_status=$?
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 if (exit $ac_status) && test -s "$ac_outfile"; then
9542 # The compiler can only warn and ignore the option if not recognized
9543 # So say no if there are warnings other than the usual output.
9544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_pic_works=yes
9548 fi
9549 fi
9550 $RM conftest*
9551 ;;
9552 esac
9553 fi
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9555 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9556
9557 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9558 case $lt_prog_compiler_pic in
9559 "" | " "*) ;;
9560 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9561 esac
9562 else
9563 lt_prog_compiler_pic=
9564 lt_prog_compiler_can_build_shared=no
9565 fi
9566
9567 fi
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579 #
9580 # Check to make sure the static flag actually works.
9581 #
9582 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9584 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9585 if test ${lt_cv_prog_compiler_static_works+y}
9586 then :
9587 printf %s "(cached) " >&6
9588 else case e in #(
9589 e) lt_cv_prog_compiler_static_works=no
9590 save_LDFLAGS=$LDFLAGS
9591 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9592 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9593 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9594 # The linker can only warn and ignore the option if not recognized
9595 # So say no if there are warnings
9596 if test -s conftest.err; then
9597 # Append any errors to the config.log.
9598 cat conftest.err 1>&5
9599 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9601 if diff conftest.exp conftest.er2 >/dev/null; then
9602 lt_cv_prog_compiler_static_works=yes
9603 fi
9604 else
9605 lt_cv_prog_compiler_static_works=yes
9606 fi
9607 fi
9608 $RM -r conftest*
9609 LDFLAGS=$save_LDFLAGS
9610 ;;
9611 esac
9612 fi
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9614 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9615
9616 if test yes = "$lt_cv_prog_compiler_static_works"; then
9617 :
9618 else
9619 lt_prog_compiler_static=
9620 fi
9621
9622
9623
9624
9625
9626
9627
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9629 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9630 if test ${lt_cv_prog_compiler_c_o+y}
9631 then :
9632 printf %s "(cached) " >&6
9633 else case e in #(
9634 e) lt_cv_prog_compiler_c_o=no
9635 $RM -r conftest 2>/dev/null
9636 mkdir conftest
9637 cd conftest
9638 mkdir out
9639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640
9641 lt_compiler_flag="-o out/conftest2.$ac_objext"
9642 # Insert the option either (1) after the last *FLAGS variable, or
9643 # (2) before a word containing "conftest.", or (3) at the end.
9644 # Note that $ac_compile itself does not contain backslashes and begins
9645 # with a dollar sign (not a hyphen), so the echo should work correctly.
9646 lt_compile=`echo "$ac_compile" | $SED \
9647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649 -e 's:$: $lt_compiler_flag:'`
9650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651 (eval "$lt_compile" 2>out/conftest.err)
9652 ac_status=$?
9653 cat out/conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9656 then
9657 # The compiler can only warn and ignore the option if not recognized
9658 # So say no if there are warnings
9659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_c_o=yes
9663 fi
9664 fi
9665 chmod u+w . 2>&5
9666 $RM conftest*
9667 # SGI C++ compiler will create directory out/ii_files/ for
9668 # template instantiation
9669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9670 $RM out/* && rmdir out
9671 cd ..
9672 $RM -r conftest
9673 $RM conftest*
9674 ;;
9675 esac
9676 fi
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9679
9680
9681
9682
9683
9684
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9686 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9687 if test ${lt_cv_prog_compiler_c_o+y}
9688 then :
9689 printf %s "(cached) " >&6
9690 else case e in #(
9691 e) lt_cv_prog_compiler_c_o=no
9692 $RM -r conftest 2>/dev/null
9693 mkdir conftest
9694 cd conftest
9695 mkdir out
9696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9697
9698 lt_compiler_flag="-o out/conftest2.$ac_objext"
9699 # Insert the option either (1) after the last *FLAGS variable, or
9700 # (2) before a word containing "conftest.", or (3) at the end.
9701 # Note that $ac_compile itself does not contain backslashes and begins
9702 # with a dollar sign (not a hyphen), so the echo should work correctly.
9703 lt_compile=`echo "$ac_compile" | $SED \
9704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9706 -e 's:$: $lt_compiler_flag:'`
9707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9708 (eval "$lt_compile" 2>out/conftest.err)
9709 ac_status=$?
9710 cat out/conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9713 then
9714 # The compiler can only warn and ignore the option if not recognized
9715 # So say no if there are warnings
9716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler_c_o=yes
9720 fi
9721 fi
9722 chmod u+w . 2>&5
9723 $RM conftest*
9724 # SGI C++ compiler will create directory out/ii_files/ for
9725 # template instantiation
9726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9727 $RM out/* && rmdir out
9728 cd ..
9729 $RM -r conftest
9730 $RM conftest*
9731 ;;
9732 esac
9733 fi
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9736
9737
9738
9739
9740 hard_links=nottested
9741 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9742 # do not overwrite the value of need_locks provided by the user
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9744 printf %s "checking if we can lock with hard links... " >&6; }
9745 hard_links=yes
9746 $RM conftest*
9747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9748 touch conftest.a
9749 ln conftest.a conftest.b 2>&5 || hard_links=no
9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9752 printf "%s\n" "$hard_links" >&6; }
9753 if test no = "$hard_links"; then
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9755 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9756 need_locks=warn
9757 fi
9758 else
9759 need_locks=no
9760 fi
9761
9762
9763
9764
9765
9766
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9768 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9769
9770 runpath_var=
9771 allow_undefined_flag=
9772 always_export_symbols=no
9773 archive_cmds=
9774 archive_expsym_cmds=
9775 compiler_needs_object=no
9776 enable_shared_with_static_runtimes=no
9777 export_dynamic_flag_spec=
9778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9779 hardcode_automatic=no
9780 hardcode_direct=no
9781 hardcode_direct_absolute=no
9782 hardcode_libdir_flag_spec=
9783 hardcode_libdir_separator=
9784 hardcode_minus_L=no
9785 hardcode_shlibpath_var=unsupported
9786 inherit_rpath=no
9787 link_all_deplibs=unknown
9788 module_cmds=
9789 module_expsym_cmds=
9790 old_archive_from_new_cmds=
9791 old_archive_from_expsyms_cmds=
9792 thread_safe_flag_spec=
9793 whole_archive_flag_spec=
9794 # include_expsyms should be a list of space-separated symbols to be *always*
9795 # included in the symbol list
9796 include_expsyms=
9797 # exclude_expsyms can be an extended regexp of symbols to exclude
9798 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9799 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9800 # as well as any symbol that contains 'd'.
9801 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9803 # platforms (ab)use it in PIC code, but their linkers get confused if
9804 # the symbol is explicitly referenced. Since portable code cannot
9805 # rely on this symbol name, it's probably fine to never include it in
9806 # preloaded symbol tables.
9807 # Exclude shared library initialization/finalization symbols.
9808 extract_expsyms_cmds=
9809
9810 case $host_os in
9811 cygwin* | mingw* | pw32* | cegcc*)
9812 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++ or Intel C++ Compiler.
9815 if test yes != "$GCC"; then
9816 with_gnu_ld=no
9817 fi
9818 ;;
9819 interix*)
9820 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9821 with_gnu_ld=yes
9822 ;;
9823 openbsd* | bitrig*)
9824 with_gnu_ld=no
9825 ;;
9826 linux* | k*bsd*-gnu | gnu*)
9827 link_all_deplibs=no
9828 ;;
9829 esac
9830
9831 ld_shlibs=yes
9832
9833 # On some targets, GNU ld is compatible enough with the native linker
9834 # that we're better off using the native interface for both.
9835 lt_use_gnu_ld_interface=no
9836 if test yes = "$with_gnu_ld"; then
9837 case $host_os in
9838 aix*)
9839 # The AIX port of GNU ld has always aspired to compatibility
9840 # with the native linker. However, as the warning in the GNU ld
9841 # block says, versions before 2.19.5* couldn't really create working
9842 # shared libraries, regardless of the interface used.
9843 case `$LD -v 2>&1` in
9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9847 *)
9848 lt_use_gnu_ld_interface=yes
9849 ;;
9850 esac
9851 ;;
9852 *)
9853 lt_use_gnu_ld_interface=yes
9854 ;;
9855 esac
9856 fi
9857
9858 if test yes = "$lt_use_gnu_ld_interface"; then
9859 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 wlarc='$wl'
9861
9862 # Set some defaults for GNU ld with shared library support. These
9863 # are reset later if shared libraries are not supported. Putting them
9864 # here allows them to be overridden if necessary.
9865 runpath_var=LD_RUN_PATH
9866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9867 export_dynamic_flag_spec='$wl--export-dynamic'
9868 # ancient GNU ld didn't support --whole-archive et. al.
9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9870 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9871 else
9872 whole_archive_flag_spec=
9873 fi
9874 supports_anon_versioning=no
9875 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9876 *GNU\ gold*) supports_anon_versioning=yes ;;
9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9880 *\ 2.11.*) ;; # other 2.11 versions
9881 *) supports_anon_versioning=yes ;;
9882 esac
9883
9884 # See if GNU ld supports shared libraries.
9885 case $host_os in
9886 aix[3-9]*)
9887 # On AIX/PPC, the GNU linker is very broken
9888 if test ia64 != "$host_cpu"; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9891
9892 *** Warning: the GNU linker, at least up to release 2.19, is reported
9893 *** to be unable to reliably create shared libraries on AIX.
9894 *** Therefore, libtool is disabling shared libraries support. If you
9895 *** really care for shared libraries, you may want to install binutils
9896 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9897 *** You will then need to restart the configuration process.
9898
9899 _LT_EOF
9900 fi
9901 ;;
9902
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908 archive_expsym_cmds=''
9909 ;;
9910 m68k)
9911 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)'
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9914 ;;
9915 esac
9916 ;;
9917
9918 beos*)
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 allow_undefined_flag=unsupported
9921 # Joseph Beckenbach <[email protected]> says some releases of gcc
9922 # support --undefined. This deserves some investigation. FIXME
9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
9928
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9931 # as there is no search path for DLLs.
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 export_dynamic_flag_spec='$wl--export-all-symbols'
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=no
9936 enable_shared_with_static_runtimes=yes
9937 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'
9938 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9939
9940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9942 # If the export-symbols file already is a .def file, use it as
9943 # is; otherwise, prepend EXPORTS...
9944 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9945 cp $export_symbols $output_objdir/$soname.def;
9946 else
9947 echo EXPORTS > $output_objdir/$soname.def;
9948 cat $export_symbols >> $output_objdir/$soname.def;
9949 fi~
9950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9955
9956 haiku*)
9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9958 link_all_deplibs=yes
9959 ;;
9960
9961 os2*)
9962 hardcode_libdir_flag_spec='-L$libdir'
9963 hardcode_minus_L=yes
9964 allow_undefined_flag=unsupported
9965 shrext_cmds=.dll
9966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9969 $ECHO EXPORTS >> $output_objdir/$libname.def~
9970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9972 emximp -o $lib $output_objdir/$libname.def'
9973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9976 $ECHO EXPORTS >> $output_objdir/$libname.def~
9977 prefix_cmds="$SED"~
9978 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9979 prefix_cmds="$prefix_cmds -e 1d";
9980 fi~
9981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9984 emximp -o $lib $output_objdir/$libname.def'
9985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9986 enable_shared_with_static_runtimes=yes
9987 file_list_spec='@'
9988 ;;
9989
9990 interix[3-9]*)
9991 hardcode_direct=no
9992 hardcode_shlibpath_var=no
9993 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9994 export_dynamic_flag_spec='$wl-E'
9995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9996 # Instead, shared libraries are loaded at an image base (0x10000000 by
9997 # default) and relocated if they conflict, which is a slow very memory
9998 # consuming and fragmenting process. To avoid this, we pick a random,
9999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10000 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10002 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'
10003 ;;
10004
10005 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10006 tmp_diet=no
10007 if test linux-dietlibc = "$host_os"; then
10008 case $cc_basename in
10009 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10010 esac
10011 fi
10012 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10013 && test no = "$tmp_diet"
10014 then
10015 tmp_addflag=' $pic_flag'
10016 tmp_sharedflag='-shared'
10017 case $cc_basename,$host_cpu in
10018 pgcc*) # Portland Group C compiler
10019 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'
10020 tmp_addflag=' $pic_flag'
10021 ;;
10022 pgf77* | pgf90* | pgf95* | pgfortran*)
10023 # Portland Group f77 and f90 compilers
10024 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'
10025 tmp_addflag=' $pic_flag -Mnomain' ;;
10026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10027 tmp_addflag=' -i_dynamic' ;;
10028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10029 tmp_addflag=' -i_dynamic -nofor_main' ;;
10030 ifc* | ifort*) # Intel Fortran compiler
10031 tmp_addflag=' -nofor_main' ;;
10032 lf95*) # Lahey Fortran 8.1
10033 whole_archive_flag_spec=
10034 tmp_sharedflag='--shared' ;;
10035 nagfor*) # NAGFOR 5.3
10036 tmp_sharedflag='-Wl,-shared' ;;
10037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10038 tmp_sharedflag='-qmkshrobj'
10039 tmp_addflag= ;;
10040 nvcc*) # Cuda Compiler Driver 2.2
10041 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'
10042 compiler_needs_object=yes
10043 ;;
10044 esac
10045 case `$CC -V 2>&1 | $SED 5q` in
10046 *Sun\ C*) # Sun C 5.9
10047 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'
10048 compiler_needs_object=yes
10049 tmp_sharedflag='-G' ;;
10050 *Sun\ F*) # Sun Fortran 8.3
10051 tmp_sharedflag='-G' ;;
10052 esac
10053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10054
10055 if test yes = "$supports_anon_versioning"; then
10056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10057 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10058 echo "local: *; };" >> $output_objdir/$libname.ver~
10059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10060 fi
10061
10062 case $cc_basename in
10063 tcc*)
10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10065 export_dynamic_flag_spec='-rdynamic'
10066 ;;
10067 xlf* | bgf* | bgxlf* | mpixlf*)
10068 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10069 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10071 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10072 if test yes = "$supports_anon_versioning"; then
10073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10074 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10075 echo "local: *; };" >> $output_objdir/$libname.ver~
10076 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10077 fi
10078 ;;
10079 esac
10080 else
10081 ld_shlibs=no
10082 fi
10083 ;;
10084
10085 netbsd* | netbsdelf*-gnu)
10086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10088 wlarc=
10089 else
10090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10091 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10092 fi
10093 ;;
10094
10095 solaris*)
10096 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10097 ld_shlibs=no
10098 cat <<_LT_EOF 1>&2
10099
10100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10101 *** create shared libraries on Solaris systems. Therefore, libtool
10102 *** is disabling shared libraries support. We urge you to upgrade GNU
10103 *** binutils to release 2.9.1 or newer. Another option is to modify
10104 *** your PATH or compiler configuration so that the native linker is
10105 *** used, and then restart.
10106
10107 _LT_EOF
10108 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10111 else
10112 ld_shlibs=no
10113 fi
10114 ;;
10115
10116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10117 case `$LD -v 2>&1` in
10118 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10119 ld_shlibs=no
10120 cat <<_LT_EOF 1>&2
10121
10122 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10123 *** reliably create shared libraries on SCO systems. Therefore, libtool
10124 *** is disabling shared libraries support. We urge you to upgrade GNU
10125 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10126 *** your PATH or compiler configuration so that the native linker is
10127 *** used, and then restart.
10128
10129 _LT_EOF
10130 ;;
10131 *)
10132 # For security reasons, it is highly recommended that you always
10133 # use absolute paths for naming shared libraries, and exclude the
10134 # DT_RUNPATH tag from executables and libraries. But doing so
10135 # requires that you compile everything twice, which is a pain.
10136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10140 else
10141 ld_shlibs=no
10142 fi
10143 ;;
10144 esac
10145 ;;
10146
10147 sunos4*)
10148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10149 wlarc=
10150 hardcode_direct=yes
10151 hardcode_shlibpath_var=no
10152 ;;
10153
10154 *)
10155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10158 else
10159 ld_shlibs=no
10160 fi
10161 ;;
10162 esac
10163
10164 if test no = "$ld_shlibs"; then
10165 runpath_var=
10166 hardcode_libdir_flag_spec=
10167 export_dynamic_flag_spec=
10168 whole_archive_flag_spec=
10169 fi
10170 else
10171 # PORTME fill in a description of your system's linker (not GNU ld)
10172 case $host_os in
10173 aix3*)
10174 allow_undefined_flag=unsupported
10175 always_export_symbols=yes
10176 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'
10177 # Note: this linker hardcodes the directories in LIBPATH if there
10178 # are no directories specified by -L.
10179 hardcode_minus_L=yes
10180 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10181 # Neither direct hardcoding nor static linking is supported with a
10182 # broken collect2.
10183 hardcode_direct=unsupported
10184 fi
10185 ;;
10186
10187 aix[4-9]*)
10188 if test ia64 = "$host_cpu"; then
10189 # On IA64, the linker does run time linking by default, so we don't
10190 # have to do anything special.
10191 aix_use_runtimelinking=no
10192 exp_sym_flag='-Bexport'
10193 no_entry_flag=
10194 else
10195 # If we're using GNU nm, then we don't want the "-C" option.
10196 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10197 # Without the "-l" option, or with the "-B" option, AIX nm treats
10198 # weak defined symbols like other global defined symbols, whereas
10199 # GNU nm marks them as "W".
10200 # While the 'weak' keyword is ignored in the Export File, we need
10201 # it in the Import File for the 'aix-soname' feature, so we have
10202 # to replace the "-B" option with "-P" for AIX nm.
10203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10204 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'
10205 else
10206 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 == "L") || (\$ 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'
10207 fi
10208 aix_use_runtimelinking=no
10209
10210 # Test if we are trying to use run time linking or normal
10211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10212 # have runtime linking enabled, and use it for executables.
10213 # For shared libraries, we enable/disable runtime linking
10214 # depending on the kind of the shared library created -
10215 # when "with_aix_soname,aix_use_runtimelinking" is:
10216 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10217 # "aix,yes" lib.so shared, rtl:yes, for executables
10218 # lib.a static archive
10219 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10220 # lib.a(lib.so.V) shared, rtl:no, for executables
10221 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10222 # lib.a(lib.so.V) shared, rtl:no
10223 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10224 # lib.a static archive
10225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10226 for ld_flag in $LDFLAGS; do
10227 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10228 aix_use_runtimelinking=yes
10229 break
10230 fi
10231 done
10232 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10233 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10234 # so we don't have lib.a shared libs to link our executables.
10235 # We have to force runtime linking in this case.
10236 aix_use_runtimelinking=yes
10237 LDFLAGS="$LDFLAGS -Wl,-brtl"
10238 fi
10239 ;;
10240 esac
10241
10242 exp_sym_flag='-bexport'
10243 no_entry_flag='-bnoentry'
10244 fi
10245
10246 # When large executables or shared objects are built, AIX ld can
10247 # have problems creating the table of contents. If linking a library
10248 # or program results in "error TOC overflow" add -mminimal-toc to
10249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10251
10252 archive_cmds=''
10253 hardcode_direct=yes
10254 hardcode_direct_absolute=yes
10255 hardcode_libdir_separator=':'
10256 link_all_deplibs=yes
10257 file_list_spec='$wl-f,'
10258 case $with_aix_soname,$aix_use_runtimelinking in
10259 aix,*) ;; # traditional, no import file
10260 svr4,* | *,yes) # use import file
10261 # The Import File defines what to hardcode.
10262 hardcode_direct=no
10263 hardcode_direct_absolute=no
10264 ;;
10265 esac
10266
10267 if test yes = "$GCC"; then
10268 case $host_os in aix4.[012]|aix4.[012].*)
10269 # We only want to do this on AIX 4.2 and lower, the check
10270 # below for broken collect2 doesn't work under 4.3+
10271 collect2name=`$CC -print-prog-name=collect2`
10272 if test -f "$collect2name" &&
10273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10274 then
10275 # We have reworked collect2
10276 :
10277 else
10278 # We have old collect2
10279 hardcode_direct=unsupported
10280 # It fails to find uninstalled libraries when the uninstalled
10281 # path is not listed in the libpath. Setting hardcode_minus_L
10282 # to unsupported forces relinking
10283 hardcode_minus_L=yes
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_libdir_separator=
10286 fi
10287 ;;
10288 esac
10289 shared_flag='-shared'
10290 if test yes = "$aix_use_runtimelinking"; then
10291 shared_flag="$shared_flag "'$wl-G'
10292 fi
10293 # Need to ensure runtime linking is disabled for the traditional
10294 # shared library, or the linker may eventually find shared libraries
10295 # /with/ Import File - we do not want to mix them.
10296 shared_flag_aix='-shared'
10297 shared_flag_svr4='-shared $wl-G'
10298 else
10299 # not using gcc
10300 if test ia64 = "$host_cpu"; then
10301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10302 # chokes on -Wl,-G. The following line is correct:
10303 shared_flag='-G'
10304 else
10305 if test yes = "$aix_use_runtimelinking"; then
10306 shared_flag='$wl-G'
10307 else
10308 shared_flag='$wl-bM:SRE'
10309 fi
10310 shared_flag_aix='$wl-bM:SRE'
10311 shared_flag_svr4='$wl-G'
10312 fi
10313 fi
10314
10315 export_dynamic_flag_spec='$wl-bexpall'
10316 # It seems that -bexpall does not export symbols beginning with
10317 # underscore (_), so it is better to generate a list of symbols to export.
10318 always_export_symbols=yes
10319 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10320 # Warning - without using the other runtime loading flags (-brtl),
10321 # -berok will link without error, but may produce a broken library.
10322 allow_undefined_flag='-berok'
10323 # Determine the default libpath from the value encoded in an
10324 # empty executable.
10325 if test set = "${lt_cv_aix_libpath+set}"; then
10326 aix_libpath=$lt_cv_aix_libpath
10327 else
10328 if test ${lt_cv_aix_libpath_+y}
10329 then :
10330 printf %s "(cached) " >&6
10331 else case e in #(
10332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334
10335 int
10336 main (void)
10337 {
10338
10339 ;
10340 return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"
10344 then :
10345
10346 lt_aix_libpath_sed='
10347 /Import File Strings/,/^$/ {
10348 /^0/ {
10349 s/^0 *\([^ ]*\) *$/\1/
10350 p
10351 }
10352 }'
10353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354 # Check for a 64-bit object if we didn't find anything.
10355 if test -z "$lt_cv_aix_libpath_"; then
10356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357 fi
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10360 conftest$ac_exeext conftest.$ac_ext
10361 if test -z "$lt_cv_aix_libpath_"; then
10362 lt_cv_aix_libpath_=/usr/lib:/lib
10363 fi
10364 ;;
10365 esac
10366 fi
10367
10368 aix_libpath=$lt_cv_aix_libpath_
10369 fi
10370
10371 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10372 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
10373 else
10374 if test ia64 = "$host_cpu"; then
10375 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10376 allow_undefined_flag="-z nodefs"
10377 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"
10378 else
10379 # Determine the default libpath from the value encoded in an
10380 # empty executable.
10381 if test set = "${lt_cv_aix_libpath+set}"; then
10382 aix_libpath=$lt_cv_aix_libpath
10383 else
10384 if test ${lt_cv_aix_libpath_+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else case e in #(
10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390
10391 int
10392 main (void)
10393 {
10394
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"
10400 then :
10401
10402 lt_aix_libpath_sed='
10403 /Import File Strings/,/^$/ {
10404 /^0/ {
10405 s/^0 *\([^ ]*\) *$/\1/
10406 p
10407 }
10408 }'
10409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 # Check for a 64-bit object if we didn't find anything.
10411 if test -z "$lt_cv_aix_libpath_"; then
10412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413 fi
10414 fi
10415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10416 conftest$ac_exeext conftest.$ac_ext
10417 if test -z "$lt_cv_aix_libpath_"; then
10418 lt_cv_aix_libpath_=/usr/lib:/lib
10419 fi
10420 ;;
10421 esac
10422 fi
10423
10424 aix_libpath=$lt_cv_aix_libpath_
10425 fi
10426
10427 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10428 # Warning - without using the other run time loading flags,
10429 # -berok will link without error, but may produce a broken library.
10430 no_undefined_flag=' $wl-bernotok'
10431 allow_undefined_flag=' $wl-berok'
10432 if test yes = "$with_gnu_ld"; then
10433 # We only use this code for GNU lds that support --whole-archive.
10434 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10435 else
10436 # Exported symbols can be pulled into shared objects from archives
10437 whole_archive_flag_spec='$convenience'
10438 fi
10439 archive_cmds_need_lc=yes
10440 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10441 # -brtl affects multiple linker settings, -berok does not and is overridden later
10442 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10443 if test svr4 != "$with_aix_soname"; then
10444 # This is similar to how AIX traditionally builds its shared libraries.
10445 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'
10446 fi
10447 if test aix != "$with_aix_soname"; then
10448 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'
10449 else
10450 # used by -dlpreopen to get the symbols
10451 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10452 fi
10453 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10454 fi
10455 fi
10456 ;;
10457
10458 amigaos*)
10459 case $host_cpu in
10460 powerpc)
10461 # see comment about AmigaOS4 .so support
10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10463 archive_expsym_cmds=''
10464 ;;
10465 m68k)
10466 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)'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_minus_L=yes
10469 ;;
10470 esac
10471 ;;
10472
10473 bsdi[45]*)
10474 export_dynamic_flag_spec=-rdynamic
10475 ;;
10476
10477 cygwin* | mingw* | pw32* | cegcc*)
10478 # When not using gcc, we currently assume that we are using
10479 # Microsoft Visual C++ or Intel C++ Compiler.
10480 # hardcode_libdir_flag_spec is actually meaningless, as there is
10481 # no search path for DLLs.
10482 case $cc_basename in
10483 cl* | icl*)
10484 # Native MSVC or ICC
10485 hardcode_libdir_flag_spec=' '
10486 allow_undefined_flag=unsupported
10487 always_export_symbols=yes
10488 file_list_spec='@'
10489 # Tell ltmain to make .lib files, not .a files.
10490 libext=lib
10491 # Tell ltmain to make .dll files, not .so files.
10492 shrext_cmds=.dll
10493 # FIXME: Setting linknames here is a bad hack.
10494 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10495 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10496 cp "$export_symbols" "$output_objdir/$soname.def";
10497 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10498 else
10499 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10500 fi~
10501 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10502 linknames='
10503 # The linker will not automatically build a static lib if we build a DLL.
10504 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10505 enable_shared_with_static_runtimes=yes
10506 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10508 # Don't use ranlib
10509 old_postinstall_cmds='chmod 644 $oldlib'
10510 postlink_cmds='lt_outputfile="@OUTPUT@"~
10511 lt_tool_outputfile="@TOOL_OUTPUT@"~
10512 case $lt_outputfile in
10513 *.exe|*.EXE) ;;
10514 *)
10515 lt_outputfile=$lt_outputfile.exe
10516 lt_tool_outputfile=$lt_tool_outputfile.exe
10517 ;;
10518 esac~
10519 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10520 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10521 $RM "$lt_outputfile.manifest";
10522 fi'
10523 ;;
10524 *)
10525 # Assume MSVC and ICC wrapper
10526 hardcode_libdir_flag_spec=' '
10527 allow_undefined_flag=unsupported
10528 # Tell ltmain to make .lib files, not .a files.
10529 libext=lib
10530 # Tell ltmain to make .dll files, not .so files.
10531 shrext_cmds=.dll
10532 # FIXME: Setting linknames here is a bad hack.
10533 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10534 # The linker will automatically build a .lib file if we build a DLL.
10535 old_archive_from_new_cmds='true'
10536 # FIXME: Should let the user specify the lib program.
10537 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10538 enable_shared_with_static_runtimes=yes
10539 ;;
10540 esac
10541 ;;
10542
10543 darwin* | rhapsody*)
10544
10545
10546 archive_cmds_need_lc=no
10547 hardcode_direct=no
10548 hardcode_automatic=yes
10549 hardcode_shlibpath_var=unsupported
10550 if test yes = "$lt_cv_ld_force_load"; then
10551 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\"`'
10552
10553 else
10554 whole_archive_flag_spec=''
10555 fi
10556 link_all_deplibs=yes
10557 allow_undefined_flag=$_lt_dar_allow_undefined
10558 case $cc_basename in
10559 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10560 *) _lt_dar_can_shared=$GCC ;;
10561 esac
10562 if test yes = "$_lt_dar_can_shared"; then
10563 output_verbose_link_cmd=func_echo_all
10564 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10565 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10566 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"
10567 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"
10568
10569 else
10570 ld_shlibs=no
10571 fi
10572
10573 ;;
10574
10575 dgux*)
10576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10577 hardcode_libdir_flag_spec='-L$libdir'
10578 hardcode_shlibpath_var=no
10579 ;;
10580
10581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10582 # support. Future versions do this automatically, but an explicit c++rt0.o
10583 # does not break anything, and helps significantly (at the cost of a little
10584 # extra space).
10585 freebsd2.2*)
10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10587 hardcode_libdir_flag_spec='-R$libdir'
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10590 ;;
10591
10592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10593 freebsd2.*)
10594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_direct=yes
10596 hardcode_minus_L=yes
10597 hardcode_shlibpath_var=no
10598 ;;
10599
10600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10601 freebsd* | dragonfly* | midnightbsd*)
10602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10606 ;;
10607
10608 hpux9*)
10609 if test yes = "$GCC"; then
10610 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'
10611 else
10612 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'
10613 fi
10614 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10615 hardcode_libdir_separator=:
10616 hardcode_direct=yes
10617
10618 # hardcode_minus_L: Not really in the search PATH,
10619 # but as the default location of the library.
10620 hardcode_minus_L=yes
10621 export_dynamic_flag_spec='$wl-E'
10622 ;;
10623
10624 hpux10*)
10625 if test yes,no = "$GCC,$with_gnu_ld"; then
10626 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10627 else
10628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10629 fi
10630 if test no = "$with_gnu_ld"; then
10631 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10632 hardcode_libdir_separator=:
10633 hardcode_direct=yes
10634 hardcode_direct_absolute=yes
10635 export_dynamic_flag_spec='$wl-E'
10636 # hardcode_minus_L: Not really in the search PATH,
10637 # but as the default location of the library.
10638 hardcode_minus_L=yes
10639 fi
10640 ;;
10641
10642 hpux11*)
10643 if test yes,no = "$GCC,$with_gnu_ld"; then
10644 case $host_cpu in
10645 hppa*64*)
10646 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 ;;
10648 ia64*)
10649 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10650 ;;
10651 *)
10652 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653 ;;
10654 esac
10655 else
10656 case $host_cpu in
10657 hppa*64*)
10658 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 ;;
10660 ia64*)
10661 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10662 ;;
10663 *)
10664
10665 # Older versions of the 11.00 compiler do not understand -b yet
10666 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10668 printf %s "checking if $CC understands -b... " >&6; }
10669 if test ${lt_cv_prog_compiler__b+y}
10670 then :
10671 printf %s "(cached) " >&6
10672 else case e in #(
10673 e) lt_cv_prog_compiler__b=no
10674 save_LDFLAGS=$LDFLAGS
10675 LDFLAGS="$LDFLAGS -b"
10676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10678 # The linker can only warn and ignore the option if not recognized
10679 # So say no if there are warnings
10680 if test -s conftest.err; then
10681 # Append any errors to the config.log.
10682 cat conftest.err 1>&5
10683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10685 if diff conftest.exp conftest.er2 >/dev/null; then
10686 lt_cv_prog_compiler__b=yes
10687 fi
10688 else
10689 lt_cv_prog_compiler__b=yes
10690 fi
10691 fi
10692 $RM -r conftest*
10693 LDFLAGS=$save_LDFLAGS
10694 ;;
10695 esac
10696 fi
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10698 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10699
10700 if test yes = "$lt_cv_prog_compiler__b"; then
10701 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702 else
10703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704 fi
10705
10706 ;;
10707 esac
10708 fi
10709 if test no = "$with_gnu_ld"; then
10710 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10711 hardcode_libdir_separator=:
10712
10713 case $host_cpu in
10714 hppa*64*|ia64*)
10715 hardcode_direct=no
10716 hardcode_shlibpath_var=no
10717 ;;
10718 *)
10719 hardcode_direct=yes
10720 hardcode_direct_absolute=yes
10721 export_dynamic_flag_spec='$wl-E'
10722
10723 # hardcode_minus_L: Not really in the search PATH,
10724 # but as the default location of the library.
10725 hardcode_minus_L=yes
10726 ;;
10727 esac
10728 fi
10729 ;;
10730
10731 irix5* | irix6* | nonstopux*)
10732 if test yes = "$GCC"; then
10733 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'
10734 # Try to use the -exported_symbol ld option, if it does not
10735 # work, assume that -exports_file does not work either and
10736 # implicitly export all symbols.
10737 # This should be the same for all languages, so no per-tag cache variable.
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10739 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10740 if test ${lt_cv_irix_exported_symbol+y}
10741 then :
10742 printf %s "(cached) " >&6
10743 else case e in #(
10744 e) save_LDFLAGS=$LDFLAGS
10745 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 int foo (void) { return 0; }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"
10751 then :
10752 lt_cv_irix_exported_symbol=yes
10753 else case e in #(
10754 e) lt_cv_irix_exported_symbol=no ;;
10755 esac
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10758 conftest$ac_exeext conftest.$ac_ext
10759 LDFLAGS=$save_LDFLAGS ;;
10760 esac
10761 fi
10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10763 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10764 if test yes = "$lt_cv_irix_exported_symbol"; then
10765 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'
10766 fi
10767 link_all_deplibs=no
10768 else
10769 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'
10770 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'
10771 fi
10772 archive_cmds_need_lc='no'
10773 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10774 hardcode_libdir_separator=:
10775 inherit_rpath=yes
10776 link_all_deplibs=yes
10777 ;;
10778
10779 linux*)
10780 case $cc_basename in
10781 tcc*)
10782 # Fabrice Bellard et al's Tiny C Compiler
10783 ld_shlibs=yes
10784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10786 ;;
10787 esac
10788 ;;
10789
10790 netbsd* | netbsdelf*-gnu)
10791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10793 else
10794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10795 fi
10796 hardcode_libdir_flag_spec='-R$libdir'
10797 hardcode_direct=yes
10798 hardcode_shlibpath_var=no
10799 ;;
10800
10801 newsos6)
10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_direct=yes
10804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10805 hardcode_libdir_separator=:
10806 hardcode_shlibpath_var=no
10807 ;;
10808
10809 *nto* | *qnx*)
10810 ;;
10811
10812 openbsd* | bitrig*)
10813 if test -f /usr/libexec/ld.so; then
10814 hardcode_direct=yes
10815 hardcode_shlibpath_var=no
10816 hardcode_direct_absolute=yes
10817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10820 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10821 export_dynamic_flag_spec='$wl-E'
10822 else
10823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10824 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10825 fi
10826 else
10827 ld_shlibs=no
10828 fi
10829 ;;
10830
10831 os2*)
10832 hardcode_libdir_flag_spec='-L$libdir'
10833 hardcode_minus_L=yes
10834 allow_undefined_flag=unsupported
10835 shrext_cmds=.dll
10836 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10837 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10838 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10839 $ECHO EXPORTS >> $output_objdir/$libname.def~
10840 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10841 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10842 emximp -o $lib $output_objdir/$libname.def'
10843 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10844 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10845 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10846 $ECHO EXPORTS >> $output_objdir/$libname.def~
10847 prefix_cmds="$SED"~
10848 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10849 prefix_cmds="$prefix_cmds -e 1d";
10850 fi~
10851 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10852 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10853 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10854 emximp -o $lib $output_objdir/$libname.def'
10855 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10856 enable_shared_with_static_runtimes=yes
10857 file_list_spec='@'
10858 ;;
10859
10860 osf3*)
10861 if test yes = "$GCC"; then
10862 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10863 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'
10864 else
10865 allow_undefined_flag=' -expect_unresolved \*'
10866 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'
10867 fi
10868 archive_cmds_need_lc='no'
10869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10870 hardcode_libdir_separator=:
10871 ;;
10872
10873 osf4* | osf5*) # as osf3* with the addition of -msym flag
10874 if test yes = "$GCC"; then
10875 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10876 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'
10877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10878 else
10879 allow_undefined_flag=' -expect_unresolved \*'
10880 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'
10881 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~
10882 $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'
10883
10884 # Both c and cxx compiler support -rpath directly
10885 hardcode_libdir_flag_spec='-rpath $libdir'
10886 fi
10887 archive_cmds_need_lc='no'
10888 hardcode_libdir_separator=:
10889 ;;
10890
10891 solaris*)
10892 no_undefined_flag=' -z defs'
10893 if test yes = "$GCC"; then
10894 wlarc='$wl'
10895 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10897 $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'
10898 else
10899 case `$CC -V 2>&1` in
10900 *"Compilers 5.0"*)
10901 wlarc=''
10902 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10905 ;;
10906 *)
10907 wlarc='$wl'
10908 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911 ;;
10912 esac
10913 fi
10914 hardcode_libdir_flag_spec='-R$libdir'
10915 hardcode_shlibpath_var=no
10916 case $host_os in
10917 solaris2.[0-5] | solaris2.[0-5].*) ;;
10918 *)
10919 # The compiler driver will combine and reorder linker options,
10920 # but understands '-z linker_flag'. GCC discards it without '$wl',
10921 # but is careful enough not to reorder.
10922 # Supported since Solaris 2.6 (maybe 2.5.1?)
10923 if test yes = "$GCC"; then
10924 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10925 else
10926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10927 fi
10928 ;;
10929 esac
10930 link_all_deplibs=yes
10931 ;;
10932
10933 sunos4*)
10934 if test sequent = "$host_vendor"; then
10935 # Use $CC to link under sequent, because it throws in some extra .o
10936 # files that make .init and .fini sections work.
10937 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10940 fi
10941 hardcode_libdir_flag_spec='-L$libdir'
10942 hardcode_direct=yes
10943 hardcode_minus_L=yes
10944 hardcode_shlibpath_var=no
10945 ;;
10946
10947 sysv4)
10948 case $host_vendor in
10949 sni)
10950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_direct=yes # is this really true???
10952 ;;
10953 siemens)
10954 ## LD is ld it makes a PLAMLIB
10955 ## CC just makes a GrossModule.
10956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10957 reload_cmds='$CC -r -o $output$reload_objs'
10958 hardcode_direct=no
10959 ;;
10960 motorola)
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10963 ;;
10964 esac
10965 runpath_var='LD_RUN_PATH'
10966 hardcode_shlibpath_var=no
10967 ;;
10968
10969 sysv4.3*)
10970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971 hardcode_shlibpath_var=no
10972 export_dynamic_flag_spec='-Bexport'
10973 ;;
10974
10975 sysv4*MP*)
10976 if test -d /usr/nec; then
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_shlibpath_var=no
10979 runpath_var=LD_RUN_PATH
10980 hardcode_runpath_var=yes
10981 ld_shlibs=yes
10982 fi
10983 ;;
10984
10985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10986 no_undefined_flag='$wl-z,text'
10987 archive_cmds_need_lc=no
10988 hardcode_shlibpath_var=no
10989 runpath_var='LD_RUN_PATH'
10990
10991 if test yes = "$GCC"; then
10992 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 else
10995 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 fi
10998 ;;
10999
11000 sysv5* | sco3.2v5* | sco5v6*)
11001 # Note: We CANNOT use -z defs as we might desire, because we do not
11002 # link with -lc, and that would cause any symbols used from libc to
11003 # always be unresolved, which means just about no library would
11004 # ever link correctly. If we're not using GNU ld we use -z text
11005 # though, which does catch some bad symbols but isn't as heavy-handed
11006 # as -z defs.
11007 no_undefined_flag='$wl-z,text'
11008 allow_undefined_flag='$wl-z,nodefs'
11009 archive_cmds_need_lc=no
11010 hardcode_shlibpath_var=no
11011 hardcode_libdir_flag_spec='$wl-R,$libdir'
11012 hardcode_libdir_separator=':'
11013 link_all_deplibs=yes
11014 export_dynamic_flag_spec='$wl-Bexport'
11015 runpath_var='LD_RUN_PATH'
11016
11017 if test yes = "$GCC"; then
11018 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 else
11021 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 fi
11024 ;;
11025
11026 uts4*)
11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11028 hardcode_libdir_flag_spec='-L$libdir'
11029 hardcode_shlibpath_var=no
11030 ;;
11031
11032 *)
11033 ld_shlibs=no
11034 ;;
11035 esac
11036
11037 if test sni = "$host_vendor"; then
11038 case $host in
11039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11040 export_dynamic_flag_spec='$wl-Blargedynsym'
11041 ;;
11042 esac
11043 fi
11044 fi
11045
11046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11047 printf "%s\n" "$ld_shlibs" >&6; }
11048 test no = "$ld_shlibs" && can_build_shared=no
11049
11050 with_gnu_ld=$with_gnu_ld
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066 #
11067 # Do we need to explicitly link libc?
11068 #
11069 case "x$archive_cmds_need_lc" in
11070 x|xyes)
11071 # Assume -lc should be added
11072 archive_cmds_need_lc=yes
11073
11074 if test yes,yes = "$GCC,$enable_shared"; then
11075 case $archive_cmds in
11076 *'~'*)
11077 # FIXME: we may have to deal with multi-command sequences.
11078 ;;
11079 '$CC '*)
11080 # Test whether the compiler implicitly links with -lc since on some
11081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11082 # to ld, don't add -lc before -lgcc.
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11084 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11085 if test ${lt_cv_archive_cmds_need_lc+y}
11086 then :
11087 printf %s "(cached) " >&6
11088 else case e in #(
11089 e) $RM conftest*
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11093 (eval $ac_compile) 2>&5
11094 ac_status=$?
11095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } 2>conftest.err; then
11097 soname=conftest
11098 lib=conftest
11099 libobjs=conftest.$ac_objext
11100 deplibs=
11101 wl=$lt_prog_compiler_wl
11102 pic_flag=$lt_prog_compiler_pic
11103 compiler_flags=-v
11104 linker_flags=-v
11105 verstring=
11106 output_objdir=.
11107 libname=conftest
11108 lt_save_allow_undefined_flag=$allow_undefined_flag
11109 allow_undefined_flag=
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11111 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11112 ac_status=$?
11113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; }
11115 then
11116 lt_cv_archive_cmds_need_lc=no
11117 else
11118 lt_cv_archive_cmds_need_lc=yes
11119 fi
11120 allow_undefined_flag=$lt_save_allow_undefined_flag
11121 else
11122 cat conftest.err 1>&5
11123 fi
11124 $RM conftest*
11125 ;;
11126 esac
11127 fi
11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11129 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11130 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11131 ;;
11132 esac
11133 fi
11134 ;;
11135 esac
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11289 printf %s "checking dynamic linker characteristics... " >&6; }
11290
11291 if test yes = "$GCC"; then
11292 case $host_os in
11293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11294 *) lt_awk_arg='/^libraries:/' ;;
11295 esac
11296 case $host_os in
11297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11298 *) lt_sed_strip_eq='s|=/|/|g' ;;
11299 esac
11300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11301 case $lt_search_path_spec in
11302 *\;*)
11303 # if the path contains ";" then we assume it to be the separator
11304 # otherwise default to the standard path separator (i.e. ":") - it is
11305 # assumed that no part of a normal pathname contains ";" but that should
11306 # okay in the real world where ";" in dirpaths is itself problematic.
11307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11308 ;;
11309 *)
11310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11311 ;;
11312 esac
11313 # Ok, now we have the path, separated by spaces, we can step through it
11314 # and add multilib dir if necessary...
11315 lt_tmp_lt_search_path_spec=
11316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317 # ...but if some path component already ends with the multilib dir we assume
11318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11319 case "$lt_multi_os_dir; $lt_search_path_spec " in
11320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11321 lt_multi_os_dir=
11322 ;;
11323 esac
11324 for lt_sys_path in $lt_search_path_spec; do
11325 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11327 elif test -n "$lt_multi_os_dir"; then
11328 test -d "$lt_sys_path" && \
11329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11330 fi
11331 done
11332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11333 BEGIN {RS = " "; FS = "/|\n";} {
11334 lt_foo = "";
11335 lt_count = 0;
11336 for (lt_i = NF; lt_i > 0; lt_i--) {
11337 if ($lt_i != "" && $lt_i != ".") {
11338 if ($lt_i == "..") {
11339 lt_count++;
11340 } else {
11341 if (lt_count == 0) {
11342 lt_foo = "/" $lt_i lt_foo;
11343 } else {
11344 lt_count--;
11345 }
11346 }
11347 }
11348 }
11349 if (lt_foo != "") { lt_freq[lt_foo]++; }
11350 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11351 }'`
11352 # AWK program above erroneously prepends '/' to C:/dos/paths
11353 # for these hosts.
11354 case $host_os in
11355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11356 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11357 esac
11358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11359 else
11360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11361 fi
11362 library_names_spec=
11363 libname_spec='lib$name'
11364 soname_spec=
11365 shrext_cmds=.so
11366 postinstall_cmds=
11367 postuninstall_cmds=
11368 finish_cmds=
11369 finish_eval=
11370 shlibpath_var=
11371 shlibpath_overrides_runpath=unknown
11372 version_type=none
11373 dynamic_linker="$host_os ld.so"
11374 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11375 need_lib_prefix=unknown
11376 hardcode_into_libs=no
11377
11378 # when you set need_version to no, make sure it does not cause -set_version
11379 # flags to be left without arguments
11380 need_version=unknown
11381
11382
11383
11384 case $host_os in
11385 aix3*)
11386 version_type=linux # correct to gnu/linux during the next big refactor
11387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11388 shlibpath_var=LIBPATH
11389
11390 # AIX 3 has no versioning support, so we append a major version to the name.
11391 soname_spec='$libname$release$shared_ext$major'
11392 ;;
11393
11394 aix[4-9]*)
11395 version_type=linux # correct to gnu/linux during the next big refactor
11396 need_lib_prefix=no
11397 need_version=no
11398 hardcode_into_libs=yes
11399 if test ia64 = "$host_cpu"; then
11400 # AIX 5 supports IA64
11401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 else
11404 # With GCC up to 2.95.x, collect2 would create an import file
11405 # for dependence libraries. The import file would start with
11406 # the line '#! .'. This would cause the generated library to
11407 # depend on '.', always an invalid library. This was fixed in
11408 # development snapshots of GCC prior to 3.0.
11409 case $host_os in
11410 aix4 | aix4.[01] | aix4.[01].*)
11411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11412 echo ' yes '
11413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11414 :
11415 else
11416 can_build_shared=no
11417 fi
11418 ;;
11419 esac
11420 # Using Import Files as archive members, it is possible to support
11421 # filename-based versioning of shared library archives on AIX. While
11422 # this would work for both with and without runtime linking, it will
11423 # prevent static linking of such archives. So we do filename-based
11424 # shared library versioning with .so extension only, which is used
11425 # when both runtime linking and shared linking is enabled.
11426 # Unfortunately, runtime linking may impact performance, so we do
11427 # not want this to be the default eventually. Also, we use the
11428 # versioned .so libs for executables only if there is the -brtl
11429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11430 # To allow for filename-based versioning support, we need to create
11431 # libNAME.so.V as an archive file, containing:
11432 # *) an Import File, referring to the versioned filename of the
11433 # archive as well as the shared archive member, telling the
11434 # bitwidth (32 or 64) of that shared object, and providing the
11435 # list of exported symbols of that shared object, eventually
11436 # decorated with the 'weak' keyword
11437 # *) the shared object with the F_LOADONLY flag set, to really avoid
11438 # it being seen by the linker.
11439 # At run time we better use the real file rather than another symlink,
11440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11441
11442 case $with_aix_soname,$aix_use_runtimelinking in
11443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11444 # soname into executable. Probably we can add versioning support to
11445 # collect2, so additional links can be useful in future.
11446 aix,yes) # traditional libtool
11447 dynamic_linker='AIX unversionable lib.so'
11448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11449 # instead of lib<name>.a to let people know that these are not
11450 # typical AIX shared libraries.
11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452 ;;
11453 aix,no) # traditional AIX only
11454 dynamic_linker='AIX lib.a(lib.so.V)'
11455 # We preserve .a as extension for shared libraries through AIX4.2
11456 # and later when we are not doing run time linking.
11457 library_names_spec='$libname$release.a $libname.a'
11458 soname_spec='$libname$release$shared_ext$major'
11459 ;;
11460 svr4,*) # full svr4 only
11461 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11463 # We do not specify a path in Import Files, so LIBPATH fires.
11464 shlibpath_overrides_runpath=yes
11465 ;;
11466 *,yes) # both, prefer svr4
11467 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11469 # unpreferred sharedlib libNAME.a needs extra handling
11470 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"'
11471 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"'
11472 # We do not specify a path in Import Files, so LIBPATH fires.
11473 shlibpath_overrides_runpath=yes
11474 ;;
11475 *,no) # both, prefer aix
11476 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11477 library_names_spec='$libname$release.a $libname.a'
11478 soname_spec='$libname$release$shared_ext$major'
11479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11480 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)'
11481 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"'
11482 ;;
11483 esac
11484 shlibpath_var=LIBPATH
11485 fi
11486 ;;
11487
11488 amigaos*)
11489 case $host_cpu in
11490 powerpc)
11491 # Since July 2007 AmigaOS4 officially supports .so libraries.
11492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11494 ;;
11495 m68k)
11496 library_names_spec='$libname.ixlibrary $libname.a'
11497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11498 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'
11499 ;;
11500 esac
11501 ;;
11502
11503 beos*)
11504 library_names_spec='$libname$shared_ext'
11505 dynamic_linker="$host_os ld.so"
11506 shlibpath_var=LIBRARY_PATH
11507 ;;
11508
11509 bsdi[45]*)
11510 version_type=linux # correct to gnu/linux during the next big refactor
11511 need_version=no
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11518 # the default ld.so.conf also contains /usr/contrib/lib and
11519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11520 # libtool to hard-code these into programs
11521 ;;
11522
11523 cygwin* | mingw* | pw32* | cegcc*)
11524 version_type=windows
11525 shrext_cmds=.dll
11526 need_version=no
11527 need_lib_prefix=no
11528
11529 case $GCC,$cc_basename in
11530 yes,*)
11531 # gcc
11532 library_names_spec='$libname.dll.a'
11533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11534 postinstall_cmds='base_file=`basename \$file`~
11535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11536 dldir=$destdir/`dirname \$dlpath`~
11537 test -d \$dldir || mkdir -p \$dldir~
11538 $install_prog $dir/$dlname \$dldir/$dlname~
11539 chmod a+x \$dldir/$dlname~
11540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11542 fi'
11543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11544 dlpath=$dir/\$dldll~
11545 $RM \$dlpath'
11546 shlibpath_overrides_runpath=yes
11547
11548 case $host_os in
11549 cygwin*)
11550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11551 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11552
11553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11554 ;;
11555 mingw* | cegcc*)
11556 # MinGW DLLs use traditional 'lib' prefix
11557 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11558 ;;
11559 pw32*)
11560 # pw32 DLLs use 'pw' prefix rather than 'lib'
11561 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11562 ;;
11563 esac
11564 dynamic_linker='Win32 ld.exe'
11565 ;;
11566
11567 *,cl* | *,icl*)
11568 # Native MSVC or ICC
11569 libname_spec='$name'
11570 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11571 library_names_spec='$libname.dll.lib'
11572
11573 case $build_os in
11574 mingw*)
11575 sys_lib_search_path_spec=
11576 lt_save_ifs=$IFS
11577 IFS=';'
11578 for lt_path in $LIB
11579 do
11580 IFS=$lt_save_ifs
11581 # Let DOS variable expansion print the short 8.3 style file name.
11582 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11583 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11584 done
11585 IFS=$lt_save_ifs
11586 # Convert to MSYS style.
11587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11588 ;;
11589 cygwin*)
11590 # Convert to unix form, then to dos form, then back to unix form
11591 # but this time dos style (no spaces!) so that the unix form looks
11592 # like /cygdrive/c/PROGRA~1:/cygdr...
11593 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11594 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11596 ;;
11597 *)
11598 sys_lib_search_path_spec=$LIB
11599 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11600 # It is most probably a Windows format PATH.
11601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11602 else
11603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11604 fi
11605 # FIXME: find the short name or the path components, as spaces are
11606 # common. (e.g. "Program Files" -> "PROGRA~1")
11607 ;;
11608 esac
11609
11610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11611 postinstall_cmds='base_file=`basename \$file`~
11612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11613 dldir=$destdir/`dirname \$dlpath`~
11614 test -d \$dldir || mkdir -p \$dldir~
11615 $install_prog $dir/$dlname \$dldir/$dlname'
11616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11617 dlpath=$dir/\$dldll~
11618 $RM \$dlpath'
11619 shlibpath_overrides_runpath=yes
11620 dynamic_linker='Win32 link.exe'
11621 ;;
11622
11623 *)
11624 # Assume MSVC and ICC wrapper
11625 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11626 dynamic_linker='Win32 ld.exe'
11627 ;;
11628 esac
11629 # FIXME: first we should search . and the directory the executable is in
11630 shlibpath_var=PATH
11631 ;;
11632
11633 darwin* | rhapsody*)
11634 dynamic_linker="$host_os dyld"
11635 version_type=darwin
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11639 soname_spec='$libname$release$major$shared_ext'
11640 shlibpath_overrides_runpath=yes
11641 shlibpath_var=DYLD_LIBRARY_PATH
11642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11643
11644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11646 ;;
11647
11648 dgux*)
11649 version_type=linux # correct to gnu/linux during the next big refactor
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11653 soname_spec='$libname$release$shared_ext$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 ;;
11656
11657 freebsd* | dragonfly* | midnightbsd*)
11658 # DragonFly does not have aout. When/if they implement a new
11659 # versioning mechanism, adjust this.
11660 if test -x /usr/bin/objformat; then
11661 objformat=`/usr/bin/objformat`
11662 else
11663 case $host_os in
11664 freebsd[23].*) objformat=aout ;;
11665 *) objformat=elf ;;
11666 esac
11667 fi
11668 version_type=freebsd-$objformat
11669 case $version_type in
11670 freebsd-elf*)
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672 soname_spec='$libname$release$shared_ext$major'
11673 need_version=no
11674 need_lib_prefix=no
11675 ;;
11676 freebsd-*)
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11678 need_version=yes
11679 ;;
11680 esac
11681 shlibpath_var=LD_LIBRARY_PATH
11682 case $host_os in
11683 freebsd2.*)
11684 shlibpath_overrides_runpath=yes
11685 ;;
11686 freebsd3.[01]* | freebsdelf3.[01]*)
11687 shlibpath_overrides_runpath=yes
11688 hardcode_into_libs=yes
11689 ;;
11690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11692 shlibpath_overrides_runpath=no
11693 hardcode_into_libs=yes
11694 ;;
11695 *) # from 4.6 on, and DragonFly
11696 shlibpath_overrides_runpath=yes
11697 hardcode_into_libs=yes
11698 ;;
11699 esac
11700 ;;
11701
11702 haiku*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 dynamic_linker="$host_os runtime_loader"
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11709 shlibpath_var=LIBRARY_PATH
11710 shlibpath_overrides_runpath=no
11711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11712 hardcode_into_libs=yes
11713 ;;
11714
11715 hpux9* | hpux10* | hpux11*)
11716 # Give a soname corresponding to the major version so that dld.sl refuses to
11717 # link against other versions.
11718 version_type=sunos
11719 need_lib_prefix=no
11720 need_version=no
11721 case $host_cpu in
11722 ia64*)
11723 shrext_cmds='.so'
11724 hardcode_into_libs=yes
11725 dynamic_linker="$host_os dld.so"
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 if test 32 = "$HPUX_IA64_MODE"; then
11731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11733 else
11734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11736 fi
11737 ;;
11738 hppa*64*)
11739 shrext_cmds='.sl'
11740 hardcode_into_libs=yes
11741 dynamic_linker="$host_os dld.sl"
11742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745 soname_spec='$libname$release$shared_ext$major'
11746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11748 ;;
11749 *)
11750 shrext_cmds='.sl'
11751 dynamic_linker="$host_os dld.sl"
11752 shlibpath_var=SHLIB_PATH
11753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755 soname_spec='$libname$release$shared_ext$major'
11756 ;;
11757 esac
11758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11759 postinstall_cmds='chmod 555 $lib'
11760 # or fails outright, so override atomically:
11761 install_override_mode=555
11762 ;;
11763
11764 interix[3-9]*)
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 soname_spec='$libname$release$shared_ext$major'
11770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=no
11773 hardcode_into_libs=yes
11774 ;;
11775
11776 irix5* | irix6* | nonstopux*)
11777 case $host_os in
11778 nonstopux*) version_type=nonstopux ;;
11779 *)
11780 if test yes = "$lt_cv_prog_gnu_ld"; then
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 else
11783 version_type=irix
11784 fi ;;
11785 esac
11786 need_lib_prefix=no
11787 need_version=no
11788 soname_spec='$libname$release$shared_ext$major'
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11790 case $host_os in
11791 irix5* | nonstopux*)
11792 libsuff= shlibsuff=
11793 ;;
11794 *)
11795 case $LD in # libtool.m4 will add one of these switches to LD
11796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11797 libsuff= shlibsuff= libmagic=32-bit;;
11798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11799 libsuff=32 shlibsuff=N32 libmagic=N32;;
11800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11802 *) libsuff= shlibsuff= libmagic=never-match;;
11803 esac
11804 ;;
11805 esac
11806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11807 shlibpath_overrides_runpath=no
11808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11810 hardcode_into_libs=yes
11811 ;;
11812
11813 # No shared lib support for Linux oldld, aout, or coff.
11814 linux*oldld* | linux*aout* | linux*coff*)
11815 dynamic_linker=no
11816 ;;
11817
11818 linux*android*)
11819 version_type=none # Android doesn't support versioned libraries.
11820 need_lib_prefix=no
11821 need_version=no
11822 library_names_spec='$libname$release$shared_ext'
11823 soname_spec='$libname$release$shared_ext'
11824 finish_cmds=
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes
11827
11828 # This implies no fast_install, which is unacceptable.
11829 # Some rework will be needed to allow for fast_install
11830 # before this can be enabled.
11831 hardcode_into_libs=yes
11832
11833 dynamic_linker='Android linker'
11834 # Don't embed -rpath directories since the linker doesn't support them.
11835 hardcode_libdir_flag_spec='-L$libdir'
11836 ;;
11837
11838 # This must be glibc/ELF.
11839 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11840 version_type=linux # correct to gnu/linux during the next big refactor
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11844 soname_spec='$libname$release$shared_ext$major'
11845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=no
11848
11849 # Some binutils ld are patched to set DT_RUNPATH
11850 if test ${lt_cv_shlibpath_overrides_runpath+y}
11851 then :
11852 printf %s "(cached) " >&6
11853 else case e in #(
11854 e) lt_cv_shlibpath_overrides_runpath=no
11855 save_LDFLAGS=$LDFLAGS
11856 save_libdir=$libdir
11857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861
11862 int
11863 main (void)
11864 {
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 if ac_fn_c_try_link "$LINENO"
11871 then :
11872 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11873 then :
11874 lt_cv_shlibpath_overrides_runpath=yes
11875 fi
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LDFLAGS=$save_LDFLAGS
11880 libdir=$save_libdir
11881 ;;
11882 esac
11883 fi
11884
11885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11886
11887 # This implies no fast_install, which is unacceptable.
11888 # Some rework will be needed to allow for fast_install
11889 # before this can be enabled.
11890 hardcode_into_libs=yes
11891
11892 # Ideally, we could use ldconfig to report *all* directores which are
11893 # searched for libraries, however this is still not possible. Aside from not
11894 # being certain /sbin/ldconfig is available, command
11895 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11896 # even though it is searched at run-time. Try to do the best guess by
11897 # appending ld.so.conf contents (and includes) to the search path.
11898 if test -f /etc/ld.so.conf; then
11899 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' ' '`
11900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11901 fi
11902
11903 # We used to test for /lib/ld.so.1 and disable shared libraries on
11904 # powerpc, because MkLinux only supported shared libraries with the
11905 # GNU dynamic linker. Since this was broken with cross compilers,
11906 # most powerpc-linux boxes support dynamic linking these days and
11907 # people can always --disable-shared, the test was removed, and we
11908 # assume the GNU/Linux dynamic linker is in use.
11909 dynamic_linker='GNU/Linux ld.so'
11910 ;;
11911
11912 netbsdelf*-gnu)
11913 version_type=linux
11914 need_lib_prefix=no
11915 need_version=no
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=no
11920 hardcode_into_libs=yes
11921 dynamic_linker='NetBSD ld.elf_so'
11922 ;;
11923
11924 netbsd*)
11925 version_type=sunos
11926 need_lib_prefix=no
11927 need_version=no
11928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11931 dynamic_linker='NetBSD (a.out) ld.so'
11932 else
11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934 soname_spec='$libname$release$shared_ext$major'
11935 dynamic_linker='NetBSD ld.elf_so'
11936 fi
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11940 ;;
11941
11942 newsos6)
11943 version_type=linux # correct to gnu/linux during the next big refactor
11944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=yes
11947 ;;
11948
11949 *nto* | *qnx*)
11950 version_type=qnx
11951 need_lib_prefix=no
11952 need_version=no
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=no
11957 hardcode_into_libs=yes
11958 dynamic_linker='ldqnx.so'
11959 ;;
11960
11961 openbsd* | bitrig*)
11962 version_type=sunos
11963 sys_lib_dlsearch_path_spec=/usr/lib
11964 need_lib_prefix=no
11965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11966 need_version=no
11967 else
11968 need_version=yes
11969 fi
11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=yes
11974 ;;
11975
11976 os2*)
11977 libname_spec='$name'
11978 version_type=windows
11979 shrext_cmds=.dll
11980 need_version=no
11981 need_lib_prefix=no
11982 # OS/2 can only load a DLL with a base name of 8 characters or less.
11983 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11984 v=$($ECHO $release$versuffix | tr -d .-);
11985 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11986 $ECHO $n$v`$shared_ext'
11987 library_names_spec='${libname}_dll.$libext'
11988 dynamic_linker='OS/2 ld.exe'
11989 shlibpath_var=BEGINLIBPATH
11990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11992 postinstall_cmds='base_file=`basename \$file`~
11993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11994 dldir=$destdir/`dirname \$dlpath`~
11995 test -d \$dldir || mkdir -p \$dldir~
11996 $install_prog $dir/$dlname \$dldir/$dlname~
11997 chmod a+x \$dldir/$dlname~
11998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12000 fi'
12001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12002 dlpath=$dir/\$dldll~
12003 $RM \$dlpath'
12004 ;;
12005
12006 osf3* | osf4* | osf5*)
12007 version_type=osf
12008 need_lib_prefix=no
12009 need_version=no
12010 soname_spec='$libname$release$shared_ext$major'
12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12015 ;;
12016
12017 rdos*)
12018 dynamic_linker=no
12019 ;;
12020
12021 solaris*)
12022 version_type=linux # correct to gnu/linux during the next big refactor
12023 need_lib_prefix=no
12024 need_version=no
12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12026 soname_spec='$libname$release$shared_ext$major'
12027 shlibpath_var=LD_LIBRARY_PATH
12028 shlibpath_overrides_runpath=yes
12029 hardcode_into_libs=yes
12030 # ldd complains unless libraries are executable
12031 postinstall_cmds='chmod +x $lib'
12032 ;;
12033
12034 sunos4*)
12035 version_type=sunos
12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12038 shlibpath_var=LD_LIBRARY_PATH
12039 shlibpath_overrides_runpath=yes
12040 if test yes = "$with_gnu_ld"; then
12041 need_lib_prefix=no
12042 fi
12043 need_version=yes
12044 ;;
12045
12046 sysv4 | sysv4.3*)
12047 version_type=linux # correct to gnu/linux during the next big refactor
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 case $host_vendor in
12052 sni)
12053 shlibpath_overrides_runpath=no
12054 need_lib_prefix=no
12055 runpath_var=LD_RUN_PATH
12056 ;;
12057 siemens)
12058 need_lib_prefix=no
12059 ;;
12060 motorola)
12061 need_lib_prefix=no
12062 need_version=no
12063 shlibpath_overrides_runpath=no
12064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12065 ;;
12066 esac
12067 ;;
12068
12069 sysv4*MP*)
12070 if test -d /usr/nec; then
12071 version_type=linux # correct to gnu/linux during the next big refactor
12072 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12073 soname_spec='$libname$shared_ext.$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 fi
12076 ;;
12077
12078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12079 version_type=sco
12080 need_lib_prefix=no
12081 need_version=no
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 shlibpath_overrides_runpath=yes
12086 hardcode_into_libs=yes
12087 if test yes = "$with_gnu_ld"; then
12088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12089 else
12090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12091 case $host_os in
12092 sco3.2v5*)
12093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12094 ;;
12095 esac
12096 fi
12097 sys_lib_dlsearch_path_spec='/usr/lib'
12098 ;;
12099
12100 tpf*)
12101 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12102 version_type=linux # correct to gnu/linux during the next big refactor
12103 need_lib_prefix=no
12104 need_version=no
12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=no
12108 hardcode_into_libs=yes
12109 ;;
12110
12111 uts4*)
12112 version_type=linux # correct to gnu/linux during the next big refactor
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114 soname_spec='$libname$release$shared_ext$major'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 ;;
12117
12118 *)
12119 dynamic_linker=no
12120 ;;
12121 esac
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12123 printf "%s\n" "$dynamic_linker" >&6; }
12124 test no = "$dynamic_linker" && can_build_shared=no
12125
12126 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12127 if test yes = "$GCC"; then
12128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12129 fi
12130
12131 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12132 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12133 fi
12134
12135 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12136 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12137 fi
12138
12139 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12140 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12141
12142 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12143 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12144
12145 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12146 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12245 printf %s "checking how to hardcode library paths into programs... " >&6; }
12246 hardcode_action=
12247 if test -n "$hardcode_libdir_flag_spec" ||
12248 test -n "$runpath_var" ||
12249 test yes = "$hardcode_automatic"; then
12250
12251 # We can hardcode non-existent directories.
12252 if test no != "$hardcode_direct" &&
12253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12254 # have to relink, otherwise we might link with an installed library
12255 # when we should be linking with a yet-to-be-installed one
12256 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12257 test no != "$hardcode_minus_L"; then
12258 # Linking always hardcodes the temporary library directory.
12259 hardcode_action=relink
12260 else
12261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12262 hardcode_action=immediate
12263 fi
12264 else
12265 # We cannot hardcode anything, or else we can only hardcode existing
12266 # directories.
12267 hardcode_action=unsupported
12268 fi
12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12270 printf "%s\n" "$hardcode_action" >&6; }
12271
12272 if test relink = "$hardcode_action" ||
12273 test yes = "$inherit_rpath"; then
12274 # Fast installation is not supported
12275 enable_fast_install=no
12276 elif test yes = "$shlibpath_overrides_runpath" ||
12277 test no = "$enable_shared"; then
12278 # Fast installation is not necessary
12279 enable_fast_install=needless
12280 fi
12281
12282
12283
12284
12285
12286
12287 if test yes != "$enable_dlopen"; then
12288 enable_dlopen=unknown
12289 enable_dlopen_self=unknown
12290 enable_dlopen_self_static=unknown
12291 else
12292 lt_cv_dlopen=no
12293 lt_cv_dlopen_libs=
12294
12295 case $host_os in
12296 beos*)
12297 lt_cv_dlopen=load_add_on
12298 lt_cv_dlopen_libs=
12299 lt_cv_dlopen_self=yes
12300 ;;
12301
12302 mingw* | pw32* | cegcc*)
12303 lt_cv_dlopen=LoadLibrary
12304 lt_cv_dlopen_libs=
12305 ;;
12306
12307 cygwin*)
12308 lt_cv_dlopen=dlopen
12309 lt_cv_dlopen_libs=
12310 ;;
12311
12312 darwin*)
12313 # if libdl is installed we need to link against it
12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12315 printf %s "checking for dlopen in -ldl... " >&6; }
12316 if test ${ac_cv_lib_dl_dlopen+y}
12317 then :
12318 printf %s "(cached) " >&6
12319 else case e in #(
12320 e) ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-ldl $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply.
12328 The 'extern "C"' is for builds by C++ compilers;
12329 although this is not generally supported in C code supporting it here
12330 has little cost and some practical benefit (sr 110532). */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 char dlopen (void);
12335 int
12336 main (void)
12337 {
12338 return dlopen ();
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"
12344 then :
12345 ac_cv_lib_dl_dlopen=yes
12346 else case e in #(
12347 e) ac_cv_lib_dl_dlopen=no ;;
12348 esac
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS ;;
12353 esac
12354 fi
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12356 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12357 if test "x$ac_cv_lib_dl_dlopen" = xyes
12358 then :
12359 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12360 else case e in #(
12361 e)
12362 lt_cv_dlopen=dyld
12363 lt_cv_dlopen_libs=
12364 lt_cv_dlopen_self=yes
12365 ;;
12366 esac
12367 fi
12368
12369 ;;
12370
12371 tpf*)
12372 # Don't try to run any link tests for TPF. We know it's impossible
12373 # because TPF is a cross-compiler, and we know how we open DSOs.
12374 lt_cv_dlopen=dlopen
12375 lt_cv_dlopen_libs=
12376 lt_cv_dlopen_self=no
12377 ;;
12378
12379 *)
12380 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12381 if test "x$ac_cv_func_shl_load" = xyes
12382 then :
12383 lt_cv_dlopen=shl_load
12384 else case e in #(
12385 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12386 printf %s "checking for shl_load in -ldld... " >&6; }
12387 if test ${ac_cv_lib_dld_shl_load+y}
12388 then :
12389 printf %s "(cached) " >&6
12390 else case e in #(
12391 e) ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-ldld $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply.
12399 The 'extern "C"' is for builds by C++ compilers;
12400 although this is not generally supported in C code supporting it here
12401 has little cost and some practical benefit (sr 110532). */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char shl_load (void);
12406 int
12407 main (void)
12408 {
12409 return shl_load ();
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"
12415 then :
12416 ac_cv_lib_dld_shl_load=yes
12417 else case e in #(
12418 e) ac_cv_lib_dld_shl_load=no ;;
12419 esac
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS ;;
12424 esac
12425 fi
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12427 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12428 if test "x$ac_cv_lib_dld_shl_load" = xyes
12429 then :
12430 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12431 else case e in #(
12432 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12433 if test "x$ac_cv_func_dlopen" = xyes
12434 then :
12435 lt_cv_dlopen=dlopen
12436 else case e in #(
12437 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12438 printf %s "checking for dlopen in -ldl... " >&6; }
12439 if test ${ac_cv_lib_dl_dlopen+y}
12440 then :
12441 printf %s "(cached) " >&6
12442 else case e in #(
12443 e) ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-ldl $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply.
12451 The 'extern "C"' is for builds by C++ compilers;
12452 although this is not generally supported in C code supporting it here
12453 has little cost and some practical benefit (sr 110532). */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char dlopen (void);
12458 int
12459 main (void)
12460 {
12461 return dlopen ();
12462 ;
12463 return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"
12467 then :
12468 ac_cv_lib_dl_dlopen=yes
12469 else case e in #(
12470 e) ac_cv_lib_dl_dlopen=no ;;
12471 esac
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS ;;
12476 esac
12477 fi
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12479 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12480 if test "x$ac_cv_lib_dl_dlopen" = xyes
12481 then :
12482 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12483 else case e in #(
12484 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12485 printf %s "checking for dlopen in -lsvld... " >&6; }
12486 if test ${ac_cv_lib_svld_dlopen+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else case e in #(
12490 e) ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lsvld $LIBS"
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply.
12498 The 'extern "C"' is for builds by C++ compilers;
12499 although this is not generally supported in C code supporting it here
12500 has little cost and some practical benefit (sr 110532). */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 char dlopen (void);
12505 int
12506 main (void)
12507 {
12508 return dlopen ();
12509 ;
12510 return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"
12514 then :
12515 ac_cv_lib_svld_dlopen=yes
12516 else case e in #(
12517 e) ac_cv_lib_svld_dlopen=no ;;
12518 esac
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS ;;
12523 esac
12524 fi
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12526 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12527 if test "x$ac_cv_lib_svld_dlopen" = xyes
12528 then :
12529 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12530 else case e in #(
12531 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12532 printf %s "checking for dld_link in -ldld... " >&6; }
12533 if test ${ac_cv_lib_dld_dld_link+y}
12534 then :
12535 printf %s "(cached) " >&6
12536 else case e in #(
12537 e) ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-ldld $LIBS"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply.
12545 The 'extern "C"' is for builds by C++ compilers;
12546 although this is not generally supported in C code supporting it here
12547 has little cost and some practical benefit (sr 110532). */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 char dld_link (void);
12552 int
12553 main (void)
12554 {
12555 return dld_link ();
12556 ;
12557 return 0;
12558 }
12559 _ACEOF
12560 if ac_fn_c_try_link "$LINENO"
12561 then :
12562 ac_cv_lib_dld_dld_link=yes
12563 else case e in #(
12564 e) ac_cv_lib_dld_dld_link=no ;;
12565 esac
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS ;;
12570 esac
12571 fi
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12573 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12574 if test "x$ac_cv_lib_dld_dld_link" = xyes
12575 then :
12576 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12577 fi
12578
12579 ;;
12580 esac
12581 fi
12582
12583 ;;
12584 esac
12585 fi
12586
12587 ;;
12588 esac
12589 fi
12590
12591 ;;
12592 esac
12593 fi
12594
12595 ;;
12596 esac
12597 fi
12598
12599 ;;
12600 esac
12601
12602 if test no = "$lt_cv_dlopen"; then
12603 enable_dlopen=no
12604 else
12605 enable_dlopen=yes
12606 fi
12607
12608 case $lt_cv_dlopen in
12609 dlopen)
12610 save_CPPFLAGS=$CPPFLAGS
12611 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12612
12613 save_LDFLAGS=$LDFLAGS
12614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12615
12616 save_LIBS=$LIBS
12617 LIBS="$lt_cv_dlopen_libs $LIBS"
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12620 printf %s "checking whether a program can dlopen itself... " >&6; }
12621 if test ${lt_cv_dlopen_self+y}
12622 then :
12623 printf %s "(cached) " >&6
12624 else case e in #(
12625 e) if test yes = "$cross_compiling"; then :
12626 lt_cv_dlopen_self=cross
12627 else
12628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629 lt_status=$lt_dlunknown
12630 cat > conftest.$ac_ext <<_LT_EOF
12631 #line $LINENO "configure"
12632 #include "confdefs.h"
12633
12634 #if HAVE_DLFCN_H
12635 #include <dlfcn.h>
12636 #endif
12637
12638 #include <stdio.h>
12639
12640 #ifdef RTLD_GLOBAL
12641 # define LT_DLGLOBAL RTLD_GLOBAL
12642 #else
12643 # ifdef DL_GLOBAL
12644 # define LT_DLGLOBAL DL_GLOBAL
12645 # else
12646 # define LT_DLGLOBAL 0
12647 # endif
12648 #endif
12649
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651 find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12653 # ifdef RTLD_LAZY
12654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12655 # else
12656 # ifdef DL_LAZY
12657 # define LT_DLLAZY_OR_NOW DL_LAZY
12658 # else
12659 # ifdef RTLD_NOW
12660 # define LT_DLLAZY_OR_NOW RTLD_NOW
12661 # else
12662 # ifdef DL_NOW
12663 # define LT_DLLAZY_OR_NOW DL_NOW
12664 # else
12665 # define LT_DLLAZY_OR_NOW 0
12666 # endif
12667 # endif
12668 # endif
12669 # endif
12670 #endif
12671
12672 /* When -fvisibility=hidden is used, assume the code has been annotated
12673 correspondingly for the symbols needed. */
12674 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12675 int fnord () __attribute__((visibility("default")));
12676 #endif
12677
12678 int fnord () { return 42; }
12679 int main ()
12680 {
12681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12682 int status = $lt_dlunknown;
12683
12684 if (self)
12685 {
12686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12687 else
12688 {
12689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12690 else puts (dlerror ());
12691 }
12692 /* dlclose (self); */
12693 }
12694 else
12695 puts (dlerror ());
12696
12697 return status;
12698 }
12699 _LT_EOF
12700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12701 (eval $ac_link) 2>&5
12702 ac_status=$?
12703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12705 (./conftest; exit; ) >&5 2>/dev/null
12706 lt_status=$?
12707 case x$lt_status in
12708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12711 esac
12712 else :
12713 # compilation failed
12714 lt_cv_dlopen_self=no
12715 fi
12716 fi
12717 rm -fr conftest*
12718
12719 ;;
12720 esac
12721 fi
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12723 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12724
12725 if test yes = "$lt_cv_dlopen_self"; then
12726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12728 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12729 if test ${lt_cv_dlopen_self_static+y}
12730 then :
12731 printf %s "(cached) " >&6
12732 else case e in #(
12733 e) if test yes = "$cross_compiling"; then :
12734 lt_cv_dlopen_self_static=cross
12735 else
12736 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12737 lt_status=$lt_dlunknown
12738 cat > conftest.$ac_ext <<_LT_EOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741
12742 #if HAVE_DLFCN_H
12743 #include <dlfcn.h>
12744 #endif
12745
12746 #include <stdio.h>
12747
12748 #ifdef RTLD_GLOBAL
12749 # define LT_DLGLOBAL RTLD_GLOBAL
12750 #else
12751 # ifdef DL_GLOBAL
12752 # define LT_DLGLOBAL DL_GLOBAL
12753 # else
12754 # define LT_DLGLOBAL 0
12755 # endif
12756 #endif
12757
12758 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12759 find out it does not work in some platform. */
12760 #ifndef LT_DLLAZY_OR_NOW
12761 # ifdef RTLD_LAZY
12762 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12763 # else
12764 # ifdef DL_LAZY
12765 # define LT_DLLAZY_OR_NOW DL_LAZY
12766 # else
12767 # ifdef RTLD_NOW
12768 # define LT_DLLAZY_OR_NOW RTLD_NOW
12769 # else
12770 # ifdef DL_NOW
12771 # define LT_DLLAZY_OR_NOW DL_NOW
12772 # else
12773 # define LT_DLLAZY_OR_NOW 0
12774 # endif
12775 # endif
12776 # endif
12777 # endif
12778 #endif
12779
12780 /* When -fvisibility=hidden is used, assume the code has been annotated
12781 correspondingly for the symbols needed. */
12782 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12783 int fnord () __attribute__((visibility("default")));
12784 #endif
12785
12786 int fnord () { return 42; }
12787 int main ()
12788 {
12789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12790 int status = $lt_dlunknown;
12791
12792 if (self)
12793 {
12794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12795 else
12796 {
12797 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12798 else puts (dlerror ());
12799 }
12800 /* dlclose (self); */
12801 }
12802 else
12803 puts (dlerror ());
12804
12805 return status;
12806 }
12807 _LT_EOF
12808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12809 (eval $ac_link) 2>&5
12810 ac_status=$?
12811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12813 (./conftest; exit; ) >&5 2>/dev/null
12814 lt_status=$?
12815 case x$lt_status in
12816 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12817 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12818 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12819 esac
12820 else :
12821 # compilation failed
12822 lt_cv_dlopen_self_static=no
12823 fi
12824 fi
12825 rm -fr conftest*
12826
12827 ;;
12828 esac
12829 fi
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12831 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12832 fi
12833
12834 CPPFLAGS=$save_CPPFLAGS
12835 LDFLAGS=$save_LDFLAGS
12836 LIBS=$save_LIBS
12837 ;;
12838 esac
12839
12840 case $lt_cv_dlopen_self in
12841 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12842 *) enable_dlopen_self=unknown ;;
12843 esac
12844
12845 case $lt_cv_dlopen_self_static in
12846 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12847 *) enable_dlopen_self_static=unknown ;;
12848 esac
12849 fi
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867 striplib=
12868 old_striplib=
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12870 printf %s "checking whether stripping libraries is possible... " >&6; }
12871 if test -z "$STRIP"; then
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 printf "%s\n" "no" >&6; }
12874 else
12875 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12876 old_striplib="$STRIP --strip-debug"
12877 striplib="$STRIP --strip-unneeded"
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 printf "%s\n" "yes" >&6; }
12880 else
12881 case $host_os in
12882 darwin*)
12883 # FIXME - insert some real tests, host_os isn't really good enough
12884 striplib="$STRIP -x"
12885 old_striplib="$STRIP -S"
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 printf "%s\n" "yes" >&6; }
12888 ;;
12889 freebsd*)
12890 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12891 old_striplib="$STRIP --strip-debug"
12892 striplib="$STRIP --strip-unneeded"
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12894 printf "%s\n" "yes" >&6; }
12895 else
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 printf "%s\n" "no" >&6; }
12898 fi
12899 ;;
12900 *)
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 printf "%s\n" "no" >&6; }
12903 ;;
12904 esac
12905 fi
12906 fi
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919 # Report what library types will actually be built
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12921 printf %s "checking if libtool supports shared libraries... " >&6; }
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12923 printf "%s\n" "$can_build_shared" >&6; }
12924
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12926 printf %s "checking whether to build shared libraries... " >&6; }
12927 test no = "$can_build_shared" && enable_shared=no
12928
12929 # On AIX, shared libraries and static libraries use the same namespace, and
12930 # are all built from PIC.
12931 case $host_os in
12932 aix3*)
12933 test yes = "$enable_shared" && enable_static=no
12934 if test -n "$RANLIB"; then
12935 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12936 postinstall_cmds='$RANLIB $lib'
12937 fi
12938 ;;
12939
12940 aix[4-9]*)
12941 if test ia64 != "$host_cpu"; then
12942 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12943 yes,aix,yes) ;; # shared object as lib.so file only
12944 yes,svr4,*) ;; # shared object as lib.so archive member only
12945 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12946 esac
12947 fi
12948 ;;
12949 esac
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12951 printf "%s\n" "$enable_shared" >&6; }
12952
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12954 printf %s "checking whether to build static libraries... " >&6; }
12955 # Make sure either enable_shared or enable_static is yes.
12956 test yes = "$enable_shared" || enable_static=yes
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12958 printf "%s\n" "$enable_static" >&6; }
12959
12960
12961
12962
12963 fi
12964 ac_ext=c
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969
12970 CC=$lt_save_CC
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986 ac_config_commands="$ac_config_commands libtool"
12987
12988
12989
12990
12991 # Only expand once:
12992
12993
12994
12995 # Check whether --enable-optimization was given.
12996 if test ${enable_optimization+y}
12997 then :
12998 enableval=$enable_optimization;
12999 if (test "${enableval}" = "no"); then
13000 CFLAGS="$CFLAGS -O0"
13001 fi
13002
13003 fi
13004
13005
13006 # Check whether --enable-debug was given.
13007 if test ${enable_debug+y}
13008 then :
13009 enableval=$enable_debug;
13010 if (test "${enableval}" = "yes" &&
13011 test "${ac_cv_prog_cc_g}" = "yes"); then
13012 CFLAGS="$CFLAGS -g"
13013 fi
13014
13015 fi
13016
13017
13018 # Check whether --enable-pie was given.
13019 if test ${enable_pie+y}
13020 then :
13021 enableval=$enable_pie;
13022 if (test "${enableval}" = "yes" &&
13023 test "${ac_cv_prog_cc_pie}" = "yes"); then
13024 CFLAGS="$CFLAGS -fPIE"
13025 LDFLAGS="$LDFLAGS -pie"
13026 fi
13027
13028 fi
13029
13030
13031 # Check whether --enable-high-precision was given.
13032 if test ${enable_high_precision+y}
13033 then :
13034 enableval=$enable_high_precision; enable_high_precision=${enableval}
13035 fi
13036
13037 if (test "${enable_high_precision}" = "yes"); then
13038
13039 printf "%s\n" "#define SBC_HIGH_PRECISION 1" >>confdefs.h
13040
13041 fi
13042
13043 # Check whether --enable-tools was given.
13044 if test ${enable_tools+y}
13045 then :
13046 enableval=$enable_tools; enable_tools=${enableval}
13047 fi
13048
13049 if test "${enable_tools}" != "no"; then
13050 TOOLS_TRUE=
13051 TOOLS_FALSE='#'
13052 else
13053 TOOLS_TRUE='#'
13054 TOOLS_FALSE=
13055 fi
13056
13057
13058 # Check whether --enable-tester was given.
13059 if test ${enable_tester+y}
13060 then :
13061 enableval=$enable_tester; enable_tester=${enableval}
13062 fi
13063
13064 if (test "${enable_tester}" != "no"); then
13065
13066
13067
13068
13069
13070
13071
13072 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13073 if test -n "$ac_tool_prefix"; then
13074 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13075 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 printf %s "checking for $ac_word... " >&6; }
13078 if test ${ac_cv_path_PKG_CONFIG+y}
13079 then :
13080 printf %s "(cached) " >&6
13081 else case e in #(
13082 e) case $PKG_CONFIG in
13083 [\\/]* | ?:[\\/]*)
13084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13085 ;;
13086 *)
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 case $as_dir in #(((
13092 '') as_dir=./ ;;
13093 */) ;;
13094 *) as_dir=$as_dir/ ;;
13095 esac
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13098 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13100 break 2
13101 fi
13102 done
13103 done
13104 IFS=$as_save_IFS
13105
13106 ;;
13107 esac ;;
13108 esac
13109 fi
13110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13111 if test -n "$PKG_CONFIG"; then
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13113 printf "%s\n" "$PKG_CONFIG" >&6; }
13114 else
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 printf "%s\n" "no" >&6; }
13117 fi
13118
13119
13120 fi
13121 if test -z "$ac_cv_path_PKG_CONFIG"; then
13122 ac_pt_PKG_CONFIG=$PKG_CONFIG
13123 # Extract the first word of "pkg-config", so it can be a program name with args.
13124 set dummy pkg-config; ac_word=$2
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 printf %s "checking for $ac_word... " >&6; }
13127 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else case e in #(
13131 e) case $ac_pt_PKG_CONFIG in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13134 ;;
13135 *)
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139 IFS=$as_save_IFS
13140 case $as_dir in #(((
13141 '') as_dir=./ ;;
13142 */) ;;
13143 *) as_dir=$as_dir/ ;;
13144 esac
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13149 break 2
13150 fi
13151 done
13152 done
13153 IFS=$as_save_IFS
13154
13155 ;;
13156 esac ;;
13157 esac
13158 fi
13159 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13160 if test -n "$ac_pt_PKG_CONFIG"; then
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13162 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13163 else
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 printf "%s\n" "no" >&6; }
13166 fi
13167
13168 if test "x$ac_pt_PKG_CONFIG" = x; then
13169 PKG_CONFIG=""
13170 else
13171 case $cross_compiling:$ac_tool_warned in
13172 yes:)
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13175 ac_tool_warned=yes ;;
13176 esac
13177 PKG_CONFIG=$ac_pt_PKG_CONFIG
13178 fi
13179 else
13180 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13181 fi
13182
13183 fi
13184 if test -n "$PKG_CONFIG"; then
13185 _pkg_min_version=0.9.0
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13187 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13188 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13190 printf "%s\n" "yes" >&6; }
13191 else
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 printf "%s\n" "no" >&6; }
13194 PKG_CONFIG=""
13195 fi
13196 fi
13197
13198 pkg_failed=no
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
13200 printf %s "checking for sndfile... " >&6; }
13201
13202 if test -n "$SNDFILE_CFLAGS"; then
13203 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
13204 elif test -n "$PKG_CONFIG"; then
13205 if test -n "$PKG_CONFIG" && \
13206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
13207 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
13208 ac_status=$?
13209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
13212 test "x$?" != "x0" && pkg_failed=yes
13213 else
13214 pkg_failed=yes
13215 fi
13216 else
13217 pkg_failed=untried
13218 fi
13219 if test -n "$SNDFILE_LIBS"; then
13220 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
13221 elif test -n "$PKG_CONFIG"; then
13222 if test -n "$PKG_CONFIG" && \
13223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
13224 ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
13225 ac_status=$?
13226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }; then
13228 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
13229 test "x$?" != "x0" && pkg_failed=yes
13230 else
13231 pkg_failed=yes
13232 fi
13233 else
13234 pkg_failed=untried
13235 fi
13236
13237
13238
13239 if test $pkg_failed = yes; then
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 printf "%s\n" "no" >&6; }
13242
13243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13244 _pkg_short_errors_supported=yes
13245 else
13246 _pkg_short_errors_supported=no
13247 fi
13248 if test $_pkg_short_errors_supported = yes; then
13249 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile" 2>&1`
13250 else
13251 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile" 2>&1`
13252 fi
13253 # Put the nasty error message in config.log where it belongs
13254 echo "$SNDFILE_PKG_ERRORS" >&5
13255
13256 as_fn_error $? "sndfile library is required" "$LINENO" 5
13257 elif test $pkg_failed = untried; then
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 printf "%s\n" "no" >&6; }
13260 as_fn_error $? "sndfile library is required" "$LINENO" 5
13261 else
13262 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
13263 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13265 printf "%s\n" "yes" >&6; }
13266 dummy=yes
13267 fi
13268
13269
13270 fi
13271 if test "${enable_tester}" != "no"; then
13272 TESTER_TRUE=
13273 TESTER_FALSE='#'
13274 else
13275 TESTER_TRUE='#'
13276 TESTER_FALSE=
13277 fi
13278
13279
13280 ac_config_files="$ac_config_files Makefile sbc/sbc.pc"
13281
13282
13283 cat >confcache <<\_ACEOF
13284 # This file is a shell script that caches the results of configure
13285 # tests run on this system so they can be shared between configure
13286 # scripts and configure runs, see configure's option --config-cache.
13287 # It is not useful on other systems. If it contains results you don't
13288 # want to keep, you may remove or edit it.
13289 #
13290 # config.status only pays attention to the cache file if you give it
13291 # the --recheck option to rerun configure.
13292 #
13293 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
13294 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
13295 # following values.
13296
13297 _ACEOF
13298
13299 # The following way of writing the cache mishandles newlines in values,
13300 # but we know of no workaround that is simple, portable, and efficient.
13301 # So, we kill variables containing newlines.
13302 # Ultrix sh set writes to stderr and can't be redirected directly,
13303 # and sets the high bit in the cache file unless we assign to the vars.
13304 (
13305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13306 eval ac_val=\$$ac_var
13307 case $ac_val in #(
13308 *${as_nl}*)
13309 case $ac_var in #(
13310 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13311 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13312 esac
13313 case $ac_var in #(
13314 _ | IFS | as_nl) ;; #(
13315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13316 *) { eval $ac_var=; unset $ac_var;} ;;
13317 esac ;;
13318 esac
13319 done
13320
13321 (set) 2>&1 |
13322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13323 *${as_nl}ac_space=\ *)
13324 # 'set' does not quote correctly, so add quotes: double-quote
13325 # substitution turns \\\\ into \\, and sed turns \\ into \.
13326 sed -n \
13327 "s/'/'\\\\''/g;
13328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13329 ;; #(
13330 *)
13331 # 'set' quotes correctly as required by POSIX, so do not add quotes.
13332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13333 ;;
13334 esac |
13335 sort
13336 ) |
13337 sed '
13338 /^ac_cv_env_/b end
13339 t clear
13340 :clear
13341 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13342 t end
13343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13344 :end' >>confcache
13345 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13346 if test -w "$cache_file"; then
13347 if test "x$cache_file" != "x/dev/null"; then
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13349 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13350 if test ! -f "$cache_file" || test -h "$cache_file"; then
13351 cat confcache >"$cache_file"
13352 else
13353 case $cache_file in #(
13354 */* | ?:*)
13355 mv -f confcache "$cache_file"$$ &&
13356 mv -f "$cache_file"$$ "$cache_file" ;; #(
13357 *)
13358 mv -f confcache "$cache_file" ;;
13359 esac
13360 fi
13361 fi
13362 else
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13364 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13365 fi
13366 fi
13367 rm -f confcache
13368
13369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13370 # Let make expand exec_prefix.
13371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13372
13373 DEFS=-DHAVE_CONFIG_H
13374
13375 ac_libobjs=
13376 ac_ltlibobjs=
13377 U=
13378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13379 # 1. Remove the extension, and $U if already installed.
13380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13381 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13383 # will be set to the directory where LIBOBJS objects are built.
13384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13386 done
13387 LIBOBJS=$ac_libobjs
13388
13389 LTLIBOBJS=$ac_ltlibobjs
13390
13391
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13393 printf %s "checking that generated files are newer than configure... " >&6; }
13394 if test -n "$am_sleep_pid"; then
13395 # Hide warnings about reused PIDs.
13396 wait $am_sleep_pid 2>/dev/null
13397 fi
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13399 printf "%s\n" "done" >&6; }
13400 if test -n "$EXEEXT"; then
13401 am__EXEEXT_TRUE=
13402 am__EXEEXT_FALSE='#'
13403 else
13404 am__EXEEXT_TRUE='#'
13405 am__EXEEXT_FALSE=
13406 fi
13407
13408 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13409 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13411 fi
13412 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13413 as_fn_error $? "conditional \"AMDEP\" was never defined.
13414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13415 fi
13416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13417 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13419 fi
13420 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13421 as_fn_error $? "conditional \"TOOLS\" was never defined.
13422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13423 fi
13424 if test -z "${TESTER_TRUE}" && test -z "${TESTER_FALSE}"; then
13425 as_fn_error $? "conditional \"TESTER\" was never defined.
13426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13427 fi
13428
13429 : "${CONFIG_STATUS=./config.status}"
13430 ac_write_fail=0
13431 ac_clean_files_save=$ac_clean_files
13432 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13434 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13435 as_write_fail=0
13436 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13437 #! $SHELL
13438 # Generated by $as_me.
13439 # Run this file to recreate the current configuration.
13440 # Compiler output produced by configure, useful for debugging
13441 # configure, is in config.log if it exists.
13442
13443 debug=false
13444 ac_cs_recheck=false
13445 ac_cs_silent=false
13446
13447 SHELL=\${CONFIG_SHELL-$SHELL}
13448 export SHELL
13449 _ASEOF
13450 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13451 ## -------------------- ##
13452 ## M4sh Initialization. ##
13453 ## -------------------- ##
13454
13455 # Be more Bourne compatible
13456 DUALCASE=1; export DUALCASE # for MKS sh
13457 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13458 then :
13459 emulate sh
13460 NULLCMD=:
13461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13462 # is contrary to our usage. Disable this feature.
13463 alias -g '${1+"$@"}'='"$@"'
13464 setopt NO_GLOB_SUBST
13465 else case e in #(
13466 e) case `(set -o) 2>/dev/null` in #(
13467 *posix*) :
13468 set -o posix ;; #(
13469 *) :
13470 ;;
13471 esac ;;
13472 esac
13473 fi
13474
13475
13476
13477 # Reset variables that may have inherited troublesome values from
13478 # the environment.
13479
13480 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13481 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13482 # side effect of setting IFS to empty, thus disabling word splitting.)
13483 # Quoting is to prevent editors from complaining about space-tab.
13484 as_nl='
13485 '
13486 export as_nl
13487 IFS=" "" $as_nl"
13488
13489 PS1='$ '
13490 PS2='> '
13491 PS4='+ '
13492
13493 # Ensure predictable behavior from utilities with locale-dependent output.
13494 LC_ALL=C
13495 export LC_ALL
13496 LANGUAGE=C
13497 export LANGUAGE
13498
13499 # We cannot yet rely on "unset" to work, but we need these variables
13500 # to be unset--not just set to an empty or harmless value--now, to
13501 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13502 # also avoids known problems related to "unset" and subshell syntax
13503 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13504 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13505 do eval test \${$as_var+y} \
13506 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13507 done
13508
13509 # Ensure that fds 0, 1, and 2 are open.
13510 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13511 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13512 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13513
13514 # The user is always right.
13515 if ${PATH_SEPARATOR+false} :; then
13516 PATH_SEPARATOR=:
13517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13519 PATH_SEPARATOR=';'
13520 }
13521 fi
13522
13523
13524 # Find who we are. Look in the path if we contain no directory separator.
13525 as_myself=
13526 case $0 in #((
13527 *[\\/]* ) as_myself=$0 ;;
13528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 case $as_dir in #(((
13533 '') as_dir=./ ;;
13534 */) ;;
13535 *) as_dir=$as_dir/ ;;
13536 esac
13537 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13538 done
13539 IFS=$as_save_IFS
13540
13541 ;;
13542 esac
13543 # We did not find ourselves, most probably we were run as 'sh COMMAND'
13544 # in which case we are not to be found in the path.
13545 if test "x$as_myself" = x; then
13546 as_myself=$0
13547 fi
13548 if test ! -f "$as_myself"; then
13549 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13550 exit 1
13551 fi
13552
13553
13554
13555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13556 # ----------------------------------------
13557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13559 # script with STATUS, using 1 if that was 0.
13560 as_fn_error ()
13561 {
13562 as_status=$1; test $as_status -eq 0 && as_status=1
13563 if test "$4"; then
13564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13566 fi
13567 printf "%s\n" "$as_me: error: $2" >&2
13568 as_fn_exit $as_status
13569 } # as_fn_error
13570
13571
13572 # as_fn_set_status STATUS
13573 # -----------------------
13574 # Set $? to STATUS, without forking.
13575 as_fn_set_status ()
13576 {
13577 return $1
13578 } # as_fn_set_status
13579
13580 # as_fn_exit STATUS
13581 # -----------------
13582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13583 as_fn_exit ()
13584 {
13585 set +e
13586 as_fn_set_status $1
13587 exit $1
13588 } # as_fn_exit
13589
13590 # as_fn_unset VAR
13591 # ---------------
13592 # Portably unset VAR.
13593 as_fn_unset ()
13594 {
13595 { eval $1=; unset $1;}
13596 }
13597 as_unset=as_fn_unset
13598
13599 # as_fn_append VAR VALUE
13600 # ----------------------
13601 # Append the text in VALUE to the end of the definition contained in VAR. Take
13602 # advantage of any shell optimizations that allow amortized linear growth over
13603 # repeated appends, instead of the typical quadratic growth present in naive
13604 # implementations.
13605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13606 then :
13607 eval 'as_fn_append ()
13608 {
13609 eval $1+=\$2
13610 }'
13611 else case e in #(
13612 e) as_fn_append ()
13613 {
13614 eval $1=\$$1\$2
13615 } ;;
13616 esac
13617 fi # as_fn_append
13618
13619 # as_fn_arith ARG...
13620 # ------------------
13621 # Perform arithmetic evaluation on the ARGs, and store the result in the
13622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13623 # must be portable across $(()) and expr.
13624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13625 then :
13626 eval 'as_fn_arith ()
13627 {
13628 as_val=$(( $* ))
13629 }'
13630 else case e in #(
13631 e) as_fn_arith ()
13632 {
13633 as_val=`expr "$@" || test $? -eq 1`
13634 } ;;
13635 esac
13636 fi # as_fn_arith
13637
13638
13639 if expr a : '\(a\)' >/dev/null 2>&1 &&
13640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13641 as_expr=expr
13642 else
13643 as_expr=false
13644 fi
13645
13646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13647 as_basename=basename
13648 else
13649 as_basename=false
13650 fi
13651
13652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13653 as_dirname=dirname
13654 else
13655 as_dirname=false
13656 fi
13657
13658 as_me=`$as_basename -- "$0" ||
13659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13660 X"$0" : 'X\(//\)$' \| \
13661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13662 printf "%s\n" X/"$0" |
13663 sed '/^.*\/\([^/][^/]*\)\/*$/{
13664 s//\1/
13665 q
13666 }
13667 /^X\/\(\/\/\)$/{
13668 s//\1/
13669 q
13670 }
13671 /^X\/\(\/\).*/{
13672 s//\1/
13673 q
13674 }
13675 s/.*/./; q'`
13676
13677 # Avoid depending upon Character Ranges.
13678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13681 as_cr_digits='0123456789'
13682 as_cr_alnum=$as_cr_Letters$as_cr_digits
13683
13684
13685 # Determine whether it's possible to make 'echo' print without a newline.
13686 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13687 # for compatibility with existing Makefiles.
13688 ECHO_C= ECHO_N= ECHO_T=
13689 case `echo -n x` in #(((((
13690 -n*)
13691 case `echo 'xy\c'` in
13692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13693 xy) ECHO_C='\c';;
13694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13695 ECHO_T=' ';;
13696 esac;;
13697 *)
13698 ECHO_N='-n';;
13699 esac
13700
13701 # For backward compatibility with old third-party macros, we provide
13702 # the shell variables $as_echo and $as_echo_n. New code should use
13703 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13704 as_echo='printf %s\n'
13705 as_echo_n='printf %s'
13706
13707 rm -f conf$$ conf$$.exe conf$$.file
13708 if test -d conf$$.dir; then
13709 rm -f conf$$.dir/conf$$.file
13710 else
13711 rm -f conf$$.dir
13712 mkdir conf$$.dir 2>/dev/null
13713 fi
13714 if (echo >conf$$.file) 2>/dev/null; then
13715 if ln -s conf$$.file conf$$ 2>/dev/null; then
13716 as_ln_s='ln -s'
13717 # ... but there are two gotchas:
13718 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13719 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13720 # In both cases, we have to default to 'cp -pR'.
13721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13722 as_ln_s='cp -pR'
13723 elif ln conf$$.file conf$$ 2>/dev/null; then
13724 as_ln_s=ln
13725 else
13726 as_ln_s='cp -pR'
13727 fi
13728 else
13729 as_ln_s='cp -pR'
13730 fi
13731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13732 rmdir conf$$.dir 2>/dev/null
13733
13734
13735 # as_fn_mkdir_p
13736 # -------------
13737 # Create "$as_dir" as a directory, including parents if necessary.
13738 as_fn_mkdir_p ()
13739 {
13740
13741 case $as_dir in #(
13742 -*) as_dir=./$as_dir;;
13743 esac
13744 test -d "$as_dir" || eval $as_mkdir_p || {
13745 as_dirs=
13746 while :; do
13747 case $as_dir in #(
13748 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13749 *) as_qdir=$as_dir;;
13750 esac
13751 as_dirs="'$as_qdir' $as_dirs"
13752 as_dir=`$as_dirname -- "$as_dir" ||
13753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13754 X"$as_dir" : 'X\(//\)[^/]' \| \
13755 X"$as_dir" : 'X\(//\)$' \| \
13756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13757 printf "%s\n" X"$as_dir" |
13758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13759 s//\1/
13760 q
13761 }
13762 /^X\(\/\/\)[^/].*/{
13763 s//\1/
13764 q
13765 }
13766 /^X\(\/\/\)$/{
13767 s//\1/
13768 q
13769 }
13770 /^X\(\/\).*/{
13771 s//\1/
13772 q
13773 }
13774 s/.*/./; q'`
13775 test -d "$as_dir" && break
13776 done
13777 test -z "$as_dirs" || eval "mkdir $as_dirs"
13778 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13779
13780
13781 } # as_fn_mkdir_p
13782 if mkdir -p . 2>/dev/null; then
13783 as_mkdir_p='mkdir -p "$as_dir"'
13784 else
13785 test -d ./-p && rmdir ./-p
13786 as_mkdir_p=false
13787 fi
13788
13789
13790 # as_fn_executable_p FILE
13791 # -----------------------
13792 # Test if FILE is an executable regular file.
13793 as_fn_executable_p ()
13794 {
13795 test -f "$1" && test -x "$1"
13796 } # as_fn_executable_p
13797 as_test_x='test -x'
13798 as_executable_p=as_fn_executable_p
13799
13800 # Sed expression to map a string onto a valid CPP name.
13801 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13802 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13803
13804 # Sed expression to map a string onto a valid variable name.
13805 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13806 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13807
13808
13809 exec 6>&1
13810 ## ----------------------------------- ##
13811 ## Main body of $CONFIG_STATUS script. ##
13812 ## ----------------------------------- ##
13813 _ASEOF
13814 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13815
13816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13817 # Save the log message, to keep $0 and so on meaningful, and to
13818 # report actual input values of CONFIG_FILES etc. instead of their
13819 # values after options handling.
13820 ac_log="
13821 This file was extended by sbc $as_me 2.1, which was
13822 generated by GNU Autoconf 2.72. Invocation command line was
13823
13824 CONFIG_FILES = $CONFIG_FILES
13825 CONFIG_HEADERS = $CONFIG_HEADERS
13826 CONFIG_LINKS = $CONFIG_LINKS
13827 CONFIG_COMMANDS = $CONFIG_COMMANDS
13828 $ $0 $@
13829
13830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13831 "
13832
13833 _ACEOF
13834
13835 case $ac_config_files in *"
13836 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13837 esac
13838
13839 case $ac_config_headers in *"
13840 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13841 esac
13842
13843
13844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13845 # Files that config.status was made for.
13846 config_files="$ac_config_files"
13847 config_headers="$ac_config_headers"
13848 config_commands="$ac_config_commands"
13849
13850 _ACEOF
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 ac_cs_usage="\
13854 '$as_me' instantiates files and other configuration actions
13855 from templates according to the current configuration. Unless the files
13856 and actions are specified as TAGs, all are instantiated by default.
13857
13858 Usage: $0 [OPTION]... [TAG]...
13859
13860 -h, --help print this help, then exit
13861 -V, --version print version number and configuration settings, then exit
13862 --config print configuration, then exit
13863 -q, --quiet, --silent
13864 do not print progress messages
13865 -d, --debug don't remove temporary files
13866 --recheck update $as_me by reconfiguring in the same conditions
13867 --file=FILE[:TEMPLATE]
13868 instantiate the configuration file FILE
13869 --header=FILE[:TEMPLATE]
13870 instantiate the configuration header FILE
13871
13872 Configuration files:
13873 $config_files
13874
13875 Configuration headers:
13876 $config_headers
13877
13878 Configuration commands:
13879 $config_commands
13880
13881 Report bugs to the package provider."
13882
13883 _ACEOF
13884 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13885 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887 ac_cs_config='$ac_cs_config_escaped'
13888 ac_cs_version="\\
13889 sbc config.status 2.1
13890 configured by $0, generated by GNU Autoconf 2.72,
13891 with options \\"\$ac_cs_config\\"
13892
13893 Copyright (C) 2023 Free Software Foundation, Inc.
13894 This config.status script is free software; the Free Software Foundation
13895 gives unlimited permission to copy, distribute and modify it."
13896
13897 ac_pwd='$ac_pwd'
13898 srcdir='$srcdir'
13899 INSTALL='$INSTALL'
13900 MKDIR_P='$MKDIR_P'
13901 AWK='$AWK'
13902 test -n "\$AWK" || AWK=awk
13903 _ACEOF
13904
13905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906 # The default lists apply if the user does not specify any file.
13907 ac_need_defaults=:
13908 while test $# != 0
13909 do
13910 case $1 in
13911 --*=?*)
13912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13914 ac_shift=:
13915 ;;
13916 --*=)
13917 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13918 ac_optarg=
13919 ac_shift=:
13920 ;;
13921 *)
13922 ac_option=$1
13923 ac_optarg=$2
13924 ac_shift=shift
13925 ;;
13926 esac
13927
13928 case $ac_option in
13929 # Handling of the options.
13930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13931 ac_cs_recheck=: ;;
13932 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13933 printf "%s\n" "$ac_cs_version"; exit ;;
13934 --config | --confi | --conf | --con | --co | --c )
13935 printf "%s\n" "$ac_cs_config"; exit ;;
13936 --debug | --debu | --deb | --de | --d | -d )
13937 debug=: ;;
13938 --file | --fil | --fi | --f )
13939 $ac_shift
13940 case $ac_optarg in
13941 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13942 '') as_fn_error $? "missing file argument" ;;
13943 esac
13944 as_fn_append CONFIG_FILES " '$ac_optarg'"
13945 ac_need_defaults=false;;
13946 --header | --heade | --head | --hea )
13947 $ac_shift
13948 case $ac_optarg in
13949 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13950 esac
13951 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13952 ac_need_defaults=false;;
13953 --he | --h)
13954 # Conflict between --help and --header
13955 as_fn_error $? "ambiguous option: '$1'
13956 Try '$0 --help' for more information.";;
13957 --help | --hel | -h )
13958 printf "%s\n" "$ac_cs_usage"; exit ;;
13959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13961 ac_cs_silent=: ;;
13962
13963 # This is an error.
13964 -*) as_fn_error $? "unrecognized option: '$1'
13965 Try '$0 --help' for more information." ;;
13966
13967 *) as_fn_append ac_config_targets " $1"
13968 ac_need_defaults=false ;;
13969
13970 esac
13971 shift
13972 done
13973
13974 ac_configure_extra_args=
13975
13976 if $ac_cs_silent; then
13977 exec 6>/dev/null
13978 ac_configure_extra_args="$ac_configure_extra_args --silent"
13979 fi
13980
13981 _ACEOF
13982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983 if \$ac_cs_recheck; then
13984 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13985 shift
13986 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13987 CONFIG_SHELL='$SHELL'
13988 export CONFIG_SHELL
13989 exec "\$@"
13990 fi
13991
13992 _ACEOF
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994 exec 5>>config.log
13995 {
13996 echo
13997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13998 ## Running $as_me. ##
13999 _ASBOX
14000 printf "%s\n" "$ac_log"
14001 } >&5
14002
14003 _ACEOF
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 #
14006 # INIT-COMMANDS
14007 #
14008 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14009
14010
14011 # The HP-UX ksh and POSIX shell print the target directory to stdout
14012 # if CDPATH is set.
14013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14014
14015 sed_quote_subst='$sed_quote_subst'
14016 double_quote_subst='$double_quote_subst'
14017 delay_variable_subst='$delay_variable_subst'
14018 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14019 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14020 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14021 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14022 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14023 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14024 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14025 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14026 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14027 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14028 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14029 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14030 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14031 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14032 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14033 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14034 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14035 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14036 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14037 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14038 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14039 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14040 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14041 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14042 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14043 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14044 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14045 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14046 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14047 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14048 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14049 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14050 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14051 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14052 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14053 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14054 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14055 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14056 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14057 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14058 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14059 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14060 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14061 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14062 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14063 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14064 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14065 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14066 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14067 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14068 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14069 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14070 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14071 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14072 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14073 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14074 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14076 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14078 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"`'
14079 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14080 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14081 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14082 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14083 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14084 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14085 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14086 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14087 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14088 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14089 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14090 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14091 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14092 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14093 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14094 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14095 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14096 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14097 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14098 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14099 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14100 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14101 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14102 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14103 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14104 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14105 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14106 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14107 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14108 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14109 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14110 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14111 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14112 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14113 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14114 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14115 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14116 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14117 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14118 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14119 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14120 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14121 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14122 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14123 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14124 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14125 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14126 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14127 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14128 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14129 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14130 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14131 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14132 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14133 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14134 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14135 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14136 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14137 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14138 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14139 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14140 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14141 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14142 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14143 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14144 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14145 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14146 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14147 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14148 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14149 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14150 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14151 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14152 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14153 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14154 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14155
14156 LTCC='$LTCC'
14157 LTCFLAGS='$LTCFLAGS'
14158 compiler='$compiler_DEFAULT'
14159
14160 # A function that is used when there is no print builtin or printf.
14161 func_fallback_echo ()
14162 {
14163 eval 'cat <<_LTECHO_EOF
14164 \$1
14165 _LTECHO_EOF'
14166 }
14167
14168 # Quote evaled strings.
14169 for var in SHELL \
14170 ECHO \
14171 PATH_SEPARATOR \
14172 SED \
14173 GREP \
14174 EGREP \
14175 FGREP \
14176 LD \
14177 NM \
14178 LN_S \
14179 lt_SP2NL \
14180 lt_NL2SP \
14181 reload_flag \
14182 FILECMD \
14183 OBJDUMP \
14184 deplibs_check_method \
14185 file_magic_cmd \
14186 file_magic_glob \
14187 want_nocaseglob \
14188 DLLTOOL \
14189 sharedlib_from_linklib_cmd \
14190 AR \
14191 archiver_list_spec \
14192 STRIP \
14193 RANLIB \
14194 CC \
14195 CFLAGS \
14196 compiler \
14197 lt_cv_sys_global_symbol_pipe \
14198 lt_cv_sys_global_symbol_to_cdecl \
14199 lt_cv_sys_global_symbol_to_import \
14200 lt_cv_sys_global_symbol_to_c_name_address \
14201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14202 lt_cv_nm_interface \
14203 nm_file_list_spec \
14204 lt_cv_truncate_bin \
14205 lt_prog_compiler_no_builtin_flag \
14206 lt_prog_compiler_pic \
14207 lt_prog_compiler_wl \
14208 lt_prog_compiler_static \
14209 lt_cv_prog_compiler_c_o \
14210 need_locks \
14211 MANIFEST_TOOL \
14212 DSYMUTIL \
14213 NMEDIT \
14214 LIPO \
14215 OTOOL \
14216 OTOOL64 \
14217 shrext_cmds \
14218 export_dynamic_flag_spec \
14219 whole_archive_flag_spec \
14220 compiler_needs_object \
14221 with_gnu_ld \
14222 allow_undefined_flag \
14223 no_undefined_flag \
14224 hardcode_libdir_flag_spec \
14225 hardcode_libdir_separator \
14226 exclude_expsyms \
14227 include_expsyms \
14228 file_list_spec \
14229 variables_saved_for_relink \
14230 libname_spec \
14231 library_names_spec \
14232 soname_spec \
14233 install_override_mode \
14234 finish_eval \
14235 old_striplib \
14236 striplib; do
14237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14238 *[\\\\\\\`\\"\\\$]*)
14239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14240 ;;
14241 *)
14242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14243 ;;
14244 esac
14245 done
14246
14247 # Double-quote double-evaled strings.
14248 for var in reload_cmds \
14249 old_postinstall_cmds \
14250 old_postuninstall_cmds \
14251 old_archive_cmds \
14252 extract_expsyms_cmds \
14253 old_archive_from_new_cmds \
14254 old_archive_from_expsyms_cmds \
14255 archive_cmds \
14256 archive_expsym_cmds \
14257 module_cmds \
14258 module_expsym_cmds \
14259 export_symbols_cmds \
14260 prelink_cmds \
14261 postlink_cmds \
14262 postinstall_cmds \
14263 postuninstall_cmds \
14264 finish_cmds \
14265 sys_lib_search_path_spec \
14266 configure_time_dlsearch_path \
14267 configure_time_lt_sys_library_path; do
14268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14269 *[\\\\\\\`\\"\\\$]*)
14270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14271 ;;
14272 *)
14273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14274 ;;
14275 esac
14276 done
14277
14278 ac_aux_dir='$ac_aux_dir'
14279
14280 # See if we are running on zsh, and set the options that allow our
14281 # commands through without removal of \ escapes INIT.
14282 if test -n "\${ZSH_VERSION+set}"; then
14283 setopt NO_GLOB_SUBST
14284 fi
14285
14286
14287 PACKAGE='$PACKAGE'
14288 VERSION='$VERSION'
14289 RM='$RM'
14290 ofile='$ofile'
14291
14292
14293
14294
14295 _ACEOF
14296
14297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14298
14299 # Handling of arguments.
14300 for ac_config_target in $ac_config_targets
14301 do
14302 case $ac_config_target in
14303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14304 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14305 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14307 "sbc/sbc.pc") CONFIG_FILES="$CONFIG_FILES sbc/sbc.pc" ;;
14308
14309 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
14310 esac
14311 done
14312
14313
14314 # If the user did not use the arguments to specify the items to instantiate,
14315 # then the envvar interface is used. Set only those that are not.
14316 # We use the long form for the default assignment because of an extremely
14317 # bizarre bug on SunOS 4.1.3.
14318 if $ac_need_defaults; then
14319 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14320 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14321 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14322 fi
14323
14324 # Have a temporary directory for convenience. Make it in the build tree
14325 # simply because there is no reason against having it here, and in addition,
14326 # creating and moving files from /tmp can sometimes cause problems.
14327 # Hook for its removal unless debugging.
14328 # Note that there is a small window in which the directory will not be cleaned:
14329 # after its creation but before its name has been assigned to '$tmp'.
14330 $debug ||
14331 {
14332 tmp= ac_tmp=
14333 trap 'exit_status=$?
14334 : "${ac_tmp:=$tmp}"
14335 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14336 ' 0
14337 trap 'as_fn_exit 1' 1 2 13 15
14338 }
14339 # Create a (secure) tmp directory for tmp files.
14340
14341 {
14342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14343 test -d "$tmp"
14344 } ||
14345 {
14346 tmp=./conf$$-$RANDOM
14347 (umask 077 && mkdir "$tmp")
14348 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14349 ac_tmp=$tmp
14350
14351 # Set up the scripts for CONFIG_FILES section.
14352 # No need to generate them if there are no CONFIG_FILES.
14353 # This happens for instance with './config.status config.h'.
14354 if test -n "$CONFIG_FILES"; then
14355
14356
14357 ac_cr=`echo X | tr X '\015'`
14358 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14359 # But we know of no other shell where ac_cr would be empty at this
14360 # point, so we can use a bashism as a fallback.
14361 if test "x$ac_cr" = x; then
14362 eval ac_cr=\$\'\\r\'
14363 fi
14364 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14365 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14366 ac_cs_awk_cr='\\r'
14367 else
14368 ac_cs_awk_cr=$ac_cr
14369 fi
14370
14371 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14372 _ACEOF
14373
14374
14375 {
14376 echo "cat >conf$$subs.awk <<_ACEOF" &&
14377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14378 echo "_ACEOF"
14379 } >conf$$subs.sh ||
14380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14382 ac_delim='%!_!# '
14383 for ac_last_try in false false false false false :; do
14384 . ./conf$$subs.sh ||
14385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14386
14387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14388 if test $ac_delim_n = $ac_delim_num; then
14389 break
14390 elif $ac_last_try; then
14391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14392 else
14393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14394 fi
14395 done
14396 rm -f conf$$subs.sh
14397
14398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14399 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14400 _ACEOF
14401 sed -n '
14402 h
14403 s/^/S["/; s/!.*/"]=/
14404 p
14405 g
14406 s/^[^!]*!//
14407 :repl
14408 t repl
14409 s/'"$ac_delim"'$//
14410 t delim
14411 :nl
14412 h
14413 s/\(.\{148\}\)..*/\1/
14414 t more1
14415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14416 p
14417 n
14418 b repl
14419 :more1
14420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14421 p
14422 g
14423 s/.\{148\}//
14424 t nl
14425 :delim
14426 h
14427 s/\(.\{148\}\)..*/\1/
14428 t more2
14429 s/["\\]/\\&/g; s/^/"/; s/$/"/
14430 p
14431 b
14432 :more2
14433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14434 p
14435 g
14436 s/.\{148\}//
14437 t delim
14438 ' <conf$$subs.awk | sed '
14439 /^[^""]/{
14440 N
14441 s/\n//
14442 }
14443 ' >>$CONFIG_STATUS || ac_write_fail=1
14444 rm -f conf$$subs.awk
14445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446 _ACAWK
14447 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14448 for (key in S) S_is_set[key] = 1
14449 FS = ""
14450
14451 }
14452 {
14453 line = $ 0
14454 nfields = split(line, field, "@")
14455 substed = 0
14456 len = length(field[1])
14457 for (i = 2; i < nfields; i++) {
14458 key = field[i]
14459 keylen = length(key)
14460 if (S_is_set[key]) {
14461 value = S[key]
14462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14463 len += length(value) + length(field[++i])
14464 substed = 1
14465 } else
14466 len += 1 + keylen
14467 }
14468
14469 print line
14470 }
14471
14472 _ACAWK
14473 _ACEOF
14474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14476 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14477 else
14478 cat
14479 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14480 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14481 _ACEOF
14482
14483 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14484 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14485 # trailing colons and then remove the whole line if VPATH becomes empty
14486 # (actually we leave an empty line to preserve line numbers).
14487 if test "x$srcdir" = x.; then
14488 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14489 h
14490 s///
14491 s/^/:/
14492 s/[ ]*$/:/
14493 s/:\$(srcdir):/:/g
14494 s/:\${srcdir}:/:/g
14495 s/:@srcdir@:/:/g
14496 s/^:*//
14497 s/:*$//
14498 x
14499 s/\(=[ ]*\).*/\1/
14500 G
14501 s/\n//
14502 s/^[^=]*=[ ]*$//
14503 }'
14504 fi
14505
14506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14507 fi # test -n "$CONFIG_FILES"
14508
14509 # Set up the scripts for CONFIG_HEADERS section.
14510 # No need to generate them if there are no CONFIG_HEADERS.
14511 # This happens for instance with './config.status Makefile'.
14512 if test -n "$CONFIG_HEADERS"; then
14513 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14514 BEGIN {
14515 _ACEOF
14516
14517 # Transform confdefs.h into an awk script 'defines.awk', embedded as
14518 # here-document in config.status, that substitutes the proper values into
14519 # config.h.in to produce config.h.
14520
14521 # Create a delimiter string that does not exist in confdefs.h, to ease
14522 # handling of long lines.
14523 ac_delim='%!_!# '
14524 for ac_last_try in false false :; do
14525 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14526 if test -z "$ac_tt"; then
14527 break
14528 elif $ac_last_try; then
14529 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14530 else
14531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14532 fi
14533 done
14534
14535 # For the awk script, D is an array of macro values keyed by name,
14536 # likewise P contains macro parameters if any. Preserve backslash
14537 # newline sequences.
14538
14539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14540 sed -n '
14541 s/.\{148\}/&'"$ac_delim"'/g
14542 t rset
14543 :rset
14544 s/^[ ]*#[ ]*define[ ][ ]*/ /
14545 t def
14546 d
14547 :def
14548 s/\\$//
14549 t bsnl
14550 s/["\\]/\\&/g
14551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14552 D["\1"]=" \3"/p
14553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14554 d
14555 :bsnl
14556 s/["\\]/\\&/g
14557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14558 D["\1"]=" \3\\\\\\n"\\/p
14559 t cont
14560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14561 t cont
14562 d
14563 :cont
14564 n
14565 s/.\{148\}/&'"$ac_delim"'/g
14566 t clear
14567 :clear
14568 s/\\$//
14569 t bsnlc
14570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14571 d
14572 :bsnlc
14573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14574 b cont
14575 ' <confdefs.h | sed '
14576 s/'"$ac_delim"'/"\\\
14577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14578
14579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14580 for (key in D) D_is_set[key] = 1
14581 FS = ""
14582 }
14583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14584 line = \$ 0
14585 split(line, arg, " ")
14586 if (arg[1] == "#") {
14587 defundef = arg[2]
14588 mac1 = arg[3]
14589 } else {
14590 defundef = substr(arg[1], 2)
14591 mac1 = arg[2]
14592 }
14593 split(mac1, mac2, "(") #)
14594 macro = mac2[1]
14595 prefix = substr(line, 1, index(line, defundef) - 1)
14596 if (D_is_set[macro]) {
14597 # Preserve the white space surrounding the "#".
14598 print prefix "define", macro P[macro] D[macro]
14599 next
14600 } else {
14601 # Replace #undef with comments. This is necessary, for example,
14602 # in the case of _POSIX_SOURCE, which is predefined and required
14603 # on some systems where configure will not decide to define it.
14604 if (defundef == "undef") {
14605 print "/*", prefix defundef, macro, "*/"
14606 next
14607 }
14608 }
14609 }
14610 { print }
14611 _ACAWK
14612 _ACEOF
14613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14615 fi # test -n "$CONFIG_HEADERS"
14616
14617
14618 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14619 shift
14620 for ac_tag
14621 do
14622 case $ac_tag in
14623 :[FHLC]) ac_mode=$ac_tag; continue;;
14624 esac
14625 case $ac_mode$ac_tag in
14626 :[FHL]*:*);;
14627 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
14628 :[FH]-) ac_tag=-:-;;
14629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14630 esac
14631 ac_save_IFS=$IFS
14632 IFS=:
14633 set x $ac_tag
14634 IFS=$ac_save_IFS
14635 shift
14636 ac_file=$1
14637 shift
14638
14639 case $ac_mode in
14640 :L) ac_source=$1;;
14641 :[FH])
14642 ac_file_inputs=
14643 for ac_f
14644 do
14645 case $ac_f in
14646 -) ac_f="$ac_tmp/stdin";;
14647 *) # Look for the file first in the build tree, then in the source tree
14648 # (if the path is not absolute). The absolute path cannot be DOS-style,
14649 # because $ac_f cannot contain ':'.
14650 test -f "$ac_f" ||
14651 case $ac_f in
14652 [\\/$]*) false;;
14653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14654 esac ||
14655 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
14656 esac
14657 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14658 as_fn_append ac_file_inputs " '$ac_f'"
14659 done
14660
14661 # Let's still pretend it is 'configure' which instantiates (i.e., don't
14662 # use $as_me), people would be surprised to read:
14663 # /* config.h. Generated by config.status. */
14664 configure_input='Generated from '`
14665 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14666 `' by configure.'
14667 if test x"$ac_file" != x-; then
14668 configure_input="$ac_file. $configure_input"
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14670 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14671 fi
14672 # Neutralize special characters interpreted by sed in replacement strings.
14673 case $configure_input in #(
14674 *\&* | *\|* | *\\* )
14675 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14677 *) ac_sed_conf_input=$configure_input;;
14678 esac
14679
14680 case $ac_tag in
14681 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14683 esac
14684 ;;
14685 esac
14686
14687 ac_dir=`$as_dirname -- "$ac_file" ||
14688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14689 X"$ac_file" : 'X\(//\)[^/]' \| \
14690 X"$ac_file" : 'X\(//\)$' \| \
14691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14692 printf "%s\n" X"$ac_file" |
14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14694 s//\1/
14695 q
14696 }
14697 /^X\(\/\/\)[^/].*/{
14698 s//\1/
14699 q
14700 }
14701 /^X\(\/\/\)$/{
14702 s//\1/
14703 q
14704 }
14705 /^X\(\/\).*/{
14706 s//\1/
14707 q
14708 }
14709 s/.*/./; q'`
14710 as_dir="$ac_dir"; as_fn_mkdir_p
14711 ac_builddir=.
14712
14713 case "$ac_dir" in
14714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14715 *)
14716 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14717 # A ".." for each directory in $ac_dir_suffix.
14718 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14719 case $ac_top_builddir_sub in
14720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14722 esac ;;
14723 esac
14724 ac_abs_top_builddir=$ac_pwd
14725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14726 # for backward compatibility:
14727 ac_top_builddir=$ac_top_build_prefix
14728
14729 case $srcdir in
14730 .) # We are building in place.
14731 ac_srcdir=.
14732 ac_top_srcdir=$ac_top_builddir_sub
14733 ac_abs_top_srcdir=$ac_pwd ;;
14734 [\\/]* | ?:[\\/]* ) # Absolute name.
14735 ac_srcdir=$srcdir$ac_dir_suffix;
14736 ac_top_srcdir=$srcdir
14737 ac_abs_top_srcdir=$srcdir ;;
14738 *) # Relative name.
14739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14740 ac_top_srcdir=$ac_top_build_prefix$srcdir
14741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14742 esac
14743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14744
14745
14746 case $ac_mode in
14747 :F)
14748 #
14749 # CONFIG_FILE
14750 #
14751
14752 case $INSTALL in
14753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14755 esac
14756 ac_MKDIR_P=$MKDIR_P
14757 case $MKDIR_P in
14758 [\\/$]* | ?:[\\/]* ) ;;
14759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14760 esac
14761 _ACEOF
14762
14763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764 # If the template does not know about datarootdir, expand it.
14765 # FIXME: This hack should be removed a few years after 2.60.
14766 ac_datarootdir_hack=; ac_datarootdir_seen=
14767 ac_sed_dataroot='
14768 /datarootdir/ {
14769 p
14770 q
14771 }
14772 /@datadir@/p
14773 /@docdir@/p
14774 /@infodir@/p
14775 /@localedir@/p
14776 /@mandir@/p'
14777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14778 *datarootdir*) ac_datarootdir_seen=yes;;
14779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14781 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14782 _ACEOF
14783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14784 ac_datarootdir_hack='
14785 s&@datadir@&$datadir&g
14786 s&@docdir@&$docdir&g
14787 s&@infodir@&$infodir&g
14788 s&@localedir@&$localedir&g
14789 s&@mandir@&$mandir&g
14790 s&\\\${datarootdir}&$datarootdir&g' ;;
14791 esac
14792 _ACEOF
14793
14794 # Neutralize VPATH when '$srcdir' = '.'.
14795 # Shell code in configure.ac might set extrasub.
14796 # FIXME: do we really want to maintain this feature?
14797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14798 ac_sed_extra="$ac_vpsub
14799 $extrasub
14800 _ACEOF
14801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14802 :t
14803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14804 s|@configure_input@|$ac_sed_conf_input|;t t
14805 s&@top_builddir@&$ac_top_builddir_sub&;t t
14806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14807 s&@srcdir@&$ac_srcdir&;t t
14808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14809 s&@top_srcdir@&$ac_top_srcdir&;t t
14810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14811 s&@builddir@&$ac_builddir&;t t
14812 s&@abs_builddir@&$ac_abs_builddir&;t t
14813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14814 s&@INSTALL@&$ac_INSTALL&;t t
14815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14816 $ac_datarootdir_hack
14817 "
14818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14819 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14820
14821 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14822 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14823 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14824 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14826 which seems to be undefined. Please make sure it is defined" >&5
14827 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14828 which seems to be undefined. Please make sure it is defined" >&2;}
14829
14830 rm -f "$ac_tmp/stdin"
14831 case $ac_file in
14832 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14833 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14834 esac \
14835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14836 ;;
14837 :H)
14838 #
14839 # CONFIG_HEADER
14840 #
14841 if test x"$ac_file" != x-; then
14842 {
14843 printf "%s\n" "/* $configure_input */" >&1 \
14844 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14845 } >"$ac_tmp/config.h" \
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14847 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14849 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14850 else
14851 rm -f "$ac_file"
14852 mv "$ac_tmp/config.h" "$ac_file" \
14853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14854 fi
14855 else
14856 printf "%s\n" "/* $configure_input */" >&1 \
14857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14858 || as_fn_error $? "could not create -" "$LINENO" 5
14859 fi
14860 # Compute "$ac_file"'s index in $config_headers.
14861 _am_arg="$ac_file"
14862 _am_stamp_count=1
14863 for _am_header in $config_headers :; do
14864 case $_am_header in
14865 $_am_arg | $_am_arg:* )
14866 break ;;
14867 * )
14868 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14869 esac
14870 done
14871 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14872 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14873 X"$_am_arg" : 'X\(//\)[^/]' \| \
14874 X"$_am_arg" : 'X\(//\)$' \| \
14875 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14876 printf "%s\n" X"$_am_arg" |
14877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14878 s//\1/
14879 q
14880 }
14881 /^X\(\/\/\)[^/].*/{
14882 s//\1/
14883 q
14884 }
14885 /^X\(\/\/\)$/{
14886 s//\1/
14887 q
14888 }
14889 /^X\(\/\).*/{
14890 s//\1/
14891 q
14892 }
14893 s/.*/./; q'`/stamp-h$_am_stamp_count
14894 ;;
14895
14896 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14897 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14898 ;;
14899 esac
14900
14901
14902 case $ac_file$ac_mode in
14903 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14904 # Older Autoconf quotes --file arguments for eval, but not when files
14905 # are listed without --file. Let's play safe and only enable the eval
14906 # if we detect the quoting.
14907 # TODO: see whether this extra hack can be removed once we start
14908 # requiring Autoconf 2.70 or later.
14909 case $CONFIG_FILES in #(
14910 *\'*) :
14911 eval set x "$CONFIG_FILES" ;; #(
14912 *) :
14913 set x $CONFIG_FILES ;; #(
14914 *) :
14915 ;;
14916 esac
14917 shift
14918 # Used to flag and report bootstrapping failures.
14919 am_rc=0
14920 for am_mf
14921 do
14922 # Strip MF so we end up with the name of the file.
14923 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14924 # Check whether this is an Automake generated Makefile which includes
14925 # dependency-tracking related rules and includes.
14926 # Grep'ing the whole file directly is not great: AIX grep has a line
14927 # limit of 2048, but all sed's we know have understand at least 4000.
14928 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14929 || continue
14930 am_dirpart=`$as_dirname -- "$am_mf" ||
14931 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14932 X"$am_mf" : 'X\(//\)[^/]' \| \
14933 X"$am_mf" : 'X\(//\)$' \| \
14934 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14935 printf "%s\n" X"$am_mf" |
14936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14937 s//\1/
14938 q
14939 }
14940 /^X\(\/\/\)[^/].*/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\/\)$/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\).*/{
14949 s//\1/
14950 q
14951 }
14952 s/.*/./; q'`
14953 am_filepart=`$as_basename -- "$am_mf" ||
14954 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14955 X"$am_mf" : 'X\(//\)$' \| \
14956 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14957 printf "%s\n" X/"$am_mf" |
14958 sed '/^.*\/\([^/][^/]*\)\/*$/{
14959 s//\1/
14960 q
14961 }
14962 /^X\/\(\/\/\)$/{
14963 s//\1/
14964 q
14965 }
14966 /^X\/\(\/\).*/{
14967 s//\1/
14968 q
14969 }
14970 s/.*/./; q'`
14971 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14972 && sed -e '/# am--include-marker/d' "$am_filepart" \
14973 | $MAKE -f - am--depfiles" >&5
14974 (cd "$am_dirpart" \
14975 && sed -e '/# am--include-marker/d' "$am_filepart" \
14976 | $MAKE -f - am--depfiles) >&5 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } || am_rc=$?
14980 done
14981 if test $am_rc -ne 0; then
14982 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14983 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14984 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14985 for automatic dependency tracking. If GNU make was not used, consider
14986 re-running the configure script with MAKE=\"gmake\" (or whatever is
14987 necessary). You can also try re-running configure with the
14988 '--disable-dependency-tracking' option to at least be able to build
14989 the package (albeit without support for automatic dependency tracking).
14990 See 'config.log' for more details" "$LINENO" 5; }
14991 fi
14992 { am_dirpart=; unset am_dirpart;}
14993 { am_filepart=; unset am_filepart;}
14994 { am_mf=; unset am_mf;}
14995 { am_rc=; unset am_rc;}
14996 rm -f conftest-deps.mk
14997 }
14998 ;;
14999 "libtool":C)
15000
15001 # See if we are running on zsh, and set the options that allow our
15002 # commands through without removal of \ escapes.
15003 if test -n "${ZSH_VERSION+set}"; then
15004 setopt NO_GLOB_SUBST
15005 fi
15006
15007 cfgfile=${ofile}T
15008 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15009 $RM "$cfgfile"
15010
15011 cat <<_LT_EOF >> "$cfgfile"
15012 #! $SHELL
15013 # Generated automatically by $as_me ($PACKAGE) $VERSION
15014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15015
15016 # Provide generalized library-building support services.
15017 # Written by Gordon Matzigkeit, 1996
15018
15019 # Copyright (C) 2014 Free Software Foundation, Inc.
15020 # This is free software; see the source for copying conditions. There is NO
15021 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15022
15023 # GNU Libtool is free software; you can redistribute it and/or modify
15024 # it under the terms of the GNU General Public License as published by
15025 # the Free Software Foundation; either version 2 of of the License, or
15026 # (at your option) any later version.
15027 #
15028 # As a special exception to the GNU General Public License, if you
15029 # distribute this file as part of a program or library that is built
15030 # using GNU Libtool, you may include this file under the same
15031 # distribution terms that you use for the rest of that program.
15032 #
15033 # GNU Libtool is distributed in the hope that it will be useful, but
15034 # WITHOUT ANY WARRANTY; without even the implied warranty of
15035 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15036 # GNU General Public License for more details.
15037 #
15038 # You should have received a copy of the GNU General Public License
15039 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15040
15041
15042 # The names of the tagged configurations supported by this script.
15043 available_tags=''
15044
15045 # Configured defaults for sys_lib_dlsearch_path munging.
15046 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15047
15048 # ### BEGIN LIBTOOL CONFIG
15049
15050 # Which release of libtool.m4 was used?
15051 macro_version=$macro_version
15052 macro_revision=$macro_revision
15053
15054 # Whether or not to build static libraries.
15055 build_old_libs=$enable_static
15056
15057 # Whether or not to build shared libraries.
15058 build_libtool_libs=$enable_shared
15059
15060 # What type of objects to build.
15061 pic_mode=$pic_mode
15062
15063 # Whether or not to optimize for fast installation.
15064 fast_install=$enable_fast_install
15065
15066 # Shared archive member basename,for filename based shared library versioning on AIX.
15067 shared_archive_member_spec=$shared_archive_member_spec
15068
15069 # Shell to use when invoking shell scripts.
15070 SHELL=$lt_SHELL
15071
15072 # An echo program that protects backslashes.
15073 ECHO=$lt_ECHO
15074
15075 # The PATH separator for the build system.
15076 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15077
15078 # The host system.
15079 host_alias=$host_alias
15080 host=$host
15081 host_os=$host_os
15082
15083 # The build system.
15084 build_alias=$build_alias
15085 build=$build
15086 build_os=$build_os
15087
15088 # A sed program that does not truncate output.
15089 SED=$lt_SED
15090
15091 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15092 Xsed="\$SED -e 1s/^X//"
15093
15094 # A grep program that handles long lines.
15095 GREP=$lt_GREP
15096
15097 # An ERE matcher.
15098 EGREP=$lt_EGREP
15099
15100 # A literal string matcher.
15101 FGREP=$lt_FGREP
15102
15103 # A BSD- or MS-compatible name lister.
15104 NM=$lt_NM
15105
15106 # Whether we need soft or hard links.
15107 LN_S=$lt_LN_S
15108
15109 # What is the maximum length of a command?
15110 max_cmd_len=$max_cmd_len
15111
15112 # Object file suffix (normally "o").
15113 objext=$ac_objext
15114
15115 # Executable file suffix (normally "").
15116 exeext=$exeext
15117
15118 # whether the shell understands "unset".
15119 lt_unset=$lt_unset
15120
15121 # turn spaces into newlines.
15122 SP2NL=$lt_lt_SP2NL
15123
15124 # turn newlines into spaces.
15125 NL2SP=$lt_lt_NL2SP
15126
15127 # convert \$build file names to \$host format.
15128 to_host_file_cmd=$lt_cv_to_host_file_cmd
15129
15130 # convert \$build files to toolchain format.
15131 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15132
15133 # A file(cmd) program that detects file types.
15134 FILECMD=$lt_FILECMD
15135
15136 # An object symbol dumper.
15137 OBJDUMP=$lt_OBJDUMP
15138
15139 # Method to check whether dependent libraries are shared objects.
15140 deplibs_check_method=$lt_deplibs_check_method
15141
15142 # Command to use when deplibs_check_method = "file_magic".
15143 file_magic_cmd=$lt_file_magic_cmd
15144
15145 # How to find potential files when deplibs_check_method = "file_magic".
15146 file_magic_glob=$lt_file_magic_glob
15147
15148 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15149 want_nocaseglob=$lt_want_nocaseglob
15150
15151 # DLL creation program.
15152 DLLTOOL=$lt_DLLTOOL
15153
15154 # Command to associate shared and link libraries.
15155 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15156
15157 # The archiver.
15158 AR=$lt_AR
15159
15160 # Flags to create an archive (by configure).
15161 lt_ar_flags=$lt_ar_flags
15162
15163 # Flags to create an archive.
15164 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15165
15166 # How to feed a file listing to the archiver.
15167 archiver_list_spec=$lt_archiver_list_spec
15168
15169 # A symbol stripping program.
15170 STRIP=$lt_STRIP
15171
15172 # Commands used to install an old-style archive.
15173 RANLIB=$lt_RANLIB
15174 old_postinstall_cmds=$lt_old_postinstall_cmds
15175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15176
15177 # Whether to use a lock for old archive extraction.
15178 lock_old_archive_extraction=$lock_old_archive_extraction
15179
15180 # A C compiler.
15181 LTCC=$lt_CC
15182
15183 # LTCC compiler flags.
15184 LTCFLAGS=$lt_CFLAGS
15185
15186 # Take the output of nm and produce a listing of raw symbols and C names.
15187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15188
15189 # Transform the output of nm in a proper C declaration.
15190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15191
15192 # Transform the output of nm into a list of symbols to manually relocate.
15193 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15194
15195 # Transform the output of nm in a C name address pair.
15196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15197
15198 # Transform the output of nm in a C name address pair when lib prefix is needed.
15199 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15200
15201 # The name lister interface.
15202 nm_interface=$lt_lt_cv_nm_interface
15203
15204 # Specify filename containing input files for \$NM.
15205 nm_file_list_spec=$lt_nm_file_list_spec
15206
15207 # The root where to search for dependent libraries,and where our libraries should be installed.
15208 lt_sysroot=$lt_sysroot
15209
15210 # Command to truncate a binary pipe.
15211 lt_truncate_bin=$lt_lt_cv_truncate_bin
15212
15213 # The name of the directory that contains temporary libtool files.
15214 objdir=$objdir
15215
15216 # Used to examine libraries when file_magic_cmd begins with "file".
15217 MAGIC_CMD=$MAGIC_CMD
15218
15219 # Must we lock files when doing compilation?
15220 need_locks=$lt_need_locks
15221
15222 # Manifest tool.
15223 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15224
15225 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15226 DSYMUTIL=$lt_DSYMUTIL
15227
15228 # Tool to change global to local symbols on Mac OS X.
15229 NMEDIT=$lt_NMEDIT
15230
15231 # Tool to manipulate fat objects and archives on Mac OS X.
15232 LIPO=$lt_LIPO
15233
15234 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15235 OTOOL=$lt_OTOOL
15236
15237 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15238 OTOOL64=$lt_OTOOL64
15239
15240 # Old archive suffix (normally "a").
15241 libext=$libext
15242
15243 # Shared library suffix (normally ".so").
15244 shrext_cmds=$lt_shrext_cmds
15245
15246 # The commands to extract the exported symbol list from a shared archive.
15247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15248
15249 # Variables whose values should be saved in libtool wrapper scripts and
15250 # restored at link time.
15251 variables_saved_for_relink=$lt_variables_saved_for_relink
15252
15253 # Do we need the "lib" prefix for modules?
15254 need_lib_prefix=$need_lib_prefix
15255
15256 # Do we need a version for libraries?
15257 need_version=$need_version
15258
15259 # Library versioning type.
15260 version_type=$version_type
15261
15262 # Shared library runtime path variable.
15263 runpath_var=$runpath_var
15264
15265 # Shared library path variable.
15266 shlibpath_var=$shlibpath_var
15267
15268 # Is shlibpath searched before the hard-coded library search path?
15269 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15270
15271 # Format of library name prefix.
15272 libname_spec=$lt_libname_spec
15273
15274 # List of archive names. First name is the real one, the rest are links.
15275 # The last name is the one that the linker finds with -lNAME
15276 library_names_spec=$lt_library_names_spec
15277
15278 # The coded name of the library, if different from the real name.
15279 soname_spec=$lt_soname_spec
15280
15281 # Permission mode override for installation of shared libraries.
15282 install_override_mode=$lt_install_override_mode
15283
15284 # Command to use after installation of a shared archive.
15285 postinstall_cmds=$lt_postinstall_cmds
15286
15287 # Command to use after uninstallation of a shared archive.
15288 postuninstall_cmds=$lt_postuninstall_cmds
15289
15290 # Commands used to finish a libtool library installation in a directory.
15291 finish_cmds=$lt_finish_cmds
15292
15293 # As "finish_cmds", except a single script fragment to be evaled but
15294 # not shown.
15295 finish_eval=$lt_finish_eval
15296
15297 # Whether we should hardcode library paths into libraries.
15298 hardcode_into_libs=$hardcode_into_libs
15299
15300 # Compile-time system search path for libraries.
15301 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15302
15303 # Detected run-time system search path for libraries.
15304 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15305
15306 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15307 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15308
15309 # Whether dlopen is supported.
15310 dlopen_support=$enable_dlopen
15311
15312 # Whether dlopen of programs is supported.
15313 dlopen_self=$enable_dlopen_self
15314
15315 # Whether dlopen of statically linked programs is supported.
15316 dlopen_self_static=$enable_dlopen_self_static
15317
15318 # Commands to strip libraries.
15319 old_striplib=$lt_old_striplib
15320 striplib=$lt_striplib
15321
15322
15323 # The linker used to build libraries.
15324 LD=$lt_LD
15325
15326 # How to create reloadable object files.
15327 reload_flag=$lt_reload_flag
15328 reload_cmds=$lt_reload_cmds
15329
15330 # Commands used to build an old-style archive.
15331 old_archive_cmds=$lt_old_archive_cmds
15332
15333 # A language specific compiler.
15334 CC=$lt_compiler
15335
15336 # Is the compiler the GNU compiler?
15337 with_gcc=$GCC
15338
15339 # Compiler flag to turn off builtin functions.
15340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15341
15342 # Additional compiler flags for building library objects.
15343 pic_flag=$lt_lt_prog_compiler_pic
15344
15345 # How to pass a linker flag through the compiler.
15346 wl=$lt_lt_prog_compiler_wl
15347
15348 # Compiler flag to prevent dynamic linking.
15349 link_static_flag=$lt_lt_prog_compiler_static
15350
15351 # Does compiler simultaneously support -c and -o options?
15352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15353
15354 # Whether or not to add -lc for building shared libraries.
15355 build_libtool_need_lc=$archive_cmds_need_lc
15356
15357 # Whether or not to disallow shared libs when runtime libs are static.
15358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15359
15360 # Compiler flag to allow reflexive dlopens.
15361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15362
15363 # Compiler flag to generate shared objects directly from archives.
15364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15365
15366 # Whether the compiler copes with passing no objects directly.
15367 compiler_needs_object=$lt_compiler_needs_object
15368
15369 # Create an old-style archive from a shared archive.
15370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15371
15372 # Create a temporary old-style archive to link instead of a shared archive.
15373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15374
15375 # Commands used to build a shared archive.
15376 archive_cmds=$lt_archive_cmds
15377 archive_expsym_cmds=$lt_archive_expsym_cmds
15378
15379 # Commands used to build a loadable module if different from building
15380 # a shared archive.
15381 module_cmds=$lt_module_cmds
15382 module_expsym_cmds=$lt_module_expsym_cmds
15383
15384 # Whether we are building with GNU ld or not.
15385 with_gnu_ld=$lt_with_gnu_ld
15386
15387 # Flag that allows shared libraries with undefined symbols to be built.
15388 allow_undefined_flag=$lt_allow_undefined_flag
15389
15390 # Flag that enforces no undefined symbols.
15391 no_undefined_flag=$lt_no_undefined_flag
15392
15393 # Flag to hardcode \$libdir into a binary during linking.
15394 # This must work even if \$libdir does not exist
15395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15396
15397 # Whether we need a single "-rpath" flag with a separated argument.
15398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15399
15400 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15401 # DIR into the resulting binary.
15402 hardcode_direct=$hardcode_direct
15403
15404 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15405 # DIR into the resulting binary and the resulting library dependency is
15406 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15407 # library is relocated.
15408 hardcode_direct_absolute=$hardcode_direct_absolute
15409
15410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15411 # into the resulting binary.
15412 hardcode_minus_L=$hardcode_minus_L
15413
15414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15415 # into the resulting binary.
15416 hardcode_shlibpath_var=$hardcode_shlibpath_var
15417
15418 # Set to "yes" if building a shared library automatically hardcodes DIR
15419 # into the library and all subsequent libraries and executables linked
15420 # against it.
15421 hardcode_automatic=$hardcode_automatic
15422
15423 # Set to yes if linker adds runtime paths of dependent libraries
15424 # to runtime path list.
15425 inherit_rpath=$inherit_rpath
15426
15427 # Whether libtool must link a program against all its dependency libraries.
15428 link_all_deplibs=$link_all_deplibs
15429
15430 # Set to "yes" if exported symbols are required.
15431 always_export_symbols=$always_export_symbols
15432
15433 # The commands to list exported symbols.
15434 export_symbols_cmds=$lt_export_symbols_cmds
15435
15436 # Symbols that should not be listed in the preloaded symbols.
15437 exclude_expsyms=$lt_exclude_expsyms
15438
15439 # Symbols that must always be exported.
15440 include_expsyms=$lt_include_expsyms
15441
15442 # Commands necessary for linking programs (against libraries) with templates.
15443 prelink_cmds=$lt_prelink_cmds
15444
15445 # Commands necessary for finishing linking programs.
15446 postlink_cmds=$lt_postlink_cmds
15447
15448 # Specify filename containing input files.
15449 file_list_spec=$lt_file_list_spec
15450
15451 # How to hardcode a shared library path into an executable.
15452 hardcode_action=$hardcode_action
15453
15454 # ### END LIBTOOL CONFIG
15455
15456 _LT_EOF
15457
15458 cat <<'_LT_EOF' >> "$cfgfile"
15459
15460 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15461
15462 # func_munge_path_list VARIABLE PATH
15463 # -----------------------------------
15464 # VARIABLE is name of variable containing _space_ separated list of
15465 # directories to be munged by the contents of PATH, which is string
15466 # having a format:
15467 # "DIR[:DIR]:"
15468 # string "DIR[ DIR]" will be prepended to VARIABLE
15469 # ":DIR[:DIR]"
15470 # string "DIR[ DIR]" will be appended to VARIABLE
15471 # "DIRP[:DIRP]::[DIRA:]DIRA"
15472 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15473 # "DIRA[ DIRA]" will be appended to VARIABLE
15474 # "DIR[:DIR]"
15475 # VARIABLE will be replaced by "DIR[ DIR]"
15476 func_munge_path_list ()
15477 {
15478 case x$2 in
15479 x)
15480 ;;
15481 *:)
15482 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15483 ;;
15484 x:*)
15485 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15486 ;;
15487 *::*)
15488 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15489 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15490 ;;
15491 *)
15492 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15493 ;;
15494 esac
15495 }
15496
15497
15498 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15499 func_cc_basename ()
15500 {
15501 for cc_temp in $*""; do
15502 case $cc_temp in
15503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15505 \-*) ;;
15506 *) break;;
15507 esac
15508 done
15509 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15510 }
15511
15512
15513 # ### END FUNCTIONS SHARED WITH CONFIGURE
15514
15515 _LT_EOF
15516
15517 case $host_os in
15518 aix3*)
15519 cat <<\_LT_EOF >> "$cfgfile"
15520 # AIX sometimes has problems with the GCC collect2 program. For some
15521 # reason, if we set the COLLECT_NAMES environment variable, the problems
15522 # vanish in a puff of smoke.
15523 if test set != "${COLLECT_NAMES+set}"; then
15524 COLLECT_NAMES=
15525 export COLLECT_NAMES
15526 fi
15527 _LT_EOF
15528 ;;
15529 esac
15530
15531
15532
15533 ltmain=$ac_aux_dir/ltmain.sh
15534
15535
15536 # We use sed instead of cat because bash on DJGPP gets confused if
15537 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15538 # text mode, it properly converts lines to CR/LF. This bash problem
15539 # is reportedly fixed, but why not run on old versions too?
15540 $SED '$q' "$ltmain" >> "$cfgfile" \
15541 || (rm -f "$cfgfile"; exit 1)
15542
15543 mv -f "$cfgfile" "$ofile" ||
15544 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15545 chmod +x "$ofile"
15546
15547 ;;
15548
15549 esac
15550 done # for ac_tag
15551
15552
15553 as_fn_exit 0
15554 _ACEOF
15555 ac_clean_files=$ac_clean_files_save
15556
15557 test $ac_write_fail = 0 ||
15558 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15559
15560
15561 # configure is writing to config.log, and then calls config.status.
15562 # config.status does its own redirection, appending to config.log.
15563 # Unfortunately, on DOS this fails, as config.log is still kept open
15564 # by configure, so config.status won't be able to write to it; its
15565 # output is simply discarded. So we exec the FD to /dev/null,
15566 # effectively closing config.log, so it can be properly (re)opened and
15567 # appended to by config.status. When coming back to configure, we
15568 # need to make the FD available again.
15569 if test "$no_create" != yes; then
15570 ac_cs_success=:
15571 ac_config_status_args=
15572 test "$silent" = yes &&
15573 ac_config_status_args="$ac_config_status_args --quiet"
15574 exec 5>/dev/null
15575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15576 exec 5>>config.log
15577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15578 # would make configure fail if this is the last instruction.
15579 $ac_cs_success || as_fn_exit 1
15580 fi
15581 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15583 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15584 fi
15585
15586
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
15588 $PACKAGE_NAME $VERSION
15589 " >&5
15590 printf "%s\n" "
15591 $PACKAGE_NAME $VERSION
15592 " >&6; }
15593