Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="include/portaudio.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 enable_option_checking=no
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 WITH_ASIO_FALSE
636 WITH_ASIO_TRUE
637 ENABLE_CXX_FALSE
638 ENABLE_CXX_TRUE
639 subdirs
640 INCLUDES
641 NASMOPT
642 NASM
643 DLL_LIBS
644 THREAD_CFLAGS
645 SHARED_FLAGS
646 PADLL
647 OTHER_OBJS
648 LT_AGE
649 LT_REVISION
650 LT_CURRENT
651 JACK_LIBS
652 JACK_CFLAGS
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 CXXCPP
660 CPP
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 AWK
668 RANLIB
669 STRIP
670 ac_ct_AR
671 AR
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 EGREP
679 GREP
680 SED
681 LIBTOOL
682 OBJDUMP
683 DLLTOOL
684 AS
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 runstatedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 with_alsa
750 with_jack
751 with_oss
752 with_asihpi
753 with_winapi
754 with_asiodir
755 with_dxdir
756 enable_debug_output
757 enable_cxx
758 enable_mac_debug
759 enable_mac_universal
760 with_host_os
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CXX
778 CXXFLAGS
779 CCC
780 CPP
781 CXXCPP
782 PKG_CONFIG
783 PKG_CONFIG_PATH
784 PKG_CONFIG_LIBDIR
785 JACK_CFLAGS
786 JACK_LIBS'
787 ac_subdirs_all='bindings/cpp'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 runstatedir='${localstatedir}/run'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -runstatedir | --runstatedir | --runstatedi | --runstated \
1079 | --runstate | --runstat | --runsta | --runst | --runs \
1080 | --run | --ru | --r)
1081 ac_prev=runstatedir ;;
1082 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1083 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1084 | --run=* | --ru=* | --r=*)
1085 runstatedir=$ac_optarg ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=\$ac_optarg ;;
1147
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 ;;
1203
1204 esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1210 fi
1211
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1218 fi
1219
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir runstatedir
1225 do
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1240
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1247
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255 fi
1256
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260 test "$silent" = yes && exec 6>/dev/null
1261
1262
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1301 fi
1302 else
1303 ac_srcdir_defaulted=no
1304 fi
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 fi
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures this package to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403
1404 cat <<\_ACEOF
1405
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-debug-output Enable debug output [no]
1411 --enable-cxx Enable C++ bindings [no]
1412 --enable-mac-debug Enable Mac debug [no]
1413 --enable-mac-universal Build Mac universal binaries [yes]
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-alsa Enable support for ALSA [autodetect]
1424 --with-jack Enable support for JACK [autodetect]
1425 --with-oss Enable support for OSS [autodetect]
1426 --with-asihpi Enable support for ASIHPI [autodetect]
1427 --with-winapi Select Windows API support
1428 ([wmme|directx|asio|wasapi|wdmks][,...]) [wmme]
1429 --with-asiodir ASIO directory [/usr/local/asiosdk2]
1430 --with-dxdir DirectX directory [/usr/local/dx7sdk]
1431
1432 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1433 both]
1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 --with-sysroot=DIR Search for dependent libraries within DIR
1436 (or the compiler's sysroot if not specified).
1437
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1448 CPP C preprocessor
1449 CXXCPP C++ preprocessor
1450 PKG_CONFIG path to pkg-config utility
1451 PKG_CONFIG_PATH
1452 directories to add to pkg-config's search path
1453 PKG_CONFIG_LIBDIR
1454 path overriding pkg-config's built-in search path
1455 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1456 JACK_LIBS linker flags for JACK, overriding pkg-config
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to the package provider.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 configure
1525 generated by GNU Autoconf 2.69
1526
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_cxx_try_compile LINENO
1577 # ----------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_cxx_try_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_cxx_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_cxx_try_compile
1613
1614 # ac_fn_c_try_link LINENO
1615 # -----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_link ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext conftest$ac_exeext
1621 if { { ac_try="$ac_link"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest$ac_exeext && {
1640 test "$cross_compiling" = yes ||
1641 test -x conftest$ac_exeext
1642 }; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1652 # interfere with the next link command; also delete a directory that is
1653 # left behind by Apple's compiler. We do this before executing the actions.
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_link
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } > conftest.i && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_cpp
1727
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=$ac_status
1763 fi
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_run
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_cxx_try_cpp LINENO
1838 # ------------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_cpp ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } > conftest.i && {
1859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1871
1872 } # ac_fn_cxx_try_cpp
1873
1874 # ac_fn_cxx_try_link LINENO
1875 # -------------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_cxx_try_link
1919
1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923 # the include files in INCLUDES and setting the cache variable VAR
1924 # accordingly.
1925 ac_fn_c_check_header_mongrel ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if eval \${$3+:} false; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 else
1938 # Is the header compilable?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940 $as_echo_n "checking $2 usability... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 $4
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_header_compiler=yes
1948 else
1949 ac_header_compiler=no
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953 $as_echo "$ac_header_compiler" >&6; }
1954
1955 # Is the header present?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957 $as_echo_n "checking $2 presence... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 ac_header_preproc=yes
1964 else
1965 ac_header_preproc=no
1966 fi
1967 rm -f conftest.err conftest.i conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969 $as_echo "$ac_header_preproc" >&6; }
1970
1971 # So? What about this header?
1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 yes:no: )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 ;;
1979 no:yes:* )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1983 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1987 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ;;
1991 esac
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 eval "$3=\$ac_header_compiler"
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 fi
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_header_mongrel
2006
2007 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2008 # --------------------------------------------
2009 # Tries to find the compile-time value of EXPR in a program that includes
2010 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 # computed
2012 ac_fn_c_compute_int ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if test "$cross_compiling" = yes; then
2016 # Depending upon the size, compute the lo and hi bounds.
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= 0)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_lo=0 ac_mid=0
2033 while :; do
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 int
2038 main ()
2039 {
2040 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2041 test_array [0] = 0;
2042 return test_array [0];
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_hi=$ac_mid; break
2050 else
2051 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2052 if test $ac_lo -le $ac_mid; then
2053 ac_lo= ac_hi=
2054 break
2055 fi
2056 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) < 0)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_hi=-1 ac_mid=-1
2077 while :; do
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2085 test_array [0] = 0;
2086 return test_array [0];
2087
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_lo=$ac_mid; break
2094 else
2095 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2096 if test $ac_mid -le $ac_hi; then
2097 ac_lo= ac_hi=
2098 break
2099 fi
2100 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104 else
2105 ac_lo= ac_hi=
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 # Binary search between lo and hi bounds.
2111 while test "x$ac_lo" != "x$ac_hi"; do
2112 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 test_array [0] = 0;
2121 return test_array [0];
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid
2129 else
2130 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 done
2134 case $ac_lo in #((
2135 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2136 '') ac_retval=1 ;;
2137 esac
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 static long int longval () { return $2; }
2143 static unsigned long int ulongval () { return $2; }
2144 #include <stdio.h>
2145 #include <stdlib.h>
2146 int
2147 main ()
2148 {
2149
2150 FILE *f = fopen ("conftest.val", "w");
2151 if (! f)
2152 return 1;
2153 if (($2) < 0)
2154 {
2155 long int i = longval ();
2156 if (i != ($2))
2157 return 1;
2158 fprintf (f, "%ld", i);
2159 }
2160 else
2161 {
2162 unsigned long int i = ulongval ();
2163 if (i != ($2))
2164 return 1;
2165 fprintf (f, "%lu", i);
2166 }
2167 /* Do not output a trailing newline, as this causes \r\n confusion
2168 on some platforms. */
2169 return ferror (f) || fclose (f) != 0;
2170
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_run "$LINENO"; then :
2176 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2177 else
2178 ac_retval=1
2179 fi
2180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181 conftest.$ac_objext conftest.beam conftest.$ac_ext
2182 rm -f conftest.val
2183
2184 fi
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 as_fn_set_status $ac_retval
2187
2188 } # ac_fn_c_compute_int
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2192
2193 It was created by $as_me, which was
2194 generated by GNU Autoconf 2.69. Invocation command line was
2195
2196 $ $0 $@
2197
2198 _ACEOF
2199 exec 5>>config.log
2200 {
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2205
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2222
2223 _ASUNAME
2224
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2231 done
2232 IFS=$as_save_IFS
2233
2234 } >&5
2235
2236 cat >&5 <<_ACEOF
2237
2238
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2242
2243 _ACEOF
2244
2245
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2256 do
2257 for ac_arg
2258 do
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 2)
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2282 ;;
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2285 fi
2286 as_fn_append ac_configure_args " '$ac_arg'"
2287 ;;
2288 esac
2289 done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2293
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2301 {
2302 echo
2303
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2307 echo
2308 # The following way of writing the cache mishandles newlines in values,
2309 (
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in #(
2313 *${as_nl}*)
2314 case $ac_var in #(
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317 esac
2318 case $ac_var in #(
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2322 esac ;;
2323 esac
2324 done
2325 (set) 2>&1 |
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2328 sed -n \
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331 ;; #(
2332 *)
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334 ;;
2335 esac |
2336 sort
2337 )
2338 echo
2339
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2343 echo
2344 for ac_var in $ac_subst_vars
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2358 echo
2359 for ac_var in $ac_subst_files
2360 do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 $as_echo "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2368 fi
2369
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2372 ## confdefs.h. ##
2373 ## ----------- ##"
2374 echo
2375 cat confdefs.h
2376 echo
2377 fi
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2381 } >&5
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2384 exit $exit_status
2385 ' 0
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2388 done
2389 ac_signal=0
2390
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2393
2394 $as_echo "/* confdefs.h */" > confdefs.h
2395
2396 # Predefined preprocessor variables.
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2420 _ACEOF
2421
2422
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2425 ac_site_file1=NONE
2426 ac_site_file2=NONE
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1=./$CONFIG_SITE;;
2431 */*) ac_site_file1=$CONFIG_SITE;;
2432 *) ac_site_file1=./$CONFIG_SITE;;
2433 esac
2434 elif test "x$prefix" != xNONE; then
2435 ac_site_file1=$prefix/share/config.site
2436 ac_site_file2=$prefix/etc/config.site
2437 else
2438 ac_site_file1=$ac_default_prefix/share/config.site
2439 ac_site_file2=$ac_default_prefix/etc/config.site
2440 fi
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 do
2443 test "x$ac_site_file" = xNONE && continue
2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2448 . "$ac_site_file" \
2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2453 fi
2454 done
2455
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 case $cache_file in
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2465 esac
2466 fi
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470 >$cache_file
2471 fi
2472
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2491 *)
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2521 fi
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541
2542 PAMAC_TEST_PROGRAM="
2543 /* cdefs.h checks for supported architectures. */
2544 #include <sys/cdefs.h>
2545 int main() {
2546 return 0;
2547 }
2548 "
2549
2550 ac_aux_dir=
2551 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2552 if test -f "$ac_dir/install-sh"; then
2553 ac_aux_dir=$ac_dir
2554 ac_install_sh="$ac_aux_dir/install-sh -c"
2555 break
2556 elif test -f "$ac_dir/install.sh"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/install.sh -c"
2559 break
2560 elif test -f "$ac_dir/shtool"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/shtool install -c"
2563 break
2564 fi
2565 done
2566 if test -z "$ac_aux_dir"; then
2567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2568 fi
2569
2570 # These three variables are undocumented and unsupported,
2571 # and are intended to be withdrawn in a future Autoconf release.
2572 # They can cause serious problems if a builder's source tree is in a directory
2573 # whose full name contains unusual characters.
2574 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2575 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2576 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2577
2578
2579 # Make sure we can run config.sub.
2580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2581 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2582
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2584 $as_echo_n "checking build system type... " >&6; }
2585 if ${ac_cv_build+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 ac_build_alias=$build_alias
2589 test "x$ac_build_alias" = x &&
2590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2591 test "x$ac_build_alias" = x &&
2592 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2595
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2598 $as_echo "$ac_cv_build" >&6; }
2599 case $ac_cv_build in
2600 *-*-*) ;;
2601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2602 esac
2603 build=$ac_cv_build
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_build
2606 shift
2607 build_cpu=$1
2608 build_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 build_os=$*
2613 IFS=$ac_save_IFS
2614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2615
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2618 $as_echo_n "checking host system type... " >&6; }
2619 if ${ac_cv_host+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test "x$host_alias" = x; then
2623 ac_cv_host=$ac_cv_build
2624 else
2625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2627 fi
2628
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2631 $as_echo "$ac_cv_host" >&6; }
2632 case $ac_cv_host in
2633 *-*-*) ;;
2634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2635 esac
2636 host=$ac_cv_host
2637 ac_save_IFS=$IFS; IFS='-'
2638 set x $ac_cv_host
2639 shift
2640 host_cpu=$1
2641 host_vendor=$2
2642 shift; shift
2643 # Remember, the first character of IFS is used to create $*,
2644 # except with old shells:
2645 host_os=$*
2646 IFS=$ac_save_IFS
2647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2648
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2651 $as_echo_n "checking target system type... " >&6; }
2652 if ${ac_cv_target+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test "x$target_alias" = x; then
2656 ac_cv_target=$ac_cv_host
2657 else
2658 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2659 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2660 fi
2661
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2664 $as_echo "$ac_cv_target" >&6; }
2665 case $ac_cv_target in
2666 *-*-*) ;;
2667 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2668 esac
2669 target=$ac_cv_target
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_target
2672 shift
2673 target_cpu=$1
2674 target_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 target_os=$*
2679 IFS=$ac_save_IFS
2680 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2681
2682
2683 # The aliases save the names the user supplied, while $host etc.
2684 # will get canonicalized.
2685 test -n "$target_alias" &&
2686 test "$program_prefix$program_suffix$program_transform_name" = \
2687 NONENONEs,x,x, &&
2688 program_prefix=${target_alias}-
2689
2690
2691
2692 # Check whether --with-alsa was given.
2693 if test "${with_alsa+set}" = set; then :
2694 withval=$with_alsa; with_alsa=$withval
2695 fi
2696
2697
2698
2699 # Check whether --with-jack was given.
2700 if test "${with_jack+set}" = set; then :
2701 withval=$with_jack; with_jack=$withval
2702 fi
2703
2704
2705
2706 # Check whether --with-oss was given.
2707 if test "${with_oss+set}" = set; then :
2708 withval=$with_oss; with_oss=$withval
2709 fi
2710
2711
2712
2713 # Check whether --with-asihpi was given.
2714 if test "${with_asihpi+set}" = set; then :
2715 withval=$with_asihpi; with_asihpi=$withval
2716 fi
2717
2718
2719
2720 # Check whether --with-winapi was given.
2721 if test "${with_winapi+set}" = set; then :
2722 withval=$with_winapi; with_winapi=$withval
2723 else
2724 with_winapi="wmme"
2725 fi
2726
2727 case "$target_os" in *mingw* | *cygwin*)
2728 with_wmme=no
2729 with_directx=no
2730 with_asio=no
2731 with_wasapi=no
2732 with_wdmks=no
2733 for api in $(echo $with_winapi | sed 's/,/ /g'); do
2734 case "$api" in
2735 wmme|directx|asio|wasapi|wdmks)
2736 eval with_$api=yes
2737 ;;
2738 *)
2739 as_fn_error $? "unknown Windows API \"$api\" (do you need --help?)" "$LINENO" 5
2740 ;;
2741 esac
2742 done
2743 ;;
2744 esac
2745
2746
2747 # Check whether --with-asiodir was given.
2748 if test "${with_asiodir+set}" = set; then :
2749 withval=$with_asiodir; with_asiodir=$withval
2750 else
2751 with_asiodir="/usr/local/asiosdk2"
2752 fi
2753
2754
2755
2756 # Check whether --with-dxdir was given.
2757 if test "${with_dxdir+set}" = set; then :
2758 withval=$with_dxdir; with_dxdir=$withval
2759 else
2760 with_dxdir="/usr/local/dx7sdk"
2761 fi
2762
2763
2764 debug_output=no
2765 # Check whether --enable-debug-output was given.
2766 if test "${enable_debug_output+set}" = set; then :
2767 enableval=$enable_debug_output; if test "x$enableval" != "xno" ; then
2768
2769 $as_echo "#define PA_ENABLE_DEBUG_OUTPUT /**/" >>confdefs.h
2770
2771 debug_output=yes
2772 fi
2773
2774 fi
2775
2776
2777 # Check whether --enable-cxx was given.
2778 if test "${enable_cxx+set}" = set; then :
2779 enableval=$enable_cxx; enable_cxx=$enableval
2780 else
2781 enable_cxx="no"
2782 fi
2783
2784
2785 # Check whether --enable-mac-debug was given.
2786 if test "${enable_mac_debug+set}" = set; then :
2787 enableval=$enable_mac_debug; enable_mac_debug=$enableval
2788 else
2789 enable_mac_debug="no"
2790 fi
2791
2792
2793 # Check whether --enable-mac-universal was given.
2794 if test "${enable_mac_universal+set}" = set; then :
2795 enableval=$enable_mac_universal; enable_mac_universal=$enableval
2796 else
2797 enable_mac_universal="yes"
2798 fi
2799
2800
2801
2802 # Check whether --with-host_os was given.
2803 if test "${with_host_os+set}" = set; then :
2804 withval=$with_host_os; host_os=$withval
2805 fi
2806
2807
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 fi
2853 if test -z "$ac_cv_prog_CC"; then
2854 ac_ct_CC=$CC
2855 # Extract the first word of "gcc", so it can be a program name with args.
2856 set dummy gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 $as_echo "$ac_ct_CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891 if test "x$ac_ct_CC" = x; then
2892 CC=""
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900 CC=$ac_ct_CC
2901 fi
2902 else
2903 CC="$ac_cv_prog_CC"
2904 fi
2905
2906 if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}cc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="${ac_tool_prefix}cc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 fi
2947 if test -z "$CC"; then
2948 # Extract the first word of "cc", so it can be a program name with args.
2949 set dummy cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 ac_prog_rejected=no
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2967 ac_prog_rejected=yes
2968 continue
2969 fi
2970 ac_cv_prog_CC="cc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 if test $ac_prog_rejected = yes; then
2979 # We found a bogon in the path, so make sure we never use it.
2980 set dummy $ac_cv_prog_CC
2981 shift
2982 if test $# != 0; then
2983 # We chose a different compiler from the bogus one.
2984 # However, it has the same basename, so the bogon will be chosen
2985 # first if we set CC to just the basename; use the full file name.
2986 shift
2987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2988 fi
2989 fi
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$CC"; then
3004 if test -n "$ac_tool_prefix"; then
3005 for ac_prog in cl.exe
3006 do
3007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 test -n "$CC" && break
3045 done
3046 fi
3047 if test -z "$CC"; then
3048 ac_ct_CC=$CC
3049 for ac_prog in cl.exe
3050 do
3051 # Extract the first word of "$ac_prog", so it can be a program name with args.
3052 set dummy $ac_prog; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_ac_ct_CC="$ac_prog"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3081 $as_echo "$ac_ct_CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 test -n "$ac_ct_CC" && break
3089 done
3090
3091 if test "x$ac_ct_CC" = x; then
3092 CC=""
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 CC=$ac_ct_CC
3101 fi
3102 fi
3103
3104 fi
3105
3106
3107 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details" "$LINENO" 5; }
3111
3112 # Provide some information about the compiler.
3113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3114 set X $ac_compile
3115 ac_compiler=$2
3116 for ac_option in --version -v -V -qversion; do
3117 { { ac_try="$ac_compiler $ac_option >&5"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3125 ac_status=$?
3126 if test -s conftest.err; then
3127 sed '10a\
3128 ... rest of stderr output deleted ...
3129 10q' conftest.err >conftest.er1
3130 cat conftest.er1 >&5
3131 fi
3132 rm -f conftest.er1 conftest.err
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 done
3136
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139
3140 int
3141 main ()
3142 {
3143
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 ac_clean_files_save=$ac_clean_files
3149 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3150 # Try to create an executable without -o first, disregard a.out.
3151 # It will help us diagnose broken compilers, and finding out an intuition
3152 # of exeext.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3154 $as_echo_n "checking whether the C compiler works... " >&6; }
3155 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3156
3157 # The possible output files:
3158 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3159
3160 ac_rmfiles=
3161 for ac_file in $ac_files
3162 do
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3166 esac
3167 done
3168 rm -f $ac_rmfiles
3169
3170 if { { ac_try="$ac_link_default"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_link_default") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3184 # so that the user can short-circuit this test for compilers unknown to
3185 # Autoconf.
3186 for ac_file in $ac_files ''
3187 do
3188 test -f "$ac_file" || continue
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3191 ;;
3192 [ab].out )
3193 # We found the default executable, but exeext='' is most
3194 # certainly right.
3195 break;;
3196 *.* )
3197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3198 then :; else
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 fi
3201 # We set ac_cv_exeext here because the later test for it is not
3202 # safe: cross compilers may not add the suffix if given an `-o'
3203 # argument, so we may need to know it at that point already.
3204 # Even if this section looks crufty: it has the advantage of
3205 # actually working.
3206 break;;
3207 * )
3208 break;;
3209 esac
3210 done
3211 test "$ac_cv_exeext" = no && ac_cv_exeext=
3212
3213 else
3214 ac_file=''
3215 fi
3216 if test -z "$ac_file"; then :
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 $as_echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error 77 "C compiler cannot create executables
3225 See \`config.log' for more details" "$LINENO" 5; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231 $as_echo_n "checking for C compiler default output file name... " >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233 $as_echo "$ac_file" >&6; }
3234 ac_exeext=$ac_cv_exeext
3235
3236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3237 ac_clean_files=$ac_clean_files_save
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3239 $as_echo_n "checking for suffix of executables... " >&6; }
3240 if { { ac_try="$ac_link"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3253 # work properly (i.e., refer to `conftest.exe'), while it won't with
3254 # `rm'.
3255 for ac_file in conftest.exe conftest conftest.*; do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 break;;
3261 * ) break;;
3262 esac
3263 done
3264 else
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3268 See \`config.log' for more details" "$LINENO" 5; }
3269 fi
3270 rm -f conftest conftest$ac_cv_exeext
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3272 $as_echo "$ac_cv_exeext" >&6; }
3273
3274 rm -f conftest.$ac_ext
3275 EXEEXT=$ac_cv_exeext
3276 ac_exeext=$EXEEXT
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279 #include <stdio.h>
3280 int
3281 main ()
3282 {
3283 FILE *f = fopen ("conftest.out", "w");
3284 return ferror (f) || fclose (f) != 0;
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files="$ac_clean_files conftest.out"
3291 # Check that the compiler produces executables we can run. If not, either
3292 # the compiler is broken, or we cross compile.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3294 $as_echo_n "checking whether we are cross compiling... " >&6; }
3295 if test "$cross_compiling" != yes; then
3296 { { ac_try="$ac_link"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }
3307 if { ac_try='./conftest$ac_cv_exeext'
3308 { { case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_try") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; }; then
3318 cross_compiling=no
3319 else
3320 if test "$cross_compiling" = maybe; then
3321 cross_compiling=yes
3322 else
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot run C compiled programs.
3326 If you meant to cross compile, use \`--host'.
3327 See \`config.log' for more details" "$LINENO" 5; }
3328 fi
3329 fi
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3332 $as_echo "$cross_compiling" >&6; }
3333
3334 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3335 ac_clean_files=$ac_clean_files_save
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3337 $as_echo_n "checking for suffix of object files... " >&6; }
3338 if ${ac_cv_objext+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.o conftest.obj
3353 if { { ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_compile") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 for ac_file in conftest.o conftest.obj conftest.*; do
3365 test -f "$ac_file" || continue;
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3368 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3369 break;;
3370 esac
3371 done
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot compute suffix of object files: cannot compile
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3384 $as_echo "$ac_cv_objext" >&6; }
3385 OBJEXT=$ac_cv_objext
3386 ac_objext=$OBJEXT
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3388 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3389 if ${ac_cv_c_compiler_gnu+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398 #ifndef __GNUC__
3399 choke me
3400 #endif
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407 ac_compiler_gnu=yes
3408 else
3409 ac_compiler_gnu=no
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3417 if test $ac_compiler_gnu = yes; then
3418 GCC=yes
3419 else
3420 GCC=
3421 fi
3422 ac_test_CFLAGS=${CFLAGS+set}
3423 ac_save_CFLAGS=$CFLAGS
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3426 if ${ac_cv_prog_cc_g+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 ac_save_c_werror_flag=$ac_c_werror_flag
3430 ac_c_werror_flag=yes
3431 ac_cv_prog_cc_g=no
3432 CFLAGS="-g"
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_g=yes
3446 else
3447 CFLAGS=""
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460
3461 else
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3463 CFLAGS="-g"
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_g=yes
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3486 $as_echo "$ac_cv_prog_cc_g" >&6; }
3487 if test "$ac_test_CFLAGS" = set; then
3488 CFLAGS=$ac_save_CFLAGS
3489 elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495 else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3503 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3504 if ${ac_cv_prog_cc_c89+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_cv_prog_cc_c89=no
3508 ac_save_CC=$CC
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <stdarg.h>
3512 #include <stdio.h>
3513 struct stat;
3514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3515 struct buf { int x; };
3516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3517 static char *e (p, i)
3518 char **p;
3519 int i;
3520 {
3521 return p[i];
3522 }
3523 static char *f (char * (*g) (char **, int), char **p, ...)
3524 {
3525 char *s;
3526 va_list v;
3527 va_start (v,p);
3528 s = g (p, va_arg (v,int));
3529 va_end (v);
3530 return s;
3531 }
3532
3533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3534 function prototypes and stuff, but not '\xHH' hex character constants.
3535 These don't provoke an error unfortunately, instead are silently treated
3536 as 'x'. The following induces an error, until -std is added to get
3537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3538 array size at least. It's necessary to write '\x00'==0 to get something
3539 that's true only with -std. */
3540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541
3542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3543 inside strings and character constants. */
3544 #define FOO(x) 'x'
3545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546
3547 int test (int i, double x);
3548 struct s1 {int (*f) (int a);};
3549 struct s2 {int (*f) (double a);};
3550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551 int argc;
3552 char **argv;
3553 int
3554 main ()
3555 {
3556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563 do
3564 CC="$ac_save_CC $ac_arg"
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566 ac_cv_prog_cc_c89=$ac_arg
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext
3569 test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 done
3571 rm -f conftest.$ac_ext
3572 CC=$ac_save_CC
3573
3574 fi
3575 # AC_CACHE_VAL
3576 case "x$ac_cv_prog_cc_c89" in
3577 x)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3579 $as_echo "none needed" >&6; } ;;
3580 xno)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3582 $as_echo "unsupported" >&6; } ;;
3583 *)
3584 CC="$CC $ac_cv_prog_cc_c89"
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 esac
3588 if test "x$ac_cv_prog_cc_c89" != xno; then :
3589
3590 fi
3591
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598 if [ "$with_asio" = "yes" ] || [ "$enable_cxx" = "yes" ] ; then
3599 ac_ext=cpp
3600 ac_cpp='$CXXCPP $CPPFLAGS'
3601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3604 if test -z "$CXX"; then
3605 if test -n "$CCC"; then
3606 CXX=$CCC
3607 else
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3610 do
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CXX+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CXX"; then
3619 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CXX=$ac_cv_prog_CXX
3639 if test -n "$CXX"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3641 $as_echo "$CXX" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648 test -n "$CXX" && break
3649 done
3650 fi
3651 if test -z "$CXX"; then
3652 ac_ct_CXX=$CXX
3653 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3654 do
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy $ac_prog; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -n "$ac_ct_CXX"; then
3663 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_CXX="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3683 if test -n "$ac_ct_CXX"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3685 $as_echo "$ac_ct_CXX" >&6; }
3686 else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 fi
3690
3691
3692 test -n "$ac_ct_CXX" && break
3693 done
3694
3695 if test "x$ac_ct_CXX" = x; then
3696 CXX="g++"
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699 yes:)
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned=yes ;;
3703 esac
3704 CXX=$ac_ct_CXX
3705 fi
3706 fi
3707
3708 fi
3709 fi
3710 # Provide some information about the compiler.
3711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3712 set X $ac_compile
3713 ac_compiler=$2
3714 for ac_option in --version -v -V -qversion; do
3715 { { ac_try="$ac_compiler $ac_option >&5"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 ac_status=$?
3724 if test -s conftest.err; then
3725 sed '10a\
3726 ... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 fi
3730 rm -f conftest.er1 conftest.err
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733 done
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3736 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3737 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746 #ifndef __GNUC__
3747 choke me
3748 #endif
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_cxx_try_compile "$LINENO"; then :
3755 ac_compiler_gnu=yes
3756 else
3757 ac_compiler_gnu=no
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3764 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3765 if test $ac_compiler_gnu = yes; then
3766 GXX=yes
3767 else
3768 GXX=
3769 fi
3770 ac_test_CXXFLAGS=${CXXFLAGS+set}
3771 ac_save_CXXFLAGS=$CXXFLAGS
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3773 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3774 if ${ac_cv_prog_cxx_g+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3778 ac_cxx_werror_flag=yes
3779 ac_cv_prog_cxx_g=no
3780 CXXFLAGS="-g"
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_cxx_try_compile "$LINENO"; then :
3793 ac_cv_prog_cxx_g=yes
3794 else
3795 CXXFLAGS=""
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_cxx_try_compile "$LINENO"; then :
3808
3809 else
3810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3811 CXXFLAGS="-g"
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 int
3816 main ()
3817 {
3818
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_cxx_try_compile "$LINENO"; then :
3824 ac_cv_prog_cxx_g=yes
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3834 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3835 if test "$ac_test_CXXFLAGS" = set; then
3836 CXXFLAGS=$ac_save_CXXFLAGS
3837 elif test $ac_cv_prog_cxx_g = yes; then
3838 if test "$GXX" = yes; then
3839 CXXFLAGS="-g -O2"
3840 else
3841 CXXFLAGS="-g"
3842 fi
3843 else
3844 if test "$GXX" = yes; then
3845 CXXFLAGS="-O2"
3846 else
3847 CXXFLAGS=
3848 fi
3849 fi
3850 ac_ext=c
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855
3856 fi
3857 enable_win32_dll=yes
3858
3859 case $host in
3860 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}as; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_prog_AS+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 if test -n "$AS"; then
3870 ac_cv_prog_AS="$AS" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_AS="${ac_tool_prefix}as"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3885 IFS=$as_save_IFS
3886
3887 fi
3888 fi
3889 AS=$ac_cv_prog_AS
3890 if test -n "$AS"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3892 $as_echo "$AS" >&6; }
3893 else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 fi
3897
3898
3899 fi
3900 if test -z "$ac_cv_prog_AS"; then
3901 ac_ct_AS=$AS
3902 # Extract the first word of "as", so it can be a program name with args.
3903 set dummy as; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$ac_ct_AS"; then
3910 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_AS="as"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923 done
3924 done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3930 if test -n "$ac_ct_AS"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3932 $as_echo "$ac_ct_AS" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3936 fi
3937
3938 if test "x$ac_ct_AS" = x; then
3939 AS="false"
3940 else
3941 case $cross_compiling:$ac_tool_warned in
3942 yes:)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned=yes ;;
3946 esac
3947 AS=$ac_ct_AS
3948 fi
3949 else
3950 AS="$ac_cv_prog_AS"
3951 fi
3952
3953 if test -n "$ac_tool_prefix"; then
3954 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_DLLTOOL+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$DLLTOOL"; then
3962 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 DLLTOOL=$ac_cv_prog_DLLTOOL
3982 if test -n "$DLLTOOL"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3984 $as_echo "$DLLTOOL" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991 fi
3992 if test -z "$ac_cv_prog_DLLTOOL"; then
3993 ac_ct_DLLTOOL=$DLLTOOL
3994 # Extract the first word of "dlltool", so it can be a program name with args.
3995 set dummy dlltool; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 if test -n "$ac_ct_DLLTOOL"; then
4002 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015 done
4016 done
4017 IFS=$as_save_IFS
4018
4019 fi
4020 fi
4021 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4022 if test -n "$ac_ct_DLLTOOL"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4024 $as_echo "$ac_ct_DLLTOOL" >&6; }
4025 else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030 if test "x$ac_ct_DLLTOOL" = x; then
4031 DLLTOOL="false"
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 DLLTOOL=$ac_ct_DLLTOOL
4040 fi
4041 else
4042 DLLTOOL="$ac_cv_prog_DLLTOOL"
4043 fi
4044
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_OBJDUMP+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 if test -n "$OBJDUMP"; then
4054 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 OBJDUMP=$ac_cv_prog_OBJDUMP
4074 if test -n "$OBJDUMP"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4076 $as_echo "$OBJDUMP" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083 fi
4084 if test -z "$ac_cv_prog_OBJDUMP"; then
4085 ac_ct_OBJDUMP=$OBJDUMP
4086 # Extract the first word of "objdump", so it can be a program name with args.
4087 set dummy objdump; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test -n "$ac_ct_OBJDUMP"; then
4094 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107 done
4108 done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4114 if test -n "$ac_ct_OBJDUMP"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4116 $as_echo "$ac_ct_OBJDUMP" >&6; }
4117 else
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122 if test "x$ac_ct_OBJDUMP" = x; then
4123 OBJDUMP="false"
4124 else
4125 case $cross_compiling:$ac_tool_warned in
4126 yes:)
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned=yes ;;
4130 esac
4131 OBJDUMP=$ac_ct_OBJDUMP
4132 fi
4133 else
4134 OBJDUMP="$ac_cv_prog_OBJDUMP"
4135 fi
4136
4137 ;;
4138 esac
4139
4140 test -z "$AS" && AS=as
4141
4142
4143
4144
4145
4146 test -z "$DLLTOOL" && DLLTOOL=dlltool
4147
4148
4149
4150
4151
4152 test -z "$OBJDUMP" && OBJDUMP=objdump
4153
4154
4155
4156
4157
4158
4159
4160 case `pwd` in
4161 *\ * | *\ *)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4163 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4164 esac
4165
4166
4167
4168 macro_version='2.4.2'
4169 macro_revision='1.3337'
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183 ltmain="$ac_aux_dir/ltmain.sh"
4184
4185 # Backslashify metacharacters that are still active within
4186 # double-quoted strings.
4187 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4188
4189 # Same as above, but do not quote variable references.
4190 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4191
4192 # Sed substitution to delay expansion of an escaped shell variable in a
4193 # double_quote_subst'ed string.
4194 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4195
4196 # Sed substitution to delay expansion of an escaped single quote.
4197 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4198
4199 # Sed substitution to avoid accidental globbing in evaled expressions
4200 no_glob_subst='s/\*/\\\*/g'
4201
4202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4203 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4204 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4207 $as_echo_n "checking how to print strings... " >&6; }
4208 # Test print first, because it will be a builtin if present.
4209 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4210 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4211 ECHO='print -r --'
4212 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4213 ECHO='printf %s\n'
4214 else
4215 # Use this function as a fallback that always works.
4216 func_fallback_echo ()
4217 {
4218 eval 'cat <<_LTECHO_EOF
4219 $1
4220 _LTECHO_EOF'
4221 }
4222 ECHO='func_fallback_echo'
4223 fi
4224
4225 # func_echo_all arg...
4226 # Invoke $ECHO with all args, space-separated.
4227 func_echo_all ()
4228 {
4229 $ECHO ""
4230 }
4231
4232 case "$ECHO" in
4233 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4234 $as_echo "printf" >&6; } ;;
4235 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4236 $as_echo "print -r" >&6; } ;;
4237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4238 $as_echo "cat" >&6; } ;;
4239 esac
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4255 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4256 if ${ac_cv_path_SED+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4260 for ac_i in 1 2 3 4 5 6 7; do
4261 ac_script="$ac_script$as_nl$ac_script"
4262 done
4263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4264 { ac_script=; unset ac_script;}
4265 if test -z "$SED"; then
4266 ac_path_SED_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in sed gsed; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4276 as_fn_executable_p "$ac_path_SED" || continue
4277 # Check for GNU ac_path_SED and select it if it is found.
4278 # Check for GNU $ac_path_SED
4279 case `"$ac_path_SED" --version 2>&1` in
4280 *GNU*)
4281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4282 *)
4283 ac_count=0
4284 $as_echo_n 0123456789 >"conftest.in"
4285 while :
4286 do
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 $as_echo '' >> "conftest.nl"
4291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 as_fn_arith $ac_count + 1 && ac_count=$as_val
4294 if test $ac_count -gt ${ac_path_SED_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_SED="$ac_path_SED"
4297 ac_path_SED_max=$ac_count
4298 fi
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4301 done
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305 $ac_path_SED_found && break 3
4306 done
4307 done
4308 done
4309 IFS=$as_save_IFS
4310 if test -z "$ac_cv_path_SED"; then
4311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4312 fi
4313 else
4314 ac_cv_path_SED=$SED
4315 fi
4316
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4319 $as_echo "$ac_cv_path_SED" >&6; }
4320 SED="$ac_cv_path_SED"
4321 rm -f conftest.sed
4322
4323 test -z "$SED" && SED=sed
4324 Xsed="$SED -e 1s/^X//"
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4338 if ${ac_cv_path_GREP+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -z "$GREP"; then
4342 ac_path_GREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in grep ggrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4352 as_fn_executable_p "$ac_path_GREP" || continue
4353 # Check for GNU ac_path_GREP and select it if it is found.
4354 # Check for GNU $ac_path_GREP
4355 case `"$ac_path_GREP" --version 2>&1` in
4356 *GNU*)
4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4358 *)
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4362 do
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'GREP' >> "conftest.nl"
4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_GREP="$ac_path_GREP"
4373 ac_path_GREP_max=$ac_count
4374 fi
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4377 done
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381 $ac_path_GREP_found && break 3
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_GREP"; then
4387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388 fi
4389 else
4390 ac_cv_path_GREP=$GREP
4391 fi
4392
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4395 $as_echo "$ac_cv_path_GREP" >&6; }
4396 GREP="$ac_cv_path_GREP"
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4400 $as_echo_n "checking for egrep... " >&6; }
4401 if ${ac_cv_path_EGREP+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4405 then ac_cv_path_EGREP="$GREP -E"
4406 else
4407 if test -z "$EGREP"; then
4408 ac_path_EGREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in egrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p "$ac_path_EGREP" || continue
4419 # Check for GNU ac_path_EGREP and select it if it is found.
4420 # Check for GNU $ac_path_EGREP
4421 case `"$ac_path_EGREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'EGREP' >> "conftest.nl"
4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_EGREP="$ac_path_EGREP"
4439 ac_path_EGREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_EGREP_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_EGREP"; then
4453 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_EGREP=$EGREP
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4462 $as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4467 $as_echo_n "checking for fgrep... " >&6; }
4468 if ${ac_cv_path_FGREP+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4472 then ac_cv_path_FGREP="$GREP -F"
4473 else
4474 if test -z "$FGREP"; then
4475 ac_path_FGREP_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in fgrep; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4485 as_fn_executable_p "$ac_path_FGREP" || continue
4486 # Check for GNU ac_path_FGREP and select it if it is found.
4487 # Check for GNU $ac_path_FGREP
4488 case `"$ac_path_FGREP" --version 2>&1` in
4489 *GNU*)
4490 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4491 *)
4492 ac_count=0
4493 $as_echo_n 0123456789 >"conftest.in"
4494 while :
4495 do
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo 'FGREP' >> "conftest.nl"
4500 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 as_fn_arith $ac_count + 1 && ac_count=$as_val
4503 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_FGREP="$ac_path_FGREP"
4506 ac_path_FGREP_max=$ac_count
4507 fi
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4510 done
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 esac
4513
4514 $ac_path_FGREP_found && break 3
4515 done
4516 done
4517 done
4518 IFS=$as_save_IFS
4519 if test -z "$ac_cv_path_FGREP"; then
4520 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521 fi
4522 else
4523 ac_cv_path_FGREP=$FGREP
4524 fi
4525
4526 fi
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4529 $as_echo "$ac_cv_path_FGREP" >&6; }
4530 FGREP="$ac_cv_path_FGREP"
4531
4532
4533 test -z "$GREP" && GREP=grep
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553 # Check whether --with-gnu-ld was given.
4554 if test "${with_gnu_ld+set}" = set; then :
4555 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4556 else
4557 with_gnu_ld=no
4558 fi
4559
4560 ac_prog=ld
4561 if test "$GCC" = yes; then
4562 # Check if gcc -print-prog-name=ld gives a path.
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4564 $as_echo_n "checking for ld used by $CC... " >&6; }
4565 case $host in
4566 *-*-mingw*)
4567 # gcc leaves a trailing carriage return which upsets mingw
4568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4569 *)
4570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4571 esac
4572 case $ac_prog in
4573 # Accept absolute paths.
4574 [\\/]* | ?:[\\/]*)
4575 re_direlt='/[^/][^/]*/\.\./'
4576 # Canonicalize the pathname of ld
4577 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4578 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4579 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4580 done
4581 test -z "$LD" && LD="$ac_prog"
4582 ;;
4583 "")
4584 # If it fails, then pretend we aren't using GCC.
4585 ac_prog=ld
4586 ;;
4587 *)
4588 # If it is relative, then search for the first ld in PATH.
4589 with_gnu_ld=unknown
4590 ;;
4591 esac
4592 elif test "$with_gnu_ld" = yes; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4594 $as_echo_n "checking for GNU ld... " >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4597 $as_echo_n "checking for non-GNU ld... " >&6; }
4598 fi
4599 if ${lt_cv_path_LD+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -z "$LD"; then
4603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH; do
4605 IFS="$lt_save_ifs"
4606 test -z "$ac_dir" && ac_dir=.
4607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4608 lt_cv_path_LD="$ac_dir/$ac_prog"
4609 # Check to see if the program is GNU ld. I'd rather use --version,
4610 # but apparently some variants of GNU ld only accept -v.
4611 # Break only if it was the GNU/non-GNU ld that we prefer.
4612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4613 *GNU* | *'with BFD'*)
4614 test "$with_gnu_ld" != no && break
4615 ;;
4616 *)
4617 test "$with_gnu_ld" != yes && break
4618 ;;
4619 esac
4620 fi
4621 done
4622 IFS="$lt_save_ifs"
4623 else
4624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4625 fi
4626 fi
4627
4628 LD="$lt_cv_path_LD"
4629 if test -n "$LD"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4631 $as_echo "$LD" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4639 if ${lt_cv_prog_gnu_ld+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4643 case `$LD -v 2>&1 </dev/null` in
4644 *GNU* | *'with BFD'*)
4645 lt_cv_prog_gnu_ld=yes
4646 ;;
4647 *)
4648 lt_cv_prog_gnu_ld=no
4649 ;;
4650 esac
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4653 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4654 with_gnu_ld=$lt_cv_prog_gnu_ld
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4665 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4666 if ${lt_cv_path_NM+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$NM"; then
4670 # Let the user override the test.
4671 lt_cv_path_NM="$NM"
4672 else
4673 lt_nm_to_check="${ac_tool_prefix}nm"
4674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4675 lt_nm_to_check="$lt_nm_to_check nm"
4676 fi
4677 for lt_tmp_nm in $lt_nm_to_check; do
4678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4680 IFS="$lt_save_ifs"
4681 test -z "$ac_dir" && ac_dir=.
4682 tmp_nm="$ac_dir/$lt_tmp_nm"
4683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4684 # Check to see if the nm accepts a BSD-compat flag.
4685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4686 # nm: unknown option "B" ignored
4687 # Tru64's nm complains that /dev/null is an invalid object file
4688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4689 */dev/null* | *'Invalid file or object type'*)
4690 lt_cv_path_NM="$tmp_nm -B"
4691 break
4692 ;;
4693 *)
4694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4695 */dev/null*)
4696 lt_cv_path_NM="$tmp_nm -p"
4697 break
4698 ;;
4699 *)
4700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4701 continue # so that we can try to find one that supports BSD flags
4702 ;;
4703 esac
4704 ;;
4705 esac
4706 fi
4707 done
4708 IFS="$lt_save_ifs"
4709 done
4710 : ${lt_cv_path_NM=no}
4711 fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4714 $as_echo "$lt_cv_path_NM" >&6; }
4715 if test "$lt_cv_path_NM" != "no"; then
4716 NM="$lt_cv_path_NM"
4717 else
4718 # Didn't find any BSD compatible name lister, look for dumpbin.
4719 if test -n "$DUMPBIN"; then :
4720 # Let the user override the test.
4721 else
4722 if test -n "$ac_tool_prefix"; then
4723 for ac_prog in dumpbin "link -dump"
4724 do
4725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_DUMPBIN+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$DUMPBIN"; then
4733 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 DUMPBIN=$ac_cv_prog_DUMPBIN
4753 if test -n "$DUMPBIN"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4755 $as_echo "$DUMPBIN" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762 test -n "$DUMPBIN" && break
4763 done
4764 fi
4765 if test -z "$DUMPBIN"; then
4766 ac_ct_DUMPBIN=$DUMPBIN
4767 for ac_prog in dumpbin "link -dump"
4768 do
4769 # Extract the first word of "$ac_prog", so it can be a program name with args.
4770 set dummy $ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$ac_ct_DUMPBIN"; then
4777 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4797 if test -n "$ac_ct_DUMPBIN"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4799 $as_echo "$ac_ct_DUMPBIN" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 test -n "$ac_ct_DUMPBIN" && break
4807 done
4808
4809 if test "x$ac_ct_DUMPBIN" = x; then
4810 DUMPBIN=":"
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818 DUMPBIN=$ac_ct_DUMPBIN
4819 fi
4820 fi
4821
4822 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4823 *COFF*)
4824 DUMPBIN="$DUMPBIN -symbols"
4825 ;;
4826 *)
4827 DUMPBIN=:
4828 ;;
4829 esac
4830 fi
4831
4832 if test "$DUMPBIN" != ":"; then
4833 NM="$DUMPBIN"
4834 fi
4835 fi
4836 test -z "$NM" && NM=nm
4837
4838
4839
4840
4841
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4844 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4845 if ${lt_cv_nm_interface+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 lt_cv_nm_interface="BSD nm"
4849 echo "int some_variable = 0;" > conftest.$ac_ext
4850 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4851 (eval "$ac_compile" 2>conftest.err)
4852 cat conftest.err >&5
4853 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4854 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4855 cat conftest.err >&5
4856 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4857 cat conftest.out >&5
4858 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4859 lt_cv_nm_interface="MS dumpbin"
4860 fi
4861 rm -f conftest*
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4864 $as_echo "$lt_cv_nm_interface" >&6; }
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4867 $as_echo_n "checking whether ln -s works... " >&6; }
4868 LN_S=$as_ln_s
4869 if test "$LN_S" = "ln -s"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4874 $as_echo "no, using $LN_S" >&6; }
4875 fi
4876
4877 # find the maximum length of command line arguments
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4879 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4880 if ${lt_cv_sys_max_cmd_len+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 i=0
4884 teststring="ABCD"
4885
4886 case $build_os in
4887 msdosdjgpp*)
4888 # On DJGPP, this test can blow up pretty badly due to problems in libc
4889 # (any single argument exceeding 2000 bytes causes a buffer overrun
4890 # during glob expansion). Even if it were fixed, the result of this
4891 # check would be larger than it should be.
4892 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4893 ;;
4894
4895 gnu*)
4896 # Under GNU Hurd, this test is not required because there is
4897 # no limit to the length of command line arguments.
4898 # Libtool will interpret -1 as no limit whatsoever
4899 lt_cv_sys_max_cmd_len=-1;
4900 ;;
4901
4902 cygwin* | mingw* | cegcc*)
4903 # On Win9x/ME, this test blows up -- it succeeds, but takes
4904 # about 5 minutes as the teststring grows exponentially.
4905 # Worse, since 9x/ME are not pre-emptively multitasking,
4906 # you end up with a "frozen" computer, even though with patience
4907 # the test eventually succeeds (with a max line length of 256k).
4908 # Instead, let's just punt: use the minimum linelength reported by
4909 # all of the supported platforms: 8192 (on NT/2K/XP).
4910 lt_cv_sys_max_cmd_len=8192;
4911 ;;
4912
4913 mint*)
4914 # On MiNT this can take a long time and run out of memory.
4915 lt_cv_sys_max_cmd_len=8192;
4916 ;;
4917
4918 amigaos*)
4919 # On AmigaOS with pdksh, this test takes hours, literally.
4920 # So we just punt and use a minimum line length of 8192.
4921 lt_cv_sys_max_cmd_len=8192;
4922 ;;
4923
4924 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4925 # This has been around since 386BSD, at least. Likely further.
4926 if test -x /sbin/sysctl; then
4927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4928 elif test -x /usr/sbin/sysctl; then
4929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4930 else
4931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4932 fi
4933 # And add a safety zone
4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4936 ;;
4937
4938 interix*)
4939 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4940 lt_cv_sys_max_cmd_len=196608
4941 ;;
4942
4943 os2*)
4944 # The test takes a long time on OS/2.
4945 lt_cv_sys_max_cmd_len=8192
4946 ;;
4947
4948 osf*)
4949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4951 # nice to cause kernel panics so lets avoid the loop below.
4952 # First set a reasonable default.
4953 lt_cv_sys_max_cmd_len=16384
4954 #
4955 if test -x /sbin/sysconfig; then
4956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4957 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4958 esac
4959 fi
4960 ;;
4961 sco3.2v5*)
4962 lt_cv_sys_max_cmd_len=102400
4963 ;;
4964 sysv5* | sco5v6* | sysv4.2uw2*)
4965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4966 if test -n "$kargmax"; then
4967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4968 else
4969 lt_cv_sys_max_cmd_len=32768
4970 fi
4971 ;;
4972 *)
4973 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4974 if test -n "$lt_cv_sys_max_cmd_len" && \
4975 test undefined != "$lt_cv_sys_max_cmd_len"; then
4976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4978 else
4979 # Make teststring a little bigger before we do anything with it.
4980 # a 1K string should be a reasonable start.
4981 for i in 1 2 3 4 5 6 7 8 ; do
4982 teststring=$teststring$teststring
4983 done
4984 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4985 # If test is not a shell built-in, we'll probably end up computing a
4986 # maximum length that is only half of the actual maximum length, but
4987 # we can't tell.
4988 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4989 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4990 test $i != 17 # 1/2 MB should be enough
4991 do
4992 i=`expr $i + 1`
4993 teststring=$teststring$teststring
4994 done
4995 # Only check the string length outside the loop.
4996 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4997 teststring=
4998 # Add a significant safety factor because C++ compilers can tack on
4999 # massive amounts of additional arguments before passing them to the
5000 # linker. It appears as though 1/2 is a usable value.
5001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5002 fi
5003 ;;
5004 esac
5005
5006 fi
5007
5008 if test -n $lt_cv_sys_max_cmd_len ; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5010 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5013 $as_echo "none" >&6; }
5014 fi
5015 max_cmd_len=$lt_cv_sys_max_cmd_len
5016
5017
5018
5019
5020
5021
5022 : ${CP="cp -f"}
5023 : ${MV="mv -f"}
5024 : ${RM="rm -f"}
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5027 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5028 # Try some XSI features
5029 xsi_shell=no
5030 ( _lt_dummy="a/b/c"
5031 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5032 = c,a/b,b/c, \
5033 && eval 'test $(( 1 + 1 )) -eq 2 \
5034 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5035 && xsi_shell=yes
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5037 $as_echo "$xsi_shell" >&6; }
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5041 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5042 lt_shell_append=no
5043 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5044 >/dev/null 2>&1 \
5045 && lt_shell_append=yes
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5047 $as_echo "$lt_shell_append" >&6; }
5048
5049
5050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5051 lt_unset=unset
5052 else
5053 lt_unset=false
5054 fi
5055
5056
5057
5058
5059
5060 # test EBCDIC or ASCII
5061 case `echo X|tr X '\101'` in
5062 A) # ASCII based system
5063 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5064 lt_SP2NL='tr \040 \012'
5065 lt_NL2SP='tr \015\012 \040\040'
5066 ;;
5067 *) # EBCDIC based system
5068 lt_SP2NL='tr \100 \n'
5069 lt_NL2SP='tr \r\n \100\100'
5070 ;;
5071 esac
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5082 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5083 if ${lt_cv_to_host_file_cmd+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 case $host in
5087 *-*-mingw* )
5088 case $build in
5089 *-*-mingw* ) # actually msys
5090 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5091 ;;
5092 *-*-cygwin* )
5093 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5094 ;;
5095 * ) # otherwise, assume *nix
5096 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5097 ;;
5098 esac
5099 ;;
5100 *-*-cygwin* )
5101 case $build in
5102 *-*-mingw* ) # actually msys
5103 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5104 ;;
5105 *-*-cygwin* )
5106 lt_cv_to_host_file_cmd=func_convert_file_noop
5107 ;;
5108 * ) # otherwise, assume *nix
5109 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5110 ;;
5111 esac
5112 ;;
5113 * ) # unhandled hosts (and "normal" native builds)
5114 lt_cv_to_host_file_cmd=func_convert_file_noop
5115 ;;
5116 esac
5117
5118 fi
5119
5120 to_host_file_cmd=$lt_cv_to_host_file_cmd
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5122 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5129 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5130 if ${lt_cv_to_tool_file_cmd+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 #assume ordinary cross tools, or native build.
5134 lt_cv_to_tool_file_cmd=func_convert_file_noop
5135 case $host in
5136 *-*-mingw* )
5137 case $build in
5138 *-*-mingw* ) # actually msys
5139 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5140 ;;
5141 esac
5142 ;;
5143 esac
5144
5145 fi
5146
5147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5149 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5150
5151
5152
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5156 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5157 if ${lt_cv_ld_reload_flag+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 lt_cv_ld_reload_flag='-r'
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5163 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5164 reload_flag=$lt_cv_ld_reload_flag
5165 case $reload_flag in
5166 "" | " "*) ;;
5167 *) reload_flag=" $reload_flag" ;;
5168 esac
5169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5170 case $host_os in
5171 cygwin* | mingw* | pw32* | cegcc*)
5172 if test "$GCC" != yes; then
5173 reload_cmds=false
5174 fi
5175 ;;
5176 darwin*)
5177 if test "$GCC" = yes; then
5178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5179 else
5180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5181 fi
5182 ;;
5183 esac
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_OBJDUMP+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$OBJDUMP"; then
5202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 OBJDUMP=$ac_cv_prog_OBJDUMP
5222 if test -n "$OBJDUMP"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5224 $as_echo "$OBJDUMP" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 fi
5232 if test -z "$ac_cv_prog_OBJDUMP"; then
5233 ac_ct_OBJDUMP=$OBJDUMP
5234 # Extract the first word of "objdump", so it can be a program name with args.
5235 set dummy objdump; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$ac_ct_OBJDUMP"; then
5242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5262 if test -n "$ac_ct_OBJDUMP"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5264 $as_echo "$ac_ct_OBJDUMP" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270 if test "x$ac_ct_OBJDUMP" = x; then
5271 OBJDUMP="false"
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279 OBJDUMP=$ac_ct_OBJDUMP
5280 fi
5281 else
5282 OBJDUMP="$ac_cv_prog_OBJDUMP"
5283 fi
5284
5285 test -z "$OBJDUMP" && OBJDUMP=objdump
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5293 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5294 if ${lt_cv_deplibs_check_method+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # `unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [[regex]]' -- check by looking for files in library path
5307 # which responds to the $file_magic_cmd with a given extended regex.
5308 # If you have `file' or equivalent on your system and you're not sure
5309 # whether `pass_all' will *always* work, you probably want this one.
5310
5311 case $host_os in
5312 aix[4-9]*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 beos*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 bsdi[45]*)
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file=/shlib/libc.so
5324 ;;
5325
5326 cygwin*)
5327 # func_win32_libid is a shell function defined in ltmain.sh
5328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5329 lt_cv_file_magic_cmd='func_win32_libid'
5330 ;;
5331
5332 mingw* | pw32*)
5333 # Base MSYS/MinGW do not provide the 'file' command needed by
5334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5335 # unless we find 'file', for example because we are cross-compiling.
5336 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5337 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5339 lt_cv_file_magic_cmd='func_win32_libid'
5340 else
5341 # Keep this pattern in sync with the one in func_win32_libid.
5342 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5343 lt_cv_file_magic_cmd='$OBJDUMP -f'
5344 fi
5345 ;;
5346
5347 cegcc*)
5348 # use the weaker test based on 'objdump'. See mingw*.
5349 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5350 lt_cv_file_magic_cmd='$OBJDUMP -f'
5351 ;;
5352
5353 darwin* | rhapsody*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357 freebsd* | dragonfly*)
5358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5359 case $host_cpu in
5360 i*86 )
5361 # Not sure whether the presence of OpenBSD here was a mistake.
5362 # Let's accept both of them until this is cleared up.
5363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5364 lt_cv_file_magic_cmd=/usr/bin/file
5365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5366 ;;
5367 esac
5368 else
5369 lt_cv_deplibs_check_method=pass_all
5370 fi
5371 ;;
5372
5373 haiku*)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376
5377 hpux10.20* | hpux11*)
5378 lt_cv_file_magic_cmd=/usr/bin/file
5379 case $host_cpu in
5380 ia64*)
5381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5382 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5383 ;;
5384 hppa*64*)
5385 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]'
5386 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5387 ;;
5388 *)
5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5390 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5391 ;;
5392 esac
5393 ;;
5394
5395 interix[3-9]*)
5396 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5398 ;;
5399
5400 irix5* | irix6* | nonstopux*)
5401 case $LD in
5402 *-32|*"-32 ") libmagic=32-bit;;
5403 *-n32|*"-n32 ") libmagic=N32;;
5404 *-64|*"-64 ") libmagic=64-bit;;
5405 *) libmagic=never-match;;
5406 esac
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410 # This must be glibc/ELF.
5411 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
5415 netbsd* | netbsdelf*-gnu)
5416 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5418 else
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5420 fi
5421 ;;
5422
5423 newos6*)
5424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5425 lt_cv_file_magic_cmd=/usr/bin/file
5426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5427 ;;
5428
5429 *nto* | *qnx*)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 openbsd*)
5434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5436 else
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5438 fi
5439 ;;
5440
5441 osf3* | osf4* | osf5*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
5445 rdos*)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448
5449 solaris*)
5450 lt_cv_deplibs_check_method=pass_all
5451 ;;
5452
5453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456
5457 sysv4 | sysv4.3*)
5458 case $host_vendor in
5459 motorola)
5460 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]'
5461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5462 ;;
5463 ncr)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466 sequent)
5467 lt_cv_file_magic_cmd='/bin/file'
5468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5469 ;;
5470 sni)
5471 lt_cv_file_magic_cmd='/bin/file'
5472 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5473 lt_cv_file_magic_test_file=/lib/libc.so
5474 ;;
5475 siemens)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478 pc)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481 esac
5482 ;;
5483
5484 tpf*)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487 esac
5488
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5491 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5492
5493 file_magic_glob=
5494 want_nocaseglob=no
5495 if test "$build" = "$host"; then
5496 case $host_os in
5497 mingw* | pw32*)
5498 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5499 want_nocaseglob=yes
5500 else
5501 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5502 fi
5503 ;;
5504 esac
5505 fi
5506
5507 file_magic_cmd=$lt_cv_file_magic_cmd
5508 deplibs_check_method=$lt_cv_deplibs_check_method
5509 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_DLLTOOL+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$DLLTOOL"; then
5541 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 DLLTOOL=$ac_cv_prog_DLLTOOL
5561 if test -n "$DLLTOOL"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5563 $as_echo "$DLLTOOL" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 fi
5571 if test -z "$ac_cv_prog_DLLTOOL"; then
5572 ac_ct_DLLTOOL=$DLLTOOL
5573 # Extract the first word of "dlltool", so it can be a program name with args.
5574 set dummy dlltool; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$ac_ct_DLLTOOL"; then
5581 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi
5599 fi
5600 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5601 if test -n "$ac_ct_DLLTOOL"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5603 $as_echo "$ac_ct_DLLTOOL" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608
5609 if test "x$ac_ct_DLLTOOL" = x; then
5610 DLLTOOL="false"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 DLLTOOL=$ac_ct_DLLTOOL
5619 fi
5620 else
5621 DLLTOOL="$ac_cv_prog_DLLTOOL"
5622 fi
5623
5624 test -z "$DLLTOOL" && DLLTOOL=dlltool
5625
5626
5627
5628
5629
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5633 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5634 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 lt_cv_sharedlib_from_linklib_cmd='unknown'
5638
5639 case $host_os in
5640 cygwin* | mingw* | pw32* | cegcc*)
5641 # two different shell functions defined in ltmain.sh
5642 # decide which to use based on capabilities of $DLLTOOL
5643 case `$DLLTOOL --help 2>&1` in
5644 *--identify-strict*)
5645 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5646 ;;
5647 *)
5648 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5649 ;;
5650 esac
5651 ;;
5652 *)
5653 # fallback: assume linklib IS sharedlib
5654 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5655 ;;
5656 esac
5657
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5660 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5661 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5662 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5663
5664
5665
5666
5667
5668
5669
5670
5671 if test -n "$ac_tool_prefix"; then
5672 for ac_prog in ar
5673 do
5674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_AR+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$AR"; then
5682 ac_cv_prog_AR="$AR" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 AR=$ac_cv_prog_AR
5702 if test -n "$AR"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5704 $as_echo "$AR" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 test -n "$AR" && break
5712 done
5713 fi
5714 if test -z "$AR"; then
5715 ac_ct_AR=$AR
5716 for ac_prog in ar
5717 do
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$ac_ct_AR"; then
5726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_ac_ct_AR="$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739 done
5740 done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5746 if test -n "$ac_ct_AR"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5748 $as_echo "$ac_ct_AR" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754
5755 test -n "$ac_ct_AR" && break
5756 done
5757
5758 if test "x$ac_ct_AR" = x; then
5759 AR="false"
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762 yes:)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5765 ac_tool_warned=yes ;;
5766 esac
5767 AR=$ac_ct_AR
5768 fi
5769 fi
5770
5771 : ${AR=ar}
5772 : ${AR_FLAGS=cru}
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5785 $as_echo_n "checking for archiver @FILE support... " >&6; }
5786 if ${lt_cv_ar_at_file+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 lt_cv_ar_at_file=no
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792
5793 int
5794 main ()
5795 {
5796
5797 ;
5798 return 0;
5799 }
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 echo conftest.$ac_objext > conftest.lst
5803 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5805 (eval $lt_ar_try) 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; }
5809 if test "$ac_status" -eq 0; then
5810 # Ensure the archiver fails upon bogus file names.
5811 rm -f conftest.$ac_objext libconftest.a
5812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5813 (eval $lt_ar_try) 2>&5
5814 ac_status=$?
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }
5817 if test "$ac_status" -ne 0; then
5818 lt_cv_ar_at_file=@
5819 fi
5820 fi
5821 rm -f conftest.* libconftest.a
5822
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5828 $as_echo "$lt_cv_ar_at_file" >&6; }
5829
5830 if test "x$lt_cv_ar_at_file" = xno; then
5831 archiver_list_spec=
5832 else
5833 archiver_list_spec=$lt_cv_ar_at_file
5834 fi
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}strip; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_STRIP+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$STRIP"; then
5851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 STRIP=$ac_cv_prog_STRIP
5871 if test -n "$STRIP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5873 $as_echo "$STRIP" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_STRIP"; then
5882 ac_ct_STRIP=$STRIP
5883 # Extract the first word of "strip", so it can be a program name with args.
5884 set dummy strip; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$ac_ct_STRIP"; then
5891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_ac_ct_STRIP="strip"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5911 if test -n "$ac_ct_STRIP"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5913 $as_echo "$ac_ct_STRIP" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919 if test "x$ac_ct_STRIP" = x; then
5920 STRIP=":"
5921 else
5922 case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928 STRIP=$ac_ct_STRIP
5929 fi
5930 else
5931 STRIP="$ac_cv_prog_STRIP"
5932 fi
5933
5934 test -z "$STRIP" && STRIP=:
5935
5936
5937
5938
5939
5940
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_RANLIB+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5972 $as_echo "$RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6012 $as_echo "$ac_ct_RANLIB" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018 if test "x$ac_ct_RANLIB" = x; then
6019 RANLIB=":"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027 RANLIB=$ac_ct_RANLIB
6028 fi
6029 else
6030 RANLIB="$ac_cv_prog_RANLIB"
6031 fi
6032
6033 test -z "$RANLIB" && RANLIB=:
6034
6035
6036
6037
6038
6039
6040 # Determine commands to create old-style static archives.
6041 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6042 old_postinstall_cmds='chmod 644 $oldlib'
6043 old_postuninstall_cmds=
6044
6045 if test -n "$RANLIB"; then
6046 case $host_os in
6047 openbsd*)
6048 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6049 ;;
6050 *)
6051 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6052 ;;
6053 esac
6054 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6055 fi
6056
6057 case $host_os in
6058 darwin*)
6059 lock_old_archive_extraction=yes ;;
6060 *)
6061 lock_old_archive_extraction=no ;;
6062 esac
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 for ac_prog in gawk mawk nawk awk
6085 do
6086 # Extract the first word of "$ac_prog", so it can be a program name with args.
6087 set dummy $ac_prog; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_AWK+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$AWK"; then
6094 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_AWK="$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 AWK=$ac_cv_prog_AWK
6114 if test -n "$AWK"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6116 $as_echo "$AWK" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 test -n "$AWK" && break
6124 done
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 # If no C compiler was specified, use CC.
6145 LTCC=${LTCC-"$CC"}
6146
6147 # If no C compiler flags were specified, use CFLAGS.
6148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6149
6150 # Allow CC to be a program name with arguments.
6151 compiler=$CC
6152
6153
6154 # Check for command to grab the raw symbol name followed by C symbol from nm.
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6156 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6157 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160
6161 # These are sane defaults that work on at least a few old systems.
6162 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6163
6164 # Character class describing NM global symbol codes.
6165 symcode='[BCDEGRST]'
6166
6167 # Regexp to match symbols that can be accessed directly from C.
6168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6169
6170 # Define system-specific variables.
6171 case $host_os in
6172 aix*)
6173 symcode='[BCDT]'
6174 ;;
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 symcode='[ABCDGISTW]'
6177 ;;
6178 hpux*)
6179 if test "$host_cpu" = ia64; then
6180 symcode='[ABCDEGRST]'
6181 fi
6182 ;;
6183 irix* | nonstopux*)
6184 symcode='[BCDEGRST]'
6185 ;;
6186 osf*)
6187 symcode='[BCDEGQRST]'
6188 ;;
6189 solaris*)
6190 symcode='[BDRT]'
6191 ;;
6192 sco3.2v5*)
6193 symcode='[DT]'
6194 ;;
6195 sysv4.2uw2*)
6196 symcode='[DT]'
6197 ;;
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6199 symcode='[ABDT]'
6200 ;;
6201 sysv4)
6202 symcode='[DFNSTU]'
6203 ;;
6204 esac
6205
6206 # If we're using GNU nm, then use its standard symbol codes.
6207 case `$NM -V 2>&1` in
6208 *GNU* | *'with BFD'*)
6209 symcode='[ABCDGIRSTW]' ;;
6210 esac
6211
6212 # Transform an extracted symbol line into a proper C declaration.
6213 # Some systems (esp. on ia64) link data and code symbols differently,
6214 # so use this general approach.
6215 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6216
6217 # Transform an extracted symbol line into symbol name and symbol address
6218 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6220
6221 # Handle CRLF in mingw tool chain
6222 opt_cr=
6223 case $build_os in
6224 mingw*)
6225 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6226 ;;
6227 esac
6228
6229 # Try without a prefix underscore, then with it.
6230 for ac_symprfx in "" "_"; do
6231
6232 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6233 symxfrm="\\1 $ac_symprfx\\2 \\2"
6234
6235 # Write the raw and C identifiers.
6236 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6237 # Fake it for dumpbin and say T for any non-static function
6238 # and D for any global variable.
6239 # Also find C++ and __fastcall symbols from MSVC++,
6240 # which start with @ or ?.
6241 lt_cv_sys_global_symbol_pipe="$AWK '"\
6242 " {last_section=section; section=\$ 3};"\
6243 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6244 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6245 " \$ 0!~/External *\|/{next};"\
6246 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6247 " {if(hide[section]) next};"\
6248 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6249 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6250 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6251 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6252 " ' prfx=^$ac_symprfx"
6253 else
6254 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6255 fi
6256 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6257
6258 # Check to see that the pipe works correctly.
6259 pipe_works=no
6260
6261 rm -f conftest*
6262 cat > conftest.$ac_ext <<_LT_EOF
6263 #ifdef __cplusplus
6264 extern "C" {
6265 #endif
6266 char nm_test_var;
6267 void nm_test_func(void);
6268 void nm_test_func(void){}
6269 #ifdef __cplusplus
6270 }
6271 #endif
6272 int main(){nm_test_var='a';nm_test_func();return(0);}
6273 _LT_EOF
6274
6275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6276 (eval $ac_compile) 2>&5
6277 ac_status=$?
6278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279 test $ac_status = 0; }; then
6280 # Now try to grab the symbols.
6281 nlist=conftest.nm
6282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6283 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6284 ac_status=$?
6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286 test $ac_status = 0; } && test -s "$nlist"; then
6287 # Try sorting and uniquifying the output.
6288 if sort "$nlist" | uniq > "$nlist"T; then
6289 mv -f "$nlist"T "$nlist"
6290 else
6291 rm -f "$nlist"T
6292 fi
6293
6294 # Make sure that we snagged all the symbols we need.
6295 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6296 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6297 cat <<_LT_EOF > conftest.$ac_ext
6298 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6299 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6300 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6301 relocations are performed -- see ld's documentation on pseudo-relocs. */
6302 # define LT_DLSYM_CONST
6303 #elif defined(__osf__)
6304 /* This system does not cope well with relocations in const data. */
6305 # define LT_DLSYM_CONST
6306 #else
6307 # define LT_DLSYM_CONST const
6308 #endif
6309
6310 #ifdef __cplusplus
6311 extern "C" {
6312 #endif
6313
6314 _LT_EOF
6315 # Now generate the symbol file.
6316 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6317
6318 cat <<_LT_EOF >> conftest.$ac_ext
6319
6320 /* The mapping between symbol names and symbols. */
6321 LT_DLSYM_CONST struct {
6322 const char *name;
6323 void *address;
6324 }
6325 lt__PROGRAM__LTX_preloaded_symbols[] =
6326 {
6327 { "@PROGRAM@", (void *) 0 },
6328 _LT_EOF
6329 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6330 cat <<\_LT_EOF >> conftest.$ac_ext
6331 {0, (void *) 0}
6332 };
6333
6334 /* This works around a problem in FreeBSD linker */
6335 #ifdef FREEBSD_WORKAROUND
6336 static const void *lt_preloaded_setup() {
6337 return lt__PROGRAM__LTX_preloaded_symbols;
6338 }
6339 #endif
6340
6341 #ifdef __cplusplus
6342 }
6343 #endif
6344 _LT_EOF
6345 # Now try linking the two files.
6346 mv conftest.$ac_objext conftstm.$ac_objext
6347 lt_globsym_save_LIBS=$LIBS
6348 lt_globsym_save_CFLAGS=$CFLAGS
6349 LIBS="conftstm.$ac_objext"
6350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6352 (eval $ac_link) 2>&5
6353 ac_status=$?
6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6356 pipe_works=yes
6357 fi
6358 LIBS=$lt_globsym_save_LIBS
6359 CFLAGS=$lt_globsym_save_CFLAGS
6360 else
6361 echo "cannot find nm_test_func in $nlist" >&5
6362 fi
6363 else
6364 echo "cannot find nm_test_var in $nlist" >&5
6365 fi
6366 else
6367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6368 fi
6369 else
6370 echo "$progname: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6372 fi
6373 rm -rf conftest* conftst*
6374
6375 # Do not use the global_symbol_pipe unless it works.
6376 if test "$pipe_works" = yes; then
6377 break
6378 else
6379 lt_cv_sys_global_symbol_pipe=
6380 fi
6381 done
6382
6383 fi
6384
6385 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6386 lt_cv_sys_global_symbol_to_cdecl=
6387 fi
6388 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6390 $as_echo "failed" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6393 $as_echo "ok" >&6; }
6394 fi
6395
6396 # Response file support.
6397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6398 nm_file_list_spec='@'
6399 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6400 nm_file_list_spec='@'
6401 fi
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6430 $as_echo_n "checking for sysroot... " >&6; }
6431
6432 # Check whether --with-sysroot was given.
6433 if test "${with_sysroot+set}" = set; then :
6434 withval=$with_sysroot;
6435 else
6436 with_sysroot=no
6437 fi
6438
6439
6440 lt_sysroot=
6441 case ${with_sysroot} in #(
6442 yes)
6443 if test "$GCC" = yes; then
6444 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6445 fi
6446 ;; #(
6447 /*)
6448 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6449 ;; #(
6450 no|'')
6451 ;; #(
6452 *)
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6454 $as_echo "${with_sysroot}" >&6; }
6455 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6456 ;;
6457 esac
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6460 $as_echo "${lt_sysroot:-no}" >&6; }
6461
6462
6463
6464
6465
6466 # Check whether --enable-libtool-lock was given.
6467 if test "${enable_libtool_lock+set}" = set; then :
6468 enableval=$enable_libtool_lock;
6469 fi
6470
6471 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6472
6473 # Some flags need to be propagated to the compiler or linker for good
6474 # libtool support.
6475 case $host in
6476 ia64-*-hpux*)
6477 # Find out which ABI we are using.
6478 echo 'int i;' > conftest.$ac_ext
6479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6480 (eval $ac_compile) 2>&5
6481 ac_status=$?
6482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483 test $ac_status = 0; }; then
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *ELF-32*)
6486 HPUX_IA64_MODE="32"
6487 ;;
6488 *ELF-64*)
6489 HPUX_IA64_MODE="64"
6490 ;;
6491 esac
6492 fi
6493 rm -rf conftest*
6494 ;;
6495 *-*-irix6*)
6496 # Find out which ABI we are using.
6497 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499 (eval $ac_compile) 2>&5
6500 ac_status=$?
6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502 test $ac_status = 0; }; then
6503 if test "$lt_cv_prog_gnu_ld" = yes; then
6504 case `/usr/bin/file conftest.$ac_objext` in
6505 *32-bit*)
6506 LD="${LD-ld} -melf32bsmip"
6507 ;;
6508 *N32*)
6509 LD="${LD-ld} -melf32bmipn32"
6510 ;;
6511 *64-bit*)
6512 LD="${LD-ld} -melf64bmip"
6513 ;;
6514 esac
6515 else
6516 case `/usr/bin/file conftest.$ac_objext` in
6517 *32-bit*)
6518 LD="${LD-ld} -32"
6519 ;;
6520 *N32*)
6521 LD="${LD-ld} -n32"
6522 ;;
6523 *64-bit*)
6524 LD="${LD-ld} -64"
6525 ;;
6526 esac
6527 fi
6528 fi
6529 rm -rf conftest*
6530 ;;
6531
6532 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6533 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6534 # Find out which ABI we are using.
6535 echo 'int i;' > conftest.$ac_ext
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537 (eval $ac_compile) 2>&5
6538 ac_status=$?
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }; then
6541 case `/usr/bin/file conftest.o` in
6542 *32-bit*)
6543 case $host in
6544 x86_64-*kfreebsd*-gnu)
6545 LD="${LD-ld} -m elf_i386_fbsd"
6546 ;;
6547 x86_64-*linux*)
6548 case `/usr/bin/file conftest.o` in
6549 *x86-64*)
6550 LD="${LD-ld} -m elf32_x86_64"
6551 ;;
6552 *)
6553 LD="${LD-ld} -m elf_i386"
6554 ;;
6555 esac
6556 ;;
6557 powerpc64le-*)
6558 LD="${LD-ld} -m elf32lppclinux"
6559 ;;
6560 powerpc64-*)
6561 LD="${LD-ld} -m elf32ppclinux"
6562 ;;
6563 s390x-*linux*)
6564 LD="${LD-ld} -m elf_s390"
6565 ;;
6566 sparc64-*linux*)
6567 LD="${LD-ld} -m elf32_sparc"
6568 ;;
6569 esac
6570 ;;
6571 *64-bit*)
6572 case $host in
6573 x86_64-*kfreebsd*-gnu)
6574 LD="${LD-ld} -m elf_x86_64_fbsd"
6575 ;;
6576 x86_64-*linux*)
6577 LD="${LD-ld} -m elf_x86_64"
6578 ;;
6579 powerpcle-*)
6580 LD="${LD-ld} -m elf64lppc"
6581 ;;
6582 powerpc-*)
6583 LD="${LD-ld} -m elf64ppc"
6584 ;;
6585 s390*-*linux*|s390*-*tpf*)
6586 LD="${LD-ld} -m elf64_s390"
6587 ;;
6588 sparc*-*linux*)
6589 LD="${LD-ld} -m elf64_sparc"
6590 ;;
6591 esac
6592 ;;
6593 esac
6594 fi
6595 rm -rf conftest*
6596 ;;
6597
6598 *-*-sco3.2v5*)
6599 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6600 SAVE_CFLAGS="$CFLAGS"
6601 CFLAGS="$CFLAGS -belf"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6603 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6604 if ${lt_cv_cc_needs_belf+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615
6616 int
6617 main ()
6618 {
6619
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_link "$LINENO"; then :
6625 lt_cv_cc_needs_belf=yes
6626 else
6627 lt_cv_cc_needs_belf=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
6631 ac_ext=c
6632 ac_cpp='$CPP $CPPFLAGS'
6633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6639 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6642 CFLAGS="$SAVE_CFLAGS"
6643 fi
6644 ;;
6645 *-*solaris*)
6646 # Find out which ABI we are using.
6647 echo 'int i;' > conftest.$ac_ext
6648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649 (eval $ac_compile) 2>&5
6650 ac_status=$?
6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652 test $ac_status = 0; }; then
6653 case `/usr/bin/file conftest.o` in
6654 *64-bit*)
6655 case $lt_cv_prog_gnu_ld in
6656 yes*)
6657 case $host in
6658 i?86-*-solaris*)
6659 LD="${LD-ld} -m elf_x86_64"
6660 ;;
6661 sparc*-*-solaris*)
6662 LD="${LD-ld} -m elf64_sparc"
6663 ;;
6664 esac
6665 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6666 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6667 LD="${LD-ld}_sol2"
6668 fi
6669 ;;
6670 *)
6671 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6672 LD="${LD-ld} -64"
6673 fi
6674 ;;
6675 esac
6676 ;;
6677 esac
6678 fi
6679 rm -rf conftest*
6680 ;;
6681 esac
6682
6683 need_locks="$enable_libtool_lock"
6684
6685 if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6687 set dummy ${ac_tool_prefix}mt; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$MANIFEST_TOOL"; then
6694 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6714 if test -n "$MANIFEST_TOOL"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6716 $as_echo "$MANIFEST_TOOL" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722
6723 fi
6724 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6725 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6726 # Extract the first word of "mt", so it can be a program name with args.
6727 set dummy mt; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_MANIFEST_TOOL"; then
6734 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6754 if test -n "$ac_ct_MANIFEST_TOOL"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6756 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6763 MANIFEST_TOOL=":"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769 ac_tool_warned=yes ;;
6770 esac
6771 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6772 fi
6773 else
6774 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6775 fi
6776
6777 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6779 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6780 if ${lt_cv_path_mainfest_tool+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 lt_cv_path_mainfest_tool=no
6784 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6785 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6786 cat conftest.err >&5
6787 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6788 lt_cv_path_mainfest_tool=yes
6789 fi
6790 rm -f conftest*
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6793 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6794 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6795 MANIFEST_TOOL=:
6796 fi
6797
6798
6799
6800
6801
6802
6803 case $host_os in
6804 rhapsody* | darwin*)
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$DSYMUTIL"; then
6814 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6834 if test -n "$DSYMUTIL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6836 $as_echo "$DSYMUTIL" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_DSYMUTIL"; then
6845 ac_ct_DSYMUTIL=$DSYMUTIL
6846 # Extract the first word of "dsymutil", so it can be a program name with args.
6847 set dummy dsymutil; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_DSYMUTIL"; then
6854 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6874 if test -n "$ac_ct_DSYMUTIL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6876 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882 if test "x$ac_ct_DSYMUTIL" = x; then
6883 DSYMUTIL=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 DSYMUTIL=$ac_ct_DSYMUTIL
6892 fi
6893 else
6894 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6895 fi
6896
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_NMEDIT+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$NMEDIT"; then
6906 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 NMEDIT=$ac_cv_prog_NMEDIT
6926 if test -n "$NMEDIT"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6928 $as_echo "$NMEDIT" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_NMEDIT"; then
6937 ac_ct_NMEDIT=$NMEDIT
6938 # Extract the first word of "nmedit", so it can be a program name with args.
6939 set dummy nmedit; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$ac_ct_NMEDIT"; then
6946 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6966 if test -n "$ac_ct_NMEDIT"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6968 $as_echo "$ac_ct_NMEDIT" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974 if test "x$ac_ct_NMEDIT" = x; then
6975 NMEDIT=":"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983 NMEDIT=$ac_ct_NMEDIT
6984 fi
6985 else
6986 NMEDIT="$ac_cv_prog_NMEDIT"
6987 fi
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_LIPO+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$LIPO"; then
6998 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 LIPO=$ac_cv_prog_LIPO
7018 if test -n "$LIPO"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7020 $as_echo "$LIPO" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_LIPO"; then
7029 ac_ct_LIPO=$LIPO
7030 # Extract the first word of "lipo", so it can be a program name with args.
7031 set dummy lipo; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$ac_ct_LIPO"; then
7038 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_LIPO="lipo"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7058 if test -n "$ac_ct_LIPO"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7060 $as_echo "$ac_ct_LIPO" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 if test "x$ac_ct_LIPO" = x; then
7067 LIPO=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 LIPO=$ac_ct_LIPO
7076 fi
7077 else
7078 LIPO="$ac_cv_prog_LIPO"
7079 fi
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}otool; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_OTOOL+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$OTOOL"; then
7090 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 OTOOL=$ac_cv_prog_OTOOL
7110 if test -n "$OTOOL"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7112 $as_echo "$OTOOL" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118
7119 fi
7120 if test -z "$ac_cv_prog_OTOOL"; then
7121 ac_ct_OTOOL=$OTOOL
7122 # Extract the first word of "otool", so it can be a program name with args.
7123 set dummy otool; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if test -n "$ac_ct_OTOOL"; then
7130 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_ac_ct_OTOOL="otool"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7150 if test -n "$ac_ct_OTOOL"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7152 $as_echo "$ac_ct_OTOOL" >&6; }
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158 if test "x$ac_ct_OTOOL" = x; then
7159 OTOOL=":"
7160 else
7161 case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167 OTOOL=$ac_ct_OTOOL
7168 fi
7169 else
7170 OTOOL="$ac_cv_prog_OTOOL"
7171 fi
7172
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_OTOOL64+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test -n "$OTOOL64"; then
7182 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 OTOOL64=$ac_cv_prog_OTOOL64
7202 if test -n "$OTOOL64"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7204 $as_echo "$OTOOL64" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210
7211 fi
7212 if test -z "$ac_cv_prog_OTOOL64"; then
7213 ac_ct_OTOOL64=$OTOOL64
7214 # Extract the first word of "otool64", so it can be a program name with args.
7215 set dummy otool64; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 if test -n "$ac_ct_OTOOL64"; then
7222 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_ac_ct_OTOOL64="otool64"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7242 if test -n "$ac_ct_OTOOL64"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7244 $as_echo "$ac_ct_OTOOL64" >&6; }
7245 else
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7248 fi
7249
7250 if test "x$ac_ct_OTOOL64" = x; then
7251 OTOOL64=":"
7252 else
7253 case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7258 esac
7259 OTOOL64=$ac_ct_OTOOL64
7260 fi
7261 else
7262 OTOOL64="$ac_cv_prog_OTOOL64"
7263 fi
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7292 $as_echo_n "checking for -single_module linker flag... " >&6; }
7293 if ${lt_cv_apple_cc_single_mod+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 lt_cv_apple_cc_single_mod=no
7297 if test -z "${LT_MULTI_MODULE}"; then
7298 # By default we will add the -single_module flag. You can override
7299 # by either setting the environment variable LT_MULTI_MODULE
7300 # non-empty at configure time, or by adding -multi_module to the
7301 # link flags.
7302 rm -rf libconftest.dylib*
7303 echo "int foo(void){return 1;}" > conftest.c
7304 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7305 -dynamiclib -Wl,-single_module conftest.c" >&5
7306 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7307 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7308 _lt_result=$?
7309 # If there is a non-empty error log, and "single_module"
7310 # appears in it, assume the flag caused a linker warning
7311 if test -s conftest.err && $GREP single_module conftest.err; then
7312 cat conftest.err >&5
7313 # Otherwise, if the output was created with a 0 exit code from
7314 # the compiler, it worked.
7315 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7316 lt_cv_apple_cc_single_mod=yes
7317 else
7318 cat conftest.err >&5
7319 fi
7320 rm -rf libconftest.dylib*
7321 rm -f conftest.*
7322 fi
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7325 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7328 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7329 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 lt_cv_ld_exported_symbols_list=no
7333 save_LDFLAGS=$LDFLAGS
7334 echo "_main" > conftest.sym
7335 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338
7339 int
7340 main ()
7341 {
7342
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_c_try_link "$LINENO"; then :
7348 lt_cv_ld_exported_symbols_list=yes
7349 else
7350 lt_cv_ld_exported_symbols_list=no
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LDFLAGS="$save_LDFLAGS"
7355
7356 fi
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7358 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7361 $as_echo_n "checking for -force_load linker flag... " >&6; }
7362 if ${lt_cv_ld_force_load+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 lt_cv_ld_force_load=no
7366 cat > conftest.c << _LT_EOF
7367 int forced_loaded() { return 2;}
7368 _LT_EOF
7369 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7370 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7371 echo "$AR cru libconftest.a conftest.o" >&5
7372 $AR cru libconftest.a conftest.o 2>&5
7373 echo "$RANLIB libconftest.a" >&5
7374 $RANLIB libconftest.a 2>&5
7375 cat > conftest.c << _LT_EOF
7376 int main() { return 0;}
7377 _LT_EOF
7378 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7379 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7380 _lt_result=$?
7381 if test -s conftest.err && $GREP force_load conftest.err; then
7382 cat conftest.err >&5
7383 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7384 lt_cv_ld_force_load=yes
7385 else
7386 cat conftest.err >&5
7387 fi
7388 rm -f conftest.err libconftest.a conftest conftest.c
7389 rm -rf conftest.dSYM
7390
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7393 $as_echo "$lt_cv_ld_force_load" >&6; }
7394 case $host_os in
7395 rhapsody* | darwin1.[012])
7396 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7397 darwin1.*)
7398 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7399 darwin*) # darwin 5.x on
7400 # if running on 10.5 or later, the deployment target defaults
7401 # to the OS version, if on x86, and 10.4, the deployment
7402 # target defaults to 10.4. Don't you love it?
7403 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7404 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7405 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7406 10.[012]*)
7407 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7408 10.*)
7409 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7410 esac
7411 ;;
7412 esac
7413 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7414 _lt_dar_single_mod='$single_module'
7415 fi
7416 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7417 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7418 else
7419 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7420 fi
7421 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7422 _lt_dsymutil='~$DSYMUTIL $lib || :'
7423 else
7424 _lt_dsymutil=
7425 fi
7426 ;;
7427 esac
7428
7429 ac_ext=c
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7436 # On Suns, sometimes $CPP names a directory.
7437 if test -n "$CPP" && test -d "$CPP"; then
7438 CPP=
7439 fi
7440 if test -z "$CPP"; then
7441 if ${ac_cv_prog_CPP+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 # Double quotes because CPP needs to be expanded
7445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7446 do
7447 ac_preproc_ok=false
7448 for ac_c_preproc_warn_flag in '' yes
7449 do
7450 # Use a header file that comes with gcc, so configuring glibc
7451 # with a fresh cross-compiler works.
7452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7453 # <limits.h> exists even on freestanding compilers.
7454 # On the NeXT, cc -E runs the code through the compiler's parser,
7455 # not just through cpp. "Syntax error" is here to catch this case.
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #ifdef __STDC__
7459 # include <limits.h>
7460 #else
7461 # include <assert.h>
7462 #endif
7463 Syntax error
7464 _ACEOF
7465 if ac_fn_c_try_cpp "$LINENO"; then :
7466
7467 else
7468 # Broken: fails on valid input.
7469 continue
7470 fi
7471 rm -f conftest.err conftest.i conftest.$ac_ext
7472
7473 # OK, works on sane cases. Now check whether nonexistent headers
7474 # can be detected and how.
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #include <ac_nonexistent.h>
7478 _ACEOF
7479 if ac_fn_c_try_cpp "$LINENO"; then :
7480 # Broken: success on invalid input.
7481 continue
7482 else
7483 # Passes both tests.
7484 ac_preproc_ok=:
7485 break
7486 fi
7487 rm -f conftest.err conftest.i conftest.$ac_ext
7488
7489 done
7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7491 rm -f conftest.i conftest.err conftest.$ac_ext
7492 if $ac_preproc_ok; then :
7493 break
7494 fi
7495
7496 done
7497 ac_cv_prog_CPP=$CPP
7498
7499 fi
7500 CPP=$ac_cv_prog_CPP
7501 else
7502 ac_cv_prog_CPP=$CPP
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7505 $as_echo "$CPP" >&6; }
7506 ac_preproc_ok=false
7507 for ac_c_preproc_warn_flag in '' yes
7508 do
7509 # Use a header file that comes with gcc, so configuring glibc
7510 # with a fresh cross-compiler works.
7511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7512 # <limits.h> exists even on freestanding compilers.
7513 # On the NeXT, cc -E runs the code through the compiler's parser,
7514 # not just through cpp. "Syntax error" is here to catch this case.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522 Syntax error
7523 _ACEOF
7524 if ac_fn_c_try_cpp "$LINENO"; then :
7525
7526 else
7527 # Broken: fails on valid input.
7528 continue
7529 fi
7530 rm -f conftest.err conftest.i conftest.$ac_ext
7531
7532 # OK, works on sane cases. Now check whether nonexistent headers
7533 # can be detected and how.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <ac_nonexistent.h>
7537 _ACEOF
7538 if ac_fn_c_try_cpp "$LINENO"; then :
7539 # Broken: success on invalid input.
7540 continue
7541 else
7542 # Passes both tests.
7543 ac_preproc_ok=:
7544 break
7545 fi
7546 rm -f conftest.err conftest.i conftest.$ac_ext
7547
7548 done
7549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7550 rm -f conftest.i conftest.err conftest.$ac_ext
7551 if $ac_preproc_ok; then :
7552
7553 else
7554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7556 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7557 See \`config.log' for more details" "$LINENO" 5; }
7558 fi
7559
7560 ac_ext=c
7561 ac_cpp='$CPP $CPPFLAGS'
7562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7565
7566
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7568 $as_echo_n "checking for ANSI C header files... " >&6; }
7569 if ${ac_cv_header_stdc+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 #include <stdlib.h>
7575 #include <stdarg.h>
7576 #include <string.h>
7577 #include <float.h>
7578
7579 int
7580 main ()
7581 {
7582
7583 ;
7584 return 0;
7585 }
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"; then :
7588 ac_cv_header_stdc=yes
7589 else
7590 ac_cv_header_stdc=no
7591 fi
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593
7594 if test $ac_cv_header_stdc = yes; then
7595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 #include <string.h>
7599
7600 _ACEOF
7601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602 $EGREP "memchr" >/dev/null 2>&1; then :
7603
7604 else
7605 ac_cv_header_stdc=no
7606 fi
7607 rm -f conftest*
7608
7609 fi
7610
7611 if test $ac_cv_header_stdc = yes; then
7612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 #include <stdlib.h>
7616
7617 _ACEOF
7618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7619 $EGREP "free" >/dev/null 2>&1; then :
7620
7621 else
7622 ac_cv_header_stdc=no
7623 fi
7624 rm -f conftest*
7625
7626 fi
7627
7628 if test $ac_cv_header_stdc = yes; then
7629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7630 if test "$cross_compiling" = yes; then :
7631 :
7632 else
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 #include <ctype.h>
7636 #include <stdlib.h>
7637 #if ((' ' & 0x0FF) == 0x020)
7638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7640 #else
7641 # define ISLOWER(c) \
7642 (('a' <= (c) && (c) <= 'i') \
7643 || ('j' <= (c) && (c) <= 'r') \
7644 || ('s' <= (c) && (c) <= 'z'))
7645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7646 #endif
7647
7648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7649 int
7650 main ()
7651 {
7652 int i;
7653 for (i = 0; i < 256; i++)
7654 if (XOR (islower (i), ISLOWER (i))
7655 || toupper (i) != TOUPPER (i))
7656 return 2;
7657 return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_c_try_run "$LINENO"; then :
7661
7662 else
7663 ac_cv_header_stdc=no
7664 fi
7665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7666 conftest.$ac_objext conftest.beam conftest.$ac_ext
7667 fi
7668
7669 fi
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7672 $as_echo "$ac_cv_header_stdc" >&6; }
7673 if test $ac_cv_header_stdc = yes; then
7674
7675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7676
7677 fi
7678
7679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7680 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7681 inttypes.h stdint.h unistd.h
7682 do :
7683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7685 "
7686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7687 cat >>confdefs.h <<_ACEOF
7688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7689 _ACEOF
7690
7691 fi
7692
7693 done
7694
7695
7696 for ac_header in dlfcn.h
7697 do :
7698 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7699 "
7700 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7701 cat >>confdefs.h <<_ACEOF
7702 #define HAVE_DLFCN_H 1
7703 _ACEOF
7704
7705 fi
7706
7707 done
7708
7709
7710
7711
7712 func_stripname_cnf ()
7713 {
7714 case ${2} in
7715 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7716 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7717 esac
7718 } # func_stripname_cnf
7719
7720
7721
7722
7723
7724 # Set options
7725
7726
7727
7728 enable_dlopen=no
7729
7730
7731
7732 # Check whether --enable-shared was given.
7733 if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7738 *)
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 ;;
7750 esac
7751 else
7752 enable_shared=yes
7753 fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-static was given.
7764 if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7769 *)
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782 else
7783 enable_static=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --with-pic was given.
7796 if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; lt_p=${PACKAGE-default}
7798 case $withval in
7799 yes|no) pic_mode=$withval ;;
7800 *)
7801 pic_mode=default
7802 # Look at the argument we got. We use all the common list separators.
7803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7804 for lt_pkg in $withval; do
7805 IFS="$lt_save_ifs"
7806 if test "X$lt_pkg" = "X$lt_p"; then
7807 pic_mode=yes
7808 fi
7809 done
7810 IFS="$lt_save_ifs"
7811 ;;
7812 esac
7813 else
7814 pic_mode=default
7815 fi
7816
7817
7818 test -z "$pic_mode" && pic_mode=default
7819
7820
7821
7822
7823
7824
7825
7826 # Check whether --enable-fast-install was given.
7827 if test "${enable_fast_install+set}" = set; then :
7828 enableval=$enable_fast_install; p=${PACKAGE-default}
7829 case $enableval in
7830 yes) enable_fast_install=yes ;;
7831 no) enable_fast_install=no ;;
7832 *)
7833 enable_fast_install=no
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7836 for pkg in $enableval; do
7837 IFS="$lt_save_ifs"
7838 if test "X$pkg" = "X$p"; then
7839 enable_fast_install=yes
7840 fi
7841 done
7842 IFS="$lt_save_ifs"
7843 ;;
7844 esac
7845 else
7846 enable_fast_install=yes
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 # This can be used to rebuild libtool when needed
7860 LIBTOOL_DEPS="$ltmain"
7861
7862 # Always use our own libtool.
7863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894 test -z "$LN_S" && LN_S="ln -s"
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 if test -n "${ZSH_VERSION+set}" ; then
7910 setopt NO_GLOB_SUBST
7911 fi
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7914 $as_echo_n "checking for objdir... " >&6; }
7915 if ${lt_cv_objdir+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 rm -f .libs 2>/dev/null
7919 mkdir .libs 2>/dev/null
7920 if test -d .libs; then
7921 lt_cv_objdir=.libs
7922 else
7923 # MS-DOS does not allow filenames that begin with a dot.
7924 lt_cv_objdir=_libs
7925 fi
7926 rmdir .libs 2>/dev/null
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7929 $as_echo "$lt_cv_objdir" >&6; }
7930 objdir=$lt_cv_objdir
7931
7932
7933
7934
7935
7936 cat >>confdefs.h <<_ACEOF
7937 #define LT_OBJDIR "$lt_cv_objdir/"
7938 _ACEOF
7939
7940
7941
7942
7943 case $host_os in
7944 aix3*)
7945 # AIX sometimes has problems with the GCC collect2 program. For some
7946 # reason, if we set the COLLECT_NAMES environment variable, the problems
7947 # vanish in a puff of smoke.
7948 if test "X${COLLECT_NAMES+set}" != Xset; then
7949 COLLECT_NAMES=
7950 export COLLECT_NAMES
7951 fi
7952 ;;
7953 esac
7954
7955 # Global variables:
7956 ofile=libtool
7957 can_build_shared=yes
7958
7959 # All known linkers require a `.a' archive for static linking (except MSVC,
7960 # which needs '.lib').
7961 libext=a
7962
7963 with_gnu_ld="$lt_cv_prog_gnu_ld"
7964
7965 old_CC="$CC"
7966 old_CFLAGS="$CFLAGS"
7967
7968 # Set sane defaults for various variables
7969 test -z "$CC" && CC=cc
7970 test -z "$LTCC" && LTCC=$CC
7971 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7972 test -z "$LD" && LD=ld
7973 test -z "$ac_objext" && ac_objext=o
7974
7975 for cc_temp in $compiler""; do
7976 case $cc_temp in
7977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7979 \-*) ;;
7980 *) break;;
7981 esac
7982 done
7983 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7984
7985
7986 # Only perform the check for file, if the check method requires it
7987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7988 case $deplibs_check_method in
7989 file_magic*)
7990 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7992 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 case $MAGIC_CMD in
7997 [\\/*] | ?:[\\/]*)
7998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7999 ;;
8000 *)
8001 lt_save_MAGIC_CMD="$MAGIC_CMD"
8002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8004 for ac_dir in $ac_dummy; do
8005 IFS="$lt_save_ifs"
8006 test -z "$ac_dir" && ac_dir=.
8007 if test -f $ac_dir/${ac_tool_prefix}file; then
8008 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8009 if test -n "$file_magic_test_file"; then
8010 case $deplibs_check_method in
8011 "file_magic "*)
8012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8015 $EGREP "$file_magic_regex" > /dev/null; then
8016 :
8017 else
8018 cat <<_LT_EOF 1>&2
8019
8020 *** Warning: the command libtool uses to detect shared libraries,
8021 *** $file_magic_cmd, produces output that libtool cannot recognize.
8022 *** The result is that libtool may fail to recognize shared libraries
8023 *** as such. This will affect the creation of libtool libraries that
8024 *** depend on shared libraries, but programs linked with such libtool
8025 *** libraries will work regardless of this problem. Nevertheless, you
8026 *** may want to report the problem to your system manager and/or to
8027 *** [email protected]
8028
8029 _LT_EOF
8030 fi ;;
8031 esac
8032 fi
8033 break
8034 fi
8035 done
8036 IFS="$lt_save_ifs"
8037 MAGIC_CMD="$lt_save_MAGIC_CMD"
8038 ;;
8039 esac
8040 fi
8041
8042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8043 if test -n "$MAGIC_CMD"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8045 $as_echo "$MAGIC_CMD" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052
8053
8054
8055 if test -z "$lt_cv_path_MAGIC_CMD"; then
8056 if test -n "$ac_tool_prefix"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8058 $as_echo_n "checking for file... " >&6; }
8059 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 case $MAGIC_CMD in
8063 [\\/*] | ?:[\\/]*)
8064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8065 ;;
8066 *)
8067 lt_save_MAGIC_CMD="$MAGIC_CMD"
8068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8070 for ac_dir in $ac_dummy; do
8071 IFS="$lt_save_ifs"
8072 test -z "$ac_dir" && ac_dir=.
8073 if test -f $ac_dir/file; then
8074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8075 if test -n "$file_magic_test_file"; then
8076 case $deplibs_check_method in
8077 "file_magic "*)
8078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8081 $EGREP "$file_magic_regex" > /dev/null; then
8082 :
8083 else
8084 cat <<_LT_EOF 1>&2
8085
8086 *** Warning: the command libtool uses to detect shared libraries,
8087 *** $file_magic_cmd, produces output that libtool cannot recognize.
8088 *** The result is that libtool may fail to recognize shared libraries
8089 *** as such. This will affect the creation of libtool libraries that
8090 *** depend on shared libraries, but programs linked with such libtool
8091 *** libraries will work regardless of this problem. Nevertheless, you
8092 *** may want to report the problem to your system manager and/or to
8093 *** [email protected]
8094
8095 _LT_EOF
8096 fi ;;
8097 esac
8098 fi
8099 break
8100 fi
8101 done
8102 IFS="$lt_save_ifs"
8103 MAGIC_CMD="$lt_save_MAGIC_CMD"
8104 ;;
8105 esac
8106 fi
8107
8108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8109 if test -n "$MAGIC_CMD"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8111 $as_echo "$MAGIC_CMD" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 else
8119 MAGIC_CMD=:
8120 fi
8121 fi
8122
8123 fi
8124 ;;
8125 esac
8126
8127 # Use C for the default configuration in the libtool script
8128
8129 lt_save_CC="$CC"
8130 ac_ext=c
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136
8137 # Source file extension for C test sources.
8138 ac_ext=c
8139
8140 # Object file extension for compiled C test sources.
8141 objext=o
8142 objext=$objext
8143
8144 # Code to be used in simple compile tests
8145 lt_simple_compile_test_code="int some_variable = 0;"
8146
8147 # Code to be used in simple link tests
8148 lt_simple_link_test_code='int main(){return(0);}'
8149
8150
8151
8152
8153
8154
8155
8156 # If no C compiler was specified, use CC.
8157 LTCC=${LTCC-"$CC"}
8158
8159 # If no C compiler flags were specified, use CFLAGS.
8160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8161
8162 # Allow CC to be a program name with arguments.
8163 compiler=$CC
8164
8165 # Save the default compiler, since it gets overwritten when the other
8166 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8167 compiler_DEFAULT=$CC
8168
8169 # save warnings/boilerplate of simple test code
8170 ac_outfile=conftest.$ac_objext
8171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8173 _lt_compiler_boilerplate=`cat conftest.err`
8174 $RM conftest*
8175
8176 ac_outfile=conftest.$ac_objext
8177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8179 _lt_linker_boilerplate=`cat conftest.err`
8180 $RM -r conftest*
8181
8182
8183 if test -n "$compiler"; then
8184
8185 lt_prog_compiler_no_builtin_flag=
8186
8187 if test "$GCC" = yes; then
8188 case $cc_basename in
8189 nvcc*)
8190 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8191 *)
8192 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8193 esac
8194
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8196 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8197 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 lt_cv_prog_compiler_rtti_exceptions=no
8201 ac_outfile=conftest.$ac_objext
8202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203 lt_compiler_flag="-fno-rtti -fno-exceptions"
8204 # Insert the option either (1) after the last *FLAGS variable, or
8205 # (2) before a word containing "conftest.", or (3) at the end.
8206 # Note that $ac_compile itself does not contain backslashes and begins
8207 # with a dollar sign (not a hyphen), so the echo should work correctly.
8208 # The option is referenced via a variable to avoid confusing sed.
8209 lt_compile=`echo "$ac_compile" | $SED \
8210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212 -e 's:$: $lt_compiler_flag:'`
8213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8214 (eval "$lt_compile" 2>conftest.err)
8215 ac_status=$?
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 if (exit $ac_status) && test -s "$ac_outfile"; then
8219 # The compiler can only warn and ignore the option if not recognized
8220 # So say no if there are warnings other than the usual output.
8221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8224 lt_cv_prog_compiler_rtti_exceptions=yes
8225 fi
8226 fi
8227 $RM conftest*
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8231 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8232
8233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8234 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8235 else
8236 :
8237 fi
8238
8239 fi
8240
8241
8242
8243
8244
8245
8246 lt_prog_compiler_wl=
8247 lt_prog_compiler_pic=
8248 lt_prog_compiler_static=
8249
8250
8251 if test "$GCC" = yes; then
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_static='-static'
8254
8255 case $host_os in
8256 aix*)
8257 # All AIX code is PIC.
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8261 fi
8262 ;;
8263
8264 amigaos*)
8265 case $host_cpu in
8266 powerpc)
8267 # see comment about AmigaOS4 .so support
8268 lt_prog_compiler_pic='-fPIC'
8269 ;;
8270 m68k)
8271 # FIXME: we need at least 68020 code to build shared libraries, but
8272 # adding the `-m68020' flag to GCC prevents building anything better,
8273 # like `-m68040'.
8274 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8275 ;;
8276 esac
8277 ;;
8278
8279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8280 # PIC is the default for these OSes.
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8287 # (--disable-auto-import) libraries
8288 lt_prog_compiler_pic='-DDLL_EXPORT'
8289 ;;
8290
8291 darwin* | rhapsody*)
8292 # PIC is the default on this platform
8293 # Common symbols not allowed in MH_DYLIB files
8294 lt_prog_compiler_pic='-fno-common'
8295 ;;
8296
8297 haiku*)
8298 # PIC is the default for Haiku.
8299 # The "-static" flag exists, but is broken.
8300 lt_prog_compiler_static=
8301 ;;
8302
8303 hpux*)
8304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8306 # sets the default TLS model and affects inlining.
8307 case $host_cpu in
8308 hppa*64*)
8309 # +Z the default
8310 ;;
8311 *)
8312 lt_prog_compiler_pic='-fPIC'
8313 ;;
8314 esac
8315 ;;
8316
8317 interix[3-9]*)
8318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319 # Instead, we relocate shared libraries at runtime.
8320 ;;
8321
8322 msdosdjgpp*)
8323 # Just because we use GCC doesn't mean we suddenly get shared libraries
8324 # on systems that don't support them.
8325 lt_prog_compiler_can_build_shared=no
8326 enable_shared=no
8327 ;;
8328
8329 *nto* | *qnx*)
8330 # QNX uses GNU C++, but need to define -shared option too, otherwise
8331 # it will coredump.
8332 lt_prog_compiler_pic='-fPIC -shared'
8333 ;;
8334
8335 sysv4*MP*)
8336 if test -d /usr/nec; then
8337 lt_prog_compiler_pic=-Kconform_pic
8338 fi
8339 ;;
8340
8341 *)
8342 lt_prog_compiler_pic='-fPIC'
8343 ;;
8344 esac
8345
8346 case $cc_basename in
8347 nvcc*) # Cuda Compiler Driver 2.2
8348 lt_prog_compiler_wl='-Xlinker '
8349 if test -n "$lt_prog_compiler_pic"; then
8350 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8351 fi
8352 ;;
8353 esac
8354 else
8355 # PORTME Check for flag to pass linker flags through the system compiler.
8356 case $host_os in
8357 aix*)
8358 lt_prog_compiler_wl='-Wl,'
8359 if test "$host_cpu" = ia64; then
8360 # AIX 5 now supports IA64 processor
8361 lt_prog_compiler_static='-Bstatic'
8362 else
8363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8364 fi
8365 ;;
8366
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8371 ;;
8372
8373 hpux9* | hpux10* | hpux11*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8376 # not for PA HP-UX.
8377 case $host_cpu in
8378 hppa*64*|ia64*)
8379 # +Z the default
8380 ;;
8381 *)
8382 lt_prog_compiler_pic='+Z'
8383 ;;
8384 esac
8385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8386 lt_prog_compiler_static='${wl}-a ${wl}archive'
8387 ;;
8388
8389 irix5* | irix6* | nonstopux*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # PIC (with -KPIC) is the default.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8396 case $cc_basename in
8397 # old Intel for x86_64 which still supported -KPIC.
8398 ecc*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-static'
8402 ;;
8403 # icc used to be incompatible with GCC.
8404 # ICC 10 doesn't accept -KPIC any more.
8405 icc* | ifort*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-fPIC'
8408 lt_prog_compiler_static='-static'
8409 ;;
8410 # Lahey Fortran 8.1.
8411 lf95*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='--shared'
8414 lt_prog_compiler_static='--static'
8415 ;;
8416 nagfor*)
8417 # NAG Fortran compiler
8418 lt_prog_compiler_wl='-Wl,-Wl,,'
8419 lt_prog_compiler_pic='-PIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8423 # Portland Group compilers (*not* the Pentium gcc compiler,
8424 # which looks to be a dead project)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-fpic'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429 ccc*)
8430 lt_prog_compiler_wl='-Wl,'
8431 # All Alpha code is PIC.
8432 lt_prog_compiler_static='-non_shared'
8433 ;;
8434 xl* | bgxl* | bgf* | mpixl*)
8435 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-qpic'
8438 lt_prog_compiler_static='-qstaticlink'
8439 ;;
8440 *)
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8443 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_wl=''
8447 ;;
8448 *Sun\ F* | *Sun*Fortran*)
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl='-Qoption ld '
8452 ;;
8453 *Sun\ C*)
8454 # Sun C 5.9
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl='-Wl,'
8458 ;;
8459 *Intel*\ [CF]*Compiler*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fPIC'
8462 lt_prog_compiler_static='-static'
8463 ;;
8464 *Portland\ Group*)
8465 lt_prog_compiler_wl='-Wl,'
8466 lt_prog_compiler_pic='-fpic'
8467 lt_prog_compiler_static='-Bstatic'
8468 ;;
8469 esac
8470 ;;
8471 esac
8472 ;;
8473
8474 newsos6)
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 ;;
8478
8479 *nto* | *qnx*)
8480 # QNX uses GNU C++, but need to define -shared option too, otherwise
8481 # it will coredump.
8482 lt_prog_compiler_pic='-fPIC -shared'
8483 ;;
8484
8485 osf3* | osf4* | osf5*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All OSF/1 code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
8491 rdos*)
8492 lt_prog_compiler_static='-non_shared'
8493 ;;
8494
8495 solaris*)
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 case $cc_basename in
8499 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8500 lt_prog_compiler_wl='-Qoption ld ';;
8501 *)
8502 lt_prog_compiler_wl='-Wl,';;
8503 esac
8504 ;;
8505
8506 sunos4*)
8507 lt_prog_compiler_wl='-Qoption ld '
8508 lt_prog_compiler_pic='-PIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
8512 sysv4 | sysv4.2uw2* | sysv4.3*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517
8518 sysv4*MP*)
8519 if test -d /usr/nec ;then
8520 lt_prog_compiler_pic='-Kconform_pic'
8521 lt_prog_compiler_static='-Bstatic'
8522 fi
8523 ;;
8524
8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 ;;
8530
8531 unicos*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_can_build_shared=no
8534 ;;
8535
8536 uts4*)
8537 lt_prog_compiler_pic='-pic'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 *)
8542 lt_prog_compiler_can_build_shared=no
8543 ;;
8544 esac
8545 fi
8546
8547 case $host_os in
8548 # For platforms which do not support PIC, -DPIC is meaningless:
8549 *djgpp*)
8550 lt_prog_compiler_pic=
8551 ;;
8552 *)
8553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8554 ;;
8555 esac
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8559 if ${lt_cv_prog_compiler_pic+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8565 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8566 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8567
8568 #
8569 # Check to make sure the PIC flag actually works.
8570 #
8571 if test -n "$lt_prog_compiler_pic"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8573 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8574 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 lt_cv_prog_compiler_pic_works=no
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 # The option is referenced via a variable to avoid confusing sed.
8586 lt_compile=`echo "$ac_compile" | $SED \
8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589 -e 's:$: $lt_compiler_flag:'`
8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591 (eval "$lt_compile" 2>conftest.err)
8592 ac_status=$?
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 if (exit $ac_status) && test -s "$ac_outfile"; then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings other than the usual output.
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_pic_works=yes
8602 fi
8603 fi
8604 $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8608 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8609
8610 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8611 case $lt_prog_compiler_pic in
8612 "" | " "*) ;;
8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8614 esac
8615 else
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_can_build_shared=no
8618 fi
8619
8620 fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 #
8633 # Check to make sure the static flag actually works.
8634 #
8635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8638 if ${lt_cv_prog_compiler_static_works+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 lt_cv_prog_compiler_static_works=no
8642 save_LDFLAGS="$LDFLAGS"
8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646 # The linker can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
8648 if test -s conftest.err; then
8649 # Append any errors to the config.log.
8650 cat conftest.err 1>&5
8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_static_works=yes
8655 fi
8656 else
8657 lt_cv_prog_compiler_static_works=yes
8658 fi
8659 fi
8660 $RM -r conftest*
8661 LDFLAGS="$save_LDFLAGS"
8662
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8665 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8666
8667 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8668 :
8669 else
8670 lt_prog_compiler_static=
8671 fi
8672
8673
8674
8675
8676
8677
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8681 if ${lt_cv_prog_compiler_c_o+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 lt_cv_prog_compiler_c_o=no
8685 $RM -r conftest 2>/dev/null
8686 mkdir conftest
8687 cd conftest
8688 mkdir out
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8690
8691 lt_compiler_flag="-o out/conftest2.$ac_objext"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>out/conftest.err)
8702 ac_status=$?
8703 cat out/conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8706 then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_c_o=yes
8713 fi
8714 fi
8715 chmod u+w . 2>&5
8716 $RM conftest*
8717 # SGI C++ compiler will create directory out/ii_files/ for
8718 # template instantiation
8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8720 $RM out/* && rmdir out
8721 cd ..
8722 $RM -r conftest
8723 $RM conftest*
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8728
8729
8730
8731
8732
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736 if ${lt_cv_prog_compiler_c_o+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_c_o=no
8740 $RM -r conftest 2>/dev/null
8741 mkdir conftest
8742 cd conftest
8743 mkdir out
8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745
8746 lt_compiler_flag="-o out/conftest2.$ac_objext"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 lt_compile=`echo "$ac_compile" | $SED \
8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756 (eval "$lt_compile" 2>out/conftest.err)
8757 ac_status=$?
8758 cat out/conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8761 then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_c_o=yes
8768 fi
8769 fi
8770 chmod u+w . 2>&5
8771 $RM conftest*
8772 # SGI C++ compiler will create directory out/ii_files/ for
8773 # template instantiation
8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775 $RM out/* && rmdir out
8776 cd ..
8777 $RM -r conftest
8778 $RM conftest*
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8783
8784
8785
8786
8787 hard_links="nottested"
8788 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8789 # do not overwrite the value of need_locks provided by the user
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8791 $as_echo_n "checking if we can lock with hard links... " >&6; }
8792 hard_links=yes
8793 $RM conftest*
8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795 touch conftest.a
8796 ln conftest.a conftest.b 2>&5 || hard_links=no
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8799 $as_echo "$hard_links" >&6; }
8800 if test "$hard_links" = no; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8802 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8803 need_locks=warn
8804 fi
8805 else
8806 need_locks=no
8807 fi
8808
8809
8810
8811
8812
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8816
8817 runpath_var=
8818 allow_undefined_flag=
8819 always_export_symbols=no
8820 archive_cmds=
8821 archive_expsym_cmds=
8822 compiler_needs_object=no
8823 enable_shared_with_static_runtimes=no
8824 export_dynamic_flag_spec=
8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8826 hardcode_automatic=no
8827 hardcode_direct=no
8828 hardcode_direct_absolute=no
8829 hardcode_libdir_flag_spec=
8830 hardcode_libdir_separator=
8831 hardcode_minus_L=no
8832 hardcode_shlibpath_var=unsupported
8833 inherit_rpath=no
8834 link_all_deplibs=unknown
8835 module_cmds=
8836 module_expsym_cmds=
8837 old_archive_from_new_cmds=
8838 old_archive_from_expsyms_cmds=
8839 thread_safe_flag_spec=
8840 whole_archive_flag_spec=
8841 # include_expsyms should be a list of space-separated symbols to be *always*
8842 # included in the symbol list
8843 include_expsyms=
8844 # exclude_expsyms can be an extended regexp of symbols to exclude
8845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8847 # as well as any symbol that contains `d'.
8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8850 # platforms (ab)use it in PIC code, but their linkers get confused if
8851 # the symbol is explicitly referenced. Since portable code cannot
8852 # rely on this symbol name, it's probably fine to never include it in
8853 # preloaded symbol tables.
8854 # Exclude shared library initialization/finalization symbols.
8855 extract_expsyms_cmds=
8856
8857 case $host_os in
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8860 # When not using gcc, we currently assume that we are using
8861 # Microsoft Visual C++.
8862 if test "$GCC" != yes; then
8863 with_gnu_ld=no
8864 fi
8865 ;;
8866 interix*)
8867 # we just hope/assume this is gcc and not c89 (= MSVC++)
8868 with_gnu_ld=yes
8869 ;;
8870 openbsd*)
8871 with_gnu_ld=no
8872 ;;
8873 linux* | k*bsd*-gnu | gnu*)
8874 link_all_deplibs=no
8875 ;;
8876 esac
8877
8878 ld_shlibs=yes
8879
8880 # On some targets, GNU ld is compatible enough with the native linker
8881 # that we're better off using the native interface for both.
8882 lt_use_gnu_ld_interface=no
8883 if test "$with_gnu_ld" = yes; then
8884 case $host_os in
8885 aix*)
8886 # The AIX port of GNU ld has always aspired to compatibility
8887 # with the native linker. However, as the warning in the GNU ld
8888 # block says, versions before 2.19.5* couldn't really create working
8889 # shared libraries, regardless of the interface used.
8890 case `$LD -v 2>&1` in
8891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8893 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8894 *)
8895 lt_use_gnu_ld_interface=yes
8896 ;;
8897 esac
8898 ;;
8899 *)
8900 lt_use_gnu_ld_interface=yes
8901 ;;
8902 esac
8903 fi
8904
8905 if test "$lt_use_gnu_ld_interface" = yes; then
8906 # If archive_cmds runs LD, not CC, wlarc should be empty
8907 wlarc='${wl}'
8908
8909 # Set some defaults for GNU ld with shared library support. These
8910 # are reset later if shared libraries are not supported. Putting them
8911 # here allows them to be overridden if necessary.
8912 runpath_var=LD_RUN_PATH
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 export_dynamic_flag_spec='${wl}--export-dynamic'
8915 # ancient GNU ld didn't support --whole-archive et. al.
8916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8918 else
8919 whole_archive_flag_spec=
8920 fi
8921 supports_anon_versioning=no
8922 case `$LD -v 2>&1` in
8923 *GNU\ gold*) supports_anon_versioning=yes ;;
8924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8927 *\ 2.11.*) ;; # other 2.11 versions
8928 *) supports_anon_versioning=yes ;;
8929 esac
8930
8931 # See if GNU ld supports shared libraries.
8932 case $host_os in
8933 aix[3-9]*)
8934 # On AIX/PPC, the GNU linker is very broken
8935 if test "$host_cpu" != ia64; then
8936 ld_shlibs=no
8937 cat <<_LT_EOF 1>&2
8938
8939 *** Warning: the GNU linker, at least up to release 2.19, is reported
8940 *** to be unable to reliably create shared libraries on AIX.
8941 *** Therefore, libtool is disabling shared libraries support. If you
8942 *** really care for shared libraries, you may want to install binutils
8943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8944 *** You will then need to restart the configuration process.
8945
8946 _LT_EOF
8947 fi
8948 ;;
8949
8950 amigaos*)
8951 case $host_cpu in
8952 powerpc)
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8956 ;;
8957 m68k)
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8961 ;;
8962 esac
8963 ;;
8964
8965 beos*)
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 allow_undefined_flag=unsupported
8968 # Joseph Beckenbach <[email protected]> says some releases of gcc
8969 # support --undefined. This deserves some investigation. FIXME
8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
8975
8976 cygwin* | mingw* | pw32* | cegcc*)
8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978 # as there is no search path for DLLs.
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 export_dynamic_flag_spec='${wl}--export-all-symbols'
8981 allow_undefined_flag=unsupported
8982 always_export_symbols=no
8983 enable_shared_with_static_runtimes=yes
8984 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'
8985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8986
8987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 # If the export-symbols file already is a .def file (1st line
8990 # is EXPORTS), use it as is; otherwise, prepend...
8991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992 cp $export_symbols $output_objdir/$soname.def;
8993 else
8994 echo EXPORTS > $output_objdir/$soname.def;
8995 cat $export_symbols >> $output_objdir/$soname.def;
8996 fi~
8997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 haiku*)
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 link_all_deplibs=yes
9006 ;;
9007
9008 interix[3-9]*)
9009 hardcode_direct=no
9010 hardcode_shlibpath_var=no
9011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012 export_dynamic_flag_spec='${wl}-E'
9013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9014 # Instead, shared libraries are loaded at an image base (0x10000000 by
9015 # default) and relocated if they conflict, which is a slow very memory
9016 # consuming and fragmenting process. To avoid this, we pick a random,
9017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9018 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020 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'
9021 ;;
9022
9023 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9024 tmp_diet=no
9025 if test "$host_os" = linux-dietlibc; then
9026 case $cc_basename in
9027 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9028 esac
9029 fi
9030 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9031 && test "$tmp_diet" = no
9032 then
9033 tmp_addflag=' $pic_flag'
9034 tmp_sharedflag='-shared'
9035 case $cc_basename,$host_cpu in
9036 pgcc*) # Portland Group C compiler
9037 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'
9038 tmp_addflag=' $pic_flag'
9039 ;;
9040 pgf77* | pgf90* | pgf95* | pgfortran*)
9041 # Portland Group f77 and f90 compilers
9042 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'
9043 tmp_addflag=' $pic_flag -Mnomain' ;;
9044 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9045 tmp_addflag=' -i_dynamic' ;;
9046 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9047 tmp_addflag=' -i_dynamic -nofor_main' ;;
9048 ifc* | ifort*) # Intel Fortran compiler
9049 tmp_addflag=' -nofor_main' ;;
9050 lf95*) # Lahey Fortran 8.1
9051 whole_archive_flag_spec=
9052 tmp_sharedflag='--shared' ;;
9053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054 tmp_sharedflag='-qmkshrobj'
9055 tmp_addflag= ;;
9056 nvcc*) # Cuda Compiler Driver 2.2
9057 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'
9058 compiler_needs_object=yes
9059 ;;
9060 esac
9061 case `$CC -V 2>&1 | sed 5q` in
9062 *Sun\ C*) # Sun C 5.9
9063 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'
9064 compiler_needs_object=yes
9065 tmp_sharedflag='-G' ;;
9066 *Sun\ F*) # Sun Fortran 8.3
9067 tmp_sharedflag='-G' ;;
9068 esac
9069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070
9071 if test "x$supports_anon_versioning" = xyes; then
9072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074 echo "local: *; };" >> $output_objdir/$libname.ver~
9075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9076 fi
9077
9078 case $cc_basename in
9079 xlf* | bgf* | bgxlf* | mpixlf*)
9080 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9081 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9084 if test "x$supports_anon_versioning" = xyes; then
9085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087 echo "local: *; };" >> $output_objdir/$libname.ver~
9088 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9089 fi
9090 ;;
9091 esac
9092 else
9093 ld_shlibs=no
9094 fi
9095 ;;
9096
9097 netbsd* | netbsdelf*-gnu)
9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9100 wlarc=
9101 else
9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104 fi
9105 ;;
9106
9107 solaris*)
9108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9109 ld_shlibs=no
9110 cat <<_LT_EOF 1>&2
9111
9112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9113 *** create shared libraries on Solaris systems. Therefore, libtool
9114 *** is disabling shared libraries support. We urge you to upgrade GNU
9115 *** binutils to release 2.9.1 or newer. Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9118
9119 _LT_EOF
9120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9129 case `$LD -v 2>&1` in
9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9131 ld_shlibs=no
9132 cat <<_LT_EOF 1>&2
9133
9134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9135 *** reliably create shared libraries on SCO systems. Therefore, libtool
9136 *** is disabling shared libraries support. We urge you to upgrade GNU
9137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9140
9141 _LT_EOF
9142 ;;
9143 *)
9144 # For security reasons, it is highly recommended that you always
9145 # use absolute paths for naming shared libraries, and exclude the
9146 # DT_RUNPATH tag from executables and libraries. But doing so
9147 # requires that you compile everything twice, which is a pain.
9148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156 esac
9157 ;;
9158
9159 sunos4*)
9160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161 wlarc=
9162 hardcode_direct=yes
9163 hardcode_shlibpath_var=no
9164 ;;
9165
9166 *)
9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170 else
9171 ld_shlibs=no
9172 fi
9173 ;;
9174 esac
9175
9176 if test "$ld_shlibs" = no; then
9177 runpath_var=
9178 hardcode_libdir_flag_spec=
9179 export_dynamic_flag_spec=
9180 whole_archive_flag_spec=
9181 fi
9182 else
9183 # PORTME fill in a description of your system's linker (not GNU ld)
9184 case $host_os in
9185 aix3*)
9186 allow_undefined_flag=unsupported
9187 always_export_symbols=yes
9188 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'
9189 # Note: this linker hardcodes the directories in LIBPATH if there
9190 # are no directories specified by -L.
9191 hardcode_minus_L=yes
9192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193 # Neither direct hardcoding nor static linking is supported with a
9194 # broken collect2.
9195 hardcode_direct=unsupported
9196 fi
9197 ;;
9198
9199 aix[4-9]*)
9200 if test "$host_cpu" = ia64; then
9201 # On IA64, the linker does run time linking by default, so we don't
9202 # have to do anything special.
9203 aix_use_runtimelinking=no
9204 exp_sym_flag='-Bexport'
9205 no_entry_flag=""
9206 else
9207 # If we're using GNU nm, then we don't want the "-C" option.
9208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209 # Also, AIX nm treats weak defined symbols like other global
9210 # defined symbols, whereas GNU nm marks them as "W".
9211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9212 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9213 else
9214 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9215 fi
9216 aix_use_runtimelinking=no
9217
9218 # Test if we are trying to use run time linking or normal
9219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9220 # need to do runtime linking.
9221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9222 for ld_flag in $LDFLAGS; do
9223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9224 aix_use_runtimelinking=yes
9225 break
9226 fi
9227 done
9228 ;;
9229 esac
9230
9231 exp_sym_flag='-bexport'
9232 no_entry_flag='-bnoentry'
9233 fi
9234
9235 # When large executables or shared objects are built, AIX ld can
9236 # have problems creating the table of contents. If linking a library
9237 # or program results in "error TOC overflow" add -mminimal-toc to
9238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9240
9241 archive_cmds=''
9242 hardcode_direct=yes
9243 hardcode_direct_absolute=yes
9244 hardcode_libdir_separator=':'
9245 link_all_deplibs=yes
9246 file_list_spec='${wl}-f,'
9247
9248 if test "$GCC" = yes; then
9249 case $host_os in aix4.[012]|aix4.[012].*)
9250 # We only want to do this on AIX 4.2 and lower, the check
9251 # below for broken collect2 doesn't work under 4.3+
9252 collect2name=`${CC} -print-prog-name=collect2`
9253 if test -f "$collect2name" &&
9254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9255 then
9256 # We have reworked collect2
9257 :
9258 else
9259 # We have old collect2
9260 hardcode_direct=unsupported
9261 # It fails to find uninstalled libraries when the uninstalled
9262 # path is not listed in the libpath. Setting hardcode_minus_L
9263 # to unsupported forces relinking
9264 hardcode_minus_L=yes
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_libdir_separator=
9267 fi
9268 ;;
9269 esac
9270 shared_flag='-shared'
9271 if test "$aix_use_runtimelinking" = yes; then
9272 shared_flag="$shared_flag "'${wl}-G'
9273 fi
9274 link_all_deplibs=no
9275 else
9276 # not using gcc
9277 if test "$host_cpu" = ia64; then
9278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9279 # chokes on -Wl,-G. The following line is correct:
9280 shared_flag='-G'
9281 else
9282 if test "$aix_use_runtimelinking" = yes; then
9283 shared_flag='${wl}-G'
9284 else
9285 shared_flag='${wl}-bM:SRE'
9286 fi
9287 fi
9288 fi
9289
9290 export_dynamic_flag_spec='${wl}-bexpall'
9291 # It seems that -bexpall does not export symbols beginning with
9292 # underscore (_), so it is better to generate a list of symbols to export.
9293 always_export_symbols=yes
9294 if test "$aix_use_runtimelinking" = yes; then
9295 # Warning - without using the other runtime loading flags (-brtl),
9296 # -berok will link without error, but may produce a broken library.
9297 allow_undefined_flag='-berok'
9298 # Determine the default libpath from the value encoded in an
9299 # empty executable.
9300 if test "${lt_cv_aix_libpath+set}" = set; then
9301 aix_libpath=$lt_cv_aix_libpath
9302 else
9303 if ${lt_cv_aix_libpath_+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308
9309 int
9310 main ()
9311 {
9312
9313 ;
9314 return 0;
9315 }
9316 _ACEOF
9317 if ac_fn_c_try_link "$LINENO"; then :
9318
9319 lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9321 /^0/ {
9322 s/^0 *\([^ ]*\) *$/\1/
9323 p
9324 }
9325 }'
9326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327 # Check for a 64-bit object if we didn't find anything.
9328 if test -z "$lt_cv_aix_libpath_"; then
9329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330 fi
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 if test -z "$lt_cv_aix_libpath_"; then
9335 lt_cv_aix_libpath_="/usr/lib:/lib"
9336 fi
9337
9338 fi
9339
9340 aix_libpath=$lt_cv_aix_libpath_
9341 fi
9342
9343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9344 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9345 else
9346 if test "$host_cpu" = ia64; then
9347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9348 allow_undefined_flag="-z nodefs"
9349 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"
9350 else
9351 # Determine the default libpath from the value encoded in an
9352 # empty executable.
9353 if test "${lt_cv_aix_libpath+set}" = set; then
9354 aix_libpath=$lt_cv_aix_libpath
9355 else
9356 if ${lt_cv_aix_libpath_+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361
9362 int
9363 main ()
9364 {
9365
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371
9372 lt_aix_libpath_sed='
9373 /Import File Strings/,/^$/ {
9374 /^0/ {
9375 s/^0 *\([^ ]*\) *$/\1/
9376 p
9377 }
9378 }'
9379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380 # Check for a 64-bit object if we didn't find anything.
9381 if test -z "$lt_cv_aix_libpath_"; then
9382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9383 fi
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$lt_cv_aix_libpath_"; then
9388 lt_cv_aix_libpath_="/usr/lib:/lib"
9389 fi
9390
9391 fi
9392
9393 aix_libpath=$lt_cv_aix_libpath_
9394 fi
9395
9396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9397 # Warning - without using the other run time loading flags,
9398 # -berok will link without error, but may produce a broken library.
9399 no_undefined_flag=' ${wl}-bernotok'
9400 allow_undefined_flag=' ${wl}-berok'
9401 if test "$with_gnu_ld" = yes; then
9402 # We only use this code for GNU lds that support --whole-archive.
9403 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9404 else
9405 # Exported symbols can be pulled into shared objects from archives
9406 whole_archive_flag_spec='$convenience'
9407 fi
9408 archive_cmds_need_lc=yes
9409 # This is similar to how AIX traditionally builds its shared libraries.
9410 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9411 fi
9412 fi
9413 ;;
9414
9415 amigaos*)
9416 case $host_cpu in
9417 powerpc)
9418 # see comment about AmigaOS4 .so support
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds=''
9421 ;;
9422 m68k)
9423 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)'
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_minus_L=yes
9426 ;;
9427 esac
9428 ;;
9429
9430 bsdi[45]*)
9431 export_dynamic_flag_spec=-rdynamic
9432 ;;
9433
9434 cygwin* | mingw* | pw32* | cegcc*)
9435 # When not using gcc, we currently assume that we are using
9436 # Microsoft Visual C++.
9437 # hardcode_libdir_flag_spec is actually meaningless, as there is
9438 # no search path for DLLs.
9439 case $cc_basename in
9440 cl*)
9441 # Native MSVC
9442 hardcode_libdir_flag_spec=' '
9443 allow_undefined_flag=unsupported
9444 always_export_symbols=yes
9445 file_list_spec='@'
9446 # Tell ltmain to make .lib files, not .a files.
9447 libext=lib
9448 # Tell ltmain to make .dll files, not .so files.
9449 shrext_cmds=".dll"
9450 # FIXME: Setting linknames here is a bad hack.
9451 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9452 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9454 else
9455 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9456 fi~
9457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9458 linknames='
9459 # The linker will not automatically build a static lib if we build a DLL.
9460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9461 enable_shared_with_static_runtimes=yes
9462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9464 # Don't use ranlib
9465 old_postinstall_cmds='chmod 644 $oldlib'
9466 postlink_cmds='lt_outputfile="@OUTPUT@"~
9467 lt_tool_outputfile="@TOOL_OUTPUT@"~
9468 case $lt_outputfile in
9469 *.exe|*.EXE) ;;
9470 *)
9471 lt_outputfile="$lt_outputfile.exe"
9472 lt_tool_outputfile="$lt_tool_outputfile.exe"
9473 ;;
9474 esac~
9475 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9477 $RM "$lt_outputfile.manifest";
9478 fi'
9479 ;;
9480 *)
9481 # Assume MSVC wrapper
9482 hardcode_libdir_flag_spec=' '
9483 allow_undefined_flag=unsupported
9484 # Tell ltmain to make .lib files, not .a files.
9485 libext=lib
9486 # Tell ltmain to make .dll files, not .so files.
9487 shrext_cmds=".dll"
9488 # FIXME: Setting linknames here is a bad hack.
9489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9490 # The linker will automatically build a .lib file if we build a DLL.
9491 old_archive_from_new_cmds='true'
9492 # FIXME: Should let the user specify the lib program.
9493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9494 enable_shared_with_static_runtimes=yes
9495 ;;
9496 esac
9497 ;;
9498
9499 darwin* | rhapsody*)
9500
9501
9502 archive_cmds_need_lc=no
9503 hardcode_direct=no
9504 hardcode_automatic=yes
9505 hardcode_shlibpath_var=unsupported
9506 if test "$lt_cv_ld_force_load" = "yes"; then
9507 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\"`'
9508
9509 else
9510 whole_archive_flag_spec=''
9511 fi
9512 link_all_deplibs=yes
9513 allow_undefined_flag="$_lt_dar_allow_undefined"
9514 case $cc_basename in
9515 ifort*) _lt_dar_can_shared=yes ;;
9516 *) _lt_dar_can_shared=$GCC ;;
9517 esac
9518 if test "$_lt_dar_can_shared" = "yes"; then
9519 output_verbose_link_cmd=func_echo_all
9520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9522 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}"
9523 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}"
9524
9525 else
9526 ld_shlibs=no
9527 fi
9528
9529 ;;
9530
9531 dgux*)
9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_shlibpath_var=no
9535 ;;
9536
9537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9538 # support. Future versions do this automatically, but an explicit c++rt0.o
9539 # does not break anything, and helps significantly (at the cost of a little
9540 # extra space).
9541 freebsd2.2*)
9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9549 freebsd2.*)
9550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_direct=yes
9552 hardcode_minus_L=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9557 freebsd* | dragonfly*)
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 hardcode_direct=yes
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 hpux9*)
9565 if test "$GCC" = yes; then
9566 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9567 else
9568 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9569 fi
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572 hardcode_direct=yes
9573
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9577 export_dynamic_flag_spec='${wl}-E'
9578 ;;
9579
9580 hpux10*)
9581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583 else
9584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585 fi
9586 if test "$with_gnu_ld" = no; then
9587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588 hardcode_libdir_separator=:
9589 hardcode_direct=yes
9590 hardcode_direct_absolute=yes
9591 export_dynamic_flag_spec='${wl}-E'
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9595 fi
9596 ;;
9597
9598 hpux11*)
9599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9600 case $host_cpu in
9601 hppa*64*)
9602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 ;;
9604 ia64*)
9605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9606 ;;
9607 *)
9608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9609 ;;
9610 esac
9611 else
9612 case $host_cpu in
9613 hppa*64*)
9614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 ;;
9616 ia64*)
9617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9618 ;;
9619 *)
9620
9621 # Older versions of the 11.00 compiler do not understand -b yet
9622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9624 $as_echo_n "checking if $CC understands -b... " >&6; }
9625 if ${lt_cv_prog_compiler__b+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 lt_cv_prog_compiler__b=no
9629 save_LDFLAGS="$LDFLAGS"
9630 LDFLAGS="$LDFLAGS -b"
9631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9633 # The linker can only warn and ignore the option if not recognized
9634 # So say no if there are warnings
9635 if test -s conftest.err; then
9636 # Append any errors to the config.log.
9637 cat conftest.err 1>&5
9638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640 if diff conftest.exp conftest.er2 >/dev/null; then
9641 lt_cv_prog_compiler__b=yes
9642 fi
9643 else
9644 lt_cv_prog_compiler__b=yes
9645 fi
9646 fi
9647 $RM -r conftest*
9648 LDFLAGS="$save_LDFLAGS"
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9652 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9653
9654 if test x"$lt_cv_prog_compiler__b" = xyes; then
9655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659
9660 ;;
9661 esac
9662 fi
9663 if test "$with_gnu_ld" = no; then
9664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666
9667 case $host_cpu in
9668 hppa*64*|ia64*)
9669 hardcode_direct=no
9670 hardcode_shlibpath_var=no
9671 ;;
9672 *)
9673 hardcode_direct=yes
9674 hardcode_direct_absolute=yes
9675 export_dynamic_flag_spec='${wl}-E'
9676
9677 # hardcode_minus_L: Not really in the search PATH,
9678 # but as the default location of the library.
9679 hardcode_minus_L=yes
9680 ;;
9681 esac
9682 fi
9683 ;;
9684
9685 irix5* | irix6* | nonstopux*)
9686 if test "$GCC" = yes; then
9687 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'
9688 # Try to use the -exported_symbol ld option, if it does not
9689 # work, assume that -exports_file does not work either and
9690 # implicitly export all symbols.
9691 # This should be the same for all languages, so no per-tag cache variable.
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9693 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9694 if ${lt_cv_irix_exported_symbol+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 save_LDFLAGS="$LDFLAGS"
9698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int foo (void) { return 0; }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 lt_cv_irix_exported_symbol=yes
9705 else
9706 lt_cv_irix_exported_symbol=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LDFLAGS="$save_LDFLAGS"
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9713 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9714 if test "$lt_cv_irix_exported_symbol" = yes; then
9715 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'
9716 fi
9717 else
9718 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'
9719 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'
9720 fi
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723 hardcode_libdir_separator=:
9724 inherit_rpath=yes
9725 link_all_deplibs=yes
9726 ;;
9727
9728 netbsd* | netbsdelf*-gnu)
9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9731 else
9732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9733 fi
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 newsos6)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 *nto* | *qnx*)
9748 ;;
9749
9750 openbsd*)
9751 if test -f /usr/libexec/ld.so; then
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 hardcode_direct_absolute=yes
9755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759 export_dynamic_flag_spec='${wl}-E'
9760 else
9761 case $host_os in
9762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 ;;
9766 *)
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769 ;;
9770 esac
9771 fi
9772 else
9773 ld_shlibs=no
9774 fi
9775 ;;
9776
9777 os2*)
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9780 allow_undefined_flag=unsupported
9781 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9783 ;;
9784
9785 osf3*)
9786 if test "$GCC" = yes; then
9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788 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'
9789 else
9790 allow_undefined_flag=' -expect_unresolved \*'
9791 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'
9792 fi
9793 archive_cmds_need_lc='no'
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796 ;;
9797
9798 osf4* | osf5*) # as osf3* with the addition of -msym flag
9799 if test "$GCC" = yes; then
9800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801 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'
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 else
9804 allow_undefined_flag=' -expect_unresolved \*'
9805 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'
9806 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~
9807 $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'
9808
9809 # Both c and cxx compiler support -rpath directly
9810 hardcode_libdir_flag_spec='-rpath $libdir'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_separator=:
9814 ;;
9815
9816 solaris*)
9817 no_undefined_flag=' -z defs'
9818 if test "$GCC" = yes; then
9819 wlarc='${wl}'
9820 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822 $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'
9823 else
9824 case `$CC -V 2>&1` in
9825 *"Compilers 5.0"*)
9826 wlarc=''
9827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9830 ;;
9831 *)
9832 wlarc='${wl}'
9833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9836 ;;
9837 esac
9838 fi
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9841 case $host_os in
9842 solaris2.[0-5] | solaris2.[0-5].*) ;;
9843 *)
9844 # The compiler driver will combine and reorder linker options,
9845 # but understands `-z linker_flag'. GCC discards it without `$wl',
9846 # but is careful enough not to reorder.
9847 # Supported since Solaris 2.6 (maybe 2.5.1?)
9848 if test "$GCC" = yes; then
9849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9850 else
9851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9852 fi
9853 ;;
9854 esac
9855 link_all_deplibs=yes
9856 ;;
9857
9858 sunos4*)
9859 if test "x$host_vendor" = xsequent; then
9860 # Use $CC to link under sequent, because it throws in some extra .o
9861 # files that make .init and .fini sections work.
9862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9865 fi
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_direct=yes
9868 hardcode_minus_L=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 sysv4)
9873 case $host_vendor in
9874 sni)
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=yes # is this really true???
9877 ;;
9878 siemens)
9879 ## LD is ld it makes a PLAMLIB
9880 ## CC just makes a GrossModule.
9881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9882 reload_cmds='$CC -r -o $output$reload_objs'
9883 hardcode_direct=no
9884 ;;
9885 motorola)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9888 ;;
9889 esac
9890 runpath_var='LD_RUN_PATH'
9891 hardcode_shlibpath_var=no
9892 ;;
9893
9894 sysv4.3*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_shlibpath_var=no
9897 export_dynamic_flag_spec='-Bexport'
9898 ;;
9899
9900 sysv4*MP*)
9901 if test -d /usr/nec; then
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_shlibpath_var=no
9904 runpath_var=LD_RUN_PATH
9905 hardcode_runpath_var=yes
9906 ld_shlibs=yes
9907 fi
9908 ;;
9909
9910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9911 no_undefined_flag='${wl}-z,text'
9912 archive_cmds_need_lc=no
9913 hardcode_shlibpath_var=no
9914 runpath_var='LD_RUN_PATH'
9915
9916 if test "$GCC" = yes; then
9917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 else
9920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 fi
9923 ;;
9924
9925 sysv5* | sco3.2v5* | sco5v6*)
9926 # Note: We can NOT use -z defs as we might desire, because we do not
9927 # link with -lc, and that would cause any symbols used from libc to
9928 # always be unresolved, which means just about no library would
9929 # ever link correctly. If we're not using GNU ld we use -z text
9930 # though, which does catch some bad symbols but isn't as heavy-handed
9931 # as -z defs.
9932 no_undefined_flag='${wl}-z,text'
9933 allow_undefined_flag='${wl}-z,nodefs'
9934 archive_cmds_need_lc=no
9935 hardcode_shlibpath_var=no
9936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9937 hardcode_libdir_separator=':'
9938 link_all_deplibs=yes
9939 export_dynamic_flag_spec='${wl}-Bexport'
9940 runpath_var='LD_RUN_PATH'
9941
9942 if test "$GCC" = yes; then
9943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 fi
9949 ;;
9950
9951 uts4*)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 *)
9958 ld_shlibs=no
9959 ;;
9960 esac
9961
9962 if test x$host_vendor = xsni; then
9963 case $host in
9964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9965 export_dynamic_flag_spec='${wl}-Blargedynsym'
9966 ;;
9967 esac
9968 fi
9969 fi
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9972 $as_echo "$ld_shlibs" >&6; }
9973 test "$ld_shlibs" = no && can_build_shared=no
9974
9975 with_gnu_ld=$with_gnu_ld
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991 #
9992 # Do we need to explicitly link libc?
9993 #
9994 case "x$archive_cmds_need_lc" in
9995 x|xyes)
9996 # Assume -lc should be added
9997 archive_cmds_need_lc=yes
9998
9999 if test "$enable_shared" = yes && test "$GCC" = yes; then
10000 case $archive_cmds in
10001 *'~'*)
10002 # FIXME: we may have to deal with multi-command sequences.
10003 ;;
10004 '$CC '*)
10005 # Test whether the compiler implicitly links with -lc since on some
10006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10007 # to ld, don't add -lc before -lgcc.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10010 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 $RM conftest*
10014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10015
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017 (eval $ac_compile) 2>&5
10018 ac_status=$?
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; } 2>conftest.err; then
10021 soname=conftest
10022 lib=conftest
10023 libobjs=conftest.$ac_objext
10024 deplibs=
10025 wl=$lt_prog_compiler_wl
10026 pic_flag=$lt_prog_compiler_pic
10027 compiler_flags=-v
10028 linker_flags=-v
10029 verstring=
10030 output_objdir=.
10031 libname=conftest
10032 lt_save_allow_undefined_flag=$allow_undefined_flag
10033 allow_undefined_flag=
10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10036 ac_status=$?
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; }
10039 then
10040 lt_cv_archive_cmds_need_lc=no
10041 else
10042 lt_cv_archive_cmds_need_lc=yes
10043 fi
10044 allow_undefined_flag=$lt_save_allow_undefined_flag
10045 else
10046 cat conftest.err 1>&5
10047 fi
10048 $RM conftest*
10049
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10054 ;;
10055 esac
10056 fi
10057 ;;
10058 esac
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10213
10214 if test "$GCC" = yes; then
10215 case $host_os in
10216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10217 *) lt_awk_arg="/^libraries:/" ;;
10218 esac
10219 case $host_os in
10220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10221 *) lt_sed_strip_eq="s,=/,/,g" ;;
10222 esac
10223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10224 case $lt_search_path_spec in
10225 *\;*)
10226 # if the path contains ";" then we assume it to be the separator
10227 # otherwise default to the standard path separator (i.e. ":") - it is
10228 # assumed that no part of a normal pathname contains ";" but that should
10229 # okay in the real world where ";" in dirpaths is itself problematic.
10230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10231 ;;
10232 *)
10233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10234 ;;
10235 esac
10236 # Ok, now we have the path, separated by spaces, we can step through it
10237 # and add multilib dir if necessary.
10238 lt_tmp_lt_search_path_spec=
10239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10240 for lt_sys_path in $lt_search_path_spec; do
10241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10243 else
10244 test -d "$lt_sys_path" && \
10245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10246 fi
10247 done
10248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10249 BEGIN {RS=" "; FS="/|\n";} {
10250 lt_foo="";
10251 lt_count=0;
10252 for (lt_i = NF; lt_i > 0; lt_i--) {
10253 if ($lt_i != "" && $lt_i != ".") {
10254 if ($lt_i == "..") {
10255 lt_count++;
10256 } else {
10257 if (lt_count == 0) {
10258 lt_foo="/" $lt_i lt_foo;
10259 } else {
10260 lt_count--;
10261 }
10262 }
10263 }
10264 }
10265 if (lt_foo != "") { lt_freq[lt_foo]++; }
10266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10267 }'`
10268 # AWK program above erroneously prepends '/' to C:/dos/paths
10269 # for these hosts.
10270 case $host_os in
10271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10273 esac
10274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10275 else
10276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10277 fi
10278 library_names_spec=
10279 libname_spec='lib$name'
10280 soname_spec=
10281 shrext_cmds=".so"
10282 postinstall_cmds=
10283 postuninstall_cmds=
10284 finish_cmds=
10285 finish_eval=
10286 shlibpath_var=
10287 shlibpath_overrides_runpath=unknown
10288 version_type=none
10289 dynamic_linker="$host_os ld.so"
10290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10291 need_lib_prefix=unknown
10292 hardcode_into_libs=no
10293
10294 # when you set need_version to no, make sure it does not cause -set_version
10295 # flags to be left without arguments
10296 need_version=unknown
10297
10298 case $host_os in
10299 aix3*)
10300 version_type=linux # correct to gnu/linux during the next big refactor
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10302 shlibpath_var=LIBPATH
10303
10304 # AIX 3 has no versioning support, so we append a major version to the name.
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 ;;
10307
10308 aix[4-9]*)
10309 version_type=linux # correct to gnu/linux during the next big refactor
10310 need_lib_prefix=no
10311 need_version=no
10312 hardcode_into_libs=yes
10313 if test "$host_cpu" = ia64; then
10314 # AIX 5 supports IA64
10315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 else
10318 # With GCC up to 2.95.x, collect2 would create an import file
10319 # for dependence libraries. The import file would start with
10320 # the line `#! .'. This would cause the generated library to
10321 # depend on `.', always an invalid library. This was fixed in
10322 # development snapshots of GCC prior to 3.0.
10323 case $host_os in
10324 aix4 | aix4.[01] | aix4.[01].*)
10325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10326 echo ' yes '
10327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10328 :
10329 else
10330 can_build_shared=no
10331 fi
10332 ;;
10333 esac
10334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10335 # soname into executable. Probably we can add versioning support to
10336 # collect2, so additional links can be useful in future.
10337 if test "$aix_use_runtimelinking" = yes; then
10338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10339 # instead of lib<name>.a to let people know that these are not
10340 # typical AIX shared libraries.
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 else
10343 # We preserve .a as extension for shared libraries through AIX4.2
10344 # and later when we are not doing run time linking.
10345 library_names_spec='${libname}${release}.a $libname.a'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 fi
10348 shlibpath_var=LIBPATH
10349 fi
10350 ;;
10351
10352 amigaos*)
10353 case $host_cpu in
10354 powerpc)
10355 # Since July 2007 AmigaOS4 officially supports .so libraries.
10356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 ;;
10359 m68k)
10360 library_names_spec='$libname.ixlibrary $libname.a'
10361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10362 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10363 ;;
10364 esac
10365 ;;
10366
10367 beos*)
10368 library_names_spec='${libname}${shared_ext}'
10369 dynamic_linker="$host_os ld.so"
10370 shlibpath_var=LIBRARY_PATH
10371 ;;
10372
10373 bsdi[45]*)
10374 version_type=linux # correct to gnu/linux during the next big refactor
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10382 # the default ld.so.conf also contains /usr/contrib/lib and
10383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10384 # libtool to hard-code these into programs
10385 ;;
10386
10387 cygwin* | mingw* | pw32* | cegcc*)
10388 version_type=windows
10389 shrext_cmds=".dll"
10390 need_version=no
10391 need_lib_prefix=no
10392
10393 case $GCC,$cc_basename in
10394 yes,*)
10395 # gcc
10396 library_names_spec='$libname.dll.a'
10397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10398 postinstall_cmds='base_file=`basename \${file}`~
10399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10400 dldir=$destdir/`dirname \$dlpath`~
10401 test -d \$dldir || mkdir -p \$dldir~
10402 $install_prog $dir/$dlname \$dldir/$dlname~
10403 chmod a+x \$dldir/$dlname~
10404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10406 fi'
10407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10408 dlpath=$dir/\$dldll~
10409 $RM \$dlpath'
10410 shlibpath_overrides_runpath=yes
10411
10412 case $host_os in
10413 cygwin*)
10414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10416
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10418 ;;
10419 mingw* | cegcc*)
10420 # MinGW DLLs use traditional 'lib' prefix
10421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422 ;;
10423 pw32*)
10424 # pw32 DLLs use 'pw' prefix rather than 'lib'
10425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10426 ;;
10427 esac
10428 dynamic_linker='Win32 ld.exe'
10429 ;;
10430
10431 *,cl*)
10432 # Native MSVC
10433 libname_spec='$name'
10434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435 library_names_spec='${libname}.dll.lib'
10436
10437 case $build_os in
10438 mingw*)
10439 sys_lib_search_path_spec=
10440 lt_save_ifs=$IFS
10441 IFS=';'
10442 for lt_path in $LIB
10443 do
10444 IFS=$lt_save_ifs
10445 # Let DOS variable expansion print the short 8.3 style file name.
10446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10448 done
10449 IFS=$lt_save_ifs
10450 # Convert to MSYS style.
10451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10452 ;;
10453 cygwin*)
10454 # Convert to unix form, then to dos form, then back to unix form
10455 # but this time dos style (no spaces!) so that the unix form looks
10456 # like /cygdrive/c/PROGRA~1:/cygdr...
10457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10460 ;;
10461 *)
10462 sys_lib_search_path_spec="$LIB"
10463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10464 # It is most probably a Windows format PATH.
10465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10466 else
10467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10468 fi
10469 # FIXME: find the short name or the path components, as spaces are
10470 # common. (e.g. "Program Files" -> "PROGRA~1")
10471 ;;
10472 esac
10473
10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10475 postinstall_cmds='base_file=`basename \${file}`~
10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10477 dldir=$destdir/`dirname \$dlpath`~
10478 test -d \$dldir || mkdir -p \$dldir~
10479 $install_prog $dir/$dlname \$dldir/$dlname'
10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481 dlpath=$dir/\$dldll~
10482 $RM \$dlpath'
10483 shlibpath_overrides_runpath=yes
10484 dynamic_linker='Win32 link.exe'
10485 ;;
10486
10487 *)
10488 # Assume MSVC wrapper
10489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10490 dynamic_linker='Win32 ld.exe'
10491 ;;
10492 esac
10493 # FIXME: first we should search . and the directory the executable is in
10494 shlibpath_var=PATH
10495 ;;
10496
10497 darwin* | rhapsody*)
10498 dynamic_linker="$host_os dyld"
10499 version_type=darwin
10500 need_lib_prefix=no
10501 need_version=no
10502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10503 soname_spec='${libname}${release}${major}$shared_ext'
10504 shlibpath_overrides_runpath=yes
10505 shlibpath_var=DYLD_LIBRARY_PATH
10506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10507
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10510 ;;
10511
10512 dgux*)
10513 version_type=linux # correct to gnu/linux during the next big refactor
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 ;;
10520
10521 freebsd* | dragonfly*)
10522 # DragonFly does not have aout. When/if they implement a new
10523 # versioning mechanism, adjust this.
10524 if test -x /usr/bin/objformat; then
10525 objformat=`/usr/bin/objformat`
10526 else
10527 case $host_os in
10528 freebsd[23].*) objformat=aout ;;
10529 *) objformat=elf ;;
10530 esac
10531 fi
10532 version_type=freebsd-$objformat
10533 case $version_type in
10534 freebsd-elf*)
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10536 need_version=no
10537 need_lib_prefix=no
10538 ;;
10539 freebsd-*)
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10541 need_version=yes
10542 ;;
10543 esac
10544 shlibpath_var=LD_LIBRARY_PATH
10545 case $host_os in
10546 freebsd2.*)
10547 shlibpath_overrides_runpath=yes
10548 ;;
10549 freebsd3.[01]* | freebsdelf3.[01]*)
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10552 ;;
10553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10557 ;;
10558 *) # from 4.6 on, and DragonFly
10559 shlibpath_overrides_runpath=yes
10560 hardcode_into_libs=yes
10561 ;;
10562 esac
10563 ;;
10564
10565 haiku*)
10566 version_type=linux # correct to gnu/linux during the next big refactor
10567 need_lib_prefix=no
10568 need_version=no
10569 dynamic_linker="$host_os runtime_loader"
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10575 hardcode_into_libs=yes
10576 ;;
10577
10578 hpux9* | hpux10* | hpux11*)
10579 # Give a soname corresponding to the major version so that dld.sl refuses to
10580 # link against other versions.
10581 version_type=sunos
10582 need_lib_prefix=no
10583 need_version=no
10584 case $host_cpu in
10585 ia64*)
10586 shrext_cmds='.so'
10587 hardcode_into_libs=yes
10588 dynamic_linker="$host_os dld.so"
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 if test "X$HPUX_IA64_MODE" = X32; then
10594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10595 else
10596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10597 fi
10598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10599 ;;
10600 hppa*64*)
10601 shrext_cmds='.sl'
10602 hardcode_into_libs=yes
10603 dynamic_linker="$host_os dld.sl"
10604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10610 ;;
10611 *)
10612 shrext_cmds='.sl'
10613 dynamic_linker="$host_os dld.sl"
10614 shlibpath_var=SHLIB_PATH
10615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 ;;
10619 esac
10620 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10621 postinstall_cmds='chmod 555 $lib'
10622 # or fails outright, so override atomically:
10623 install_override_mode=555
10624 ;;
10625
10626 interix[3-9]*)
10627 version_type=linux # correct to gnu/linux during the next big refactor
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10635 hardcode_into_libs=yes
10636 ;;
10637
10638 irix5* | irix6* | nonstopux*)
10639 case $host_os in
10640 nonstopux*) version_type=nonstopux ;;
10641 *)
10642 if test "$lt_cv_prog_gnu_ld" = yes; then
10643 version_type=linux # correct to gnu/linux during the next big refactor
10644 else
10645 version_type=irix
10646 fi ;;
10647 esac
10648 need_lib_prefix=no
10649 need_version=no
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10652 case $host_os in
10653 irix5* | nonstopux*)
10654 libsuff= shlibsuff=
10655 ;;
10656 *)
10657 case $LD in # libtool.m4 will add one of these switches to LD
10658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10659 libsuff= shlibsuff= libmagic=32-bit;;
10660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10661 libsuff=32 shlibsuff=N32 libmagic=N32;;
10662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10664 *) libsuff= shlibsuff= libmagic=never-match;;
10665 esac
10666 ;;
10667 esac
10668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10669 shlibpath_overrides_runpath=no
10670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10672 hardcode_into_libs=yes
10673 ;;
10674
10675 # No shared lib support for Linux oldld, aout, or coff.
10676 linux*oldld* | linux*aout* | linux*coff*)
10677 dynamic_linker=no
10678 ;;
10679
10680 # This must be glibc/ELF.
10681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10682 version_type=linux # correct to gnu/linux during the next big refactor
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=no
10690
10691 # Some binutils ld are patched to set DT_RUNPATH
10692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 lt_cv_shlibpath_overrides_runpath=no
10696 save_LDFLAGS=$LDFLAGS
10697 save_libdir=$libdir
10698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702
10703 int
10704 main ()
10705 {
10706
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10713 lt_cv_shlibpath_overrides_runpath=yes
10714 fi
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LDFLAGS=$save_LDFLAGS
10719 libdir=$save_libdir
10720
10721 fi
10722
10723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10724
10725 # This implies no fast_install, which is unacceptable.
10726 # Some rework will be needed to allow for fast_install
10727 # before this can be enabled.
10728 hardcode_into_libs=yes
10729
10730 # Append ld.so.conf contents to the search path
10731 if test -f /etc/ld.so.conf; then
10732 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' ' '`
10733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10734 fi
10735
10736 # We used to test for /lib/ld.so.1 and disable shared libraries on
10737 # powerpc, because MkLinux only supported shared libraries with the
10738 # GNU dynamic linker. Since this was broken with cross compilers,
10739 # most powerpc-linux boxes support dynamic linking these days and
10740 # people can always --disable-shared, the test was removed, and we
10741 # assume the GNU/Linux dynamic linker is in use.
10742 dynamic_linker='GNU/Linux ld.so'
10743 ;;
10744
10745 netbsdelf*-gnu)
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10753 hardcode_into_libs=yes
10754 dynamic_linker='NetBSD ld.elf_so'
10755 ;;
10756
10757 netbsd*)
10758 version_type=sunos
10759 need_lib_prefix=no
10760 need_version=no
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10764 dynamic_linker='NetBSD (a.out) ld.so'
10765 else
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 dynamic_linker='NetBSD ld.elf_so'
10769 fi
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes
10772 hardcode_into_libs=yes
10773 ;;
10774
10775 newsos6)
10776 version_type=linux # correct to gnu/linux during the next big refactor
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes
10780 ;;
10781
10782 *nto* | *qnx*)
10783 version_type=qnx
10784 need_lib_prefix=no
10785 need_version=no
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 dynamic_linker='ldqnx.so'
10792 ;;
10793
10794 openbsd*)
10795 version_type=sunos
10796 sys_lib_dlsearch_path_spec="/usr/lib"
10797 need_lib_prefix=no
10798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10799 case $host_os in
10800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10801 *) need_version=no ;;
10802 esac
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10807 case $host_os in
10808 openbsd2.[89] | openbsd2.[89].*)
10809 shlibpath_overrides_runpath=no
10810 ;;
10811 *)
10812 shlibpath_overrides_runpath=yes
10813 ;;
10814 esac
10815 else
10816 shlibpath_overrides_runpath=yes
10817 fi
10818 ;;
10819
10820 os2*)
10821 libname_spec='$name'
10822 shrext_cmds=".dll"
10823 need_lib_prefix=no
10824 library_names_spec='$libname${shared_ext} $libname.a'
10825 dynamic_linker='OS/2 ld.exe'
10826 shlibpath_var=LIBPATH
10827 ;;
10828
10829 osf3* | osf4* | osf5*)
10830 version_type=osf
10831 need_lib_prefix=no
10832 need_version=no
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10838 ;;
10839
10840 rdos*)
10841 dynamic_linker=no
10842 ;;
10843
10844 solaris*)
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10853 # ldd complains unless libraries are executable
10854 postinstall_cmds='chmod +x $lib'
10855 ;;
10856
10857 sunos4*)
10858 version_type=sunos
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863 if test "$with_gnu_ld" = yes; then
10864 need_lib_prefix=no
10865 fi
10866 need_version=yes
10867 ;;
10868
10869 sysv4 | sysv4.3*)
10870 version_type=linux # correct to gnu/linux during the next big refactor
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 case $host_vendor in
10875 sni)
10876 shlibpath_overrides_runpath=no
10877 need_lib_prefix=no
10878 runpath_var=LD_RUN_PATH
10879 ;;
10880 siemens)
10881 need_lib_prefix=no
10882 ;;
10883 motorola)
10884 need_lib_prefix=no
10885 need_version=no
10886 shlibpath_overrides_runpath=no
10887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10888 ;;
10889 esac
10890 ;;
10891
10892 sysv4*MP*)
10893 if test -d /usr/nec ;then
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10896 soname_spec='$libname${shared_ext}.$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 fi
10899 ;;
10900
10901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10902 version_type=freebsd-elf
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 if test "$with_gnu_ld" = yes; then
10911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10912 else
10913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10914 case $host_os in
10915 sco3.2v5*)
10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10917 ;;
10918 esac
10919 fi
10920 sys_lib_dlsearch_path_spec='/usr/lib'
10921 ;;
10922
10923 tpf*)
10924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 uts4*)
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 ;;
10940
10941 *)
10942 dynamic_linker=no
10943 ;;
10944 esac
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10946 $as_echo "$dynamic_linker" >&6; }
10947 test "$dynamic_linker" = no && can_build_shared=no
10948
10949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950 if test "$GCC" = yes; then
10951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952 fi
10953
10954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10956 fi
10957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10959 fi
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11054 hardcode_action=
11055 if test -n "$hardcode_libdir_flag_spec" ||
11056 test -n "$runpath_var" ||
11057 test "X$hardcode_automatic" = "Xyes" ; then
11058
11059 # We can hardcode non-existent directories.
11060 if test "$hardcode_direct" != no &&
11061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11062 # have to relink, otherwise we might link with an installed library
11063 # when we should be linking with a yet-to-be-installed one
11064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11065 test "$hardcode_minus_L" != no; then
11066 # Linking always hardcodes the temporary library directory.
11067 hardcode_action=relink
11068 else
11069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11070 hardcode_action=immediate
11071 fi
11072 else
11073 # We cannot hardcode anything, or else we can only hardcode existing
11074 # directories.
11075 hardcode_action=unsupported
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11078 $as_echo "$hardcode_action" >&6; }
11079
11080 if test "$hardcode_action" = relink ||
11081 test "$inherit_rpath" = yes; then
11082 # Fast installation is not supported
11083 enable_fast_install=no
11084 elif test "$shlibpath_overrides_runpath" = yes ||
11085 test "$enable_shared" = no; then
11086 # Fast installation is not necessary
11087 enable_fast_install=needless
11088 fi
11089
11090
11091
11092
11093
11094
11095 if test "x$enable_dlopen" != xyes; then
11096 enable_dlopen=unknown
11097 enable_dlopen_self=unknown
11098 enable_dlopen_self_static=unknown
11099 else
11100 lt_cv_dlopen=no
11101 lt_cv_dlopen_libs=
11102
11103 case $host_os in
11104 beos*)
11105 lt_cv_dlopen="load_add_on"
11106 lt_cv_dlopen_libs=
11107 lt_cv_dlopen_self=yes
11108 ;;
11109
11110 mingw* | pw32* | cegcc*)
11111 lt_cv_dlopen="LoadLibrary"
11112 lt_cv_dlopen_libs=
11113 ;;
11114
11115 cygwin*)
11116 lt_cv_dlopen="dlopen"
11117 lt_cv_dlopen_libs=
11118 ;;
11119
11120 darwin*)
11121 # if libdl is installed we need to link against it
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11124 if ${ac_cv_lib_dl_dlopen+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-ldl $LIBS"
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131
11132 /* Override any GCC internal prototype to avoid an error.
11133 Use char because int might match the return type of a GCC
11134 builtin and then its argument prototype would still apply. */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 char dlopen ();
11139 int
11140 main ()
11141 {
11142 return dlopen ();
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 ac_cv_lib_dl_dlopen=yes
11149 else
11150 ac_cv_lib_dl_dlopen=no
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11158 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11160 else
11161
11162 lt_cv_dlopen="dyld"
11163 lt_cv_dlopen_libs=
11164 lt_cv_dlopen_self=yes
11165
11166 fi
11167
11168 ;;
11169
11170 *)
11171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11172 if test "x$ac_cv_func_shl_load" = xyes; then :
11173 lt_cv_dlopen="shl_load"
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11177 if ${ac_cv_lib_dld_shl_load+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldld $LIBS"
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char shl_load ();
11192 int
11193 main ()
11194 {
11195 return shl_load ();
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dld_shl_load=yes
11202 else
11203 ac_cv_lib_dld_shl_load=no
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11213 else
11214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11215 if test "x$ac_cv_func_dlopen" = xyes; then :
11216 lt_cv_dlopen="dlopen"
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if ${ac_cv_lib_dl_dlopen+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldl $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239 ;
11240 return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_dl_dlopen=yes
11245 else
11246 ac_cv_lib_dl_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11259 if ${ac_cv_lib_svld_dlopen+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-lsvld $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dlopen ();
11274 int
11275 main ()
11276 {
11277 return dlopen ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_svld_dlopen=yes
11284 else
11285 ac_cv_lib_svld_dlopen=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11292 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11293 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11297 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_dld_link+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldld $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dld_link ();
11313 int
11314 main ()
11315 {
11316 return dld_link ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dld_dld_link=yes
11323 else
11324 ac_cv_lib_dld_dld_link=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11331 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11332 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342
11343 fi
11344
11345
11346 fi
11347
11348
11349 fi
11350
11351 ;;
11352 esac
11353
11354 if test "x$lt_cv_dlopen" != xno; then
11355 enable_dlopen=yes
11356 else
11357 enable_dlopen=no
11358 fi
11359
11360 case $lt_cv_dlopen in
11361 dlopen)
11362 save_CPPFLAGS="$CPPFLAGS"
11363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11364
11365 save_LDFLAGS="$LDFLAGS"
11366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11367
11368 save_LIBS="$LIBS"
11369 LIBS="$lt_cv_dlopen_libs $LIBS"
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11372 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11373 if ${lt_cv_dlopen_self+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 if test "$cross_compiling" = yes; then :
11377 lt_cv_dlopen_self=cross
11378 else
11379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380 lt_status=$lt_dlunknown
11381 cat > conftest.$ac_ext <<_LT_EOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384
11385 #if HAVE_DLFCN_H
11386 #include <dlfcn.h>
11387 #endif
11388
11389 #include <stdio.h>
11390
11391 #ifdef RTLD_GLOBAL
11392 # define LT_DLGLOBAL RTLD_GLOBAL
11393 #else
11394 # ifdef DL_GLOBAL
11395 # define LT_DLGLOBAL DL_GLOBAL
11396 # else
11397 # define LT_DLGLOBAL 0
11398 # endif
11399 #endif
11400
11401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402 find out it does not work in some platform. */
11403 #ifndef LT_DLLAZY_OR_NOW
11404 # ifdef RTLD_LAZY
11405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11406 # else
11407 # ifdef DL_LAZY
11408 # define LT_DLLAZY_OR_NOW DL_LAZY
11409 # else
11410 # ifdef RTLD_NOW
11411 # define LT_DLLAZY_OR_NOW RTLD_NOW
11412 # else
11413 # ifdef DL_NOW
11414 # define LT_DLLAZY_OR_NOW DL_NOW
11415 # else
11416 # define LT_DLLAZY_OR_NOW 0
11417 # endif
11418 # endif
11419 # endif
11420 # endif
11421 #endif
11422
11423 /* When -fvisbility=hidden is used, assume the code has been annotated
11424 correspondingly for the symbols needed. */
11425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426 int fnord () __attribute__((visibility("default")));
11427 #endif
11428
11429 int fnord () { return 42; }
11430 int main ()
11431 {
11432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433 int status = $lt_dlunknown;
11434
11435 if (self)
11436 {
11437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11438 else
11439 {
11440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11441 else puts (dlerror ());
11442 }
11443 /* dlclose (self); */
11444 }
11445 else
11446 puts (dlerror ());
11447
11448 return status;
11449 }
11450 _LT_EOF
11451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452 (eval $ac_link) 2>&5
11453 ac_status=$?
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456 (./conftest; exit; ) >&5 2>/dev/null
11457 lt_status=$?
11458 case x$lt_status in
11459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11462 esac
11463 else :
11464 # compilation failed
11465 lt_cv_dlopen_self=no
11466 fi
11467 fi
11468 rm -fr conftest*
11469
11470
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11473 $as_echo "$lt_cv_dlopen_self" >&6; }
11474
11475 if test "x$lt_cv_dlopen_self" = xyes; then
11476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11479 if ${lt_cv_dlopen_self_static+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test "$cross_compiling" = yes; then :
11483 lt_cv_dlopen_self_static=cross
11484 else
11485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11486 lt_status=$lt_dlunknown
11487 cat > conftest.$ac_ext <<_LT_EOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11490
11491 #if HAVE_DLFCN_H
11492 #include <dlfcn.h>
11493 #endif
11494
11495 #include <stdio.h>
11496
11497 #ifdef RTLD_GLOBAL
11498 # define LT_DLGLOBAL RTLD_GLOBAL
11499 #else
11500 # ifdef DL_GLOBAL
11501 # define LT_DLGLOBAL DL_GLOBAL
11502 # else
11503 # define LT_DLGLOBAL 0
11504 # endif
11505 #endif
11506
11507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11508 find out it does not work in some platform. */
11509 #ifndef LT_DLLAZY_OR_NOW
11510 # ifdef RTLD_LAZY
11511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11512 # else
11513 # ifdef DL_LAZY
11514 # define LT_DLLAZY_OR_NOW DL_LAZY
11515 # else
11516 # ifdef RTLD_NOW
11517 # define LT_DLLAZY_OR_NOW RTLD_NOW
11518 # else
11519 # ifdef DL_NOW
11520 # define LT_DLLAZY_OR_NOW DL_NOW
11521 # else
11522 # define LT_DLLAZY_OR_NOW 0
11523 # endif
11524 # endif
11525 # endif
11526 # endif
11527 #endif
11528
11529 /* When -fvisbility=hidden is used, assume the code has been annotated
11530 correspondingly for the symbols needed. */
11531 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11532 int fnord () __attribute__((visibility("default")));
11533 #endif
11534
11535 int fnord () { return 42; }
11536 int main ()
11537 {
11538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539 int status = $lt_dlunknown;
11540
11541 if (self)
11542 {
11543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11544 else
11545 {
11546 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11547 else puts (dlerror ());
11548 }
11549 /* dlclose (self); */
11550 }
11551 else
11552 puts (dlerror ());
11553
11554 return status;
11555 }
11556 _LT_EOF
11557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11558 (eval $ac_link) 2>&5
11559 ac_status=$?
11560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11562 (./conftest; exit; ) >&5 2>/dev/null
11563 lt_status=$?
11564 case x$lt_status in
11565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11568 esac
11569 else :
11570 # compilation failed
11571 lt_cv_dlopen_self_static=no
11572 fi
11573 fi
11574 rm -fr conftest*
11575
11576
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11580 fi
11581
11582 CPPFLAGS="$save_CPPFLAGS"
11583 LDFLAGS="$save_LDFLAGS"
11584 LIBS="$save_LIBS"
11585 ;;
11586 esac
11587
11588 case $lt_cv_dlopen_self in
11589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11590 *) enable_dlopen_self=unknown ;;
11591 esac
11592
11593 case $lt_cv_dlopen_self_static in
11594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11595 *) enable_dlopen_self_static=unknown ;;
11596 esac
11597 fi
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 striplib=
11616 old_striplib=
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 else
11625 # FIXME - insert some real tests, host_os isn't really good enough
11626 case $host_os in
11627 darwin*)
11628 if test -n "$STRIP" ; then
11629 striplib="$STRIP -x"
11630 old_striplib="$STRIP -S"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 fi
11637 ;;
11638 *)
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 ;;
11642 esac
11643 fi
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656 # Report which library types will actually be built
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11660 $as_echo "$can_build_shared" >&6; }
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11663 $as_echo_n "checking whether to build shared libraries... " >&6; }
11664 test "$can_build_shared" = "no" && enable_shared=no
11665
11666 # On AIX, shared libraries and static libraries use the same namespace, and
11667 # are all built from PIC.
11668 case $host_os in
11669 aix3*)
11670 test "$enable_shared" = yes && enable_static=no
11671 if test -n "$RANLIB"; then
11672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11673 postinstall_cmds='$RANLIB $lib'
11674 fi
11675 ;;
11676
11677 aix[4-9]*)
11678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11679 test "$enable_shared" = yes && enable_static=no
11680 fi
11681 ;;
11682 esac
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11684 $as_echo "$enable_shared" >&6; }
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11687 $as_echo_n "checking whether to build static libraries... " >&6; }
11688 # Make sure either enable_shared or enable_static is yes.
11689 test "$enable_shared" = yes || enable_static=yes
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11691 $as_echo "$enable_static" >&6; }
11692
11693
11694
11695
11696 fi
11697 ac_ext=c
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703 CC="$lt_save_CC"
11704
11705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11706 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11707 (test "X$CXX" != "Xg++"))) ; then
11708 ac_ext=cpp
11709 ac_cpp='$CXXCPP $CPPFLAGS'
11710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11714 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11715 if test -z "$CXXCPP"; then
11716 if ${ac_cv_prog_CXXCPP+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 # Double quotes because CXXCPP needs to be expanded
11720 for CXXCPP in "$CXX -E" "/lib/cpp"
11721 do
11722 ac_preproc_ok=false
11723 for ac_cxx_preproc_warn_flag in '' yes
11724 do
11725 # Use a header file that comes with gcc, so configuring glibc
11726 # with a fresh cross-compiler works.
11727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 # <limits.h> exists even on freestanding compilers.
11729 # On the NeXT, cc -E runs the code through the compiler's parser,
11730 # not just through cpp. "Syntax error" is here to catch this case.
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #ifdef __STDC__
11734 # include <limits.h>
11735 #else
11736 # include <assert.h>
11737 #endif
11738 Syntax error
11739 _ACEOF
11740 if ac_fn_cxx_try_cpp "$LINENO"; then :
11741
11742 else
11743 # Broken: fails on valid input.
11744 continue
11745 fi
11746 rm -f conftest.err conftest.i conftest.$ac_ext
11747
11748 # OK, works on sane cases. Now check whether nonexistent headers
11749 # can be detected and how.
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #include <ac_nonexistent.h>
11753 _ACEOF
11754 if ac_fn_cxx_try_cpp "$LINENO"; then :
11755 # Broken: success on invalid input.
11756 continue
11757 else
11758 # Passes both tests.
11759 ac_preproc_ok=:
11760 break
11761 fi
11762 rm -f conftest.err conftest.i conftest.$ac_ext
11763
11764 done
11765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11766 rm -f conftest.i conftest.err conftest.$ac_ext
11767 if $ac_preproc_ok; then :
11768 break
11769 fi
11770
11771 done
11772 ac_cv_prog_CXXCPP=$CXXCPP
11773
11774 fi
11775 CXXCPP=$ac_cv_prog_CXXCPP
11776 else
11777 ac_cv_prog_CXXCPP=$CXXCPP
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11780 $as_echo "$CXXCPP" >&6; }
11781 ac_preproc_ok=false
11782 for ac_cxx_preproc_warn_flag in '' yes
11783 do
11784 # Use a header file that comes with gcc, so configuring glibc
11785 # with a fresh cross-compiler works.
11786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 # <limits.h> exists even on freestanding compilers.
11788 # On the NeXT, cc -E runs the code through the compiler's parser,
11789 # not just through cpp. "Syntax error" is here to catch this case.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #ifdef __STDC__
11793 # include <limits.h>
11794 #else
11795 # include <assert.h>
11796 #endif
11797 Syntax error
11798 _ACEOF
11799 if ac_fn_cxx_try_cpp "$LINENO"; then :
11800
11801 else
11802 # Broken: fails on valid input.
11803 continue
11804 fi
11805 rm -f conftest.err conftest.i conftest.$ac_ext
11806
11807 # OK, works on sane cases. Now check whether nonexistent headers
11808 # can be detected and how.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <ac_nonexistent.h>
11812 _ACEOF
11813 if ac_fn_cxx_try_cpp "$LINENO"; then :
11814 # Broken: success on invalid input.
11815 continue
11816 else
11817 # Passes both tests.
11818 ac_preproc_ok=:
11819 break
11820 fi
11821 rm -f conftest.err conftest.i conftest.$ac_ext
11822
11823 done
11824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11825 rm -f conftest.i conftest.err conftest.$ac_ext
11826 if $ac_preproc_ok; then :
11827
11828 else
11829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11831 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11832 See \`config.log' for more details" "$LINENO" 5; }
11833 fi
11834
11835 ac_ext=c
11836 ac_cpp='$CPP $CPPFLAGS'
11837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841 else
11842 _lt_caught_CXX_error=yes
11843 fi
11844
11845 ac_ext=cpp
11846 ac_cpp='$CXXCPP $CPPFLAGS'
11847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11850
11851 archive_cmds_need_lc_CXX=no
11852 allow_undefined_flag_CXX=
11853 always_export_symbols_CXX=no
11854 archive_expsym_cmds_CXX=
11855 compiler_needs_object_CXX=no
11856 export_dynamic_flag_spec_CXX=
11857 hardcode_direct_CXX=no
11858 hardcode_direct_absolute_CXX=no
11859 hardcode_libdir_flag_spec_CXX=
11860 hardcode_libdir_separator_CXX=
11861 hardcode_minus_L_CXX=no
11862 hardcode_shlibpath_var_CXX=unsupported
11863 hardcode_automatic_CXX=no
11864 inherit_rpath_CXX=no
11865 module_cmds_CXX=
11866 module_expsym_cmds_CXX=
11867 link_all_deplibs_CXX=unknown
11868 old_archive_cmds_CXX=$old_archive_cmds
11869 reload_flag_CXX=$reload_flag
11870 reload_cmds_CXX=$reload_cmds
11871 no_undefined_flag_CXX=
11872 whole_archive_flag_spec_CXX=
11873 enable_shared_with_static_runtimes_CXX=no
11874
11875 # Source file extension for C++ test sources.
11876 ac_ext=cpp
11877
11878 # Object file extension for compiled C++ test sources.
11879 objext=o
11880 objext_CXX=$objext
11881
11882 # No sense in running all these tests if we already determined that
11883 # the CXX compiler isn't working. Some variables (like enable_shared)
11884 # are currently assumed to apply to all compilers on this platform,
11885 # and will be corrupted by setting them based on a non-working compiler.
11886 if test "$_lt_caught_CXX_error" != yes; then
11887 # Code to be used in simple compile tests
11888 lt_simple_compile_test_code="int some_variable = 0;"
11889
11890 # Code to be used in simple link tests
11891 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11892
11893 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11894
11895
11896
11897
11898
11899
11900 # If no C compiler was specified, use CC.
11901 LTCC=${LTCC-"$CC"}
11902
11903 # If no C compiler flags were specified, use CFLAGS.
11904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11905
11906 # Allow CC to be a program name with arguments.
11907 compiler=$CC
11908
11909
11910 # save warnings/boilerplate of simple test code
11911 ac_outfile=conftest.$ac_objext
11912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11914 _lt_compiler_boilerplate=`cat conftest.err`
11915 $RM conftest*
11916
11917 ac_outfile=conftest.$ac_objext
11918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11920 _lt_linker_boilerplate=`cat conftest.err`
11921 $RM -r conftest*
11922
11923
11924 # Allow CC to be a program name with arguments.
11925 lt_save_CC=$CC
11926 lt_save_CFLAGS=$CFLAGS
11927 lt_save_LD=$LD
11928 lt_save_GCC=$GCC
11929 GCC=$GXX
11930 lt_save_with_gnu_ld=$with_gnu_ld
11931 lt_save_path_LD=$lt_cv_path_LD
11932 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11933 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11934 else
11935 $as_unset lt_cv_prog_gnu_ld
11936 fi
11937 if test -n "${lt_cv_path_LDCXX+set}"; then
11938 lt_cv_path_LD=$lt_cv_path_LDCXX
11939 else
11940 $as_unset lt_cv_path_LD
11941 fi
11942 test -z "${LDCXX+set}" || LD=$LDCXX
11943 CC=${CXX-"c++"}
11944 CFLAGS=$CXXFLAGS
11945 compiler=$CC
11946 compiler_CXX=$CC
11947 for cc_temp in $compiler""; do
11948 case $cc_temp in
11949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11951 \-*) ;;
11952 *) break;;
11953 esac
11954 done
11955 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11956
11957
11958 if test -n "$compiler"; then
11959 # We don't want -fno-exception when compiling C++ code, so set the
11960 # no_builtin_flag separately
11961 if test "$GXX" = yes; then
11962 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11963 else
11964 lt_prog_compiler_no_builtin_flag_CXX=
11965 fi
11966
11967 if test "$GXX" = yes; then
11968 # Set up default GNU C++ configuration
11969
11970
11971
11972 # Check whether --with-gnu-ld was given.
11973 if test "${with_gnu_ld+set}" = set; then :
11974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11975 else
11976 with_gnu_ld=no
11977 fi
11978
11979 ac_prog=ld
11980 if test "$GCC" = yes; then
11981 # Check if gcc -print-prog-name=ld gives a path.
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11983 $as_echo_n "checking for ld used by $CC... " >&6; }
11984 case $host in
11985 *-*-mingw*)
11986 # gcc leaves a trailing carriage return which upsets mingw
11987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11988 *)
11989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11990 esac
11991 case $ac_prog in
11992 # Accept absolute paths.
11993 [\\/]* | ?:[\\/]*)
11994 re_direlt='/[^/][^/]*/\.\./'
11995 # Canonicalize the pathname of ld
11996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11999 done
12000 test -z "$LD" && LD="$ac_prog"
12001 ;;
12002 "")
12003 # If it fails, then pretend we aren't using GCC.
12004 ac_prog=ld
12005 ;;
12006 *)
12007 # If it is relative, then search for the first ld in PATH.
12008 with_gnu_ld=unknown
12009 ;;
12010 esac
12011 elif test "$with_gnu_ld" = yes; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12013 $as_echo_n "checking for GNU ld... " >&6; }
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12016 $as_echo_n "checking for non-GNU ld... " >&6; }
12017 fi
12018 if ${lt_cv_path_LD+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -z "$LD"; then
12022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12023 for ac_dir in $PATH; do
12024 IFS="$lt_save_ifs"
12025 test -z "$ac_dir" && ac_dir=.
12026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12027 lt_cv_path_LD="$ac_dir/$ac_prog"
12028 # Check to see if the program is GNU ld. I'd rather use --version,
12029 # but apparently some variants of GNU ld only accept -v.
12030 # Break only if it was the GNU/non-GNU ld that we prefer.
12031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12032 *GNU* | *'with BFD'*)
12033 test "$with_gnu_ld" != no && break
12034 ;;
12035 *)
12036 test "$with_gnu_ld" != yes && break
12037 ;;
12038 esac
12039 fi
12040 done
12041 IFS="$lt_save_ifs"
12042 else
12043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12044 fi
12045 fi
12046
12047 LD="$lt_cv_path_LD"
12048 if test -n "$LD"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12050 $as_echo "$LD" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 fi
12055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12058 if ${lt_cv_prog_gnu_ld+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12062 case `$LD -v 2>&1 </dev/null` in
12063 *GNU* | *'with BFD'*)
12064 lt_cv_prog_gnu_ld=yes
12065 ;;
12066 *)
12067 lt_cv_prog_gnu_ld=no
12068 ;;
12069 esac
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12073 with_gnu_ld=$lt_cv_prog_gnu_ld
12074
12075
12076
12077
12078
12079
12080
12081 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12082 # archiving commands below assume that GNU ld is being used.
12083 if test "$with_gnu_ld" = yes; then
12084 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12086
12087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12089
12090 # If archive_cmds runs LD, not CC, wlarc should be empty
12091 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12092 # investigate it a little bit more. (MM)
12093 wlarc='${wl}'
12094
12095 # ancient GNU ld didn't support --whole-archive et. al.
12096 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12097 $GREP 'no-whole-archive' > /dev/null; then
12098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099 else
12100 whole_archive_flag_spec_CXX=
12101 fi
12102 else
12103 with_gnu_ld=no
12104 wlarc=
12105
12106 # A generic and very simple default shared library creation
12107 # command for GNU C++ for the case where it uses the native
12108 # linker, instead of GNU ld. If possible, this setting should
12109 # overridden to take advantage of the native linker features on
12110 # the platform it is being used on.
12111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12112 fi
12113
12114 # Commands to make compiler produce verbose output that lists
12115 # what "hidden" libraries, object files and flags are used when
12116 # linking a shared library.
12117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12118
12119 else
12120 GXX=no
12121 with_gnu_ld=no
12122 wlarc=
12123 fi
12124
12125 # PORTME: fill in a description of your system's C++ link characteristics
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12128 ld_shlibs_CXX=yes
12129 case $host_os in
12130 aix3*)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12133 ;;
12134 aix[4-9]*)
12135 if test "$host_cpu" = ia64; then
12136 # On IA64, the linker does run time linking by default, so we don't
12137 # have to do anything special.
12138 aix_use_runtimelinking=no
12139 exp_sym_flag='-Bexport'
12140 no_entry_flag=""
12141 else
12142 aix_use_runtimelinking=no
12143
12144 # Test if we are trying to use run time linking or normal
12145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12146 # need to do runtime linking.
12147 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12148 for ld_flag in $LDFLAGS; do
12149 case $ld_flag in
12150 *-brtl*)
12151 aix_use_runtimelinking=yes
12152 break
12153 ;;
12154 esac
12155 done
12156 ;;
12157 esac
12158
12159 exp_sym_flag='-bexport'
12160 no_entry_flag='-bnoentry'
12161 fi
12162
12163 # When large executables or shared objects are built, AIX ld can
12164 # have problems creating the table of contents. If linking a library
12165 # or program results in "error TOC overflow" add -mminimal-toc to
12166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12168
12169 archive_cmds_CXX=''
12170 hardcode_direct_CXX=yes
12171 hardcode_direct_absolute_CXX=yes
12172 hardcode_libdir_separator_CXX=':'
12173 link_all_deplibs_CXX=yes
12174 file_list_spec_CXX='${wl}-f,'
12175
12176 if test "$GXX" = yes; then
12177 case $host_os in aix4.[012]|aix4.[012].*)
12178 # We only want to do this on AIX 4.2 and lower, the check
12179 # below for broken collect2 doesn't work under 4.3+
12180 collect2name=`${CC} -print-prog-name=collect2`
12181 if test -f "$collect2name" &&
12182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12183 then
12184 # We have reworked collect2
12185 :
12186 else
12187 # We have old collect2
12188 hardcode_direct_CXX=unsupported
12189 # It fails to find uninstalled libraries when the uninstalled
12190 # path is not listed in the libpath. Setting hardcode_minus_L
12191 # to unsupported forces relinking
12192 hardcode_minus_L_CXX=yes
12193 hardcode_libdir_flag_spec_CXX='-L$libdir'
12194 hardcode_libdir_separator_CXX=
12195 fi
12196 esac
12197 shared_flag='-shared'
12198 if test "$aix_use_runtimelinking" = yes; then
12199 shared_flag="$shared_flag "'${wl}-G'
12200 fi
12201 else
12202 # not using gcc
12203 if test "$host_cpu" = ia64; then
12204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12205 # chokes on -Wl,-G. The following line is correct:
12206 shared_flag='-G'
12207 else
12208 if test "$aix_use_runtimelinking" = yes; then
12209 shared_flag='${wl}-G'
12210 else
12211 shared_flag='${wl}-bM:SRE'
12212 fi
12213 fi
12214 fi
12215
12216 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12217 # It seems that -bexpall does not export symbols beginning with
12218 # underscore (_), so it is better to generate a list of symbols to
12219 # export.
12220 always_export_symbols_CXX=yes
12221 if test "$aix_use_runtimelinking" = yes; then
12222 # Warning - without using the other runtime loading flags (-brtl),
12223 # -berok will link without error, but may produce a broken library.
12224 allow_undefined_flag_CXX='-berok'
12225 # Determine the default libpath from the value encoded in an empty
12226 # executable.
12227 if test "${lt_cv_aix_libpath+set}" = set; then
12228 aix_libpath=$lt_cv_aix_libpath
12229 else
12230 if ${lt_cv_aix_libpath__CXX+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12235
12236 int
12237 main ()
12238 {
12239
12240 ;
12241 return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_cxx_try_link "$LINENO"; then :
12245
12246 lt_aix_libpath_sed='
12247 /Import File Strings/,/^$/ {
12248 /^0/ {
12249 s/^0 *\([^ ]*\) *$/\1/
12250 p
12251 }
12252 }'
12253 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254 # Check for a 64-bit object if we didn't find anything.
12255 if test -z "$lt_cv_aix_libpath__CXX"; then
12256 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12257 fi
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 if test -z "$lt_cv_aix_libpath__CXX"; then
12262 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12263 fi
12264
12265 fi
12266
12267 aix_libpath=$lt_cv_aix_libpath__CXX
12268 fi
12269
12270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271
12272 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12273 else
12274 if test "$host_cpu" = ia64; then
12275 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12276 allow_undefined_flag_CXX="-z nodefs"
12277 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12278 else
12279 # Determine the default libpath from the value encoded in an
12280 # empty executable.
12281 if test "${lt_cv_aix_libpath+set}" = set; then
12282 aix_libpath=$lt_cv_aix_libpath
12283 else
12284 if ${lt_cv_aix_libpath__CXX+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289
12290 int
12291 main ()
12292 {
12293
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_cxx_try_link "$LINENO"; then :
12299
12300 lt_aix_libpath_sed='
12301 /Import File Strings/,/^$/ {
12302 /^0/ {
12303 s/^0 *\([^ ]*\) *$/\1/
12304 p
12305 }
12306 }'
12307 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308 # Check for a 64-bit object if we didn't find anything.
12309 if test -z "$lt_cv_aix_libpath__CXX"; then
12310 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12311 fi
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 if test -z "$lt_cv_aix_libpath__CXX"; then
12316 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12317 fi
12318
12319 fi
12320
12321 aix_libpath=$lt_cv_aix_libpath__CXX
12322 fi
12323
12324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12325 # Warning - without using the other run time loading flags,
12326 # -berok will link without error, but may produce a broken library.
12327 no_undefined_flag_CXX=' ${wl}-bernotok'
12328 allow_undefined_flag_CXX=' ${wl}-berok'
12329 if test "$with_gnu_ld" = yes; then
12330 # We only use this code for GNU lds that support --whole-archive.
12331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12332 else
12333 # Exported symbols can be pulled into shared objects from archives
12334 whole_archive_flag_spec_CXX='$convenience'
12335 fi
12336 archive_cmds_need_lc_CXX=yes
12337 # This is similar to how AIX traditionally builds its shared
12338 # libraries.
12339 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12340 fi
12341 fi
12342 ;;
12343
12344 beos*)
12345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12346 allow_undefined_flag_CXX=unsupported
12347 # Joseph Beckenbach <[email protected]> says some releases of gcc
12348 # support --undefined. This deserves some investigation. FIXME
12349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350 else
12351 ld_shlibs_CXX=no
12352 fi
12353 ;;
12354
12355 chorus*)
12356 case $cc_basename in
12357 *)
12358 # FIXME: insert proper C++ library support
12359 ld_shlibs_CXX=no
12360 ;;
12361 esac
12362 ;;
12363
12364 cygwin* | mingw* | pw32* | cegcc*)
12365 case $GXX,$cc_basename in
12366 ,cl* | no,cl*)
12367 # Native MSVC
12368 # hardcode_libdir_flag_spec is actually meaningless, as there is
12369 # no search path for DLLs.
12370 hardcode_libdir_flag_spec_CXX=' '
12371 allow_undefined_flag_CXX=unsupported
12372 always_export_symbols_CXX=yes
12373 file_list_spec_CXX='@'
12374 # Tell ltmain to make .lib files, not .a files.
12375 libext=lib
12376 # Tell ltmain to make .dll files, not .so files.
12377 shrext_cmds=".dll"
12378 # FIXME: Setting linknames here is a bad hack.
12379 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12380 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12381 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12382 else
12383 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12384 fi~
12385 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12386 linknames='
12387 # The linker will not automatically build a static lib if we build a DLL.
12388 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12389 enable_shared_with_static_runtimes_CXX=yes
12390 # Don't use ranlib
12391 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12392 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12393 lt_tool_outputfile="@TOOL_OUTPUT@"~
12394 case $lt_outputfile in
12395 *.exe|*.EXE) ;;
12396 *)
12397 lt_outputfile="$lt_outputfile.exe"
12398 lt_tool_outputfile="$lt_tool_outputfile.exe"
12399 ;;
12400 esac~
12401 func_to_tool_file "$lt_outputfile"~
12402 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12404 $RM "$lt_outputfile.manifest";
12405 fi'
12406 ;;
12407 *)
12408 # g++
12409 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12410 # as there is no search path for DLLs.
12411 hardcode_libdir_flag_spec_CXX='-L$libdir'
12412 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12413 allow_undefined_flag_CXX=unsupported
12414 always_export_symbols_CXX=no
12415 enable_shared_with_static_runtimes_CXX=yes
12416
12417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12419 # If the export-symbols file already is a .def file (1st line
12420 # is EXPORTS), use it as is; otherwise, prepend...
12421 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12422 cp $export_symbols $output_objdir/$soname.def;
12423 else
12424 echo EXPORTS > $output_objdir/$soname.def;
12425 cat $export_symbols >> $output_objdir/$soname.def;
12426 fi~
12427 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12428 else
12429 ld_shlibs_CXX=no
12430 fi
12431 ;;
12432 esac
12433 ;;
12434 darwin* | rhapsody*)
12435
12436
12437 archive_cmds_need_lc_CXX=no
12438 hardcode_direct_CXX=no
12439 hardcode_automatic_CXX=yes
12440 hardcode_shlibpath_var_CXX=unsupported
12441 if test "$lt_cv_ld_force_load" = "yes"; then
12442 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12443
12444 else
12445 whole_archive_flag_spec_CXX=''
12446 fi
12447 link_all_deplibs_CXX=yes
12448 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12449 case $cc_basename in
12450 ifort*) _lt_dar_can_shared=yes ;;
12451 *) _lt_dar_can_shared=$GCC ;;
12452 esac
12453 if test "$_lt_dar_can_shared" = "yes"; then
12454 output_verbose_link_cmd=func_echo_all
12455 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12456 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12457 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12458 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12459 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12460 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12461 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12462 fi
12463
12464 else
12465 ld_shlibs_CXX=no
12466 fi
12467
12468 ;;
12469
12470 dgux*)
12471 case $cc_basename in
12472 ec++*)
12473 # FIXME: insert proper C++ library support
12474 ld_shlibs_CXX=no
12475 ;;
12476 ghcx*)
12477 # Green Hills C++ Compiler
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12480 ;;
12481 *)
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12484 ;;
12485 esac
12486 ;;
12487
12488 freebsd2.*)
12489 # C++ shared libraries reported to be fairly broken before
12490 # switch to ELF
12491 ld_shlibs_CXX=no
12492 ;;
12493
12494 freebsd-elf*)
12495 archive_cmds_need_lc_CXX=no
12496 ;;
12497
12498 freebsd* | dragonfly*)
12499 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12500 # conventions
12501 ld_shlibs_CXX=yes
12502 ;;
12503
12504 haiku*)
12505 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 link_all_deplibs_CXX=yes
12507 ;;
12508
12509 hpux9*)
12510 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12511 hardcode_libdir_separator_CXX=:
12512 export_dynamic_flag_spec_CXX='${wl}-E'
12513 hardcode_direct_CXX=yes
12514 hardcode_minus_L_CXX=yes # Not in the search PATH,
12515 # but as the default
12516 # location of the library.
12517
12518 case $cc_basename in
12519 CC*)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 aCC*)
12524 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12528 #
12529 # There doesn't appear to be a way to prevent this compiler from
12530 # explicitly linking system object files so we need to strip them
12531 # from the output so that they don't get included in the library
12532 # dependencies.
12533 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12534 ;;
12535 *)
12536 if test "$GXX" = yes; then
12537 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12538 else
12539 # FIXME: insert proper C++ library support
12540 ld_shlibs_CXX=no
12541 fi
12542 ;;
12543 esac
12544 ;;
12545
12546 hpux10*|hpux11*)
12547 if test $with_gnu_ld = no; then
12548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12549 hardcode_libdir_separator_CXX=:
12550
12551 case $host_cpu in
12552 hppa*64*|ia64*)
12553 ;;
12554 *)
12555 export_dynamic_flag_spec_CXX='${wl}-E'
12556 ;;
12557 esac
12558 fi
12559 case $host_cpu in
12560 hppa*64*|ia64*)
12561 hardcode_direct_CXX=no
12562 hardcode_shlibpath_var_CXX=no
12563 ;;
12564 *)
12565 hardcode_direct_CXX=yes
12566 hardcode_direct_absolute_CXX=yes
12567 hardcode_minus_L_CXX=yes # Not in the search PATH,
12568 # but as the default
12569 # location of the library.
12570 ;;
12571 esac
12572
12573 case $cc_basename in
12574 CC*)
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12577 ;;
12578 aCC*)
12579 case $host_cpu in
12580 hppa*64*)
12581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12582 ;;
12583 ia64*)
12584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12585 ;;
12586 *)
12587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12588 ;;
12589 esac
12590 # Commands to make compiler produce verbose output that lists
12591 # what "hidden" libraries, object files and flags are used when
12592 # linking a shared library.
12593 #
12594 # There doesn't appear to be a way to prevent this compiler from
12595 # explicitly linking system object files so we need to strip them
12596 # from the output so that they don't get included in the library
12597 # dependencies.
12598 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12599 ;;
12600 *)
12601 if test "$GXX" = yes; then
12602 if test $with_gnu_ld = no; then
12603 case $host_cpu in
12604 hppa*64*)
12605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12606 ;;
12607 ia64*)
12608 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12609 ;;
12610 *)
12611 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 ;;
12613 esac
12614 fi
12615 else
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12618 fi
12619 ;;
12620 esac
12621 ;;
12622
12623 interix[3-9]*)
12624 hardcode_direct_CXX=no
12625 hardcode_shlibpath_var_CXX=no
12626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12627 export_dynamic_flag_spec_CXX='${wl}-E'
12628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12629 # Instead, shared libraries are loaded at an image base (0x10000000 by
12630 # default) and relocated if they conflict, which is a slow very memory
12631 # consuming and fragmenting process. To avoid this, we pick a random,
12632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12634 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12635 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12636 ;;
12637 irix5* | irix6*)
12638 case $cc_basename in
12639 CC*)
12640 # SGI C++
12641 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12642
12643 # Archives containing C++ object files must be created using
12644 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12645 # necessary to make sure instantiated templates are included
12646 # in the archive.
12647 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12648 ;;
12649 *)
12650 if test "$GXX" = yes; then
12651 if test "$with_gnu_ld" = no; then
12652 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12653 else
12654 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12655 fi
12656 fi
12657 link_all_deplibs_CXX=yes
12658 ;;
12659 esac
12660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12661 hardcode_libdir_separator_CXX=:
12662 inherit_rpath_CXX=yes
12663 ;;
12664
12665 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12666 case $cc_basename in
12667 KCC*)
12668 # Kuck and Associates, Inc. (KAI) C++ Compiler
12669
12670 # KCC will only create a shared library if the output file
12671 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12672 # to its proper name (with version) after linking.
12673 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12674 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12675 # Commands to make compiler produce verbose output that lists
12676 # what "hidden" libraries, object files and flags are used when
12677 # linking a shared library.
12678 #
12679 # There doesn't appear to be a way to prevent this compiler from
12680 # explicitly linking system object files so we need to strip them
12681 # from the output so that they don't get included in the library
12682 # dependencies.
12683 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12684
12685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12687
12688 # Archives containing C++ object files must be created using
12689 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12690 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12691 ;;
12692 icpc* | ecpc* )
12693 # Intel C++
12694 with_gnu_ld=yes
12695 # version 8.0 and above of icpc choke on multiply defined symbols
12696 # if we add $predep_objects and $postdep_objects, however 7.1 and
12697 # earlier do not add the objects themselves.
12698 case `$CC -V 2>&1` in
12699 *"Version 7."*)
12700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12702 ;;
12703 *) # Version 8.0 or newer
12704 tmp_idyn=
12705 case $host_cpu in
12706 ia64*) tmp_idyn=' -i_dynamic';;
12707 esac
12708 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12710 ;;
12711 esac
12712 archive_cmds_need_lc_CXX=no
12713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12715 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12716 ;;
12717 pgCC* | pgcpp*)
12718 # Portland Group C++ compiler
12719 case `$CC -V` in
12720 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12721 prelink_cmds_CXX='tpldir=Template.dir~
12722 rm -rf $tpldir~
12723 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12724 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12725 old_archive_cmds_CXX='tpldir=Template.dir~
12726 rm -rf $tpldir~
12727 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12728 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12729 $RANLIB $oldlib'
12730 archive_cmds_CXX='tpldir=Template.dir~
12731 rm -rf $tpldir~
12732 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12733 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12734 archive_expsym_cmds_CXX='tpldir=Template.dir~
12735 rm -rf $tpldir~
12736 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12737 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12738 ;;
12739 *) # Version 6 and above use weak symbols
12740 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12741 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12742 ;;
12743 esac
12744
12745 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12747 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12748 ;;
12749 cxx*)
12750 # Compaq C++
12751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12752 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12753
12754 runpath_var=LD_RUN_PATH
12755 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12756 hardcode_libdir_separator_CXX=:
12757
12758 # Commands to make compiler produce verbose output that lists
12759 # what "hidden" libraries, object files and flags are used when
12760 # linking a shared library.
12761 #
12762 # There doesn't appear to be a way to prevent this compiler from
12763 # explicitly linking system object files so we need to strip them
12764 # from the output so that they don't get included in the library
12765 # dependencies.
12766 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12767 ;;
12768 xl* | mpixl* | bgxl*)
12769 # IBM XL 8.0 on PPC, with GNU ld
12770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12772 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 if test "x$supports_anon_versioning" = xyes; then
12774 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12776 echo "local: *; };" >> $output_objdir/$libname.ver~
12777 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12778 fi
12779 ;;
12780 *)
12781 case `$CC -V 2>&1 | sed 5q` in
12782 *Sun\ C*)
12783 # Sun C++ 5.9
12784 no_undefined_flag_CXX=' -zdefs'
12785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12786 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12787 hardcode_libdir_flag_spec_CXX='-R$libdir'
12788 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12789 compiler_needs_object_CXX=yes
12790
12791 # Not sure whether something based on
12792 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12793 # would be better.
12794 output_verbose_link_cmd='func_echo_all'
12795
12796 # Archives containing C++ object files must be created using
12797 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12798 # necessary to make sure instantiated templates are included
12799 # in the archive.
12800 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12801 ;;
12802 esac
12803 ;;
12804 esac
12805 ;;
12806
12807 lynxos*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12810 ;;
12811
12812 m88k*)
12813 # FIXME: insert proper C++ library support
12814 ld_shlibs_CXX=no
12815 ;;
12816
12817 mvs*)
12818 case $cc_basename in
12819 cxx*)
12820 # FIXME: insert proper C++ library support
12821 ld_shlibs_CXX=no
12822 ;;
12823 *)
12824 # FIXME: insert proper C++ library support
12825 ld_shlibs_CXX=no
12826 ;;
12827 esac
12828 ;;
12829
12830 netbsd*)
12831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12832 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12833 wlarc=
12834 hardcode_libdir_flag_spec_CXX='-R$libdir'
12835 hardcode_direct_CXX=yes
12836 hardcode_shlibpath_var_CXX=no
12837 fi
12838 # Workaround some broken pre-1.5 toolchains
12839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12840 ;;
12841
12842 *nto* | *qnx*)
12843 ld_shlibs_CXX=yes
12844 ;;
12845
12846 openbsd2*)
12847 # C++ shared libraries are fairly broken
12848 ld_shlibs_CXX=no
12849 ;;
12850
12851 openbsd*)
12852 if test -f /usr/libexec/ld.so; then
12853 hardcode_direct_CXX=yes
12854 hardcode_shlibpath_var_CXX=no
12855 hardcode_direct_absolute_CXX=yes
12856 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12859 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12860 export_dynamic_flag_spec_CXX='${wl}-E'
12861 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12862 fi
12863 output_verbose_link_cmd=func_echo_all
12864 else
12865 ld_shlibs_CXX=no
12866 fi
12867 ;;
12868
12869 osf3* | osf4* | osf5*)
12870 case $cc_basename in
12871 KCC*)
12872 # Kuck and Associates, Inc. (KAI) C++ Compiler
12873
12874 # KCC will only create a shared library if the output file
12875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12876 # to its proper name (with version) after linking.
12877 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12878
12879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12880 hardcode_libdir_separator_CXX=:
12881
12882 # Archives containing C++ object files must be created using
12883 # the KAI C++ compiler.
12884 case $host in
12885 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12886 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12887 esac
12888 ;;
12889 RCC*)
12890 # Rational C++ 2.4.1
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 ;;
12894 cxx*)
12895 case $host in
12896 osf3*)
12897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12898 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12900 ;;
12901 *)
12902 allow_undefined_flag_CXX=' -expect_unresolved \*'
12903 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12904 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12905 echo "-hidden">> $lib.exp~
12906 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12907 $RM $lib.exp'
12908 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12909 ;;
12910 esac
12911
12912 hardcode_libdir_separator_CXX=:
12913
12914 # Commands to make compiler produce verbose output that lists
12915 # what "hidden" libraries, object files and flags are used when
12916 # linking a shared library.
12917 #
12918 # There doesn't appear to be a way to prevent this compiler from
12919 # explicitly linking system object files so we need to strip them
12920 # from the output so that they don't get included in the library
12921 # dependencies.
12922 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12923 ;;
12924 *)
12925 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12926 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12927 case $host in
12928 osf3*)
12929 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12930 ;;
12931 *)
12932 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12933 ;;
12934 esac
12935
12936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12937 hardcode_libdir_separator_CXX=:
12938
12939 # Commands to make compiler produce verbose output that lists
12940 # what "hidden" libraries, object files and flags are used when
12941 # linking a shared library.
12942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12943
12944 else
12945 # FIXME: insert proper C++ library support
12946 ld_shlibs_CXX=no
12947 fi
12948 ;;
12949 esac
12950 ;;
12951
12952 psos*)
12953 # FIXME: insert proper C++ library support
12954 ld_shlibs_CXX=no
12955 ;;
12956
12957 sunos4*)
12958 case $cc_basename in
12959 CC*)
12960 # Sun C++ 4.x
12961 # FIXME: insert proper C++ library support
12962 ld_shlibs_CXX=no
12963 ;;
12964 lcc*)
12965 # Lucid
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12968 ;;
12969 *)
12970 # FIXME: insert proper C++ library support
12971 ld_shlibs_CXX=no
12972 ;;
12973 esac
12974 ;;
12975
12976 solaris*)
12977 case $cc_basename in
12978 CC* | sunCC*)
12979 # Sun C++ 4.2, 5.x and Centerline C++
12980 archive_cmds_need_lc_CXX=yes
12981 no_undefined_flag_CXX=' -zdefs'
12982 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12983 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12984 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12985
12986 hardcode_libdir_flag_spec_CXX='-R$libdir'
12987 hardcode_shlibpath_var_CXX=no
12988 case $host_os in
12989 solaris2.[0-5] | solaris2.[0-5].*) ;;
12990 *)
12991 # The compiler driver will combine and reorder linker options,
12992 # but understands `-z linker_flag'.
12993 # Supported since Solaris 2.6 (maybe 2.5.1?)
12994 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12995 ;;
12996 esac
12997 link_all_deplibs_CXX=yes
12998
12999 output_verbose_link_cmd='func_echo_all'
13000
13001 # Archives containing C++ object files must be created using
13002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13003 # necessary to make sure instantiated templates are included
13004 # in the archive.
13005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13006 ;;
13007 gcx*)
13008 # Green Hills C++ Compiler
13009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13010
13011 # The C++ compiler must be used to create the archive.
13012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13013 ;;
13014 *)
13015 # GNU C++ compiler with Solaris linker
13016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13018 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13019 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13020 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13021 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13022
13023 # Commands to make compiler produce verbose output that lists
13024 # what "hidden" libraries, object files and flags are used when
13025 # linking a shared library.
13026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13027 else
13028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13029 # platform.
13030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13031 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13033
13034 # Commands to make compiler produce verbose output that lists
13035 # what "hidden" libraries, object files and flags are used when
13036 # linking a shared library.
13037 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13038 fi
13039
13040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13041 case $host_os in
13042 solaris2.[0-5] | solaris2.[0-5].*) ;;
13043 *)
13044 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13045 ;;
13046 esac
13047 fi
13048 ;;
13049 esac
13050 ;;
13051
13052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13053 no_undefined_flag_CXX='${wl}-z,text'
13054 archive_cmds_need_lc_CXX=no
13055 hardcode_shlibpath_var_CXX=no
13056 runpath_var='LD_RUN_PATH'
13057
13058 case $cc_basename in
13059 CC*)
13060 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 ;;
13063 *)
13064 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 ;;
13067 esac
13068 ;;
13069
13070 sysv5* | sco3.2v5* | sco5v6*)
13071 # Note: We can NOT use -z defs as we might desire, because we do not
13072 # link with -lc, and that would cause any symbols used from libc to
13073 # always be unresolved, which means just about no library would
13074 # ever link correctly. If we're not using GNU ld we use -z text
13075 # though, which does catch some bad symbols but isn't as heavy-handed
13076 # as -z defs.
13077 no_undefined_flag_CXX='${wl}-z,text'
13078 allow_undefined_flag_CXX='${wl}-z,nodefs'
13079 archive_cmds_need_lc_CXX=no
13080 hardcode_shlibpath_var_CXX=no
13081 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13082 hardcode_libdir_separator_CXX=':'
13083 link_all_deplibs_CXX=yes
13084 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13085 runpath_var='LD_RUN_PATH'
13086
13087 case $cc_basename in
13088 CC*)
13089 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13092 '"$old_archive_cmds_CXX"
13093 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13094 '"$reload_cmds_CXX"
13095 ;;
13096 *)
13097 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 ;;
13100 esac
13101 ;;
13102
13103 tandem*)
13104 case $cc_basename in
13105 NCC*)
13106 # NonStop-UX NCC 3.20
13107 # FIXME: insert proper C++ library support
13108 ld_shlibs_CXX=no
13109 ;;
13110 *)
13111 # FIXME: insert proper C++ library support
13112 ld_shlibs_CXX=no
13113 ;;
13114 esac
13115 ;;
13116
13117 vxworks*)
13118 # FIXME: insert proper C++ library support
13119 ld_shlibs_CXX=no
13120 ;;
13121
13122 *)
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 ;;
13126 esac
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13129 $as_echo "$ld_shlibs_CXX" >&6; }
13130 test "$ld_shlibs_CXX" = no && can_build_shared=no
13131
13132 GCC_CXX="$GXX"
13133 LD_CXX="$LD"
13134
13135 ## CAVEAT EMPTOR:
13136 ## There is no encapsulation within the following macros, do not change
13137 ## the running order or otherwise move them around unless you know exactly
13138 ## what you are doing...
13139 # Dependencies to place before and after the object being linked:
13140 predep_objects_CXX=
13141 postdep_objects_CXX=
13142 predeps_CXX=
13143 postdeps_CXX=
13144 compiler_lib_search_path_CXX=
13145
13146 cat > conftest.$ac_ext <<_LT_EOF
13147 class Foo
13148 {
13149 public:
13150 Foo (void) { a = 0; }
13151 private:
13152 int a;
13153 };
13154 _LT_EOF
13155
13156
13157 _lt_libdeps_save_CFLAGS=$CFLAGS
13158 case "$CC $CFLAGS " in #(
13159 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13160 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13161 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13162 esac
13163
13164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13165 (eval $ac_compile) 2>&5
13166 ac_status=$?
13167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168 test $ac_status = 0; }; then
13169 # Parse the compiler output and extract the necessary
13170 # objects, libraries and library flags.
13171
13172 # Sentinel used to keep track of whether or not we are before
13173 # the conftest object file.
13174 pre_test_object_deps_done=no
13175
13176 for p in `eval "$output_verbose_link_cmd"`; do
13177 case ${prev}${p} in
13178
13179 -L* | -R* | -l*)
13180 # Some compilers place space between "-{L,R}" and the path.
13181 # Remove the space.
13182 if test $p = "-L" ||
13183 test $p = "-R"; then
13184 prev=$p
13185 continue
13186 fi
13187
13188 # Expand the sysroot to ease extracting the directories later.
13189 if test -z "$prev"; then
13190 case $p in
13191 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13192 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13193 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13194 esac
13195 fi
13196 case $p in
13197 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13198 esac
13199 if test "$pre_test_object_deps_done" = no; then
13200 case ${prev} in
13201 -L | -R)
13202 # Internal compiler library paths should come after those
13203 # provided the user. The postdeps already come after the
13204 # user supplied libs so there is no need to process them.
13205 if test -z "$compiler_lib_search_path_CXX"; then
13206 compiler_lib_search_path_CXX="${prev}${p}"
13207 else
13208 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13209 fi
13210 ;;
13211 # The "-l" case would never come before the object being
13212 # linked, so don't bother handling this case.
13213 esac
13214 else
13215 if test -z "$postdeps_CXX"; then
13216 postdeps_CXX="${prev}${p}"
13217 else
13218 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13219 fi
13220 fi
13221 prev=
13222 ;;
13223
13224 *.lto.$objext) ;; # Ignore GCC LTO objects
13225 *.$objext)
13226 # This assumes that the test object file only shows up
13227 # once in the compiler output.
13228 if test "$p" = "conftest.$objext"; then
13229 pre_test_object_deps_done=yes
13230 continue
13231 fi
13232
13233 if test "$pre_test_object_deps_done" = no; then
13234 if test -z "$predep_objects_CXX"; then
13235 predep_objects_CXX="$p"
13236 else
13237 predep_objects_CXX="$predep_objects_CXX $p"
13238 fi
13239 else
13240 if test -z "$postdep_objects_CXX"; then
13241 postdep_objects_CXX="$p"
13242 else
13243 postdep_objects_CXX="$postdep_objects_CXX $p"
13244 fi
13245 fi
13246 ;;
13247
13248 *) ;; # Ignore the rest.
13249
13250 esac
13251 done
13252
13253 # Clean up.
13254 rm -f a.out a.exe
13255 else
13256 echo "libtool.m4: error: problem compiling CXX test program"
13257 fi
13258
13259 $RM -f confest.$objext
13260 CFLAGS=$_lt_libdeps_save_CFLAGS
13261
13262 # PORTME: override above test on systems where it is broken
13263 case $host_os in
13264 interix[3-9]*)
13265 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13266 # hack all around it, let's just trust "g++" to DTRT.
13267 predep_objects_CXX=
13268 postdep_objects_CXX=
13269 postdeps_CXX=
13270 ;;
13271
13272 linux*)
13273 case `$CC -V 2>&1 | sed 5q` in
13274 *Sun\ C*)
13275 # Sun C++ 5.9
13276
13277 # The more standards-conforming stlport4 library is
13278 # incompatible with the Cstd library. Avoid specifying
13279 # it if it's in CXXFLAGS. Ignore libCrun as
13280 # -library=stlport4 depends on it.
13281 case " $CXX $CXXFLAGS " in
13282 *" -library=stlport4 "*)
13283 solaris_use_stlport4=yes
13284 ;;
13285 esac
13286
13287 if test "$solaris_use_stlport4" != yes; then
13288 postdeps_CXX='-library=Cstd -library=Crun'
13289 fi
13290 ;;
13291 esac
13292 ;;
13293
13294 solaris*)
13295 case $cc_basename in
13296 CC* | sunCC*)
13297 # The more standards-conforming stlport4 library is
13298 # incompatible with the Cstd library. Avoid specifying
13299 # it if it's in CXXFLAGS. Ignore libCrun as
13300 # -library=stlport4 depends on it.
13301 case " $CXX $CXXFLAGS " in
13302 *" -library=stlport4 "*)
13303 solaris_use_stlport4=yes
13304 ;;
13305 esac
13306
13307 # Adding this requires a known-good setup of shared libraries for
13308 # Sun compiler versions before 5.6, else PIC objects from an old
13309 # archive will be linked into the output, leading to subtle bugs.
13310 if test "$solaris_use_stlport4" != yes; then
13311 postdeps_CXX='-library=Cstd -library=Crun'
13312 fi
13313 ;;
13314 esac
13315 ;;
13316 esac
13317
13318
13319 case " $postdeps_CXX " in
13320 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13321 esac
13322 compiler_lib_search_dirs_CXX=
13323 if test -n "${compiler_lib_search_path_CXX}"; then
13324 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13325 fi
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357 lt_prog_compiler_wl_CXX=
13358 lt_prog_compiler_pic_CXX=
13359 lt_prog_compiler_static_CXX=
13360
13361
13362 # C++ specific cases for pic, static, wl, etc.
13363 if test "$GXX" = yes; then
13364 lt_prog_compiler_wl_CXX='-Wl,'
13365 lt_prog_compiler_static_CXX='-static'
13366
13367 case $host_os in
13368 aix*)
13369 # All AIX code is PIC.
13370 if test "$host_cpu" = ia64; then
13371 # AIX 5 now supports IA64 processor
13372 lt_prog_compiler_static_CXX='-Bstatic'
13373 fi
13374 ;;
13375
13376 amigaos*)
13377 case $host_cpu in
13378 powerpc)
13379 # see comment about AmigaOS4 .so support
13380 lt_prog_compiler_pic_CXX='-fPIC'
13381 ;;
13382 m68k)
13383 # FIXME: we need at least 68020 code to build shared libraries, but
13384 # adding the `-m68020' flag to GCC prevents building anything better,
13385 # like `-m68040'.
13386 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13387 ;;
13388 esac
13389 ;;
13390
13391 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13392 # PIC is the default for these OSes.
13393 ;;
13394 mingw* | cygwin* | os2* | pw32* | cegcc*)
13395 # This hack is so that the source file can tell whether it is being
13396 # built for inclusion in a dll (and should export symbols for example).
13397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13398 # (--disable-auto-import) libraries
13399 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13400 ;;
13401 darwin* | rhapsody*)
13402 # PIC is the default on this platform
13403 # Common symbols not allowed in MH_DYLIB files
13404 lt_prog_compiler_pic_CXX='-fno-common'
13405 ;;
13406 *djgpp*)
13407 # DJGPP does not support shared libraries at all
13408 lt_prog_compiler_pic_CXX=
13409 ;;
13410 haiku*)
13411 # PIC is the default for Haiku.
13412 # The "-static" flag exists, but is broken.
13413 lt_prog_compiler_static_CXX=
13414 ;;
13415 interix[3-9]*)
13416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13417 # Instead, we relocate shared libraries at runtime.
13418 ;;
13419 sysv4*MP*)
13420 if test -d /usr/nec; then
13421 lt_prog_compiler_pic_CXX=-Kconform_pic
13422 fi
13423 ;;
13424 hpux*)
13425 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13426 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13427 # sets the default TLS model and affects inlining.
13428 case $host_cpu in
13429 hppa*64*)
13430 ;;
13431 *)
13432 lt_prog_compiler_pic_CXX='-fPIC'
13433 ;;
13434 esac
13435 ;;
13436 *qnx* | *nto*)
13437 # QNX uses GNU C++, but need to define -shared option too, otherwise
13438 # it will coredump.
13439 lt_prog_compiler_pic_CXX='-fPIC -shared'
13440 ;;
13441 *)
13442 lt_prog_compiler_pic_CXX='-fPIC'
13443 ;;
13444 esac
13445 else
13446 case $host_os in
13447 aix[4-9]*)
13448 # All AIX code is PIC.
13449 if test "$host_cpu" = ia64; then
13450 # AIX 5 now supports IA64 processor
13451 lt_prog_compiler_static_CXX='-Bstatic'
13452 else
13453 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13454 fi
13455 ;;
13456 chorus*)
13457 case $cc_basename in
13458 cxch68*)
13459 # Green Hills C++ Compiler
13460 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13461 ;;
13462 esac
13463 ;;
13464 mingw* | cygwin* | os2* | pw32* | cegcc*)
13465 # This hack is so that the source file can tell whether it is being
13466 # built for inclusion in a dll (and should export symbols for example).
13467 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13468 ;;
13469 dgux*)
13470 case $cc_basename in
13471 ec++*)
13472 lt_prog_compiler_pic_CXX='-KPIC'
13473 ;;
13474 ghcx*)
13475 # Green Hills C++ Compiler
13476 lt_prog_compiler_pic_CXX='-pic'
13477 ;;
13478 *)
13479 ;;
13480 esac
13481 ;;
13482 freebsd* | dragonfly*)
13483 # FreeBSD uses GNU C++
13484 ;;
13485 hpux9* | hpux10* | hpux11*)
13486 case $cc_basename in
13487 CC*)
13488 lt_prog_compiler_wl_CXX='-Wl,'
13489 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13490 if test "$host_cpu" != ia64; then
13491 lt_prog_compiler_pic_CXX='+Z'
13492 fi
13493 ;;
13494 aCC*)
13495 lt_prog_compiler_wl_CXX='-Wl,'
13496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13497 case $host_cpu in
13498 hppa*64*|ia64*)
13499 # +Z the default
13500 ;;
13501 *)
13502 lt_prog_compiler_pic_CXX='+Z'
13503 ;;
13504 esac
13505 ;;
13506 *)
13507 ;;
13508 esac
13509 ;;
13510 interix*)
13511 # This is c89, which is MS Visual C++ (no shared libs)
13512 # Anyone wants to do a port?
13513 ;;
13514 irix5* | irix6* | nonstopux*)
13515 case $cc_basename in
13516 CC*)
13517 lt_prog_compiler_wl_CXX='-Wl,'
13518 lt_prog_compiler_static_CXX='-non_shared'
13519 # CC pic flag -KPIC is the default.
13520 ;;
13521 *)
13522 ;;
13523 esac
13524 ;;
13525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13526 case $cc_basename in
13527 KCC*)
13528 # KAI C++ Compiler
13529 lt_prog_compiler_wl_CXX='--backend -Wl,'
13530 lt_prog_compiler_pic_CXX='-fPIC'
13531 ;;
13532 ecpc* )
13533 # old Intel C++ for x86_64 which still supported -KPIC.
13534 lt_prog_compiler_wl_CXX='-Wl,'
13535 lt_prog_compiler_pic_CXX='-KPIC'
13536 lt_prog_compiler_static_CXX='-static'
13537 ;;
13538 icpc* )
13539 # Intel C++, used to be incompatible with GCC.
13540 # ICC 10 doesn't accept -KPIC any more.
13541 lt_prog_compiler_wl_CXX='-Wl,'
13542 lt_prog_compiler_pic_CXX='-fPIC'
13543 lt_prog_compiler_static_CXX='-static'
13544 ;;
13545 pgCC* | pgcpp*)
13546 # Portland Group C++ compiler
13547 lt_prog_compiler_wl_CXX='-Wl,'
13548 lt_prog_compiler_pic_CXX='-fpic'
13549 lt_prog_compiler_static_CXX='-Bstatic'
13550 ;;
13551 cxx*)
13552 # Compaq C++
13553 # Make sure the PIC flag is empty. It appears that all Alpha
13554 # Linux and Compaq Tru64 Unix objects are PIC.
13555 lt_prog_compiler_pic_CXX=
13556 lt_prog_compiler_static_CXX='-non_shared'
13557 ;;
13558 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13559 # IBM XL 8.0, 9.0 on PPC and BlueGene
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_pic_CXX='-qpic'
13562 lt_prog_compiler_static_CXX='-qstaticlink'
13563 ;;
13564 *)
13565 case `$CC -V 2>&1 | sed 5q` in
13566 *Sun\ C*)
13567 # Sun C++ 5.9
13568 lt_prog_compiler_pic_CXX='-KPIC'
13569 lt_prog_compiler_static_CXX='-Bstatic'
13570 lt_prog_compiler_wl_CXX='-Qoption ld '
13571 ;;
13572 esac
13573 ;;
13574 esac
13575 ;;
13576 lynxos*)
13577 ;;
13578 m88k*)
13579 ;;
13580 mvs*)
13581 case $cc_basename in
13582 cxx*)
13583 lt_prog_compiler_pic_CXX='-W c,exportall'
13584 ;;
13585 *)
13586 ;;
13587 esac
13588 ;;
13589 netbsd* | netbsdelf*-gnu)
13590 ;;
13591 *qnx* | *nto*)
13592 # QNX uses GNU C++, but need to define -shared option too, otherwise
13593 # it will coredump.
13594 lt_prog_compiler_pic_CXX='-fPIC -shared'
13595 ;;
13596 osf3* | osf4* | osf5*)
13597 case $cc_basename in
13598 KCC*)
13599 lt_prog_compiler_wl_CXX='--backend -Wl,'
13600 ;;
13601 RCC*)
13602 # Rational C++ 2.4.1
13603 lt_prog_compiler_pic_CXX='-pic'
13604 ;;
13605 cxx*)
13606 # Digital/Compaq C++
13607 lt_prog_compiler_wl_CXX='-Wl,'
13608 # Make sure the PIC flag is empty. It appears that all Alpha
13609 # Linux and Compaq Tru64 Unix objects are PIC.
13610 lt_prog_compiler_pic_CXX=
13611 lt_prog_compiler_static_CXX='-non_shared'
13612 ;;
13613 *)
13614 ;;
13615 esac
13616 ;;
13617 psos*)
13618 ;;
13619 solaris*)
13620 case $cc_basename in
13621 CC* | sunCC*)
13622 # Sun C++ 4.2, 5.x and Centerline C++
13623 lt_prog_compiler_pic_CXX='-KPIC'
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 lt_prog_compiler_wl_CXX='-Qoption ld '
13626 ;;
13627 gcx*)
13628 # Green Hills C++ Compiler
13629 lt_prog_compiler_pic_CXX='-PIC'
13630 ;;
13631 *)
13632 ;;
13633 esac
13634 ;;
13635 sunos4*)
13636 case $cc_basename in
13637 CC*)
13638 # Sun C++ 4.x
13639 lt_prog_compiler_pic_CXX='-pic'
13640 lt_prog_compiler_static_CXX='-Bstatic'
13641 ;;
13642 lcc*)
13643 # Lucid
13644 lt_prog_compiler_pic_CXX='-pic'
13645 ;;
13646 *)
13647 ;;
13648 esac
13649 ;;
13650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13651 case $cc_basename in
13652 CC*)
13653 lt_prog_compiler_wl_CXX='-Wl,'
13654 lt_prog_compiler_pic_CXX='-KPIC'
13655 lt_prog_compiler_static_CXX='-Bstatic'
13656 ;;
13657 esac
13658 ;;
13659 tandem*)
13660 case $cc_basename in
13661 NCC*)
13662 # NonStop-UX NCC 3.20
13663 lt_prog_compiler_pic_CXX='-KPIC'
13664 ;;
13665 *)
13666 ;;
13667 esac
13668 ;;
13669 vxworks*)
13670 ;;
13671 *)
13672 lt_prog_compiler_can_build_shared_CXX=no
13673 ;;
13674 esac
13675 fi
13676
13677 case $host_os in
13678 # For platforms which do not support PIC, -DPIC is meaningless:
13679 *djgpp*)
13680 lt_prog_compiler_pic_CXX=
13681 ;;
13682 *)
13683 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13684 ;;
13685 esac
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13689 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13693 fi
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13695 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13696 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13697
13698 #
13699 # Check to make sure the PIC flag actually works.
13700 #
13701 if test -n "$lt_prog_compiler_pic_CXX"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13704 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 lt_cv_prog_compiler_pic_works_CXX=no
13708 ac_outfile=conftest.$ac_objext
13709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13711 # Insert the option either (1) after the last *FLAGS variable, or
13712 # (2) before a word containing "conftest.", or (3) at the end.
13713 # Note that $ac_compile itself does not contain backslashes and begins
13714 # with a dollar sign (not a hyphen), so the echo should work correctly.
13715 # The option is referenced via a variable to avoid confusing sed.
13716 lt_compile=`echo "$ac_compile" | $SED \
13717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719 -e 's:$: $lt_compiler_flag:'`
13720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13721 (eval "$lt_compile" 2>conftest.err)
13722 ac_status=$?
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 if (exit $ac_status) && test -s "$ac_outfile"; then
13726 # The compiler can only warn and ignore the option if not recognized
13727 # So say no if there are warnings other than the usual output.
13728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13731 lt_cv_prog_compiler_pic_works_CXX=yes
13732 fi
13733 fi
13734 $RM conftest*
13735
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13739
13740 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13741 case $lt_prog_compiler_pic_CXX in
13742 "" | " "*) ;;
13743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13744 esac
13745 else
13746 lt_prog_compiler_pic_CXX=
13747 lt_prog_compiler_can_build_shared_CXX=no
13748 fi
13749
13750 fi
13751
13752
13753
13754
13755
13756 #
13757 # Check to make sure the static flag actually works.
13758 #
13759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 lt_cv_prog_compiler_static_works_CXX=no
13766 save_LDFLAGS="$LDFLAGS"
13767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13770 # The linker can only warn and ignore the option if not recognized
13771 # So say no if there are warnings
13772 if test -s conftest.err; then
13773 # Append any errors to the config.log.
13774 cat conftest.err 1>&5
13775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13777 if diff conftest.exp conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler_static_works_CXX=yes
13779 fi
13780 else
13781 lt_cv_prog_compiler_static_works_CXX=yes
13782 fi
13783 fi
13784 $RM -r conftest*
13785 LDFLAGS="$save_LDFLAGS"
13786
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13790
13791 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13792 :
13793 else
13794 lt_prog_compiler_static_CXX=
13795 fi
13796
13797
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 lt_cv_prog_compiler_c_o_CXX=no
13806 $RM -r conftest 2>/dev/null
13807 mkdir conftest
13808 cd conftest
13809 mkdir out
13810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out/conftest.err)
13823 ac_status=$?
13824 cat out/conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827 then
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833 lt_cv_prog_compiler_c_o_CXX=yes
13834 fi
13835 fi
13836 chmod u+w . 2>&5
13837 $RM conftest*
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841 $RM out/* && rmdir out
13842 cd ..
13843 $RM -r conftest
13844 $RM conftest*
13845
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13849
13850
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 lt_cv_prog_compiler_c_o_CXX=no
13858 $RM -r conftest 2>/dev/null
13859 mkdir conftest
13860 cd conftest
13861 mkdir out
13862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13863
13864 lt_compiler_flag="-o out/conftest2.$ac_objext"
13865 # Insert the option either (1) after the last *FLAGS variable, or
13866 # (2) before a word containing "conftest.", or (3) at the end.
13867 # Note that $ac_compile itself does not contain backslashes and begins
13868 # with a dollar sign (not a hyphen), so the echo should work correctly.
13869 lt_compile=`echo "$ac_compile" | $SED \
13870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872 -e 's:$: $lt_compiler_flag:'`
13873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13874 (eval "$lt_compile" 2>out/conftest.err)
13875 ac_status=$?
13876 cat out/conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13879 then
13880 # The compiler can only warn and ignore the option if not recognized
13881 # So say no if there are warnings
13882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885 lt_cv_prog_compiler_c_o_CXX=yes
13886 fi
13887 fi
13888 chmod u+w . 2>&5
13889 $RM conftest*
13890 # SGI C++ compiler will create directory out/ii_files/ for
13891 # template instantiation
13892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893 $RM out/* && rmdir out
13894 cd ..
13895 $RM -r conftest
13896 $RM conftest*
13897
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13901
13902
13903
13904
13905 hard_links="nottested"
13906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13907 # do not overwrite the value of need_locks provided by the user
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13909 $as_echo_n "checking if we can lock with hard links... " >&6; }
13910 hard_links=yes
13911 $RM conftest*
13912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13913 touch conftest.a
13914 ln conftest.a conftest.b 2>&5 || hard_links=no
13915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13917 $as_echo "$hard_links" >&6; }
13918 if test "$hard_links" = no; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13921 need_locks=warn
13922 fi
13923 else
13924 need_locks=no
13925 fi
13926
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13931
13932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13934 case $host_os in
13935 aix[4-9]*)
13936 # If we're using GNU nm, then we don't want the "-C" option.
13937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13938 # Also, AIX nm treats weak defined symbols like other global defined
13939 # symbols, whereas GNU nm marks them as "W".
13940 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13941 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13942 else
13943 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13944 fi
13945 ;;
13946 pw32*)
13947 export_symbols_cmds_CXX="$ltdll_cmds"
13948 ;;
13949 cygwin* | mingw* | cegcc*)
13950 case $cc_basename in
13951 cl*)
13952 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13953 ;;
13954 *)
13955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13956 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13957 ;;
13958 esac
13959 ;;
13960 linux* | k*bsd*-gnu | gnu*)
13961 link_all_deplibs_CXX=no
13962 ;;
13963 *)
13964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13965 ;;
13966 esac
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13969 $as_echo "$ld_shlibs_CXX" >&6; }
13970 test "$ld_shlibs_CXX" = no && can_build_shared=no
13971
13972 with_gnu_ld_CXX=$with_gnu_ld
13973
13974
13975
13976
13977
13978
13979 #
13980 # Do we need to explicitly link libc?
13981 #
13982 case "x$archive_cmds_need_lc_CXX" in
13983 x|xyes)
13984 # Assume -lc should be added
13985 archive_cmds_need_lc_CXX=yes
13986
13987 if test "$enable_shared" = yes && test "$GCC" = yes; then
13988 case $archive_cmds_CXX in
13989 *'~'*)
13990 # FIXME: we may have to deal with multi-command sequences.
13991 ;;
13992 '$CC '*)
13993 # Test whether the compiler implicitly links with -lc since on some
13994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13995 # to ld, don't add -lc before -lgcc.
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13997 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13998 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 $RM conftest*
14002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14003
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005 (eval $ac_compile) 2>&5
14006 ac_status=$?
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; } 2>conftest.err; then
14009 soname=conftest
14010 lib=conftest
14011 libobjs=conftest.$ac_objext
14012 deplibs=
14013 wl=$lt_prog_compiler_wl_CXX
14014 pic_flag=$lt_prog_compiler_pic_CXX
14015 compiler_flags=-v
14016 linker_flags=-v
14017 verstring=
14018 output_objdir=.
14019 libname=conftest
14020 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14021 allow_undefined_flag_CXX=
14022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14023 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026 test $ac_status = 0; }
14027 then
14028 lt_cv_archive_cmds_need_lc_CXX=no
14029 else
14030 lt_cv_archive_cmds_need_lc_CXX=yes
14031 fi
14032 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14033 else
14034 cat conftest.err 1>&5
14035 fi
14036 $RM conftest*
14037
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14040 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14041 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14042 ;;
14043 esac
14044 fi
14045 ;;
14046 esac
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14110 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14111
14112 library_names_spec=
14113 libname_spec='lib$name'
14114 soname_spec=
14115 shrext_cmds=".so"
14116 postinstall_cmds=
14117 postuninstall_cmds=
14118 finish_cmds=
14119 finish_eval=
14120 shlibpath_var=
14121 shlibpath_overrides_runpath=unknown
14122 version_type=none
14123 dynamic_linker="$host_os ld.so"
14124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14125 need_lib_prefix=unknown
14126 hardcode_into_libs=no
14127
14128 # when you set need_version to no, make sure it does not cause -set_version
14129 # flags to be left without arguments
14130 need_version=unknown
14131
14132 case $host_os in
14133 aix3*)
14134 version_type=linux # correct to gnu/linux during the next big refactor
14135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14136 shlibpath_var=LIBPATH
14137
14138 # AIX 3 has no versioning support, so we append a major version to the name.
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 ;;
14141
14142 aix[4-9]*)
14143 version_type=linux # correct to gnu/linux during the next big refactor
14144 need_lib_prefix=no
14145 need_version=no
14146 hardcode_into_libs=yes
14147 if test "$host_cpu" = ia64; then
14148 # AIX 5 supports IA64
14149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 else
14152 # With GCC up to 2.95.x, collect2 would create an import file
14153 # for dependence libraries. The import file would start with
14154 # the line `#! .'. This would cause the generated library to
14155 # depend on `.', always an invalid library. This was fixed in
14156 # development snapshots of GCC prior to 3.0.
14157 case $host_os in
14158 aix4 | aix4.[01] | aix4.[01].*)
14159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14160 echo ' yes '
14161 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14162 :
14163 else
14164 can_build_shared=no
14165 fi
14166 ;;
14167 esac
14168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14169 # soname into executable. Probably we can add versioning support to
14170 # collect2, so additional links can be useful in future.
14171 if test "$aix_use_runtimelinking" = yes; then
14172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14173 # instead of lib<name>.a to let people know that these are not
14174 # typical AIX shared libraries.
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 else
14177 # We preserve .a as extension for shared libraries through AIX4.2
14178 # and later when we are not doing run time linking.
14179 library_names_spec='${libname}${release}.a $libname.a'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 fi
14182 shlibpath_var=LIBPATH
14183 fi
14184 ;;
14185
14186 amigaos*)
14187 case $host_cpu in
14188 powerpc)
14189 # Since July 2007 AmigaOS4 officially supports .so libraries.
14190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192 ;;
14193 m68k)
14194 library_names_spec='$libname.ixlibrary $libname.a'
14195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14196 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14197 ;;
14198 esac
14199 ;;
14200
14201 beos*)
14202 library_names_spec='${libname}${shared_ext}'
14203 dynamic_linker="$host_os ld.so"
14204 shlibpath_var=LIBRARY_PATH
14205 ;;
14206
14207 bsdi[45]*)
14208 version_type=linux # correct to gnu/linux during the next big refactor
14209 need_version=no
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14213 shlibpath_var=LD_LIBRARY_PATH
14214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14216 # the default ld.so.conf also contains /usr/contrib/lib and
14217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14218 # libtool to hard-code these into programs
14219 ;;
14220
14221 cygwin* | mingw* | pw32* | cegcc*)
14222 version_type=windows
14223 shrext_cmds=".dll"
14224 need_version=no
14225 need_lib_prefix=no
14226
14227 case $GCC,$cc_basename in
14228 yes,*)
14229 # gcc
14230 library_names_spec='$libname.dll.a'
14231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14232 postinstall_cmds='base_file=`basename \${file}`~
14233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14234 dldir=$destdir/`dirname \$dlpath`~
14235 test -d \$dldir || mkdir -p \$dldir~
14236 $install_prog $dir/$dlname \$dldir/$dlname~
14237 chmod a+x \$dldir/$dlname~
14238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14240 fi'
14241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14242 dlpath=$dir/\$dldll~
14243 $RM \$dlpath'
14244 shlibpath_overrides_runpath=yes
14245
14246 case $host_os in
14247 cygwin*)
14248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14249 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250
14251 ;;
14252 mingw* | cegcc*)
14253 # MinGW DLLs use traditional 'lib' prefix
14254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14255 ;;
14256 pw32*)
14257 # pw32 DLLs use 'pw' prefix rather than 'lib'
14258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14259 ;;
14260 esac
14261 dynamic_linker='Win32 ld.exe'
14262 ;;
14263
14264 *,cl*)
14265 # Native MSVC
14266 libname_spec='$name'
14267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14268 library_names_spec='${libname}.dll.lib'
14269
14270 case $build_os in
14271 mingw*)
14272 sys_lib_search_path_spec=
14273 lt_save_ifs=$IFS
14274 IFS=';'
14275 for lt_path in $LIB
14276 do
14277 IFS=$lt_save_ifs
14278 # Let DOS variable expansion print the short 8.3 style file name.
14279 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14280 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14281 done
14282 IFS=$lt_save_ifs
14283 # Convert to MSYS style.
14284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14285 ;;
14286 cygwin*)
14287 # Convert to unix form, then to dos form, then back to unix form
14288 # but this time dos style (no spaces!) so that the unix form looks
14289 # like /cygdrive/c/PROGRA~1:/cygdr...
14290 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14291 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14292 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14293 ;;
14294 *)
14295 sys_lib_search_path_spec="$LIB"
14296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14297 # It is most probably a Windows format PATH.
14298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14299 else
14300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14301 fi
14302 # FIXME: find the short name or the path components, as spaces are
14303 # common. (e.g. "Program Files" -> "PROGRA~1")
14304 ;;
14305 esac
14306
14307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14308 postinstall_cmds='base_file=`basename \${file}`~
14309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14310 dldir=$destdir/`dirname \$dlpath`~
14311 test -d \$dldir || mkdir -p \$dldir~
14312 $install_prog $dir/$dlname \$dldir/$dlname'
14313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14314 dlpath=$dir/\$dldll~
14315 $RM \$dlpath'
14316 shlibpath_overrides_runpath=yes
14317 dynamic_linker='Win32 link.exe'
14318 ;;
14319
14320 *)
14321 # Assume MSVC wrapper
14322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14323 dynamic_linker='Win32 ld.exe'
14324 ;;
14325 esac
14326 # FIXME: first we should search . and the directory the executable is in
14327 shlibpath_var=PATH
14328 ;;
14329
14330 darwin* | rhapsody*)
14331 dynamic_linker="$host_os dyld"
14332 version_type=darwin
14333 need_lib_prefix=no
14334 need_version=no
14335 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14336 soname_spec='${libname}${release}${major}$shared_ext'
14337 shlibpath_overrides_runpath=yes
14338 shlibpath_var=DYLD_LIBRARY_PATH
14339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14340
14341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14342 ;;
14343
14344 dgux*)
14345 version_type=linux # correct to gnu/linux during the next big refactor
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 ;;
14352
14353 freebsd* | dragonfly*)
14354 # DragonFly does not have aout. When/if they implement a new
14355 # versioning mechanism, adjust this.
14356 if test -x /usr/bin/objformat; then
14357 objformat=`/usr/bin/objformat`
14358 else
14359 case $host_os in
14360 freebsd[23].*) objformat=aout ;;
14361 *) objformat=elf ;;
14362 esac
14363 fi
14364 version_type=freebsd-$objformat
14365 case $version_type in
14366 freebsd-elf*)
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14368 need_version=no
14369 need_lib_prefix=no
14370 ;;
14371 freebsd-*)
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14373 need_version=yes
14374 ;;
14375 esac
14376 shlibpath_var=LD_LIBRARY_PATH
14377 case $host_os in
14378 freebsd2.*)
14379 shlibpath_overrides_runpath=yes
14380 ;;
14381 freebsd3.[01]* | freebsdelf3.[01]*)
14382 shlibpath_overrides_runpath=yes
14383 hardcode_into_libs=yes
14384 ;;
14385 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14386 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14387 shlibpath_overrides_runpath=no
14388 hardcode_into_libs=yes
14389 ;;
14390 *) # from 4.6 on, and DragonFly
14391 shlibpath_overrides_runpath=yes
14392 hardcode_into_libs=yes
14393 ;;
14394 esac
14395 ;;
14396
14397 haiku*)
14398 version_type=linux # correct to gnu/linux during the next big refactor
14399 need_lib_prefix=no
14400 need_version=no
14401 dynamic_linker="$host_os runtime_loader"
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 shlibpath_var=LIBRARY_PATH
14405 shlibpath_overrides_runpath=yes
14406 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14407 hardcode_into_libs=yes
14408 ;;
14409
14410 hpux9* | hpux10* | hpux11*)
14411 # Give a soname corresponding to the major version so that dld.sl refuses to
14412 # link against other versions.
14413 version_type=sunos
14414 need_lib_prefix=no
14415 need_version=no
14416 case $host_cpu in
14417 ia64*)
14418 shrext_cmds='.so'
14419 hardcode_into_libs=yes
14420 dynamic_linker="$host_os dld.so"
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 if test "X$HPUX_IA64_MODE" = X32; then
14426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14427 else
14428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14429 fi
14430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14431 ;;
14432 hppa*64*)
14433 shrext_cmds='.sl'
14434 hardcode_into_libs=yes
14435 dynamic_linker="$host_os dld.sl"
14436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14442 ;;
14443 *)
14444 shrext_cmds='.sl'
14445 dynamic_linker="$host_os dld.sl"
14446 shlibpath_var=SHLIB_PATH
14447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 ;;
14451 esac
14452 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14453 postinstall_cmds='chmod 555 $lib'
14454 # or fails outright, so override atomically:
14455 install_override_mode=555
14456 ;;
14457
14458 interix[3-9]*)
14459 version_type=linux # correct to gnu/linux during the next big refactor
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=no
14467 hardcode_into_libs=yes
14468 ;;
14469
14470 irix5* | irix6* | nonstopux*)
14471 case $host_os in
14472 nonstopux*) version_type=nonstopux ;;
14473 *)
14474 if test "$lt_cv_prog_gnu_ld" = yes; then
14475 version_type=linux # correct to gnu/linux during the next big refactor
14476 else
14477 version_type=irix
14478 fi ;;
14479 esac
14480 need_lib_prefix=no
14481 need_version=no
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14484 case $host_os in
14485 irix5* | nonstopux*)
14486 libsuff= shlibsuff=
14487 ;;
14488 *)
14489 case $LD in # libtool.m4 will add one of these switches to LD
14490 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14491 libsuff= shlibsuff= libmagic=32-bit;;
14492 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14493 libsuff=32 shlibsuff=N32 libmagic=N32;;
14494 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14495 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14496 *) libsuff= shlibsuff= libmagic=never-match;;
14497 esac
14498 ;;
14499 esac
14500 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14501 shlibpath_overrides_runpath=no
14502 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14503 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14504 hardcode_into_libs=yes
14505 ;;
14506
14507 # No shared lib support for Linux oldld, aout, or coff.
14508 linux*oldld* | linux*aout* | linux*coff*)
14509 dynamic_linker=no
14510 ;;
14511
14512 # This must be glibc/ELF.
14513 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14514 version_type=linux # correct to gnu/linux during the next big refactor
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=no
14522
14523 # Some binutils ld are patched to set DT_RUNPATH
14524 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 lt_cv_shlibpath_overrides_runpath=no
14528 save_LDFLAGS=$LDFLAGS
14529 save_libdir=$libdir
14530 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14531 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534
14535 int
14536 main ()
14537 {
14538
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_cxx_try_link "$LINENO"; then :
14544 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14545 lt_cv_shlibpath_overrides_runpath=yes
14546 fi
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LDFLAGS=$save_LDFLAGS
14551 libdir=$save_libdir
14552
14553 fi
14554
14555 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14556
14557 # This implies no fast_install, which is unacceptable.
14558 # Some rework will be needed to allow for fast_install
14559 # before this can be enabled.
14560 hardcode_into_libs=yes
14561
14562 # Append ld.so.conf contents to the search path
14563 if test -f /etc/ld.so.conf; then
14564 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' ' '`
14565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14566 fi
14567
14568 # We used to test for /lib/ld.so.1 and disable shared libraries on
14569 # powerpc, because MkLinux only supported shared libraries with the
14570 # GNU dynamic linker. Since this was broken with cross compilers,
14571 # most powerpc-linux boxes support dynamic linking these days and
14572 # people can always --disable-shared, the test was removed, and we
14573 # assume the GNU/Linux dynamic linker is in use.
14574 dynamic_linker='GNU/Linux ld.so'
14575 ;;
14576
14577 netbsdelf*-gnu)
14578 version_type=linux
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=no
14585 hardcode_into_libs=yes
14586 dynamic_linker='NetBSD ld.elf_so'
14587 ;;
14588
14589 netbsd*)
14590 version_type=sunos
14591 need_lib_prefix=no
14592 need_version=no
14593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14596 dynamic_linker='NetBSD (a.out) ld.so'
14597 else
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 dynamic_linker='NetBSD ld.elf_so'
14601 fi
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 hardcode_into_libs=yes
14605 ;;
14606
14607 newsos6)
14608 version_type=linux # correct to gnu/linux during the next big refactor
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=yes
14612 ;;
14613
14614 *nto* | *qnx*)
14615 version_type=qnx
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 shlibpath_overrides_runpath=no
14622 hardcode_into_libs=yes
14623 dynamic_linker='ldqnx.so'
14624 ;;
14625
14626 openbsd*)
14627 version_type=sunos
14628 sys_lib_dlsearch_path_spec="/usr/lib"
14629 need_lib_prefix=no
14630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14631 case $host_os in
14632 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14633 *) need_version=no ;;
14634 esac
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14639 case $host_os in
14640 openbsd2.[89] | openbsd2.[89].*)
14641 shlibpath_overrides_runpath=no
14642 ;;
14643 *)
14644 shlibpath_overrides_runpath=yes
14645 ;;
14646 esac
14647 else
14648 shlibpath_overrides_runpath=yes
14649 fi
14650 ;;
14651
14652 os2*)
14653 libname_spec='$name'
14654 shrext_cmds=".dll"
14655 need_lib_prefix=no
14656 library_names_spec='$libname${shared_ext} $libname.a'
14657 dynamic_linker='OS/2 ld.exe'
14658 shlibpath_var=LIBPATH
14659 ;;
14660
14661 osf3* | osf4* | osf5*)
14662 version_type=osf
14663 need_lib_prefix=no
14664 need_version=no
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14670 ;;
14671
14672 rdos*)
14673 dynamic_linker=no
14674 ;;
14675
14676 solaris*)
14677 version_type=linux # correct to gnu/linux during the next big refactor
14678 need_lib_prefix=no
14679 need_version=no
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes
14684 hardcode_into_libs=yes
14685 # ldd complains unless libraries are executable
14686 postinstall_cmds='chmod +x $lib'
14687 ;;
14688
14689 sunos4*)
14690 version_type=sunos
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=yes
14695 if test "$with_gnu_ld" = yes; then
14696 need_lib_prefix=no
14697 fi
14698 need_version=yes
14699 ;;
14700
14701 sysv4 | sysv4.3*)
14702 version_type=linux # correct to gnu/linux during the next big refactor
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 shlibpath_var=LD_LIBRARY_PATH
14706 case $host_vendor in
14707 sni)
14708 shlibpath_overrides_runpath=no
14709 need_lib_prefix=no
14710 runpath_var=LD_RUN_PATH
14711 ;;
14712 siemens)
14713 need_lib_prefix=no
14714 ;;
14715 motorola)
14716 need_lib_prefix=no
14717 need_version=no
14718 shlibpath_overrides_runpath=no
14719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14720 ;;
14721 esac
14722 ;;
14723
14724 sysv4*MP*)
14725 if test -d /usr/nec ;then
14726 version_type=linux # correct to gnu/linux during the next big refactor
14727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14728 soname_spec='$libname${shared_ext}.$major'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 fi
14731 ;;
14732
14733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14734 version_type=freebsd-elf
14735 need_lib_prefix=no
14736 need_version=no
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14742 if test "$with_gnu_ld" = yes; then
14743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14744 else
14745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14746 case $host_os in
14747 sco3.2v5*)
14748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14749 ;;
14750 esac
14751 fi
14752 sys_lib_dlsearch_path_spec='/usr/lib'
14753 ;;
14754
14755 tpf*)
14756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14757 version_type=linux # correct to gnu/linux during the next big refactor
14758 need_lib_prefix=no
14759 need_version=no
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=no
14763 hardcode_into_libs=yes
14764 ;;
14765
14766 uts4*)
14767 version_type=linux # correct to gnu/linux during the next big refactor
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 ;;
14772
14773 *)
14774 dynamic_linker=no
14775 ;;
14776 esac
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14778 $as_echo "$dynamic_linker" >&6; }
14779 test "$dynamic_linker" = no && can_build_shared=no
14780
14781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14782 if test "$GCC" = yes; then
14783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14784 fi
14785
14786 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14787 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14788 fi
14789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14790 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14791 fi
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14831 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14832 hardcode_action_CXX=
14833 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14834 test -n "$runpath_var_CXX" ||
14835 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14836
14837 # We can hardcode non-existent directories.
14838 if test "$hardcode_direct_CXX" != no &&
14839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14840 # have to relink, otherwise we might link with an installed library
14841 # when we should be linking with a yet-to-be-installed one
14842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14843 test "$hardcode_minus_L_CXX" != no; then
14844 # Linking always hardcodes the temporary library directory.
14845 hardcode_action_CXX=relink
14846 else
14847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14848 hardcode_action_CXX=immediate
14849 fi
14850 else
14851 # We cannot hardcode anything, or else we can only hardcode existing
14852 # directories.
14853 hardcode_action_CXX=unsupported
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14856 $as_echo "$hardcode_action_CXX" >&6; }
14857
14858 if test "$hardcode_action_CXX" = relink ||
14859 test "$inherit_rpath_CXX" = yes; then
14860 # Fast installation is not supported
14861 enable_fast_install=no
14862 elif test "$shlibpath_overrides_runpath" = yes ||
14863 test "$enable_shared" = no; then
14864 # Fast installation is not necessary
14865 enable_fast_install=needless
14866 fi
14867
14868
14869
14870
14871
14872
14873
14874 fi # test -n "$compiler"
14875
14876 CC=$lt_save_CC
14877 CFLAGS=$lt_save_CFLAGS
14878 LDCXX=$LD
14879 LD=$lt_save_LD
14880 GCC=$lt_save_GCC
14881 with_gnu_ld=$lt_save_with_gnu_ld
14882 lt_cv_path_LDCXX=$lt_cv_path_LD
14883 lt_cv_path_LD=$lt_save_path_LD
14884 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14885 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14886 fi # test "$_lt_caught_CXX_error" != yes
14887
14888 ac_ext=c
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908 ac_config_commands="$ac_config_commands libtool"
14909
14910
14911
14912
14913 # Only expand once:
14914
14915
14916 # Find a good install program. We prefer a C program (faster),
14917 # so one script is as good as another. But avoid the broken or
14918 # incompatible versions:
14919 # SysV /etc/install, /usr/sbin/install
14920 # SunOS /usr/etc/install
14921 # IRIX /sbin/install
14922 # AIX /bin/install
14923 # AmigaOS /C/install, which installs bootblocks on floppy discs
14924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14927 # OS/2's system install, which has a completely different semantic
14928 # ./install, which can be erroneously created by make from ./install.sh.
14929 # Reject install programs that cannot install multiple files.
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14931 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14932 if test -z "$INSTALL"; then
14933 if ${ac_cv_path_install+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14937 for as_dir in $PATH
14938 do
14939 IFS=$as_save_IFS
14940 test -z "$as_dir" && as_dir=.
14941 # Account for people who put trailing slashes in PATH elements.
14942 case $as_dir/ in #((
14943 ./ | .// | /[cC]/* | \
14944 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14945 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14946 /usr/ucb/* ) ;;
14947 *)
14948 # OSF1 and SCO ODT 3.0 have their own names for install.
14949 # Don't use installbsd from OSF since it installs stuff as root
14950 # by default.
14951 for ac_prog in ginstall scoinst install; do
14952 for ac_exec_ext in '' $ac_executable_extensions; do
14953 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14954 if test $ac_prog = install &&
14955 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14956 # AIX install. It has an incompatible calling convention.
14957 :
14958 elif test $ac_prog = install &&
14959 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14960 # program-specific install script used by HP pwplus--don't use.
14961 :
14962 else
14963 rm -rf conftest.one conftest.two conftest.dir
14964 echo one > conftest.one
14965 echo two > conftest.two
14966 mkdir conftest.dir
14967 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14968 test -s conftest.one && test -s conftest.two &&
14969 test -s conftest.dir/conftest.one &&
14970 test -s conftest.dir/conftest.two
14971 then
14972 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14973 break 3
14974 fi
14975 fi
14976 fi
14977 done
14978 done
14979 ;;
14980 esac
14981
14982 done
14983 IFS=$as_save_IFS
14984
14985 rm -rf conftest.one conftest.two conftest.dir
14986
14987 fi
14988 if test "${ac_cv_path_install+set}" = set; then
14989 INSTALL=$ac_cv_path_install
14990 else
14991 # As a last resort, use the slow shell script. Don't cache a
14992 # value for INSTALL within a source directory, because that will
14993 # break other packages using the cache if that directory is
14994 # removed, or if the value is a relative name.
14995 INSTALL=$ac_install_sh
14996 fi
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14999 $as_echo "$INSTALL" >&6; }
15000
15001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15002 # It thinks the first close brace ends the variable substitution.
15003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15004
15005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15006
15007 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15010 $as_echo_n "checking whether ln -s works... " >&6; }
15011 LN_S=$as_ln_s
15012 if test "$LN_S" = "ln -s"; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15017 $as_echo "no, using $LN_S" >&6; }
15018 fi
15019
15020 # Extract the first word of "ar", so it can be a program name with args.
15021 set dummy ar; ac_word=$2
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15023 $as_echo_n "checking for $ac_word... " >&6; }
15024 if ${ac_cv_path_AR+:} false; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 case $AR in
15028 [\\/]* | ?:[\\/]*)
15029 ac_cv_path_AR="$AR" # Let the user override the test with a path.
15030 ;;
15031 *)
15032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15033 for as_dir in $PATH
15034 do
15035 IFS=$as_save_IFS
15036 test -z "$as_dir" && as_dir=.
15037 for ac_exec_ext in '' $ac_executable_extensions; do
15038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15039 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
15040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15041 break 2
15042 fi
15043 done
15044 done
15045 IFS=$as_save_IFS
15046
15047 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
15048 ;;
15049 esac
15050 fi
15051 AR=$ac_cv_path_AR
15052 if test -n "$AR"; then
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15054 $as_echo "$AR" >&6; }
15055 else
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15058 fi
15059
15060
15061 if [ $AR = "no" ] ; then
15062 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5
15063 fi
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15066 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15067 if ${ac_cv_c_bigendian+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 ac_cv_c_bigendian=unknown
15071 # See if we're dealing with a universal compiler.
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #ifndef __APPLE_CC__
15075 not a universal capable compiler
15076 #endif
15077 typedef int dummy;
15078
15079 _ACEOF
15080 if ac_fn_c_try_compile "$LINENO"; then :
15081
15082 # Check for potential -arch flags. It is not universal unless
15083 # there are at least two -arch flags with different values.
15084 ac_arch=
15085 ac_prev=
15086 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15087 if test -n "$ac_prev"; then
15088 case $ac_word in
15089 i?86 | x86_64 | ppc | ppc64)
15090 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15091 ac_arch=$ac_word
15092 else
15093 ac_cv_c_bigendian=universal
15094 break
15095 fi
15096 ;;
15097 esac
15098 ac_prev=
15099 elif test "x$ac_word" = "x-arch"; then
15100 ac_prev=arch
15101 fi
15102 done
15103 fi
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 if test $ac_cv_c_bigendian = unknown; then
15106 # See if sys/param.h defines the BYTE_ORDER macro.
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 #include <sys/types.h>
15110 #include <sys/param.h>
15111
15112 int
15113 main ()
15114 {
15115 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15116 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15117 && LITTLE_ENDIAN)
15118 bogus endian macros
15119 #endif
15120
15121 ;
15122 return 0;
15123 }
15124 _ACEOF
15125 if ac_fn_c_try_compile "$LINENO"; then :
15126 # It does; now see whether it defined to BIG_ENDIAN or not.
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <sys/types.h>
15130 #include <sys/param.h>
15131
15132 int
15133 main ()
15134 {
15135 #if BYTE_ORDER != BIG_ENDIAN
15136 not big endian
15137 #endif
15138
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 ac_cv_c_bigendian=yes
15145 else
15146 ac_cv_c_bigendian=no
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 fi
15152 if test $ac_cv_c_bigendian = unknown; then
15153 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 #include <limits.h>
15157
15158 int
15159 main ()
15160 {
15161 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15162 bogus endian macros
15163 #endif
15164
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_compile "$LINENO"; then :
15170 # It does; now see whether it defined to _BIG_ENDIAN or not.
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173 #include <limits.h>
15174
15175 int
15176 main ()
15177 {
15178 #ifndef _BIG_ENDIAN
15179 not big endian
15180 #endif
15181
15182 ;
15183 return 0;
15184 }
15185 _ACEOF
15186 if ac_fn_c_try_compile "$LINENO"; then :
15187 ac_cv_c_bigendian=yes
15188 else
15189 ac_cv_c_bigendian=no
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194 fi
15195 if test $ac_cv_c_bigendian = unknown; then
15196 # Compile a test program.
15197 if test "$cross_compiling" = yes; then :
15198 # Try to guess by grepping values from an object file.
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201 short int ascii_mm[] =
15202 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15203 short int ascii_ii[] =
15204 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15205 int use_ascii (int i) {
15206 return ascii_mm[i] + ascii_ii[i];
15207 }
15208 short int ebcdic_ii[] =
15209 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15210 short int ebcdic_mm[] =
15211 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15212 int use_ebcdic (int i) {
15213 return ebcdic_mm[i] + ebcdic_ii[i];
15214 }
15215 extern int foo;
15216
15217 int
15218 main ()
15219 {
15220 return use_ascii (foo) == use_ebcdic (foo);
15221 ;
15222 return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_compile "$LINENO"; then :
15226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15227 ac_cv_c_bigendian=yes
15228 fi
15229 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15230 if test "$ac_cv_c_bigendian" = unknown; then
15231 ac_cv_c_bigendian=no
15232 else
15233 # finding both strings is unlikely to happen, but who knows?
15234 ac_cv_c_bigendian=unknown
15235 fi
15236 fi
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 $ac_includes_default
15243 int
15244 main ()
15245 {
15246
15247 /* Are we little or big endian? From Harbison&Steele. */
15248 union
15249 {
15250 long int l;
15251 char c[sizeof (long int)];
15252 } u;
15253 u.l = 1;
15254 return u.c[sizeof (long int) - 1] == 1;
15255
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 if ac_fn_c_try_run "$LINENO"; then :
15261 ac_cv_c_bigendian=no
15262 else
15263 ac_cv_c_bigendian=yes
15264 fi
15265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15266 conftest.$ac_objext conftest.beam conftest.$ac_ext
15267 fi
15268
15269 fi
15270 fi
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15272 $as_echo "$ac_cv_c_bigendian" >&6; }
15273 case $ac_cv_c_bigendian in #(
15274 yes)
15275 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15276 ;; #(
15277 no)
15278 ;; #(
15279 universal)
15280
15281 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15282
15283 ;; #(
15284 *)
15285 as_fn_error $? "unknown endianness
15286 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15287 esac
15288
15289
15290
15291 have_alsa=no
15292 if test "x$with_alsa" != "xno"; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
15294 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
15295 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15298 ac_check_lib_save_LIBS=$LIBS
15299 LIBS="-lasound $LIBS"
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char snd_pcm_open ();
15310 int
15311 main ()
15312 {
15313 return snd_pcm_open ();
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 ac_cv_lib_asound_snd_pcm_open=yes
15320 else
15321 ac_cv_lib_asound_snd_pcm_open=no
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15326 fi
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
15328 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
15329 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
15330 have_alsa=yes
15331 else
15332 have_alsa=no
15333 fi
15334
15335 fi
15336 have_asihpi=no
15337 if test "x$with_asihpi" != "xno"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPI_SubSysCreate in -lhpi" >&5
15339 $as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; }
15340 if ${ac_cv_lib_hpi_HPI_SubSysCreate+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 ac_check_lib_save_LIBS=$LIBS
15344 LIBS="-lhpi -lm $LIBS"
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15351 #ifdef __cplusplus
15352 extern "C"
15353 #endif
15354 char HPI_SubSysCreate ();
15355 int
15356 main ()
15357 {
15358 return HPI_SubSysCreate ();
15359 ;
15360 return 0;
15361 }
15362 _ACEOF
15363 if ac_fn_c_try_link "$LINENO"; then :
15364 ac_cv_lib_hpi_HPI_SubSysCreate=yes
15365 else
15366 ac_cv_lib_hpi_HPI_SubSysCreate=no
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
15373 $as_echo "$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
15374 if test "x$ac_cv_lib_hpi_HPI_SubSysCreate" = xyes; then :
15375 have_asihpi=yes
15376 else
15377 have_asihpi=no
15378 fi
15379
15380 fi
15381 have_libossaudio=no
15382 have_oss=no
15383 if test "x$with_oss" != "xno"; then
15384 for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
15385 do :
15386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15389 cat >>confdefs.h <<_ACEOF
15390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15391 _ACEOF
15392 have_oss=yes
15393 fi
15394
15395 done
15396
15397 if test "x$have_oss" = "xyes"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
15399 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
15400 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 ac_check_lib_save_LIBS=$LIBS
15404 LIBS="-lossaudio $LIBS"
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15411 #ifdef __cplusplus
15412 extern "C"
15413 #endif
15414 char _oss_ioctl ();
15415 int
15416 main ()
15417 {
15418 return _oss_ioctl ();
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_link "$LINENO"; then :
15424 ac_cv_lib_ossaudio__oss_ioctl=yes
15425 else
15426 ac_cv_lib_ossaudio__oss_ioctl=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_lib_save_LIBS
15431 fi
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
15433 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
15434 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
15435 have_libossaudio=yes
15436 else
15437 have_libossaudio=no
15438 fi
15439
15440 fi
15441 fi
15442 have_jack=no
15443 if test "x$with_jack" != "xno"; then
15444
15445
15446
15447
15448
15449
15450
15451 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15452 if test -n "$ac_tool_prefix"; then
15453 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15454 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15456 $as_echo_n "checking for $ac_word... " >&6; }
15457 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15458 $as_echo_n "(cached) " >&6
15459 else
15460 case $PKG_CONFIG in
15461 [\\/]* | ?:[\\/]*)
15462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15463 ;;
15464 *)
15465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15466 for as_dir in $PATH
15467 do
15468 IFS=$as_save_IFS
15469 test -z "$as_dir" && as_dir=.
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15474 break 2
15475 fi
15476 done
15477 done
15478 IFS=$as_save_IFS
15479
15480 ;;
15481 esac
15482 fi
15483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15484 if test -n "$PKG_CONFIG"; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15486 $as_echo "$PKG_CONFIG" >&6; }
15487 else
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 $as_echo "no" >&6; }
15490 fi
15491
15492
15493 fi
15494 if test -z "$ac_cv_path_PKG_CONFIG"; then
15495 ac_pt_PKG_CONFIG=$PKG_CONFIG
15496 # Extract the first word of "pkg-config", so it can be a program name with args.
15497 set dummy pkg-config; ac_word=$2
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15499 $as_echo_n "checking for $ac_word... " >&6; }
15500 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15501 $as_echo_n "(cached) " >&6
15502 else
15503 case $ac_pt_PKG_CONFIG in
15504 [\\/]* | ?:[\\/]*)
15505 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15506 ;;
15507 *)
15508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15510 do
15511 IFS=$as_save_IFS
15512 test -z "$as_dir" && as_dir=.
15513 for ac_exec_ext in '' $ac_executable_extensions; do
15514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15517 break 2
15518 fi
15519 done
15520 done
15521 IFS=$as_save_IFS
15522
15523 ;;
15524 esac
15525 fi
15526 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15527 if test -n "$ac_pt_PKG_CONFIG"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15529 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534
15535 if test "x$ac_pt_PKG_CONFIG" = x; then
15536 PKG_CONFIG=""
15537 else
15538 case $cross_compiling:$ac_tool_warned in
15539 yes:)
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15542 ac_tool_warned=yes ;;
15543 esac
15544 PKG_CONFIG=$ac_pt_PKG_CONFIG
15545 fi
15546 else
15547 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15548 fi
15549
15550 fi
15551 if test -n "$PKG_CONFIG"; then
15552 _pkg_min_version=0.9.0
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15554 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15555 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15557 $as_echo "yes" >&6; }
15558 else
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15561 PKG_CONFIG=""
15562 fi
15563 fi
15564
15565 pkg_failed=no
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
15567 $as_echo_n "checking for JACK... " >&6; }
15568
15569 if test -n "$JACK_CFLAGS"; then
15570 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
15571 elif test -n "$PKG_CONFIG"; then
15572 if test -n "$PKG_CONFIG" && \
15573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
15574 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
15575 ac_status=$?
15576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577 test $ac_status = 0; }; then
15578 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
15579 test "x$?" != "x0" && pkg_failed=yes
15580 else
15581 pkg_failed=yes
15582 fi
15583 else
15584 pkg_failed=untried
15585 fi
15586 if test -n "$JACK_LIBS"; then
15587 pkg_cv_JACK_LIBS="$JACK_LIBS"
15588 elif test -n "$PKG_CONFIG"; then
15589 if test -n "$PKG_CONFIG" && \
15590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5
15591 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
15592 ac_status=$?
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; then
15595 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
15596 test "x$?" != "x0" && pkg_failed=yes
15597 else
15598 pkg_failed=yes
15599 fi
15600 else
15601 pkg_failed=untried
15602 fi
15603
15604
15605
15606 if test $pkg_failed = yes; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608 $as_echo "no" >&6; }
15609
15610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15611 _pkg_short_errors_supported=yes
15612 else
15613 _pkg_short_errors_supported=no
15614 fi
15615 if test $_pkg_short_errors_supported = yes; then
15616 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1`
15617 else
15618 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1`
15619 fi
15620 # Put the nasty error message in config.log where it belongs
15621 echo "$JACK_PKG_ERRORS" >&5
15622
15623 have_jack=no
15624 elif test $pkg_failed = untried; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627 have_jack=no
15628 else
15629 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
15630 JACK_LIBS=$pkg_cv_JACK_LIBS
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632 $as_echo "yes" >&6; }
15633 have_jack=yes
15634 fi
15635 fi
15636
15637
15638
15639 # The cast to long int works around a bug in the HP C Compiler
15640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15642 # This bug is HP SR number 8606223364.
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15644 $as_echo_n "checking size of short... " >&6; }
15645 if ${ac_cv_sizeof_short+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15649
15650 else
15651 if test "$ac_cv_type_short" = yes; then
15652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15654 as_fn_error 77 "cannot compute sizeof (short)
15655 See \`config.log' for more details" "$LINENO" 5; }
15656 else
15657 ac_cv_sizeof_short=0
15658 fi
15659 fi
15660
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15663 $as_echo "$ac_cv_sizeof_short" >&6; }
15664
15665
15666
15667 cat >>confdefs.h <<_ACEOF
15668 #define SIZEOF_SHORT $ac_cv_sizeof_short
15669 _ACEOF
15670
15671
15672 # The cast to long int works around a bug in the HP C Compiler
15673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15675 # This bug is HP SR number 8606223364.
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15677 $as_echo_n "checking size of int... " >&6; }
15678 if ${ac_cv_sizeof_int+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15682
15683 else
15684 if test "$ac_cv_type_int" = yes; then
15685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15687 as_fn_error 77 "cannot compute sizeof (int)
15688 See \`config.log' for more details" "$LINENO" 5; }
15689 else
15690 ac_cv_sizeof_int=0
15691 fi
15692 fi
15693
15694 fi
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15696 $as_echo "$ac_cv_sizeof_int" >&6; }
15697
15698
15699
15700 cat >>confdefs.h <<_ACEOF
15701 #define SIZEOF_INT $ac_cv_sizeof_int
15702 _ACEOF
15703
15704
15705 # The cast to long int works around a bug in the HP C Compiler
15706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15708 # This bug is HP SR number 8606223364.
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15710 $as_echo_n "checking size of long... " >&6; }
15711 if ${ac_cv_sizeof_long+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15715
15716 else
15717 if test "$ac_cv_type_long" = yes; then
15718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15720 as_fn_error 77 "cannot compute sizeof (long)
15721 See \`config.log' for more details" "$LINENO" 5; }
15722 else
15723 ac_cv_sizeof_long=0
15724 fi
15725 fi
15726
15727 fi
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15729 $as_echo "$ac_cv_sizeof_long" >&6; }
15730
15731
15732
15733 cat >>confdefs.h <<_ACEOF
15734 #define SIZEOF_LONG $ac_cv_sizeof_long
15735 _ACEOF
15736
15737
15738
15739 save_LIBS="${LIBS}"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15741 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15742 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 ac_check_lib_save_LIBS=$LIBS
15746 LIBS="-lrt $LIBS"
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char clock_gettime ();
15757 int
15758 main ()
15759 {
15760 return clock_gettime ();
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_c_try_link "$LINENO"; then :
15766 ac_cv_lib_rt_clock_gettime=yes
15767 else
15768 ac_cv_lib_rt_clock_gettime=no
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LIBS=$ac_check_lib_save_LIBS
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15775 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15776 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15777 rt_libs=" -lrt"
15778 fi
15779
15780 LIBS="${LIBS}${rt_libs}"
15781 DLL_LIBS="${DLL_LIBS}${rt_libs}"
15782 for ac_func in clock_gettime nanosleep
15783 do :
15784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15785 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15786 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15787 cat >>confdefs.h <<_ACEOF
15788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15789 _ACEOF
15790
15791 fi
15792 done
15793
15794 LIBS="${save_LIBS}"
15795
15796 LT_CURRENT=2
15797 LT_REVISION=0
15798 LT_AGE=0
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814 if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
15815 [ "$enable_mac_universal" = "yes" ] &&
15816 [ "$enable_mac_debug" != "yes" ] ; then
15817 CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
15818 else
15819 CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
15820 fi
15821
15822 if [ $ac_cv_c_bigendian = "yes" ] ; then
15823 CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
15824 else
15825 CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
15826 fi
15827
15828 add_objects()
15829 {
15830 for o in $@; do
15831 test "${OTHER_OBJS#*${o}*}" = "${OTHER_OBJS}" && OTHER_OBJS="$OTHER_OBJS $o"
15832 done
15833 }
15834
15835 INCLUDES=portaudio.h
15836
15837 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/src/common"
15838
15839 case "${host_os}" in
15840 darwin* )
15841
15842 $as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h
15843
15844
15845 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
15846 LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreFoundation -framework CoreServices"
15847
15848 if test "x$enable_mac_universal" = "xyes" ; then
15849 case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in
15850
15851 3.0|3.1)
15852 if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
15853 mac_version_min="-mmacosx-version-min=10.3"
15854 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
15855 else
15856 mac_version_min="-mmacosx-version-min=10.3"
15857 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
15858 fi
15859 ;;
15860
15861 *)
15862 if xcrun --sdk macosx10.5 --show-sdk-path >/dev/null 2>&1 ; then
15863 mac_version_min="-mmacosx-version-min=10.5"
15864 mac_sysroot="-isysroot $(xcrun --sdk macosx10.5 --show-sdk-path)"
15865 else
15866 mac_version_min="-mmacosx-version-min=10.6"
15867 mac_sysroot="-isysroot $(xcrun --sdk macosx --show-sdk-path)"
15868 fi
15869 esac
15870
15871 mac_arches=""
15872 for arch in x86_64 arm64
15873 do
15874 save_CFLAGS="$CFLAGS"
15875 CFLAGS="$CFLAGS -arch $arch"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878 $PAMAC_TEST_PROGRAM
15879 _ACEOF
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881
15882 if [ -z "$mac_arches" ] ; then
15883 mac_arches="-arch $arch"
15884 else
15885 mac_arches="$mac_arches -arch $arch"
15886 fi
15887
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 CFLAGS="$save_CFLAGS"
15891 done
15892 else
15893 mac_arches=""
15894 mac_sysroot=""
15895 mac_version=""
15896 fi
15897 SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
15898 CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
15899 OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
15900 PADLL="libportaudio.dylib"
15901 ;;
15902
15903 mingw* )
15904
15905 PADLL="portaudio.dll"
15906 THREAD_CFLAGS="-mthreads"
15907 SHARED_FLAGS="-shared"
15908 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_WMME=0 -DPA_USE_ASIO=0 -DPA_USE_WDMKS=0 -DPA_USE_DS=0 -DPA_USE_WASAPI=0"
15909
15910 if [ "x$with_directx" = "xyes" ]; then
15911 DXDIR="$with_dxdir"
15912 add_objects src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
15913 LIBS="${LIBS} -lwinmm -lm -ldsound -lole32"
15914 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -ldsound -lole32"
15915 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
15916 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
15917 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_DS -DPA_USE_DS=1"
15918 INCLUDES="$INCLUDES pa_win_ds.h pa_win_waveformat.h"
15919 fi
15920
15921 if [ "x$with_asio" = "xyes" ]; then
15922 ASIODIR="$with_asiodir"
15923 add_objects src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o
15924 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15925 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lole32 -luuid"
15926 CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -UPA_USE_ASIO -DPA_USE_ASIO=1 -DWINDOWS"
15927 INCLUDES="$INCLUDES pa_asio.h"
15928
15929 CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501"
15930
15931 CXXFLAGS="$CFLAGS"
15932 fi
15933
15934 if [ "x$with_wdmks" = "xyes" ]; then
15935 DXDIR="$with_dxdir"
15936 add_objects src/hostapi/wdmks/pa_win_wdmks.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_wdmks_utils.o src/os/win/pa_win_waveformat.o
15937 LIBS="${LIBS} -lwinmm -lm -luuid -lsetupapi -lole32"
15938 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L$DXDIR/lib -luuid -lsetupapi -lole32"
15939 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
15940 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
15941 CFLAGS="$CFLAGS -I$DXDIR/include -UPA_USE_WDMKS -DPA_USE_WDMKS=1"
15942 INCLUDES="$INCLUDES pa_win_wdmks.h"
15943 fi
15944
15945 if [ "x$with_wmme" = "xyes" ]; then
15946 add_objects src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o
15947 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15948 DLL_LIBS="${DLL_LIBS} -lwinmm"
15949 CFLAGS="$CFLAGS -UPA_USE_WMME -DPA_USE_WMME=1"
15950 INCLUDES="$INCLUDES pa_win_wmme.h pa_win_waveformat.h"
15951 fi
15952
15953 if [ "x$with_wasapi" = "xyes" ]; then
15954 add_objects src/hostapi/wasapi/pa_win_wasapi.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_coinitialize.o src/os/win/pa_win_waveformat.o
15955 LIBS="${LIBS} -lwinmm -lm -lole32 -luuid"
15956 DLL_LIBS="${DLL_LIBS} -lwinmm -lole32"
15957 CFLAGS="$CFLAGS -UPA_USE_WASAPI -DPA_USE_WASAPI=1"
15958 INCLUDES="$INCLUDES pa_win_wasapi.h pa_win_waveformat.h"
15959 fi
15960 ;;
15961
15962 cygwin* )
15963
15964 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
15965 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/win -DPA_USE_DS=0 -DPA_USE_WDMKS=0 -DPA_USE_ASIO=0 -DPA_USE_WASAPI=0 -DPA_USE_WMME=1"
15966 LIBS="-lwinmm -lm"
15967 PADLL="portaudio.dll"
15968 THREAD_CFLAGS="-mthreads"
15969 SHARED_FLAGS="-shared"
15970 DLL_LIBS="${DLL_LIBS} -lwinmm"
15971 ;;
15972
15973 irix* )
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15975 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15976 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15977 $as_echo_n "(cached) " >&6
15978 else
15979 ac_check_lib_save_LIBS=$LIBS
15980 LIBS="-lpthread $LIBS"
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char pthread_create ();
15991 int
15992 main ()
15993 {
15994 return pthread_create ();
15995 ;
15996 return 0;
15997 }
15998 _ACEOF
15999 if ac_fn_c_try_link "$LINENO"; then :
16000 ac_cv_lib_pthread_pthread_create=yes
16001 else
16002 ac_cv_lib_pthread_pthread_create=no
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006 LIBS=$ac_check_lib_save_LIBS
16007 fi
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16009 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16010 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_LIBPTHREAD 1
16013 _ACEOF
16014
16015 LIBS="-lpthread $LIBS"
16016
16017 else
16018 as_fn_error $? "IRIX posix thread library not found!" "$LINENO" 5
16019 fi
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alOpenPort in -laudio" >&5
16022 $as_echo_n "checking for alOpenPort in -laudio... " >&6; }
16023 if ${ac_cv_lib_audio_alOpenPort+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-laudio $LIBS"
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030
16031 /* Override any GCC internal prototype to avoid an error.
16032 Use char because int might match the return type of a GCC
16033 builtin and then its argument prototype would still apply. */
16034 #ifdef __cplusplus
16035 extern "C"
16036 #endif
16037 char alOpenPort ();
16038 int
16039 main ()
16040 {
16041 return alOpenPort ();
16042 ;
16043 return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_link "$LINENO"; then :
16047 ac_cv_lib_audio_alOpenPort=yes
16048 else
16049 ac_cv_lib_audio_alOpenPort=no
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
16053 LIBS=$ac_check_lib_save_LIBS
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_alOpenPort" >&5
16056 $as_echo "$ac_cv_lib_audio_alOpenPort" >&6; }
16057 if test "x$ac_cv_lib_audio_alOpenPort" = xyes; then :
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_LIBAUDIO 1
16060 _ACEOF
16061
16062 LIBS="-laudio $LIBS"
16063
16064 else
16065 as_fn_error $? "IRIX audio library not found!" "$LINENO" 5
16066 fi
16067
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmGetUST in -ldmedia" >&5
16069 $as_echo_n "checking for dmGetUST in -ldmedia... " >&6; }
16070 if ${ac_cv_lib_dmedia_dmGetUST+:} false; then :
16071 $as_echo_n "(cached) " >&6
16072 else
16073 ac_check_lib_save_LIBS=$LIBS
16074 LIBS="-ldmedia $LIBS"
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077
16078 /* Override any GCC internal prototype to avoid an error.
16079 Use char because int might match the return type of a GCC
16080 builtin and then its argument prototype would still apply. */
16081 #ifdef __cplusplus
16082 extern "C"
16083 #endif
16084 char dmGetUST ();
16085 int
16086 main ()
16087 {
16088 return dmGetUST ();
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_link "$LINENO"; then :
16094 ac_cv_lib_dmedia_dmGetUST=yes
16095 else
16096 ac_cv_lib_dmedia_dmGetUST=no
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100 LIBS=$ac_check_lib_save_LIBS
16101 fi
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmedia_dmGetUST" >&5
16103 $as_echo "$ac_cv_lib_dmedia_dmGetUST" >&6; }
16104 if test "x$ac_cv_lib_dmedia_dmGetUST" = xyes; then :
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_LIBDMEDIA 1
16107 _ACEOF
16108
16109 LIBS="-ldmedia $LIBS"
16110
16111 else
16112 as_fn_error $? "IRIX digital media library not found!" "$LINENO" 5
16113 fi
16114
16115
16116 $as_echo "#define PA_USE_SGI 1" >>confdefs.h
16117
16118
16119 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
16120
16121 THREAD_CFLAGS="-D_REENTRANT"
16122
16123 OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
16124
16125 LIBS="-lm -ldmedia -laudio -lpthread"
16126 PADLL="libportaudio.so"
16127 SHARED_FLAGS=""
16128 ;;
16129
16130 *)
16131
16132 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix"
16133
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16135 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16136 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139 ac_check_lib_save_LIBS=$LIBS
16140 LIBS="-lpthread $LIBS"
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143
16144 /* Override any GCC internal prototype to avoid an error.
16145 Use char because int might match the return type of a GCC
16146 builtin and then its argument prototype would still apply. */
16147 #ifdef __cplusplus
16148 extern "C"
16149 #endif
16150 char pthread_create ();
16151 int
16152 main ()
16153 {
16154 return pthread_create ();
16155 ;
16156 return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_link "$LINENO"; then :
16160 ac_cv_lib_pthread_pthread_create=yes
16161 else
16162 ac_cv_lib_pthread_pthread_create=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext \
16165 conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16169 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16170 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16171 have_pthread="yes"
16172 else
16173 as_fn_error $? "libpthread not found!" "$LINENO" 5
16174 fi
16175
16176
16177 if [ "$have_alsa" = "yes" ] && [ "$with_alsa" != "no" ] ; then
16178 DLL_LIBS="$DLL_LIBS -lasound"
16179 LIBS="$LIBS -lasound"
16180 OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
16181 INCLUDES="$INCLUDES pa_linux_alsa.h"
16182 $as_echo "#define PA_USE_ALSA 1" >>confdefs.h
16183
16184 fi
16185
16186 if [ "$have_jack" = "yes" ] && [ "$with_jack" != "no" ] ; then
16187 DLL_LIBS="$DLL_LIBS $JACK_LIBS"
16188 CFLAGS="$CFLAGS $JACK_CFLAGS"
16189 OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
16190 INCLUDES="$INCLUDES pa_jack.h"
16191 $as_echo "#define PA_USE_JACK 1" >>confdefs.h
16192
16193 fi
16194
16195 if [ "$with_oss" != "no" ] ; then
16196 OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
16197 if [ "$have_libossaudio" = "yes" ] ; then
16198 DLL_LIBS="$DLL_LIBS -lossaudio"
16199 LIBS="$LIBS -lossaudio"
16200 fi
16201 $as_echo "#define PA_USE_OSS 1" >>confdefs.h
16202
16203 fi
16204
16205 if [ "$have_asihpi" = "yes" ] && [ "$with_asihpi" != "no" ] ; then
16206 LIBS="$LIBS -lhpi"
16207 DLL_LIBS="$DLL_LIBS -lhpi"
16208 OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
16209 $as_echo "#define PA_USE_ASIHPI 1" >>confdefs.h
16210
16211 fi
16212
16213 DLL_LIBS="$DLL_LIBS -lm -lpthread"
16214 LIBS="$LIBS -lm -lpthread"
16215 PADLL="libportaudio.so"
16216
16217 ## support sun cc compiler flags
16218 case "${host_os}" in
16219 solaris*)
16220 SHARED_FLAGS="-G"
16221 THREAD_CFLAGS="-mt"
16222 ;;
16223 *)
16224 SHARED_FLAGS="-fPIC"
16225 THREAD_CFLAGS="-pthread"
16226 ;;
16227 esac
16228
16229 OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
16230 esac
16231 CFLAGS="$CFLAGS $THREAD_CFLAGS"
16232
16233 test "$enable_shared" != "yes" && SHARED_FLAGS=""
16234
16235 if test "$enable_cxx" = "yes"; then
16236
16237
16238 subdirs="$subdirs bindings/cpp"
16239
16240 ENABLE_CXX_TRUE=""
16241 ENABLE_CXX_FALSE="#"
16242 else
16243 ENABLE_CXX_TRUE="#"
16244 ENABLE_CXX_FALSE=""
16245 fi
16246
16247
16248
16249 if test "x$with_asio" = "xyes"; then
16250 WITH_ASIO_TRUE=""
16251 WITH_ASIO_FALSE="@ #"
16252 else
16253 WITH_ASIO_TRUE="@ #"
16254 WITH_ASIO_FALSE=""
16255 fi
16256
16257
16258
16259 ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
16260
16261 cat >confcache <<\_ACEOF
16262 # This file is a shell script that caches the results of configure
16263 # tests run on this system so they can be shared between configure
16264 # scripts and configure runs, see configure's option --config-cache.
16265 # It is not useful on other systems. If it contains results you don't
16266 # want to keep, you may remove or edit it.
16267 #
16268 # config.status only pays attention to the cache file if you give it
16269 # the --recheck option to rerun configure.
16270 #
16271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16273 # following values.
16274
16275 _ACEOF
16276
16277 # The following way of writing the cache mishandles newlines in values,
16278 # but we know of no workaround that is simple, portable, and efficient.
16279 # So, we kill variables containing newlines.
16280 # Ultrix sh set writes to stderr and can't be redirected directly,
16281 # and sets the high bit in the cache file unless we assign to the vars.
16282 (
16283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16284 eval ac_val=\$$ac_var
16285 case $ac_val in #(
16286 *${as_nl}*)
16287 case $ac_var in #(
16288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16290 esac
16291 case $ac_var in #(
16292 _ | IFS | as_nl) ;; #(
16293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16294 *) { eval $ac_var=; unset $ac_var;} ;;
16295 esac ;;
16296 esac
16297 done
16298
16299 (set) 2>&1 |
16300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16301 *${as_nl}ac_space=\ *)
16302 # `set' does not quote correctly, so add quotes: double-quote
16303 # substitution turns \\\\ into \\, and sed turns \\ into \.
16304 sed -n \
16305 "s/'/'\\\\''/g;
16306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16307 ;; #(
16308 *)
16309 # `set' quotes correctly as required by POSIX, so do not add quotes.
16310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16311 ;;
16312 esac |
16313 sort
16314 ) |
16315 sed '
16316 /^ac_cv_env_/b end
16317 t clear
16318 :clear
16319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16320 t end
16321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16322 :end' >>confcache
16323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16324 if test -w "$cache_file"; then
16325 if test "x$cache_file" != "x/dev/null"; then
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16327 $as_echo "$as_me: updating cache $cache_file" >&6;}
16328 if test ! -f "$cache_file" || test -h "$cache_file"; then
16329 cat confcache >"$cache_file"
16330 else
16331 case $cache_file in #(
16332 */* | ?:*)
16333 mv -f confcache "$cache_file"$$ &&
16334 mv -f "$cache_file"$$ "$cache_file" ;; #(
16335 *)
16336 mv -f confcache "$cache_file" ;;
16337 esac
16338 fi
16339 fi
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16343 fi
16344 fi
16345 rm -f confcache
16346
16347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16348 # Let make expand exec_prefix.
16349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16350
16351 # Transform confdefs.h into DEFS.
16352 # Protect against shell expansion while executing Makefile rules.
16353 # Protect against Makefile macro expansion.
16354 #
16355 # If the first sed substitution is executed (which looks for macros that
16356 # take arguments), then branch to the quote section. Otherwise,
16357 # look for a macro that doesn't take arguments.
16358 ac_script='
16359 :mline
16360 /\\$/{
16361 N
16362 s,\\\n,,
16363 b mline
16364 }
16365 t clear
16366 :clear
16367 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16368 t quote
16369 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16370 t quote
16371 b any
16372 :quote
16373 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16374 s/\[/\\&/g
16375 s/\]/\\&/g
16376 s/\$/$$/g
16377 H
16378 :any
16379 ${
16380 g
16381 s/^\n//
16382 s/\n/ /g
16383 p
16384 }
16385 '
16386 DEFS=`sed -n "$ac_script" confdefs.h`
16387
16388
16389 ac_libobjs=
16390 ac_ltlibobjs=
16391 U=
16392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16393 # 1. Remove the extension, and $U if already installed.
16394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16395 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16397 # will be set to the directory where LIBOBJS objects are built.
16398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16400 done
16401 LIBOBJS=$ac_libobjs
16402
16403 LTLIBOBJS=$ac_ltlibobjs
16404
16405
16406
16407
16408 : "${CONFIG_STATUS=./config.status}"
16409 ac_write_fail=0
16410 ac_clean_files_save=$ac_clean_files
16411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16414 as_write_fail=0
16415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16416 #! $SHELL
16417 # Generated by $as_me.
16418 # Run this file to recreate the current configuration.
16419 # Compiler output produced by configure, useful for debugging
16420 # configure, is in config.log if it exists.
16421
16422 debug=false
16423 ac_cs_recheck=false
16424 ac_cs_silent=false
16425
16426 SHELL=\${CONFIG_SHELL-$SHELL}
16427 export SHELL
16428 _ASEOF
16429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16430 ## -------------------- ##
16431 ## M4sh Initialization. ##
16432 ## -------------------- ##
16433
16434 # Be more Bourne compatible
16435 DUALCASE=1; export DUALCASE # for MKS sh
16436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16437 emulate sh
16438 NULLCMD=:
16439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16440 # is contrary to our usage. Disable this feature.
16441 alias -g '${1+"$@"}'='"$@"'
16442 setopt NO_GLOB_SUBST
16443 else
16444 case `(set -o) 2>/dev/null` in #(
16445 *posix*) :
16446 set -o posix ;; #(
16447 *) :
16448 ;;
16449 esac
16450 fi
16451
16452
16453 as_nl='
16454 '
16455 export as_nl
16456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16460 # Prefer a ksh shell builtin over an external printf program on Solaris,
16461 # but without wasting forks for bash or zsh.
16462 if test -z "$BASH_VERSION$ZSH_VERSION" \
16463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16464 as_echo='print -r --'
16465 as_echo_n='print -rn --'
16466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16467 as_echo='printf %s\n'
16468 as_echo_n='printf %s'
16469 else
16470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16472 as_echo_n='/usr/ucb/echo -n'
16473 else
16474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16475 as_echo_n_body='eval
16476 arg=$1;
16477 case $arg in #(
16478 *"$as_nl"*)
16479 expr "X$arg" : "X\\(.*\\)$as_nl";
16480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16481 esac;
16482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16483 '
16484 export as_echo_n_body
16485 as_echo_n='sh -c $as_echo_n_body as_echo'
16486 fi
16487 export as_echo_body
16488 as_echo='sh -c $as_echo_body as_echo'
16489 fi
16490
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493 PATH_SEPARATOR=:
16494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16496 PATH_SEPARATOR=';'
16497 }
16498 fi
16499
16500
16501 # IFS
16502 # We need space, tab and new line, in precisely that order. Quoting is
16503 # there to prevent editors from complaining about space-tab.
16504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16505 # splitting by setting IFS to empty value.)
16506 IFS=" "" $as_nl"
16507
16508 # Find who we are. Look in the path if we contain no directory separator.
16509 as_myself=
16510 case $0 in #((
16511 *[\\/]* ) as_myself=$0 ;;
16512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16514 do
16515 IFS=$as_save_IFS
16516 test -z "$as_dir" && as_dir=.
16517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16518 done
16519 IFS=$as_save_IFS
16520
16521 ;;
16522 esac
16523 # We did not find ourselves, most probably we were run as `sh COMMAND'
16524 # in which case we are not to be found in the path.
16525 if test "x$as_myself" = x; then
16526 as_myself=$0
16527 fi
16528 if test ! -f "$as_myself"; then
16529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16530 exit 1
16531 fi
16532
16533 # Unset variables that we do not need and which cause bugs (e.g. in
16534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16535 # suppresses any "Segmentation fault" message there. '((' could
16536 # trigger a bug in pdksh 5.2.14.
16537 for as_var in BASH_ENV ENV MAIL MAILPATH
16538 do eval test x\${$as_var+set} = xset \
16539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16540 done
16541 PS1='$ '
16542 PS2='> '
16543 PS4='+ '
16544
16545 # NLS nuisances.
16546 LC_ALL=C
16547 export LC_ALL
16548 LANGUAGE=C
16549 export LANGUAGE
16550
16551 # CDPATH.
16552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16553
16554
16555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16556 # ----------------------------------------
16557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16559 # script with STATUS, using 1 if that was 0.
16560 as_fn_error ()
16561 {
16562 as_status=$1; test $as_status -eq 0 && as_status=1
16563 if test "$4"; then
16564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16566 fi
16567 $as_echo "$as_me: error: $2" >&2
16568 as_fn_exit $as_status
16569 } # as_fn_error
16570
16571
16572 # as_fn_set_status STATUS
16573 # -----------------------
16574 # Set $? to STATUS, without forking.
16575 as_fn_set_status ()
16576 {
16577 return $1
16578 } # as_fn_set_status
16579
16580 # as_fn_exit STATUS
16581 # -----------------
16582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16583 as_fn_exit ()
16584 {
16585 set +e
16586 as_fn_set_status $1
16587 exit $1
16588 } # as_fn_exit
16589
16590 # as_fn_unset VAR
16591 # ---------------
16592 # Portably unset VAR.
16593 as_fn_unset ()
16594 {
16595 { eval $1=; unset $1;}
16596 }
16597 as_unset=as_fn_unset
16598 # as_fn_append VAR VALUE
16599 # ----------------------
16600 # Append the text in VALUE to the end of the definition contained in VAR. Take
16601 # advantage of any shell optimizations that allow amortized linear growth over
16602 # repeated appends, instead of the typical quadratic growth present in naive
16603 # implementations.
16604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16605 eval 'as_fn_append ()
16606 {
16607 eval $1+=\$2
16608 }'
16609 else
16610 as_fn_append ()
16611 {
16612 eval $1=\$$1\$2
16613 }
16614 fi # as_fn_append
16615
16616 # as_fn_arith ARG...
16617 # ------------------
16618 # Perform arithmetic evaluation on the ARGs, and store the result in the
16619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16620 # must be portable across $(()) and expr.
16621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16622 eval 'as_fn_arith ()
16623 {
16624 as_val=$(( $* ))
16625 }'
16626 else
16627 as_fn_arith ()
16628 {
16629 as_val=`expr "$@" || test $? -eq 1`
16630 }
16631 fi # as_fn_arith
16632
16633
16634 if expr a : '\(a\)' >/dev/null 2>&1 &&
16635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16636 as_expr=expr
16637 else
16638 as_expr=false
16639 fi
16640
16641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16642 as_basename=basename
16643 else
16644 as_basename=false
16645 fi
16646
16647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16648 as_dirname=dirname
16649 else
16650 as_dirname=false
16651 fi
16652
16653 as_me=`$as_basename -- "$0" ||
16654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16655 X"$0" : 'X\(//\)$' \| \
16656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16657 $as_echo X/"$0" |
16658 sed '/^.*\/\([^/][^/]*\)\/*$/{
16659 s//\1/
16660 q
16661 }
16662 /^X\/\(\/\/\)$/{
16663 s//\1/
16664 q
16665 }
16666 /^X\/\(\/\).*/{
16667 s//\1/
16668 q
16669 }
16670 s/.*/./; q'`
16671
16672 # Avoid depending upon Character Ranges.
16673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16676 as_cr_digits='0123456789'
16677 as_cr_alnum=$as_cr_Letters$as_cr_digits
16678
16679 ECHO_C= ECHO_N= ECHO_T=
16680 case `echo -n x` in #(((((
16681 -n*)
16682 case `echo 'xy\c'` in
16683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16684 xy) ECHO_C='\c';;
16685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16686 ECHO_T=' ';;
16687 esac;;
16688 *)
16689 ECHO_N='-n';;
16690 esac
16691
16692 rm -f conf$$ conf$$.exe conf$$.file
16693 if test -d conf$$.dir; then
16694 rm -f conf$$.dir/conf$$.file
16695 else
16696 rm -f conf$$.dir
16697 mkdir conf$$.dir 2>/dev/null
16698 fi
16699 if (echo >conf$$.file) 2>/dev/null; then
16700 if ln -s conf$$.file conf$$ 2>/dev/null; then
16701 as_ln_s='ln -s'
16702 # ... but there are two gotchas:
16703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16705 # In both cases, we have to default to `cp -pR'.
16706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16707 as_ln_s='cp -pR'
16708 elif ln conf$$.file conf$$ 2>/dev/null; then
16709 as_ln_s=ln
16710 else
16711 as_ln_s='cp -pR'
16712 fi
16713 else
16714 as_ln_s='cp -pR'
16715 fi
16716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16717 rmdir conf$$.dir 2>/dev/null
16718
16719
16720 # as_fn_mkdir_p
16721 # -------------
16722 # Create "$as_dir" as a directory, including parents if necessary.
16723 as_fn_mkdir_p ()
16724 {
16725
16726 case $as_dir in #(
16727 -*) as_dir=./$as_dir;;
16728 esac
16729 test -d "$as_dir" || eval $as_mkdir_p || {
16730 as_dirs=
16731 while :; do
16732 case $as_dir in #(
16733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16734 *) as_qdir=$as_dir;;
16735 esac
16736 as_dirs="'$as_qdir' $as_dirs"
16737 as_dir=`$as_dirname -- "$as_dir" ||
16738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16739 X"$as_dir" : 'X\(//\)[^/]' \| \
16740 X"$as_dir" : 'X\(//\)$' \| \
16741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16742 $as_echo X"$as_dir" |
16743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\/\)[^/].*/{
16748 s//\1/
16749 q
16750 }
16751 /^X\(\/\/\)$/{
16752 s//\1/
16753 q
16754 }
16755 /^X\(\/\).*/{
16756 s//\1/
16757 q
16758 }
16759 s/.*/./; q'`
16760 test -d "$as_dir" && break
16761 done
16762 test -z "$as_dirs" || eval "mkdir $as_dirs"
16763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16764
16765
16766 } # as_fn_mkdir_p
16767 if mkdir -p . 2>/dev/null; then
16768 as_mkdir_p='mkdir -p "$as_dir"'
16769 else
16770 test -d ./-p && rmdir ./-p
16771 as_mkdir_p=false
16772 fi
16773
16774
16775 # as_fn_executable_p FILE
16776 # -----------------------
16777 # Test if FILE is an executable regular file.
16778 as_fn_executable_p ()
16779 {
16780 test -f "$1" && test -x "$1"
16781 } # as_fn_executable_p
16782 as_test_x='test -x'
16783 as_executable_p=as_fn_executable_p
16784
16785 # Sed expression to map a string onto a valid CPP name.
16786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16787
16788 # Sed expression to map a string onto a valid variable name.
16789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16790
16791
16792 exec 6>&1
16793 ## ----------------------------------- ##
16794 ## Main body of $CONFIG_STATUS script. ##
16795 ## ----------------------------------- ##
16796 _ASEOF
16797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16798
16799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16800 # Save the log message, to keep $0 and so on meaningful, and to
16801 # report actual input values of CONFIG_FILES etc. instead of their
16802 # values after options handling.
16803 ac_log="
16804 This file was extended by $as_me, which was
16805 generated by GNU Autoconf 2.69. Invocation command line was
16806
16807 CONFIG_FILES = $CONFIG_FILES
16808 CONFIG_HEADERS = $CONFIG_HEADERS
16809 CONFIG_LINKS = $CONFIG_LINKS
16810 CONFIG_COMMANDS = $CONFIG_COMMANDS
16811 $ $0 $@
16812
16813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16814 "
16815
16816 _ACEOF
16817
16818 case $ac_config_files in *"
16819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16820 esac
16821
16822
16823
16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825 # Files that config.status was made for.
16826 config_files="$ac_config_files"
16827 config_commands="$ac_config_commands"
16828
16829 _ACEOF
16830
16831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16832 ac_cs_usage="\
16833 \`$as_me' instantiates files and other configuration actions
16834 from templates according to the current configuration. Unless the files
16835 and actions are specified as TAGs, all are instantiated by default.
16836
16837 Usage: $0 [OPTION]... [TAG]...
16838
16839 -h, --help print this help, then exit
16840 -V, --version print version number and configuration settings, then exit
16841 --config print configuration, then exit
16842 -q, --quiet, --silent
16843 do not print progress messages
16844 -d, --debug don't remove temporary files
16845 --recheck update $as_me by reconfiguring in the same conditions
16846 --file=FILE[:TEMPLATE]
16847 instantiate the configuration file FILE
16848
16849 Configuration files:
16850 $config_files
16851
16852 Configuration commands:
16853 $config_commands
16854
16855 Report bugs to the package provider."
16856
16857 _ACEOF
16858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16859 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16860 ac_cs_version="\\
16861 config.status
16862 configured by $0, generated by GNU Autoconf 2.69,
16863 with options \\"\$ac_cs_config\\"
16864
16865 Copyright (C) 2012 Free Software Foundation, Inc.
16866 This config.status script is free software; the Free Software Foundation
16867 gives unlimited permission to copy, distribute and modify it."
16868
16869 ac_pwd='$ac_pwd'
16870 srcdir='$srcdir'
16871 INSTALL='$INSTALL'
16872 AWK='$AWK'
16873 test -n "\$AWK" || AWK=awk
16874 _ACEOF
16875
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877 # The default lists apply if the user does not specify any file.
16878 ac_need_defaults=:
16879 while test $# != 0
16880 do
16881 case $1 in
16882 --*=?*)
16883 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16884 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16885 ac_shift=:
16886 ;;
16887 --*=)
16888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16889 ac_optarg=
16890 ac_shift=:
16891 ;;
16892 *)
16893 ac_option=$1
16894 ac_optarg=$2
16895 ac_shift=shift
16896 ;;
16897 esac
16898
16899 case $ac_option in
16900 # Handling of the options.
16901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16902 ac_cs_recheck=: ;;
16903 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16904 $as_echo "$ac_cs_version"; exit ;;
16905 --config | --confi | --conf | --con | --co | --c )
16906 $as_echo "$ac_cs_config"; exit ;;
16907 --debug | --debu | --deb | --de | --d | -d )
16908 debug=: ;;
16909 --file | --fil | --fi | --f )
16910 $ac_shift
16911 case $ac_optarg in
16912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16913 '') as_fn_error $? "missing file argument" ;;
16914 esac
16915 as_fn_append CONFIG_FILES " '$ac_optarg'"
16916 ac_need_defaults=false;;
16917 --he | --h | --help | --hel | -h )
16918 $as_echo "$ac_cs_usage"; exit ;;
16919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16921 ac_cs_silent=: ;;
16922
16923 # This is an error.
16924 -*) as_fn_error $? "unrecognized option: \`$1'
16925 Try \`$0 --help' for more information." ;;
16926
16927 *) as_fn_append ac_config_targets " $1"
16928 ac_need_defaults=false ;;
16929
16930 esac
16931 shift
16932 done
16933
16934 ac_configure_extra_args=
16935
16936 if $ac_cs_silent; then
16937 exec 6>/dev/null
16938 ac_configure_extra_args="$ac_configure_extra_args --silent"
16939 fi
16940
16941 _ACEOF
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 if \$ac_cs_recheck; then
16944 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16945 shift
16946 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16947 CONFIG_SHELL='$SHELL'
16948 export CONFIG_SHELL
16949 exec "\$@"
16950 fi
16951
16952 _ACEOF
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 exec 5>>config.log
16955 {
16956 echo
16957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16958 ## Running $as_me. ##
16959 _ASBOX
16960 $as_echo "$ac_log"
16961 } >&5
16962
16963 _ACEOF
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 #
16966 # INIT-COMMANDS
16967 #
16968
16969
16970 # The HP-UX ksh and POSIX shell print the target directory to stdout
16971 # if CDPATH is set.
16972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16973
16974 sed_quote_subst='$sed_quote_subst'
16975 double_quote_subst='$double_quote_subst'
16976 delay_variable_subst='$delay_variable_subst'
16977 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16978 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16979 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16980 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16981 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16982 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16983 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16984 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16985 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16986 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16987 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16988 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16989 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16990 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16991 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16992 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16993 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16994 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16995 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16996 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16997 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16998 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16999 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17000 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17001 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17002 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17003 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17004 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17005 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17006 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17007 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17008 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17009 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17010 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17011 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17012 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17013 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17014 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17015 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17016 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17017 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17018 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17019 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17020 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17021 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17022 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17023 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17024 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17025 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17026 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17027 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17028 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17029 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17030 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17031 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17032 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17033 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17034 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"`'
17035 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17036 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17037 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17038 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17039 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17040 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17041 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17042 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17043 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17044 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17045 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17046 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17047 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17048 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17049 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17050 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17051 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17052 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17053 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17054 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17055 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17056 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17057 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17058 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17059 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17060 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17061 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17062 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17063 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17064 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17065 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17066 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17067 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17068 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17069 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17070 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17071 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17072 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17073 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17074 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17075 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17076 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17082 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17083 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17084 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17085 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17086 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17087 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17088 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17089 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17090 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17091 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17092 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17093 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17094 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17095 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17096 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17097 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17098 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17099 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17100 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17101 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17108 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17109 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17110 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17111 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17112 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17113 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17114 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17115 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17116 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17117 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17118 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17119 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17120 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17122 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17123 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17124 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17125 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17126 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17127 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17128 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17129 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17130 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17131 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17132 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17133 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17134 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17135 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17136 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17137 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17138 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17139 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17148 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17149 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17150 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17151 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17152 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17153 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17162
17163 LTCC='$LTCC'
17164 LTCFLAGS='$LTCFLAGS'
17165 compiler='$compiler_DEFAULT'
17166
17167 # A function that is used when there is no print builtin or printf.
17168 func_fallback_echo ()
17169 {
17170 eval 'cat <<_LTECHO_EOF
17171 \$1
17172 _LTECHO_EOF'
17173 }
17174
17175 # Quote evaled strings.
17176 for var in AS \
17177 DLLTOOL \
17178 OBJDUMP \
17179 SHELL \
17180 ECHO \
17181 PATH_SEPARATOR \
17182 SED \
17183 GREP \
17184 EGREP \
17185 FGREP \
17186 LD \
17187 NM \
17188 LN_S \
17189 lt_SP2NL \
17190 lt_NL2SP \
17191 reload_flag \
17192 deplibs_check_method \
17193 file_magic_cmd \
17194 file_magic_glob \
17195 want_nocaseglob \
17196 sharedlib_from_linklib_cmd \
17197 AR \
17198 AR_FLAGS \
17199 archiver_list_spec \
17200 STRIP \
17201 RANLIB \
17202 CC \
17203 CFLAGS \
17204 compiler \
17205 lt_cv_sys_global_symbol_pipe \
17206 lt_cv_sys_global_symbol_to_cdecl \
17207 lt_cv_sys_global_symbol_to_c_name_address \
17208 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17209 nm_file_list_spec \
17210 lt_prog_compiler_no_builtin_flag \
17211 lt_prog_compiler_pic \
17212 lt_prog_compiler_wl \
17213 lt_prog_compiler_static \
17214 lt_cv_prog_compiler_c_o \
17215 need_locks \
17216 MANIFEST_TOOL \
17217 DSYMUTIL \
17218 NMEDIT \
17219 LIPO \
17220 OTOOL \
17221 OTOOL64 \
17222 shrext_cmds \
17223 export_dynamic_flag_spec \
17224 whole_archive_flag_spec \
17225 compiler_needs_object \
17226 with_gnu_ld \
17227 allow_undefined_flag \
17228 no_undefined_flag \
17229 hardcode_libdir_flag_spec \
17230 hardcode_libdir_separator \
17231 exclude_expsyms \
17232 include_expsyms \
17233 file_list_spec \
17234 variables_saved_for_relink \
17235 libname_spec \
17236 library_names_spec \
17237 soname_spec \
17238 install_override_mode \
17239 finish_eval \
17240 old_striplib \
17241 striplib \
17242 compiler_lib_search_dirs \
17243 predep_objects \
17244 postdep_objects \
17245 predeps \
17246 postdeps \
17247 compiler_lib_search_path \
17248 LD_CXX \
17249 reload_flag_CXX \
17250 compiler_CXX \
17251 lt_prog_compiler_no_builtin_flag_CXX \
17252 lt_prog_compiler_pic_CXX \
17253 lt_prog_compiler_wl_CXX \
17254 lt_prog_compiler_static_CXX \
17255 lt_cv_prog_compiler_c_o_CXX \
17256 export_dynamic_flag_spec_CXX \
17257 whole_archive_flag_spec_CXX \
17258 compiler_needs_object_CXX \
17259 with_gnu_ld_CXX \
17260 allow_undefined_flag_CXX \
17261 no_undefined_flag_CXX \
17262 hardcode_libdir_flag_spec_CXX \
17263 hardcode_libdir_separator_CXX \
17264 exclude_expsyms_CXX \
17265 include_expsyms_CXX \
17266 file_list_spec_CXX \
17267 compiler_lib_search_dirs_CXX \
17268 predep_objects_CXX \
17269 postdep_objects_CXX \
17270 predeps_CXX \
17271 postdeps_CXX \
17272 compiler_lib_search_path_CXX; do
17273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17274 *[\\\\\\\`\\"\\\$]*)
17275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17276 ;;
17277 *)
17278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17279 ;;
17280 esac
17281 done
17282
17283 # Double-quote double-evaled strings.
17284 for var in reload_cmds \
17285 old_postinstall_cmds \
17286 old_postuninstall_cmds \
17287 old_archive_cmds \
17288 extract_expsyms_cmds \
17289 old_archive_from_new_cmds \
17290 old_archive_from_expsyms_cmds \
17291 archive_cmds \
17292 archive_expsym_cmds \
17293 module_cmds \
17294 module_expsym_cmds \
17295 export_symbols_cmds \
17296 prelink_cmds \
17297 postlink_cmds \
17298 postinstall_cmds \
17299 postuninstall_cmds \
17300 finish_cmds \
17301 sys_lib_search_path_spec \
17302 sys_lib_dlsearch_path_spec \
17303 reload_cmds_CXX \
17304 old_archive_cmds_CXX \
17305 old_archive_from_new_cmds_CXX \
17306 old_archive_from_expsyms_cmds_CXX \
17307 archive_cmds_CXX \
17308 archive_expsym_cmds_CXX \
17309 module_cmds_CXX \
17310 module_expsym_cmds_CXX \
17311 export_symbols_cmds_CXX \
17312 prelink_cmds_CXX \
17313 postlink_cmds_CXX; do
17314 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17315 *[\\\\\\\`\\"\\\$]*)
17316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17317 ;;
17318 *)
17319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17320 ;;
17321 esac
17322 done
17323
17324 ac_aux_dir='$ac_aux_dir'
17325 xsi_shell='$xsi_shell'
17326 lt_shell_append='$lt_shell_append'
17327
17328 # See if we are running on zsh, and set the options which allow our
17329 # commands through without removal of \ escapes INIT.
17330 if test -n "\${ZSH_VERSION+set}" ; then
17331 setopt NO_GLOB_SUBST
17332 fi
17333
17334
17335 PACKAGE='$PACKAGE'
17336 VERSION='$VERSION'
17337 TIMESTAMP='$TIMESTAMP'
17338 RM='$RM'
17339 ofile='$ofile'
17340
17341
17342
17343
17344
17345
17346 _ACEOF
17347
17348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17349
17350 # Handling of arguments.
17351 for ac_config_target in $ac_config_targets
17352 do
17353 case $ac_config_target in
17354 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17356 "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
17357
17358 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17359 esac
17360 done
17361
17362
17363 # If the user did not use the arguments to specify the items to instantiate,
17364 # then the envvar interface is used. Set only those that are not.
17365 # We use the long form for the default assignment because of an extremely
17366 # bizarre bug on SunOS 4.1.3.
17367 if $ac_need_defaults; then
17368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17370 fi
17371
17372 # Have a temporary directory for convenience. Make it in the build tree
17373 # simply because there is no reason against having it here, and in addition,
17374 # creating and moving files from /tmp can sometimes cause problems.
17375 # Hook for its removal unless debugging.
17376 # Note that there is a small window in which the directory will not be cleaned:
17377 # after its creation but before its name has been assigned to `$tmp'.
17378 $debug ||
17379 {
17380 tmp= ac_tmp=
17381 trap 'exit_status=$?
17382 : "${ac_tmp:=$tmp}"
17383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17384 ' 0
17385 trap 'as_fn_exit 1' 1 2 13 15
17386 }
17387 # Create a (secure) tmp directory for tmp files.
17388
17389 {
17390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17391 test -d "$tmp"
17392 } ||
17393 {
17394 tmp=./conf$$-$RANDOM
17395 (umask 077 && mkdir "$tmp")
17396 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17397 ac_tmp=$tmp
17398
17399 # Set up the scripts for CONFIG_FILES section.
17400 # No need to generate them if there are no CONFIG_FILES.
17401 # This happens for instance with `./config.status config.h'.
17402 if test -n "$CONFIG_FILES"; then
17403
17404
17405 ac_cr=`echo X | tr X '\015'`
17406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17407 # But we know of no other shell where ac_cr would be empty at this
17408 # point, so we can use a bashism as a fallback.
17409 if test "x$ac_cr" = x; then
17410 eval ac_cr=\$\'\\r\'
17411 fi
17412 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17414 ac_cs_awk_cr='\\r'
17415 else
17416 ac_cs_awk_cr=$ac_cr
17417 fi
17418
17419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17420 _ACEOF
17421
17422
17423 {
17424 echo "cat >conf$$subs.awk <<_ACEOF" &&
17425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17426 echo "_ACEOF"
17427 } >conf$$subs.sh ||
17428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17430 ac_delim='%!_!# '
17431 for ac_last_try in false false false false false :; do
17432 . ./conf$$subs.sh ||
17433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17434
17435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17436 if test $ac_delim_n = $ac_delim_num; then
17437 break
17438 elif $ac_last_try; then
17439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17440 else
17441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17442 fi
17443 done
17444 rm -f conf$$subs.sh
17445
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17448 _ACEOF
17449 sed -n '
17450 h
17451 s/^/S["/; s/!.*/"]=/
17452 p
17453 g
17454 s/^[^!]*!//
17455 :repl
17456 t repl
17457 s/'"$ac_delim"'$//
17458 t delim
17459 :nl
17460 h
17461 s/\(.\{148\}\)..*/\1/
17462 t more1
17463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17464 p
17465 n
17466 b repl
17467 :more1
17468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17469 p
17470 g
17471 s/.\{148\}//
17472 t nl
17473 :delim
17474 h
17475 s/\(.\{148\}\)..*/\1/
17476 t more2
17477 s/["\\]/\\&/g; s/^/"/; s/$/"/
17478 p
17479 b
17480 :more2
17481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17482 p
17483 g
17484 s/.\{148\}//
17485 t delim
17486 ' <conf$$subs.awk | sed '
17487 /^[^""]/{
17488 N
17489 s/\n//
17490 }
17491 ' >>$CONFIG_STATUS || ac_write_fail=1
17492 rm -f conf$$subs.awk
17493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17494 _ACAWK
17495 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17496 for (key in S) S_is_set[key] = 1
17497 FS = ""
17498
17499 }
17500 {
17501 line = $ 0
17502 nfields = split(line, field, "@")
17503 substed = 0
17504 len = length(field[1])
17505 for (i = 2; i < nfields; i++) {
17506 key = field[i]
17507 keylen = length(key)
17508 if (S_is_set[key]) {
17509 value = S[key]
17510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17511 len += length(value) + length(field[++i])
17512 substed = 1
17513 } else
17514 len += 1 + keylen
17515 }
17516
17517 print line
17518 }
17519
17520 _ACAWK
17521 _ACEOF
17522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17525 else
17526 cat
17527 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17529 _ACEOF
17530
17531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17533 # trailing colons and then remove the whole line if VPATH becomes empty
17534 # (actually we leave an empty line to preserve line numbers).
17535 if test "x$srcdir" = x.; then
17536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17537 h
17538 s///
17539 s/^/:/
17540 s/[ ]*$/:/
17541 s/:\$(srcdir):/:/g
17542 s/:\${srcdir}:/:/g
17543 s/:@srcdir@:/:/g
17544 s/^:*//
17545 s/:*$//
17546 x
17547 s/\(=[ ]*\).*/\1/
17548 G
17549 s/\n//
17550 s/^[^=]*=[ ]*$//
17551 }'
17552 fi
17553
17554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17555 fi # test -n "$CONFIG_FILES"
17556
17557
17558 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17559 shift
17560 for ac_tag
17561 do
17562 case $ac_tag in
17563 :[FHLC]) ac_mode=$ac_tag; continue;;
17564 esac
17565 case $ac_mode$ac_tag in
17566 :[FHL]*:*);;
17567 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17568 :[FH]-) ac_tag=-:-;;
17569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17570 esac
17571 ac_save_IFS=$IFS
17572 IFS=:
17573 set x $ac_tag
17574 IFS=$ac_save_IFS
17575 shift
17576 ac_file=$1
17577 shift
17578
17579 case $ac_mode in
17580 :L) ac_source=$1;;
17581 :[FH])
17582 ac_file_inputs=
17583 for ac_f
17584 do
17585 case $ac_f in
17586 -) ac_f="$ac_tmp/stdin";;
17587 *) # Look for the file first in the build tree, then in the source tree
17588 # (if the path is not absolute). The absolute path cannot be DOS-style,
17589 # because $ac_f cannot contain `:'.
17590 test -f "$ac_f" ||
17591 case $ac_f in
17592 [\\/$]*) false;;
17593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17594 esac ||
17595 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17596 esac
17597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17598 as_fn_append ac_file_inputs " '$ac_f'"
17599 done
17600
17601 # Let's still pretend it is `configure' which instantiates (i.e., don't
17602 # use $as_me), people would be surprised to read:
17603 # /* config.h. Generated by config.status. */
17604 configure_input='Generated from '`
17605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17606 `' by configure.'
17607 if test x"$ac_file" != x-; then
17608 configure_input="$ac_file. $configure_input"
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17610 $as_echo "$as_me: creating $ac_file" >&6;}
17611 fi
17612 # Neutralize special characters interpreted by sed in replacement strings.
17613 case $configure_input in #(
17614 *\&* | *\|* | *\\* )
17615 ac_sed_conf_input=`$as_echo "$configure_input" |
17616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17617 *) ac_sed_conf_input=$configure_input;;
17618 esac
17619
17620 case $ac_tag in
17621 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17623 esac
17624 ;;
17625 esac
17626
17627 ac_dir=`$as_dirname -- "$ac_file" ||
17628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17629 X"$ac_file" : 'X\(//\)[^/]' \| \
17630 X"$ac_file" : 'X\(//\)$' \| \
17631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17632 $as_echo X"$ac_file" |
17633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17634 s//\1/
17635 q
17636 }
17637 /^X\(\/\/\)[^/].*/{
17638 s//\1/
17639 q
17640 }
17641 /^X\(\/\/\)$/{
17642 s//\1/
17643 q
17644 }
17645 /^X\(\/\).*/{
17646 s//\1/
17647 q
17648 }
17649 s/.*/./; q'`
17650 as_dir="$ac_dir"; as_fn_mkdir_p
17651 ac_builddir=.
17652
17653 case "$ac_dir" in
17654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17655 *)
17656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17657 # A ".." for each directory in $ac_dir_suffix.
17658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17659 case $ac_top_builddir_sub in
17660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17662 esac ;;
17663 esac
17664 ac_abs_top_builddir=$ac_pwd
17665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17666 # for backward compatibility:
17667 ac_top_builddir=$ac_top_build_prefix
17668
17669 case $srcdir in
17670 .) # We are building in place.
17671 ac_srcdir=.
17672 ac_top_srcdir=$ac_top_builddir_sub
17673 ac_abs_top_srcdir=$ac_pwd ;;
17674 [\\/]* | ?:[\\/]* ) # Absolute name.
17675 ac_srcdir=$srcdir$ac_dir_suffix;
17676 ac_top_srcdir=$srcdir
17677 ac_abs_top_srcdir=$srcdir ;;
17678 *) # Relative name.
17679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17680 ac_top_srcdir=$ac_top_build_prefix$srcdir
17681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17682 esac
17683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17684
17685
17686 case $ac_mode in
17687 :F)
17688 #
17689 # CONFIG_FILE
17690 #
17691
17692 case $INSTALL in
17693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17695 esac
17696 _ACEOF
17697
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699 # If the template does not know about datarootdir, expand it.
17700 # FIXME: This hack should be removed a few years after 2.60.
17701 ac_datarootdir_hack=; ac_datarootdir_seen=
17702 ac_sed_dataroot='
17703 /datarootdir/ {
17704 p
17705 q
17706 }
17707 /@datadir@/p
17708 /@docdir@/p
17709 /@infodir@/p
17710 /@localedir@/p
17711 /@mandir@/p'
17712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17713 *datarootdir*) ac_datarootdir_seen=yes;;
17714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17717 _ACEOF
17718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 ac_datarootdir_hack='
17720 s&@datadir@&$datadir&g
17721 s&@docdir@&$docdir&g
17722 s&@infodir@&$infodir&g
17723 s&@localedir@&$localedir&g
17724 s&@mandir@&$mandir&g
17725 s&\\\${datarootdir}&$datarootdir&g' ;;
17726 esac
17727 _ACEOF
17728
17729 # Neutralize VPATH when `$srcdir' = `.'.
17730 # Shell code in configure.ac might set extrasub.
17731 # FIXME: do we really want to maintain this feature?
17732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17733 ac_sed_extra="$ac_vpsub
17734 $extrasub
17735 _ACEOF
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737 :t
17738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17739 s|@configure_input@|$ac_sed_conf_input|;t t
17740 s&@top_builddir@&$ac_top_builddir_sub&;t t
17741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17742 s&@srcdir@&$ac_srcdir&;t t
17743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17744 s&@top_srcdir@&$ac_top_srcdir&;t t
17745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17746 s&@builddir@&$ac_builddir&;t t
17747 s&@abs_builddir@&$ac_abs_builddir&;t t
17748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17749 s&@INSTALL@&$ac_INSTALL&;t t
17750 $ac_datarootdir_hack
17751 "
17752 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17753 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17754
17755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17756 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17758 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17760 which seems to be undefined. Please make sure it is defined" >&5
17761 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17762 which seems to be undefined. Please make sure it is defined" >&2;}
17763
17764 rm -f "$ac_tmp/stdin"
17765 case $ac_file in
17766 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17767 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17768 esac \
17769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17770 ;;
17771
17772
17773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17774 $as_echo "$as_me: executing $ac_file commands" >&6;}
17775 ;;
17776 esac
17777
17778
17779 case $ac_file$ac_mode in
17780 "libtool":C)
17781
17782 # See if we are running on zsh, and set the options which allow our
17783 # commands through without removal of \ escapes.
17784 if test -n "${ZSH_VERSION+set}" ; then
17785 setopt NO_GLOB_SUBST
17786 fi
17787
17788 cfgfile="${ofile}T"
17789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17790 $RM "$cfgfile"
17791
17792 cat <<_LT_EOF >> "$cfgfile"
17793 #! $SHELL
17794
17795 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17796 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17798 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17799 #
17800 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17801 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17802 # Foundation, Inc.
17803 # Written by Gordon Matzigkeit, 1996
17804 #
17805 # This file is part of GNU Libtool.
17806 #
17807 # GNU Libtool is free software; you can redistribute it and/or
17808 # modify it under the terms of the GNU General Public License as
17809 # published by the Free Software Foundation; either version 2 of
17810 # the License, or (at your option) any later version.
17811 #
17812 # As a special exception to the GNU General Public License,
17813 # if you distribute this file as part of a program or library that
17814 # is built using GNU Libtool, you may include this file under the
17815 # same distribution terms that you use for the rest of that program.
17816 #
17817 # GNU Libtool is distributed in the hope that it will be useful,
17818 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17820 # GNU General Public License for more details.
17821 #
17822 # You should have received a copy of the GNU General Public License
17823 # along with GNU Libtool; see the file COPYING. If not, a copy
17824 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17825 # obtained by writing to the Free Software Foundation, Inc.,
17826 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17827
17828
17829 # The names of the tagged configurations supported by this script.
17830 available_tags="CXX "
17831
17832 # ### BEGIN LIBTOOL CONFIG
17833
17834 # Assembler program.
17835 AS=$lt_AS
17836
17837 # DLL creation program.
17838 DLLTOOL=$lt_DLLTOOL
17839
17840 # Object dumper program.
17841 OBJDUMP=$lt_OBJDUMP
17842
17843 # Which release of libtool.m4 was used?
17844 macro_version=$macro_version
17845 macro_revision=$macro_revision
17846
17847 # Whether or not to build shared libraries.
17848 build_libtool_libs=$enable_shared
17849
17850 # Whether or not to build static libraries.
17851 build_old_libs=$enable_static
17852
17853 # What type of objects to build.
17854 pic_mode=$pic_mode
17855
17856 # Whether or not to optimize for fast installation.
17857 fast_install=$enable_fast_install
17858
17859 # Shell to use when invoking shell scripts.
17860 SHELL=$lt_SHELL
17861
17862 # An echo program that protects backslashes.
17863 ECHO=$lt_ECHO
17864
17865 # The PATH separator for the build system.
17866 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17867
17868 # The host system.
17869 host_alias=$host_alias
17870 host=$host
17871 host_os=$host_os
17872
17873 # The build system.
17874 build_alias=$build_alias
17875 build=$build
17876 build_os=$build_os
17877
17878 # A sed program that does not truncate output.
17879 SED=$lt_SED
17880
17881 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17882 Xsed="\$SED -e 1s/^X//"
17883
17884 # A grep program that handles long lines.
17885 GREP=$lt_GREP
17886
17887 # An ERE matcher.
17888 EGREP=$lt_EGREP
17889
17890 # A literal string matcher.
17891 FGREP=$lt_FGREP
17892
17893 # A BSD- or MS-compatible name lister.
17894 NM=$lt_NM
17895
17896 # Whether we need soft or hard links.
17897 LN_S=$lt_LN_S
17898
17899 # What is the maximum length of a command?
17900 max_cmd_len=$max_cmd_len
17901
17902 # Object file suffix (normally "o").
17903 objext=$ac_objext
17904
17905 # Executable file suffix (normally "").
17906 exeext=$exeext
17907
17908 # whether the shell understands "unset".
17909 lt_unset=$lt_unset
17910
17911 # turn spaces into newlines.
17912 SP2NL=$lt_lt_SP2NL
17913
17914 # turn newlines into spaces.
17915 NL2SP=$lt_lt_NL2SP
17916
17917 # convert \$build file names to \$host format.
17918 to_host_file_cmd=$lt_cv_to_host_file_cmd
17919
17920 # convert \$build files to toolchain format.
17921 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17922
17923 # Method to check whether dependent libraries are shared objects.
17924 deplibs_check_method=$lt_deplibs_check_method
17925
17926 # Command to use when deplibs_check_method = "file_magic".
17927 file_magic_cmd=$lt_file_magic_cmd
17928
17929 # How to find potential files when deplibs_check_method = "file_magic".
17930 file_magic_glob=$lt_file_magic_glob
17931
17932 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17933 want_nocaseglob=$lt_want_nocaseglob
17934
17935 # Command to associate shared and link libraries.
17936 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17937
17938 # The archiver.
17939 AR=$lt_AR
17940
17941 # Flags to create an archive.
17942 AR_FLAGS=$lt_AR_FLAGS
17943
17944 # How to feed a file listing to the archiver.
17945 archiver_list_spec=$lt_archiver_list_spec
17946
17947 # A symbol stripping program.
17948 STRIP=$lt_STRIP
17949
17950 # Commands used to install an old-style archive.
17951 RANLIB=$lt_RANLIB
17952 old_postinstall_cmds=$lt_old_postinstall_cmds
17953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17954
17955 # Whether to use a lock for old archive extraction.
17956 lock_old_archive_extraction=$lock_old_archive_extraction
17957
17958 # A C compiler.
17959 LTCC=$lt_CC
17960
17961 # LTCC compiler flags.
17962 LTCFLAGS=$lt_CFLAGS
17963
17964 # Take the output of nm and produce a listing of raw symbols and C names.
17965 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17966
17967 # Transform the output of nm in a proper C declaration.
17968 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17969
17970 # Transform the output of nm in a C name address pair.
17971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17972
17973 # Transform the output of nm in a C name address pair when lib prefix is needed.
17974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17975
17976 # Specify filename containing input files for \$NM.
17977 nm_file_list_spec=$lt_nm_file_list_spec
17978
17979 # The root where to search for dependent libraries,and in which our libraries should be installed.
17980 lt_sysroot=$lt_sysroot
17981
17982 # The name of the directory that contains temporary libtool files.
17983 objdir=$objdir
17984
17985 # Used to examine libraries when file_magic_cmd begins with "file".
17986 MAGIC_CMD=$MAGIC_CMD
17987
17988 # Must we lock files when doing compilation?
17989 need_locks=$lt_need_locks
17990
17991 # Manifest tool.
17992 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17993
17994 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17995 DSYMUTIL=$lt_DSYMUTIL
17996
17997 # Tool to change global to local symbols on Mac OS X.
17998 NMEDIT=$lt_NMEDIT
17999
18000 # Tool to manipulate fat objects and archives on Mac OS X.
18001 LIPO=$lt_LIPO
18002
18003 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18004 OTOOL=$lt_OTOOL
18005
18006 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18007 OTOOL64=$lt_OTOOL64
18008
18009 # Old archive suffix (normally "a").
18010 libext=$libext
18011
18012 # Shared library suffix (normally ".so").
18013 shrext_cmds=$lt_shrext_cmds
18014
18015 # The commands to extract the exported symbol list from a shared archive.
18016 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18017
18018 # Variables whose values should be saved in libtool wrapper scripts and
18019 # restored at link time.
18020 variables_saved_for_relink=$lt_variables_saved_for_relink
18021
18022 # Do we need the "lib" prefix for modules?
18023 need_lib_prefix=$need_lib_prefix
18024
18025 # Do we need a version for libraries?
18026 need_version=$need_version
18027
18028 # Library versioning type.
18029 version_type=$version_type
18030
18031 # Shared library runtime path variable.
18032 runpath_var=$runpath_var
18033
18034 # Shared library path variable.
18035 shlibpath_var=$shlibpath_var
18036
18037 # Is shlibpath searched before the hard-coded library search path?
18038 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18039
18040 # Format of library name prefix.
18041 libname_spec=$lt_libname_spec
18042
18043 # List of archive names. First name is the real one, the rest are links.
18044 # The last name is the one that the linker finds with -lNAME
18045 library_names_spec=$lt_library_names_spec
18046
18047 # The coded name of the library, if different from the real name.
18048 soname_spec=$lt_soname_spec
18049
18050 # Permission mode override for installation of shared libraries.
18051 install_override_mode=$lt_install_override_mode
18052
18053 # Command to use after installation of a shared archive.
18054 postinstall_cmds=$lt_postinstall_cmds
18055
18056 # Command to use after uninstallation of a shared archive.
18057 postuninstall_cmds=$lt_postuninstall_cmds
18058
18059 # Commands used to finish a libtool library installation in a directory.
18060 finish_cmds=$lt_finish_cmds
18061
18062 # As "finish_cmds", except a single script fragment to be evaled but
18063 # not shown.
18064 finish_eval=$lt_finish_eval
18065
18066 # Whether we should hardcode library paths into libraries.
18067 hardcode_into_libs=$hardcode_into_libs
18068
18069 # Compile-time system search path for libraries.
18070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18071
18072 # Run-time system search path for libraries.
18073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18074
18075 # Whether dlopen is supported.
18076 dlopen_support=$enable_dlopen
18077
18078 # Whether dlopen of programs is supported.
18079 dlopen_self=$enable_dlopen_self
18080
18081 # Whether dlopen of statically linked programs is supported.
18082 dlopen_self_static=$enable_dlopen_self_static
18083
18084 # Commands to strip libraries.
18085 old_striplib=$lt_old_striplib
18086 striplib=$lt_striplib
18087
18088
18089 # The linker used to build libraries.
18090 LD=$lt_LD
18091
18092 # How to create reloadable object files.
18093 reload_flag=$lt_reload_flag
18094 reload_cmds=$lt_reload_cmds
18095
18096 # Commands used to build an old-style archive.
18097 old_archive_cmds=$lt_old_archive_cmds
18098
18099 # A language specific compiler.
18100 CC=$lt_compiler
18101
18102 # Is the compiler the GNU compiler?
18103 with_gcc=$GCC
18104
18105 # Compiler flag to turn off builtin functions.
18106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18107
18108 # Additional compiler flags for building library objects.
18109 pic_flag=$lt_lt_prog_compiler_pic
18110
18111 # How to pass a linker flag through the compiler.
18112 wl=$lt_lt_prog_compiler_wl
18113
18114 # Compiler flag to prevent dynamic linking.
18115 link_static_flag=$lt_lt_prog_compiler_static
18116
18117 # Does compiler simultaneously support -c and -o options?
18118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18119
18120 # Whether or not to add -lc for building shared libraries.
18121 build_libtool_need_lc=$archive_cmds_need_lc
18122
18123 # Whether or not to disallow shared libs when runtime libs are static.
18124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18125
18126 # Compiler flag to allow reflexive dlopens.
18127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18128
18129 # Compiler flag to generate shared objects directly from archives.
18130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18131
18132 # Whether the compiler copes with passing no objects directly.
18133 compiler_needs_object=$lt_compiler_needs_object
18134
18135 # Create an old-style archive from a shared archive.
18136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18137
18138 # Create a temporary old-style archive to link instead of a shared archive.
18139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18140
18141 # Commands used to build a shared archive.
18142 archive_cmds=$lt_archive_cmds
18143 archive_expsym_cmds=$lt_archive_expsym_cmds
18144
18145 # Commands used to build a loadable module if different from building
18146 # a shared archive.
18147 module_cmds=$lt_module_cmds
18148 module_expsym_cmds=$lt_module_expsym_cmds
18149
18150 # Whether we are building with GNU ld or not.
18151 with_gnu_ld=$lt_with_gnu_ld
18152
18153 # Flag that allows shared libraries with undefined symbols to be built.
18154 allow_undefined_flag=$lt_allow_undefined_flag
18155
18156 # Flag that enforces no undefined symbols.
18157 no_undefined_flag=$lt_no_undefined_flag
18158
18159 # Flag to hardcode \$libdir into a binary during linking.
18160 # This must work even if \$libdir does not exist
18161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18162
18163 # Whether we need a single "-rpath" flag with a separated argument.
18164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18165
18166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18167 # DIR into the resulting binary.
18168 hardcode_direct=$hardcode_direct
18169
18170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18171 # DIR into the resulting binary and the resulting library dependency is
18172 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18173 # library is relocated.
18174 hardcode_direct_absolute=$hardcode_direct_absolute
18175
18176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18177 # into the resulting binary.
18178 hardcode_minus_L=$hardcode_minus_L
18179
18180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18181 # into the resulting binary.
18182 hardcode_shlibpath_var=$hardcode_shlibpath_var
18183
18184 # Set to "yes" if building a shared library automatically hardcodes DIR
18185 # into the library and all subsequent libraries and executables linked
18186 # against it.
18187 hardcode_automatic=$hardcode_automatic
18188
18189 # Set to yes if linker adds runtime paths of dependent libraries
18190 # to runtime path list.
18191 inherit_rpath=$inherit_rpath
18192
18193 # Whether libtool must link a program against all its dependency libraries.
18194 link_all_deplibs=$link_all_deplibs
18195
18196 # Set to "yes" if exported symbols are required.
18197 always_export_symbols=$always_export_symbols
18198
18199 # The commands to list exported symbols.
18200 export_symbols_cmds=$lt_export_symbols_cmds
18201
18202 # Symbols that should not be listed in the preloaded symbols.
18203 exclude_expsyms=$lt_exclude_expsyms
18204
18205 # Symbols that must always be exported.
18206 include_expsyms=$lt_include_expsyms
18207
18208 # Commands necessary for linking programs (against libraries) with templates.
18209 prelink_cmds=$lt_prelink_cmds
18210
18211 # Commands necessary for finishing linking programs.
18212 postlink_cmds=$lt_postlink_cmds
18213
18214 # Specify filename containing input files.
18215 file_list_spec=$lt_file_list_spec
18216
18217 # How to hardcode a shared library path into an executable.
18218 hardcode_action=$hardcode_action
18219
18220 # The directories searched by this compiler when creating a shared library.
18221 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18222
18223 # Dependencies to place before and after the objects being linked to
18224 # create a shared library.
18225 predep_objects=$lt_predep_objects
18226 postdep_objects=$lt_postdep_objects
18227 predeps=$lt_predeps
18228 postdeps=$lt_postdeps
18229
18230 # The library search path used internally by the compiler when linking
18231 # a shared library.
18232 compiler_lib_search_path=$lt_compiler_lib_search_path
18233
18234 # ### END LIBTOOL CONFIG
18235
18236 _LT_EOF
18237
18238 case $host_os in
18239 aix3*)
18240 cat <<\_LT_EOF >> "$cfgfile"
18241 # AIX sometimes has problems with the GCC collect2 program. For some
18242 # reason, if we set the COLLECT_NAMES environment variable, the problems
18243 # vanish in a puff of smoke.
18244 if test "X${COLLECT_NAMES+set}" != Xset; then
18245 COLLECT_NAMES=
18246 export COLLECT_NAMES
18247 fi
18248 _LT_EOF
18249 ;;
18250 esac
18251
18252
18253 ltmain="$ac_aux_dir/ltmain.sh"
18254
18255
18256 # We use sed instead of cat because bash on DJGPP gets confused if
18257 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18258 # text mode, it properly converts lines to CR/LF. This bash problem
18259 # is reportedly fixed, but why not run on old versions too?
18260 sed '$q' "$ltmain" >> "$cfgfile" \
18261 || (rm -f "$cfgfile"; exit 1)
18262
18263 if test x"$xsi_shell" = xyes; then
18264 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18265 func_dirname ()\
18266 {\
18267 \ case ${1} in\
18268 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18269 \ * ) func_dirname_result="${3}" ;;\
18270 \ esac\
18271 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18272 && mv -f "$cfgfile.tmp" "$cfgfile" \
18273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18274 test 0 -eq $? || _lt_function_replace_fail=:
18275
18276
18277 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18278 func_basename ()\
18279 {\
18280 \ func_basename_result="${1##*/}"\
18281 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18282 && mv -f "$cfgfile.tmp" "$cfgfile" \
18283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18284 test 0 -eq $? || _lt_function_replace_fail=:
18285
18286
18287 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18288 func_dirname_and_basename ()\
18289 {\
18290 \ case ${1} in\
18291 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18292 \ * ) func_dirname_result="${3}" ;;\
18293 \ esac\
18294 \ func_basename_result="${1##*/}"\
18295 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18296 && mv -f "$cfgfile.tmp" "$cfgfile" \
18297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18298 test 0 -eq $? || _lt_function_replace_fail=:
18299
18300
18301 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18302 func_stripname ()\
18303 {\
18304 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18305 \ # positional parameters, so assign one to ordinary parameter first.\
18306 \ func_stripname_result=${3}\
18307 \ func_stripname_result=${func_stripname_result#"${1}"}\
18308 \ func_stripname_result=${func_stripname_result%"${2}"}\
18309 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18310 && mv -f "$cfgfile.tmp" "$cfgfile" \
18311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18312 test 0 -eq $? || _lt_function_replace_fail=:
18313
18314
18315 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18316 func_split_long_opt ()\
18317 {\
18318 \ func_split_long_opt_name=${1%%=*}\
18319 \ func_split_long_opt_arg=${1#*=}\
18320 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18321 && mv -f "$cfgfile.tmp" "$cfgfile" \
18322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18323 test 0 -eq $? || _lt_function_replace_fail=:
18324
18325
18326 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18327 func_split_short_opt ()\
18328 {\
18329 \ func_split_short_opt_arg=${1#??}\
18330 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18331 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18332 && mv -f "$cfgfile.tmp" "$cfgfile" \
18333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18334 test 0 -eq $? || _lt_function_replace_fail=:
18335
18336
18337 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18338 func_lo2o ()\
18339 {\
18340 \ case ${1} in\
18341 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18342 \ *) func_lo2o_result=${1} ;;\
18343 \ esac\
18344 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18345 && mv -f "$cfgfile.tmp" "$cfgfile" \
18346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18347 test 0 -eq $? || _lt_function_replace_fail=:
18348
18349
18350 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18351 func_xform ()\
18352 {\
18353 func_xform_result=${1%.*}.lo\
18354 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18355 && mv -f "$cfgfile.tmp" "$cfgfile" \
18356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18357 test 0 -eq $? || _lt_function_replace_fail=:
18358
18359
18360 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18361 func_arith ()\
18362 {\
18363 func_arith_result=$(( $* ))\
18364 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18365 && mv -f "$cfgfile.tmp" "$cfgfile" \
18366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18367 test 0 -eq $? || _lt_function_replace_fail=:
18368
18369
18370 sed -e '/^func_len ()$/,/^} # func_len /c\
18371 func_len ()\
18372 {\
18373 func_len_result=${#1}\
18374 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18375 && mv -f "$cfgfile.tmp" "$cfgfile" \
18376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18377 test 0 -eq $? || _lt_function_replace_fail=:
18378
18379 fi
18380
18381 if test x"$lt_shell_append" = xyes; then
18382 sed -e '/^func_append ()$/,/^} # func_append /c\
18383 func_append ()\
18384 {\
18385 eval "${1}+=\\${2}"\
18386 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18387 && mv -f "$cfgfile.tmp" "$cfgfile" \
18388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18389 test 0 -eq $? || _lt_function_replace_fail=:
18390
18391
18392 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18393 func_append_quoted ()\
18394 {\
18395 \ func_quote_for_eval "${2}"\
18396 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18397 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18398 && mv -f "$cfgfile.tmp" "$cfgfile" \
18399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18400 test 0 -eq $? || _lt_function_replace_fail=:
18401
18402
18403 # Save a `func_append' function call where possible by direct use of '+='
18404 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18405 && mv -f "$cfgfile.tmp" "$cfgfile" \
18406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18407 test 0 -eq $? || _lt_function_replace_fail=:
18408 else
18409 # Save a `func_append' function call even when '+=' is not available
18410 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18411 && mv -f "$cfgfile.tmp" "$cfgfile" \
18412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18413 test 0 -eq $? || _lt_function_replace_fail=:
18414 fi
18415
18416 if test x"$_lt_function_replace_fail" = x":"; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18418 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18419 fi
18420
18421
18422 mv -f "$cfgfile" "$ofile" ||
18423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18424 chmod +x "$ofile"
18425
18426
18427 cat <<_LT_EOF >> "$ofile"
18428
18429 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18430
18431 # The linker used to build libraries.
18432 LD=$lt_LD_CXX
18433
18434 # How to create reloadable object files.
18435 reload_flag=$lt_reload_flag_CXX
18436 reload_cmds=$lt_reload_cmds_CXX
18437
18438 # Commands used to build an old-style archive.
18439 old_archive_cmds=$lt_old_archive_cmds_CXX
18440
18441 # A language specific compiler.
18442 CC=$lt_compiler_CXX
18443
18444 # Is the compiler the GNU compiler?
18445 with_gcc=$GCC_CXX
18446
18447 # Compiler flag to turn off builtin functions.
18448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18449
18450 # Additional compiler flags for building library objects.
18451 pic_flag=$lt_lt_prog_compiler_pic_CXX
18452
18453 # How to pass a linker flag through the compiler.
18454 wl=$lt_lt_prog_compiler_wl_CXX
18455
18456 # Compiler flag to prevent dynamic linking.
18457 link_static_flag=$lt_lt_prog_compiler_static_CXX
18458
18459 # Does compiler simultaneously support -c and -o options?
18460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18461
18462 # Whether or not to add -lc for building shared libraries.
18463 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18464
18465 # Whether or not to disallow shared libs when runtime libs are static.
18466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18467
18468 # Compiler flag to allow reflexive dlopens.
18469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18470
18471 # Compiler flag to generate shared objects directly from archives.
18472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18473
18474 # Whether the compiler copes with passing no objects directly.
18475 compiler_needs_object=$lt_compiler_needs_object_CXX
18476
18477 # Create an old-style archive from a shared archive.
18478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18479
18480 # Create a temporary old-style archive to link instead of a shared archive.
18481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18482
18483 # Commands used to build a shared archive.
18484 archive_cmds=$lt_archive_cmds_CXX
18485 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18486
18487 # Commands used to build a loadable module if different from building
18488 # a shared archive.
18489 module_cmds=$lt_module_cmds_CXX
18490 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18491
18492 # Whether we are building with GNU ld or not.
18493 with_gnu_ld=$lt_with_gnu_ld_CXX
18494
18495 # Flag that allows shared libraries with undefined symbols to be built.
18496 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18497
18498 # Flag that enforces no undefined symbols.
18499 no_undefined_flag=$lt_no_undefined_flag_CXX
18500
18501 # Flag to hardcode \$libdir into a binary during linking.
18502 # This must work even if \$libdir does not exist
18503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18504
18505 # Whether we need a single "-rpath" flag with a separated argument.
18506 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18507
18508 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18509 # DIR into the resulting binary.
18510 hardcode_direct=$hardcode_direct_CXX
18511
18512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18513 # DIR into the resulting binary and the resulting library dependency is
18514 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18515 # library is relocated.
18516 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18517
18518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18519 # into the resulting binary.
18520 hardcode_minus_L=$hardcode_minus_L_CXX
18521
18522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18523 # into the resulting binary.
18524 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18525
18526 # Set to "yes" if building a shared library automatically hardcodes DIR
18527 # into the library and all subsequent libraries and executables linked
18528 # against it.
18529 hardcode_automatic=$hardcode_automatic_CXX
18530
18531 # Set to yes if linker adds runtime paths of dependent libraries
18532 # to runtime path list.
18533 inherit_rpath=$inherit_rpath_CXX
18534
18535 # Whether libtool must link a program against all its dependency libraries.
18536 link_all_deplibs=$link_all_deplibs_CXX
18537
18538 # Set to "yes" if exported symbols are required.
18539 always_export_symbols=$always_export_symbols_CXX
18540
18541 # The commands to list exported symbols.
18542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18543
18544 # Symbols that should not be listed in the preloaded symbols.
18545 exclude_expsyms=$lt_exclude_expsyms_CXX
18546
18547 # Symbols that must always be exported.
18548 include_expsyms=$lt_include_expsyms_CXX
18549
18550 # Commands necessary for linking programs (against libraries) with templates.
18551 prelink_cmds=$lt_prelink_cmds_CXX
18552
18553 # Commands necessary for finishing linking programs.
18554 postlink_cmds=$lt_postlink_cmds_CXX
18555
18556 # Specify filename containing input files.
18557 file_list_spec=$lt_file_list_spec_CXX
18558
18559 # How to hardcode a shared library path into an executable.
18560 hardcode_action=$hardcode_action_CXX
18561
18562 # The directories searched by this compiler when creating a shared library.
18563 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18564
18565 # Dependencies to place before and after the objects being linked to
18566 # create a shared library.
18567 predep_objects=$lt_predep_objects_CXX
18568 postdep_objects=$lt_postdep_objects_CXX
18569 predeps=$lt_predeps_CXX
18570 postdeps=$lt_postdeps_CXX
18571
18572 # The library search path used internally by the compiler when linking
18573 # a shared library.
18574 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18575
18576 # ### END LIBTOOL TAG CONFIG: CXX
18577 _LT_EOF
18578
18579 ;;
18580
18581 esac
18582 done # for ac_tag
18583
18584
18585 as_fn_exit 0
18586 _ACEOF
18587 ac_clean_files=$ac_clean_files_save
18588
18589 test $ac_write_fail = 0 ||
18590 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18591
18592
18593 # configure is writing to config.log, and then calls config.status.
18594 # config.status does its own redirection, appending to config.log.
18595 # Unfortunately, on DOS this fails, as config.log is still kept open
18596 # by configure, so config.status won't be able to write to it; its
18597 # output is simply discarded. So we exec the FD to /dev/null,
18598 # effectively closing config.log, so it can be properly (re)opened and
18599 # appended to by config.status. When coming back to configure, we
18600 # need to make the FD available again.
18601 if test "$no_create" != yes; then
18602 ac_cs_success=:
18603 ac_config_status_args=
18604 test "$silent" = yes &&
18605 ac_config_status_args="$ac_config_status_args --quiet"
18606 exec 5>/dev/null
18607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18608 exec 5>>config.log
18609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18610 # would make configure fail if this is the last instruction.
18611 $ac_cs_success || as_fn_exit 1
18612 fi
18613
18614 #
18615 # CONFIG_SUBDIRS section.
18616 #
18617 if test "$no_recursion" != yes; then
18618
18619 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18620 # so they do not pile up.
18621 ac_sub_configure_args=
18622 ac_prev=
18623 eval "set x $ac_configure_args"
18624 shift
18625 for ac_arg
18626 do
18627 if test -n "$ac_prev"; then
18628 ac_prev=
18629 continue
18630 fi
18631 case $ac_arg in
18632 -cache-file | --cache-file | --cache-fil | --cache-fi \
18633 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18634 ac_prev=cache_file ;;
18635 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18636 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18637 | --c=*)
18638 ;;
18639 --config-cache | -C)
18640 ;;
18641 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18642 ac_prev=srcdir ;;
18643 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18644 ;;
18645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18646 ac_prev=prefix ;;
18647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18648 ;;
18649 --disable-option-checking)
18650 ;;
18651 *)
18652 case $ac_arg in
18653 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18654 esac
18655 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18656 esac
18657 done
18658
18659 # Always prepend --prefix to ensure using the same prefix
18660 # in subdir configurations.
18661 ac_arg="--prefix=$prefix"
18662 case $ac_arg in
18663 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18664 esac
18665 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18666
18667 # Pass --silent
18668 if test "$silent" = yes; then
18669 ac_sub_configure_args="--silent $ac_sub_configure_args"
18670 fi
18671
18672 # Always prepend --disable-option-checking to silence warnings, since
18673 # different subdirs can have different --enable and --with options.
18674 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18675
18676 ac_popdir=`pwd`
18677 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18678
18679 # Do not complain, so a configure script can configure whichever
18680 # parts of a large source tree are present.
18681 test -d "$srcdir/$ac_dir" || continue
18682
18683 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18684 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18685 $as_echo "$ac_msg" >&6
18686 as_dir="$ac_dir"; as_fn_mkdir_p
18687 ac_builddir=.
18688
18689 case "$ac_dir" in
18690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18691 *)
18692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18693 # A ".." for each directory in $ac_dir_suffix.
18694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18695 case $ac_top_builddir_sub in
18696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18698 esac ;;
18699 esac
18700 ac_abs_top_builddir=$ac_pwd
18701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18702 # for backward compatibility:
18703 ac_top_builddir=$ac_top_build_prefix
18704
18705 case $srcdir in
18706 .) # We are building in place.
18707 ac_srcdir=.
18708 ac_top_srcdir=$ac_top_builddir_sub
18709 ac_abs_top_srcdir=$ac_pwd ;;
18710 [\\/]* | ?:[\\/]* ) # Absolute name.
18711 ac_srcdir=$srcdir$ac_dir_suffix;
18712 ac_top_srcdir=$srcdir
18713 ac_abs_top_srcdir=$srcdir ;;
18714 *) # Relative name.
18715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18716 ac_top_srcdir=$ac_top_build_prefix$srcdir
18717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18718 esac
18719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18720
18721
18722 cd "$ac_dir"
18723
18724 # Check for guested configure; otherwise get Cygnus style configure.
18725 if test -f "$ac_srcdir/configure.gnu"; then
18726 ac_sub_configure=$ac_srcdir/configure.gnu
18727 elif test -f "$ac_srcdir/configure"; then
18728 ac_sub_configure=$ac_srcdir/configure
18729 elif test -f "$ac_srcdir/configure.in"; then
18730 # This should be Cygnus configure.
18731 ac_sub_configure=$ac_aux_dir/configure
18732 else
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18735 ac_sub_configure=
18736 fi
18737
18738 # The recursion is here.
18739 if test -n "$ac_sub_configure"; then
18740 # Make the cache file name correct relative to the subdirectory.
18741 case $cache_file in
18742 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18743 *) # Relative name.
18744 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18745 esac
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18748 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18749 # The eval makes quoting arguments work.
18750 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18751 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18752 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18753 fi
18754
18755 cd "$ac_popdir"
18756 done
18757 fi
18758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18761 fi
18762
18763
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18765 Configuration summary:
18766
18767 Target ...................... $target
18768 C++ bindings ................ $enable_cxx
18769 Debug output ................ $debug_output" >&5
18770 $as_echo "
18771 Configuration summary:
18772
18773 Target ...................... $target
18774 C++ bindings ................ $enable_cxx
18775 Debug output ................ $debug_output" >&6; }
18776
18777 case "$target_os" in *linux*)
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18779 ALSA ........................ $have_alsa
18780 ASIHPI ...................... $have_asihpi" >&5
18781 $as_echo "
18782 ALSA ........................ $have_alsa
18783 ASIHPI ...................... $have_asihpi" >&6; }
18784 ;;
18785 esac
18786 case "$target_os" in
18787 *mingw* | *cygwin*)
18788 test "x$with_directx" = "xyes" && with_directx="$with_directx (${with_dxdir})"
18789 test "x$with_wdmks" = "xyes" && with_wdmks="$with_wdmks (${with_dxdir})"
18790 test "x$with_asio" = "xyes" && with_asio="$with_asio (${with_asiodir})"
18791 test "x$with_wasapi" = "xyes"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18793 WMME ........................ $with_wmme
18794 DSound ...................... $with_directx
18795 ASIO ........................ $with_asio
18796 WASAPI ...................... $with_wasapi
18797 WDMKS ....................... $with_wdmks
18798 " >&5
18799 $as_echo "
18800 WMME ........................ $with_wmme
18801 DSound ...................... $with_directx
18802 ASIO ........................ $with_asio
18803 WASAPI ...................... $with_wasapi
18804 WDMKS ....................... $with_wdmks
18805 " >&6; }
18806 ;;
18807 *darwin*)
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18809 Mac debug flags ............. $enable_mac_debug
18810 " >&5
18811 $as_echo "
18812 Mac debug flags ............. $enable_mac_debug
18813 " >&6; }
18814 ;;
18815 *)
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18817 OSS ......................... $have_oss
18818 JACK ........................ $have_jack
18819 " >&5
18820 $as_echo "
18821 OSS ......................... $have_oss
18822 JACK ........................ $have_jack
18823 " >&6; }
18824 ;;
18825 esac