Debian Codegraph @

cpython27/Modules/_ctypes/libffi/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.1.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.1'
594 PACKAGE_STRING='libffi 3.1'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 toolexeclibdir
639 toolexecdir
640 FFI_DEBUG_FALSE
641 FFI_DEBUG_TRUE
642 TARGETDIR
643 TARGET
644 FFI_EXEC_TRAMPOLINE_TABLE
645 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647 sys_symbol_underscore
648 HAVE_LONG_DOUBLE_VARIANT
649 HAVE_LONG_DOUBLE
650 ALLOCA
651 XTENSA_FALSE
652 XTENSA_TRUE
653 VAX_FALSE
654 VAX_TRUE
655 TILE_FALSE
656 TILE_TRUE
657 PA64_HPUX_FALSE
658 PA64_HPUX_TRUE
659 PA_HPUX_FALSE
660 PA_HPUX_TRUE
661 PA_LINUX_FALSE
662 PA_LINUX_TRUE
663 SH64_FALSE
664 SH64_TRUE
665 SH_FALSE
666 SH_TRUE
667 X86_64_FALSE
668 X86_64_TRUE
669 S390_FALSE
670 S390_TRUE
671 FRV_FALSE
672 FRV_TRUE
673 LIBFFI_CRIS_FALSE
674 LIBFFI_CRIS_TRUE
675 AVR32_FALSE
676 AVR32_TRUE
677 ARM_FALSE
678 ARM_TRUE
679 ARC_FALSE
680 ARC_TRUE
681 AARCH64_FALSE
682 AARCH64_TRUE
683 POWERPC_FREEBSD_FALSE
684 POWERPC_FREEBSD_TRUE
685 POWERPC_DARWIN_FALSE
686 POWERPC_DARWIN_TRUE
687 POWERPC_AIX_FALSE
688 POWERPC_AIX_TRUE
689 POWERPC_FALSE
690 POWERPC_TRUE
691 NIOS2_FALSE
692 NIOS2_TRUE
693 MOXIE_FALSE
694 MOXIE_TRUE
695 METAG_FALSE
696 METAG_TRUE
697 MICROBLAZE_FALSE
698 MICROBLAZE_TRUE
699 M88K_FALSE
700 M88K_TRUE
701 M68K_FALSE
702 M68K_TRUE
703 M32R_FALSE
704 M32R_TRUE
705 IA64_FALSE
706 IA64_TRUE
707 ALPHA_FALSE
708 ALPHA_TRUE
709 X86_DARWIN64_FALSE
710 X86_DARWIN64_TRUE
711 X86_DARWIN32_FALSE
712 X86_DARWIN32_TRUE
713 X86_DARWIN_FALSE
714 X86_DARWIN_TRUE
715 X86_WIN64_FALSE
716 X86_WIN64_TRUE
717 X86_WIN32_FALSE
718 X86_WIN32_TRUE
719 X86_FREEBSD_FALSE
720 X86_FREEBSD_TRUE
721 X86_FALSE
722 X86_TRUE
723 SPARC_FALSE
724 SPARC_TRUE
725 BFIN_FALSE
726 BFIN_TRUE
727 MIPS_FALSE
728 MIPS_TRUE
729 AM_LTLDFLAGS
730 AM_RUNTESTFLAGS
731 TESTSUBDIR_FALSE
732 TESTSUBDIR_TRUE
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 PRTDIAG
737 CXXCPP
738 CPP
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 RANLIB
746 ac_ct_AR
747 AR
748 DLLTOOL
749 OBJDUMP
750 LN_S
751 NM
752 ac_ct_DUMPBIN
753 DUMPBIN
754 LD
755 FGREP
756 EGREP
757 GREP
758 SED
759 LIBTOOL
760 am__fastdepCCAS_FALSE
761 am__fastdepCCAS_TRUE
762 CCASDEPMODE
763 CCASFLAGS
764 CCAS
765 am__fastdepCXX_FALSE
766 am__fastdepCXX_TRUE
767 CXXDEPMODE
768 ac_ct_CXX
769 CXXFLAGS
770 CXX
771 am__fastdepCC_FALSE
772 am__fastdepCC_TRUE
773 CCDEPMODE
774 am__nodep
775 AMDEPBACKSLASH
776 AMDEP_FALSE
777 AMDEP_TRUE
778 am__quote
779 am__include
780 DEPDIR
781 OBJEXT
782 EXEEXT
783 ac_ct_CC
784 CPPFLAGS
785 LDFLAGS
786 CFLAGS
787 CC
788 AM_BACKSLASH
789 AM_DEFAULT_VERBOSITY
790 AM_DEFAULT_V
791 AM_V
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
797 AWK
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 ax_enable_builddir_sed
816 target_os
817 target_vendor
818 target_cpu
819 target
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_builddir
870 enable_silent_rules
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 with_pic
875 enable_fast_install
876 with_gnu_ld
877 with_sysroot
878 enable_libtool_lock
879 enable_portable_binary
880 with_gcc_arch
881 enable_maintainer_mode
882 enable_pax_emutramp
883 enable_debug
884 enable_structs
885 enable_raw_api
886 enable_purify_safety
887 '
888 ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CCAS
892 CCASFLAGS
893 CPP
894 CPPFLAGS
895 CXXCPP'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
953 ac_prev=
954 continue
955 fi
956
957 case $ac_option in
958 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 *=) ac_optarg= ;;
960 *) ac_optarg=yes ;;
961 esac
962
963 # Accept the important Cygnus configure options, so we can diagnose typos.
964
965 case $ac_dashdash$ac_option in
966 --)
967 ac_dashdash=yes ;;
968
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
973
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
978
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
985
986 --config-cache | -C)
987 cache_file=config.cache ;;
988
989 -datadir | --datadir | --datadi | --datad)
990 ac_prev=datadir ;;
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
993
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1000
1001 -disable-* | --disable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=no ;;
1016
1017 -docdir | --docdir | --docdi | --doc | --do)
1018 ac_prev=docdir ;;
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1021
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 ac_prev=dvidir ;;
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1026
1027 -enable-* | --enable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=\$ac_optarg ;;
1042
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1051
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1055
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1062
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1067
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1073
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1080
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1085
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1090
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1097
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1102
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1109
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1114
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1118
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1122
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1126
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1135
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1140
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1147
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1154
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1171
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1176
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1181
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
1262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
1281 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291 esac
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 ;;
1302
1303 esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $? "missing argument to $ac_option"
1309 fi
1310
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317 fi
1318
1319 # Check all directory arguments for consistency.
1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir
1324 do
1325 eval ac_val=\$$ac_var
1326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
1333 case $ac_val in
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 esac
1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1338 done
1339
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1343 build=$build_alias
1344 host=$host_alias
1345 target=$target_alias
1346
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354 fi
1355
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359 test "$silent" = yes && exec 6>/dev/null
1360
1361
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $? "working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $? "pwd does not report name of working directory"
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures libffi 3.1 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1490
1491 cat <<\_ACEOF
1492
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498 System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 --target=TARGET configure for building compilers for TARGET [HOST]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of libffi 3.1:";;
1508 esac
1509 cat <<\_ACEOF
1510
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --disable-builddir disable automatic build in subdir of sources
1516
1517 --enable-silent-rules less verbose build output (undo: "make V=1")
1518 --disable-silent-rules verbose build output (undo: "make V=0")
1519 --enable-dependency-tracking
1520 do not reject slow dependency extractors
1521 --disable-dependency-tracking
1522 speeds up one-time build
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-static[=PKGS] build static libraries [default=yes]
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --enable-portable-binary
1529 disable compiler optimizations that would produce
1530 unportable binaries
1531 --enable-maintainer-mode
1532 enable make rules and dependencies not useful (and
1533 sometimes confusing) to the casual installer
1534 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1535 --enable-debug debugging mode
1536 --disable-structs omit code for struct support
1537 --disable-raw-api make the raw api unavailable
1538 --enable-purify-safety purify-safe mode
1539
1540 Optional Packages:
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1544 both]
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1547 compiler's sysroot if not specified).
1548 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1549 instead of guessing
1550
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1561 CCAS assembler compiler command (defaults to CC)
1562 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1563 CPP C preprocessor
1564 CXXCPP C++ preprocessor
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <http://github.com/atgreen/libffi/issues>.
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 libffi configure 3.1
1633 generated by GNU Autoconf 2.69
1634
1635 Copyright (C) 2012 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639 exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_cxx_try_compile LINENO
1685 # ----------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_cxx_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_cxx_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_cxx_try_compile
1721
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 test -x conftest$ac_exeext
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_link
1767
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_header_compile
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } > conftest.i && {
1821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_cpp
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
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_link") 2>&5
1851 ac_status=$?
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: program exited with status $ac_status" >&5
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=$ac_status
1871 fi
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_run
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_cpp
1981
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_cxx_try_link
2027
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2034 {
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if test "$cross_compiling" = yes; then
2037 # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0;
2046 return test_array [0];
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_lo=0 ac_mid=0
2054 while :; do
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 test_array [0] = 0;
2063 return test_array [0];
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid; break
2071 else
2072 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073 if test $ac_lo -le $ac_mid; then
2074 ac_lo= ac_hi=
2075 break
2076 fi
2077 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) < 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115 else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 ac_lo= ac_hi=
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid
2150 else
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2167 int
2168 main ()
2169 {
2170
2171 FILE *f = fopen ("conftest.val", "w");
2172 if (! f)
2173 return 1;
2174 if (($2) < 0)
2175 {
2176 long int i = longval ();
2177 if (i != ($2))
2178 return 1;
2179 fprintf (f, "%ld", i);
2180 }
2181 else
2182 {
2183 unsigned long int i = ulongval ();
2184 if (i != ($2))
2185 return 1;
2186 fprintf (f, "%lu", i);
2187 }
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2191
2192 ;
2193 return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199 ac_retval=1
2200 fi
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2204
2205 fi
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2208
2209 } # ac_fn_c_compute_int
2210
2211 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2212 # -------------------------------------------------------
2213 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2214 # the include files in INCLUDES and setting the cache variable VAR
2215 # accordingly.
2216 ac_fn_c_check_header_mongrel ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if eval \${$3+:} false; then :
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if eval \${$3+:} false; then :
2223 $as_echo_n "(cached) " >&6
2224 fi
2225 eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 else
2229 # Is the header compilable?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2231 $as_echo_n "checking $2 usability... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_header_compiler=yes
2239 else
2240 ac_header_compiler=no
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2244 $as_echo "$ac_header_compiler" >&6; }
2245
2246 # Is the header present?
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2248 $as_echo_n "checking $2 presence... " >&6; }
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 #include <$2>
2252 _ACEOF
2253 if ac_fn_c_try_cpp "$LINENO"; then :
2254 ac_header_preproc=yes
2255 else
2256 ac_header_preproc=no
2257 fi
2258 rm -f conftest.err conftest.i conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2260 $as_echo "$ac_header_preproc" >&6; }
2261
2262 # So? What about this header?
2263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2264 yes:no: )
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2266 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 ;;
2270 no:yes:* )
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2272 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2274 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2276 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2278 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2280 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2281 ( $as_echo "## ------------------------------------------------------ ##
2282 ## Report this to http://github.com/atgreen/libffi/issues ##
2283 ## ------------------------------------------------------ ##"
2284 ) | sed "s/^/$as_me: WARNING: /" >&2
2285 ;;
2286 esac
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=\$ac_header_compiler"
2293 fi
2294 eval ac_res=\$$3
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 fi
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300 } # ac_fn_c_check_header_mongrel
2301
2302 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2303 # -------------------------------------------
2304 # Tests whether TYPE exists after having included INCLUDES, setting cache
2305 # variable VAR accordingly.
2306 ac_fn_c_check_type ()
2307 {
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 eval "$3=no"
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $4
2318 int
2319 main ()
2320 {
2321 if (sizeof ($2))
2322 return 0;
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2330 $4
2331 int
2332 main ()
2333 {
2334 if (sizeof (($2)))
2335 return 0;
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341
2342 else
2343 eval "$3=yes"
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_type
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2358
2359 It was created by libffi $as_me 3.1, which was
2360 generated by GNU Autoconf 2.69. Invocation command line was
2361
2362 $ $0 $@
2363
2364 _ACEOF
2365 exec 5>>config.log
2366 {
2367 cat <<_ASUNAME
2368 ## --------- ##
2369 ## Platform. ##
2370 ## --------- ##
2371
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2388
2389 _ASUNAME
2390
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2397 done
2398 IFS=$as_save_IFS
2399
2400 } >&5
2401
2402 cat >&5 <<_ACEOF
2403
2404
2405 ## ----------- ##
2406 ## Core tests. ##
2407 ## ----------- ##
2408
2409 _ACEOF
2410
2411
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2417 ac_configure_args=
2418 ac_configure_args0=
2419 ac_configure_args1=
2420 ac_must_keep_next=false
2421 for ac_pass in 1 2
2422 do
2423 for ac_arg
2424 do
2425 case $ac_arg in
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2429 continue ;;
2430 *\'*)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 esac
2433 case $ac_pass in
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 2)
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2439 else
2440 case $ac_arg in
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 esac
2448 ;;
2449 -* ) ac_must_keep_next=true ;;
2450 esac
2451 fi
2452 as_fn_append ac_configure_args " '$ac_arg'"
2453 ;;
2454 esac
2455 done
2456 done
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2459
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2467 {
2468 echo
2469
2470 $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2473 echo
2474 # The following way of writing the cache mishandles newlines in values,
2475 (
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in #(
2479 *${as_nl}*)
2480 case $ac_var in #(
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 esac
2484 case $ac_var in #(
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2488 esac ;;
2489 esac
2490 done
2491 (set) 2>&1 |
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2494 sed -n \
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 ;; #(
2498 *)
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500 ;;
2501 esac |
2502 sort
2503 )
2504 echo
2505
2506 $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2509 echo
2510 for ac_var in $ac_subst_vars
2511 do
2512 eval ac_val=\$$ac_var
2513 case $ac_val in
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 esac
2516 $as_echo "$ac_var='\''$ac_val'\''"
2517 done | sort
2518 echo
2519
2520 if test -n "$ac_subst_files"; then
2521 $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2524 echo
2525 for ac_var in $ac_subst_files
2526 do
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
2532 done | sort
2533 echo
2534 fi
2535
2536 if test -s confdefs.h; then
2537 $as_echo "## ----------- ##
2538 ## confdefs.h. ##
2539 ## ----------- ##"
2540 echo
2541 cat confdefs.h
2542 echo
2543 fi
2544 test "$ac_signal" != 0 &&
2545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
2547 } >&5
2548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550 exit $exit_status
2551 ' 0
2552 for ac_signal in 1 2 13 15; do
2553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2554 done
2555 ac_signal=0
2556
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2559
2560 $as_echo "/* confdefs.h */" > confdefs.h
2561
2562 # Predefined preprocessor variables.
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2586 _ACEOF
2587
2588
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2591 ac_site_file1=NONE
2592 ac_site_file2=NONE
2593 if test -n "$CONFIG_SITE"; then
2594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2599 esac
2600 elif test "x$prefix" != xNONE; then
2601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
2603 else
2604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
2606 fi
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 do
2609 test "x$ac_site_file" = xNONE && continue
2610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613 sed 's/^/| /' "$ac_site_file" >&5
2614 . "$ac_site_file" \
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2619 fi
2620 done
2621
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 case $cache_file in
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2631 esac
2632 fi
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2636 >$cache_file
2637 fi
2638
2639 # Check that the precious variables saved in the cache have kept the same
2640 # value.
2641 ac_cache_corrupted=false
2642 for ac_var in $ac_precious_vars; do
2643 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644 eval ac_new_set=\$ac_env_${ac_var}_set
2645 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646 eval ac_new_val=\$ac_env_${ac_var}_value
2647 case $ac_old_set,$ac_new_set in
2648 set,)
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651 ac_cache_corrupted=: ;;
2652 ,set)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,);;
2657 *)
2658 if test "x$ac_old_val" != "x$ac_new_val"; then
2659 # differences in whitespace do not lead to failure.
2660 ac_old_val_w=`echo x $ac_old_val`
2661 ac_new_val_w=`echo x $ac_new_val`
2662 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665 ac_cache_corrupted=:
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669 eval $ac_var=\$ac_old_val
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 fi;;
2676 esac
2677 # Pass precious variables to config.status.
2678 if test "$ac_new_set" = set; then
2679 case $ac_new_val in
2680 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681 *) ac_arg=$ac_var=$ac_new_val ;;
2682 esac
2683 case " $ac_configure_args " in
2684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2685 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2686 esac
2687 fi
2688 done
2689 if $ac_cache_corrupted; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2695 fi
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706
2707 ac_config_headers="$ac_config_headers fficonfig.h"
2708
2709
2710 ac_aux_dir=
2711 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712 if test -f "$ac_dir/install-sh"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2715 break
2716 elif test -f "$ac_dir/install.sh"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2719 break
2720 elif test -f "$ac_dir/shtool"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2723 break
2724 fi
2725 done
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2728 fi
2729
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2737
2738
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2755
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2760 *-*-*) ;;
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2762 esac
2763 build=$ac_cv_build
2764 ac_save_IFS=$IFS; IFS='-'
2765 set x $ac_cv_build
2766 shift
2767 build_cpu=$1
2768 build_vendor=$2
2769 shift; shift
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2772 build_os=$*
2773 IFS=$ac_save_IFS
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2784 else
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787 fi
2788
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2792 case $ac_cv_host in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2795 esac
2796 host=$ac_cv_host
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_host
2799 shift
2800 host_cpu=$1
2801 host_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 host_os=$*
2806 IFS=$ac_save_IFS
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2808
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test "x$target_alias" = x; then
2816 ac_cv_target=$ac_cv_host
2817 else
2818 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2820 fi
2821
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2826 *-*-*) ;;
2827 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2828 esac
2829 target=$ac_cv_target
2830 ac_save_IFS=$IFS; IFS='-'
2831 set x $ac_cv_target
2832 shift
2833 target_cpu=$1
2834 target_vendor=$2
2835 shift; shift
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2838 target_os=$*
2839 IFS=$ac_save_IFS
2840 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2841
2842
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2847 NONENONEs,x,x, &&
2848 program_prefix=${target_alias}-
2849
2850 target_alias=${target_alias-$host_alias}
2851
2852 case "${host}" in
2853 frv*-elf)
2854 LDFLAGS=`echo $LDFLAGS | sed "s/\-B^ *libgloss\/frv\///"`\ -B`pwd`/../libgloss/frv/
2855 ;;
2856 esac
2857
2858
2859 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2860 if test "${ac_configure_args+set}" != "set" ; then
2861 ac_configure_args=
2862 for ac_arg in ${1+"$@"}; do
2863 ac_configure_args="$ac_configure_args '$ac_arg'"
2864 done
2865 fi
2866
2867 # expand $ac_aux_dir to an absolute path
2868 am_aux_dir=`cd $ac_aux_dir && pwd`
2869
2870
2871 ax_enable_builddir="."
2872 # Check whether --enable-builddir was given.
2873 if test "${enable_builddir+set}" = set; then :
2874 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2875 else
2876 ax_enable_builddir="auto"
2877 fi
2878
2879 if test ".$ac_srcdir_defaulted" != ".no" ; then
2880 if test ".$srcdir" = ".." ; then
2881 if test -f config.status ; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2883 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2884 else
2885 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2886 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2887 test ".$TARGET" = "." && TARGET="$target"
2888 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2889 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2890 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2891 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2892 cd $ax_enable_builddir
2893 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2894 rm conftest.tmp
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2896 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2897 else
2898 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2899 fi
2900 srcdir=`echo "$ax_enable_builddir" |
2901 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2902 # going to restart from subdirectory location
2903 test -f $srcdir/config.log && mv $srcdir/config.log .
2904 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2905 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2906 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2908 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2909 case "$0" in # restart
2910 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2911 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2912 esac ; exit $?
2913 fi
2914 fi
2915 fi fi
2916 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2917 # Extract the first word of "gsed sed", so it can be a program name with args.
2918 set dummy gsed sed; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 case $ax_enable_builddir_sed in
2925 [\\/]* | ?:[\\/]*)
2926 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2927 ;;
2928 *)
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2945 ;;
2946 esac
2947 fi
2948 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2949 if test -n "$ax_enable_builddir_sed"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2951 $as_echo "$ax_enable_builddir_sed" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 ax_enable_builddir_auxdir="$am_aux_dir"
2959 ac_config_commands="$ac_config_commands buildir"
2960
2961
2962 am__api_version='1.13'
2963
2964 # Find a good install program. We prefer a C program (faster),
2965 # so one script is as good as another. But avoid the broken or
2966 # incompatible versions:
2967 # SysV /etc/install, /usr/sbin/install
2968 # SunOS /usr/etc/install
2969 # IRIX /sbin/install
2970 # AIX /bin/install
2971 # AmigaOS /C/install, which installs bootblocks on floppy discs
2972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2975 # OS/2's system install, which has a completely different semantic
2976 # ./install, which can be erroneously created by make from ./install.sh.
2977 # Reject install programs that cannot install multiple files.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2979 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2980 if test -z "$INSTALL"; then
2981 if ${ac_cv_path_install+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 # Account for people who put trailing slashes in PATH elements.
2990 case $as_dir/ in #((
2991 ./ | .// | /[cC]/* | \
2992 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2993 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2994 /usr/ucb/* ) ;;
2995 *)
2996 # OSF1 and SCO ODT 3.0 have their own names for install.
2997 # Don't use installbsd from OSF since it installs stuff as root
2998 # by default.
2999 for ac_prog in ginstall scoinst install; do
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3002 if test $ac_prog = install &&
3003 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004 # AIX install. It has an incompatible calling convention.
3005 :
3006 elif test $ac_prog = install &&
3007 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3008 # program-specific install script used by HP pwplus--don't use.
3009 :
3010 else
3011 rm -rf conftest.one conftest.two conftest.dir
3012 echo one > conftest.one
3013 echo two > conftest.two
3014 mkdir conftest.dir
3015 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3016 test -s conftest.one && test -s conftest.two &&
3017 test -s conftest.dir/conftest.one &&
3018 test -s conftest.dir/conftest.two
3019 then
3020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3021 break 3
3022 fi
3023 fi
3024 fi
3025 done
3026 done
3027 ;;
3028 esac
3029
3030 done
3031 IFS=$as_save_IFS
3032
3033 rm -rf conftest.one conftest.two conftest.dir
3034
3035 fi
3036 if test "${ac_cv_path_install+set}" = set; then
3037 INSTALL=$ac_cv_path_install
3038 else
3039 # As a last resort, use the slow shell script. Don't cache a
3040 # value for INSTALL within a source directory, because that will
3041 # break other packages using the cache if that directory is
3042 # removed, or if the value is a relative name.
3043 INSTALL=$ac_install_sh
3044 fi
3045 fi
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3047 $as_echo "$INSTALL" >&6; }
3048
3049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3050 # It thinks the first close brace ends the variable substitution.
3051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3052
3053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3054
3055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3056
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3058 $as_echo_n "checking whether build environment is sane... " >&6; }
3059 # Reject unsafe characters in $srcdir or the absolute working directory
3060 # name. Accept space and tab only in the latter.
3061 am_lf='
3062 '
3063 case `pwd` in
3064 *[\\\"\#\$\&\'\`$am_lf]*)
3065 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3066 esac
3067 case $srcdir in
3068 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3069 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3070 esac
3071
3072 # Do 'set' in a subshell so we don't clobber the current shell's
3073 # arguments. Must try -L first in case configure is actually a
3074 # symlink; some systems play weird games with the mod time of symlinks
3075 # (eg FreeBSD returns the mod time of the symlink's containing
3076 # directory).
3077 if (
3078 am_has_slept=no
3079 for am_try in 1 2; do
3080 echo "timestamp, slept: $am_has_slept" > conftest.file
3081 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3082 if test "$*" = "X"; then
3083 # -L didn't work.
3084 set X `ls -t "$srcdir/configure" conftest.file`
3085 fi
3086 if test "$*" != "X $srcdir/configure conftest.file" \
3087 && test "$*" != "X conftest.file $srcdir/configure"; then
3088
3089 # If neither matched, then we have a broken ls. This can happen
3090 # if, for instance, CONFIG_SHELL is bash and it inherits a
3091 # broken ls alias from the environment. This has actually
3092 # happened. Such a system could not be considered "sane".
3093 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3094 alias in your environment" "$LINENO" 5
3095 fi
3096 if test "$2" = conftest.file || test $am_try -eq 2; then
3097 break
3098 fi
3099 # Just in case.
3100 sleep 1
3101 am_has_slept=yes
3102 done
3103 test "$2" = conftest.file
3104 )
3105 then
3106 # Ok.
3107 :
3108 else
3109 as_fn_error $? "newly created file is older than distributed files!
3110 Check your system clock" "$LINENO" 5
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3114 # If we didn't sleep, we still need to ensure time stamps of config.status and
3115 # generated files are strictly newer.
3116 am_sleep_pid=
3117 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3118 ( sleep 1 ) &
3119 am_sleep_pid=$!
3120 fi
3121
3122 rm -f conftest.file
3123
3124 test "$program_prefix" != NONE &&
3125 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3126 # Use a double $ so make ignores it.
3127 test "$program_suffix" != NONE &&
3128 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3129 # Double any \ or $.
3130 # By default was `s,x,x', remove it if useless.
3131 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3132 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3133
3134 if test x"${MISSING+set}" != xset; then
3135 case $am_aux_dir in
3136 *\ * | *\ *)
3137 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3138 *)
3139 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3140 esac
3141 fi
3142 # Use eval to expand $SHELL
3143 if eval "$MISSING --is-lightweight"; then
3144 am_missing_run="$MISSING "
3145 else
3146 am_missing_run=
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3148 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3149 fi
3150
3151 if test x"${install_sh}" != xset; then
3152 case $am_aux_dir in
3153 *\ * | *\ *)
3154 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3155 *)
3156 install_sh="\${SHELL} $am_aux_dir/install-sh"
3157 esac
3158 fi
3159
3160 # Installed binaries are usually stripped using 'strip' when the user
3161 # run "make install-strip". However 'strip' might not be the right
3162 # tool to use in cross-compilation environments, therefore Automake
3163 # will honor the 'STRIP' environment variable to overrule this program.
3164 if test "$cross_compiling" != no; then
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}strip; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_STRIP+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$STRIP"; then
3174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 STRIP=$ac_cv_prog_STRIP
3194 if test -n "$STRIP"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3196 $as_echo "$STRIP" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202
3203 fi
3204 if test -z "$ac_cv_prog_STRIP"; then
3205 ac_ct_STRIP=$STRIP
3206 # Extract the first word of "strip", so it can be a program name with args.
3207 set dummy strip; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$ac_ct_STRIP"; then
3214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_ac_ct_STRIP="strip"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3234 if test -n "$ac_ct_STRIP"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3236 $as_echo "$ac_ct_STRIP" >&6; }
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242 if test "x$ac_ct_STRIP" = x; then
3243 STRIP=":"
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251 STRIP=$ac_ct_STRIP
3252 fi
3253 else
3254 STRIP="$ac_cv_prog_STRIP"
3255 fi
3256
3257 fi
3258 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3261 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3262 if test -z "$MKDIR_P"; then
3263 if ${ac_cv_path_mkdir+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_prog in mkdir gmkdir; do
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3274 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3275 'mkdir (GNU coreutils) '* | \
3276 'mkdir (coreutils) '* | \
3277 'mkdir (fileutils) '4.1*)
3278 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3279 break 3;;
3280 esac
3281 done
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287
3288 test -d ./--version && rmdir ./--version
3289 if test "${ac_cv_path_mkdir+set}" = set; then
3290 MKDIR_P="$ac_cv_path_mkdir -p"
3291 else
3292 # As a last resort, use the slow shell script. Don't cache a
3293 # value for MKDIR_P within a source directory, because that will
3294 # break other packages using the cache if that directory is
3295 # removed, or if the value is a relative name.
3296 MKDIR_P="$ac_install_sh -d"
3297 fi
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3300 $as_echo "$MKDIR_P" >&6; }
3301
3302 for ac_prog in gawk mawk nawk awk
3303 do
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_AWK+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$AWK"; then
3312 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_AWK="$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 AWK=$ac_cv_prog_AWK
3332 if test -n "$AWK"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3334 $as_echo "$AWK" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 test -n "$AWK" && break
3342 done
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3345 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3346 set x ${MAKE-make}
3347 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3348 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 cat >conftest.make <<\_ACEOF
3352 SHELL = /bin/sh
3353 all:
3354 @echo '@@@%%%=$(MAKE)=@@@%%%'
3355 _ACEOF
3356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3358 *@@@%%%=?*=@@@%%%*)
3359 eval ac_cv_prog_make_${ac_make}_set=yes;;
3360 *)
3361 eval ac_cv_prog_make_${ac_make}_set=no;;
3362 esac
3363 rm -f conftest.make
3364 fi
3365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368 SET_MAKE=
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 SET_MAKE="MAKE=${MAKE-make}"
3373 fi
3374
3375 rm -rf .tst 2>/dev/null
3376 mkdir .tst 2>/dev/null
3377 if test -d .tst; then
3378 am__leading_dot=.
3379 else
3380 am__leading_dot=_
3381 fi
3382 rmdir .tst 2>/dev/null
3383
3384 # Check whether --enable-silent-rules was given.
3385 if test "${enable_silent_rules+set}" = set; then :
3386 enableval=$enable_silent_rules;
3387 fi
3388
3389 case $enable_silent_rules in # (((
3390 yes) AM_DEFAULT_VERBOSITY=0;;
3391 no) AM_DEFAULT_VERBOSITY=1;;
3392 *) AM_DEFAULT_VERBOSITY=1;;
3393 esac
3394 am_make=${MAKE-make}
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3396 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3397 if ${am_cv_make_support_nested_variables+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if $as_echo 'TRUE=$(BAR$(V))
3401 BAR0=false
3402 BAR1=true
3403 V=1
3404 am__doit:
3405 @$(TRUE)
3406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3407 am_cv_make_support_nested_variables=yes
3408 else
3409 am_cv_make_support_nested_variables=no
3410 fi
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3413 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3414 if test $am_cv_make_support_nested_variables = yes; then
3415 AM_V='$(V)'
3416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3417 else
3418 AM_V=$AM_DEFAULT_VERBOSITY
3419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3420 fi
3421 AM_BACKSLASH='\'
3422
3423 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3425 # is not polluted with repeated "-I."
3426 am__isrc=' -I$(srcdir)'
3427 # test to see if srcdir already configured
3428 if test -f $srcdir/config.status; then
3429 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3430 fi
3431 fi
3432
3433 # test whether we have cygpath
3434 if test -z "$CYGPATH_W"; then
3435 if (cygpath --version) >/dev/null 2>/dev/null; then
3436 CYGPATH_W='cygpath -w'
3437 else
3438 CYGPATH_W=echo
3439 fi
3440 fi
3441
3442
3443 # Define the identity of the package.
3444 PACKAGE='libffi'
3445 VERSION='3.1'
3446
3447
3448 cat >>confdefs.h <<_ACEOF
3449 #define PACKAGE "$PACKAGE"
3450 _ACEOF
3451
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define VERSION "$VERSION"
3455 _ACEOF
3456
3457 # Some tools Automake needs.
3458
3459 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3460
3461
3462 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3463
3464
3465 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3466
3467
3468 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3469
3470
3471 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3472
3473 # For better backward compatibility. To be removed once Automake 1.9.x
3474 # dies out for good. For more background, see:
3475 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3476 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3477 mkdir_p='$(MKDIR_P)'
3478
3479 # We need awk for the "check" target. The system "awk" is bad on
3480 # some platforms.
3481 # Always define AMTAR for backward compatibility. Yes, it's still used
3482 # in the wild :-( We should find a proper way to deprecate it ...
3483 AMTAR='$${TAR-tar}'
3484
3485
3486 # We'll loop over all known methods to create a tar archive until one works.
3487 _am_tools='gnutar pax cpio none'
3488
3489 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3490
3491
3492
3493
3494
3495
3496
3497 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3498 # We must force CC to /not/ be precious variables; otherwise
3499 # the wrong, non-multilib-adjusted value will be used in multilibs.
3500 # As a side effect, we have to subst CFLAGS ourselves.
3501 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3502 # defaults of its own if none are provided.
3503
3504
3505
3506 save_CFLAGS=$CFLAGS
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "gcc", so it can be a program name with args.
3554 set dummy gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574 done
3575 done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 $as_echo "$ac_ct_CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3599 fi
3600 else
3601 CC="$ac_cv_prog_CC"
3602 fi
3603
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}cc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 fi
3645 if test -z "$CC"; then
3646 # Extract the first word of "cc", so it can be a program name with args.
3647 set dummy cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 ac_prog_rejected=no
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3665 ac_prog_rejected=yes
3666 continue
3667 fi
3668 ac_cv_prog_CC="cc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 if test $ac_prog_rejected = yes; then
3677 # We found a bogon in the path, so make sure we never use it.
3678 set dummy $ac_cv_prog_CC
3679 shift
3680 if test $# != 0; then
3681 # We chose a different compiler from the bogus one.
3682 # However, it has the same basename, so the bogon will be chosen
3683 # first if we set CC to just the basename; use the full file name.
3684 shift
3685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3686 fi
3687 fi
3688 fi
3689 fi
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699
3700 fi
3701 if test -z "$CC"; then
3702 if test -n "$ac_tool_prefix"; then
3703 for ac_prog in cl.exe
3704 do
3705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 CC=$ac_cv_prog_CC
3733 if test -n "$CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735 $as_echo "$CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742 test -n "$CC" && break
3743 done
3744 fi
3745 if test -z "$CC"; then
3746 ac_ct_CC=$CC
3747 for ac_prog in cl.exe
3748 do
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 test -n "$ac_ct_CC" && break
3787 done
3788
3789 if test "x$ac_ct_CC" = x; then
3790 CC=""
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798 CC=$ac_ct_CC
3799 fi
3800 fi
3801
3802 fi
3803
3804
3805 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "no acceptable C compiler found in \$PATH
3808 See \`config.log' for more details" "$LINENO" 5; }
3809
3810 # Provide some information about the compiler.
3811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3812 set X $ac_compile
3813 ac_compiler=$2
3814 for ac_option in --version -v -V -qversion; do
3815 { { ac_try="$ac_compiler $ac_option >&5"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3823 ac_status=$?
3824 if test -s conftest.err; then
3825 sed '10a\
3826 ... rest of stderr output deleted ...
3827 10q' conftest.err >conftest.er1
3828 cat conftest.er1 >&5
3829 fi
3830 rm -f conftest.er1 conftest.err
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }
3833 done
3834
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 ac_clean_files_save=$ac_clean_files
3847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3848 # Try to create an executable without -o first, disregard a.out.
3849 # It will help us diagnose broken compilers, and finding out an intuition
3850 # of exeext.
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3852 $as_echo_n "checking whether the C compiler works... " >&6; }
3853 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3854
3855 # The possible output files:
3856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857
3858 ac_rmfiles=
3859 for ac_file in $ac_files
3860 do
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3864 esac
3865 done
3866 rm -f $ac_rmfiles
3867
3868 if { { ac_try="$ac_link_default"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_link_default") 2>&5
3876 ac_status=$?
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3880 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3881 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3882 # so that the user can short-circuit this test for compilers unknown to
3883 # Autoconf.
3884 for ac_file in $ac_files ''
3885 do
3886 test -f "$ac_file" || continue
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889 ;;
3890 [ab].out )
3891 # We found the default executable, but exeext='' is most
3892 # certainly right.
3893 break;;
3894 *.* )
3895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3896 then :; else
3897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 fi
3899 # We set ac_cv_exeext here because the later test for it is not
3900 # safe: cross compilers may not add the suffix if given an `-o'
3901 # argument, so we may need to know it at that point already.
3902 # Even if this section looks crufty: it has the advantage of
3903 # actually working.
3904 break;;
3905 * )
3906 break;;
3907 esac
3908 done
3909 test "$ac_cv_exeext" = no && ac_cv_exeext=
3910
3911 else
3912 ac_file=''
3913 fi
3914 if test -z "$ac_file"; then :
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error 77 "C compiler cannot create executables
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929 $as_echo_n "checking for C compiler default output file name... " >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931 $as_echo "$ac_file" >&6; }
3932 ac_exeext=$ac_cv_exeext
3933
3934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935 ac_clean_files=$ac_clean_files_save
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937 $as_echo_n "checking for suffix of executables... " >&6; }
3938 if { { ac_try="$ac_link"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3951 # work properly (i.e., refer to `conftest.exe'), while it won't with
3952 # `rm'.
3953 for ac_file in conftest.exe conftest conftest.*; do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 break;;
3959 * ) break;;
3960 esac
3961 done
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 fi
3968 rm -f conftest conftest$ac_cv_exeext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3971
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3974 ac_exeext=$EXEEXT
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <stdio.h>
3978 int
3979 main ()
3980 {
3981 FILE *f = fopen ("conftest.out", "w");
3982 return ferror (f) || fclose (f) != 0;
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 ac_clean_files="$ac_clean_files conftest.out"
3989 # Check that the compiler produces executables we can run. If not, either
3990 # the compiler is broken, or we cross compile.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3992 $as_echo_n "checking whether we are cross compiling... " >&6; }
3993 if test "$cross_compiling" != yes; then
3994 { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4005 if { ac_try='./conftest$ac_cv_exeext'
4006 { { case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_try") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; }; then
4016 cross_compiling=no
4017 else
4018 if test "$cross_compiling" = maybe; then
4019 cross_compiling=yes
4020 else
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot run C compiled programs.
4024 If you meant to cross compile, use \`--host'.
4025 See \`config.log' for more details" "$LINENO" 5; }
4026 fi
4027 fi
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4031
4032 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4033 ac_clean_files=$ac_clean_files_save
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4035 $as_echo_n "checking for suffix of object files... " >&6; }
4036 if ${ac_cv_objext+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main ()
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 rm -f conftest.o conftest.obj
4051 if { { ac_try="$ac_compile"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compile") 2>&5
4059 ac_status=$?
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; then :
4062 for ac_file in conftest.o conftest.obj conftest.*; do
4063 test -f "$ac_file" || continue;
4064 case $ac_file in
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4067 break;;
4068 esac
4069 done
4070 else
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $? "cannot compute suffix of object files: cannot compile
4077 See \`config.log' for more details" "$LINENO" 5; }
4078 fi
4079 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4082 $as_echo "$ac_cv_objext" >&6; }
4083 OBJEXT=$ac_cv_objext
4084 ac_objext=$OBJEXT
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4087 if ${ac_cv_c_compiler_gnu+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096 #ifndef __GNUC__
4097 choke me
4098 #endif
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_compiler_gnu=yes
4106 else
4107 ac_compiler_gnu=no
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4115 if test $ac_compiler_gnu = yes; then
4116 GCC=yes
4117 else
4118 GCC=
4119 fi
4120 ac_test_CFLAGS=${CFLAGS+set}
4121 ac_save_CFLAGS=$CFLAGS
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4124 if ${ac_cv_prog_cc_g+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 ac_save_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4129 ac_cv_prog_cc_g=no
4130 CFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133
4134 int
4135 main ()
4136 {
4137
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_g=yes
4144 else
4145 CFLAGS=""
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158
4159 else
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_prog_cc_g=yes
4175 fi
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_c_werror_flag=$ac_save_c_werror_flag
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4184 $as_echo "$ac_cv_prog_cc_g" >&6; }
4185 if test "$ac_test_CFLAGS" = set; then
4186 CFLAGS=$ac_save_CFLAGS
4187 elif test $ac_cv_prog_cc_g = yes; then
4188 if test "$GCC" = yes; then
4189 CFLAGS="-g -O2"
4190 else
4191 CFLAGS="-g"
4192 fi
4193 else
4194 if test "$GCC" = yes; then
4195 CFLAGS="-O2"
4196 else
4197 CFLAGS=
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4202 if ${ac_cv_prog_cc_c89+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 ac_cv_prog_cc_c89=no
4206 ac_save_CC=$CC
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <stdarg.h>
4210 #include <stdio.h>
4211 struct stat;
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4216 char **p;
4217 int i;
4218 {
4219 return p[i];
4220 }
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4222 {
4223 char *s;
4224 va_list v;
4225 va_start (v,p);
4226 s = g (p, va_arg (v,int));
4227 va_end (v);
4228 return s;
4229 }
4230
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4242 #define FOO(x) 'x'
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4251 int
4252 main ()
4253 {
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 do
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 done
4269 rm -f conftest.$ac_ext
4270 CC=$ac_save_CC
4271
4272 fi
4273 # AC_CACHE_VAL
4274 case "x$ac_cv_prog_cc_c89" in
4275 x)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4278 xno)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4281 *)
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 esac
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4287
4288 fi
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 DEPDIR="${am__leading_dot}deps"
4296
4297 ac_config_commands="$ac_config_commands depfiles"
4298
4299
4300 am_make=${MAKE-make}
4301 cat > confinc << 'END'
4302 am__doit:
4303 @echo this is the am__doit target
4304 .PHONY: am__doit
4305 END
4306 # If we don't find an include directive, just comment out the code.
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4308 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4309 am__include="#"
4310 am__quote=
4311 _am_result=none
4312 # First try GNU make style include.
4313 echo "include confinc" > confmf
4314 # Ignore all kinds of additional output from 'make'.
4315 case `$am_make -s -f confmf 2> /dev/null` in #(
4316 *the\ am__doit\ target*)
4317 am__include=include
4318 am__quote=
4319 _am_result=GNU
4320 ;;
4321 esac
4322 # Now try BSD make style include.
4323 if test "$am__include" = "#"; then
4324 echo '.include "confinc"' > confmf
4325 case `$am_make -s -f confmf 2> /dev/null` in #(
4326 *the\ am__doit\ target*)
4327 am__include=.include
4328 am__quote="\""
4329 _am_result=BSD
4330 ;;
4331 esac
4332 fi
4333
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4336 $as_echo "$_am_result" >&6; }
4337 rm -f confinc confmf
4338
4339 # Check whether --enable-dependency-tracking was given.
4340 if test "${enable_dependency_tracking+set}" = set; then :
4341 enableval=$enable_dependency_tracking;
4342 fi
4343
4344 if test "x$enable_dependency_tracking" != xno; then
4345 am_depcomp="$ac_aux_dir/depcomp"
4346 AMDEPBACKSLASH='\'
4347 am__nodep='_no'
4348 fi
4349 if test "x$enable_dependency_tracking" != xno; then
4350 AMDEP_TRUE=
4351 AMDEP_FALSE='#'
4352 else
4353 AMDEP_TRUE='#'
4354 AMDEP_FALSE=
4355 fi
4356
4357
4358
4359 depcc="$CC" am_compiler_list=
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4362 $as_echo_n "checking dependency style of $depcc... " >&6; }
4363 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4367 # We make a subdir and do the tests there. Otherwise we can end up
4368 # making bogus files that we don't know about and never remove. For
4369 # instance it was reported that on HP-UX the gcc test will end up
4370 # making a dummy file named 'D' -- because '-MD' means "put the output
4371 # in D".
4372 rm -rf conftest.dir
4373 mkdir conftest.dir
4374 # Copy depcomp to subdir because otherwise we won't find it if we're
4375 # using a relative directory.
4376 cp "$am_depcomp" conftest.dir
4377 cd conftest.dir
4378 # We will build objects and dependencies in a subdirectory because
4379 # it helps to detect inapplicable dependency modes. For instance
4380 # both Tru64's cc and ICC support -MD to output dependencies as a
4381 # side effect of compilation, but ICC will put the dependencies in
4382 # the current directory while Tru64 will put them in the object
4383 # directory.
4384 mkdir sub
4385
4386 am_cv_CC_dependencies_compiler_type=none
4387 if test "$am_compiler_list" = ""; then
4388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4389 fi
4390 am__universal=false
4391 case " $depcc " in #(
4392 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4393 esac
4394
4395 for depmode in $am_compiler_list; do
4396 # Setup a source with many dependencies, because some compilers
4397 # like to wrap large dependency lists on column 80 (with \), and
4398 # we should not choose a depcomp mode which is confused by this.
4399 #
4400 # We need to recreate these files for each test, as the compiler may
4401 # overwrite some of them when testing with obscure command lines.
4402 # This happens at least with the AIX C compiler.
4403 : > sub/conftest.c
4404 for i in 1 2 3 4 5 6; do
4405 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4406 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4407 # Solaris 10 /bin/sh.
4408 echo '/* dummy */' > sub/conftst$i.h
4409 done
4410 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4411
4412 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4413 # mode. It turns out that the SunPro C++ compiler does not properly
4414 # handle '-M -o', and we need to detect this. Also, some Intel
4415 # versions had trouble with output in subdirs.
4416 am__obj=sub/conftest.${OBJEXT-o}
4417 am__minus_obj="-o $am__obj"
4418 case $depmode in
4419 gcc)
4420 # This depmode causes a compiler race in universal mode.
4421 test "$am__universal" = false || continue
4422 ;;
4423 nosideeffect)
4424 # After this tag, mechanisms are not by side-effect, so they'll
4425 # only be used when explicitly requested.
4426 if test "x$enable_dependency_tracking" = xyes; then
4427 continue
4428 else
4429 break
4430 fi
4431 ;;
4432 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4433 # This compiler won't grok '-c -o', but also, the minuso test has
4434 # not run yet. These depmodes are late enough in the game, and
4435 # so weak that their functioning should not be impacted.
4436 am__obj=conftest.${OBJEXT-o}
4437 am__minus_obj=
4438 ;;
4439 none) break ;;
4440 esac
4441 if depmode=$depmode \
4442 source=sub/conftest.c object=$am__obj \
4443 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4444 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4445 >/dev/null 2>conftest.err &&
4446 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4448 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4450 # icc doesn't choke on unknown options, it will just issue warnings
4451 # or remarks (even with -Werror). So we grep stderr for any message
4452 # that says an option was ignored or not supported.
4453 # When given -MP, icc 7.0 and 7.1 complain thusly:
4454 # icc: Command line warning: ignoring option '-M'; no argument required
4455 # The diagnosis changed in icc 8.0:
4456 # icc: Command line remark: option '-MP' not supported
4457 if (grep 'ignoring option' conftest.err ||
4458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4459 am_cv_CC_dependencies_compiler_type=$depmode
4460 break
4461 fi
4462 fi
4463 done
4464
4465 cd ..
4466 rm -rf conftest.dir
4467 else
4468 am_cv_CC_dependencies_compiler_type=none
4469 fi
4470
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4473 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4474 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4475
4476 if
4477 test "x$enable_dependency_tracking" != xno \
4478 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4479 am__fastdepCC_TRUE=
4480 am__fastdepCC_FALSE='#'
4481 else
4482 am__fastdepCC_TRUE='#'
4483 am__fastdepCC_FALSE=
4484 fi
4485
4486
4487 ac_ext=cpp
4488 ac_cpp='$CXXCPP $CPPFLAGS'
4489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4492 if test -z "$CXX"; then
4493 if test -n "$CCC"; then
4494 CXX=$CCC
4495 else
4496 if test -n "$ac_tool_prefix"; then
4497 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4498 do
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_CXX+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$CXX"; then
4507 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 fi
4525 fi
4526 CXX=$ac_cv_prog_CXX
4527 if test -n "$CXX"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4529 $as_echo "$CXX" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536 test -n "$CXX" && break
4537 done
4538 fi
4539 if test -z "$CXX"; then
4540 ac_ct_CXX=$CXX
4541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4542 do
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_CXX"; then
4551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_ac_ct_CXX="$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4571 if test -n "$ac_ct_CXX"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4573 $as_echo "$ac_ct_CXX" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 test -n "$ac_ct_CXX" && break
4581 done
4582
4583 if test "x$ac_ct_CXX" = x; then
4584 CXX="g++"
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592 CXX=$ac_ct_CXX
4593 fi
4594 fi
4595
4596 fi
4597 fi
4598 # Provide some information about the compiler.
4599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4600 set X $ac_compile
4601 ac_compiler=$2
4602 for ac_option in --version -v -V -qversion; do
4603 { { ac_try="$ac_compiler $ac_option >&5"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4609 $as_echo "$ac_try_echo"; } >&5
4610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4611 ac_status=$?
4612 if test -s conftest.err; then
4613 sed '10a\
4614 ... rest of stderr output deleted ...
4615 10q' conftest.err >conftest.er1
4616 cat conftest.er1 >&5
4617 fi
4618 rm -f conftest.er1 conftest.err
4619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }
4621 done
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4624 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4625 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 int
4632 main ()
4633 {
4634 #ifndef __GNUC__
4635 choke me
4636 #endif
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_cxx_try_compile "$LINENO"; then :
4643 ac_compiler_gnu=yes
4644 else
4645 ac_compiler_gnu=no
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4649
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4652 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4653 if test $ac_compiler_gnu = yes; then
4654 GXX=yes
4655 else
4656 GXX=
4657 fi
4658 ac_test_CXXFLAGS=${CXXFLAGS+set}
4659 ac_save_CXXFLAGS=$CXXFLAGS
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4661 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4662 if ${ac_cv_prog_cxx_g+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4666 ac_cxx_werror_flag=yes
4667 ac_cv_prog_cxx_g=no
4668 CXXFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671
4672 int
4673 main ()
4674 {
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_cxx_try_compile "$LINENO"; then :
4681 ac_cv_prog_cxx_g=yes
4682 else
4683 CXXFLAGS=""
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 int
4688 main ()
4689 {
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696
4697 else
4698 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4699 CXXFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main ()
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712 ac_cv_prog_cxx_g=yes
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4722 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4723 if test "$ac_test_CXXFLAGS" = set; then
4724 CXXFLAGS=$ac_save_CXXFLAGS
4725 elif test $ac_cv_prog_cxx_g = yes; then
4726 if test "$GXX" = yes; then
4727 CXXFLAGS="-g -O2"
4728 else
4729 CXXFLAGS="-g"
4730 fi
4731 else
4732 if test "$GXX" = yes; then
4733 CXXFLAGS="-O2"
4734 else
4735 CXXFLAGS=
4736 fi
4737 fi
4738 ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
4744 depcc="$CXX" am_compiler_list=
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4747 $as_echo_n "checking dependency style of $depcc... " >&6; }
4748 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4752 # We make a subdir and do the tests there. Otherwise we can end up
4753 # making bogus files that we don't know about and never remove. For
4754 # instance it was reported that on HP-UX the gcc test will end up
4755 # making a dummy file named 'D' -- because '-MD' means "put the output
4756 # in D".
4757 rm -rf conftest.dir
4758 mkdir conftest.dir
4759 # Copy depcomp to subdir because otherwise we won't find it if we're
4760 # using a relative directory.
4761 cp "$am_depcomp" conftest.dir
4762 cd conftest.dir
4763 # We will build objects and dependencies in a subdirectory because
4764 # it helps to detect inapplicable dependency modes. For instance
4765 # both Tru64's cc and ICC support -MD to output dependencies as a
4766 # side effect of compilation, but ICC will put the dependencies in
4767 # the current directory while Tru64 will put them in the object
4768 # directory.
4769 mkdir sub
4770
4771 am_cv_CXX_dependencies_compiler_type=none
4772 if test "$am_compiler_list" = ""; then
4773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4774 fi
4775 am__universal=false
4776 case " $depcc " in #(
4777 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4778 esac
4779
4780 for depmode in $am_compiler_list; do
4781 # Setup a source with many dependencies, because some compilers
4782 # like to wrap large dependency lists on column 80 (with \), and
4783 # we should not choose a depcomp mode which is confused by this.
4784 #
4785 # We need to recreate these files for each test, as the compiler may
4786 # overwrite some of them when testing with obscure command lines.
4787 # This happens at least with the AIX C compiler.
4788 : > sub/conftest.c
4789 for i in 1 2 3 4 5 6; do
4790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4791 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4792 # Solaris 10 /bin/sh.
4793 echo '/* dummy */' > sub/conftst$i.h
4794 done
4795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4796
4797 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4798 # mode. It turns out that the SunPro C++ compiler does not properly
4799 # handle '-M -o', and we need to detect this. Also, some Intel
4800 # versions had trouble with output in subdirs.
4801 am__obj=sub/conftest.${OBJEXT-o}
4802 am__minus_obj="-o $am__obj"
4803 case $depmode in
4804 gcc)
4805 # This depmode causes a compiler race in universal mode.
4806 test "$am__universal" = false || continue
4807 ;;
4808 nosideeffect)
4809 # After this tag, mechanisms are not by side-effect, so they'll
4810 # only be used when explicitly requested.
4811 if test "x$enable_dependency_tracking" = xyes; then
4812 continue
4813 else
4814 break
4815 fi
4816 ;;
4817 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4818 # This compiler won't grok '-c -o', but also, the minuso test has
4819 # not run yet. These depmodes are late enough in the game, and
4820 # so weak that their functioning should not be impacted.
4821 am__obj=conftest.${OBJEXT-o}
4822 am__minus_obj=
4823 ;;
4824 none) break ;;
4825 esac
4826 if depmode=$depmode \
4827 source=sub/conftest.c object=$am__obj \
4828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4829 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4830 >/dev/null 2>conftest.err &&
4831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4833 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4835 # icc doesn't choke on unknown options, it will just issue warnings
4836 # or remarks (even with -Werror). So we grep stderr for any message
4837 # that says an option was ignored or not supported.
4838 # When given -MP, icc 7.0 and 7.1 complain thusly:
4839 # icc: Command line warning: ignoring option '-M'; no argument required
4840 # The diagnosis changed in icc 8.0:
4841 # icc: Command line remark: option '-MP' not supported
4842 if (grep 'ignoring option' conftest.err ||
4843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4844 am_cv_CXX_dependencies_compiler_type=$depmode
4845 break
4846 fi
4847 fi
4848 done
4849
4850 cd ..
4851 rm -rf conftest.dir
4852 else
4853 am_cv_CXX_dependencies_compiler_type=none
4854 fi
4855
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4858 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4859 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4860
4861 if
4862 test "x$enable_dependency_tracking" != xno \
4863 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4864 am__fastdepCXX_TRUE=
4865 am__fastdepCXX_FALSE='#'
4866 else
4867 am__fastdepCXX_TRUE='#'
4868 am__fastdepCXX_FALSE=
4869 fi
4870
4871
4872 CFLAGS=$save_CFLAGS
4873
4874
4875
4876
4877
4878 # By default we simply use the C compiler to build assembly code.
4879
4880 test "${CCAS+set}" = set || CCAS=$CC
4881 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4882
4883
4884
4885 depcc="$CCAS" am_compiler_list=
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4888 $as_echo_n "checking dependency style of $depcc... " >&6; }
4889 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4893 # We make a subdir and do the tests there. Otherwise we can end up
4894 # making bogus files that we don't know about and never remove. For
4895 # instance it was reported that on HP-UX the gcc test will end up
4896 # making a dummy file named 'D' -- because '-MD' means "put the output
4897 # in D".
4898 rm -rf conftest.dir
4899 mkdir conftest.dir
4900 # Copy depcomp to subdir because otherwise we won't find it if we're
4901 # using a relative directory.
4902 cp "$am_depcomp" conftest.dir
4903 cd conftest.dir
4904 # We will build objects and dependencies in a subdirectory because
4905 # it helps to detect inapplicable dependency modes. For instance
4906 # both Tru64's cc and ICC support -MD to output dependencies as a
4907 # side effect of compilation, but ICC will put the dependencies in
4908 # the current directory while Tru64 will put them in the object
4909 # directory.
4910 mkdir sub
4911
4912 am_cv_CCAS_dependencies_compiler_type=none
4913 if test "$am_compiler_list" = ""; then
4914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4915 fi
4916 am__universal=false
4917
4918
4919 for depmode in $am_compiler_list; do
4920 # Setup a source with many dependencies, because some compilers
4921 # like to wrap large dependency lists on column 80 (with \), and
4922 # we should not choose a depcomp mode which is confused by this.
4923 #
4924 # We need to recreate these files for each test, as the compiler may
4925 # overwrite some of them when testing with obscure command lines.
4926 # This happens at least with the AIX C compiler.
4927 : > sub/conftest.c
4928 for i in 1 2 3 4 5 6; do
4929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4931 # Solaris 10 /bin/sh.
4932 echo '/* dummy */' > sub/conftst$i.h
4933 done
4934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4935
4936 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4937 # mode. It turns out that the SunPro C++ compiler does not properly
4938 # handle '-M -o', and we need to detect this. Also, some Intel
4939 # versions had trouble with output in subdirs.
4940 am__obj=sub/conftest.${OBJEXT-o}
4941 am__minus_obj="-o $am__obj"
4942 case $depmode in
4943 gcc)
4944 # This depmode causes a compiler race in universal mode.
4945 test "$am__universal" = false || continue
4946 ;;
4947 nosideeffect)
4948 # After this tag, mechanisms are not by side-effect, so they'll
4949 # only be used when explicitly requested.
4950 if test "x$enable_dependency_tracking" = xyes; then
4951 continue
4952 else
4953 break
4954 fi
4955 ;;
4956 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4957 # This compiler won't grok '-c -o', but also, the minuso test has
4958 # not run yet. These depmodes are late enough in the game, and
4959 # so weak that their functioning should not be impacted.
4960 am__obj=conftest.${OBJEXT-o}
4961 am__minus_obj=
4962 ;;
4963 none) break ;;
4964 esac
4965 if depmode=$depmode \
4966 source=sub/conftest.c object=$am__obj \
4967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4969 >/dev/null 2>conftest.err &&
4970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CCAS_dependencies_compiler_type=$depmode
4984 break
4985 fi
4986 fi
4987 done
4988
4989 cd ..
4990 rm -rf conftest.dir
4991 else
4992 am_cv_CCAS_dependencies_compiler_type=none
4993 fi
4994
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4997 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4998 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4999
5000 if
5001 test "x$enable_dependency_tracking" != xno \
5002 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5003 am__fastdepCCAS_TRUE=
5004 am__fastdepCCAS_FALSE='#'
5005 else
5006 am__fastdepCCAS_TRUE='#'
5007 am__fastdepCCAS_FALSE=
5008 fi
5009
5010
5011 if test "x$CC" != xcc; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5013 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5016 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5017 fi
5018 set dummy $CC; ac_cc=`$as_echo "$2" |
5019 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5020 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025
5026 int
5027 main ()
5028 {
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 # Make sure it works both with $CC and with simple cc.
5035 # We do the test twice because some compilers refuse to overwrite an
5036 # existing .o file with -o, though they will create one.
5037 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5038 rm -f conftest2.*
5039 if { { case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_try") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; } &&
5049 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 $as_echo "$ac_try_echo"; } >&5
5055 (eval "$ac_try") 2>&5
5056 ac_status=$?
5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; };
5059 then
5060 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5061 if test "x$CC" != xcc; then
5062 # Test first that cc exists at all.
5063 if { ac_try='cc -c conftest.$ac_ext >&5'
5064 { { case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5069 $as_echo "$ac_try_echo"; } >&5
5070 (eval "$ac_try") 2>&5
5071 ac_status=$?
5072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5073 test $ac_status = 0; }; }; then
5074 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5075 rm -f conftest2.*
5076 if { { case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5081 $as_echo "$ac_try_echo"; } >&5
5082 (eval "$ac_try") 2>&5
5083 ac_status=$?
5084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5085 test $ac_status = 0; } &&
5086 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5091 $as_echo "$ac_try_echo"; } >&5
5092 (eval "$ac_try") 2>&5
5093 ac_status=$?
5094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095 test $ac_status = 0; };
5096 then
5097 # cc works too.
5098 :
5099 else
5100 # cc exists but doesn't like -o.
5101 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5102 fi
5103 fi
5104 fi
5105 else
5106 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5107 fi
5108 rm -f core conftest*
5109
5110 fi
5111 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117
5118 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5119
5120 fi
5121
5122 # FIXME: we rely on the cache variable name because
5123 # there is no other way.
5124 set dummy $CC
5125 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5126 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5127 if test "$am_t" != yes; then
5128 # Losing compiler, so override with the script.
5129 # FIXME: It is wrong to rewrite CC.
5130 # But if we don't then we get into trouble of one sort or another.
5131 # A longer-term fix would be to have automake use am__CC in this case,
5132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5133 CC="$am_aux_dir/compile $CC"
5134 fi
5135
5136
5137 case `pwd` in
5138 *\ * | *\ *)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5140 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5141 esac
5142
5143
5144
5145 macro_version='2.4.2.418'
5146 macro_revision='2.4.2.418'
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 ltmain=$ac_aux_dir/ltmain.sh
5161
5162 # Backslashify metacharacters that are still active within
5163 # double-quoted strings.
5164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5165
5166 # Same as above, but do not quote variable references.
5167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5168
5169 # Sed substitution to delay expansion of an escaped shell variable in a
5170 # double_quote_subst'ed string.
5171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5172
5173 # Sed substitution to delay expansion of an escaped single quote.
5174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5175
5176 # Sed substitution to avoid accidental globbing in evaled expressions
5177 no_glob_subst='s/\*/\\\*/g'
5178
5179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5184 $as_echo_n "checking how to print strings... " >&6; }
5185 # Test print first, because it will be a builtin if present.
5186 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5187 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5188 ECHO='print -r --'
5189 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5190 ECHO='printf %s\n'
5191 else
5192 # Use this function as a fallback that always works.
5193 func_fallback_echo ()
5194 {
5195 eval 'cat <<_LTECHO_EOF
5196 $1
5197 _LTECHO_EOF'
5198 }
5199 ECHO='func_fallback_echo'
5200 fi
5201
5202 # func_echo_all arg...
5203 # Invoke $ECHO with all args, space-separated.
5204 func_echo_all ()
5205 {
5206 $ECHO ""
5207 }
5208
5209 case $ECHO in
5210 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5211 $as_echo "printf" >&6; } ;;
5212 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5213 $as_echo "print -r" >&6; } ;;
5214 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5215 $as_echo "cat" >&6; } ;;
5216 esac
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5232 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5233 if ${ac_cv_path_SED+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5237 for ac_i in 1 2 3 4 5 6 7; do
5238 ac_script="$ac_script$as_nl$ac_script"
5239 done
5240 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5241 { ac_script=; unset ac_script;}
5242 if test -z "$SED"; then
5243 ac_path_SED_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in sed gsed; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_SED" || continue
5254 # Check for GNU ac_path_SED and select it if it is found.
5255 # Check for GNU $ac_path_SED
5256 case `"$ac_path_SED" --version 2>&1` in
5257 *GNU*)
5258 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5259 *)
5260 ac_count=0
5261 $as_echo_n 0123456789 >"conftest.in"
5262 while :
5263 do
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 $as_echo '' >> "conftest.nl"
5268 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_SED_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_SED="$ac_path_SED"
5274 ac_path_SED_max=$ac_count
5275 fi
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5281
5282 $ac_path_SED_found && break 3
5283 done
5284 done
5285 done
5286 IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_SED"; then
5288 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5289 fi
5290 else
5291 ac_cv_path_SED=$SED
5292 fi
5293
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5296 $as_echo "$ac_cv_path_SED" >&6; }
5297 SED="$ac_cv_path_SED"
5298 rm -f conftest.sed
5299
5300 test -z "$SED" && SED=sed
5301 Xsed="$SED -e 1s/^X//"
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5314 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5315 if ${ac_cv_path_GREP+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -z "$GREP"; then
5319 ac_path_GREP_found=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in grep ggrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5329 as_fn_executable_p "$ac_path_GREP" || continue
5330 # Check for GNU ac_path_GREP and select it if it is found.
5331 # Check for GNU $ac_path_GREP
5332 case `"$ac_path_GREP" --version 2>&1` in
5333 *GNU*)
5334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5335 *)
5336 ac_count=0
5337 $as_echo_n 0123456789 >"conftest.in"
5338 while :
5339 do
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 $as_echo 'GREP' >> "conftest.nl"
5344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 as_fn_arith $ac_count + 1 && ac_count=$as_val
5347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_GREP="$ac_path_GREP"
5350 ac_path_GREP_max=$ac_count
5351 fi
5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 esac
5357
5358 $ac_path_GREP_found && break 3
5359 done
5360 done
5361 done
5362 IFS=$as_save_IFS
5363 if test -z "$ac_cv_path_GREP"; then
5364 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365 fi
5366 else
5367 ac_cv_path_GREP=$GREP
5368 fi
5369
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5372 $as_echo "$ac_cv_path_GREP" >&6; }
5373 GREP="$ac_cv_path_GREP"
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5377 $as_echo_n "checking for egrep... " >&6; }
5378 if ${ac_cv_path_EGREP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5382 then ac_cv_path_EGREP="$GREP -E"
5383 else
5384 if test -z "$EGREP"; then
5385 ac_path_EGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in egrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 as_fn_executable_p "$ac_path_EGREP" || continue
5396 # Check for GNU ac_path_EGREP and select it if it is found.
5397 # Check for GNU $ac_path_EGREP
5398 case `"$ac_path_EGREP" --version 2>&1` in
5399 *GNU*)
5400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5401 *)
5402 ac_count=0
5403 $as_echo_n 0123456789 >"conftest.in"
5404 while :
5405 do
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 $as_echo 'EGREP' >> "conftest.nl"
5410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 as_fn_arith $ac_count + 1 && ac_count=$as_val
5413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_EGREP="$ac_path_EGREP"
5416 ac_path_EGREP_max=$ac_count
5417 fi
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5420 done
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422 esac
5423
5424 $ac_path_EGREP_found && break 3
5425 done
5426 done
5427 done
5428 IFS=$as_save_IFS
5429 if test -z "$ac_cv_path_EGREP"; then
5430 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431 fi
5432 else
5433 ac_cv_path_EGREP=$EGREP
5434 fi
5435
5436 fi
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5439 $as_echo "$ac_cv_path_EGREP" >&6; }
5440 EGREP="$ac_cv_path_EGREP"
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5444 $as_echo_n "checking for fgrep... " >&6; }
5445 if ${ac_cv_path_FGREP+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5449 then ac_cv_path_FGREP="$GREP -F"
5450 else
5451 if test -z "$FGREP"; then
5452 ac_path_FGREP_found=false
5453 # Loop through the user's path and test for each of PROGNAME-LIST
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in fgrep; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5462 as_fn_executable_p "$ac_path_FGREP" || continue
5463 # Check for GNU ac_path_FGREP and select it if it is found.
5464 # Check for GNU $ac_path_FGREP
5465 case `"$ac_path_FGREP" --version 2>&1` in
5466 *GNU*)
5467 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5468 *)
5469 ac_count=0
5470 $as_echo_n 0123456789 >"conftest.in"
5471 while :
5472 do
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 $as_echo 'FGREP' >> "conftest.nl"
5477 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 as_fn_arith $ac_count + 1 && ac_count=$as_val
5480 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_FGREP="$ac_path_FGREP"
5483 ac_path_FGREP_max=$ac_count
5484 fi
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5487 done
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5490
5491 $ac_path_FGREP_found && break 3
5492 done
5493 done
5494 done
5495 IFS=$as_save_IFS
5496 if test -z "$ac_cv_path_FGREP"; then
5497 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5498 fi
5499 else
5500 ac_cv_path_FGREP=$FGREP
5501 fi
5502
5503 fi
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5506 $as_echo "$ac_cv_path_FGREP" >&6; }
5507 FGREP="$ac_cv_path_FGREP"
5508
5509
5510 test -z "$GREP" && GREP=grep
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 # Check whether --with-gnu-ld was given.
5531 if test "${with_gnu_ld+set}" = set; then :
5532 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5533 else
5534 with_gnu_ld=no
5535 fi
5536
5537 ac_prog=ld
5538 if test yes = "$GCC"; then
5539 # Check if gcc -print-prog-name=ld gives a path.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5541 $as_echo_n "checking for ld used by $CC... " >&6; }
5542 case $host in
5543 *-*-mingw*)
5544 # gcc leaves a trailing carriage return, which upsets mingw
5545 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5546 *)
5547 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5548 esac
5549 case $ac_prog in
5550 # Accept absolute paths.
5551 [\\/]* | ?:[\\/]*)
5552 re_direlt='/[^/][^/]*/\.\./'
5553 # Canonicalize the pathname of ld
5554 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5555 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5556 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5557 done
5558 test -z "$LD" && LD=$ac_prog
5559 ;;
5560 "")
5561 # If it fails, then pretend we aren't using GCC.
5562 ac_prog=ld
5563 ;;
5564 *)
5565 # If it is relative, then search for the first ld in PATH.
5566 with_gnu_ld=unknown
5567 ;;
5568 esac
5569 elif test yes = "$with_gnu_ld"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5571 $as_echo_n "checking for GNU ld... " >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5574 $as_echo_n "checking for non-GNU ld... " >&6; }
5575 fi
5576 if ${lt_cv_path_LD+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -z "$LD"; then
5580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5581 for ac_dir in $PATH; do
5582 IFS=$lt_save_ifs
5583 test -z "$ac_dir" && ac_dir=.
5584 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5585 lt_cv_path_LD=$ac_dir/$ac_prog
5586 # Check to see if the program is GNU ld. I'd rather use --version,
5587 # but apparently some variants of GNU ld only accept -v.
5588 # Break only if it was the GNU/non-GNU ld that we prefer.
5589 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5590 *GNU* | *'with BFD'*)
5591 test no != "$with_gnu_ld" && break
5592 ;;
5593 *)
5594 test yes != "$with_gnu_ld" && break
5595 ;;
5596 esac
5597 fi
5598 done
5599 IFS=$lt_save_ifs
5600 else
5601 lt_cv_path_LD=$LD # Let the user override the test with a path.
5602 fi
5603 fi
5604
5605 LD=$lt_cv_path_LD
5606 if test -n "$LD"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5608 $as_echo "$LD" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5615 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5616 if ${lt_cv_prog_gnu_ld+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5620 case `$LD -v 2>&1 </dev/null` in
5621 *GNU* | *'with BFD'*)
5622 lt_cv_prog_gnu_ld=yes
5623 ;;
5624 *)
5625 lt_cv_prog_gnu_ld=no
5626 ;;
5627 esac
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5630 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5631 with_gnu_ld=$lt_cv_prog_gnu_ld
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5642 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5643 if ${lt_cv_path_NM+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$NM"; then
5647 # Let the user override the test.
5648 lt_cv_path_NM=$NM
5649 else
5650 lt_nm_to_check=${ac_tool_prefix}nm
5651 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5652 lt_nm_to_check="$lt_nm_to_check nm"
5653 fi
5654 for lt_tmp_nm in $lt_nm_to_check; do
5655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5656 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5657 IFS=$lt_save_ifs
5658 test -z "$ac_dir" && ac_dir=.
5659 tmp_nm=$ac_dir/$lt_tmp_nm
5660 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5661 # Check to see if the nm accepts a BSD-compat flag.
5662 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5663 # nm: unknown option "B" ignored
5664 # Tru64's nm complains that /dev/null is an invalid object file
5665 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5666 */dev/null* | *'Invalid file or object type'*)
5667 lt_cv_path_NM="$tmp_nm -B"
5668 break 2
5669 ;;
5670 *)
5671 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5672 */dev/null*)
5673 lt_cv_path_NM="$tmp_nm -p"
5674 break 2
5675 ;;
5676 *)
5677 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5678 continue # so that we can try to find one that supports BSD flags
5679 ;;
5680 esac
5681 ;;
5682 esac
5683 fi
5684 done
5685 IFS=$lt_save_ifs
5686 done
5687 : ${lt_cv_path_NM=no}
5688 fi
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5691 $as_echo "$lt_cv_path_NM" >&6; }
5692 if test no != "$lt_cv_path_NM"; then
5693 NM=$lt_cv_path_NM
5694 else
5695 # Didn't find any BSD compatible name lister, look for dumpbin.
5696 if test -n "$DUMPBIN"; then :
5697 # Let the user override the test.
5698 else
5699 if test -n "$ac_tool_prefix"; then
5700 for ac_prog in dumpbin "link -dump"
5701 do
5702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_DUMPBIN+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$DUMPBIN"; then
5710 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 DUMPBIN=$ac_cv_prog_DUMPBIN
5730 if test -n "$DUMPBIN"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5732 $as_echo "$DUMPBIN" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739 test -n "$DUMPBIN" && break
5740 done
5741 fi
5742 if test -z "$DUMPBIN"; then
5743 ac_ct_DUMPBIN=$DUMPBIN
5744 for ac_prog in dumpbin "link -dump"
5745 do
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$ac_ct_DUMPBIN"; then
5754 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5774 if test -n "$ac_ct_DUMPBIN"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5776 $as_echo "$ac_ct_DUMPBIN" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782
5783 test -n "$ac_ct_DUMPBIN" && break
5784 done
5785
5786 if test "x$ac_ct_DUMPBIN" = x; then
5787 DUMPBIN=":"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 DUMPBIN=$ac_ct_DUMPBIN
5796 fi
5797 fi
5798
5799 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5800 *COFF*)
5801 DUMPBIN="$DUMPBIN -symbols -headers"
5802 ;;
5803 *)
5804 DUMPBIN=:
5805 ;;
5806 esac
5807 fi
5808
5809 if test : != "$DUMPBIN"; then
5810 NM=$DUMPBIN
5811 fi
5812 fi
5813 test -z "$NM" && NM=nm
5814
5815
5816
5817
5818
5819
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5821 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5822 if ${lt_cv_nm_interface+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 lt_cv_nm_interface="BSD nm"
5826 echo "int some_variable = 0;" > conftest.$ac_ext
5827 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5828 (eval "$ac_compile" 2>conftest.err)
5829 cat conftest.err >&5
5830 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5831 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5832 cat conftest.err >&5
5833 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5834 cat conftest.out >&5
5835 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5836 lt_cv_nm_interface="MS dumpbin"
5837 fi
5838 rm -f conftest*
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5841 $as_echo "$lt_cv_nm_interface" >&6; }
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5844 $as_echo_n "checking whether ln -s works... " >&6; }
5845 LN_S=$as_ln_s
5846 if test "$LN_S" = "ln -s"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5848 $as_echo "yes" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5851 $as_echo "no, using $LN_S" >&6; }
5852 fi
5853
5854 # find the maximum length of command line arguments
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5856 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5857 if ${lt_cv_sys_max_cmd_len+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 i=0
5861 teststring=ABCD
5862
5863 case $build_os in
5864 msdosdjgpp*)
5865 # On DJGPP, this test can blow up pretty badly due to problems in libc
5866 # (any single argument exceeding 2000 bytes causes a buffer overrun
5867 # during glob expansion). Even if it were fixed, the result of this
5868 # check would be larger than it should be.
5869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5870 ;;
5871
5872 gnu*)
5873 # Under GNU Hurd, this test is not required because there is
5874 # no limit to the length of command line arguments.
5875 # Libtool will interpret -1 as no limit whatsoever
5876 lt_cv_sys_max_cmd_len=-1;
5877 ;;
5878
5879 cygwin* | mingw* | cegcc*)
5880 # On Win9x/ME, this test blows up -- it succeeds, but takes
5881 # about 5 minutes as the teststring grows exponentially.
5882 # Worse, since 9x/ME are not pre-emptively multitasking,
5883 # you end up with a "frozen" computer, even though with patience
5884 # the test eventually succeeds (with a max line length of 256k).
5885 # Instead, let's just punt: use the minimum linelength reported by
5886 # all of the supported platforms: 8192 (on NT/2K/XP).
5887 lt_cv_sys_max_cmd_len=8192;
5888 ;;
5889
5890 mint*)
5891 # On MiNT this can take a long time and run out of memory.
5892 lt_cv_sys_max_cmd_len=8192;
5893 ;;
5894
5895 amigaos*)
5896 # On AmigaOS with pdksh, this test takes hours, literally.
5897 # So we just punt and use a minimum line length of 8192.
5898 lt_cv_sys_max_cmd_len=8192;
5899 ;;
5900
5901 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5902 # This has been around since 386BSD, at least. Likely further.
5903 if test -x /sbin/sysctl; then
5904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5905 elif test -x /usr/sbin/sysctl; then
5906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5907 else
5908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5909 fi
5910 # And add a safety zone
5911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5913 ;;
5914
5915 interix*)
5916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5917 lt_cv_sys_max_cmd_len=196608
5918 ;;
5919
5920 os2*)
5921 # The test takes a long time on OS/2.
5922 lt_cv_sys_max_cmd_len=8192
5923 ;;
5924
5925 osf*)
5926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5928 # nice to cause kernel panics so lets avoid the loop below.
5929 # First set a reasonable default.
5930 lt_cv_sys_max_cmd_len=16384
5931 #
5932 if test -x /sbin/sysconfig; then
5933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5935 esac
5936 fi
5937 ;;
5938 sco3.2v5*)
5939 lt_cv_sys_max_cmd_len=102400
5940 ;;
5941 sysv5* | sco5v6* | sysv4.2uw2*)
5942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5943 if test -n "$kargmax"; then
5944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5945 else
5946 lt_cv_sys_max_cmd_len=32768
5947 fi
5948 ;;
5949 *)
5950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5951 if test -n "$lt_cv_sys_max_cmd_len" && \
5952 test undefined != "$lt_cv_sys_max_cmd_len"; then
5953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5955 else
5956 # Make teststring a little bigger before we do anything with it.
5957 # a 1K string should be a reasonable start.
5958 for i in 1 2 3 4 5 6 7 8; do
5959 teststring=$teststring$teststring
5960 done
5961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5962 # If test is not a shell built-in, we'll probably end up computing a
5963 # maximum length that is only half of the actual maximum length, but
5964 # we can't tell.
5965 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5967 test 17 != "$i" # 1/2 MB should be enough
5968 do
5969 i=`expr $i + 1`
5970 teststring=$teststring$teststring
5971 done
5972 # Only check the string length outside the loop.
5973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5974 teststring=
5975 # Add a significant safety factor because C++ compilers can tack on
5976 # massive amounts of additional arguments before passing them to the
5977 # linker. It appears as though 1/2 is a usable value.
5978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5979 fi
5980 ;;
5981 esac
5982
5983 fi
5984
5985 if test -n "$lt_cv_sys_max_cmd_len"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5987 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5990 $as_echo "none" >&6; }
5991 fi
5992 max_cmd_len=$lt_cv_sys_max_cmd_len
5993
5994
5995
5996
5997
5998
5999 : ${CP="cp -f"}
6000 : ${MV="mv -f"}
6001 : ${RM="rm -f"}
6002
6003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6004 lt_unset=unset
6005 else
6006 lt_unset=false
6007 fi
6008
6009
6010
6011
6012
6013 # test EBCDIC or ASCII
6014 case `echo X|tr X '\101'` in
6015 A) # ASCII based system
6016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6017 lt_SP2NL='tr \040 \012'
6018 lt_NL2SP='tr \015\012 \040\040'
6019 ;;
6020 *) # EBCDIC based system
6021 lt_SP2NL='tr \100 \n'
6022 lt_NL2SP='tr \r\n \100\100'
6023 ;;
6024 esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6035 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6036 if ${lt_cv_to_host_file_cmd+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 case $host in
6040 *-*-mingw* )
6041 case $build in
6042 *-*-mingw* ) # actually msys
6043 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6044 ;;
6045 *-*-cygwin* )
6046 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6047 ;;
6048 * ) # otherwise, assume *nix
6049 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6050 ;;
6051 esac
6052 ;;
6053 *-*-cygwin* )
6054 case $build in
6055 *-*-mingw* ) # actually msys
6056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6057 ;;
6058 *-*-cygwin* )
6059 lt_cv_to_host_file_cmd=func_convert_file_noop
6060 ;;
6061 * ) # otherwise, assume *nix
6062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6063 ;;
6064 esac
6065 ;;
6066 * ) # unhandled hosts (and "normal" native builds)
6067 lt_cv_to_host_file_cmd=func_convert_file_noop
6068 ;;
6069 esac
6070
6071 fi
6072
6073 to_host_file_cmd=$lt_cv_to_host_file_cmd
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6075 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6076
6077
6078
6079
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6082 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6083 if ${lt_cv_to_tool_file_cmd+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 #assume ordinary cross tools, or native build.
6087 lt_cv_to_tool_file_cmd=func_convert_file_noop
6088 case $host in
6089 *-*-mingw* )
6090 case $build in
6091 *-*-mingw* ) # actually msys
6092 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6093 ;;
6094 esac
6095 ;;
6096 esac
6097
6098 fi
6099
6100 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6102 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6103
6104
6105
6106
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6109 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6110 if ${lt_cv_ld_reload_flag+:} false; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 lt_cv_ld_reload_flag='-r'
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6116 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6117 reload_flag=$lt_cv_ld_reload_flag
6118 case $reload_flag in
6119 "" | " "*) ;;
6120 *) reload_flag=" $reload_flag" ;;
6121 esac
6122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6123 case $host_os in
6124 cygwin* | mingw* | pw32* | cegcc*)
6125 if test yes != "$GCC"; then
6126 reload_cmds=false
6127 fi
6128 ;;
6129 darwin*)
6130 if test yes = "$GCC"; then
6131 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6132 else
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6134 fi
6135 ;;
6136 esac
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_OBJDUMP+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$OBJDUMP"; then
6155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 OBJDUMP=$ac_cv_prog_OBJDUMP
6175 if test -n "$OBJDUMP"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6177 $as_echo "$OBJDUMP" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_OBJDUMP"; then
6186 ac_ct_OBJDUMP=$OBJDUMP
6187 # Extract the first word of "objdump", so it can be a program name with args.
6188 set dummy objdump; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$ac_ct_OBJDUMP"; then
6195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6215 if test -n "$ac_ct_OBJDUMP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6217 $as_echo "$ac_ct_OBJDUMP" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223 if test "x$ac_ct_OBJDUMP" = x; then
6224 OBJDUMP="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 OBJDUMP=$ac_ct_OBJDUMP
6233 fi
6234 else
6235 OBJDUMP="$ac_cv_prog_OBJDUMP"
6236 fi
6237
6238 test -z "$OBJDUMP" && OBJDUMP=objdump
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6249 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6250 if ${lt_cv_deplibs_check_method+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # 'unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # that responds to the $file_magic_cmd with a given extended regex.
6264 # If you have 'file' or equivalent on your system and you're not sure
6265 # whether 'pass_all' will *always* work, you probably want this one.
6266
6267 case $host_os in
6268 aix[4-9]*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272 beos*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276 bsdi[45]*)
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278 lt_cv_file_magic_cmd='/usr/bin/file -L'
6279 lt_cv_file_magic_test_file=/shlib/libc.so
6280 ;;
6281
6282 cygwin*)
6283 # func_win32_libid is a shell function defined in ltmain.sh
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6286 ;;
6287
6288 mingw* | pw32*)
6289 # Base MSYS/MinGW do not provide the 'file' command needed by
6290 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6291 # unless we find 'file', for example because we are cross-compiling.
6292 if ( file / ) >/dev/null 2>&1; then
6293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6294 lt_cv_file_magic_cmd='func_win32_libid'
6295 else
6296 # Keep this pattern in sync with the one in func_win32_libid.
6297 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6298 lt_cv_file_magic_cmd='$OBJDUMP -f'
6299 fi
6300 ;;
6301
6302 cegcc*)
6303 # use the weaker test based on 'objdump'. See mingw*.
6304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6305 lt_cv_file_magic_cmd='$OBJDUMP -f'
6306 ;;
6307
6308 darwin* | rhapsody*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312 freebsd* | dragonfly*)
6313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314 case $host_cpu in
6315 i*86 )
6316 # Not sure whether the presence of OpenBSD here was a mistake.
6317 # Let's accept both of them until this is cleared up.
6318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6319 lt_cv_file_magic_cmd=/usr/bin/file
6320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6321 ;;
6322 esac
6323 else
6324 lt_cv_deplibs_check_method=pass_all
6325 fi
6326 ;;
6327
6328 haiku*)
6329 lt_cv_deplibs_check_method=pass_all
6330 ;;
6331
6332 hpux10.20* | hpux11*)
6333 lt_cv_file_magic_cmd=/usr/bin/file
6334 case $host_cpu in
6335 ia64*)
6336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6338 ;;
6339 hppa*64*)
6340 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]'
6341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6342 ;;
6343 *)
6344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6346 ;;
6347 esac
6348 ;;
6349
6350 interix[3-9]*)
6351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6353 ;;
6354
6355 irix5* | irix6* | nonstopux*)
6356 case $LD in
6357 *-32|*"-32 ") libmagic=32-bit;;
6358 *-n32|*"-n32 ") libmagic=N32;;
6359 *-64|*"-64 ") libmagic=64-bit;;
6360 *) libmagic=never-match;;
6361 esac
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364
6365 # This must be glibc/ELF.
6366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6367 lt_cv_deplibs_check_method=pass_all
6368 ;;
6369
6370 netbsd*)
6371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373 else
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6375 fi
6376 ;;
6377
6378 newos6*)
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6382 ;;
6383
6384 *nto* | *qnx*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 openbsd* | bitrig*)
6389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6391 else
6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6393 fi
6394 ;;
6395
6396 osf3* | osf4* | osf5*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 rdos*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404 solaris*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412 sysv4 | sysv4.3*)
6413 case $host_vendor in
6414 motorola)
6415 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]'
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6417 ;;
6418 ncr)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421 sequent)
6422 lt_cv_file_magic_cmd='/bin/file'
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6424 ;;
6425 sni)
6426 lt_cv_file_magic_cmd='/bin/file'
6427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6428 lt_cv_file_magic_test_file=/lib/libc.so
6429 ;;
6430 siemens)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
6433 pc)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436 esac
6437 ;;
6438
6439 tpf*)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442 esac
6443
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6446 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6447
6448 file_magic_glob=
6449 want_nocaseglob=no
6450 if test "$build" = "$host"; then
6451 case $host_os in
6452 mingw* | pw32*)
6453 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6454 want_nocaseglob=yes
6455 else
6456 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6457 fi
6458 ;;
6459 esac
6460 fi
6461
6462 file_magic_cmd=$lt_cv_file_magic_cmd
6463 deplibs_check_method=$lt_cv_deplibs_check_method
6464 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_DLLTOOL+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$DLLTOOL"; then
6496 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 DLLTOOL=$ac_cv_prog_DLLTOOL
6516 if test -n "$DLLTOOL"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6518 $as_echo "$DLLTOOL" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_DLLTOOL"; then
6527 ac_ct_DLLTOOL=$DLLTOOL
6528 # Extract the first word of "dlltool", so it can be a program name with args.
6529 set dummy dlltool; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$ac_ct_DLLTOOL"; then
6536 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6556 if test -n "$ac_ct_DLLTOOL"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6558 $as_echo "$ac_ct_DLLTOOL" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564 if test "x$ac_ct_DLLTOOL" = x; then
6565 DLLTOOL="false"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573 DLLTOOL=$ac_ct_DLLTOOL
6574 fi
6575 else
6576 DLLTOOL="$ac_cv_prog_DLLTOOL"
6577 fi
6578
6579 test -z "$DLLTOOL" && DLLTOOL=dlltool
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6591 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6592 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 lt_cv_sharedlib_from_linklib_cmd='unknown'
6596
6597 case $host_os in
6598 cygwin* | mingw* | pw32* | cegcc*)
6599 # two different shell functions defined in ltmain.sh;
6600 # decide which one to use based on capabilities of $DLLTOOL
6601 case `$DLLTOOL --help 2>&1` in
6602 *--identify-strict*)
6603 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6604 ;;
6605 *)
6606 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6607 ;;
6608 esac
6609 ;;
6610 *)
6611 # fallback: assume linklib IS sharedlib
6612 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6613 ;;
6614 esac
6615
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6618 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6619 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6620 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6621
6622
6623
6624
6625
6626
6627
6628
6629 if test -n "$ac_tool_prefix"; then
6630 for ac_prog in ar
6631 do
6632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_AR+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$AR"; then
6640 ac_cv_prog_AR="$AR" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 AR=$ac_cv_prog_AR
6660 if test -n "$AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6662 $as_echo "$AR" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 test -n "$AR" && break
6670 done
6671 fi
6672 if test -z "$AR"; then
6673 ac_ct_AR=$AR
6674 for ac_prog in ar
6675 do
6676 # Extract the first word of "$ac_prog", so it can be a program name with args.
6677 set dummy $ac_prog; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$ac_ct_AR"; then
6684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_ac_ct_AR="$ac_prog"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704 if test -n "$ac_ct_AR"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706 $as_echo "$ac_ct_AR" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 test -n "$ac_ct_AR" && break
6714 done
6715
6716 if test "x$ac_ct_AR" = x; then
6717 AR="false"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 AR=$ac_ct_AR
6726 fi
6727 fi
6728
6729 : ${AR=ar}
6730 : ${AR_FLAGS=cru}
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6743 $as_echo_n "checking for archiver @FILE support... " >&6; }
6744 if ${lt_cv_ar_at_file+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 lt_cv_ar_at_file=no
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750
6751 int
6752 main ()
6753 {
6754
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 echo conftest.$ac_objext > conftest.lst
6761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6763 (eval $lt_ar_try) 2>&5
6764 ac_status=$?
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; }
6767 if test 0 -eq "$ac_status"; then
6768 # Ensure the archiver fails upon bogus file names.
6769 rm -f conftest.$ac_objext libconftest.a
6770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6771 (eval $lt_ar_try) 2>&5
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }
6775 if test 0 -ne "$ac_status"; then
6776 lt_cv_ar_at_file=@
6777 fi
6778 fi
6779 rm -f conftest.* libconftest.a
6780
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6786 $as_echo "$lt_cv_ar_at_file" >&6; }
6787
6788 if test no = "$lt_cv_ar_at_file"; then
6789 archiver_list_spec=
6790 else
6791 archiver_list_spec=$lt_cv_ar_at_file
6792 fi
6793
6794
6795
6796
6797
6798
6799
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}strip; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_STRIP+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$STRIP"; then
6809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 STRIP=$ac_cv_prog_STRIP
6829 if test -n "$STRIP"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6831 $as_echo "$STRIP" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_STRIP"; then
6840 ac_ct_STRIP=$STRIP
6841 # Extract the first word of "strip", so it can be a program name with args.
6842 set dummy strip; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 if test -n "$ac_ct_STRIP"; then
6849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_ac_ct_STRIP="strip"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6869 if test -n "$ac_ct_STRIP"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6871 $as_echo "$ac_ct_STRIP" >&6; }
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877 if test "x$ac_ct_STRIP" = x; then
6878 STRIP=":"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886 STRIP=$ac_ct_STRIP
6887 fi
6888 else
6889 STRIP="$ac_cv_prog_STRIP"
6890 fi
6891
6892 test -z "$STRIP" && STRIP=:
6893
6894
6895
6896
6897
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_RANLIB+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$RANLIB"; then
6908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 RANLIB=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6930 $as_echo "$RANLIB" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939 ac_ct_RANLIB=$RANLIB
6940 # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_RANLIB"; then
6948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_RANLIB="ranlib"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6970 $as_echo "$ac_ct_RANLIB" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_RANLIB" = x; then
6977 RANLIB=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 RANLIB=$ac_ct_RANLIB
6986 fi
6987 else
6988 RANLIB="$ac_cv_prog_RANLIB"
6989 fi
6990
6991 test -z "$RANLIB" && RANLIB=:
6992
6993
6994
6995
6996
6997
6998 # Determine commands to create old-style static archives.
6999 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7000 old_postinstall_cmds='chmod 644 $oldlib'
7001 old_postuninstall_cmds=
7002
7003 if test -n "$RANLIB"; then
7004 case $host_os in
7005 bitrig* | openbsd*)
7006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7007 ;;
7008 *)
7009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7010 ;;
7011 esac
7012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7013 fi
7014
7015 case $host_os in
7016 darwin*)
7017 lock_old_archive_extraction=yes ;;
7018 *)
7019 lock_old_archive_extraction=no ;;
7020 esac
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 # If no C compiler was specified, use CC.
7061 LTCC=${LTCC-"$CC"}
7062
7063 # If no C compiler flags were specified, use CFLAGS.
7064 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7065
7066 # Allow CC to be a program name with arguments.
7067 compiler=$CC
7068
7069
7070 # Check for command to grab the raw symbol name followed by C symbol from nm.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7072 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7073 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076
7077 # These are sane defaults that work on at least a few old systems.
7078 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7079
7080 # Character class describing NM global symbol codes.
7081 symcode='[BCDEGRST]'
7082
7083 # Regexp to match symbols that can be accessed directly from C.
7084 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7085
7086 # Define system-specific variables.
7087 case $host_os in
7088 aix*)
7089 symcode='[BCDT]'
7090 ;;
7091 cygwin* | mingw* | pw32* | cegcc*)
7092 symcode='[ABCDGISTW]'
7093 ;;
7094 hpux*)
7095 if test ia64 = "$host_cpu"; then
7096 symcode='[ABCDEGRST]'
7097 fi
7098 ;;
7099 irix* | nonstopux*)
7100 symcode='[BCDEGRST]'
7101 ;;
7102 osf*)
7103 symcode='[BCDEGQRST]'
7104 ;;
7105 solaris*)
7106 symcode='[BDRT]'
7107 ;;
7108 sco3.2v5*)
7109 symcode='[DT]'
7110 ;;
7111 sysv4.2uw2*)
7112 symcode='[DT]'
7113 ;;
7114 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7115 symcode='[ABDT]'
7116 ;;
7117 sysv4)
7118 symcode='[DFNSTU]'
7119 ;;
7120 esac
7121
7122 # If we're using GNU nm, then use its standard symbol codes.
7123 case `$NM -V 2>&1` in
7124 *GNU* | *'with BFD'*)
7125 symcode='[ABCDGIRSTW]' ;;
7126 esac
7127
7128 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7129 # Gets list of data symbols to import.
7130 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7131 # Adjust the below global symbol transforms to fixup imported variables.
7132 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7133 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7134 lt_c_name_lib_hook="\
7135 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7136 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7137 else
7138 # Disable hooks by default.
7139 lt_cv_sys_global_symbol_to_import=
7140 lt_cdecl_hook=
7141 lt_c_name_hook=
7142 lt_c_name_lib_hook=
7143 fi
7144
7145 # Transform an extracted symbol line into a proper C declaration.
7146 # Some systems (esp. on ia64) link data and code symbols differently,
7147 # so use this general approach.
7148 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7149 $lt_cdecl_hook\
7150 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7151 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7152
7153 # Transform an extracted symbol line into symbol name and symbol address
7154 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7155 $lt_c_name_hook\
7156 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7157 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7158
7159 # Transform an extracted symbol line into symbol name with lib prefix and
7160 # symbol address.
7161 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7162 $lt_c_name_lib_hook\
7163 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7164 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7165 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7166
7167 # Handle CRLF in mingw tool chain
7168 opt_cr=
7169 case $build_os in
7170 mingw*)
7171 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7172 ;;
7173 esac
7174
7175 # Try without a prefix underscore, then with it.
7176 for ac_symprfx in "" "_"; do
7177
7178 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7179 symxfrm="\\1 $ac_symprfx\\2 \\2"
7180
7181 # Write the raw and C identifiers.
7182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7183 # Fake it for dumpbin and say T for any non-static function,
7184 # D for any global variable and I for any imported variable.
7185 # Also find C++ and __fastcall symbols from MSVC++,
7186 # which start with @ or ?.
7187 lt_cv_sys_global_symbol_pipe="$AWK '"\
7188 " {last_section=section; section=\$ 3};"\
7189 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7190 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7191 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7192 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7193 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7194 " \$ 0!~/External *\|/{next};"\
7195 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7196 " {if(hide[section]) next};"\
7197 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7198 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7199 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7200 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7201 " ' prfx=^$ac_symprfx"
7202 else
7203 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7204 fi
7205 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7206
7207 # Check to see that the pipe works correctly.
7208 pipe_works=no
7209
7210 rm -f conftest*
7211 cat > conftest.$ac_ext <<_LT_EOF
7212 #ifdef __cplusplus
7213 extern "C" {
7214 #endif
7215 char nm_test_var;
7216 void nm_test_func(void);
7217 void nm_test_func(void){}
7218 #ifdef __cplusplus
7219 }
7220 #endif
7221 int main(){nm_test_var='a';nm_test_func();return(0);}
7222 _LT_EOF
7223
7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225 (eval $ac_compile) 2>&5
7226 ac_status=$?
7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; }; then
7229 # Now try to grab the symbols.
7230 nlist=conftest.nm
7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7232 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; } && test -s "$nlist"; then
7236 # Try sorting and uniquifying the output.
7237 if sort "$nlist" | uniq > "$nlist"T; then
7238 mv -f "$nlist"T "$nlist"
7239 else
7240 rm -f "$nlist"T
7241 fi
7242
7243 # Make sure that we snagged all the symbols we need.
7244 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7245 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7246 cat <<_LT_EOF > conftest.$ac_ext
7247 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7248 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7249 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7250 relocations are performed -- see ld's documentation on pseudo-relocs. */
7251 # define LT_DLSYM_CONST
7252 #elif defined __osf__
7253 /* This system does not cope well with relocations in const data. */
7254 # define LT_DLSYM_CONST
7255 #else
7256 # define LT_DLSYM_CONST const
7257 #endif
7258
7259 #ifdef __cplusplus
7260 extern "C" {
7261 #endif
7262
7263 _LT_EOF
7264 # Now generate the symbol file.
7265 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7266
7267 cat <<_LT_EOF >> conftest.$ac_ext
7268
7269 /* The mapping between symbol names and symbols. */
7270 LT_DLSYM_CONST struct {
7271 const char *name;
7272 void *address;
7273 }
7274 lt__PROGRAM__LTX_preloaded_symbols[] =
7275 {
7276 { "@PROGRAM@", (void *) 0 },
7277 _LT_EOF
7278 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7279 cat <<\_LT_EOF >> conftest.$ac_ext
7280 {0, (void *) 0}
7281 };
7282
7283 /* This works around a problem in FreeBSD linker */
7284 #ifdef FREEBSD_WORKAROUND
7285 static const void *lt_preloaded_setup() {
7286 return lt__PROGRAM__LTX_preloaded_symbols;
7287 }
7288 #endif
7289
7290 #ifdef __cplusplus
7291 }
7292 #endif
7293 _LT_EOF
7294 # Now try linking the two files.
7295 mv conftest.$ac_objext conftstm.$ac_objext
7296 lt_globsym_save_LIBS=$LIBS
7297 lt_globsym_save_CFLAGS=$CFLAGS
7298 LIBS=conftstm.$ac_objext
7299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7301 (eval $ac_link) 2>&5
7302 ac_status=$?
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7305 pipe_works=yes
7306 fi
7307 LIBS=$lt_globsym_save_LIBS
7308 CFLAGS=$lt_globsym_save_CFLAGS
7309 else
7310 echo "cannot find nm_test_func in $nlist" >&5
7311 fi
7312 else
7313 echo "cannot find nm_test_var in $nlist" >&5
7314 fi
7315 else
7316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7317 fi
7318 else
7319 echo "$progname: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 fi
7322 rm -rf conftest* conftst*
7323
7324 # Do not use the global_symbol_pipe unless it works.
7325 if test yes = "$pipe_works"; then
7326 break
7327 else
7328 lt_cv_sys_global_symbol_pipe=
7329 fi
7330 done
7331
7332 fi
7333
7334 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7335 lt_cv_sys_global_symbol_to_cdecl=
7336 fi
7337 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7339 $as_echo "failed" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7342 $as_echo "ok" >&6; }
7343 fi
7344
7345 # Response file support.
7346 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7347 nm_file_list_spec='@'
7348 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7349 nm_file_list_spec='@'
7350 fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7389 $as_echo_n "checking for sysroot... " >&6; }
7390
7391 # Check whether --with-sysroot was given.
7392 if test "${with_sysroot+set}" = set; then :
7393 withval=$with_sysroot;
7394 else
7395 with_sysroot=no
7396 fi
7397
7398
7399 lt_sysroot=
7400 case $with_sysroot in #(
7401 yes)
7402 if test yes = "$GCC"; then
7403 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7404 fi
7405 ;; #(
7406 /*)
7407 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7408 ;; #(
7409 no|'')
7410 ;; #(
7411 *)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7413 $as_echo "$with_sysroot" >&6; }
7414 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7415 ;;
7416 esac
7417
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7419 $as_echo "${lt_sysroot:-no}" >&6; }
7420
7421
7422
7423
7424
7425 # Check whether --enable-libtool-lock was given.
7426 if test "${enable_libtool_lock+set}" = set; then :
7427 enableval=$enable_libtool_lock;
7428 fi
7429
7430 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7431
7432 # Some flags need to be propagated to the compiler or linker for good
7433 # libtool support.
7434 case $host in
7435 ia64-*-hpux*)
7436 # Find out what ABI is being produced by ac_compile, and set mode
7437 # options accordingly.
7438 echo 'int i;' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 case `/usr/bin/file conftest.$ac_objext` in
7445 *ELF-32*)
7446 HPUX_IA64_MODE=32
7447 ;;
7448 *ELF-64*)
7449 HPUX_IA64_MODE=64
7450 ;;
7451 esac
7452 fi
7453 rm -rf conftest*
7454 ;;
7455 *-*-irix6*)
7456 # Find out what ABI is being produced by ac_compile, and set linker
7457 # options accordingly.
7458 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7460 (eval $ac_compile) 2>&5
7461 ac_status=$?
7462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7463 test $ac_status = 0; }; then
7464 if test yes = "$lt_cv_prog_gnu_ld"; then
7465 case `/usr/bin/file conftest.$ac_objext` in
7466 *32-bit*)
7467 LD="${LD-ld} -melf32bsmip"
7468 ;;
7469 *N32*)
7470 LD="${LD-ld} -melf32bmipn32"
7471 ;;
7472 *64-bit*)
7473 LD="${LD-ld} -melf64bmip"
7474 ;;
7475 esac
7476 else
7477 case `/usr/bin/file conftest.$ac_objext` in
7478 *32-bit*)
7479 LD="${LD-ld} -32"
7480 ;;
7481 *N32*)
7482 LD="${LD-ld} -n32"
7483 ;;
7484 *64-bit*)
7485 LD="${LD-ld} -64"
7486 ;;
7487 esac
7488 fi
7489 fi
7490 rm -rf conftest*
7491 ;;
7492
7493 mips64*-*linux*)
7494 # Find out what ABI is being produced by ac_compile, and set linker
7495 # options accordingly.
7496 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498 (eval $ac_compile) 2>&5
7499 ac_status=$?
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; }; then
7502 emul=elf
7503 case `/usr/bin/file conftest.$ac_objext` in
7504 *32-bit*)
7505 emul="${emul}32"
7506 ;;
7507 *64-bit*)
7508 emul="${emul}64"
7509 ;;
7510 esac
7511 case `/usr/bin/file conftest.$ac_objext` in
7512 *MSB*)
7513 emul="${emul}btsmip"
7514 ;;
7515 *LSB*)
7516 emul="${emul}ltsmip"
7517 ;;
7518 esac
7519 case `/usr/bin/file conftest.$ac_objext` in
7520 *N32*)
7521 emul="${emul}n32"
7522 ;;
7523 esac
7524 LD="${LD-ld} -m $emul"
7525 fi
7526 rm -rf conftest*
7527 ;;
7528
7529 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7530 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7531 # Find out what ABI is being produced by ac_compile, and set linker
7532 # options accordingly. Note that the listed cases only cover the
7533 # situations where additional linker options are needed (such as when
7534 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7535 # vice versa); the common cases where no linker options are needed do
7536 # not appear in the list.
7537 echo 'int i;' > conftest.$ac_ext
7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7539 (eval $ac_compile) 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; then
7543 case `/usr/bin/file conftest.o` in
7544 *32-bit*)
7545 case $host in
7546 x86_64-*kfreebsd*-gnu)
7547 LD="${LD-ld} -m elf_i386_fbsd"
7548 ;;
7549 x86_64-*linux*)
7550 case `/usr/bin/file conftest.o` in
7551 *x86-64*)
7552 LD="${LD-ld} -m elf32_x86_64"
7553 ;;
7554 *)
7555 LD="${LD-ld} -m elf_i386"
7556 ;;
7557 esac
7558 ;;
7559 powerpc64le-*linux*)
7560 LD="${LD-ld} -m elf32lppclinux"
7561 ;;
7562 powerpc64-*linux*)
7563 LD="${LD-ld} -m elf32ppclinux"
7564 ;;
7565 s390x-*linux*)
7566 LD="${LD-ld} -m elf_s390"
7567 ;;
7568 sparc64-*linux*)
7569 LD="${LD-ld} -m elf32_sparc"
7570 ;;
7571 esac
7572 ;;
7573 *64-bit*)
7574 case $host in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_x86_64_fbsd"
7577 ;;
7578 x86_64-*linux*)
7579 LD="${LD-ld} -m elf_x86_64"
7580 ;;
7581 powerpcle-*linux*)
7582 LD="${LD-ld} -m elf64lppc"
7583 ;;
7584 powerpc-*linux*)
7585 LD="${LD-ld} -m elf64ppc"
7586 ;;
7587 s390*-*linux*|s390*-*tpf*)
7588 LD="${LD-ld} -m elf64_s390"
7589 ;;
7590 sparc*-*linux*)
7591 LD="${LD-ld} -m elf64_sparc"
7592 ;;
7593 esac
7594 ;;
7595 esac
7596 fi
7597 rm -rf conftest*
7598 ;;
7599
7600 *-*-sco3.2v5*)
7601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7602 SAVE_CFLAGS=$CFLAGS
7603 CFLAGS="$CFLAGS -belf"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7605 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7606 if ${lt_cv_cc_needs_belf+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 ac_ext=c
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617
7618 int
7619 main ()
7620 {
7621
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"; then :
7627 lt_cv_cc_needs_belf=yes
7628 else
7629 lt_cv_cc_needs_belf=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633 ac_ext=c
7634 ac_cpp='$CPP $CPPFLAGS'
7635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7641 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7642 if test yes != "$lt_cv_cc_needs_belf"; then
7643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7644 CFLAGS=$SAVE_CFLAGS
7645 fi
7646 ;;
7647 *-*solaris*)
7648 # Find out what ABI is being produced by ac_compile, and set linker
7649 # options accordingly.
7650 echo 'int i;' > conftest.$ac_ext
7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7652 (eval $ac_compile) 2>&5
7653 ac_status=$?
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 case `/usr/bin/file conftest.o` in
7657 *64-bit*)
7658 case $lt_cv_prog_gnu_ld in
7659 yes*)
7660 case $host in
7661 i?86-*-solaris*|x86_64-*-solaris*)
7662 LD="${LD-ld} -m elf_x86_64"
7663 ;;
7664 sparc*-*-solaris*)
7665 LD="${LD-ld} -m elf64_sparc"
7666 ;;
7667 esac
7668 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7669 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7670 LD=${LD-ld}_sol2
7671 fi
7672 ;;
7673 *)
7674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7675 LD="${LD-ld} -64"
7676 fi
7677 ;;
7678 esac
7679 ;;
7680 esac
7681 fi
7682 rm -rf conftest*
7683 ;;
7684 esac
7685
7686 need_locks=$enable_libtool_lock
7687
7688 if test -n "$ac_tool_prefix"; then
7689 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7690 set dummy ${ac_tool_prefix}mt; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 if test -n "$MANIFEST_TOOL"; then
7697 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7717 if test -n "$MANIFEST_TOOL"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7719 $as_echo "$MANIFEST_TOOL" >&6; }
7720 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7728 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7729 # Extract the first word of "mt", so it can be a program name with args.
7730 set dummy mt; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 if test -n "$ac_ct_MANIFEST_TOOL"; then
7737 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7757 if test -n "$ac_ct_MANIFEST_TOOL"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7759 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7760 else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7766 MANIFEST_TOOL=":"
7767 else
7768 case $cross_compiling:$ac_tool_warned in
7769 yes:)
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7772 ac_tool_warned=yes ;;
7773 esac
7774 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7775 fi
7776 else
7777 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7778 fi
7779
7780 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7782 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7783 if ${lt_cv_path_mainfest_tool+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 lt_cv_path_mainfest_tool=no
7787 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7788 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7789 cat conftest.err >&5
7790 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7791 lt_cv_path_mainfest_tool=yes
7792 fi
7793 rm -f conftest*
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7796 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7797 if test yes != "$lt_cv_path_mainfest_tool"; then
7798 MANIFEST_TOOL=:
7799 fi
7800
7801
7802
7803
7804
7805
7806 case $host_os in
7807 rhapsody* | darwin*)
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$DSYMUTIL"; then
7817 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7837 if test -n "$DSYMUTIL"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7839 $as_echo "$DSYMUTIL" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_DSYMUTIL"; then
7848 ac_ct_DSYMUTIL=$DSYMUTIL
7849 # Extract the first word of "dsymutil", so it can be a program name with args.
7850 set dummy dsymutil; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$ac_ct_DSYMUTIL"; then
7857 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7877 if test -n "$ac_ct_DSYMUTIL"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7879 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885 if test "x$ac_ct_DSYMUTIL" = x; then
7886 DSYMUTIL=":"
7887 else
7888 case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892 ac_tool_warned=yes ;;
7893 esac
7894 DSYMUTIL=$ac_ct_DSYMUTIL
7895 fi
7896 else
7897 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7898 fi
7899
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_NMEDIT+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$NMEDIT"; then
7909 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 NMEDIT=$ac_cv_prog_NMEDIT
7929 if test -n "$NMEDIT"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7931 $as_echo "$NMEDIT" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 fi
7939 if test -z "$ac_cv_prog_NMEDIT"; then
7940 ac_ct_NMEDIT=$NMEDIT
7941 # Extract the first word of "nmedit", so it can be a program name with args.
7942 set dummy nmedit; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$ac_ct_NMEDIT"; then
7949 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7969 if test -n "$ac_ct_NMEDIT"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7971 $as_echo "$ac_ct_NMEDIT" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977 if test "x$ac_ct_NMEDIT" = x; then
7978 NMEDIT=":"
7979 else
7980 case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7985 esac
7986 NMEDIT=$ac_ct_NMEDIT
7987 fi
7988 else
7989 NMEDIT="$ac_cv_prog_NMEDIT"
7990 fi
7991
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_LIPO+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 if test -n "$LIPO"; then
8001 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 break 2
8013 fi
8014 done
8015 done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 LIPO=$ac_cv_prog_LIPO
8021 if test -n "$LIPO"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8023 $as_echo "$LIPO" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_prog_LIPO"; then
8032 ac_ct_LIPO=$LIPO
8033 # Extract the first word of "lipo", so it can be a program name with args.
8034 set dummy lipo; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 if test -n "$ac_ct_LIPO"; then
8041 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_ac_ct_LIPO="lipo"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8061 if test -n "$ac_ct_LIPO"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8063 $as_echo "$ac_ct_LIPO" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069 if test "x$ac_ct_LIPO" = x; then
8070 LIPO=":"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078 LIPO=$ac_ct_LIPO
8079 fi
8080 else
8081 LIPO="$ac_cv_prog_LIPO"
8082 fi
8083
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}otool; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_OTOOL+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$OTOOL"; then
8093 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 OTOOL=$ac_cv_prog_OTOOL
8113 if test -n "$OTOOL"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8115 $as_echo "$OTOOL" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_OTOOL"; then
8124 ac_ct_OTOOL=$OTOOL
8125 # Extract the first word of "otool", so it can be a program name with args.
8126 set dummy otool; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$ac_ct_OTOOL"; then
8133 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_ac_ct_OTOOL="otool"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8153 if test -n "$ac_ct_OTOOL"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8155 $as_echo "$ac_ct_OTOOL" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161 if test "x$ac_ct_OTOOL" = x; then
8162 OTOOL=":"
8163 else
8164 case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170 OTOOL=$ac_ct_OTOOL
8171 fi
8172 else
8173 OTOOL="$ac_cv_prog_OTOOL"
8174 fi
8175
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8178 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_OTOOL64+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 if test -n "$OTOOL64"; then
8185 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198 done
8199 done
8200 IFS=$as_save_IFS
8201
8202 fi
8203 fi
8204 OTOOL64=$ac_cv_prog_OTOOL64
8205 if test -n "$OTOOL64"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8207 $as_echo "$OTOOL64" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212
8213
8214 fi
8215 if test -z "$ac_cv_prog_OTOOL64"; then
8216 ac_ct_OTOOL64=$OTOOL64
8217 # Extract the first word of "otool64", so it can be a program name with args.
8218 set dummy otool64; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test -n "$ac_ct_OTOOL64"; then
8225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_ac_ct_OTOOL64="otool64"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242 fi
8243 fi
8244 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8245 if test -n "$ac_ct_OTOOL64"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8247 $as_echo "$ac_ct_OTOOL64" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251 fi
8252
8253 if test "x$ac_ct_OTOOL64" = x; then
8254 OTOOL64=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262 OTOOL64=$ac_ct_OTOOL64
8263 fi
8264 else
8265 OTOOL64="$ac_cv_prog_OTOOL64"
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8295 $as_echo_n "checking for -single_module linker flag... " >&6; }
8296 if ${lt_cv_apple_cc_single_mod+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 lt_cv_apple_cc_single_mod=no
8300 if test -z "$LT_MULTI_MODULE"; then
8301 # By default we will add the -single_module flag. You can override
8302 # by either setting the environment variable LT_MULTI_MODULE
8303 # non-empty at configure time, or by adding -multi_module to the
8304 # link flags.
8305 rm -rf libconftest.dylib*
8306 echo "int foo(void){return 1;}" > conftest.c
8307 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8308 -dynamiclib -Wl,-single_module conftest.c" >&5
8309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8310 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8311 _lt_result=$?
8312 # If there is a non-empty error log, and "single_module"
8313 # appears in it, assume the flag caused a linker warning
8314 if test -s conftest.err && $GREP single_module conftest.err; then
8315 cat conftest.err >&5
8316 # Otherwise, if the output was created with a 0 exit code from
8317 # the compiler, it worked.
8318 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8319 lt_cv_apple_cc_single_mod=yes
8320 else
8321 cat conftest.err >&5
8322 fi
8323 rm -rf libconftest.dylib*
8324 rm -f conftest.*
8325 fi
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8328 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8331 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8332 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 lt_cv_ld_exported_symbols_list=no
8336 save_LDFLAGS=$LDFLAGS
8337 echo "_main" > conftest.sym
8338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341
8342 int
8343 main ()
8344 {
8345
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 lt_cv_ld_exported_symbols_list=yes
8352 else
8353 lt_cv_ld_exported_symbols_list=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext conftest.$ac_ext
8357 LDFLAGS=$save_LDFLAGS
8358
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8361 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8364 $as_echo_n "checking for -force_load linker flag... " >&6; }
8365 if ${lt_cv_ld_force_load+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 lt_cv_ld_force_load=no
8369 cat > conftest.c << _LT_EOF
8370 int forced_loaded() { return 2;}
8371 _LT_EOF
8372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8374 echo "$AR cru libconftest.a conftest.o" >&5
8375 $AR cru libconftest.a conftest.o 2>&5
8376 echo "$RANLIB libconftest.a" >&5
8377 $RANLIB libconftest.a 2>&5
8378 cat > conftest.c << _LT_EOF
8379 int main() { return 0;}
8380 _LT_EOF
8381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8383 _lt_result=$?
8384 if test -s conftest.err && $GREP force_load conftest.err; then
8385 cat conftest.err >&5
8386 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8387 lt_cv_ld_force_load=yes
8388 else
8389 cat conftest.err >&5
8390 fi
8391 rm -f conftest.err libconftest.a conftest conftest.c
8392 rm -rf conftest.dSYM
8393
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8396 $as_echo "$lt_cv_ld_force_load" >&6; }
8397 case $host_os in
8398 rhapsody* | darwin1.[012])
8399 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8400 darwin1.*)
8401 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8402 darwin*) # darwin 5.x on
8403 # if running on 10.5 or later, the deployment target defaults
8404 # to the OS version, if on x86, and 10.4, the deployment
8405 # target defaults to 10.4. Don't you love it?
8406 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8407 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8409 10.[012]*)
8410 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8411 10.*)
8412 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8413 esac
8414 ;;
8415 esac
8416 if test yes = "$lt_cv_apple_cc_single_mod"; then
8417 _lt_dar_single_mod='$single_module'
8418 fi
8419 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8420 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8421 else
8422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8423 fi
8424 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8425 _lt_dsymutil='~$DSYMUTIL $lib || :'
8426 else
8427 _lt_dsymutil=
8428 fi
8429 ;;
8430 esac
8431
8432 ac_ext=c
8433 ac_cpp='$CPP $CPPFLAGS'
8434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8438 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8439 # On Suns, sometimes $CPP names a directory.
8440 if test -n "$CPP" && test -d "$CPP"; then
8441 CPP=
8442 fi
8443 if test -z "$CPP"; then
8444 if ${ac_cv_prog_CPP+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 # Double quotes because CPP needs to be expanded
8448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8449 do
8450 ac_preproc_ok=false
8451 for ac_c_preproc_warn_flag in '' yes
8452 do
8453 # Use a header file that comes with gcc, so configuring glibc
8454 # with a fresh cross-compiler works.
8455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 # <limits.h> exists even on freestanding compilers.
8457 # On the NeXT, cc -E runs the code through the compiler's parser,
8458 # not just through cpp. "Syntax error" is here to catch this case.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466 Syntax error
8467 _ACEOF
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8469
8470 else
8471 # Broken: fails on valid input.
8472 continue
8473 fi
8474 rm -f conftest.err conftest.i conftest.$ac_ext
8475
8476 # OK, works on sane cases. Now check whether nonexistent headers
8477 # can be detected and how.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <ac_nonexistent.h>
8481 _ACEOF
8482 if ac_fn_c_try_cpp "$LINENO"; then :
8483 # Broken: success on invalid input.
8484 continue
8485 else
8486 # Passes both tests.
8487 ac_preproc_ok=:
8488 break
8489 fi
8490 rm -f conftest.err conftest.i conftest.$ac_ext
8491
8492 done
8493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494 rm -f conftest.i conftest.err conftest.$ac_ext
8495 if $ac_preproc_ok; then :
8496 break
8497 fi
8498
8499 done
8500 ac_cv_prog_CPP=$CPP
8501
8502 fi
8503 CPP=$ac_cv_prog_CPP
8504 else
8505 ac_cv_prog_CPP=$CPP
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8508 $as_echo "$CPP" >&6; }
8509 ac_preproc_ok=false
8510 for ac_c_preproc_warn_flag in '' yes
8511 do
8512 # Use a header file that comes with gcc, so configuring glibc
8513 # with a fresh cross-compiler works.
8514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515 # <limits.h> exists even on freestanding compilers.
8516 # On the NeXT, cc -E runs the code through the compiler's parser,
8517 # not just through cpp. "Syntax error" is here to catch this case.
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #ifdef __STDC__
8521 # include <limits.h>
8522 #else
8523 # include <assert.h>
8524 #endif
8525 Syntax error
8526 _ACEOF
8527 if ac_fn_c_try_cpp "$LINENO"; then :
8528
8529 else
8530 # Broken: fails on valid input.
8531 continue
8532 fi
8533 rm -f conftest.err conftest.i conftest.$ac_ext
8534
8535 # OK, works on sane cases. Now check whether nonexistent headers
8536 # can be detected and how.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 #include <ac_nonexistent.h>
8540 _ACEOF
8541 if ac_fn_c_try_cpp "$LINENO"; then :
8542 # Broken: success on invalid input.
8543 continue
8544 else
8545 # Passes both tests.
8546 ac_preproc_ok=:
8547 break
8548 fi
8549 rm -f conftest.err conftest.i conftest.$ac_ext
8550
8551 done
8552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8553 rm -f conftest.i conftest.err conftest.$ac_ext
8554 if $ac_preproc_ok; then :
8555
8556 else
8557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8559 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8560 See \`config.log' for more details" "$LINENO" 5; }
8561 fi
8562
8563 ac_ext=c
8564 ac_cpp='$CPP $CPPFLAGS'
8565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8568
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8571 $as_echo_n "checking for ANSI C header files... " >&6; }
8572 if ${ac_cv_header_stdc+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <stdlib.h>
8578 #include <stdarg.h>
8579 #include <string.h>
8580 #include <float.h>
8581
8582 int
8583 main ()
8584 {
8585
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 ac_cv_header_stdc=yes
8592 else
8593 ac_cv_header_stdc=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596
8597 if test $ac_cv_header_stdc = yes; then
8598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 #include <string.h>
8602
8603 _ACEOF
8604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8605 $EGREP "memchr" >/dev/null 2>&1; then :
8606
8607 else
8608 ac_cv_header_stdc=no
8609 fi
8610 rm -f conftest*
8611
8612 fi
8613
8614 if test $ac_cv_header_stdc = yes; then
8615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <stdlib.h>
8619
8620 _ACEOF
8621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8622 $EGREP "free" >/dev/null 2>&1; then :
8623
8624 else
8625 ac_cv_header_stdc=no
8626 fi
8627 rm -f conftest*
8628
8629 fi
8630
8631 if test $ac_cv_header_stdc = yes; then
8632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8633 if test "$cross_compiling" = yes; then :
8634 :
8635 else
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <ctype.h>
8639 #include <stdlib.h>
8640 #if ((' ' & 0x0FF) == 0x020)
8641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8643 #else
8644 # define ISLOWER(c) \
8645 (('a' <= (c) && (c) <= 'i') \
8646 || ('j' <= (c) && (c) <= 'r') \
8647 || ('s' <= (c) && (c) <= 'z'))
8648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8649 #endif
8650
8651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8652 int
8653 main ()
8654 {
8655 int i;
8656 for (i = 0; i < 256; i++)
8657 if (XOR (islower (i), ISLOWER (i))
8658 || toupper (i) != TOUPPER (i))
8659 return 2;
8660 return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_c_try_run "$LINENO"; then :
8664
8665 else
8666 ac_cv_header_stdc=no
8667 fi
8668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8669 conftest.$ac_objext conftest.beam conftest.$ac_ext
8670 fi
8671
8672 fi
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8675 $as_echo "$ac_cv_header_stdc" >&6; }
8676 if test $ac_cv_header_stdc = yes; then
8677
8678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8679
8680 fi
8681
8682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8684 inttypes.h stdint.h unistd.h
8685 do :
8686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8688 "
8689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8690 cat >>confdefs.h <<_ACEOF
8691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692 _ACEOF
8693
8694 fi
8695
8696 done
8697
8698
8699 for ac_header in dlfcn.h
8700 do :
8701 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8702 "
8703 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_DLFCN_H 1
8706 _ACEOF
8707
8708 fi
8709
8710 done
8711
8712
8713
8714
8715 func_stripname_cnf ()
8716 {
8717 case $2 in
8718 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8719 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8720 esac
8721 } # func_stripname_cnf
8722
8723
8724
8725
8726
8727 # Set options
8728
8729
8730
8731 enable_dlopen=no
8732
8733
8734 enable_win32_dll=no
8735
8736
8737 # Check whether --enable-shared was given.
8738 if test "${enable_shared+set}" = set; then :
8739 enableval=$enable_shared; p=${PACKAGE-default}
8740 case $enableval in
8741 yes) enable_shared=yes ;;
8742 no) enable_shared=no ;;
8743 *)
8744 enable_shared=no
8745 # Look at the argument we got. We use all the common list separators.
8746 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8747 for pkg in $enableval; do
8748 IFS=$lt_save_ifs
8749 if test "X$pkg" = "X$p"; then
8750 enable_shared=yes
8751 fi
8752 done
8753 IFS=$lt_save_ifs
8754 ;;
8755 esac
8756 else
8757 enable_shared=yes
8758 fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768 # Check whether --enable-static was given.
8769 if test "${enable_static+set}" = set; then :
8770 enableval=$enable_static; p=${PACKAGE-default}
8771 case $enableval in
8772 yes) enable_static=yes ;;
8773 no) enable_static=no ;;
8774 *)
8775 enable_static=no
8776 # Look at the argument we got. We use all the common list separators.
8777 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8778 for pkg in $enableval; do
8779 IFS=$lt_save_ifs
8780 if test "X$pkg" = "X$p"; then
8781 enable_static=yes
8782 fi
8783 done
8784 IFS=$lt_save_ifs
8785 ;;
8786 esac
8787 else
8788 enable_static=yes
8789 fi
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 # Check whether --with-pic was given.
8801 if test "${with_pic+set}" = set; then :
8802 withval=$with_pic; lt_p=${PACKAGE-default}
8803 case $withval in
8804 yes|no) pic_mode=$withval ;;
8805 *)
8806 pic_mode=default
8807 # Look at the argument we got. We use all the common list separators.
8808 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8809 for lt_pkg in $withval; do
8810 IFS=$lt_save_ifs
8811 if test "X$lt_pkg" = "X$lt_p"; then
8812 pic_mode=yes
8813 fi
8814 done
8815 IFS=$lt_save_ifs
8816 ;;
8817 esac
8818 else
8819 pic_mode=default
8820 fi
8821
8822
8823
8824
8825
8826
8827
8828
8829 # Check whether --enable-fast-install was given.
8830 if test "${enable_fast_install+set}" = set; then :
8831 enableval=$enable_fast_install; p=${PACKAGE-default}
8832 case $enableval in
8833 yes) enable_fast_install=yes ;;
8834 no) enable_fast_install=no ;;
8835 *)
8836 enable_fast_install=no
8837 # Look at the argument we got. We use all the common list separators.
8838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8839 for pkg in $enableval; do
8840 IFS=$lt_save_ifs
8841 if test "X$pkg" = "X$p"; then
8842 enable_fast_install=yes
8843 fi
8844 done
8845 IFS=$lt_save_ifs
8846 ;;
8847 esac
8848 else
8849 enable_fast_install=yes
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 # This can be used to rebuild libtool when needed
8863 LIBTOOL_DEPS=$ltmain
8864
8865 # Always use our own libtool.
8866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 test -z "$LN_S" && LN_S="ln -s"
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 if test -n "${ZSH_VERSION+set}"; then
8913 setopt NO_GLOB_SUBST
8914 fi
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8917 $as_echo_n "checking for objdir... " >&6; }
8918 if ${lt_cv_objdir+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 rm -f .libs 2>/dev/null
8922 mkdir .libs 2>/dev/null
8923 if test -d .libs; then
8924 lt_cv_objdir=.libs
8925 else
8926 # MS-DOS does not allow filenames that begin with a dot.
8927 lt_cv_objdir=_libs
8928 fi
8929 rmdir .libs 2>/dev/null
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8932 $as_echo "$lt_cv_objdir" >&6; }
8933 objdir=$lt_cv_objdir
8934
8935
8936
8937
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define LT_OBJDIR "$lt_cv_objdir/"
8941 _ACEOF
8942
8943
8944
8945
8946 case $host_os in
8947 aix3*)
8948 # AIX sometimes has problems with the GCC collect2 program. For some
8949 # reason, if we set the COLLECT_NAMES environment variable, the problems
8950 # vanish in a puff of smoke.
8951 if test set != "${COLLECT_NAMES+set}"; then
8952 COLLECT_NAMES=
8953 export COLLECT_NAMES
8954 fi
8955 ;;
8956 esac
8957
8958 # Global variables:
8959 ofile=libtool
8960 can_build_shared=yes
8961
8962 # All known linkers require a '.a' archive for static linking (except MSVC,
8963 # which needs '.lib').
8964 libext=a
8965
8966 with_gnu_ld=$lt_cv_prog_gnu_ld
8967
8968 old_CC=$CC
8969 old_CFLAGS=$CFLAGS
8970
8971 # Set sane defaults for various variables
8972 test -z "$CC" && CC=cc
8973 test -z "$LTCC" && LTCC=$CC
8974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8975 test -z "$LD" && LD=ld
8976 test -z "$ac_objext" && ac_objext=o
8977
8978 for cc_temp in $compiler""; do
8979 case $cc_temp in
8980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8982 \-*) ;;
8983 *) break;;
8984 esac
8985 done
8986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8987
8988
8989 # Only perform the check for file, if the check method requires it
8990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8991 case $deplibs_check_method in
8992 file_magic*)
8993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $MAGIC_CMD in
9000 [\\/*] | ?:[\\/]*)
9001 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9002 ;;
9003 *)
9004 lt_save_MAGIC_CMD=$MAGIC_CMD
9005 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9007 for ac_dir in $ac_dummy; do
9008 IFS=$lt_save_ifs
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9011 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9012 if test -n "$file_magic_test_file"; then
9013 case $deplibs_check_method in
9014 "file_magic "*)
9015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9018 $EGREP "$file_magic_regex" > /dev/null; then
9019 :
9020 else
9021 cat <<_LT_EOF 1>&2
9022
9023 *** Warning: the command libtool uses to detect shared libraries,
9024 *** $file_magic_cmd, produces output that libtool cannot recognize.
9025 *** The result is that libtool may fail to recognize shared libraries
9026 *** as such. This will affect the creation of libtool libraries that
9027 *** depend on shared libraries, but programs linked with such libtool
9028 *** libraries will work regardless of this problem. Nevertheless, you
9029 *** may want to report the problem to your system manager and/or to
9030 *** [email protected]
9031
9032 _LT_EOF
9033 fi ;;
9034 esac
9035 fi
9036 break
9037 fi
9038 done
9039 IFS=$lt_save_ifs
9040 MAGIC_CMD=$lt_save_MAGIC_CMD
9041 ;;
9042 esac
9043 fi
9044
9045 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9046 if test -n "$MAGIC_CMD"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048 $as_echo "$MAGIC_CMD" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 fi
9053
9054
9055
9056
9057
9058 if test -z "$lt_cv_path_MAGIC_CMD"; then
9059 if test -n "$ac_tool_prefix"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9061 $as_echo_n "checking for file... " >&6; }
9062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 case $MAGIC_CMD in
9066 [\\/*] | ?:[\\/]*)
9067 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9068 ;;
9069 *)
9070 lt_save_MAGIC_CMD=$MAGIC_CMD
9071 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9073 for ac_dir in $ac_dummy; do
9074 IFS=$lt_save_ifs
9075 test -z "$ac_dir" && ac_dir=.
9076 if test -f "$ac_dir/file"; then
9077 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9078 if test -n "$file_magic_test_file"; then
9079 case $deplibs_check_method in
9080 "file_magic "*)
9081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9082 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9084 $EGREP "$file_magic_regex" > /dev/null; then
9085 :
9086 else
9087 cat <<_LT_EOF 1>&2
9088
9089 *** Warning: the command libtool uses to detect shared libraries,
9090 *** $file_magic_cmd, produces output that libtool cannot recognize.
9091 *** The result is that libtool may fail to recognize shared libraries
9092 *** as such. This will affect the creation of libtool libraries that
9093 *** depend on shared libraries, but programs linked with such libtool
9094 *** libraries will work regardless of this problem. Nevertheless, you
9095 *** may want to report the problem to your system manager and/or to
9096 *** [email protected]
9097
9098 _LT_EOF
9099 fi ;;
9100 esac
9101 fi
9102 break
9103 fi
9104 done
9105 IFS=$lt_save_ifs
9106 MAGIC_CMD=$lt_save_MAGIC_CMD
9107 ;;
9108 esac
9109 fi
9110
9111 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9112 if test -n "$MAGIC_CMD"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9114 $as_echo "$MAGIC_CMD" >&6; }
9115 else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119
9120
9121 else
9122 MAGIC_CMD=:
9123 fi
9124 fi
9125
9126 fi
9127 ;;
9128 esac
9129
9130 # Use C for the default configuration in the libtool script
9131
9132 lt_save_CC=$CC
9133 ac_ext=c
9134 ac_cpp='$CPP $CPPFLAGS'
9135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9138
9139
9140 # Source file extension for C test sources.
9141 ac_ext=c
9142
9143 # Object file extension for compiled C test sources.
9144 objext=o
9145 objext=$objext
9146
9147 # Code to be used in simple compile tests
9148 lt_simple_compile_test_code="int some_variable = 0;"
9149
9150 # Code to be used in simple link tests
9151 lt_simple_link_test_code='int main(){return(0);}'
9152
9153
9154
9155
9156
9157
9158
9159 # If no C compiler was specified, use CC.
9160 LTCC=${LTCC-"$CC"}
9161
9162 # If no C compiler flags were specified, use CFLAGS.
9163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9164
9165 # Allow CC to be a program name with arguments.
9166 compiler=$CC
9167
9168 # Save the default compiler, since it gets overwritten when the other
9169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9170 compiler_DEFAULT=$CC
9171
9172 # save warnings/boilerplate of simple test code
9173 ac_outfile=conftest.$ac_objext
9174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9176 _lt_compiler_boilerplate=`cat conftest.err`
9177 $RM conftest*
9178
9179 ac_outfile=conftest.$ac_objext
9180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9182 _lt_linker_boilerplate=`cat conftest.err`
9183 $RM -r conftest*
9184
9185
9186 ## CAVEAT EMPTOR:
9187 ## There is no encapsulation within the following macros, do not change
9188 ## the running order or otherwise move them around unless you know exactly
9189 ## what you are doing...
9190 if test -n "$compiler"; then
9191
9192 lt_prog_compiler_no_builtin_flag=
9193
9194 if test yes = "$GCC"; then
9195 case $cc_basename in
9196 nvcc*)
9197 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9198 *)
9199 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9200 esac
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9203 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9204 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 lt_cv_prog_compiler_rtti_exceptions=no
9208 ac_outfile=conftest.$ac_objext
9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9210 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9211 # Insert the option either (1) after the last *FLAGS variable, or
9212 # (2) before a word containing "conftest.", or (3) at the end.
9213 # Note that $ac_compile itself does not contain backslashes and begins
9214 # with a dollar sign (not a hyphen), so the echo should work correctly.
9215 # The option is referenced via a variable to avoid confusing sed.
9216 lt_compile=`echo "$ac_compile" | $SED \
9217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9219 -e 's:$: $lt_compiler_flag:'`
9220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9221 (eval "$lt_compile" 2>conftest.err)
9222 ac_status=$?
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 if (exit $ac_status) && test -s "$ac_outfile"; then
9226 # The compiler can only warn and ignore the option if not recognized
9227 # So say no if there are warnings other than the usual output.
9228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9231 lt_cv_prog_compiler_rtti_exceptions=yes
9232 fi
9233 fi
9234 $RM conftest*
9235
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9238 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9239
9240 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9241 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9242 else
9243 :
9244 fi
9245
9246 fi
9247
9248
9249
9250
9251
9252
9253 lt_prog_compiler_wl=
9254 lt_prog_compiler_pic=
9255 lt_prog_compiler_static=
9256
9257
9258 if test yes = "$GCC"; then
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_static='-static'
9261
9262 case $host_os in
9263 aix*)
9264 # All AIX code is PIC.
9265 if test ia64 = "$host_cpu"; then
9266 # AIX 5 now supports IA64 processor
9267 lt_prog_compiler_static='-Bstatic'
9268 fi
9269 lt_prog_compiler_pic='-fPIC'
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 lt_prog_compiler_pic='-fPIC'
9277 ;;
9278 m68k)
9279 # FIXME: we need at least 68020 code to build shared libraries, but
9280 # adding the '-m68020' flag to GCC prevents building anything better,
9281 # like '-m68040'.
9282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9283 ;;
9284 esac
9285 ;;
9286
9287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9288 # PIC is the default for these OSes.
9289 ;;
9290
9291 mingw* | cygwin* | pw32* | os2* | cegcc*)
9292 # This hack is so that the source file can tell whether it is being
9293 # built for inclusion in a dll (and should export symbols for example).
9294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9295 # (--disable-auto-import) libraries
9296 lt_prog_compiler_pic='-DDLL_EXPORT'
9297 ;;
9298
9299 darwin* | rhapsody*)
9300 # PIC is the default on this platform
9301 # Common symbols not allowed in MH_DYLIB files
9302 lt_prog_compiler_pic='-fno-common'
9303 ;;
9304
9305 haiku*)
9306 # PIC is the default for Haiku.
9307 # The "-static" flag exists, but is broken.
9308 lt_prog_compiler_static=
9309 ;;
9310
9311 hpux*)
9312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9314 # sets the default TLS model and affects inlining.
9315 case $host_cpu in
9316 hppa*64*)
9317 # +Z the default
9318 ;;
9319 *)
9320 lt_prog_compiler_pic='-fPIC'
9321 ;;
9322 esac
9323 ;;
9324
9325 interix[3-9]*)
9326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9327 # Instead, we relocate shared libraries at runtime.
9328 ;;
9329
9330 msdosdjgpp*)
9331 # Just because we use GCC doesn't mean we suddenly get shared libraries
9332 # on systems that don't support them.
9333 lt_prog_compiler_can_build_shared=no
9334 enable_shared=no
9335 ;;
9336
9337 *nto* | *qnx*)
9338 # QNX uses GNU C++, but need to define -shared option too, otherwise
9339 # it will coredump.
9340 lt_prog_compiler_pic='-fPIC -shared'
9341 ;;
9342
9343 sysv4*MP*)
9344 if test -d /usr/nec; then
9345 lt_prog_compiler_pic=-Kconform_pic
9346 fi
9347 ;;
9348
9349 *)
9350 lt_prog_compiler_pic='-fPIC'
9351 ;;
9352 esac
9353
9354 case $cc_basename in
9355 nvcc*) # Cuda Compiler Driver 2.2
9356 lt_prog_compiler_wl='-Xlinker '
9357 if test -n "$lt_prog_compiler_pic"; then
9358 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9359 fi
9360 ;;
9361 esac
9362 else
9363 # PORTME Check for flag to pass linker flags through the system compiler.
9364 case $host_os in
9365 aix*)
9366 lt_prog_compiler_wl='-Wl,'
9367 if test ia64 = "$host_cpu"; then
9368 # AIX 5 now supports IA64 processor
9369 lt_prog_compiler_static='-Bstatic'
9370 else
9371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9372 fi
9373 ;;
9374
9375 darwin* | rhapsody*)
9376 # PIC is the default on this platform
9377 # Common symbols not allowed in MH_DYLIB files
9378 lt_prog_compiler_pic='-fno-common'
9379 case $cc_basename in
9380 nagfor*)
9381 # NAG Fortran compiler
9382 lt_prog_compiler_wl='-Wl,-Wl,,'
9383 lt_prog_compiler_pic='-PIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 ;;
9386 esac
9387 ;;
9388
9389 mingw* | cygwin* | pw32* | os2* | cegcc*)
9390 # This hack is so that the source file can tell whether it is being
9391 # built for inclusion in a dll (and should export symbols for example).
9392 lt_prog_compiler_pic='-DDLL_EXPORT'
9393 ;;
9394
9395 hpux9* | hpux10* | hpux11*)
9396 lt_prog_compiler_wl='-Wl,'
9397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9398 # not for PA HP-UX.
9399 case $host_cpu in
9400 hppa*64*|ia64*)
9401 # +Z the default
9402 ;;
9403 *)
9404 lt_prog_compiler_pic='+Z'
9405 ;;
9406 esac
9407 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9408 lt_prog_compiler_static='$wl-a ${wl}archive'
9409 ;;
9410
9411 irix5* | irix6* | nonstopux*)
9412 lt_prog_compiler_wl='-Wl,'
9413 # PIC (with -KPIC) is the default.
9414 lt_prog_compiler_static='-non_shared'
9415 ;;
9416
9417 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9418 case $cc_basename in
9419 # old Intel for x86_64, which still supported -KPIC.
9420 ecc*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-static'
9424 ;;
9425 # icc used to be incompatible with GCC.
9426 # ICC 10 doesn't accept -KPIC any more.
9427 icc* | ifort*)
9428 lt_prog_compiler_wl='-Wl,'
9429 lt_prog_compiler_pic='-fPIC'
9430 lt_prog_compiler_static='-static'
9431 ;;
9432 # Lahey Fortran 8.1.
9433 lf95*)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='--shared'
9436 lt_prog_compiler_static='--static'
9437 ;;
9438 nagfor*)
9439 # NAG Fortran compiler
9440 lt_prog_compiler_wl='-Wl,-Wl,,'
9441 lt_prog_compiler_pic='-PIC'
9442 lt_prog_compiler_static='-Bstatic'
9443 ;;
9444 tcc*)
9445 # Fabrice Bellard et al's Tiny C Compiler
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-fPIC'
9448 lt_prog_compiler_static='-static'
9449 ;;
9450 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9451 # Portland Group compilers (*not* the Pentium gcc compiler,
9452 # which looks to be a dead project)
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_pic='-fpic'
9455 lt_prog_compiler_static='-Bstatic'
9456 ;;
9457 ccc*)
9458 lt_prog_compiler_wl='-Wl,'
9459 # All Alpha code is PIC.
9460 lt_prog_compiler_static='-non_shared'
9461 ;;
9462 xl* | bgxl* | bgf* | mpixl*)
9463 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9464 lt_prog_compiler_wl='-Wl,'
9465 lt_prog_compiler_pic='-qpic'
9466 lt_prog_compiler_static='-qstaticlink'
9467 ;;
9468 *)
9469 case `$CC -V 2>&1 | sed 5q` in
9470 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9471 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9472 lt_prog_compiler_pic='-KPIC'
9473 lt_prog_compiler_static='-Bstatic'
9474 lt_prog_compiler_wl=''
9475 ;;
9476 *Sun\ F* | *Sun*Fortran*)
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-Bstatic'
9479 lt_prog_compiler_wl='-Qoption ld '
9480 ;;
9481 *Sun\ C*)
9482 # Sun C 5.9
9483 lt_prog_compiler_pic='-KPIC'
9484 lt_prog_compiler_static='-Bstatic'
9485 lt_prog_compiler_wl='-Wl,'
9486 ;;
9487 *Intel*\ [CF]*Compiler*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-fPIC'
9490 lt_prog_compiler_static='-static'
9491 ;;
9492 *Portland\ Group*)
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-fpic'
9495 lt_prog_compiler_static='-Bstatic'
9496 ;;
9497 esac
9498 ;;
9499 esac
9500 ;;
9501
9502 newsos6)
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-Bstatic'
9505 ;;
9506
9507 *nto* | *qnx*)
9508 # QNX uses GNU C++, but need to define -shared option too, otherwise
9509 # it will coredump.
9510 lt_prog_compiler_pic='-fPIC -shared'
9511 ;;
9512
9513 osf3* | osf4* | osf5*)
9514 lt_prog_compiler_wl='-Wl,'
9515 # All OSF/1 code is PIC.
9516 lt_prog_compiler_static='-non_shared'
9517 ;;
9518
9519 rdos*)
9520 lt_prog_compiler_static='-non_shared'
9521 ;;
9522
9523 solaris*)
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9526 case $cc_basename in
9527 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9528 lt_prog_compiler_wl='-Qoption ld ';;
9529 *)
9530 lt_prog_compiler_wl='-Wl,';;
9531 esac
9532 ;;
9533
9534 sunos4*)
9535 lt_prog_compiler_wl='-Qoption ld '
9536 lt_prog_compiler_pic='-PIC'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9539
9540 sysv4 | sysv4.2uw2* | sysv4.3*)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='-KPIC'
9543 lt_prog_compiler_static='-Bstatic'
9544 ;;
9545
9546 sysv4*MP*)
9547 if test -d /usr/nec; then
9548 lt_prog_compiler_pic='-Kconform_pic'
9549 lt_prog_compiler_static='-Bstatic'
9550 fi
9551 ;;
9552
9553 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9554 lt_prog_compiler_wl='-Wl,'
9555 lt_prog_compiler_pic='-KPIC'
9556 lt_prog_compiler_static='-Bstatic'
9557 ;;
9558
9559 unicos*)
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_can_build_shared=no
9562 ;;
9563
9564 uts4*)
9565 lt_prog_compiler_pic='-pic'
9566 lt_prog_compiler_static='-Bstatic'
9567 ;;
9568
9569 *)
9570 lt_prog_compiler_can_build_shared=no
9571 ;;
9572 esac
9573 fi
9574
9575 case $host_os in
9576 # For platforms that do not support PIC, -DPIC is meaningless:
9577 *djgpp*)
9578 lt_prog_compiler_pic=
9579 ;;
9580 *)
9581 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9582 ;;
9583 esac
9584
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9586 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9587 if ${lt_cv_prog_compiler_pic+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9593 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9594 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9595
9596 #
9597 # Check to make sure the PIC flag actually works.
9598 #
9599 if test -n "$lt_prog_compiler_pic"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9601 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9602 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 lt_cv_prog_compiler_pic_works=no
9606 ac_outfile=conftest.$ac_objext
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9609 # Insert the option either (1) after the last *FLAGS variable, or
9610 # (2) before a word containing "conftest.", or (3) at the end.
9611 # Note that $ac_compile itself does not contain backslashes and begins
9612 # with a dollar sign (not a hyphen), so the echo should work correctly.
9613 # The option is referenced via a variable to avoid confusing sed.
9614 lt_compile=`echo "$ac_compile" | $SED \
9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617 -e 's:$: $lt_compiler_flag:'`
9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619 (eval "$lt_compile" 2>conftest.err)
9620 ac_status=$?
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 if (exit $ac_status) && test -s "$ac_outfile"; then
9624 # The compiler can only warn and ignore the option if not recognized
9625 # So say no if there are warnings other than the usual output.
9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9629 lt_cv_prog_compiler_pic_works=yes
9630 fi
9631 fi
9632 $RM conftest*
9633
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9636 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9637
9638 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9639 case $lt_prog_compiler_pic in
9640 "" | " "*) ;;
9641 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9642 esac
9643 else
9644 lt_prog_compiler_pic=
9645 lt_prog_compiler_can_build_shared=no
9646 fi
9647
9648 fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660 #
9661 # Check to make sure the static flag actually works.
9662 #
9663 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9665 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9666 if ${lt_cv_prog_compiler_static_works+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 lt_cv_prog_compiler_static_works=no
9670 save_LDFLAGS=$LDFLAGS
9671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9674 # The linker can only warn and ignore the option if not recognized
9675 # So say no if there are warnings
9676 if test -s conftest.err; then
9677 # Append any errors to the config.log.
9678 cat conftest.err 1>&5
9679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9681 if diff conftest.exp conftest.er2 >/dev/null; then
9682 lt_cv_prog_compiler_static_works=yes
9683 fi
9684 else
9685 lt_cv_prog_compiler_static_works=yes
9686 fi
9687 fi
9688 $RM -r conftest*
9689 LDFLAGS=$save_LDFLAGS
9690
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9693 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9694
9695 if test yes = "$lt_cv_prog_compiler_static_works"; then
9696 :
9697 else
9698 lt_prog_compiler_static=
9699 fi
9700
9701
9702
9703
9704
9705
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9709 if ${lt_cv_prog_compiler_c_o+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 lt_cv_prog_compiler_c_o=no
9713 $RM -r conftest 2>/dev/null
9714 mkdir conftest
9715 cd conftest
9716 mkdir out
9717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9718
9719 lt_compiler_flag="-o out/conftest2.$ac_objext"
9720 # Insert the option either (1) after the last *FLAGS variable, or
9721 # (2) before a word containing "conftest.", or (3) at the end.
9722 # Note that $ac_compile itself does not contain backslashes and begins
9723 # with a dollar sign (not a hyphen), so the echo should work correctly.
9724 lt_compile=`echo "$ac_compile" | $SED \
9725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9727 -e 's:$: $lt_compiler_flag:'`
9728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9729 (eval "$lt_compile" 2>out/conftest.err)
9730 ac_status=$?
9731 cat out/conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9734 then
9735 # The compiler can only warn and ignore the option if not recognized
9736 # So say no if there are warnings
9737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9740 lt_cv_prog_compiler_c_o=yes
9741 fi
9742 fi
9743 chmod u+w . 2>&5
9744 $RM conftest*
9745 # SGI C++ compiler will create directory out/ii_files/ for
9746 # template instantiation
9747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9748 $RM out/* && rmdir out
9749 cd ..
9750 $RM -r conftest
9751 $RM conftest*
9752
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9755 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9756
9757
9758
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9764 if ${lt_cv_prog_compiler_c_o+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 lt_cv_prog_compiler_c_o=no
9768 $RM -r conftest 2>/dev/null
9769 mkdir conftest
9770 cd conftest
9771 mkdir out
9772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9773
9774 lt_compiler_flag="-o out/conftest2.$ac_objext"
9775 # Insert the option either (1) after the last *FLAGS variable, or
9776 # (2) before a word containing "conftest.", or (3) at the end.
9777 # Note that $ac_compile itself does not contain backslashes and begins
9778 # with a dollar sign (not a hyphen), so the echo should work correctly.
9779 lt_compile=`echo "$ac_compile" | $SED \
9780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9782 -e 's:$: $lt_compiler_flag:'`
9783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9784 (eval "$lt_compile" 2>out/conftest.err)
9785 ac_status=$?
9786 cat out/conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9789 then
9790 # The compiler can only warn and ignore the option if not recognized
9791 # So say no if there are warnings
9792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9795 lt_cv_prog_compiler_c_o=yes
9796 fi
9797 fi
9798 chmod u+w . 2>&5
9799 $RM conftest*
9800 # SGI C++ compiler will create directory out/ii_files/ for
9801 # template instantiation
9802 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9803 $RM out/* && rmdir out
9804 cd ..
9805 $RM -r conftest
9806 $RM conftest*
9807
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9810 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9811
9812
9813
9814
9815 hard_links=nottested
9816 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9817 # do not overwrite the value of need_locks provided by the user
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9819 $as_echo_n "checking if we can lock with hard links... " >&6; }
9820 hard_links=yes
9821 $RM conftest*
9822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9823 touch conftest.a
9824 ln conftest.a conftest.b 2>&5 || hard_links=no
9825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9827 $as_echo "$hard_links" >&6; }
9828 if test no = "$hard_links"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9830 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9831 need_locks=warn
9832 fi
9833 else
9834 need_locks=no
9835 fi
9836
9837
9838
9839
9840
9841
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9844
9845 runpath_var=
9846 allow_undefined_flag=
9847 always_export_symbols=no
9848 archive_cmds=
9849 archive_expsym_cmds=
9850 compiler_needs_object=no
9851 enable_shared_with_static_runtimes=no
9852 export_dynamic_flag_spec=
9853 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9854 hardcode_automatic=no
9855 hardcode_direct=no
9856 hardcode_direct_absolute=no
9857 hardcode_libdir_flag_spec=
9858 hardcode_libdir_separator=
9859 hardcode_minus_L=no
9860 hardcode_shlibpath_var=unsupported
9861 inherit_rpath=no
9862 link_all_deplibs=unknown
9863 module_cmds=
9864 module_expsym_cmds=
9865 old_archive_from_new_cmds=
9866 old_archive_from_expsyms_cmds=
9867 thread_safe_flag_spec=
9868 whole_archive_flag_spec=
9869 # include_expsyms should be a list of space-separated symbols to be *always*
9870 # included in the symbol list
9871 include_expsyms=
9872 # exclude_expsyms can be an extended regexp of symbols to exclude
9873 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9874 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9875 # as well as any symbol that contains 'd'.
9876 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9878 # platforms (ab)use it in PIC code, but their linkers get confused if
9879 # the symbol is explicitly referenced. Since portable code cannot
9880 # rely on this symbol name, it's probably fine to never include it in
9881 # preloaded symbol tables.
9882 # Exclude shared library initialization/finalization symbols.
9883 extract_expsyms_cmds=
9884
9885 case $host_os in
9886 cygwin* | mingw* | pw32* | cegcc*)
9887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9888 # When not using gcc, we currently assume that we are using
9889 # Microsoft Visual C++.
9890 if test yes != "$GCC"; then
9891 with_gnu_ld=no
9892 fi
9893 ;;
9894 interix*)
9895 # we just hope/assume this is gcc and not c89 (= MSVC++)
9896 with_gnu_ld=yes
9897 ;;
9898 openbsd* | bitrig*)
9899 with_gnu_ld=no
9900 ;;
9901 esac
9902
9903 ld_shlibs=yes
9904
9905 # On some targets, GNU ld is compatible enough with the native linker
9906 # that we're better off using the native interface for both.
9907 lt_use_gnu_ld_interface=no
9908 if test yes = "$with_gnu_ld"; then
9909 case $host_os in
9910 aix*)
9911 # The AIX port of GNU ld has always aspired to compatibility
9912 # with the native linker. However, as the warning in the GNU ld
9913 # block says, versions before 2.19.5* couldn't really create working
9914 # shared libraries, regardless of the interface used.
9915 case `$LD -v 2>&1` in
9916 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9917 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9918 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9919 *)
9920 lt_use_gnu_ld_interface=yes
9921 ;;
9922 esac
9923 ;;
9924 *)
9925 lt_use_gnu_ld_interface=yes
9926 ;;
9927 esac
9928 fi
9929
9930 if test yes = "$lt_use_gnu_ld_interface"; then
9931 # If archive_cmds runs LD, not CC, wlarc should be empty
9932 wlarc='$wl'
9933
9934 # Set some defaults for GNU ld with shared library support. These
9935 # are reset later if shared libraries are not supported. Putting them
9936 # here allows them to be overridden if necessary.
9937 runpath_var=LD_RUN_PATH
9938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9939 export_dynamic_flag_spec='$wl--export-dynamic'
9940 # ancient GNU ld didn't support --whole-archive et. al.
9941 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9942 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9943 else
9944 whole_archive_flag_spec=
9945 fi
9946 supports_anon_versioning=no
9947 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9948 *GNU\ gold*) supports_anon_versioning=yes ;;
9949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9952 *\ 2.11.*) ;; # other 2.11 versions
9953 *) supports_anon_versioning=yes ;;
9954 esac
9955
9956 # See if GNU ld supports shared libraries.
9957 case $host_os in
9958 aix[3-9]*)
9959 # On AIX/PPC, the GNU linker is very broken
9960 if test ia64 != "$host_cpu"; then
9961 ld_shlibs=no
9962 cat <<_LT_EOF 1>&2
9963
9964 *** Warning: the GNU linker, at least up to release 2.19, is reported
9965 *** to be unable to reliably create shared libraries on AIX.
9966 *** Therefore, libtool is disabling shared libraries support. If you
9967 *** really care for shared libraries, you may want to install binutils
9968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9969 *** You will then need to restart the configuration process.
9970
9971 _LT_EOF
9972 fi
9973 ;;
9974
9975 amigaos*)
9976 case $host_cpu in
9977 powerpc)
9978 # see comment about AmigaOS4 .so support
9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9980 archive_expsym_cmds=''
9981 ;;
9982 m68k)
9983 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)'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_minus_L=yes
9986 ;;
9987 esac
9988 ;;
9989
9990 beos*)
9991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9992 allow_undefined_flag=unsupported
9993 # Joseph Beckenbach <[email protected]> says some releases of gcc
9994 # support --undefined. This deserves some investigation. FIXME
9995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9996 else
9997 ld_shlibs=no
9998 fi
9999 ;;
10000
10001 cygwin* | mingw* | pw32* | cegcc*)
10002 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10003 # as there is no search path for DLLs.
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 export_dynamic_flag_spec='$wl--export-all-symbols'
10006 allow_undefined_flag=unsupported
10007 always_export_symbols=no
10008 enable_shared_with_static_runtimes=yes
10009 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'
10010 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10011
10012 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10014 # If the export-symbols file already is a .def file, use it as
10015 # is; otherwise, prepend EXPORTS...
10016 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10017 cp $export_symbols $output_objdir/$soname.def;
10018 else
10019 echo EXPORTS > $output_objdir/$soname.def;
10020 cat $export_symbols >> $output_objdir/$soname.def;
10021 fi~
10022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10023 else
10024 ld_shlibs=no
10025 fi
10026 ;;
10027
10028 haiku*)
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030 link_all_deplibs=yes
10031 ;;
10032
10033 interix[3-9]*)
10034 hardcode_direct=no
10035 hardcode_shlibpath_var=no
10036 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10037 export_dynamic_flag_spec='$wl-E'
10038 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10039 # Instead, shared libraries are loaded at an image base (0x10000000 by
10040 # default) and relocated if they conflict, which is a slow very memory
10041 # consuming and fragmenting process. To avoid this, we pick a random,
10042 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10043 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10045 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'
10046 ;;
10047
10048 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10049 tmp_diet=no
10050 if test linux-dietlibc = "$host_os"; then
10051 case $cc_basename in
10052 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10053 esac
10054 fi
10055 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10056 && test no = "$tmp_diet"
10057 then
10058 tmp_addflag=' $pic_flag'
10059 tmp_sharedflag='-shared'
10060 case $cc_basename,$host_cpu in
10061 pgcc*) # Portland Group C compiler
10062 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'
10063 tmp_addflag=' $pic_flag'
10064 ;;
10065 pgf77* | pgf90* | pgf95* | pgfortran*)
10066 # Portland Group f77 and f90 compilers
10067 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'
10068 tmp_addflag=' $pic_flag -Mnomain' ;;
10069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10070 tmp_addflag=' -i_dynamic' ;;
10071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10072 tmp_addflag=' -i_dynamic -nofor_main' ;;
10073 ifc* | ifort*) # Intel Fortran compiler
10074 tmp_addflag=' -nofor_main' ;;
10075 lf95*) # Lahey Fortran 8.1
10076 whole_archive_flag_spec=
10077 tmp_sharedflag='--shared' ;;
10078 nagfor*) # NAGFOR 5.3
10079 tmp_sharedflag='-Wl,-shared' ;;
10080 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10081 tmp_sharedflag='-qmkshrobj'
10082 tmp_addflag= ;;
10083 nvcc*) # Cuda Compiler Driver 2.2
10084 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'
10085 compiler_needs_object=yes
10086 ;;
10087 esac
10088 case `$CC -V 2>&1 | sed 5q` in
10089 *Sun\ C*) # Sun C 5.9
10090 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'
10091 compiler_needs_object=yes
10092 tmp_sharedflag='-G' ;;
10093 *Sun\ F*) # Sun Fortran 8.3
10094 tmp_sharedflag='-G' ;;
10095 esac
10096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10097
10098 if test yes = "$supports_anon_versioning"; then
10099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101 echo "local: *; };" >> $output_objdir/$libname.ver~
10102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10103 fi
10104
10105 case $cc_basename in
10106 xlf* | bgf* | bgxlf* | mpixlf*)
10107 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10108 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10110 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10111 if test yes = "$supports_anon_versioning"; then
10112 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10113 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10114 echo "local: *; };" >> $output_objdir/$libname.ver~
10115 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10116 fi
10117 ;;
10118 esac
10119 else
10120 ld_shlibs=no
10121 fi
10122 ;;
10123
10124 netbsd*)
10125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10126 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10127 wlarc=
10128 else
10129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10130 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10131 fi
10132 ;;
10133
10134 solaris*)
10135 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10136 ld_shlibs=no
10137 cat <<_LT_EOF 1>&2
10138
10139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10140 *** create shared libraries on Solaris systems. Therefore, libtool
10141 *** is disabling shared libraries support. We urge you to upgrade GNU
10142 *** binutils to release 2.9.1 or newer. Another option is to modify
10143 *** your PATH or compiler configuration so that the native linker is
10144 *** used, and then restart.
10145
10146 _LT_EOF
10147 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10150 else
10151 ld_shlibs=no
10152 fi
10153 ;;
10154
10155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10156 case `$LD -v 2>&1` in
10157 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10158 ld_shlibs=no
10159 cat <<_LT_EOF 1>&2
10160
10161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10162 *** reliably create shared libraries on SCO systems. Therefore, libtool
10163 *** is disabling shared libraries support. We urge you to upgrade GNU
10164 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10165 *** your PATH or compiler configuration so that the native linker is
10166 *** used, and then restart.
10167
10168 _LT_EOF
10169 ;;
10170 *)
10171 # For security reasons, it is highly recommended that you always
10172 # use absolute paths for naming shared libraries, and exclude the
10173 # DT_RUNPATH tag from executables and libraries. But doing so
10174 # requires that you compile everything twice, which is a pain.
10175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10176 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10179 else
10180 ld_shlibs=no
10181 fi
10182 ;;
10183 esac
10184 ;;
10185
10186 sunos4*)
10187 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10188 wlarc=
10189 hardcode_direct=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 *)
10194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10196 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10197 else
10198 ld_shlibs=no
10199 fi
10200 ;;
10201 esac
10202
10203 if test no = "$ld_shlibs"; then
10204 runpath_var=
10205 hardcode_libdir_flag_spec=
10206 export_dynamic_flag_spec=
10207 whole_archive_flag_spec=
10208 fi
10209 else
10210 # PORTME fill in a description of your system's linker (not GNU ld)
10211 case $host_os in
10212 aix3*)
10213 allow_undefined_flag=unsupported
10214 always_export_symbols=yes
10215 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'
10216 # Note: this linker hardcodes the directories in LIBPATH if there
10217 # are no directories specified by -L.
10218 hardcode_minus_L=yes
10219 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10220 # Neither direct hardcoding nor static linking is supported with a
10221 # broken collect2.
10222 hardcode_direct=unsupported
10223 fi
10224 ;;
10225
10226 aix[4-9]*)
10227 if test ia64 = "$host_cpu"; then
10228 # On IA64, the linker does run time linking by default, so we don't
10229 # have to do anything special.
10230 aix_use_runtimelinking=no
10231 exp_sym_flag='-Bexport'
10232 no_entry_flag=
10233 else
10234 # If we're using GNU nm, then we don't want the "-C" option.
10235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10236 # Also, AIX nm treats weak defined symbols like other global
10237 # defined symbols, whereas GNU nm marks them as "W".
10238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10239 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'
10240 else
10241 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'
10242 fi
10243 aix_use_runtimelinking=no
10244
10245 # Test if we are trying to use run time linking or normal
10246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10247 # need to do runtime linking.
10248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10249 for ld_flag in $LDFLAGS; do
10250 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10251 aix_use_runtimelinking=yes
10252 break
10253 fi
10254 done
10255 ;;
10256 esac
10257
10258 exp_sym_flag='-bexport'
10259 no_entry_flag='-bnoentry'
10260 fi
10261
10262 # When large executables or shared objects are built, AIX ld can
10263 # have problems creating the table of contents. If linking a library
10264 # or program results in "error TOC overflow" add -mminimal-toc to
10265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10267
10268 archive_cmds=''
10269 hardcode_direct=yes
10270 hardcode_direct_absolute=yes
10271 hardcode_libdir_separator=':'
10272 link_all_deplibs=yes
10273 file_list_spec='$wl-f,'
10274
10275 if test yes = "$GCC"; then
10276 case $host_os in aix4.[012]|aix4.[012].*)
10277 # We only want to do this on AIX 4.2 and lower, the check
10278 # below for broken collect2 doesn't work under 4.3+
10279 collect2name=`$CC -print-prog-name=collect2`
10280 if test -f "$collect2name" &&
10281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10282 then
10283 # We have reworked collect2
10284 :
10285 else
10286 # We have old collect2
10287 hardcode_direct=unsupported
10288 # It fails to find uninstalled libraries when the uninstalled
10289 # path is not listed in the libpath. Setting hardcode_minus_L
10290 # to unsupported forces relinking
10291 hardcode_minus_L=yes
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_libdir_separator=
10294 fi
10295 ;;
10296 esac
10297 shared_flag='-shared'
10298 if test yes = "$aix_use_runtimelinking"; then
10299 shared_flag="$shared_flag "'$wl-G'
10300 fi
10301 else
10302 # not using gcc
10303 if test ia64 = "$host_cpu"; then
10304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10305 # chokes on -Wl,-G. The following line is correct:
10306 shared_flag='-G'
10307 else
10308 if test yes = "$aix_use_runtimelinking"; then
10309 shared_flag='$wl-G'
10310 else
10311 shared_flag='$wl-bM:SRE'
10312 fi
10313 fi
10314 fi
10315
10316 export_dynamic_flag_spec='$wl-bexpall'
10317 # It seems that -bexpall does not export symbols beginning with
10318 # underscore (_), so it is better to generate a list of symbols to export.
10319 always_export_symbols=yes
10320 if test yes = "$aix_use_runtimelinking"; then
10321 # Warning - without using the other runtime loading flags (-brtl),
10322 # -berok will link without error, but may produce a broken library.
10323 allow_undefined_flag='-berok'
10324 # Determine the default libpath from the value encoded in an
10325 # empty executable.
10326 if test set = "${lt_cv_aix_libpath+set}"; then
10327 aix_libpath=$lt_cv_aix_libpath
10328 else
10329 if ${lt_cv_aix_libpath_+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334
10335 int
10336 main ()
10337 {
10338
10339 ;
10340 return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"; then :
10344
10345 lt_aix_libpath_sed='
10346 /Import File Strings/,/^$/ {
10347 /^0/ {
10348 s/^0 *\([^ ]*\) *$/\1/
10349 p
10350 }
10351 }'
10352 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10353 # Check for a 64-bit object if we didn't find anything.
10354 if test -z "$lt_cv_aix_libpath_"; then
10355 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10356 fi
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 if test -z "$lt_cv_aix_libpath_"; then
10361 lt_cv_aix_libpath_=/usr/lib:/lib
10362 fi
10363
10364 fi
10365
10366 aix_libpath=$lt_cv_aix_libpath_
10367 fi
10368
10369 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10370 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10371 else
10372 if test ia64 = "$host_cpu"; then
10373 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10374 allow_undefined_flag="-z nodefs"
10375 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"
10376 else
10377 # Determine the default libpath from the value encoded in an
10378 # empty executable.
10379 if test set = "${lt_cv_aix_libpath+set}"; then
10380 aix_libpath=$lt_cv_aix_libpath
10381 else
10382 if ${lt_cv_aix_libpath_+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387
10388 int
10389 main ()
10390 {
10391
10392 ;
10393 return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397
10398 lt_aix_libpath_sed='
10399 /Import File Strings/,/^$/ {
10400 /^0/ {
10401 s/^0 *\([^ ]*\) *$/\1/
10402 p
10403 }
10404 }'
10405 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406 # Check for a 64-bit object if we didn't find anything.
10407 if test -z "$lt_cv_aix_libpath_"; then
10408 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409 fi
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test -z "$lt_cv_aix_libpath_"; then
10414 lt_cv_aix_libpath_=/usr/lib:/lib
10415 fi
10416
10417 fi
10418
10419 aix_libpath=$lt_cv_aix_libpath_
10420 fi
10421
10422 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10423 # Warning - without using the other run time loading flags,
10424 # -berok will link without error, but may produce a broken library.
10425 no_undefined_flag=' $wl-bernotok'
10426 allow_undefined_flag=' $wl-berok'
10427 if test yes = "$with_gnu_ld"; then
10428 # We only use this code for GNU lds that support --whole-archive.
10429 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10430 else
10431 # Exported symbols can be pulled into shared objects from archives
10432 whole_archive_flag_spec='$convenience'
10433 fi
10434 archive_cmds_need_lc=yes
10435 # This is similar to how AIX traditionally builds its shared libraries.
10436 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'
10437 fi
10438 fi
10439 ;;
10440
10441 amigaos*)
10442 case $host_cpu in
10443 powerpc)
10444 # see comment about AmigaOS4 .so support
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10446 archive_expsym_cmds=''
10447 ;;
10448 m68k)
10449 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)'
10450 hardcode_libdir_flag_spec='-L$libdir'
10451 hardcode_minus_L=yes
10452 ;;
10453 esac
10454 ;;
10455
10456 bsdi[45]*)
10457 export_dynamic_flag_spec=-rdynamic
10458 ;;
10459
10460 cygwin* | mingw* | pw32* | cegcc*)
10461 # When not using gcc, we currently assume that we are using
10462 # Microsoft Visual C++.
10463 # hardcode_libdir_flag_spec is actually meaningless, as there is
10464 # no search path for DLLs.
10465 case $cc_basename in
10466 cl*)
10467 # Native MSVC
10468 hardcode_libdir_flag_spec=' '
10469 allow_undefined_flag=unsupported
10470 always_export_symbols=yes
10471 file_list_spec='@'
10472 # Tell ltmain to make .lib files, not .a files.
10473 libext=lib
10474 # Tell ltmain to make .dll files, not .so files.
10475 shrext_cmds=.dll
10476 # FIXME: Setting linknames here is a bad hack.
10477 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10478 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10479 cp "$export_symbols" "$output_objdir/$soname.def";
10480 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10481 else
10482 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10483 fi~
10484 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10485 linknames='
10486 # The linker will not automatically build a static lib if we build a DLL.
10487 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10488 enable_shared_with_static_runtimes=yes
10489 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10491 # Don't use ranlib
10492 old_postinstall_cmds='chmod 644 $oldlib'
10493 postlink_cmds='lt_outputfile="@OUTPUT@"~
10494 lt_tool_outputfile="@TOOL_OUTPUT@"~
10495 case $lt_outputfile in
10496 *.exe|*.EXE) ;;
10497 *)
10498 lt_outputfile=$lt_outputfile.exe
10499 lt_tool_outputfile=$lt_tool_outputfile.exe
10500 ;;
10501 esac~
10502 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10503 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10504 $RM "$lt_outputfile.manifest";
10505 fi'
10506 ;;
10507 *)
10508 # Assume MSVC wrapper
10509 hardcode_libdir_flag_spec=' '
10510 allow_undefined_flag=unsupported
10511 # Tell ltmain to make .lib files, not .a files.
10512 libext=lib
10513 # Tell ltmain to make .dll files, not .so files.
10514 shrext_cmds=.dll
10515 # FIXME: Setting linknames here is a bad hack.
10516 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10517 # The linker will automatically build a .lib file if we build a DLL.
10518 old_archive_from_new_cmds='true'
10519 # FIXME: Should let the user specify the lib program.
10520 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10521 enable_shared_with_static_runtimes=yes
10522 ;;
10523 esac
10524 ;;
10525
10526 darwin* | rhapsody*)
10527
10528
10529 archive_cmds_need_lc=no
10530 hardcode_direct=no
10531 hardcode_automatic=yes
10532 hardcode_shlibpath_var=unsupported
10533 if test yes = "$lt_cv_ld_force_load"; then
10534 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\"`'
10535
10536 else
10537 whole_archive_flag_spec=''
10538 fi
10539 link_all_deplibs=yes
10540 allow_undefined_flag=$_lt_dar_allow_undefined
10541 case $cc_basename in
10542 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10543 *) _lt_dar_can_shared=$GCC ;;
10544 esac
10545 if test yes = "$_lt_dar_can_shared"; then
10546 output_verbose_link_cmd=func_echo_all
10547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10549 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"
10550 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"
10551
10552 else
10553 ld_shlibs=no
10554 fi
10555
10556 ;;
10557
10558 dgux*)
10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560 hardcode_libdir_flag_spec='-L$libdir'
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10565 # support. Future versions do this automatically, but an explicit c++rt0.o
10566 # does not break anything, and helps significantly (at the cost of a little
10567 # extra space).
10568 freebsd2.2*)
10569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10570 hardcode_libdir_flag_spec='-R$libdir'
10571 hardcode_direct=yes
10572 hardcode_shlibpath_var=no
10573 ;;
10574
10575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10576 freebsd2.*)
10577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10578 hardcode_direct=yes
10579 hardcode_minus_L=yes
10580 hardcode_shlibpath_var=no
10581 ;;
10582
10583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10584 freebsd* | dragonfly*)
10585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 hardcode_direct=yes
10588 hardcode_shlibpath_var=no
10589 ;;
10590
10591 hpux9*)
10592 if test yes = "$GCC"; then
10593 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10594 else
10595 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10596 fi
10597 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10598 hardcode_libdir_separator=:
10599 hardcode_direct=yes
10600
10601 # hardcode_minus_L: Not really in the search PATH,
10602 # but as the default location of the library.
10603 hardcode_minus_L=yes
10604 export_dynamic_flag_spec='$wl-E'
10605 ;;
10606
10607 hpux10*)
10608 if test yes,no = "$GCC,$with_gnu_ld"; then
10609 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10610 else
10611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10612 fi
10613 if test no = "$with_gnu_ld"; then
10614 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10615 hardcode_libdir_separator=:
10616 hardcode_direct=yes
10617 hardcode_direct_absolute=yes
10618 export_dynamic_flag_spec='$wl-E'
10619 # hardcode_minus_L: Not really in the search PATH,
10620 # but as the default location of the library.
10621 hardcode_minus_L=yes
10622 fi
10623 ;;
10624
10625 hpux11*)
10626 if test yes,no = "$GCC,$with_gnu_ld"; then
10627 case $host_cpu in
10628 hppa*64*)
10629 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 ;;
10631 ia64*)
10632 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10633 ;;
10634 *)
10635 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10636 ;;
10637 esac
10638 else
10639 case $host_cpu in
10640 hppa*64*)
10641 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 ;;
10643 ia64*)
10644 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10645 ;;
10646 *)
10647
10648 # Older versions of the 11.00 compiler do not understand -b yet
10649 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10651 $as_echo_n "checking if $CC understands -b... " >&6; }
10652 if ${lt_cv_prog_compiler__b+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 lt_cv_prog_compiler__b=no
10656 save_LDFLAGS=$LDFLAGS
10657 LDFLAGS="$LDFLAGS -b"
10658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10660 # The linker can only warn and ignore the option if not recognized
10661 # So say no if there are warnings
10662 if test -s conftest.err; then
10663 # Append any errors to the config.log.
10664 cat conftest.err 1>&5
10665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10667 if diff conftest.exp conftest.er2 >/dev/null; then
10668 lt_cv_prog_compiler__b=yes
10669 fi
10670 else
10671 lt_cv_prog_compiler__b=yes
10672 fi
10673 fi
10674 $RM -r conftest*
10675 LDFLAGS=$save_LDFLAGS
10676
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10679 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10680
10681 if test yes = "$lt_cv_prog_compiler__b"; then
10682 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10683 else
10684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10685 fi
10686
10687 ;;
10688 esac
10689 fi
10690 if test no = "$with_gnu_ld"; then
10691 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10692 hardcode_libdir_separator=:
10693
10694 case $host_cpu in
10695 hppa*64*|ia64*)
10696 hardcode_direct=no
10697 hardcode_shlibpath_var=no
10698 ;;
10699 *)
10700 hardcode_direct=yes
10701 hardcode_direct_absolute=yes
10702 export_dynamic_flag_spec='$wl-E'
10703
10704 # hardcode_minus_L: Not really in the search PATH,
10705 # but as the default location of the library.
10706 hardcode_minus_L=yes
10707 ;;
10708 esac
10709 fi
10710 ;;
10711
10712 irix5* | irix6* | nonstopux*)
10713 if test yes = "$GCC"; then
10714 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'
10715 # Try to use the -exported_symbol ld option, if it does not
10716 # work, assume that -exports_file does not work either and
10717 # implicitly export all symbols.
10718 # This should be the same for all languages, so no per-tag cache variable.
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10720 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10721 if ${lt_cv_irix_exported_symbol+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 save_LDFLAGS=$LDFLAGS
10725 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 int foo (void) { return 0; }
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 lt_cv_irix_exported_symbol=yes
10732 else
10733 lt_cv_irix_exported_symbol=no
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LDFLAGS=$save_LDFLAGS
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10740 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10741 if test yes = "$lt_cv_irix_exported_symbol"; then
10742 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'
10743 fi
10744 else
10745 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'
10746 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'
10747 fi
10748 archive_cmds_need_lc='no'
10749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10750 hardcode_libdir_separator=:
10751 inherit_rpath=yes
10752 link_all_deplibs=yes
10753 ;;
10754
10755 netbsd*)
10756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10758 else
10759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10760 fi
10761 hardcode_libdir_flag_spec='-R$libdir'
10762 hardcode_direct=yes
10763 hardcode_shlibpath_var=no
10764 ;;
10765
10766 newsos6)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10770 hardcode_libdir_separator=:
10771 hardcode_shlibpath_var=no
10772 ;;
10773
10774 *nto* | *qnx*)
10775 ;;
10776
10777 openbsd* | bitrig*)
10778 if test -f /usr/libexec/ld.so; then
10779 hardcode_direct=yes
10780 hardcode_shlibpath_var=no
10781 hardcode_direct_absolute=yes
10782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10785 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10786 export_dynamic_flag_spec='$wl-E'
10787 else
10788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10790 fi
10791 else
10792 ld_shlibs=no
10793 fi
10794 ;;
10795
10796 os2*)
10797 hardcode_libdir_flag_spec='-L$libdir'
10798 hardcode_minus_L=yes
10799 allow_undefined_flag=unsupported
10800 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'
10801 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10802 ;;
10803
10804 osf3*)
10805 if test yes = "$GCC"; then
10806 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10807 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'
10808 else
10809 allow_undefined_flag=' -expect_unresolved \*'
10810 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'
10811 fi
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10814 hardcode_libdir_separator=:
10815 ;;
10816
10817 osf4* | osf5*) # as osf3* with the addition of -msym flag
10818 if test yes = "$GCC"; then
10819 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10820 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'
10821 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10822 else
10823 allow_undefined_flag=' -expect_unresolved \*'
10824 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'
10825 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~
10826 $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'
10827
10828 # Both c and cxx compiler support -rpath directly
10829 hardcode_libdir_flag_spec='-rpath $libdir'
10830 fi
10831 archive_cmds_need_lc='no'
10832 hardcode_libdir_separator=:
10833 ;;
10834
10835 solaris*)
10836 no_undefined_flag=' -z defs'
10837 if test yes = "$GCC"; then
10838 wlarc='$wl'
10839 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841 $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'
10842 else
10843 case `$CC -V 2>&1` in
10844 *"Compilers 5.0"*)
10845 wlarc=''
10846 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10848 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10849 ;;
10850 *)
10851 wlarc='$wl'
10852 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10855 ;;
10856 esac
10857 fi
10858 hardcode_libdir_flag_spec='-R$libdir'
10859 hardcode_shlibpath_var=no
10860 case $host_os in
10861 solaris2.[0-5] | solaris2.[0-5].*) ;;
10862 *)
10863 # The compiler driver will combine and reorder linker options,
10864 # but understands '-z linker_flag'. GCC discards it without '$wl',
10865 # but is careful enough not to reorder.
10866 # Supported since Solaris 2.6 (maybe 2.5.1?)
10867 if test yes = "$GCC"; then
10868 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10869 else
10870 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10871 fi
10872 ;;
10873 esac
10874 link_all_deplibs=yes
10875 ;;
10876
10877 sunos4*)
10878 if test sequent = "$host_vendor"; then
10879 # Use $CC to link under sequent, because it throws in some extra .o
10880 # files that make .init and .fini sections work.
10881 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10882 else
10883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10884 fi
10885 hardcode_libdir_flag_spec='-L$libdir'
10886 hardcode_direct=yes
10887 hardcode_minus_L=yes
10888 hardcode_shlibpath_var=no
10889 ;;
10890
10891 sysv4)
10892 case $host_vendor in
10893 sni)
10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_direct=yes # is this really true???
10896 ;;
10897 siemens)
10898 ## LD is ld it makes a PLAMLIB
10899 ## CC just makes a GrossModule.
10900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10901 reload_cmds='$CC -r -o $output$reload_objs'
10902 hardcode_direct=no
10903 ;;
10904 motorola)
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10907 ;;
10908 esac
10909 runpath_var='LD_RUN_PATH'
10910 hardcode_shlibpath_var=no
10911 ;;
10912
10913 sysv4.3*)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_shlibpath_var=no
10916 export_dynamic_flag_spec='-Bexport'
10917 ;;
10918
10919 sysv4*MP*)
10920 if test -d /usr/nec; then
10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 hardcode_shlibpath_var=no
10923 runpath_var=LD_RUN_PATH
10924 hardcode_runpath_var=yes
10925 ld_shlibs=yes
10926 fi
10927 ;;
10928
10929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10930 no_undefined_flag='$wl-z,text'
10931 archive_cmds_need_lc=no
10932 hardcode_shlibpath_var=no
10933 runpath_var='LD_RUN_PATH'
10934
10935 if test yes = "$GCC"; then
10936 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 fi
10942 ;;
10943
10944 sysv5* | sco3.2v5* | sco5v6*)
10945 # Note: We CANNOT use -z defs as we might desire, because we do not
10946 # link with -lc, and that would cause any symbols used from libc to
10947 # always be unresolved, which means just about no library would
10948 # ever link correctly. If we're not using GNU ld we use -z text
10949 # though, which does catch some bad symbols but isn't as heavy-handed
10950 # as -z defs.
10951 no_undefined_flag='$wl-z,text'
10952 allow_undefined_flag='$wl-z,nodefs'
10953 archive_cmds_need_lc=no
10954 hardcode_shlibpath_var=no
10955 hardcode_libdir_flag_spec='$wl-R,$libdir'
10956 hardcode_libdir_separator=':'
10957 link_all_deplibs=yes
10958 export_dynamic_flag_spec='$wl-Bexport'
10959 runpath_var='LD_RUN_PATH'
10960
10961 if test yes = "$GCC"; then
10962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 else
10965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 fi
10968 ;;
10969
10970 uts4*)
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_libdir_flag_spec='-L$libdir'
10973 hardcode_shlibpath_var=no
10974 ;;
10975
10976 *)
10977 ld_shlibs=no
10978 ;;
10979 esac
10980
10981 if test sni = "$host_vendor"; then
10982 case $host in
10983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10984 export_dynamic_flag_spec='$wl-Blargedynsym'
10985 ;;
10986 esac
10987 fi
10988 fi
10989
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10991 $as_echo "$ld_shlibs" >&6; }
10992 test no = "$ld_shlibs" && can_build_shared=no
10993
10994 with_gnu_ld=$with_gnu_ld
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010 #
11011 # Do we need to explicitly link libc?
11012 #
11013 case "x$archive_cmds_need_lc" in
11014 x|xyes)
11015 # Assume -lc should be added
11016 archive_cmds_need_lc=yes
11017
11018 if test yes,yes = "$GCC,$enable_shared"; then
11019 case $archive_cmds in
11020 *'~'*)
11021 # FIXME: we may have to deal with multi-command sequences.
11022 ;;
11023 '$CC '*)
11024 # Test whether the compiler implicitly links with -lc since on some
11025 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11026 # to ld, don't add -lc before -lgcc.
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11028 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11029 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 $RM conftest*
11033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11034
11035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11036 (eval $ac_compile) 2>&5
11037 ac_status=$?
11038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039 test $ac_status = 0; } 2>conftest.err; then
11040 soname=conftest
11041 lib=conftest
11042 libobjs=conftest.$ac_objext
11043 deplibs=
11044 wl=$lt_prog_compiler_wl
11045 pic_flag=$lt_prog_compiler_pic
11046 compiler_flags=-v
11047 linker_flags=-v
11048 verstring=
11049 output_objdir=.
11050 libname=conftest
11051 lt_save_allow_undefined_flag=$allow_undefined_flag
11052 allow_undefined_flag=
11053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11054 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11055 ac_status=$?
11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057 test $ac_status = 0; }
11058 then
11059 lt_cv_archive_cmds_need_lc=no
11060 else
11061 lt_cv_archive_cmds_need_lc=yes
11062 fi
11063 allow_undefined_flag=$lt_save_allow_undefined_flag
11064 else
11065 cat conftest.err 1>&5
11066 fi
11067 $RM conftest*
11068
11069 fi
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11071 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11072 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11073 ;;
11074 esac
11075 fi
11076 ;;
11077 esac
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11231 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11232
11233 if test yes = "$GCC"; then
11234 case $host_os in
11235 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11236 *) lt_awk_arg='/^libraries:/' ;;
11237 esac
11238 case $host_os in
11239 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11240 *) lt_sed_strip_eq='s|=/|/|g' ;;
11241 esac
11242 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11243 case $lt_search_path_spec in
11244 *\;*)
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11250 ;;
11251 *)
11252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11253 ;;
11254 esac
11255 # Ok, now we have the path, separated by spaces, we can step through it
11256 # and add multilib dir if necessary...
11257 lt_tmp_lt_search_path_spec=
11258 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259 # ...but if some path component already ends with the multilib dir we assume
11260 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11261 case "$lt_multi_os_dir; $lt_search_path_spec " in
11262 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11263 lt_multi_os_dir=
11264 ;;
11265 esac
11266 for lt_sys_path in $lt_search_path_spec; do
11267 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11269 elif test -n "$lt_multi_os_dir"; then
11270 test -d "$lt_sys_path" && \
11271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11272 fi
11273 done
11274 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11275 BEGIN {RS = " "; FS = "/|\n";} {
11276 lt_foo = "";
11277 lt_count = 0;
11278 for (lt_i = NF; lt_i > 0; lt_i--) {
11279 if ($lt_i != "" && $lt_i != ".") {
11280 if ($lt_i == "..") {
11281 lt_count++;
11282 } else {
11283 if (lt_count == 0) {
11284 lt_foo = "/" $lt_i lt_foo;
11285 } else {
11286 lt_count--;
11287 }
11288 }
11289 }
11290 }
11291 if (lt_foo != "") { lt_freq[lt_foo]++; }
11292 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11293 }'`
11294 # AWK program above erroneously prepends '/' to C:/dos/paths
11295 # for these hosts.
11296 case $host_os in
11297 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11298 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11299 esac
11300 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11301 else
11302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11303 fi
11304 library_names_spec=
11305 libname_spec='lib$name'
11306 soname_spec=
11307 shrext_cmds=.so
11308 postinstall_cmds=
11309 postuninstall_cmds=
11310 finish_cmds=
11311 finish_eval=
11312 shlibpath_var=
11313 shlibpath_overrides_runpath=unknown
11314 version_type=none
11315 dynamic_linker="$host_os ld.so"
11316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11317 need_lib_prefix=unknown
11318 hardcode_into_libs=no
11319
11320 # when you set need_version to no, make sure it does not cause -set_version
11321 # flags to be left without arguments
11322 need_version=unknown
11323
11324 case $host_os in
11325 aix3*)
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11328 shlibpath_var=LIBPATH
11329
11330 # AIX 3 has no versioning support, so we append a major version to the name.
11331 soname_spec='$libname$release$shared_ext$major'
11332 ;;
11333
11334 aix[4-9]*)
11335 version_type=linux # correct to gnu/linux during the next big refactor
11336 need_lib_prefix=no
11337 need_version=no
11338 hardcode_into_libs=yes
11339 if test ia64 = "$host_cpu"; then
11340 # AIX 5 supports IA64
11341 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 else
11344 # With GCC up to 2.95.x, collect2 would create an import file
11345 # for dependence libraries. The import file would start with
11346 # the line '#! .'. This would cause the generated library to
11347 # depend on '.', always an invalid library. This was fixed in
11348 # development snapshots of GCC prior to 3.0.
11349 case $host_os in
11350 aix4 | aix4.[01] | aix4.[01].*)
11351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11352 echo ' yes '
11353 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11354 :
11355 else
11356 can_build_shared=no
11357 fi
11358 ;;
11359 esac
11360 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11361 # soname into executable. Probably we can add versioning support to
11362 # collect2, so additional links can be useful in future.
11363 if test yes = "$aix_use_runtimelinking"; then
11364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11365 # instead of lib<name>.a to let people know that these are not
11366 # typical AIX shared libraries.
11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368 else
11369 # We preserve .a as extension for shared libraries through AIX4.2
11370 # and later when we are not doing run time linking.
11371 library_names_spec='$libname$release.a $libname.a'
11372 soname_spec='$libname$release$shared_ext$major'
11373 fi
11374 shlibpath_var=LIBPATH
11375 fi
11376 ;;
11377
11378 amigaos*)
11379 case $host_cpu in
11380 powerpc)
11381 # Since July 2007 AmigaOS4 officially supports .so libraries.
11382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 ;;
11385 m68k)
11386 library_names_spec='$libname.ixlibrary $libname.a'
11387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11388 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11389 ;;
11390 esac
11391 ;;
11392
11393 beos*)
11394 library_names_spec='$libname$shared_ext'
11395 dynamic_linker="$host_os ld.so"
11396 shlibpath_var=LIBRARY_PATH
11397 ;;
11398
11399 bsdi[45]*)
11400 version_type=linux # correct to gnu/linux during the next big refactor
11401 need_version=no
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 soname_spec='$libname$release$shared_ext$major'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11408 # the default ld.so.conf also contains /usr/contrib/lib and
11409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11410 # libtool to hard-code these into programs
11411 ;;
11412
11413 cygwin* | mingw* | pw32* | cegcc*)
11414 version_type=windows
11415 shrext_cmds=.dll
11416 need_version=no
11417 need_lib_prefix=no
11418
11419 case $GCC,$cc_basename in
11420 yes,*)
11421 # gcc
11422 library_names_spec='$libname.dll.a'
11423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11424 postinstall_cmds='base_file=`basename \$file`~
11425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11426 dldir=$destdir/`dirname \$dlpath`~
11427 test -d \$dldir || mkdir -p \$dldir~
11428 $install_prog $dir/$dlname \$dldir/$dlname~
11429 chmod a+x \$dldir/$dlname~
11430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11432 fi'
11433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434 dlpath=$dir/\$dldll~
11435 $RM \$dlpath'
11436 shlibpath_overrides_runpath=yes
11437
11438 case $host_os in
11439 cygwin*)
11440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11442
11443 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11444 ;;
11445 mingw* | cegcc*)
11446 # MinGW DLLs use traditional 'lib' prefix
11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11448 ;;
11449 pw32*)
11450 # pw32 DLLs use 'pw' prefix rather than 'lib'
11451 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11452 ;;
11453 esac
11454 dynamic_linker='Win32 ld.exe'
11455 ;;
11456
11457 *,cl*)
11458 # Native MSVC
11459 libname_spec='$name'
11460 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11461 library_names_spec='$libname.dll.lib'
11462
11463 case $build_os in
11464 mingw*)
11465 sys_lib_search_path_spec=
11466 lt_save_ifs=$IFS
11467 IFS=';'
11468 for lt_path in $LIB
11469 do
11470 IFS=$lt_save_ifs
11471 # Let DOS variable expansion print the short 8.3 style file name.
11472 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11473 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11474 done
11475 IFS=$lt_save_ifs
11476 # Convert to MSYS style.
11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11478 ;;
11479 cygwin*)
11480 # Convert to unix form, then to dos form, then back to unix form
11481 # but this time dos style (no spaces!) so that the unix form looks
11482 # like /cygdrive/c/PROGRA~1:/cygdr...
11483 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11484 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11485 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11486 ;;
11487 *)
11488 sys_lib_search_path_spec=$LIB
11489 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490 # It is most probably a Windows format PATH.
11491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11492 else
11493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11494 fi
11495 # FIXME: find the short name or the path components, as spaces are
11496 # common. (e.g. "Program Files" -> "PROGRA~1")
11497 ;;
11498 esac
11499
11500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11501 postinstall_cmds='base_file=`basename \$file`~
11502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11503 dldir=$destdir/`dirname \$dlpath`~
11504 test -d \$dldir || mkdir -p \$dldir~
11505 $install_prog $dir/$dlname \$dldir/$dlname'
11506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11507 dlpath=$dir/\$dldll~
11508 $RM \$dlpath'
11509 shlibpath_overrides_runpath=yes
11510 dynamic_linker='Win32 link.exe'
11511 ;;
11512
11513 *)
11514 # Assume MSVC wrapper
11515 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11516 dynamic_linker='Win32 ld.exe'
11517 ;;
11518 esac
11519 # FIXME: first we should search . and the directory the executable is in
11520 shlibpath_var=PATH
11521 ;;
11522
11523 darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11529 soname_spec='$libname$release$major$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536 ;;
11537
11538 dgux*)
11539 version_type=linux # correct to gnu/linux during the next big refactor
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 ;;
11546
11547 freebsd* | dragonfly*)
11548 # DragonFly does not have aout. When/if they implement a new
11549 # versioning mechanism, adjust this.
11550 if test -x /usr/bin/objformat; then
11551 objformat=`/usr/bin/objformat`
11552 else
11553 case $host_os in
11554 freebsd[23].*) objformat=aout ;;
11555 *) objformat=elf ;;
11556 esac
11557 fi
11558 version_type=freebsd-$objformat
11559 case $version_type in
11560 freebsd-elf*)
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11562 need_version=no
11563 need_lib_prefix=no
11564 ;;
11565 freebsd-*)
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11567 need_version=yes
11568 ;;
11569 esac
11570 shlibpath_var=LD_LIBRARY_PATH
11571 case $host_os in
11572 freebsd2.*)
11573 shlibpath_overrides_runpath=yes
11574 ;;
11575 freebsd3.[01]* | freebsdelf3.[01]*)
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 ;;
11579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11581 shlibpath_overrides_runpath=no
11582 hardcode_into_libs=yes
11583 ;;
11584 *) # from 4.6 on, and DragonFly
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 ;;
11588 esac
11589 ;;
11590
11591 haiku*)
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 need_lib_prefix=no
11594 need_version=no
11595 dynamic_linker="$host_os runtime_loader"
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597 soname_spec='$libname$release$shared_ext$major'
11598 shlibpath_var=LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11601 hardcode_into_libs=yes
11602 ;;
11603
11604 hpux9* | hpux10* | hpux11*)
11605 # Give a soname corresponding to the major version so that dld.sl refuses to
11606 # link against other versions.
11607 version_type=sunos
11608 need_lib_prefix=no
11609 need_version=no
11610 case $host_cpu in
11611 ia64*)
11612 shrext_cmds='.so'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.so"
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 if test 32 = "$HPUX_IA64_MODE"; then
11620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11621 else
11622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623 fi
11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625 ;;
11626 hppa*64*)
11627 shrext_cmds='.sl'
11628 hardcode_into_libs=yes
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11633 soname_spec='$libname$release$shared_ext$major'
11634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636 ;;
11637 *)
11638 shrext_cmds='.sl'
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=SHLIB_PATH
11641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643 soname_spec='$libname$release$shared_ext$major'
11644 ;;
11645 esac
11646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11647 postinstall_cmds='chmod 555 $lib'
11648 # or fails outright, so override atomically:
11649 install_override_mode=555
11650 ;;
11651
11652 interix[3-9]*)
11653 version_type=linux # correct to gnu/linux during the next big refactor
11654 need_lib_prefix=no
11655 need_version=no
11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657 soname_spec='$libname$release$shared_ext$major'
11658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11662 ;;
11663
11664 irix5* | irix6* | nonstopux*)
11665 case $host_os in
11666 nonstopux*) version_type=nonstopux ;;
11667 *)
11668 if test yes = "$lt_cv_prog_gnu_ld"; then
11669 version_type=linux # correct to gnu/linux during the next big refactor
11670 else
11671 version_type=irix
11672 fi ;;
11673 esac
11674 need_lib_prefix=no
11675 need_version=no
11676 soname_spec='$libname$release$shared_ext$major'
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11678 case $host_os in
11679 irix5* | nonstopux*)
11680 libsuff= shlibsuff=
11681 ;;
11682 *)
11683 case $LD in # libtool.m4 will add one of these switches to LD
11684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685 libsuff= shlibsuff= libmagic=32-bit;;
11686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687 libsuff=32 shlibsuff=N32 libmagic=N32;;
11688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690 *) libsuff= shlibsuff= libmagic=never-match;;
11691 esac
11692 ;;
11693 esac
11694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695 shlibpath_overrides_runpath=no
11696 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11697 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11698 hardcode_into_libs=yes
11699 ;;
11700
11701 # No shared lib support for Linux oldld, aout, or coff.
11702 linux*oldld* | linux*aout* | linux*coff*)
11703 dynamic_linker=no
11704 ;;
11705
11706 linux*android*)
11707 version_type=none # Android doesn't support versioned libraries.
11708 need_lib_prefix=no
11709 need_version=no
11710 library_names_spec='$libname$release$shared_ext'
11711 soname_spec='$libname$release$shared_ext'
11712 finish_cmds=
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11715
11716 # This implies no fast_install, which is unacceptable.
11717 # Some rework will be needed to allow for fast_install
11718 # before this can be enabled.
11719 hardcode_into_libs=yes
11720
11721 dynamic_linker='Android linker'
11722 # Don't embed -rpath directories since the linker doesn't support them.
11723 hardcode_libdir_flag_spec='-L$libdir'
11724 ;;
11725
11726 # This must be glibc/ELF.
11727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11728 version_type=linux # correct to gnu/linux during the next big refactor
11729 need_lib_prefix=no
11730 need_version=no
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732 soname_spec='$libname$release$shared_ext$major'
11733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=no
11736
11737 # Some binutils ld are patched to set DT_RUNPATH
11738 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 lt_cv_shlibpath_overrides_runpath=no
11742 save_LDFLAGS=$LDFLAGS
11743 save_libdir=$libdir
11744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748
11749 int
11750 main ()
11751 {
11752
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 if ac_fn_c_try_link "$LINENO"; then :
11758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11759 lt_cv_shlibpath_overrides_runpath=yes
11760 fi
11761 fi
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS=$save_LDFLAGS
11765 libdir=$save_libdir
11766
11767 fi
11768
11769 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11770
11771 # This implies no fast_install, which is unacceptable.
11772 # Some rework will be needed to allow for fast_install
11773 # before this can be enabled.
11774 hardcode_into_libs=yes
11775
11776 # Append ld.so.conf contents to the search path
11777 if test -f /etc/ld.so.conf; then
11778 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' ' '`
11779 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11780 fi
11781
11782 # We used to test for /lib/ld.so.1 and disable shared libraries on
11783 # powerpc, because MkLinux only supported shared libraries with the
11784 # GNU dynamic linker. Since this was broken with cross compilers,
11785 # most powerpc-linux boxes support dynamic linking these days and
11786 # people can always --disable-shared, the test was removed, and we
11787 # assume the GNU/Linux dynamic linker is in use.
11788 dynamic_linker='GNU/Linux ld.so'
11789 ;;
11790
11791 netbsd*)
11792 version_type=sunos
11793 need_lib_prefix=no
11794 need_version=no
11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11798 dynamic_linker='NetBSD (a.out) ld.so'
11799 else
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 soname_spec='$libname$release$shared_ext$major'
11802 dynamic_linker='NetBSD ld.elf_so'
11803 fi
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11807 ;;
11808
11809 newsos6)
11810 version_type=linux # correct to gnu/linux during the next big refactor
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=yes
11814 ;;
11815
11816 *nto* | *qnx*)
11817 version_type=qnx
11818 need_lib_prefix=no
11819 need_version=no
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 soname_spec='$libname$release$shared_ext$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=no
11824 hardcode_into_libs=yes
11825 dynamic_linker='ldqnx.so'
11826 ;;
11827
11828 openbsd* | bitrig*)
11829 version_type=sunos
11830 sys_lib_dlsearch_path_spec=/usr/lib
11831 need_lib_prefix=no
11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11833 need_version=no
11834 else
11835 need_version=yes
11836 fi
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 shlibpath_overrides_runpath=yes
11841 ;;
11842
11843 os2*)
11844 libname_spec='$name'
11845 shrext_cmds=.dll
11846 need_lib_prefix=no
11847 library_names_spec='$libname$shared_ext $libname.a'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=LIBPATH
11850 ;;
11851
11852 osf3* | osf4* | osf5*)
11853 version_type=osf
11854 need_lib_prefix=no
11855 need_version=no
11856 soname_spec='$libname$release$shared_ext$major'
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11861 ;;
11862
11863 rdos*)
11864 dynamic_linker=no
11865 ;;
11866
11867 solaris*)
11868 version_type=linux # correct to gnu/linux during the next big refactor
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11876 # ldd complains unless libraries are executable
11877 postinstall_cmds='chmod +x $lib'
11878 ;;
11879
11880 sunos4*)
11881 version_type=sunos
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=yes
11886 if test yes = "$with_gnu_ld"; then
11887 need_lib_prefix=no
11888 fi
11889 need_version=yes
11890 ;;
11891
11892 sysv4 | sysv4.3*)
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895 soname_spec='$libname$release$shared_ext$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 case $host_vendor in
11898 sni)
11899 shlibpath_overrides_runpath=no
11900 need_lib_prefix=no
11901 runpath_var=LD_RUN_PATH
11902 ;;
11903 siemens)
11904 need_lib_prefix=no
11905 ;;
11906 motorola)
11907 need_lib_prefix=no
11908 need_version=no
11909 shlibpath_overrides_runpath=no
11910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11911 ;;
11912 esac
11913 ;;
11914
11915 sysv4*MP*)
11916 if test -d /usr/nec; then
11917 version_type=linux # correct to gnu/linux during the next big refactor
11918 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11919 soname_spec='$libname$shared_ext.$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 fi
11922 ;;
11923
11924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11925 version_type=freebsd-elf
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11929 soname_spec='$libname$release$shared_ext$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11932 hardcode_into_libs=yes
11933 if test yes = "$with_gnu_ld"; then
11934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11935 else
11936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11937 case $host_os in
11938 sco3.2v5*)
11939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11940 ;;
11941 esac
11942 fi
11943 sys_lib_dlsearch_path_spec='/usr/lib'
11944 ;;
11945
11946 tpf*)
11947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11948 version_type=linux # correct to gnu/linux during the next big refactor
11949 need_lib_prefix=no
11950 need_version=no
11951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11954 hardcode_into_libs=yes
11955 ;;
11956
11957 uts4*)
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960 soname_spec='$libname$release$shared_ext$major'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 ;;
11963
11964 *)
11965 dynamic_linker=no
11966 ;;
11967 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11969 $as_echo "$dynamic_linker" >&6; }
11970 test no = "$dynamic_linker" && can_build_shared=no
11971
11972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11973 if test yes = "$GCC"; then
11974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11975 fi
11976
11977 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11978 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11979 fi
11980 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11981 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11982 fi
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12077 hardcode_action=
12078 if test -n "$hardcode_libdir_flag_spec" ||
12079 test -n "$runpath_var" ||
12080 test yes = "$hardcode_automatic"; then
12081
12082 # We can hardcode non-existent directories.
12083 if test no != "$hardcode_direct" &&
12084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12085 # have to relink, otherwise we might link with an installed library
12086 # when we should be linking with a yet-to-be-installed one
12087 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12088 test no != "$hardcode_minus_L"; then
12089 # Linking always hardcodes the temporary library directory.
12090 hardcode_action=relink
12091 else
12092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12093 hardcode_action=immediate
12094 fi
12095 else
12096 # We cannot hardcode anything, or else we can only hardcode existing
12097 # directories.
12098 hardcode_action=unsupported
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12101 $as_echo "$hardcode_action" >&6; }
12102
12103 if test relink = "$hardcode_action" ||
12104 test yes = "$inherit_rpath"; then
12105 # Fast installation is not supported
12106 enable_fast_install=no
12107 elif test yes = "$shlibpath_overrides_runpath" ||
12108 test no = "$enable_shared"; then
12109 # Fast installation is not necessary
12110 enable_fast_install=needless
12111 fi
12112
12113
12114
12115
12116
12117
12118 if test yes != "$enable_dlopen"; then
12119 enable_dlopen=unknown
12120 enable_dlopen_self=unknown
12121 enable_dlopen_self_static=unknown
12122 else
12123 lt_cv_dlopen=no
12124 lt_cv_dlopen_libs=
12125
12126 case $host_os in
12127 beos*)
12128 lt_cv_dlopen=load_add_on
12129 lt_cv_dlopen_libs=
12130 lt_cv_dlopen_self=yes
12131 ;;
12132
12133 mingw* | pw32* | cegcc*)
12134 lt_cv_dlopen=LoadLibrary
12135 lt_cv_dlopen_libs=
12136 ;;
12137
12138 cygwin*)
12139 lt_cv_dlopen=dlopen
12140 lt_cv_dlopen_libs=
12141 ;;
12142
12143 darwin*)
12144 # if libdl is installed we need to link against it
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12147 if ${ac_cv_lib_dl_dlopen+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-ldl $LIBS"
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char dlopen ();
12162 int
12163 main ()
12164 {
12165 return dlopen ();
12166 ;
12167 return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 ac_cv_lib_dl_dlopen=yes
12172 else
12173 ac_cv_lib_dl_dlopen=no
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12181 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12182 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12183 else
12184
12185 lt_cv_dlopen=dyld
12186 lt_cv_dlopen_libs=
12187 lt_cv_dlopen_self=yes
12188
12189 fi
12190
12191 ;;
12192
12193 tpf*)
12194 # Don't try to run any link tests for TPF. We know it's impossible
12195 # because TPF is a cross-compiler, and we know how we open DSOs.
12196 lt_cv_dlopen=dlopen
12197 lt_cv_dlopen_libs=
12198 lt_cv_dlopen_self=no
12199 ;;
12200
12201 *)
12202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12203 if test "x$ac_cv_func_shl_load" = xyes; then :
12204 lt_cv_dlopen=shl_load
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12208 if ${ac_cv_lib_dld_shl_load+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-ldld $LIBS"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char shl_load ();
12223 int
12224 main ()
12225 {
12226 return shl_load ();
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_lib_dld_shl_load=yes
12233 else
12234 ac_cv_lib_dld_shl_load=no
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12242 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12243 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12244 else
12245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12246 if test "x$ac_cv_func_dlopen" = xyes; then :
12247 lt_cv_dlopen=dlopen
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12251 if ${ac_cv_lib_dl_dlopen+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-ldl $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char dlopen ();
12266 int
12267 main ()
12268 {
12269 return dlopen ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_dl_dlopen=yes
12276 else
12277 ac_cv_lib_dl_dlopen=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12285 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12290 if ${ac_cv_lib_svld_dlopen+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-lsvld $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char dlopen ();
12305 int
12306 main ()
12307 {
12308 return dlopen ();
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_lib_svld_dlopen=yes
12315 else
12316 ac_cv_lib_svld_dlopen=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12324 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12325 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12329 if ${ac_cv_lib_dld_dld_link+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-ldld $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char dld_link ();
12344 int
12345 main ()
12346 {
12347 return dld_link ();
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_lib_dld_dld_link=yes
12354 else
12355 ac_cv_lib_dld_dld_link=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12363 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12364 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12365 fi
12366
12367
12368 fi
12369
12370
12371 fi
12372
12373
12374 fi
12375
12376
12377 fi
12378
12379
12380 fi
12381
12382 ;;
12383 esac
12384
12385 if test no = "$lt_cv_dlopen"; then
12386 enable_dlopen=no
12387 else
12388 enable_dlopen=yes
12389 fi
12390
12391 case $lt_cv_dlopen in
12392 dlopen)
12393 save_CPPFLAGS=$CPPFLAGS
12394 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12395
12396 save_LDFLAGS=$LDFLAGS
12397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12398
12399 save_LIBS=$LIBS
12400 LIBS="$lt_cv_dlopen_libs $LIBS"
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12404 if ${lt_cv_dlopen_self+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 if test yes = "$cross_compiling"; then :
12408 lt_cv_dlopen_self=cross
12409 else
12410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12411 lt_status=$lt_dlunknown
12412 cat > conftest.$ac_ext <<_LT_EOF
12413 #line $LINENO "configure"
12414 #include "confdefs.h"
12415
12416 #if HAVE_DLFCN_H
12417 #include <dlfcn.h>
12418 #endif
12419
12420 #include <stdio.h>
12421
12422 #ifdef RTLD_GLOBAL
12423 # define LT_DLGLOBAL RTLD_GLOBAL
12424 #else
12425 # ifdef DL_GLOBAL
12426 # define LT_DLGLOBAL DL_GLOBAL
12427 # else
12428 # define LT_DLGLOBAL 0
12429 # endif
12430 #endif
12431
12432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12433 find out it does not work in some platform. */
12434 #ifndef LT_DLLAZY_OR_NOW
12435 # ifdef RTLD_LAZY
12436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12437 # else
12438 # ifdef DL_LAZY
12439 # define LT_DLLAZY_OR_NOW DL_LAZY
12440 # else
12441 # ifdef RTLD_NOW
12442 # define LT_DLLAZY_OR_NOW RTLD_NOW
12443 # else
12444 # ifdef DL_NOW
12445 # define LT_DLLAZY_OR_NOW DL_NOW
12446 # else
12447 # define LT_DLLAZY_OR_NOW 0
12448 # endif
12449 # endif
12450 # endif
12451 # endif
12452 #endif
12453
12454 /* When -fvisbility=hidden is used, assume the code has been annotated
12455 correspondingly for the symbols needed. */
12456 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12457 int fnord () __attribute__((visibility("default")));
12458 #endif
12459
12460 int fnord () { return 42; }
12461 int main ()
12462 {
12463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464 int status = $lt_dlunknown;
12465
12466 if (self)
12467 {
12468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12469 else
12470 {
12471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12472 else puts (dlerror ());
12473 }
12474 /* dlclose (self); */
12475 }
12476 else
12477 puts (dlerror ());
12478
12479 return status;
12480 }
12481 _LT_EOF
12482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12483 (eval $ac_link) 2>&5
12484 ac_status=$?
12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12487 (./conftest; exit; ) >&5 2>/dev/null
12488 lt_status=$?
12489 case x$lt_status in
12490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12493 esac
12494 else :
12495 # compilation failed
12496 lt_cv_dlopen_self=no
12497 fi
12498 fi
12499 rm -fr conftest*
12500
12501
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12504 $as_echo "$lt_cv_dlopen_self" >&6; }
12505
12506 if test yes = "$lt_cv_dlopen_self"; then
12507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12510 if ${lt_cv_dlopen_self_static+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test yes = "$cross_compiling"; then :
12514 lt_cv_dlopen_self_static=cross
12515 else
12516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12517 lt_status=$lt_dlunknown
12518 cat > conftest.$ac_ext <<_LT_EOF
12519 #line $LINENO "configure"
12520 #include "confdefs.h"
12521
12522 #if HAVE_DLFCN_H
12523 #include <dlfcn.h>
12524 #endif
12525
12526 #include <stdio.h>
12527
12528 #ifdef RTLD_GLOBAL
12529 # define LT_DLGLOBAL RTLD_GLOBAL
12530 #else
12531 # ifdef DL_GLOBAL
12532 # define LT_DLGLOBAL DL_GLOBAL
12533 # else
12534 # define LT_DLGLOBAL 0
12535 # endif
12536 #endif
12537
12538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12539 find out it does not work in some platform. */
12540 #ifndef LT_DLLAZY_OR_NOW
12541 # ifdef RTLD_LAZY
12542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12543 # else
12544 # ifdef DL_LAZY
12545 # define LT_DLLAZY_OR_NOW DL_LAZY
12546 # else
12547 # ifdef RTLD_NOW
12548 # define LT_DLLAZY_OR_NOW RTLD_NOW
12549 # else
12550 # ifdef DL_NOW
12551 # define LT_DLLAZY_OR_NOW DL_NOW
12552 # else
12553 # define LT_DLLAZY_OR_NOW 0
12554 # endif
12555 # endif
12556 # endif
12557 # endif
12558 #endif
12559
12560 /* When -fvisbility=hidden is used, assume the code has been annotated
12561 correspondingly for the symbols needed. */
12562 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12563 int fnord () __attribute__((visibility("default")));
12564 #endif
12565
12566 int fnord () { return 42; }
12567 int main ()
12568 {
12569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12570 int status = $lt_dlunknown;
12571
12572 if (self)
12573 {
12574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12575 else
12576 {
12577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12578 else puts (dlerror ());
12579 }
12580 /* dlclose (self); */
12581 }
12582 else
12583 puts (dlerror ());
12584
12585 return status;
12586 }
12587 _LT_EOF
12588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12589 (eval $ac_link) 2>&5
12590 ac_status=$?
12591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12592 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12593 (./conftest; exit; ) >&5 2>/dev/null
12594 lt_status=$?
12595 case x$lt_status in
12596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12599 esac
12600 else :
12601 # compilation failed
12602 lt_cv_dlopen_self_static=no
12603 fi
12604 fi
12605 rm -fr conftest*
12606
12607
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12611 fi
12612
12613 CPPFLAGS=$save_CPPFLAGS
12614 LDFLAGS=$save_LDFLAGS
12615 LIBS=$save_LIBS
12616 ;;
12617 esac
12618
12619 case $lt_cv_dlopen_self in
12620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12621 *) enable_dlopen_self=unknown ;;
12622 esac
12623
12624 case $lt_cv_dlopen_self_static in
12625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12626 *) enable_dlopen_self_static=unknown ;;
12627 esac
12628 fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646 striplib=
12647 old_striplib=
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12650 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12654 $as_echo "yes" >&6; }
12655 else
12656 # FIXME - insert some real tests, host_os isn't really good enough
12657 case $host_os in
12658 darwin*)
12659 if test -n "$STRIP"; then
12660 striplib="$STRIP -x"
12661 old_striplib="$STRIP -S"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12663 $as_echo "yes" >&6; }
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667 fi
12668 ;;
12669 *)
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 ;;
12673 esac
12674 fi
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 # Report what library types will actually be built
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12691 $as_echo "$can_build_shared" >&6; }
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12694 $as_echo_n "checking whether to build shared libraries... " >&6; }
12695 test no = "$can_build_shared" && enable_shared=no
12696
12697 # On AIX, shared libraries and static libraries use the same namespace, and
12698 # are all built from PIC.
12699 case $host_os in
12700 aix3*)
12701 test yes = "$enable_shared" && enable_static=no
12702 if test -n "$RANLIB"; then
12703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12704 postinstall_cmds='$RANLIB $lib'
12705 fi
12706 ;;
12707
12708 aix[4-9]*)
12709 if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
12710 test yes = "$enable_shared" && enable_static=no
12711 fi
12712 ;;
12713 esac
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12715 $as_echo "$enable_shared" >&6; }
12716
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12718 $as_echo_n "checking whether to build static libraries... " >&6; }
12719 # Make sure either enable_shared or enable_static is yes.
12720 test yes = "$enable_shared" || enable_static=yes
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12722 $as_echo "$enable_static" >&6; }
12723
12724
12725
12726
12727 fi
12728 ac_ext=c
12729 ac_cpp='$CPP $CPPFLAGS'
12730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12733
12734 CC=$lt_save_CC
12735
12736 if test -n "$CXX" && ( test no != "$CXX" &&
12737 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12738 (test g++ != "$CXX"))); then
12739 ac_ext=cpp
12740 ac_cpp='$CXXCPP $CPPFLAGS'
12741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12745 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12746 if test -z "$CXXCPP"; then
12747 if ${ac_cv_prog_CXXCPP+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 # Double quotes because CXXCPP needs to be expanded
12751 for CXXCPP in "$CXX -E" "/lib/cpp"
12752 do
12753 ac_preproc_ok=false
12754 for ac_cxx_preproc_warn_flag in '' yes
12755 do
12756 # Use a header file that comes with gcc, so configuring glibc
12757 # with a fresh cross-compiler works.
12758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12759 # <limits.h> exists even on freestanding compilers.
12760 # On the NeXT, cc -E runs the code through the compiler's parser,
12761 # not just through cpp. "Syntax error" is here to catch this case.
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #ifdef __STDC__
12765 # include <limits.h>
12766 #else
12767 # include <assert.h>
12768 #endif
12769 Syntax error
12770 _ACEOF
12771 if ac_fn_cxx_try_cpp "$LINENO"; then :
12772
12773 else
12774 # Broken: fails on valid input.
12775 continue
12776 fi
12777 rm -f conftest.err conftest.i conftest.$ac_ext
12778
12779 # OK, works on sane cases. Now check whether nonexistent headers
12780 # can be detected and how.
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 #include <ac_nonexistent.h>
12784 _ACEOF
12785 if ac_fn_cxx_try_cpp "$LINENO"; then :
12786 # Broken: success on invalid input.
12787 continue
12788 else
12789 # Passes both tests.
12790 ac_preproc_ok=:
12791 break
12792 fi
12793 rm -f conftest.err conftest.i conftest.$ac_ext
12794
12795 done
12796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12797 rm -f conftest.i conftest.err conftest.$ac_ext
12798 if $ac_preproc_ok; then :
12799 break
12800 fi
12801
12802 done
12803 ac_cv_prog_CXXCPP=$CXXCPP
12804
12805 fi
12806 CXXCPP=$ac_cv_prog_CXXCPP
12807 else
12808 ac_cv_prog_CXXCPP=$CXXCPP
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12811 $as_echo "$CXXCPP" >&6; }
12812 ac_preproc_ok=false
12813 for ac_cxx_preproc_warn_flag in '' yes
12814 do
12815 # Use a header file that comes with gcc, so configuring glibc
12816 # with a fresh cross-compiler works.
12817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 # <limits.h> exists even on freestanding compilers.
12819 # On the NeXT, cc -E runs the code through the compiler's parser,
12820 # not just through cpp. "Syntax error" is here to catch this case.
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 #ifdef __STDC__
12824 # include <limits.h>
12825 #else
12826 # include <assert.h>
12827 #endif
12828 Syntax error
12829 _ACEOF
12830 if ac_fn_cxx_try_cpp "$LINENO"; then :
12831
12832 else
12833 # Broken: fails on valid input.
12834 continue
12835 fi
12836 rm -f conftest.err conftest.i conftest.$ac_ext
12837
12838 # OK, works on sane cases. Now check whether nonexistent headers
12839 # can be detected and how.
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 #include <ac_nonexistent.h>
12843 _ACEOF
12844 if ac_fn_cxx_try_cpp "$LINENO"; then :
12845 # Broken: success on invalid input.
12846 continue
12847 else
12848 # Passes both tests.
12849 ac_preproc_ok=:
12850 break
12851 fi
12852 rm -f conftest.err conftest.i conftest.$ac_ext
12853
12854 done
12855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12856 rm -f conftest.i conftest.err conftest.$ac_ext
12857 if $ac_preproc_ok; then :
12858
12859 else
12860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12862 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12863 See \`config.log' for more details" "$LINENO" 5; }
12864 fi
12865
12866 ac_ext=c
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872 else
12873 _lt_caught_CXX_error=yes
12874 fi
12875
12876 ac_ext=cpp
12877 ac_cpp='$CXXCPP $CPPFLAGS'
12878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881
12882 archive_cmds_need_lc_CXX=no
12883 allow_undefined_flag_CXX=
12884 always_export_symbols_CXX=no
12885 archive_expsym_cmds_CXX=
12886 compiler_needs_object_CXX=no
12887 export_dynamic_flag_spec_CXX=
12888 hardcode_direct_CXX=no
12889 hardcode_direct_absolute_CXX=no
12890 hardcode_libdir_flag_spec_CXX=
12891 hardcode_libdir_separator_CXX=
12892 hardcode_minus_L_CXX=no
12893 hardcode_shlibpath_var_CXX=unsupported
12894 hardcode_automatic_CXX=no
12895 inherit_rpath_CXX=no
12896 module_cmds_CXX=
12897 module_expsym_cmds_CXX=
12898 link_all_deplibs_CXX=unknown
12899 old_archive_cmds_CXX=$old_archive_cmds
12900 reload_flag_CXX=$reload_flag
12901 reload_cmds_CXX=$reload_cmds
12902 no_undefined_flag_CXX=
12903 whole_archive_flag_spec_CXX=
12904 enable_shared_with_static_runtimes_CXX=no
12905
12906 # Source file extension for C++ test sources.
12907 ac_ext=cpp
12908
12909 # Object file extension for compiled C++ test sources.
12910 objext=o
12911 objext_CXX=$objext
12912
12913 # No sense in running all these tests if we already determined that
12914 # the CXX compiler isn't working. Some variables (like enable_shared)
12915 # are currently assumed to apply to all compilers on this platform,
12916 # and will be corrupted by setting them based on a non-working compiler.
12917 if test yes != "$_lt_caught_CXX_error"; then
12918 # Code to be used in simple compile tests
12919 lt_simple_compile_test_code="int some_variable = 0;"
12920
12921 # Code to be used in simple link tests
12922 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12923
12924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12925
12926
12927
12928
12929
12930
12931 # If no C compiler was specified, use CC.
12932 LTCC=${LTCC-"$CC"}
12933
12934 # If no C compiler flags were specified, use CFLAGS.
12935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12936
12937 # Allow CC to be a program name with arguments.
12938 compiler=$CC
12939
12940
12941 # save warnings/boilerplate of simple test code
12942 ac_outfile=conftest.$ac_objext
12943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12945 _lt_compiler_boilerplate=`cat conftest.err`
12946 $RM conftest*
12947
12948 ac_outfile=conftest.$ac_objext
12949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12951 _lt_linker_boilerplate=`cat conftest.err`
12952 $RM -r conftest*
12953
12954
12955 # Allow CC to be a program name with arguments.
12956 lt_save_CC=$CC
12957 lt_save_CFLAGS=$CFLAGS
12958 lt_save_LD=$LD
12959 lt_save_GCC=$GCC
12960 GCC=$GXX
12961 lt_save_with_gnu_ld=$with_gnu_ld
12962 lt_save_path_LD=$lt_cv_path_LD
12963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12965 else
12966 $as_unset lt_cv_prog_gnu_ld
12967 fi
12968 if test -n "${lt_cv_path_LDCXX+set}"; then
12969 lt_cv_path_LD=$lt_cv_path_LDCXX
12970 else
12971 $as_unset lt_cv_path_LD
12972 fi
12973 test -z "${LDCXX+set}" || LD=$LDCXX
12974 CC=${CXX-"c++"}
12975 CFLAGS=$CXXFLAGS
12976 compiler=$CC
12977 compiler_CXX=$CC
12978 for cc_temp in $compiler""; do
12979 case $cc_temp in
12980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12982 \-*) ;;
12983 *) break;;
12984 esac
12985 done
12986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12987
12988
12989 if test -n "$compiler"; then
12990 # We don't want -fno-exception when compiling C++ code, so set the
12991 # no_builtin_flag separately
12992 if test yes = "$GXX"; then
12993 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12994 else
12995 lt_prog_compiler_no_builtin_flag_CXX=
12996 fi
12997
12998 if test yes = "$GXX"; then
12999 # Set up default GNU C++ configuration
13000
13001
13002
13003 # Check whether --with-gnu-ld was given.
13004 if test "${with_gnu_ld+set}" = set; then :
13005 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13006 else
13007 with_gnu_ld=no
13008 fi
13009
13010 ac_prog=ld
13011 if test yes = "$GCC"; then
13012 # Check if gcc -print-prog-name=ld gives a path.
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13014 $as_echo_n "checking for ld used by $CC... " >&6; }
13015 case $host in
13016 *-*-mingw*)
13017 # gcc leaves a trailing carriage return, which upsets mingw
13018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13019 *)
13020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13021 esac
13022 case $ac_prog in
13023 # Accept absolute paths.
13024 [\\/]* | ?:[\\/]*)
13025 re_direlt='/[^/][^/]*/\.\./'
13026 # Canonicalize the pathname of ld
13027 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13028 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13029 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13030 done
13031 test -z "$LD" && LD=$ac_prog
13032 ;;
13033 "")
13034 # If it fails, then pretend we aren't using GCC.
13035 ac_prog=ld
13036 ;;
13037 *)
13038 # If it is relative, then search for the first ld in PATH.
13039 with_gnu_ld=unknown
13040 ;;
13041 esac
13042 elif test yes = "$with_gnu_ld"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13044 $as_echo_n "checking for GNU ld... " >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13047 $as_echo_n "checking for non-GNU ld... " >&6; }
13048 fi
13049 if ${lt_cv_path_LD+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -z "$LD"; then
13053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13054 for ac_dir in $PATH; do
13055 IFS=$lt_save_ifs
13056 test -z "$ac_dir" && ac_dir=.
13057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13058 lt_cv_path_LD=$ac_dir/$ac_prog
13059 # Check to see if the program is GNU ld. I'd rather use --version,
13060 # but apparently some variants of GNU ld only accept -v.
13061 # Break only if it was the GNU/non-GNU ld that we prefer.
13062 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13063 *GNU* | *'with BFD'*)
13064 test no != "$with_gnu_ld" && break
13065 ;;
13066 *)
13067 test yes != "$with_gnu_ld" && break
13068 ;;
13069 esac
13070 fi
13071 done
13072 IFS=$lt_save_ifs
13073 else
13074 lt_cv_path_LD=$LD # Let the user override the test with a path.
13075 fi
13076 fi
13077
13078 LD=$lt_cv_path_LD
13079 if test -n "$LD"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13081 $as_echo "$LD" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13089 if ${lt_cv_prog_gnu_ld+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13093 case `$LD -v 2>&1 </dev/null` in
13094 *GNU* | *'with BFD'*)
13095 lt_cv_prog_gnu_ld=yes
13096 ;;
13097 *)
13098 lt_cv_prog_gnu_ld=no
13099 ;;
13100 esac
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13103 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13104 with_gnu_ld=$lt_cv_prog_gnu_ld
13105
13106
13107
13108
13109
13110
13111
13112 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13113 # archiving commands below assume that GNU ld is being used.
13114 if test yes = "$with_gnu_ld"; then
13115 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13116 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'
13117
13118 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13119 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13120
13121 # If archive_cmds runs LD, not CC, wlarc should be empty
13122 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13123 # investigate it a little bit more. (MM)
13124 wlarc='$wl'
13125
13126 # ancient GNU ld didn't support --whole-archive et. al.
13127 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13128 $GREP 'no-whole-archive' > /dev/null; then
13129 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13130 else
13131 whole_archive_flag_spec_CXX=
13132 fi
13133 else
13134 with_gnu_ld=no
13135 wlarc=
13136
13137 # A generic and very simple default shared library creation
13138 # command for GNU C++ for the case where it uses the native
13139 # linker, instead of GNU ld. If possible, this setting should
13140 # overridden to take advantage of the native linker features on
13141 # the platform it is being used on.
13142 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13143 fi
13144
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13149
13150 else
13151 GXX=no
13152 with_gnu_ld=no
13153 wlarc=
13154 fi
13155
13156 # PORTME: fill in a description of your system's C++ link characteristics
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13159 ld_shlibs_CXX=yes
13160 case $host_os in
13161 aix3*)
13162 # FIXME: insert proper C++ library support
13163 ld_shlibs_CXX=no
13164 ;;
13165 aix[4-9]*)
13166 if test ia64 = "$host_cpu"; then
13167 # On IA64, the linker does run time linking by default, so we don't
13168 # have to do anything special.
13169 aix_use_runtimelinking=no
13170 exp_sym_flag='-Bexport'
13171 no_entry_flag=
13172 else
13173 aix_use_runtimelinking=no
13174
13175 # Test if we are trying to use run time linking or normal
13176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13177 # need to do runtime linking.
13178 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13179 for ld_flag in $LDFLAGS; do
13180 case $ld_flag in
13181 *-brtl*)
13182 aix_use_runtimelinking=yes
13183 break
13184 ;;
13185 esac
13186 done
13187 ;;
13188 esac
13189
13190 exp_sym_flag='-bexport'
13191 no_entry_flag='-bnoentry'
13192 fi
13193
13194 # When large executables or shared objects are built, AIX ld can
13195 # have problems creating the table of contents. If linking a library
13196 # or program results in "error TOC overflow" add -mminimal-toc to
13197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13199
13200 archive_cmds_CXX=''
13201 hardcode_direct_CXX=yes
13202 hardcode_direct_absolute_CXX=yes
13203 hardcode_libdir_separator_CXX=':'
13204 link_all_deplibs_CXX=yes
13205 file_list_spec_CXX='$wl-f,'
13206
13207 if test yes = "$GXX"; then
13208 case $host_os in aix4.[012]|aix4.[012].*)
13209 # We only want to do this on AIX 4.2 and lower, the check
13210 # below for broken collect2 doesn't work under 4.3+
13211 collect2name=`$CC -print-prog-name=collect2`
13212 if test -f "$collect2name" &&
13213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13214 then
13215 # We have reworked collect2
13216 :
13217 else
13218 # We have old collect2
13219 hardcode_direct_CXX=unsupported
13220 # It fails to find uninstalled libraries when the uninstalled
13221 # path is not listed in the libpath. Setting hardcode_minus_L
13222 # to unsupported forces relinking
13223 hardcode_minus_L_CXX=yes
13224 hardcode_libdir_flag_spec_CXX='-L$libdir'
13225 hardcode_libdir_separator_CXX=
13226 fi
13227 esac
13228 shared_flag='-shared'
13229 if test yes = "$aix_use_runtimelinking"; then
13230 shared_flag=$shared_flag' $wl-G'
13231 fi
13232 else
13233 # not using gcc
13234 if test ia64 = "$host_cpu"; then
13235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13236 # chokes on -Wl,-G. The following line is correct:
13237 shared_flag='-G'
13238 else
13239 if test yes = "$aix_use_runtimelinking"; then
13240 shared_flag='$wl-G'
13241 else
13242 shared_flag='$wl-bM:SRE'
13243 fi
13244 fi
13245 fi
13246
13247 export_dynamic_flag_spec_CXX='$wl-bexpall'
13248 # It seems that -bexpall does not export symbols beginning with
13249 # underscore (_), so it is better to generate a list of symbols to
13250 # export.
13251 always_export_symbols_CXX=yes
13252 if test yes = "$aix_use_runtimelinking"; then
13253 # Warning - without using the other runtime loading flags (-brtl),
13254 # -berok will link without error, but may produce a broken library.
13255 allow_undefined_flag_CXX='-berok'
13256 # Determine the default libpath from the value encoded in an empty
13257 # executable.
13258 if test set = "${lt_cv_aix_libpath+set}"; then
13259 aix_libpath=$lt_cv_aix_libpath
13260 else
13261 if ${lt_cv_aix_libpath__CXX+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13266
13267 int
13268 main ()
13269 {
13270
13271 ;
13272 return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_cxx_try_link "$LINENO"; then :
13276
13277 lt_aix_libpath_sed='
13278 /Import File Strings/,/^$/ {
13279 /^0/ {
13280 s/^0 *\([^ ]*\) *$/\1/
13281 p
13282 }
13283 }'
13284 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13285 # Check for a 64-bit object if we didn't find anything.
13286 if test -z "$lt_cv_aix_libpath__CXX"; then
13287 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13288 fi
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 if test -z "$lt_cv_aix_libpath__CXX"; then
13293 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13294 fi
13295
13296 fi
13297
13298 aix_libpath=$lt_cv_aix_libpath__CXX
13299 fi
13300
13301 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13302
13303 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13304 else
13305 if test ia64 = "$host_cpu"; then
13306 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13307 allow_undefined_flag_CXX="-z nodefs"
13308 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"
13309 else
13310 # Determine the default libpath from the value encoded in an
13311 # empty executable.
13312 if test set = "${lt_cv_aix_libpath+set}"; then
13313 aix_libpath=$lt_cv_aix_libpath
13314 else
13315 if ${lt_cv_aix_libpath__CXX+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320
13321 int
13322 main ()
13323 {
13324
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_cxx_try_link "$LINENO"; then :
13330
13331 lt_aix_libpath_sed='
13332 /Import File Strings/,/^$/ {
13333 /^0/ {
13334 s/^0 *\([^ ]*\) *$/\1/
13335 p
13336 }
13337 }'
13338 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339 # Check for a 64-bit object if we didn't find anything.
13340 if test -z "$lt_cv_aix_libpath__CXX"; then
13341 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13342 fi
13343 fi
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 if test -z "$lt_cv_aix_libpath__CXX"; then
13347 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13348 fi
13349
13350 fi
13351
13352 aix_libpath=$lt_cv_aix_libpath__CXX
13353 fi
13354
13355 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13356 # Warning - without using the other run time loading flags,
13357 # -berok will link without error, but may produce a broken library.
13358 no_undefined_flag_CXX=' $wl-bernotok'
13359 allow_undefined_flag_CXX=' $wl-berok'
13360 if test yes = "$with_gnu_ld"; then
13361 # We only use this code for GNU lds that support --whole-archive.
13362 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13363 else
13364 # Exported symbols can be pulled into shared objects from archives
13365 whole_archive_flag_spec_CXX='$convenience'
13366 fi
13367 archive_cmds_need_lc_CXX=yes
13368 # This is similar to how AIX traditionally builds its shared
13369 # libraries.
13370 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'
13371 fi
13372 fi
13373 ;;
13374
13375 beos*)
13376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13377 allow_undefined_flag_CXX=unsupported
13378 # Joseph Beckenbach <[email protected]> says some releases of gcc
13379 # support --undefined. This deserves some investigation. FIXME
13380 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13381 else
13382 ld_shlibs_CXX=no
13383 fi
13384 ;;
13385
13386 chorus*)
13387 case $cc_basename in
13388 *)
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13391 ;;
13392 esac
13393 ;;
13394
13395 cygwin* | mingw* | pw32* | cegcc*)
13396 case $GXX,$cc_basename in
13397 ,cl* | no,cl*)
13398 # Native MSVC
13399 # hardcode_libdir_flag_spec is actually meaningless, as there is
13400 # no search path for DLLs.
13401 hardcode_libdir_flag_spec_CXX=' '
13402 allow_undefined_flag_CXX=unsupported
13403 always_export_symbols_CXX=yes
13404 file_list_spec_CXX='@'
13405 # Tell ltmain to make .lib files, not .a files.
13406 libext=lib
13407 # Tell ltmain to make .dll files, not .so files.
13408 shrext_cmds=.dll
13409 # FIXME: Setting linknames here is a bad hack.
13410 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13411 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13412 cp "$export_symbols" "$output_objdir/$soname.def";
13413 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13414 else
13415 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13416 fi~
13417 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13418 linknames='
13419 # The linker will not automatically build a static lib if we build a DLL.
13420 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13421 enable_shared_with_static_runtimes_CXX=yes
13422 # Don't use ranlib
13423 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13424 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13425 lt_tool_outputfile="@TOOL_OUTPUT@"~
13426 case $lt_outputfile in
13427 *.exe|*.EXE) ;;
13428 *)
13429 lt_outputfile=$lt_outputfile.exe
13430 lt_tool_outputfile=$lt_tool_outputfile.exe
13431 ;;
13432 esac~
13433 func_to_tool_file "$lt_outputfile"~
13434 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13435 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13436 $RM "$lt_outputfile.manifest";
13437 fi'
13438 ;;
13439 *)
13440 # g++
13441 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13442 # as there is no search path for DLLs.
13443 hardcode_libdir_flag_spec_CXX='-L$libdir'
13444 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13445 allow_undefined_flag_CXX=unsupported
13446 always_export_symbols_CXX=no
13447 enable_shared_with_static_runtimes_CXX=yes
13448
13449 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13450 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'
13451 # If the export-symbols file already is a .def file, use it as
13452 # is; otherwise, prepend EXPORTS...
13453 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13454 cp $export_symbols $output_objdir/$soname.def;
13455 else
13456 echo EXPORTS > $output_objdir/$soname.def;
13457 cat $export_symbols >> $output_objdir/$soname.def;
13458 fi~
13459 $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'
13460 else
13461 ld_shlibs_CXX=no
13462 fi
13463 ;;
13464 esac
13465 ;;
13466 darwin* | rhapsody*)
13467
13468
13469 archive_cmds_need_lc_CXX=no
13470 hardcode_direct_CXX=no
13471 hardcode_automatic_CXX=yes
13472 hardcode_shlibpath_var_CXX=unsupported
13473 if test yes = "$lt_cv_ld_force_load"; then
13474 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\"`'
13475
13476 else
13477 whole_archive_flag_spec_CXX=''
13478 fi
13479 link_all_deplibs_CXX=yes
13480 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13481 case $cc_basename in
13482 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13483 *) _lt_dar_can_shared=$GCC ;;
13484 esac
13485 if test yes = "$_lt_dar_can_shared"; then
13486 output_verbose_link_cmd=func_echo_all
13487 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"
13488 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13489 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"
13490 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"
13491 if test yes != "$lt_cv_apple_cc_single_mod"; then
13492 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"
13493 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"
13494 fi
13495
13496 else
13497 ld_shlibs_CXX=no
13498 fi
13499
13500 ;;
13501
13502 dgux*)
13503 case $cc_basename in
13504 ec++*)
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13507 ;;
13508 ghcx*)
13509 # Green Hills C++ Compiler
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513 *)
13514 # FIXME: insert proper C++ library support
13515 ld_shlibs_CXX=no
13516 ;;
13517 esac
13518 ;;
13519
13520 freebsd2.*)
13521 # C++ shared libraries reported to be fairly broken before
13522 # switch to ELF
13523 ld_shlibs_CXX=no
13524 ;;
13525
13526 freebsd-elf*)
13527 archive_cmds_need_lc_CXX=no
13528 ;;
13529
13530 freebsd* | dragonfly*)
13531 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13532 # conventions
13533 ld_shlibs_CXX=yes
13534 ;;
13535
13536 haiku*)
13537 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13538 link_all_deplibs_CXX=yes
13539 ;;
13540
13541 hpux9*)
13542 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13543 hardcode_libdir_separator_CXX=:
13544 export_dynamic_flag_spec_CXX='$wl-E'
13545 hardcode_direct_CXX=yes
13546 hardcode_minus_L_CXX=yes # Not in the search PATH,
13547 # but as the default
13548 # location of the library.
13549
13550 case $cc_basename in
13551 CC*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555 aCC*)
13556 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13557 # Commands to make compiler produce verbose output that lists
13558 # what "hidden" libraries, object files and flags are used when
13559 # linking a shared library.
13560 #
13561 # There doesn't appear to be a way to prevent this compiler from
13562 # explicitly linking system object files so we need to strip them
13563 # from the output so that they don't get included in the library
13564 # dependencies.
13565 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"'
13566 ;;
13567 *)
13568 if test yes = "$GXX"; then
13569 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13570 else
13571 # FIXME: insert proper C++ library support
13572 ld_shlibs_CXX=no
13573 fi
13574 ;;
13575 esac
13576 ;;
13577
13578 hpux10*|hpux11*)
13579 if test no = "$with_gnu_ld"; then
13580 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13581 hardcode_libdir_separator_CXX=:
13582
13583 case $host_cpu in
13584 hppa*64*|ia64*)
13585 ;;
13586 *)
13587 export_dynamic_flag_spec_CXX='$wl-E'
13588 ;;
13589 esac
13590 fi
13591 case $host_cpu in
13592 hppa*64*|ia64*)
13593 hardcode_direct_CXX=no
13594 hardcode_shlibpath_var_CXX=no
13595 ;;
13596 *)
13597 hardcode_direct_CXX=yes
13598 hardcode_direct_absolute_CXX=yes
13599 hardcode_minus_L_CXX=yes # Not in the search PATH,
13600 # but as the default
13601 # location of the library.
13602 ;;
13603 esac
13604
13605 case $cc_basename in
13606 CC*)
13607 # FIXME: insert proper C++ library support
13608 ld_shlibs_CXX=no
13609 ;;
13610 aCC*)
13611 case $host_cpu in
13612 hppa*64*)
13613 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13614 ;;
13615 ia64*)
13616 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13617 ;;
13618 *)
13619 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13620 ;;
13621 esac
13622 # Commands to make compiler produce verbose output that lists
13623 # what "hidden" libraries, object files and flags are used when
13624 # linking a shared library.
13625 #
13626 # There doesn't appear to be a way to prevent this compiler from
13627 # explicitly linking system object files so we need to strip them
13628 # from the output so that they don't get included in the library
13629 # dependencies.
13630 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"'
13631 ;;
13632 *)
13633 if test yes = "$GXX"; then
13634 if test no = "$with_gnu_ld"; then
13635 case $host_cpu in
13636 hppa*64*)
13637 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13638 ;;
13639 ia64*)
13640 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13641 ;;
13642 *)
13643 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'
13644 ;;
13645 esac
13646 fi
13647 else
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13650 fi
13651 ;;
13652 esac
13653 ;;
13654
13655 interix[3-9]*)
13656 hardcode_direct_CXX=no
13657 hardcode_shlibpath_var_CXX=no
13658 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13659 export_dynamic_flag_spec_CXX='$wl-E'
13660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13661 # Instead, shared libraries are loaded at an image base (0x10000000 by
13662 # default) and relocated if they conflict, which is a slow very memory
13663 # consuming and fragmenting process. To avoid this, we pick a random,
13664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13666 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'
13667 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'
13668 ;;
13669 irix5* | irix6*)
13670 case $cc_basename in
13671 CC*)
13672 # SGI C++
13673 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'
13674
13675 # Archives containing C++ object files must be created using
13676 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13677 # necessary to make sure instantiated templates are included
13678 # in the archive.
13679 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13680 ;;
13681 *)
13682 if test yes = "$GXX"; then
13683 if test no = "$with_gnu_ld"; then
13684 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'
13685 else
13686 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'
13687 fi
13688 fi
13689 link_all_deplibs_CXX=yes
13690 ;;
13691 esac
13692 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13693 hardcode_libdir_separator_CXX=:
13694 inherit_rpath_CXX=yes
13695 ;;
13696
13697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13698 case $cc_basename in
13699 KCC*)
13700 # Kuck and Associates, Inc. (KAI) C++ Compiler
13701
13702 # KCC will only create a shared library if the output file
13703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13704 # to its proper name (with version) after linking.
13705 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'
13706 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'
13707 # Commands to make compiler produce verbose output that lists
13708 # what "hidden" libraries, object files and flags are used when
13709 # linking a shared library.
13710 #
13711 # There doesn't appear to be a way to prevent this compiler from
13712 # explicitly linking system object files so we need to strip them
13713 # from the output so that they don't get included in the library
13714 # dependencies.
13715 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"'
13716
13717 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13718 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13719
13720 # Archives containing C++ object files must be created using
13721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13723 ;;
13724 icpc* | ecpc* )
13725 # Intel C++
13726 with_gnu_ld=yes
13727 # version 8.0 and above of icpc choke on multiply defined symbols
13728 # if we add $predep_objects and $postdep_objects, however 7.1 and
13729 # earlier do not add the objects themselves.
13730 case `$CC -V 2>&1` in
13731 *"Version 7."*)
13732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13733 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'
13734 ;;
13735 *) # Version 8.0 or newer
13736 tmp_idyn=
13737 case $host_cpu in
13738 ia64*) tmp_idyn=' -i_dynamic';;
13739 esac
13740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13741 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'
13742 ;;
13743 esac
13744 archive_cmds_need_lc_CXX=no
13745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13747 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13748 ;;
13749 pgCC* | pgcpp*)
13750 # Portland Group C++ compiler
13751 case `$CC -V` in
13752 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13753 prelink_cmds_CXX='tpldir=Template.dir~
13754 rm -rf $tpldir~
13755 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13756 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13757 old_archive_cmds_CXX='tpldir=Template.dir~
13758 rm -rf $tpldir~
13759 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13760 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13761 $RANLIB $oldlib'
13762 archive_cmds_CXX='tpldir=Template.dir~
13763 rm -rf $tpldir~
13764 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13765 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13766 archive_expsym_cmds_CXX='tpldir=Template.dir~
13767 rm -rf $tpldir~
13768 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13769 $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'
13770 ;;
13771 *) # Version 6 and above use weak symbols
13772 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13773 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'
13774 ;;
13775 esac
13776
13777 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13778 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13779 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'
13780 ;;
13781 cxx*)
13782 # Compaq C++
13783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13784 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'
13785
13786 runpath_var=LD_RUN_PATH
13787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13788 hardcode_libdir_separator_CXX=:
13789
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 #
13794 # There doesn't appear to be a way to prevent this compiler from
13795 # explicitly linking system object files so we need to strip them
13796 # from the output so that they don't get included in the library
13797 # dependencies.
13798 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'
13799 ;;
13800 xl* | mpixl* | bgxl*)
13801 # IBM XL 8.0 on PPC, with GNU ld
13802 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13803 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13804 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13805 if test yes = "$supports_anon_versioning"; then
13806 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13808 echo "local: *; };" >> $output_objdir/$libname.ver~
13809 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13810 fi
13811 ;;
13812 *)
13813 case `$CC -V 2>&1 | sed 5q` in
13814 *Sun\ C*)
13815 # Sun C++ 5.9
13816 no_undefined_flag_CXX=' -zdefs'
13817 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818 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'
13819 hardcode_libdir_flag_spec_CXX='-R$libdir'
13820 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'
13821 compiler_needs_object_CXX=yes
13822
13823 # Not sure whether something based on
13824 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13825 # would be better.
13826 output_verbose_link_cmd='func_echo_all'
13827
13828 # Archives containing C++ object files must be created using
13829 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13830 # necessary to make sure instantiated templates are included
13831 # in the archive.
13832 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13833 ;;
13834 esac
13835 ;;
13836 esac
13837 ;;
13838
13839 lynxos*)
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13842 ;;
13843
13844 m88k*)
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13847 ;;
13848
13849 mvs*)
13850 case $cc_basename in
13851 cxx*)
13852 # FIXME: insert proper C++ library support
13853 ld_shlibs_CXX=no
13854 ;;
13855 *)
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13858 ;;
13859 esac
13860 ;;
13861
13862 netbsd*)
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13865 wlarc=
13866 hardcode_libdir_flag_spec_CXX='-R$libdir'
13867 hardcode_direct_CXX=yes
13868 hardcode_shlibpath_var_CXX=no
13869 fi
13870 # Workaround some broken pre-1.5 toolchains
13871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13872 ;;
13873
13874 *nto* | *qnx*)
13875 ld_shlibs_CXX=yes
13876 ;;
13877
13878 openbsd* | bitrig*)
13879 if test -f /usr/libexec/ld.so; then
13880 hardcode_direct_CXX=yes
13881 hardcode_shlibpath_var_CXX=no
13882 hardcode_direct_absolute_CXX=yes
13883 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13884 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13886 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13887 export_dynamic_flag_spec_CXX='$wl-E'
13888 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13889 fi
13890 output_verbose_link_cmd=func_echo_all
13891 else
13892 ld_shlibs_CXX=no
13893 fi
13894 ;;
13895
13896 osf3* | osf4* | osf5*)
13897 case $cc_basename in
13898 KCC*)
13899 # Kuck and Associates, Inc. (KAI) C++ Compiler
13900
13901 # KCC will only create a shared library if the output file
13902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13903 # to its proper name (with version) after linking.
13904 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'
13905
13906 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13907 hardcode_libdir_separator_CXX=:
13908
13909 # Archives containing C++ object files must be created using
13910 # the KAI C++ compiler.
13911 case $host in
13912 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13913 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13914 esac
13915 ;;
13916 RCC*)
13917 # Rational C++ 2.4.1
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13920 ;;
13921 cxx*)
13922 case $host in
13923 osf3*)
13924 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13925 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'
13926 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13927 ;;
13928 *)
13929 allow_undefined_flag_CXX=' -expect_unresolved \*'
13930 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'
13931 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13932 echo "-hidden">> $lib.exp~
13933 $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~
13934 $RM $lib.exp'
13935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13936 ;;
13937 esac
13938
13939 hardcode_libdir_separator_CXX=:
13940
13941 # Commands to make compiler produce verbose output that lists
13942 # what "hidden" libraries, object files and flags are used when
13943 # linking a shared library.
13944 #
13945 # There doesn't appear to be a way to prevent this compiler from
13946 # explicitly linking system object files so we need to strip them
13947 # from the output so that they don't get included in the library
13948 # dependencies.
13949 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"'
13950 ;;
13951 *)
13952 if test yes,no = "$GXX,$with_gnu_ld"; then
13953 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13954 case $host in
13955 osf3*)
13956 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'
13957 ;;
13958 *)
13959 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'
13960 ;;
13961 esac
13962
13963 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13964 hardcode_libdir_separator_CXX=:
13965
13966 # Commands to make compiler produce verbose output that lists
13967 # what "hidden" libraries, object files and flags are used when
13968 # linking a shared library.
13969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13970
13971 else
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 fi
13975 ;;
13976 esac
13977 ;;
13978
13979 psos*)
13980 # FIXME: insert proper C++ library support
13981 ld_shlibs_CXX=no
13982 ;;
13983
13984 sunos4*)
13985 case $cc_basename in
13986 CC*)
13987 # Sun C++ 4.x
13988 # FIXME: insert proper C++ library support
13989 ld_shlibs_CXX=no
13990 ;;
13991 lcc*)
13992 # Lucid
13993 # FIXME: insert proper C++ library support
13994 ld_shlibs_CXX=no
13995 ;;
13996 *)
13997 # FIXME: insert proper C++ library support
13998 ld_shlibs_CXX=no
13999 ;;
14000 esac
14001 ;;
14002
14003 solaris*)
14004 case $cc_basename in
14005 CC* | sunCC*)
14006 # Sun C++ 4.2, 5.x and Centerline C++
14007 archive_cmds_need_lc_CXX=yes
14008 no_undefined_flag_CXX=' -zdefs'
14009 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14010 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14011 $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'
14012
14013 hardcode_libdir_flag_spec_CXX='-R$libdir'
14014 hardcode_shlibpath_var_CXX=no
14015 case $host_os in
14016 solaris2.[0-5] | solaris2.[0-5].*) ;;
14017 *)
14018 # The compiler driver will combine and reorder linker options,
14019 # but understands '-z linker_flag'.
14020 # Supported since Solaris 2.6 (maybe 2.5.1?)
14021 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14022 ;;
14023 esac
14024 link_all_deplibs_CXX=yes
14025
14026 output_verbose_link_cmd='func_echo_all'
14027
14028 # Archives containing C++ object files must be created using
14029 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14030 # necessary to make sure instantiated templates are included
14031 # in the archive.
14032 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14033 ;;
14034 gcx*)
14035 # Green Hills C++ Compiler
14036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14037
14038 # The C++ compiler must be used to create the archive.
14039 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14040 ;;
14041 *)
14042 # GNU C++ compiler with Solaris linker
14043 if test yes,no = "$GXX,$with_gnu_ld"; then
14044 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14045 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14046 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14048 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14049
14050 # Commands to make compiler produce verbose output that lists
14051 # what "hidden" libraries, object files and flags are used when
14052 # linking a shared library.
14053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14054 else
14055 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14056 # platform.
14057 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14060
14061 # Commands to make compiler produce verbose output that lists
14062 # what "hidden" libraries, object files and flags are used when
14063 # linking a shared library.
14064 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14065 fi
14066
14067 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14068 case $host_os in
14069 solaris2.[0-5] | solaris2.[0-5].*) ;;
14070 *)
14071 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14072 ;;
14073 esac
14074 fi
14075 ;;
14076 esac
14077 ;;
14078
14079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14080 no_undefined_flag_CXX='$wl-z,text'
14081 archive_cmds_need_lc_CXX=no
14082 hardcode_shlibpath_var_CXX=no
14083 runpath_var='LD_RUN_PATH'
14084
14085 case $cc_basename in
14086 CC*)
14087 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14092 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14093 ;;
14094 esac
14095 ;;
14096
14097 sysv5* | sco3.2v5* | sco5v6*)
14098 # Note: We CANNOT use -z defs as we might desire, because we do not
14099 # link with -lc, and that would cause any symbols used from libc to
14100 # always be unresolved, which means just about no library would
14101 # ever link correctly. If we're not using GNU ld we use -z text
14102 # though, which does catch some bad symbols but isn't as heavy-handed
14103 # as -z defs.
14104 no_undefined_flag_CXX='$wl-z,text'
14105 allow_undefined_flag_CXX='$wl-z,nodefs'
14106 archive_cmds_need_lc_CXX=no
14107 hardcode_shlibpath_var_CXX=no
14108 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14109 hardcode_libdir_separator_CXX=':'
14110 link_all_deplibs_CXX=yes
14111 export_dynamic_flag_spec_CXX='$wl-Bexport'
14112 runpath_var='LD_RUN_PATH'
14113
14114 case $cc_basename in
14115 CC*)
14116 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14117 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14119 '"$old_archive_cmds_CXX"
14120 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14121 '"$reload_cmds_CXX"
14122 ;;
14123 *)
14124 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126 ;;
14127 esac
14128 ;;
14129
14130 tandem*)
14131 case $cc_basename in
14132 NCC*)
14133 # NonStop-UX NCC 3.20
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14136 ;;
14137 *)
14138 # FIXME: insert proper C++ library support
14139 ld_shlibs_CXX=no
14140 ;;
14141 esac
14142 ;;
14143
14144 vxworks*)
14145 # FIXME: insert proper C++ library support
14146 ld_shlibs_CXX=no
14147 ;;
14148
14149 *)
14150 # FIXME: insert proper C++ library support
14151 ld_shlibs_CXX=no
14152 ;;
14153 esac
14154
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14156 $as_echo "$ld_shlibs_CXX" >&6; }
14157 test no = "$ld_shlibs_CXX" && can_build_shared=no
14158
14159 GCC_CXX=$GXX
14160 LD_CXX=$LD
14161
14162 ## CAVEAT EMPTOR:
14163 ## There is no encapsulation within the following macros, do not change
14164 ## the running order or otherwise move them around unless you know exactly
14165 ## what you are doing...
14166 # Dependencies to place before and after the object being linked:
14167 predep_objects_CXX=
14168 postdep_objects_CXX=
14169 predeps_CXX=
14170 postdeps_CXX=
14171 compiler_lib_search_path_CXX=
14172
14173 cat > conftest.$ac_ext <<_LT_EOF
14174 class Foo
14175 {
14176 public:
14177 Foo (void) { a = 0; }
14178 private:
14179 int a;
14180 };
14181 _LT_EOF
14182
14183
14184 _lt_libdeps_save_CFLAGS=$CFLAGS
14185 case "$CC $CFLAGS " in #(
14186 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14187 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14188 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14189 esac
14190
14191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14192 (eval $ac_compile) 2>&5
14193 ac_status=$?
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; }; then
14196 # Parse the compiler output and extract the necessary
14197 # objects, libraries and library flags.
14198
14199 # Sentinel used to keep track of whether or not we are before
14200 # the conftest object file.
14201 pre_test_object_deps_done=no
14202
14203 for p in `eval "$output_verbose_link_cmd"`; do
14204 case $prev$p in
14205
14206 -L* | -R* | -l*)
14207 # Some compilers place space between "-{L,R}" and the path.
14208 # Remove the space.
14209 if test x-L = "$p" ||
14210 test x-R = "$p"; then
14211 prev=$p
14212 continue
14213 fi
14214
14215 # Expand the sysroot to ease extracting the directories later.
14216 if test -z "$prev"; then
14217 case $p in
14218 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14219 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14220 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14221 esac
14222 fi
14223 case $p in
14224 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14225 esac
14226 if test no = "$pre_test_object_deps_done"; then
14227 case $prev in
14228 -L | -R)
14229 # Internal compiler library paths should come after those
14230 # provided the user. The postdeps already come after the
14231 # user supplied libs so there is no need to process them.
14232 if test -z "$compiler_lib_search_path_CXX"; then
14233 compiler_lib_search_path_CXX=$prev$p
14234 else
14235 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14236 fi
14237 ;;
14238 # The "-l" case would never come before the object being
14239 # linked, so don't bother handling this case.
14240 esac
14241 else
14242 if test -z "$postdeps_CXX"; then
14243 postdeps_CXX=$prev$p
14244 else
14245 postdeps_CXX="${postdeps_CXX} $prev$p"
14246 fi
14247 fi
14248 prev=
14249 ;;
14250
14251 *.lto.$objext) ;; # Ignore GCC LTO objects
14252 *.$objext)
14253 # This assumes that the test object file only shows up
14254 # once in the compiler output.
14255 if test "$p" = "conftest.$objext"; then
14256 pre_test_object_deps_done=yes
14257 continue
14258 fi
14259
14260 if test no = "$pre_test_object_deps_done"; then
14261 if test -z "$predep_objects_CXX"; then
14262 predep_objects_CXX=$p
14263 else
14264 predep_objects_CXX="$predep_objects_CXX $p"
14265 fi
14266 else
14267 if test -z "$postdep_objects_CXX"; then
14268 postdep_objects_CXX=$p
14269 else
14270 postdep_objects_CXX="$postdep_objects_CXX $p"
14271 fi
14272 fi
14273 ;;
14274
14275 *) ;; # Ignore the rest.
14276
14277 esac
14278 done
14279
14280 # Clean up.
14281 rm -f a.out a.exe
14282 else
14283 echo "libtool.m4: error: problem compiling CXX test program"
14284 fi
14285
14286 $RM -f confest.$objext
14287 CFLAGS=$_lt_libdeps_save_CFLAGS
14288
14289 # PORTME: override above test on systems where it is broken
14290 case $host_os in
14291 interix[3-9]*)
14292 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14293 # hack all around it, let's just trust "g++" to DTRT.
14294 predep_objects_CXX=
14295 postdep_objects_CXX=
14296 postdeps_CXX=
14297 ;;
14298
14299 linux*)
14300 case `$CC -V 2>&1 | sed 5q` in
14301 *Sun\ C*)
14302 # Sun C++ 5.9
14303
14304 # The more standards-conforming stlport4 library is
14305 # incompatible with the Cstd library. Avoid specifying
14306 # it if it's in CXXFLAGS. Ignore libCrun as
14307 # -library=stlport4 depends on it.
14308 case " $CXX $CXXFLAGS " in
14309 *" -library=stlport4 "*)
14310 solaris_use_stlport4=yes
14311 ;;
14312 esac
14313
14314 if test yes != "$solaris_use_stlport4"; then
14315 postdeps_CXX='-library=Cstd -library=Crun'
14316 fi
14317 ;;
14318 esac
14319 ;;
14320
14321 solaris*)
14322 case $cc_basename in
14323 CC* | sunCC*)
14324 # The more standards-conforming stlport4 library is
14325 # incompatible with the Cstd library. Avoid specifying
14326 # it if it's in CXXFLAGS. Ignore libCrun as
14327 # -library=stlport4 depends on it.
14328 case " $CXX $CXXFLAGS " in
14329 *" -library=stlport4 "*)
14330 solaris_use_stlport4=yes
14331 ;;
14332 esac
14333
14334 # Adding this requires a known-good setup of shared libraries for
14335 # Sun compiler versions before 5.6, else PIC objects from an old
14336 # archive will be linked into the output, leading to subtle bugs.
14337 if test yes != "$solaris_use_stlport4"; then
14338 postdeps_CXX='-library=Cstd -library=Crun'
14339 fi
14340 ;;
14341 esac
14342 ;;
14343 esac
14344
14345
14346 case " $postdeps_CXX " in
14347 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14348 esac
14349 compiler_lib_search_dirs_CXX=
14350 if test -n "${compiler_lib_search_path_CXX}"; then
14351 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14352 fi
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384 lt_prog_compiler_wl_CXX=
14385 lt_prog_compiler_pic_CXX=
14386 lt_prog_compiler_static_CXX=
14387
14388
14389 # C++ specific cases for pic, static, wl, etc.
14390 if test yes = "$GXX"; then
14391 lt_prog_compiler_wl_CXX='-Wl,'
14392 lt_prog_compiler_static_CXX='-static'
14393
14394 case $host_os in
14395 aix*)
14396 # All AIX code is PIC.
14397 if test ia64 = "$host_cpu"; then
14398 # AIX 5 now supports IA64 processor
14399 lt_prog_compiler_static_CXX='-Bstatic'
14400 fi
14401 lt_prog_compiler_pic_CXX='-fPIC'
14402 ;;
14403
14404 amigaos*)
14405 case $host_cpu in
14406 powerpc)
14407 # see comment about AmigaOS4 .so support
14408 lt_prog_compiler_pic_CXX='-fPIC'
14409 ;;
14410 m68k)
14411 # FIXME: we need at least 68020 code to build shared libraries, but
14412 # adding the '-m68020' flag to GCC prevents building anything better,
14413 # like '-m68040'.
14414 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14415 ;;
14416 esac
14417 ;;
14418
14419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14420 # PIC is the default for these OSes.
14421 ;;
14422 mingw* | cygwin* | os2* | pw32* | cegcc*)
14423 # This hack is so that the source file can tell whether it is being
14424 # built for inclusion in a dll (and should export symbols for example).
14425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14426 # (--disable-auto-import) libraries
14427 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14428 ;;
14429 darwin* | rhapsody*)
14430 # PIC is the default on this platform
14431 # Common symbols not allowed in MH_DYLIB files
14432 lt_prog_compiler_pic_CXX='-fno-common'
14433 ;;
14434 *djgpp*)
14435 # DJGPP does not support shared libraries at all
14436 lt_prog_compiler_pic_CXX=
14437 ;;
14438 haiku*)
14439 # PIC is the default for Haiku.
14440 # The "-static" flag exists, but is broken.
14441 lt_prog_compiler_static_CXX=
14442 ;;
14443 interix[3-9]*)
14444 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14445 # Instead, we relocate shared libraries at runtime.
14446 ;;
14447 sysv4*MP*)
14448 if test -d /usr/nec; then
14449 lt_prog_compiler_pic_CXX=-Kconform_pic
14450 fi
14451 ;;
14452 hpux*)
14453 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14454 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14455 # sets the default TLS model and affects inlining.
14456 case $host_cpu in
14457 hppa*64*)
14458 ;;
14459 *)
14460 lt_prog_compiler_pic_CXX='-fPIC'
14461 ;;
14462 esac
14463 ;;
14464 *qnx* | *nto*)
14465 # QNX uses GNU C++, but need to define -shared option too, otherwise
14466 # it will coredump.
14467 lt_prog_compiler_pic_CXX='-fPIC -shared'
14468 ;;
14469 *)
14470 lt_prog_compiler_pic_CXX='-fPIC'
14471 ;;
14472 esac
14473 else
14474 case $host_os in
14475 aix[4-9]*)
14476 # All AIX code is PIC.
14477 if test ia64 = "$host_cpu"; then
14478 # AIX 5 now supports IA64 processor
14479 lt_prog_compiler_static_CXX='-Bstatic'
14480 else
14481 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14482 fi
14483 ;;
14484 chorus*)
14485 case $cc_basename in
14486 cxch68*)
14487 # Green Hills C++ Compiler
14488 # _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"
14489 ;;
14490 esac
14491 ;;
14492 mingw* | cygwin* | os2* | pw32* | cegcc*)
14493 # This hack is so that the source file can tell whether it is being
14494 # built for inclusion in a dll (and should export symbols for example).
14495 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14496 ;;
14497 dgux*)
14498 case $cc_basename in
14499 ec++*)
14500 lt_prog_compiler_pic_CXX='-KPIC'
14501 ;;
14502 ghcx*)
14503 # Green Hills C++ Compiler
14504 lt_prog_compiler_pic_CXX='-pic'
14505 ;;
14506 *)
14507 ;;
14508 esac
14509 ;;
14510 freebsd* | dragonfly*)
14511 # FreeBSD uses GNU C++
14512 ;;
14513 hpux9* | hpux10* | hpux11*)
14514 case $cc_basename in
14515 CC*)
14516 lt_prog_compiler_wl_CXX='-Wl,'
14517 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14518 if test ia64 != "$host_cpu"; then
14519 lt_prog_compiler_pic_CXX='+Z'
14520 fi
14521 ;;
14522 aCC*)
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14525 case $host_cpu in
14526 hppa*64*|ia64*)
14527 # +Z the default
14528 ;;
14529 *)
14530 lt_prog_compiler_pic_CXX='+Z'
14531 ;;
14532 esac
14533 ;;
14534 *)
14535 ;;
14536 esac
14537 ;;
14538 interix*)
14539 # This is c89, which is MS Visual C++ (no shared libs)
14540 # Anyone wants to do a port?
14541 ;;
14542 irix5* | irix6* | nonstopux*)
14543 case $cc_basename in
14544 CC*)
14545 lt_prog_compiler_wl_CXX='-Wl,'
14546 lt_prog_compiler_static_CXX='-non_shared'
14547 # CC pic flag -KPIC is the default.
14548 ;;
14549 *)
14550 ;;
14551 esac
14552 ;;
14553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14554 case $cc_basename in
14555 KCC*)
14556 # KAI C++ Compiler
14557 lt_prog_compiler_wl_CXX='--backend -Wl,'
14558 lt_prog_compiler_pic_CXX='-fPIC'
14559 ;;
14560 ecpc* )
14561 # old Intel C++ for x86_64, which still supported -KPIC.
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-KPIC'
14564 lt_prog_compiler_static_CXX='-static'
14565 ;;
14566 icpc* )
14567 # Intel C++, used to be incompatible with GCC.
14568 # ICC 10 doesn't accept -KPIC any more.
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_pic_CXX='-fPIC'
14571 lt_prog_compiler_static_CXX='-static'
14572 ;;
14573 pgCC* | pgcpp*)
14574 # Portland Group C++ compiler
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-fpic'
14577 lt_prog_compiler_static_CXX='-Bstatic'
14578 ;;
14579 cxx*)
14580 # Compaq C++
14581 # Make sure the PIC flag is empty. It appears that all Alpha
14582 # Linux and Compaq Tru64 Unix objects are PIC.
14583 lt_prog_compiler_pic_CXX=
14584 lt_prog_compiler_static_CXX='-non_shared'
14585 ;;
14586 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14587 # IBM XL 8.0, 9.0 on PPC and BlueGene
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-qpic'
14590 lt_prog_compiler_static_CXX='-qstaticlink'
14591 ;;
14592 *)
14593 case `$CC -V 2>&1 | sed 5q` in
14594 *Sun\ C*)
14595 # Sun C++ 5.9
14596 lt_prog_compiler_pic_CXX='-KPIC'
14597 lt_prog_compiler_static_CXX='-Bstatic'
14598 lt_prog_compiler_wl_CXX='-Qoption ld '
14599 ;;
14600 esac
14601 ;;
14602 esac
14603 ;;
14604 lynxos*)
14605 ;;
14606 m88k*)
14607 ;;
14608 mvs*)
14609 case $cc_basename in
14610 cxx*)
14611 lt_prog_compiler_pic_CXX='-W c,exportall'
14612 ;;
14613 *)
14614 ;;
14615 esac
14616 ;;
14617 netbsd*)
14618 ;;
14619 *qnx* | *nto*)
14620 # QNX uses GNU C++, but need to define -shared option too, otherwise
14621 # it will coredump.
14622 lt_prog_compiler_pic_CXX='-fPIC -shared'
14623 ;;
14624 osf3* | osf4* | osf5*)
14625 case $cc_basename in
14626 KCC*)
14627 lt_prog_compiler_wl_CXX='--backend -Wl,'
14628 ;;
14629 RCC*)
14630 # Rational C++ 2.4.1
14631 lt_prog_compiler_pic_CXX='-pic'
14632 ;;
14633 cxx*)
14634 # Digital/Compaq C++
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 # Make sure the PIC flag is empty. It appears that all Alpha
14637 # Linux and Compaq Tru64 Unix objects are PIC.
14638 lt_prog_compiler_pic_CXX=
14639 lt_prog_compiler_static_CXX='-non_shared'
14640 ;;
14641 *)
14642 ;;
14643 esac
14644 ;;
14645 psos*)
14646 ;;
14647 solaris*)
14648 case $cc_basename in
14649 CC* | sunCC*)
14650 # Sun C++ 4.2, 5.x and Centerline C++
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 lt_prog_compiler_static_CXX='-Bstatic'
14653 lt_prog_compiler_wl_CXX='-Qoption ld '
14654 ;;
14655 gcx*)
14656 # Green Hills C++ Compiler
14657 lt_prog_compiler_pic_CXX='-PIC'
14658 ;;
14659 *)
14660 ;;
14661 esac
14662 ;;
14663 sunos4*)
14664 case $cc_basename in
14665 CC*)
14666 # Sun C++ 4.x
14667 lt_prog_compiler_pic_CXX='-pic'
14668 lt_prog_compiler_static_CXX='-Bstatic'
14669 ;;
14670 lcc*)
14671 # Lucid
14672 lt_prog_compiler_pic_CXX='-pic'
14673 ;;
14674 *)
14675 ;;
14676 esac
14677 ;;
14678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14679 case $cc_basename in
14680 CC*)
14681 lt_prog_compiler_wl_CXX='-Wl,'
14682 lt_prog_compiler_pic_CXX='-KPIC'
14683 lt_prog_compiler_static_CXX='-Bstatic'
14684 ;;
14685 esac
14686 ;;
14687 tandem*)
14688 case $cc_basename in
14689 NCC*)
14690 # NonStop-UX NCC 3.20
14691 lt_prog_compiler_pic_CXX='-KPIC'
14692 ;;
14693 *)
14694 ;;
14695 esac
14696 ;;
14697 vxworks*)
14698 ;;
14699 *)
14700 lt_prog_compiler_can_build_shared_CXX=no
14701 ;;
14702 esac
14703 fi
14704
14705 case $host_os in
14706 # For platforms that do not support PIC, -DPIC is meaningless:
14707 *djgpp*)
14708 lt_prog_compiler_pic_CXX=
14709 ;;
14710 *)
14711 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14712 ;;
14713 esac
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14716 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14717 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14721 fi
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14723 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14724 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14725
14726 #
14727 # Check to make sure the PIC flag actually works.
14728 #
14729 if test -n "$lt_prog_compiler_pic_CXX"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14732 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 lt_cv_prog_compiler_pic_works_CXX=no
14736 ac_outfile=conftest.$ac_objext
14737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14738 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14739 # Insert the option either (1) after the last *FLAGS variable, or
14740 # (2) before a word containing "conftest.", or (3) at the end.
14741 # Note that $ac_compile itself does not contain backslashes and begins
14742 # with a dollar sign (not a hyphen), so the echo should work correctly.
14743 # The option is referenced via a variable to avoid confusing sed.
14744 lt_compile=`echo "$ac_compile" | $SED \
14745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747 -e 's:$: $lt_compiler_flag:'`
14748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14749 (eval "$lt_compile" 2>conftest.err)
14750 ac_status=$?
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 if (exit $ac_status) && test -s "$ac_outfile"; then
14754 # The compiler can only warn and ignore the option if not recognized
14755 # So say no if there are warnings other than the usual output.
14756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler_pic_works_CXX=yes
14760 fi
14761 fi
14762 $RM conftest*
14763
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14766 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14767
14768 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14769 case $lt_prog_compiler_pic_CXX in
14770 "" | " "*) ;;
14771 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14772 esac
14773 else
14774 lt_prog_compiler_pic_CXX=
14775 lt_prog_compiler_can_build_shared_CXX=no
14776 fi
14777
14778 fi
14779
14780
14781
14782
14783
14784 #
14785 # Check to make sure the static flag actually works.
14786 #
14787 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14789 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14790 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 lt_cv_prog_compiler_static_works_CXX=no
14794 save_LDFLAGS=$LDFLAGS
14795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14798 # The linker can only warn and ignore the option if not recognized
14799 # So say no if there are warnings
14800 if test -s conftest.err; then
14801 # Append any errors to the config.log.
14802 cat conftest.err 1>&5
14803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14805 if diff conftest.exp conftest.er2 >/dev/null; then
14806 lt_cv_prog_compiler_static_works_CXX=yes
14807 fi
14808 else
14809 lt_cv_prog_compiler_static_works_CXX=yes
14810 fi
14811 fi
14812 $RM -r conftest*
14813 LDFLAGS=$save_LDFLAGS
14814
14815 fi
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14817 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14818
14819 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14820 :
14821 else
14822 lt_prog_compiler_static_CXX=
14823 fi
14824
14825
14826
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14830 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 lt_cv_prog_compiler_c_o_CXX=no
14834 $RM -r conftest 2>/dev/null
14835 mkdir conftest
14836 cd conftest
14837 mkdir out
14838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14839
14840 lt_compiler_flag="-o out/conftest2.$ac_objext"
14841 # Insert the option either (1) after the last *FLAGS variable, or
14842 # (2) before a word containing "conftest.", or (3) at the end.
14843 # Note that $ac_compile itself does not contain backslashes and begins
14844 # with a dollar sign (not a hyphen), so the echo should work correctly.
14845 lt_compile=`echo "$ac_compile" | $SED \
14846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14848 -e 's:$: $lt_compiler_flag:'`
14849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14850 (eval "$lt_compile" 2>out/conftest.err)
14851 ac_status=$?
14852 cat out/conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14855 then
14856 # The compiler can only warn and ignore the option if not recognized
14857 # So say no if there are warnings
14858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14861 lt_cv_prog_compiler_c_o_CXX=yes
14862 fi
14863 fi
14864 chmod u+w . 2>&5
14865 $RM conftest*
14866 # SGI C++ compiler will create directory out/ii_files/ for
14867 # template instantiation
14868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14869 $RM out/* && rmdir out
14870 cd ..
14871 $RM -r conftest
14872 $RM conftest*
14873
14874 fi
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14876 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14877
14878
14879
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14882 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 lt_cv_prog_compiler_c_o_CXX=no
14886 $RM -r conftest 2>/dev/null
14887 mkdir conftest
14888 cd conftest
14889 mkdir out
14890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14891
14892 lt_compiler_flag="-o out/conftest2.$ac_objext"
14893 # Insert the option either (1) after the last *FLAGS variable, or
14894 # (2) before a word containing "conftest.", or (3) at the end.
14895 # Note that $ac_compile itself does not contain backslashes and begins
14896 # with a dollar sign (not a hyphen), so the echo should work correctly.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>out/conftest.err)
14903 ac_status=$?
14904 cat out/conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14907 then
14908 # The compiler can only warn and ignore the option if not recognized
14909 # So say no if there are warnings
14910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14913 lt_cv_prog_compiler_c_o_CXX=yes
14914 fi
14915 fi
14916 chmod u+w . 2>&5
14917 $RM conftest*
14918 # SGI C++ compiler will create directory out/ii_files/ for
14919 # template instantiation
14920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14921 $RM out/* && rmdir out
14922 cd ..
14923 $RM -r conftest
14924 $RM conftest*
14925
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14929
14930
14931
14932
14933 hard_links=nottested
14934 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14935 # do not overwrite the value of need_locks provided by the user
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14937 $as_echo_n "checking if we can lock with hard links... " >&6; }
14938 hard_links=yes
14939 $RM conftest*
14940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14941 touch conftest.a
14942 ln conftest.a conftest.b 2>&5 || hard_links=no
14943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14945 $as_echo "$hard_links" >&6; }
14946 if test no = "$hard_links"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14948 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14949 need_locks=warn
14950 fi
14951 else
14952 need_locks=no
14953 fi
14954
14955
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14958 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14959
14960 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14961 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14962 case $host_os in
14963 aix[4-9]*)
14964 # If we're using GNU nm, then we don't want the "-C" option.
14965 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14966 # Also, AIX nm treats weak defined symbols like other global defined
14967 # symbols, whereas GNU nm marks them as "W".
14968 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14969 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'
14970 else
14971 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'
14972 fi
14973 ;;
14974 pw32*)
14975 export_symbols_cmds_CXX=$ltdll_cmds
14976 ;;
14977 cygwin* | mingw* | cegcc*)
14978 case $cc_basename in
14979 cl*)
14980 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14981 ;;
14982 *)
14983 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'
14984 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14985 ;;
14986 esac
14987 ;;
14988 *)
14989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14990 ;;
14991 esac
14992
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14994 $as_echo "$ld_shlibs_CXX" >&6; }
14995 test no = "$ld_shlibs_CXX" && can_build_shared=no
14996
14997 with_gnu_ld_CXX=$with_gnu_ld
14998
14999
15000
15001
15002
15003
15004 #
15005 # Do we need to explicitly link libc?
15006 #
15007 case "x$archive_cmds_need_lc_CXX" in
15008 x|xyes)
15009 # Assume -lc should be added
15010 archive_cmds_need_lc_CXX=yes
15011
15012 if test yes,yes = "$GCC,$enable_shared"; then
15013 case $archive_cmds_CXX in
15014 *'~'*)
15015 # FIXME: we may have to deal with multi-command sequences.
15016 ;;
15017 '$CC '*)
15018 # Test whether the compiler implicitly links with -lc since on some
15019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15020 # to ld, don't add -lc before -lgcc.
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15022 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15023 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 $RM conftest*
15027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
15029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15030 (eval $ac_compile) 2>&5
15031 ac_status=$?
15032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15033 test $ac_status = 0; } 2>conftest.err; then
15034 soname=conftest
15035 lib=conftest
15036 libobjs=conftest.$ac_objext
15037 deplibs=
15038 wl=$lt_prog_compiler_wl_CXX
15039 pic_flag=$lt_prog_compiler_pic_CXX
15040 compiler_flags=-v
15041 linker_flags=-v
15042 verstring=
15043 output_objdir=.
15044 libname=conftest
15045 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15046 allow_undefined_flag_CXX=
15047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15048 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15049 ac_status=$?
15050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 test $ac_status = 0; }
15052 then
15053 lt_cv_archive_cmds_need_lc_CXX=no
15054 else
15055 lt_cv_archive_cmds_need_lc_CXX=yes
15056 fi
15057 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15058 else
15059 cat conftest.err 1>&5
15060 fi
15061 $RM conftest*
15062
15063 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15065 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15066 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15067 ;;
15068 esac
15069 fi
15070 ;;
15071 esac
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15135 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15136
15137 library_names_spec=
15138 libname_spec='lib$name'
15139 soname_spec=
15140 shrext_cmds=.so
15141 postinstall_cmds=
15142 postuninstall_cmds=
15143 finish_cmds=
15144 finish_eval=
15145 shlibpath_var=
15146 shlibpath_overrides_runpath=unknown
15147 version_type=none
15148 dynamic_linker="$host_os ld.so"
15149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15150 need_lib_prefix=unknown
15151 hardcode_into_libs=no
15152
15153 # when you set need_version to no, make sure it does not cause -set_version
15154 # flags to be left without arguments
15155 need_version=unknown
15156
15157 case $host_os in
15158 aix3*)
15159 version_type=linux # correct to gnu/linux during the next big refactor
15160 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15161 shlibpath_var=LIBPATH
15162
15163 # AIX 3 has no versioning support, so we append a major version to the name.
15164 soname_spec='$libname$release$shared_ext$major'
15165 ;;
15166
15167 aix[4-9]*)
15168 version_type=linux # correct to gnu/linux during the next big refactor
15169 need_lib_prefix=no
15170 need_version=no
15171 hardcode_into_libs=yes
15172 if test ia64 = "$host_cpu"; then
15173 # AIX 5 supports IA64
15174 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 else
15177 # With GCC up to 2.95.x, collect2 would create an import file
15178 # for dependence libraries. The import file would start with
15179 # the line '#! .'. This would cause the generated library to
15180 # depend on '.', always an invalid library. This was fixed in
15181 # development snapshots of GCC prior to 3.0.
15182 case $host_os in
15183 aix4 | aix4.[01] | aix4.[01].*)
15184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15185 echo ' yes '
15186 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15187 :
15188 else
15189 can_build_shared=no
15190 fi
15191 ;;
15192 esac
15193 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15194 # soname into executable. Probably we can add versioning support to
15195 # collect2, so additional links can be useful in future.
15196 if test yes = "$aix_use_runtimelinking"; then
15197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15198 # instead of lib<name>.a to let people know that these are not
15199 # typical AIX shared libraries.
15200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15201 else
15202 # We preserve .a as extension for shared libraries through AIX4.2
15203 # and later when we are not doing run time linking.
15204 library_names_spec='$libname$release.a $libname.a'
15205 soname_spec='$libname$release$shared_ext$major'
15206 fi
15207 shlibpath_var=LIBPATH
15208 fi
15209 ;;
15210
15211 amigaos*)
15212 case $host_cpu in
15213 powerpc)
15214 # Since July 2007 AmigaOS4 officially supports .so libraries.
15215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15217 ;;
15218 m68k)
15219 library_names_spec='$libname.ixlibrary $libname.a'
15220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15221 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15222 ;;
15223 esac
15224 ;;
15225
15226 beos*)
15227 library_names_spec='$libname$shared_ext'
15228 dynamic_linker="$host_os ld.so"
15229 shlibpath_var=LIBRARY_PATH
15230 ;;
15231
15232 bsdi[45]*)
15233 version_type=linux # correct to gnu/linux during the next big refactor
15234 need_version=no
15235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15236 soname_spec='$libname$release$shared_ext$major'
15237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15238 shlibpath_var=LD_LIBRARY_PATH
15239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15241 # the default ld.so.conf also contains /usr/contrib/lib and
15242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15243 # libtool to hard-code these into programs
15244 ;;
15245
15246 cygwin* | mingw* | pw32* | cegcc*)
15247 version_type=windows
15248 shrext_cmds=.dll
15249 need_version=no
15250 need_lib_prefix=no
15251
15252 case $GCC,$cc_basename in
15253 yes,*)
15254 # gcc
15255 library_names_spec='$libname.dll.a'
15256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15257 postinstall_cmds='base_file=`basename \$file`~
15258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15259 dldir=$destdir/`dirname \$dlpath`~
15260 test -d \$dldir || mkdir -p \$dldir~
15261 $install_prog $dir/$dlname \$dldir/$dlname~
15262 chmod a+x \$dldir/$dlname~
15263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15265 fi'
15266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15267 dlpath=$dir/\$dldll~
15268 $RM \$dlpath'
15269 shlibpath_overrides_runpath=yes
15270
15271 case $host_os in
15272 cygwin*)
15273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15274 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15275
15276 ;;
15277 mingw* | cegcc*)
15278 # MinGW DLLs use traditional 'lib' prefix
15279 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15280 ;;
15281 pw32*)
15282 # pw32 DLLs use 'pw' prefix rather than 'lib'
15283 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15284 ;;
15285 esac
15286 dynamic_linker='Win32 ld.exe'
15287 ;;
15288
15289 *,cl*)
15290 # Native MSVC
15291 libname_spec='$name'
15292 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15293 library_names_spec='$libname.dll.lib'
15294
15295 case $build_os in
15296 mingw*)
15297 sys_lib_search_path_spec=
15298 lt_save_ifs=$IFS
15299 IFS=';'
15300 for lt_path in $LIB
15301 do
15302 IFS=$lt_save_ifs
15303 # Let DOS variable expansion print the short 8.3 style file name.
15304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15306 done
15307 IFS=$lt_save_ifs
15308 # Convert to MSYS style.
15309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15310 ;;
15311 cygwin*)
15312 # Convert to unix form, then to dos form, then back to unix form
15313 # but this time dos style (no spaces!) so that the unix form looks
15314 # like /cygdrive/c/PROGRA~1:/cygdr...
15315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15318 ;;
15319 *)
15320 sys_lib_search_path_spec=$LIB
15321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15322 # It is most probably a Windows format PATH.
15323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324 else
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15326 fi
15327 # FIXME: find the short name or the path components, as spaces are
15328 # common. (e.g. "Program Files" -> "PROGRA~1")
15329 ;;
15330 esac
15331
15332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15333 postinstall_cmds='base_file=`basename \$file`~
15334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15335 dldir=$destdir/`dirname \$dlpath`~
15336 test -d \$dldir || mkdir -p \$dldir~
15337 $install_prog $dir/$dlname \$dldir/$dlname'
15338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15339 dlpath=$dir/\$dldll~
15340 $RM \$dlpath'
15341 shlibpath_overrides_runpath=yes
15342 dynamic_linker='Win32 link.exe'
15343 ;;
15344
15345 *)
15346 # Assume MSVC wrapper
15347 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15348 dynamic_linker='Win32 ld.exe'
15349 ;;
15350 esac
15351 # FIXME: first we should search . and the directory the executable is in
15352 shlibpath_var=PATH
15353 ;;
15354
15355 darwin* | rhapsody*)
15356 dynamic_linker="$host_os dyld"
15357 version_type=darwin
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15361 soname_spec='$libname$release$major$shared_ext'
15362 shlibpath_overrides_runpath=yes
15363 shlibpath_var=DYLD_LIBRARY_PATH
15364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15365
15366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15367 ;;
15368
15369 dgux*)
15370 version_type=linux # correct to gnu/linux during the next big refactor
15371 need_lib_prefix=no
15372 need_version=no
15373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15374 soname_spec='$libname$release$shared_ext$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 ;;
15377
15378 freebsd* | dragonfly*)
15379 # DragonFly does not have aout. When/if they implement a new
15380 # versioning mechanism, adjust this.
15381 if test -x /usr/bin/objformat; then
15382 objformat=`/usr/bin/objformat`
15383 else
15384 case $host_os in
15385 freebsd[23].*) objformat=aout ;;
15386 *) objformat=elf ;;
15387 esac
15388 fi
15389 version_type=freebsd-$objformat
15390 case $version_type in
15391 freebsd-elf*)
15392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15393 need_version=no
15394 need_lib_prefix=no
15395 ;;
15396 freebsd-*)
15397 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15398 need_version=yes
15399 ;;
15400 esac
15401 shlibpath_var=LD_LIBRARY_PATH
15402 case $host_os in
15403 freebsd2.*)
15404 shlibpath_overrides_runpath=yes
15405 ;;
15406 freebsd3.[01]* | freebsdelf3.[01]*)
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15409 ;;
15410 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15411 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15412 shlibpath_overrides_runpath=no
15413 hardcode_into_libs=yes
15414 ;;
15415 *) # from 4.6 on, and DragonFly
15416 shlibpath_overrides_runpath=yes
15417 hardcode_into_libs=yes
15418 ;;
15419 esac
15420 ;;
15421
15422 haiku*)
15423 version_type=linux # correct to gnu/linux during the next big refactor
15424 need_lib_prefix=no
15425 need_version=no
15426 dynamic_linker="$host_os runtime_loader"
15427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15428 soname_spec='$libname$release$shared_ext$major'
15429 shlibpath_var=LIBRARY_PATH
15430 shlibpath_overrides_runpath=no
15431 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15432 hardcode_into_libs=yes
15433 ;;
15434
15435 hpux9* | hpux10* | hpux11*)
15436 # Give a soname corresponding to the major version so that dld.sl refuses to
15437 # link against other versions.
15438 version_type=sunos
15439 need_lib_prefix=no
15440 need_version=no
15441 case $host_cpu in
15442 ia64*)
15443 shrext_cmds='.so'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.so"
15446 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15449 soname_spec='$libname$release$shared_ext$major'
15450 if test 32 = "$HPUX_IA64_MODE"; then
15451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15452 else
15453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15454 fi
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 ;;
15457 hppa*64*)
15458 shrext_cmds='.sl'
15459 hardcode_into_libs=yes
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15464 soname_spec='$libname$release$shared_ext$major'
15465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 ;;
15468 *)
15469 shrext_cmds='.sl'
15470 dynamic_linker="$host_os dld.sl"
15471 shlibpath_var=SHLIB_PATH
15472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15474 soname_spec='$libname$release$shared_ext$major'
15475 ;;
15476 esac
15477 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15478 postinstall_cmds='chmod 555 $lib'
15479 # or fails outright, so override atomically:
15480 install_override_mode=555
15481 ;;
15482
15483 interix[3-9]*)
15484 version_type=linux # correct to gnu/linux during the next big refactor
15485 need_lib_prefix=no
15486 need_version=no
15487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15488 soname_spec='$libname$release$shared_ext$major'
15489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=no
15492 hardcode_into_libs=yes
15493 ;;
15494
15495 irix5* | irix6* | nonstopux*)
15496 case $host_os in
15497 nonstopux*) version_type=nonstopux ;;
15498 *)
15499 if test yes = "$lt_cv_prog_gnu_ld"; then
15500 version_type=linux # correct to gnu/linux during the next big refactor
15501 else
15502 version_type=irix
15503 fi ;;
15504 esac
15505 need_lib_prefix=no
15506 need_version=no
15507 soname_spec='$libname$release$shared_ext$major'
15508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15509 case $host_os in
15510 irix5* | nonstopux*)
15511 libsuff= shlibsuff=
15512 ;;
15513 *)
15514 case $LD in # libtool.m4 will add one of these switches to LD
15515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15516 libsuff= shlibsuff= libmagic=32-bit;;
15517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15518 libsuff=32 shlibsuff=N32 libmagic=N32;;
15519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15520 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15521 *) libsuff= shlibsuff= libmagic=never-match;;
15522 esac
15523 ;;
15524 esac
15525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15526 shlibpath_overrides_runpath=no
15527 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15528 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15529 hardcode_into_libs=yes
15530 ;;
15531
15532 # No shared lib support for Linux oldld, aout, or coff.
15533 linux*oldld* | linux*aout* | linux*coff*)
15534 dynamic_linker=no
15535 ;;
15536
15537 linux*android*)
15538 version_type=none # Android doesn't support versioned libraries.
15539 need_lib_prefix=no
15540 need_version=no
15541 library_names_spec='$libname$release$shared_ext'
15542 soname_spec='$libname$release$shared_ext'
15543 finish_cmds=
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=yes
15546
15547 # This implies no fast_install, which is unacceptable.
15548 # Some rework will be needed to allow for fast_install
15549 # before this can be enabled.
15550 hardcode_into_libs=yes
15551
15552 dynamic_linker='Android linker'
15553 # Don't embed -rpath directories since the linker doesn't support them.
15554 hardcode_libdir_flag_spec_CXX='-L$libdir'
15555 ;;
15556
15557 # This must be glibc/ELF.
15558 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15559 version_type=linux # correct to gnu/linux during the next big refactor
15560 need_lib_prefix=no
15561 need_version=no
15562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15563 soname_spec='$libname$release$shared_ext$major'
15564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=no
15567
15568 # Some binutils ld are patched to set DT_RUNPATH
15569 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15570 $as_echo_n "(cached) " >&6
15571 else
15572 lt_cv_shlibpath_overrides_runpath=no
15573 save_LDFLAGS=$LDFLAGS
15574 save_libdir=$libdir
15575 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15576 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579
15580 int
15581 main ()
15582 {
15583
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_cxx_try_link "$LINENO"; then :
15589 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15590 lt_cv_shlibpath_overrides_runpath=yes
15591 fi
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 LDFLAGS=$save_LDFLAGS
15596 libdir=$save_libdir
15597
15598 fi
15599
15600 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15601
15602 # This implies no fast_install, which is unacceptable.
15603 # Some rework will be needed to allow for fast_install
15604 # before this can be enabled.
15605 hardcode_into_libs=yes
15606
15607 # Append ld.so.conf contents to the search path
15608 if test -f /etc/ld.so.conf; then
15609 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' ' '`
15610 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15611 fi
15612
15613 # We used to test for /lib/ld.so.1 and disable shared libraries on
15614 # powerpc, because MkLinux only supported shared libraries with the
15615 # GNU dynamic linker. Since this was broken with cross compilers,
15616 # most powerpc-linux boxes support dynamic linking these days and
15617 # people can always --disable-shared, the test was removed, and we
15618 # assume the GNU/Linux dynamic linker is in use.
15619 dynamic_linker='GNU/Linux ld.so'
15620 ;;
15621
15622 netbsd*)
15623 version_type=sunos
15624 need_lib_prefix=no
15625 need_version=no
15626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15627 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15629 dynamic_linker='NetBSD (a.out) ld.so'
15630 else
15631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15632 soname_spec='$libname$release$shared_ext$major'
15633 dynamic_linker='NetBSD ld.elf_so'
15634 fi
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15638 ;;
15639
15640 newsos6)
15641 version_type=linux # correct to gnu/linux during the next big refactor
15642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 ;;
15646
15647 *nto* | *qnx*)
15648 version_type=qnx
15649 need_lib_prefix=no
15650 need_version=no
15651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15652 soname_spec='$libname$release$shared_ext$major'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 shlibpath_overrides_runpath=no
15655 hardcode_into_libs=yes
15656 dynamic_linker='ldqnx.so'
15657 ;;
15658
15659 openbsd* | bitrig*)
15660 version_type=sunos
15661 sys_lib_dlsearch_path_spec=/usr/lib
15662 need_lib_prefix=no
15663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15664 need_version=no
15665 else
15666 need_version=yes
15667 fi
15668 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 ;;
15673
15674 os2*)
15675 libname_spec='$name'
15676 shrext_cmds=.dll
15677 need_lib_prefix=no
15678 library_names_spec='$libname$shared_ext $libname.a'
15679 dynamic_linker='OS/2 ld.exe'
15680 shlibpath_var=LIBPATH
15681 ;;
15682
15683 osf3* | osf4* | osf5*)
15684 version_type=osf
15685 need_lib_prefix=no
15686 need_version=no
15687 soname_spec='$libname$release$shared_ext$major'
15688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15692 ;;
15693
15694 rdos*)
15695 dynamic_linker=no
15696 ;;
15697
15698 solaris*)
15699 version_type=linux # correct to gnu/linux during the next big refactor
15700 need_lib_prefix=no
15701 need_version=no
15702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15703 soname_spec='$libname$release$shared_ext$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 # ldd complains unless libraries are executable
15708 postinstall_cmds='chmod +x $lib'
15709 ;;
15710
15711 sunos4*)
15712 version_type=sunos
15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15717 if test yes = "$with_gnu_ld"; then
15718 need_lib_prefix=no
15719 fi
15720 need_version=yes
15721 ;;
15722
15723 sysv4 | sysv4.3*)
15724 version_type=linux # correct to gnu/linux during the next big refactor
15725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15726 soname_spec='$libname$release$shared_ext$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 case $host_vendor in
15729 sni)
15730 shlibpath_overrides_runpath=no
15731 need_lib_prefix=no
15732 runpath_var=LD_RUN_PATH
15733 ;;
15734 siemens)
15735 need_lib_prefix=no
15736 ;;
15737 motorola)
15738 need_lib_prefix=no
15739 need_version=no
15740 shlibpath_overrides_runpath=no
15741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15742 ;;
15743 esac
15744 ;;
15745
15746 sysv4*MP*)
15747 if test -d /usr/nec; then
15748 version_type=linux # correct to gnu/linux during the next big refactor
15749 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15750 soname_spec='$libname$shared_ext.$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 fi
15753 ;;
15754
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756 version_type=freebsd-elf
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15760 soname_spec='$libname$release$shared_ext$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15764 if test yes = "$with_gnu_ld"; then
15765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15766 else
15767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768 case $host_os in
15769 sco3.2v5*)
15770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15771 ;;
15772 esac
15773 fi
15774 sys_lib_dlsearch_path_spec='/usr/lib'
15775 ;;
15776
15777 tpf*)
15778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15779 version_type=linux # correct to gnu/linux during the next big refactor
15780 need_lib_prefix=no
15781 need_version=no
15782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15786 ;;
15787
15788 uts4*)
15789 version_type=linux # correct to gnu/linux during the next big refactor
15790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15791 soname_spec='$libname$release$shared_ext$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 ;;
15794
15795 *)
15796 dynamic_linker=no
15797 ;;
15798 esac
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15800 $as_echo "$dynamic_linker" >&6; }
15801 test no = "$dynamic_linker" && can_build_shared=no
15802
15803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15804 if test yes = "$GCC"; then
15805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15806 fi
15807
15808 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15809 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15810 fi
15811 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15812 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15813 fi
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15854 hardcode_action_CXX=
15855 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15856 test -n "$runpath_var_CXX" ||
15857 test yes = "$hardcode_automatic_CXX"; then
15858
15859 # We can hardcode non-existent directories.
15860 if test no != "$hardcode_direct_CXX" &&
15861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15862 # have to relink, otherwise we might link with an installed library
15863 # when we should be linking with a yet-to-be-installed one
15864 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15865 test no != "$hardcode_minus_L_CXX"; then
15866 # Linking always hardcodes the temporary library directory.
15867 hardcode_action_CXX=relink
15868 else
15869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15870 hardcode_action_CXX=immediate
15871 fi
15872 else
15873 # We cannot hardcode anything, or else we can only hardcode existing
15874 # directories.
15875 hardcode_action_CXX=unsupported
15876 fi
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15878 $as_echo "$hardcode_action_CXX" >&6; }
15879
15880 if test relink = "$hardcode_action_CXX" ||
15881 test yes = "$inherit_rpath_CXX"; then
15882 # Fast installation is not supported
15883 enable_fast_install=no
15884 elif test yes = "$shlibpath_overrides_runpath" ||
15885 test no = "$enable_shared"; then
15886 # Fast installation is not necessary
15887 enable_fast_install=needless
15888 fi
15889
15890
15891
15892
15893
15894
15895
15896 fi # test -n "$compiler"
15897
15898 CC=$lt_save_CC
15899 CFLAGS=$lt_save_CFLAGS
15900 LDCXX=$LD
15901 LD=$lt_save_LD
15902 GCC=$lt_save_GCC
15903 with_gnu_ld=$lt_save_with_gnu_ld
15904 lt_cv_path_LDCXX=$lt_cv_path_LD
15905 lt_cv_path_LD=$lt_save_path_LD
15906 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15907 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15908 fi # test yes != "$_lt_caught_CXX_error"
15909
15910 ac_ext=c
15911 ac_cpp='$CPP $CPPFLAGS'
15912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930 ac_config_commands="$ac_config_commands libtool"
15931
15932
15933
15934
15935 # Only expand once:
15936
15937
15938
15939
15940 # Test for 64-bit build.
15941 # The cast to long int works around a bug in the HP C Compiler
15942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15944 # This bug is HP SR number 8606223364.
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15946 $as_echo_n "checking size of size_t... " >&6; }
15947 if ${ac_cv_sizeof_size_t+:} false; then :
15948 $as_echo_n "(cached) " >&6
15949 else
15950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15951
15952 else
15953 if test "$ac_cv_type_size_t" = yes; then
15954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15956 as_fn_error 77 "cannot compute sizeof (size_t)
15957 See \`config.log' for more details" "$LINENO" 5; }
15958 else
15959 ac_cv_sizeof_size_t=0
15960 fi
15961 fi
15962
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15965 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15966
15967
15968
15969 cat >>confdefs.h <<_ACEOF
15970 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15971 _ACEOF
15972
15973
15974
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
15976 $as_echo_n "checking for C compiler vendor... " >&6; }
15977 if ${ax_cv_c_compiler_vendor+:} false; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 # note: don't check for gcc first since some other compilers define __GNUC__
15981 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
15982 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
15983 pathscale: __PATHCC__,__PATHSCALE__
15984 clang: __clang__
15985 gnu: __GNUC__
15986 sun: __SUNPRO_C,__SUNPRO_CC
15987 hp: __HP_cc,__HP_aCC
15988 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
15989 borland: __BORLANDC__,__TURBOC__
15990 comeau: __COMO__
15991 cray: _CRAYC
15992 kai: __KCC
15993 lcc: __LCC__
15994 sgi: __sgi,sgi
15995 microsoft: _MSC_VER
15996 metrowerks: __MWERKS__
15997 watcom: __WATCOMC__
15998 portland: __PGI
15999 unknown: UNKNOWN"
16000 for ventest in $vendors; do
16001 case $ventest in
16002 *:) vendor=$ventest; continue ;;
16003 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
16004 esac
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007
16008 int
16009 main ()
16010 {
16011
16012 #if !($vencpp)
16013 thisisanerror;
16014 #endif
16015
16016 ;
16017 return 0;
16018 }
16019 _ACEOF
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 break
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 done
16025 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
16026
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
16029 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
16030
16031
16032
16033
16034
16035
16036 # Check whether --enable-portable-binary was given.
16037 if test "${enable_portable_binary+set}" = set; then :
16038 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
16039 else
16040 acx_maxopt_portable=no
16041 fi
16042
16043
16044 # Try to determine "good" native compiler flags if none specified via CFLAGS
16045 if test "$ac_test_CFLAGS" != "set"; then
16046 CFLAGS=""
16047 case $ax_cv_c_compiler_vendor in
16048 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
16049 if test "x$acx_maxopt_portable" = xno; then
16050 CFLAGS="$CFLAGS -arch host"
16051 fi;;
16052
16053 sun) CFLAGS="-native -fast -xO5 -dalign"
16054 if test "x$acx_maxopt_portable" = xyes; then
16055 CFLAGS="$CFLAGS -xarch=generic"
16056 fi;;
16057
16058 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
16059 if test "x$acx_maxopt_portable" = xyes; then
16060 CFLAGS="$CFLAGS +DAportable"
16061 fi;;
16062
16063 ibm) if test "x$acx_maxopt_portable" = xno; then
16064 xlc_opt="-qarch=auto -qtune=auto"
16065 else
16066 xlc_opt="-qtune=auto"
16067 fi
16068 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
16070 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
16071 if eval \${$as_CACHEVAR+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074
16075 ax_check_save_flags=$CFLAGS
16076 CFLAGS="$CFLAGS $xlc_opt"
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079
16080 int
16081 main ()
16082 {
16083
16084 ;
16085 return 0;
16086 }
16087 _ACEOF
16088 if ac_fn_c_try_compile "$LINENO"; then :
16089 eval "$as_CACHEVAR=yes"
16090 else
16091 eval "$as_CACHEVAR=no"
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094 CFLAGS=$ax_check_save_flags
16095 fi
16096 eval ac_res=\$$as_CACHEVAR
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16098 $as_echo "$ac_res" >&6; }
16099 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16100 CFLAGS="-O3 -qansialias -w $xlc_opt"
16101 else
16102 CFLAGS="-O3 -qansialias -w"
16103 echo "******************************************************"
16104 echo "* You seem to have the IBM C compiler. It is *"
16105 echo "* recommended for best performance that you use: *"
16106 echo "* *"
16107 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
16108 echo "* ^^^ ^^^ *"
16109 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
16110 echo "* CPU you have. (Set the CFLAGS environment var. *"
16111 echo "* and re-run configure.) For more info, man cc. *"
16112 echo "******************************************************"
16113 fi
16114
16115 ;;
16116
16117 intel) CFLAGS="-O3 -ansi_alias"
16118 if test "x$acx_maxopt_portable" = xno; then
16119 icc_archflag=unknown
16120 icc_flags=""
16121 case $host_cpu in
16122 i686*|x86_64*)
16123 # icc accepts gcc assembly syntax, so these should work:
16124
16125 ac_ext=c
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16130
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16132 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16133 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 if test "$cross_compiling" = yes; then :
16137 ax_cv_gcc_x86_cpuid_0=unknown
16138 else
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 #include <stdio.h>
16142 int
16143 main ()
16144 {
16145
16146 int op = 0, eax, ebx, ecx, edx;
16147 FILE *f;
16148 __asm__("cpuid"
16149 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16150 : "a" (op));
16151 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16152 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16153 fclose(f);
16154 return 0;
16155
16156 ;
16157 return 0;
16158 }
16159 _ACEOF
16160 if ac_fn_c_try_run "$LINENO"; then :
16161 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16162 else
16163 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16164 fi
16165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16166 conftest.$ac_objext conftest.beam conftest.$ac_ext
16167 fi
16168
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16171 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16172 ac_ext=c
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178
16179
16180 ac_ext=c
16181 ac_cpp='$CPP $CPPFLAGS'
16182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16185
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16187 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16188 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 if test "$cross_compiling" = yes; then :
16192 ax_cv_gcc_x86_cpuid_1=unknown
16193 else
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 #include <stdio.h>
16197 int
16198 main ()
16199 {
16200
16201 int op = 1, eax, ebx, ecx, edx;
16202 FILE *f;
16203 __asm__("cpuid"
16204 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16205 : "a" (op));
16206 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16207 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16208 fclose(f);
16209 return 0;
16210
16211 ;
16212 return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_run "$LINENO"; then :
16216 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16217 else
16218 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16219 fi
16220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16221 conftest.$ac_objext conftest.beam conftest.$ac_ext
16222 fi
16223
16224 fi
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16226 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16227 ac_ext=c
16228 ac_cpp='$CPP $CPPFLAGS'
16229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16232
16233
16234 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
16235 *:756e6547:*:*) # Intel
16236 case $ax_cv_gcc_x86_cpuid_1 in
16237 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
16238 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
16239 *f??:*:*:*) icc_flags="-xN -xW -xK";;
16240 esac ;;
16241 esac ;;
16242 esac
16243 if test "x$icc_flags" != x; then
16244 for flag in $icc_flags; do
16245 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16247 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16248 if eval \${$as_CACHEVAR+:} false; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251
16252 ax_check_save_flags=$CFLAGS
16253 CFLAGS="$CFLAGS $flag"
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256
16257 int
16258 main ()
16259 {
16260
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"; then :
16266 eval "$as_CACHEVAR=yes"
16267 else
16268 eval "$as_CACHEVAR=no"
16269 fi
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 CFLAGS=$ax_check_save_flags
16272 fi
16273 eval ac_res=\$$as_CACHEVAR
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16275 $as_echo "$ac_res" >&6; }
16276 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16277 icc_archflag=$flag; break
16278 else
16279 :
16280 fi
16281
16282 done
16283 fi
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
16285 $as_echo_n "checking for icc architecture flag... " >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
16287 $as_echo "$icc_archflag" >&6; }
16288 if test "x$icc_archflag" != xunknown; then
16289 CFLAGS="$CFLAGS $icc_archflag"
16290 fi
16291 fi
16292 ;;
16293
16294 gnu)
16295 # default optimization flags for gcc on all systems
16296 CFLAGS="-O3 -fomit-frame-pointer"
16297
16298 # -malign-double for x86 systems
16299 # LIBFFI -- DON'T DO THIS - CHANGES ABI
16300 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
16301
16302 # -fstrict-aliasing for gcc-2.95+
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
16304 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
16305 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308
16309 ax_check_save_flags=$CFLAGS
16310 CFLAGS="$CFLAGS -fstrict-aliasing"
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313
16314 int
16315 main ()
16316 {
16317
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_compile "$LINENO"; then :
16323 ax_cv_check_cflags___fstrict_aliasing=yes
16324 else
16325 ax_cv_check_cflags___fstrict_aliasing=no
16326 fi
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 CFLAGS=$ax_check_save_flags
16329 fi
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
16331 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
16332 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
16333 CFLAGS="$CFLAGS -fstrict-aliasing"
16334 else
16335 :
16336 fi
16337
16338
16339 # note that we enable "unsafe" fp optimization with other compilers, too
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
16341 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
16342 if ${ax_cv_check_cflags___ffast_math+:} false; then :
16343 $as_echo_n "(cached) " >&6
16344 else
16345
16346 ax_check_save_flags=$CFLAGS
16347 CFLAGS="$CFLAGS -ffast-math"
16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350
16351 int
16352 main ()
16353 {
16354
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 if ac_fn_c_try_compile "$LINENO"; then :
16360 ax_cv_check_cflags___ffast_math=yes
16361 else
16362 ax_cv_check_cflags___ffast_math=no
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 CFLAGS=$ax_check_save_flags
16366 fi
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
16368 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
16369 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
16370 CFLAGS="$CFLAGS -ffast-math"
16371 else
16372 :
16373 fi
16374
16375
16376
16377
16378
16379
16380 # Check whether --with-gcc-arch was given.
16381 if test "${with_gcc_arch+set}" = set; then :
16382 withval=$with_gcc_arch; ax_gcc_arch=$withval
16383 else
16384 ax_gcc_arch=yes
16385 fi
16386
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16389 $as_echo_n "checking for gcc architecture flag... " >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16391 $as_echo "" >&6; }
16392 if ${ax_cv_gcc_archflag+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395
16396 ax_cv_gcc_archflag="unknown"
16397
16398 if test "$GCC" = yes; then
16399
16400 if test "x$ax_gcc_arch" = xyes; then
16401 ax_gcc_arch=""
16402 if test "$cross_compiling" = no; then
16403 case $host_cpu in
16404 i[3456]86*|x86_64*) # use cpuid codes
16405
16406 ac_ext=c
16407 ac_cpp='$CPP $CPPFLAGS'
16408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16411
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16413 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16414 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16415 $as_echo_n "(cached) " >&6
16416 else
16417 if test "$cross_compiling" = yes; then :
16418 ax_cv_gcc_x86_cpuid_0=unknown
16419 else
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 #include <stdio.h>
16423 int
16424 main ()
16425 {
16426
16427 int op = 0, eax, ebx, ecx, edx;
16428 FILE *f;
16429 __asm__("cpuid"
16430 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16431 : "a" (op));
16432 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16433 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16434 fclose(f);
16435 return 0;
16436
16437 ;
16438 return 0;
16439 }
16440 _ACEOF
16441 if ac_fn_c_try_run "$LINENO"; then :
16442 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16443 else
16444 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16445 fi
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16447 conftest.$ac_objext conftest.beam conftest.$ac_ext
16448 fi
16449
16450 fi
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16452 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16453 ac_ext=c
16454 ac_cpp='$CPP $CPPFLAGS'
16455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16458
16459
16460
16461 ac_ext=c
16462 ac_cpp='$CPP $CPPFLAGS'
16463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16468 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16469 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 if test "$cross_compiling" = yes; then :
16473 ax_cv_gcc_x86_cpuid_1=unknown
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <stdio.h>
16478 int
16479 main ()
16480 {
16481
16482 int op = 1, eax, ebx, ecx, edx;
16483 FILE *f;
16484 __asm__("cpuid"
16485 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16486 : "a" (op));
16487 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16488 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16489 fclose(f);
16490 return 0;
16491
16492 ;
16493 return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_run "$LINENO"; then :
16497 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16498 else
16499 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16500 fi
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16503 fi
16504
16505 fi
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16507 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16508 ac_ext=c
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514
16515 case $ax_cv_gcc_x86_cpuid_0 in
16516 *:756e6547:*:*) # Intel
16517 case $ax_cv_gcc_x86_cpuid_1 in
16518 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
16519 *5??:*:*:*) ax_gcc_arch=pentium ;;
16520 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
16521 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
16522 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
16523 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
16524 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
16525 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
16526 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
16527 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
16528 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
16529 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
16530 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
16531 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
16532 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
16533 case $host_cpu in
16534 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
16535 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
16536 esac ;;
16537 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
16538 esac ;;
16539 *:68747541:*:*) # AMD
16540 case $ax_cv_gcc_x86_cpuid_1 in
16541 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
16542 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
16543 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
16544 *60?:*:*:*) ax_gcc_arch=k7 ;;
16545 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
16546 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
16547 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
16548 *6[68a]?:*:*:*)
16549
16550 ac_ext=c
16551 ac_cpp='$CPP $CPPFLAGS'
16552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16555
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
16557 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
16558 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
16559 $as_echo_n "(cached) " >&6
16560 else
16561 if test "$cross_compiling" = yes; then :
16562 ax_cv_gcc_x86_cpuid_0x80000006=unknown
16563 else
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #include <stdio.h>
16567 int
16568 main ()
16569 {
16570
16571 int op = 0x80000006, eax, ebx, ecx, edx;
16572 FILE *f;
16573 __asm__("cpuid"
16574 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
16575 : "a" (op));
16576 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16577 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16578 fclose(f);
16579 return 0;
16580
16581 ;
16582 return 0;
16583 }
16584 _ACEOF
16585 if ac_fn_c_try_run "$LINENO"; then :
16586 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
16587 else
16588 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
16589 fi
16590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16591 conftest.$ac_objext conftest.beam conftest.$ac_ext
16592 fi
16593
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
16596 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
16597 ac_ext=c
16598 ac_cpp='$CPP $CPPFLAGS'
16599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16602
16603 # L2 cache size
16604 case $ax_cv_gcc_x86_cpuid_0x80000006 in
16605 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
16606 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
16607 *) ax_gcc_arch="athlon-4 athlon k7" ;;
16608 esac ;;
16609 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
16610 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
16611 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
16612 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
16613 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
16614 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
16615 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
16616 esac ;;
16617 *:746e6543:*:*) # IDT
16618 case $ax_cv_gcc_x86_cpuid_1 in
16619 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
16620 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
16621 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
16622 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
16623 esac ;;
16624 esac
16625 if test x"$ax_gcc_arch" = x; then # fallback
16626 case $host_cpu in
16627 i586*) ax_gcc_arch=pentium ;;
16628 i686*) ax_gcc_arch=pentiumpro ;;
16629 esac
16630 fi
16631 ;;
16632
16633 sparc*)
16634 # Extract the first word of "prtdiag", so it can be a program name with args.
16635 set dummy prtdiag; ac_word=$2
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637 $as_echo_n "checking for $ac_word... " >&6; }
16638 if ${ac_cv_path_PRTDIAG+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 case $PRTDIAG in
16642 [\\/]* | ?:[\\/]*)
16643 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
16644 ;;
16645 *)
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
16648 for as_dir in $as_dummy
16649 do
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
16652 for ac_exec_ext in '' $ac_executable_extensions; do
16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
16655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16656 break 2
16657 fi
16658 done
16659 done
16660 IFS=$as_save_IFS
16661
16662 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
16663 ;;
16664 esac
16665 fi
16666 PRTDIAG=$ac_cv_path_PRTDIAG
16667 if test -n "$PRTDIAG"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
16669 $as_echo "$PRTDIAG" >&6; }
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16673 fi
16674
16675
16676 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
16677 cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' | tr $as_cr_LETTERS $as_cr_letters`
16678 case $cputype in
16679 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
16680 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
16681 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
16682 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
16683 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
16684 *cypress*) ax_gcc_arch=cypress ;;
16685 esac ;;
16686
16687 alphaev5) ax_gcc_arch=ev5 ;;
16688 alphaev56) ax_gcc_arch=ev56 ;;
16689 alphapca56) ax_gcc_arch="pca56 ev56" ;;
16690 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
16691 alphaev6) ax_gcc_arch=ev6 ;;
16692 alphaev67) ax_gcc_arch=ev67 ;;
16693 alphaev68) ax_gcc_arch="ev68 ev67" ;;
16694 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
16695 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
16696 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
16697
16698 powerpc*)
16699 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
16700 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
16701 case $cputype in
16702 *750*) ax_gcc_arch="750 G3" ;;
16703 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
16704 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
16705 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
16706 *970*) ax_gcc_arch="970 G5 power4";;
16707 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
16708 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
16709 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
16710 *) ax_gcc_arch=$cputype ;;
16711 esac
16712 ax_gcc_arch="$ax_gcc_arch powerpc"
16713 ;;
16714 esac
16715 fi # not cross-compiling
16716 fi # guess arch
16717
16718 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
16719 for arch in $ax_gcc_arch; do
16720 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
16721 flags="-mtune=$arch"
16722 # -mcpu=$arch and m$arch generate nonportable code on every arch except
16723 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
16724 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
16725 else
16726 flags="-march=$arch -mcpu=$arch -m$arch"
16727 fi
16728 for flag in $flags; do
16729 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16731 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16732 if eval \${$as_CACHEVAR+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735
16736 ax_check_save_flags=$CFLAGS
16737 CFLAGS="$CFLAGS $flag"
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740
16741 int
16742 main ()
16743 {
16744
16745 ;
16746 return 0;
16747 }
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 eval "$as_CACHEVAR=yes"
16751 else
16752 eval "$as_CACHEVAR=no"
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 CFLAGS=$ax_check_save_flags
16756 fi
16757 eval ac_res=\$$as_CACHEVAR
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16759 $as_echo "$ac_res" >&6; }
16760 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16761 ax_cv_gcc_archflag=$flag; break
16762 else
16763 :
16764 fi
16765
16766 done
16767 test "x$ax_cv_gcc_archflag" = xunknown || break
16768 done
16769 fi
16770
16771 fi # $GCC=yes
16772
16773 fi
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16776 $as_echo_n "checking for gcc architecture flag... " >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
16778 $as_echo "$ax_cv_gcc_archflag" >&6; }
16779 if test "x$ax_cv_gcc_archflag" = xunknown; then
16780 :
16781 else
16782 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
16783 fi
16784
16785 ;;
16786 esac
16787
16788 if test -z "$CFLAGS"; then
16789 echo ""
16790 echo "********************************************************"
16791 echo "* WARNING: Don't know the best CFLAGS for this system *"
16792 echo "* Use ./configure CFLAGS=... to specify your own flags *"
16793 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
16794 echo "********************************************************"
16795 echo ""
16796 CFLAGS="-O3"
16797 fi
16798
16799 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
16801 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
16802 if eval \${$as_CACHEVAR+:} false; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805
16806 ax_check_save_flags=$CFLAGS
16807 CFLAGS="$CFLAGS $CFLAGS"
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810
16811 int
16812 main ()
16813 {
16814
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_c_try_compile "$LINENO"; then :
16820 eval "$as_CACHEVAR=yes"
16821 else
16822 eval "$as_CACHEVAR=no"
16823 fi
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825 CFLAGS=$ax_check_save_flags
16826 fi
16827 eval ac_res=\$$as_CACHEVAR
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16829 $as_echo "$ac_res" >&6; }
16830 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16831 :
16832 else
16833
16834 echo ""
16835 echo "********************************************************"
16836 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
16837 echo "* your compiler. *"
16838 echo "* Use ./configure CFLAGS=... to specify your own flags *"
16839 echo "********************************************************"
16840 echo ""
16841 CFLAGS=""
16842
16843 fi
16844
16845
16846 fi
16847
16848 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
16849 # compiler.
16850 if test "$ax_cv_c_compiler_vendor" != "sun"; then
16851 if ${CFLAGS+:} false; then :
16852 case " $CFLAGS " in
16853 *" "*)
16854 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16855 (: CFLAGS already contains ) 2>&5
16856 ac_status=$?
16857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858 test $ac_status = 0; }
16859 ;;
16860 *)
16861 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16862 (: CFLAGS="$CFLAGS ") 2>&5
16863 ac_status=$?
16864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16865 test $ac_status = 0; }
16866 CFLAGS="$CFLAGS "
16867 ;;
16868 esac
16869 else
16870 CFLAGS=""
16871 fi
16872
16873 ac_ext=c
16874 ac_cpp='$CPP $CPPFLAGS'
16875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16878
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16880 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16881 if ${ac_cv_cflags_warn_all+:} false; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 ac_cv_cflags_warn_all="no, unknown"
16885 ac_save_CFLAGS="$CFLAGS"
16886 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16887 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890
16891 int
16892 main ()
16893 {
16894
16895 ;
16896 return 0;
16897 }
16898 _ACEOF
16899 if ac_fn_c_try_compile "$LINENO"; then :
16900 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 done
16904 CFLAGS="$ac_save_CFLAGS"
16905
16906 fi
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16908 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16909
16910 case ".$ac_cv_cflags_warn_all" in
16911 .ok|.ok,*) ;;
16912 .|.no|.no,*) ;;
16913 *) if ${CFLAGS+:} false; then :
16914 case " $CFLAGS " in
16915 *" $ac_cv_cflags_warn_all "*)
16916 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16917 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16918 ac_status=$?
16919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16920 test $ac_status = 0; }
16921 ;;
16922 *)
16923 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16924 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16925 ac_status=$?
16926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16927 test $ac_status = 0; }
16928 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16929 ;;
16930 esac
16931 else
16932 CFLAGS="$ac_cv_cflags_warn_all"
16933 fi
16934 ;;
16935 esac
16936
16937 ac_ext=c
16938 ac_cpp='$CPP $CPPFLAGS'
16939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16942
16943
16944 fi
16945
16946 if test "x$GCC" = "xyes"; then
16947 CFLAGS="$CFLAGS -fexceptions"
16948 fi
16949
16950 cat > local.exp <<EOF
16951 set CC_FOR_TARGET "$CC"
16952 set CXX_FOR_TARGET "$CXX"
16953 EOF
16954
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16957 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16958 # Check whether --enable-maintainer-mode was given.
16959 if test "${enable_maintainer_mode+set}" = set; then :
16960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16961 else
16962 USE_MAINTAINER_MODE=no
16963 fi
16964
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16966 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16967 if test $USE_MAINTAINER_MODE = yes; then
16968 MAINTAINER_MODE_TRUE=
16969 MAINTAINER_MODE_FALSE='#'
16970 else
16971 MAINTAINER_MODE_TRUE='#'
16972 MAINTAINER_MODE_FALSE=
16973 fi
16974
16975 MAINT=$MAINTAINER_MODE_TRUE
16976
16977
16978
16979 for ac_header in sys/mman.h
16980 do :
16981 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16982 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
16983 cat >>confdefs.h <<_ACEOF
16984 #define HAVE_SYS_MMAN_H 1
16985 _ACEOF
16986
16987 fi
16988
16989 done
16990
16991 for ac_func in mmap
16992 do :
16993 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16994 if test "x$ac_cv_func_mmap" = xyes; then :
16995 cat >>confdefs.h <<_ACEOF
16996 #define HAVE_MMAP 1
16997 _ACEOF
16998
16999 fi
17000 done
17001
17002
17003 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17004 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17005 libffi_header_sys_mman_h=yes
17006 else
17007 libffi_header_sys_mman_h=no
17008 fi
17009
17010
17011 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17012 if test "x$ac_cv_func_mmap" = xyes; then :
17013 libffi_func_mmap=yes
17014 else
17015 libffi_func_mmap=no
17016 fi
17017
17018 if test "$libffi_header_sys_mman_h" != yes \
17019 || test "$libffi_func_mmap" != yes; then
17020 ac_cv_func_mmap_file=no
17021 ac_cv_func_mmap_dev_zero=no
17022 ac_cv_func_mmap_anon=no
17023 else
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
17025 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
17026 if ${ac_cv_func_mmap_file+:} false; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 # Add a system to this blacklist if
17030 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
17031 # memory area containing the same data that you'd get if you applied
17032 # read() to the same fd. The only system known to have a problem here
17033 # is VMS, where text files have record structure.
17034 case "$host_os" in
17035 vms* | ultrix*)
17036 ac_cv_func_mmap_file=no ;;
17037 *)
17038 ac_cv_func_mmap_file=yes;;
17039 esac
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
17042 $as_echo "$ac_cv_func_mmap_file" >&6; }
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
17044 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
17045 if ${ac_cv_func_mmap_dev_zero+:} false; then :
17046 $as_echo_n "(cached) " >&6
17047 else
17048 # Add a system to this blacklist if it has mmap() but /dev/zero
17049 # does not exist, or if mmapping /dev/zero does not give anonymous
17050 # zeroed pages with both the following properties:
17051 # 1. If you map N consecutive pages in with one call, and then
17052 # unmap any subset of those pages, the pages that were not
17053 # explicitly unmapped remain accessible.
17054 # 2. If you map two adjacent blocks of memory and then unmap them
17055 # both at once, they must both go away.
17056 # Systems known to be in this category are Windows (all variants),
17057 # VMS, and Darwin.
17058 case "$host_os" in
17059 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
17060 ac_cv_func_mmap_dev_zero=no ;;
17061 *)
17062 ac_cv_func_mmap_dev_zero=yes;;
17063 esac
17064 fi
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
17066 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
17067
17068 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
17070 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
17071 if ${ac_cv_decl_map_anon+:} false; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <sys/types.h>
17077 #include <sys/mman.h>
17078 #include <unistd.h>
17079
17080 #ifndef MAP_ANONYMOUS
17081 #define MAP_ANONYMOUS MAP_ANON
17082 #endif
17083
17084 int
17085 main ()
17086 {
17087 int n = MAP_ANONYMOUS;
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"; then :
17093 ac_cv_decl_map_anon=yes
17094 else
17095 ac_cv_decl_map_anon=no
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
17100 $as_echo "$ac_cv_decl_map_anon" >&6; }
17101
17102 if test $ac_cv_decl_map_anon = no; then
17103 ac_cv_func_mmap_anon=no
17104 else
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
17106 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
17107 if ${ac_cv_func_mmap_anon+:} false; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17110 # Add a system to this blacklist if it has mmap() and MAP_ANON or
17111 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
17112 # doesn't give anonymous zeroed pages with the same properties listed
17113 # above for use of /dev/zero.
17114 # Systems known to be in this category are Windows, VMS, and SCO Unix.
17115 case "$host_os" in
17116 vms* | cygwin* | pe | mingw* | sco* | udk* )
17117 ac_cv_func_mmap_anon=no ;;
17118 *)
17119 ac_cv_func_mmap_anon=yes;;
17120 esac
17121 fi
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
17123 $as_echo "$ac_cv_func_mmap_anon" >&6; }
17124 fi
17125 fi
17126
17127 if test $ac_cv_func_mmap_file = yes; then
17128
17129 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
17130
17131 fi
17132 if test $ac_cv_func_mmap_dev_zero = yes; then
17133
17134 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
17135
17136 fi
17137 if test $ac_cv_func_mmap_anon = yes; then
17138
17139 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
17140
17141 fi
17142
17143
17144 if test -d $srcdir/testsuite; then
17145 TESTSUBDIR_TRUE=
17146 TESTSUBDIR_FALSE='#'
17147 else
17148 TESTSUBDIR_TRUE='#'
17149 TESTSUBDIR_FALSE=
17150 fi
17151
17152
17153 TARGETDIR="unknown"
17154 HAVE_LONG_DOUBLE_VARIANT=0
17155 case "$host" in
17156 aarch64*-*-*)
17157 TARGET=AARCH64; TARGETDIR=aarch64
17158 ;;
17159
17160 alpha*-*-*)
17161 TARGET=ALPHA; TARGETDIR=alpha;
17162 # Support 128-bit long double, changeable via command-line switch.
17163 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
17164 ;;
17165
17166 arc*-*-*)
17167 TARGET=ARC; TARGETDIR=arc
17168 ;;
17169
17170 arm*-*-*)
17171 TARGET=ARM; TARGETDIR=arm
17172 ;;
17173
17174 amd64-*-freebsd* | amd64-*-openbsd*)
17175 TARGET=X86_64; TARGETDIR=x86
17176 ;;
17177
17178 amd64-*-freebsd*)
17179 TARGET=X86_64; TARGETDIR=x86
17180 ;;
17181
17182 amd64-*-freebsd*)
17183 TARGET=X86_64; TARGETDIR=x86
17184 ;;
17185
17186 avr32*-*-*)
17187 TARGET=AVR32; TARGETDIR=avr32
17188 ;;
17189
17190 bfin*)
17191 TARGET=BFIN; TARGETDIR=bfin
17192 ;;
17193
17194 cris-*-*)
17195 TARGET=LIBFFI_CRIS; TARGETDIR=cris
17196 ;;
17197
17198 frv-*-*)
17199 TARGET=FRV; TARGETDIR=frv
17200 ;;
17201
17202 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
17203 TARGET=PA_LINUX; TARGETDIR=pa
17204 ;;
17205 hppa*64-*-hpux*)
17206 TARGET=PA64_HPUX; TARGETDIR=pa
17207 ;;
17208 hppa*-*-hpux*)
17209 TARGET=PA_HPUX; TARGETDIR=pa
17210 ;;
17211
17212 i?86-*-freebsd* | i?86-*-openbsd*)
17213 TARGET=X86_FREEBSD; TARGETDIR=x86
17214 ;;
17215 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
17216 TARGET=X86_WIN32; TARGETDIR=x86
17217 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17218 # We must also check with_cross_host to decide if this is a native
17219 # or cross-build and select where to install dlls appropriately.
17220 if test -n "$with_cross_host" &&
17221 test x"$with_cross_host" != x"no"; then
17222 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17223 else
17224 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17225 fi
17226 ;;
17227 i?86-*-darwin*)
17228 TARGET=X86_DARWIN; TARGETDIR=x86
17229 ;;
17230 i?86-*-solaris2.1[0-9]*)
17231 TARGETDIR=x86
17232 if test $ac_cv_sizeof_size_t = 4; then
17233 TARGET=X86;
17234 else
17235 TARGET=X86_64;
17236 fi
17237 ;;
17238
17239 i*86-*-nto-qnx*)
17240 TARGET=X86; TARGETDIR=x86
17241 ;;
17242
17243 x86_64-*-darwin*)
17244 TARGET=X86_DARWIN; TARGETDIR=x86
17245 ;;
17246
17247 x86_64-*-cygwin* | x86_64-*-mingw*)
17248 TARGET=X86_WIN64; TARGETDIR=x86
17249 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
17250 # We must also check with_cross_host to decide if this is a native
17251 # or cross-build and select where to install dlls appropriately.
17252 if test -n "$with_cross_host" &&
17253 test x"$with_cross_host" != x"no"; then
17254 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
17255 else
17256 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
17257 fi
17258 ;;
17259
17260 i?86-*-* | x86_64-*-*)
17261 TARGETDIR=x86
17262 if test $ac_cv_sizeof_size_t = 4; then
17263 case "$host" in
17264 *-gnux32)
17265 TARGET=X86_64
17266 ;;
17267 *)
17268 TARGET=X86
17269 ;;
17270 esac
17271 else
17272 TARGET=X86_64;
17273 fi
17274 ;;
17275
17276 ia64*-*-*)
17277 TARGET=IA64; TARGETDIR=ia64
17278 ;;
17279
17280 m32r*-*-*)
17281 TARGET=M32R; TARGETDIR=m32r
17282 ;;
17283
17284 m68k-*-*)
17285 TARGET=M68K; TARGETDIR=m68k
17286 ;;
17287
17288 m88k-*-*)
17289 TARGET=M88K; TARGETDIR=m88k
17290 ;;
17291
17292 microblaze*-*-*)
17293 TARGET=MICROBLAZE; TARGETDIR=microblaze
17294 ;;
17295
17296 moxie-*-*)
17297 TARGET=MOXIE; TARGETDIR=moxie
17298 ;;
17299
17300 metag-*-*)
17301 TARGET=METAG; TARGETDIR=metag
17302 ;;
17303
17304 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
17305 TARGET=MIPS_IRIX; TARGETDIR=mips
17306 ;;
17307 mips*-*linux* | mips*-*-openbsd*)
17308 # Support 128-bit long double for NewABI.
17309 HAVE_LONG_DOUBLE='defined(__mips64)'
17310 TARGET=MIPS_LINUX; TARGETDIR=mips
17311 ;;
17312
17313 nios2*-linux*)
17314 TARGET=NIOS2; TARGETDIR=nios2
17315 ;;
17316
17317 powerpc*-*-linux* | powerpc-*-sysv*)
17318 TARGET=POWERPC; TARGETDIR=powerpc
17319 HAVE_LONG_DOUBLE_VARIANT=1
17320 ;;
17321 powerpc-*-amigaos*)
17322 TARGET=POWERPC; TARGETDIR=powerpc
17323 ;;
17324 powerpc-*-beos*)
17325 TARGET=POWERPC; TARGETDIR=powerpc
17326 ;;
17327 powerpc-*-darwin* | powerpc64-*-darwin*)
17328 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
17329 ;;
17330 powerpc-*-aix* | rs6000-*-aix*)
17331 TARGET=POWERPC_AIX; TARGETDIR=powerpc
17332 ;;
17333 powerpc-*-freebsd* | powerpc-*-openbsd*)
17334 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
17335 HAVE_LONG_DOUBLE_VARIANT=1
17336 ;;
17337 powerpc64-*-freebsd*)
17338 TARGET=POWERPC; TARGETDIR=powerpc
17339 ;;
17340 powerpc*-*-rtems*)
17341 TARGET=POWERPC; TARGETDIR=powerpc
17342 ;;
17343
17344 s390-*-* | s390x-*-*)
17345 TARGET=S390; TARGETDIR=s390
17346 ;;
17347
17348 sh-*-* | sh[34]*-*-*)
17349 TARGET=SH; TARGETDIR=sh
17350 ;;
17351 sh64-*-* | sh5*-*-*)
17352 TARGET=SH64; TARGETDIR=sh64
17353 ;;
17354
17355 sparc*-*-*)
17356 TARGET=SPARC; TARGETDIR=sparc
17357 ;;
17358
17359 tile*-*)
17360 TARGET=TILE; TARGETDIR=tile
17361 ;;
17362
17363 vax-*-*)
17364 TARGET=VAX; TARGETDIR=vax
17365 ;;
17366
17367 xtensa*-*)
17368 TARGET=XTENSA; TARGETDIR=xtensa
17369 ;;
17370
17371 esac
17372
17373
17374
17375
17376 if test $TARGETDIR = unknown; then
17377 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
17378 fi
17379
17380 if expr x$TARGET : 'xMIPS' > /dev/null; then
17381 MIPS_TRUE=
17382 MIPS_FALSE='#'
17383 else
17384 MIPS_TRUE='#'
17385 MIPS_FALSE=
17386 fi
17387
17388 if test x$TARGET = xBFIN; then
17389 BFIN_TRUE=
17390 BFIN_FALSE='#'
17391 else
17392 BFIN_TRUE='#'
17393 BFIN_FALSE=
17394 fi
17395
17396 if test x$TARGET = xSPARC; then
17397 SPARC_TRUE=
17398 SPARC_FALSE='#'
17399 else
17400 SPARC_TRUE='#'
17401 SPARC_FALSE=
17402 fi
17403
17404 if test x$TARGET = xX86; then
17405 X86_TRUE=
17406 X86_FALSE='#'
17407 else
17408 X86_TRUE='#'
17409 X86_FALSE=
17410 fi
17411
17412 if test x$TARGET = xX86_FREEBSD; then
17413 X86_FREEBSD_TRUE=
17414 X86_FREEBSD_FALSE='#'
17415 else
17416 X86_FREEBSD_TRUE='#'
17417 X86_FREEBSD_FALSE=
17418 fi
17419
17420 if test x$TARGET = xX86_WIN32; then
17421 X86_WIN32_TRUE=
17422 X86_WIN32_FALSE='#'
17423 else
17424 X86_WIN32_TRUE='#'
17425 X86_WIN32_FALSE=
17426 fi
17427
17428 if test x$TARGET = xX86_WIN64; then
17429 X86_WIN64_TRUE=
17430 X86_WIN64_FALSE='#'
17431 else
17432 X86_WIN64_TRUE='#'
17433 X86_WIN64_FALSE=
17434 fi
17435
17436 if test x$TARGET = xX86_DARWIN; then
17437 X86_DARWIN_TRUE=
17438 X86_DARWIN_FALSE='#'
17439 else
17440 X86_DARWIN_TRUE='#'
17441 X86_DARWIN_FALSE=
17442 fi
17443
17444 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 4; then
17445 X86_DARWIN32_TRUE=
17446 X86_DARWIN32_FALSE='#'
17447 else
17448 X86_DARWIN32_TRUE='#'
17449 X86_DARWIN32_FALSE=
17450 fi
17451
17452 if test x$TARGET = xX86_DARWIN && test $ac_cv_sizeof_size_t = 8; then
17453 X86_DARWIN64_TRUE=
17454 X86_DARWIN64_FALSE='#'
17455 else
17456 X86_DARWIN64_TRUE='#'
17457 X86_DARWIN64_FALSE=
17458 fi
17459
17460 if test x$TARGET = xALPHA; then
17461 ALPHA_TRUE=
17462 ALPHA_FALSE='#'
17463 else
17464 ALPHA_TRUE='#'
17465 ALPHA_FALSE=
17466 fi
17467
17468 if test x$TARGET = xIA64; then
17469 IA64_TRUE=
17470 IA64_FALSE='#'
17471 else
17472 IA64_TRUE='#'
17473 IA64_FALSE=
17474 fi
17475
17476 if test x$TARGET = xM32R; then
17477 M32R_TRUE=
17478 M32R_FALSE='#'
17479 else
17480 M32R_TRUE='#'
17481 M32R_FALSE=
17482 fi
17483
17484 if test x$TARGET = xM68K; then
17485 M68K_TRUE=
17486 M68K_FALSE='#'
17487 else
17488 M68K_TRUE='#'
17489 M68K_FALSE=
17490 fi
17491
17492 if test x$TARGET = xM88K; then
17493 M88K_TRUE=
17494 M88K_FALSE='#'
17495 else
17496 M88K_TRUE='#'
17497 M88K_FALSE=
17498 fi
17499
17500 if test x$TARGET = xMICROBLAZE; then
17501 MICROBLAZE_TRUE=
17502 MICROBLAZE_FALSE='#'
17503 else
17504 MICROBLAZE_TRUE='#'
17505 MICROBLAZE_FALSE=
17506 fi
17507
17508 if test x$TARGET = xMETAG; then
17509 METAG_TRUE=
17510 METAG_FALSE='#'
17511 else
17512 METAG_TRUE='#'
17513 METAG_FALSE=
17514 fi
17515
17516 if test x$TARGET = xMOXIE; then
17517 MOXIE_TRUE=
17518 MOXIE_FALSE='#'
17519 else
17520 MOXIE_TRUE='#'
17521 MOXIE_FALSE=
17522 fi
17523
17524 if test x$TARGET = xNIOS2; then
17525 NIOS2_TRUE=
17526 NIOS2_FALSE='#'
17527 else
17528 NIOS2_TRUE='#'
17529 NIOS2_FALSE=
17530 fi
17531
17532 if test x$TARGET = xPOWERPC; then
17533 POWERPC_TRUE=
17534 POWERPC_FALSE='#'
17535 else
17536 POWERPC_TRUE='#'
17537 POWERPC_FALSE=
17538 fi
17539
17540 if test x$TARGET = xPOWERPC_AIX; then
17541 POWERPC_AIX_TRUE=
17542 POWERPC_AIX_FALSE='#'
17543 else
17544 POWERPC_AIX_TRUE='#'
17545 POWERPC_AIX_FALSE=
17546 fi
17547
17548 if test x$TARGET = xPOWERPC_DARWIN; then
17549 POWERPC_DARWIN_TRUE=
17550 POWERPC_DARWIN_FALSE='#'
17551 else
17552 POWERPC_DARWIN_TRUE='#'
17553 POWERPC_DARWIN_FALSE=
17554 fi
17555
17556 if test x$TARGET = xPOWERPC_FREEBSD; then
17557 POWERPC_FREEBSD_TRUE=
17558 POWERPC_FREEBSD_FALSE='#'
17559 else
17560 POWERPC_FREEBSD_TRUE='#'
17561 POWERPC_FREEBSD_FALSE=
17562 fi
17563
17564 if test x$TARGET = xAARCH64; then
17565 AARCH64_TRUE=
17566 AARCH64_FALSE='#'
17567 else
17568 AARCH64_TRUE='#'
17569 AARCH64_FALSE=
17570 fi
17571
17572 if test x$TARGET = xARC; then
17573 ARC_TRUE=
17574 ARC_FALSE='#'
17575 else
17576 ARC_TRUE='#'
17577 ARC_FALSE=
17578 fi
17579
17580 if test x$TARGET = xARM; then
17581 ARM_TRUE=
17582 ARM_FALSE='#'
17583 else
17584 ARM_TRUE='#'
17585 ARM_FALSE=
17586 fi
17587
17588 if test x$TARGET = xAVR32; then
17589 AVR32_TRUE=
17590 AVR32_FALSE='#'
17591 else
17592 AVR32_TRUE='#'
17593 AVR32_FALSE=
17594 fi
17595
17596 if test x$TARGET = xLIBFFI_CRIS; then
17597 LIBFFI_CRIS_TRUE=
17598 LIBFFI_CRIS_FALSE='#'
17599 else
17600 LIBFFI_CRIS_TRUE='#'
17601 LIBFFI_CRIS_FALSE=
17602 fi
17603
17604 if test x$TARGET = xFRV; then
17605 FRV_TRUE=
17606 FRV_FALSE='#'
17607 else
17608 FRV_TRUE='#'
17609 FRV_FALSE=
17610 fi
17611
17612 if test x$TARGET = xS390; then
17613 S390_TRUE=
17614 S390_FALSE='#'
17615 else
17616 S390_TRUE='#'
17617 S390_FALSE=
17618 fi
17619
17620 if test x$TARGET = xX86_64; then
17621 X86_64_TRUE=
17622 X86_64_FALSE='#'
17623 else
17624 X86_64_TRUE='#'
17625 X86_64_FALSE=
17626 fi
17627
17628 if test x$TARGET = xSH; then
17629 SH_TRUE=
17630 SH_FALSE='#'
17631 else
17632 SH_TRUE='#'
17633 SH_FALSE=
17634 fi
17635
17636 if test x$TARGET = xSH64; then
17637 SH64_TRUE=
17638 SH64_FALSE='#'
17639 else
17640 SH64_TRUE='#'
17641 SH64_FALSE=
17642 fi
17643
17644 if test x$TARGET = xPA_LINUX; then
17645 PA_LINUX_TRUE=
17646 PA_LINUX_FALSE='#'
17647 else
17648 PA_LINUX_TRUE='#'
17649 PA_LINUX_FALSE=
17650 fi
17651
17652 if test x$TARGET = xPA_HPUX; then
17653 PA_HPUX_TRUE=
17654 PA_HPUX_FALSE='#'
17655 else
17656 PA_HPUX_TRUE='#'
17657 PA_HPUX_FALSE=
17658 fi
17659
17660 if test x$TARGET = xPA64_HPUX; then
17661 PA64_HPUX_TRUE=
17662 PA64_HPUX_FALSE='#'
17663 else
17664 PA64_HPUX_TRUE='#'
17665 PA64_HPUX_FALSE=
17666 fi
17667
17668 if test x$TARGET = xTILE; then
17669 TILE_TRUE=
17670 TILE_FALSE='#'
17671 else
17672 TILE_TRUE='#'
17673 TILE_FALSE=
17674 fi
17675
17676 if test x$TARGET = xVAX; then
17677 VAX_TRUE=
17678 VAX_FALSE='#'
17679 else
17680 VAX_TRUE='#'
17681 VAX_FALSE=
17682 fi
17683
17684 if test x$TARGET = xXTENSA; then
17685 XTENSA_TRUE=
17686 XTENSA_FALSE='#'
17687 else
17688 XTENSA_TRUE='#'
17689 XTENSA_FALSE=
17690 fi
17691
17692
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17694 $as_echo_n "checking for ANSI C header files... " >&6; }
17695 if ${ac_cv_header_stdc+:} false; then :
17696 $as_echo_n "(cached) " >&6
17697 else
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 #include <stdlib.h>
17701 #include <stdarg.h>
17702 #include <string.h>
17703 #include <float.h>
17704
17705 int
17706 main ()
17707 {
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714 ac_cv_header_stdc=yes
17715 else
17716 ac_cv_header_stdc=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719
17720 if test $ac_cv_header_stdc = yes; then
17721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724 #include <string.h>
17725
17726 _ACEOF
17727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17728 $EGREP "memchr" >/dev/null 2>&1; then :
17729
17730 else
17731 ac_cv_header_stdc=no
17732 fi
17733 rm -f conftest*
17734
17735 fi
17736
17737 if test $ac_cv_header_stdc = yes; then
17738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741 #include <stdlib.h>
17742
17743 _ACEOF
17744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17745 $EGREP "free" >/dev/null 2>&1; then :
17746
17747 else
17748 ac_cv_header_stdc=no
17749 fi
17750 rm -f conftest*
17751
17752 fi
17753
17754 if test $ac_cv_header_stdc = yes; then
17755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17756 if test "$cross_compiling" = yes; then :
17757 :
17758 else
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761 #include <ctype.h>
17762 #include <stdlib.h>
17763 #if ((' ' & 0x0FF) == 0x020)
17764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17766 #else
17767 # define ISLOWER(c) \
17768 (('a' <= (c) && (c) <= 'i') \
17769 || ('j' <= (c) && (c) <= 'r') \
17770 || ('s' <= (c) && (c) <= 'z'))
17771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17772 #endif
17773
17774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17775 int
17776 main ()
17777 {
17778 int i;
17779 for (i = 0; i < 256; i++)
17780 if (XOR (islower (i), ISLOWER (i))
17781 || toupper (i) != TOUPPER (i))
17782 return 2;
17783 return 0;
17784 }
17785 _ACEOF
17786 if ac_fn_c_try_run "$LINENO"; then :
17787
17788 else
17789 ac_cv_header_stdc=no
17790 fi
17791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17792 conftest.$ac_objext conftest.beam conftest.$ac_ext
17793 fi
17794
17795 fi
17796 fi
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17798 $as_echo "$ac_cv_header_stdc" >&6; }
17799 if test $ac_cv_header_stdc = yes; then
17800
17801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17802
17803 fi
17804
17805 for ac_func in memcpy
17806 do :
17807 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
17808 if test "x$ac_cv_func_memcpy" = xyes; then :
17809 cat >>confdefs.h <<_ACEOF
17810 #define HAVE_MEMCPY 1
17811 _ACEOF
17812
17813 fi
17814 done
17815
17816 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17817 if test "x$ac_cv_type_size_t" = xyes; then :
17818
17819 else
17820
17821 cat >>confdefs.h <<_ACEOF
17822 #define size_t unsigned int
17823 _ACEOF
17824
17825 fi
17826
17827 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17828 # for constant arguments. Useless!
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17830 $as_echo_n "checking for working alloca.h... " >&6; }
17831 if ${ac_cv_working_alloca_h+:} false; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 #include <alloca.h>
17837 int
17838 main ()
17839 {
17840 char *p = (char *) alloca (2 * sizeof (int));
17841 if (p) return 0;
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 if ac_fn_c_try_link "$LINENO"; then :
17847 ac_cv_working_alloca_h=yes
17848 else
17849 ac_cv_working_alloca_h=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853 fi
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17855 $as_echo "$ac_cv_working_alloca_h" >&6; }
17856 if test $ac_cv_working_alloca_h = yes; then
17857
17858 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17859
17860 fi
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17863 $as_echo_n "checking for alloca... " >&6; }
17864 if ${ac_cv_func_alloca_works+:} false; then :
17865 $as_echo_n "(cached) " >&6
17866 else
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869 #ifdef __GNUC__
17870 # define alloca __builtin_alloca
17871 #else
17872 # ifdef _MSC_VER
17873 # include <malloc.h>
17874 # define alloca _alloca
17875 # else
17876 # ifdef HAVE_ALLOCA_H
17877 # include <alloca.h>
17878 # else
17879 # ifdef _AIX
17880 #pragma alloca
17881 # else
17882 # ifndef alloca /* predefined by HP cc +Olibcalls */
17883 void *alloca (size_t);
17884 # endif
17885 # endif
17886 # endif
17887 # endif
17888 #endif
17889
17890 int
17891 main ()
17892 {
17893 char *p = (char *) alloca (1);
17894 if (p) return 0;
17895 ;
17896 return 0;
17897 }
17898 _ACEOF
17899 if ac_fn_c_try_link "$LINENO"; then :
17900 ac_cv_func_alloca_works=yes
17901 else
17902 ac_cv_func_alloca_works=no
17903 fi
17904 rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
17906 fi
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17908 $as_echo "$ac_cv_func_alloca_works" >&6; }
17909
17910 if test $ac_cv_func_alloca_works = yes; then
17911
17912 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17913
17914 else
17915 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17916 # that cause trouble. Some versions do not even contain alloca or
17917 # contain a buggy version. If you still want to use their alloca,
17918 # use ar to extract alloca.o from them instead of compiling alloca.c.
17919
17920 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17921
17922 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17923
17924
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17926 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17927 if ${ac_cv_os_cray+:} false; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 #if defined CRAY && ! defined CRAY2
17933 webecray
17934 #else
17935 wenotbecray
17936 #endif
17937
17938 _ACEOF
17939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17940 $EGREP "webecray" >/dev/null 2>&1; then :
17941 ac_cv_os_cray=yes
17942 else
17943 ac_cv_os_cray=no
17944 fi
17945 rm -f conftest*
17946
17947 fi
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17949 $as_echo "$ac_cv_os_cray" >&6; }
17950 if test $ac_cv_os_cray = yes; then
17951 for ac_func in _getb67 GETB67 getb67; do
17952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17955
17956 cat >>confdefs.h <<_ACEOF
17957 #define CRAY_STACKSEG_END $ac_func
17958 _ACEOF
17959
17960 break
17961 fi
17962
17963 done
17964 fi
17965
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17967 $as_echo_n "checking stack direction for C alloca... " >&6; }
17968 if ${ac_cv_c_stack_direction+:} false; then :
17969 $as_echo_n "(cached) " >&6
17970 else
17971 if test "$cross_compiling" = yes; then :
17972 ac_cv_c_stack_direction=0
17973 else
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 $ac_includes_default
17977 int
17978 find_stack_direction (int *addr, int depth)
17979 {
17980 int dir, dummy = 0;
17981 if (! addr)
17982 addr = &dummy;
17983 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17984 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17985 return dir + dummy;
17986 }
17987
17988 int
17989 main (int argc, char **argv)
17990 {
17991 return find_stack_direction (0, argc + !argv + 20) < 0;
17992 }
17993 _ACEOF
17994 if ac_fn_c_try_run "$LINENO"; then :
17995 ac_cv_c_stack_direction=1
17996 else
17997 ac_cv_c_stack_direction=-1
17998 fi
17999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18000 conftest.$ac_objext conftest.beam conftest.$ac_ext
18001 fi
18002
18003 fi
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18005 $as_echo "$ac_cv_c_stack_direction" >&6; }
18006 cat >>confdefs.h <<_ACEOF
18007 #define STACK_DIRECTION $ac_cv_c_stack_direction
18008 _ACEOF
18009
18010
18011 fi
18012
18013
18014 # The cast to long int works around a bug in the HP C Compiler
18015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18017 # This bug is HP SR number 8606223364.
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
18019 $as_echo_n "checking size of double... " >&6; }
18020 if ${ac_cv_sizeof_double+:} false; then :
18021 $as_echo_n "(cached) " >&6
18022 else
18023 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
18024
18025 else
18026 if test "$ac_cv_type_double" = yes; then
18027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18029 as_fn_error 77 "cannot compute sizeof (double)
18030 See \`config.log' for more details" "$LINENO" 5; }
18031 else
18032 ac_cv_sizeof_double=0
18033 fi
18034 fi
18035
18036 fi
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
18038 $as_echo "$ac_cv_sizeof_double" >&6; }
18039
18040
18041
18042 cat >>confdefs.h <<_ACEOF
18043 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
18044 _ACEOF
18045
18046
18047 # The cast to long int works around a bug in the HP C Compiler
18048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18050 # This bug is HP SR number 8606223364.
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
18052 $as_echo_n "checking size of long double... " >&6; }
18053 if ${ac_cv_sizeof_long_double+:} false; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
18057
18058 else
18059 if test "$ac_cv_type_long_double" = yes; then
18060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18062 as_fn_error 77 "cannot compute sizeof (long double)
18063 See \`config.log' for more details" "$LINENO" 5; }
18064 else
18065 ac_cv_sizeof_long_double=0
18066 fi
18067 fi
18068
18069 fi
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
18071 $as_echo "$ac_cv_sizeof_long_double" >&6; }
18072
18073
18074
18075 cat >>confdefs.h <<_ACEOF
18076 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
18077 _ACEOF
18078
18079
18080
18081 # Also AC_SUBST this variable for ffi.h.
18082 if test -z "$HAVE_LONG_DOUBLE"; then
18083 HAVE_LONG_DOUBLE=0
18084 if test $ac_cv_sizeof_long_double != 0; then
18085 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
18086
18087 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
18088
18089 HAVE_LONG_DOUBLE=1
18090 else
18091 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
18092 HAVE_LONG_DOUBLE=1
18093
18094 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18095
18096 fi
18097 fi
18098 fi
18099 fi
18100
18101
18102
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18104 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18105 if ${ac_cv_c_bigendian+:} false; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108 ac_cv_c_bigendian=unknown
18109 # See if we're dealing with a universal compiler.
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 #ifndef __APPLE_CC__
18113 not a universal capable compiler
18114 #endif
18115 typedef int dummy;
18116
18117 _ACEOF
18118 if ac_fn_c_try_compile "$LINENO"; then :
18119
18120 # Check for potential -arch flags. It is not universal unless
18121 # there are at least two -arch flags with different values.
18122 ac_arch=
18123 ac_prev=
18124 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18125 if test -n "$ac_prev"; then
18126 case $ac_word in
18127 i?86 | x86_64 | ppc | ppc64)
18128 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18129 ac_arch=$ac_word
18130 else
18131 ac_cv_c_bigendian=universal
18132 break
18133 fi
18134 ;;
18135 esac
18136 ac_prev=
18137 elif test "x$ac_word" = "x-arch"; then
18138 ac_prev=arch
18139 fi
18140 done
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 if test $ac_cv_c_bigendian = unknown; then
18144 # See if sys/param.h defines the BYTE_ORDER macro.
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147 #include <sys/types.h>
18148 #include <sys/param.h>
18149
18150 int
18151 main ()
18152 {
18153 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18154 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18155 && LITTLE_ENDIAN)
18156 bogus endian macros
18157 #endif
18158
18159 ;
18160 return 0;
18161 }
18162 _ACEOF
18163 if ac_fn_c_try_compile "$LINENO"; then :
18164 # It does; now see whether it defined to BIG_ENDIAN or not.
18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18167 #include <sys/types.h>
18168 #include <sys/param.h>
18169
18170 int
18171 main ()
18172 {
18173 #if BYTE_ORDER != BIG_ENDIAN
18174 not big endian
18175 #endif
18176
18177 ;
18178 return 0;
18179 }
18180 _ACEOF
18181 if ac_fn_c_try_compile "$LINENO"; then :
18182 ac_cv_c_bigendian=yes
18183 else
18184 ac_cv_c_bigendian=no
18185 fi
18186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189 fi
18190 if test $ac_cv_c_bigendian = unknown; then
18191 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194 #include <limits.h>
18195
18196 int
18197 main ()
18198 {
18199 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18200 bogus endian macros
18201 #endif
18202
18203 ;
18204 return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_compile "$LINENO"; then :
18208 # It does; now see whether it defined to _BIG_ENDIAN or not.
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211 #include <limits.h>
18212
18213 int
18214 main ()
18215 {
18216 #ifndef _BIG_ENDIAN
18217 not big endian
18218 #endif
18219
18220 ;
18221 return 0;
18222 }
18223 _ACEOF
18224 if ac_fn_c_try_compile "$LINENO"; then :
18225 ac_cv_c_bigendian=yes
18226 else
18227 ac_cv_c_bigendian=no
18228 fi
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18230 fi
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 if test $ac_cv_c_bigendian = unknown; then
18234 # Compile a test program.
18235 if test "$cross_compiling" = yes; then :
18236 # Try to guess by grepping values from an object file.
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 short int ascii_mm[] =
18240 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18241 short int ascii_ii[] =
18242 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18243 int use_ascii (int i) {
18244 return ascii_mm[i] + ascii_ii[i];
18245 }
18246 short int ebcdic_ii[] =
18247 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18248 short int ebcdic_mm[] =
18249 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18250 int use_ebcdic (int i) {
18251 return ebcdic_mm[i] + ebcdic_ii[i];
18252 }
18253 extern int foo;
18254
18255 int
18256 main ()
18257 {
18258 return use_ascii (foo) == use_ebcdic (foo);
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 if ac_fn_c_try_compile "$LINENO"; then :
18264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18265 ac_cv_c_bigendian=yes
18266 fi
18267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18268 if test "$ac_cv_c_bigendian" = unknown; then
18269 ac_cv_c_bigendian=no
18270 else
18271 # finding both strings is unlikely to happen, but who knows?
18272 ac_cv_c_bigendian=unknown
18273 fi
18274 fi
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277 else
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 $ac_includes_default
18281 int
18282 main ()
18283 {
18284
18285 /* Are we little or big endian? From Harbison&Steele. */
18286 union
18287 {
18288 long int l;
18289 char c[sizeof (long int)];
18290 } u;
18291 u.l = 1;
18292 return u.c[sizeof (long int) - 1] == 1;
18293
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 if ac_fn_c_try_run "$LINENO"; then :
18299 ac_cv_c_bigendian=no
18300 else
18301 ac_cv_c_bigendian=yes
18302 fi
18303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18304 conftest.$ac_objext conftest.beam conftest.$ac_ext
18305 fi
18306
18307 fi
18308 fi
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18310 $as_echo "$ac_cv_c_bigendian" >&6; }
18311 case $ac_cv_c_bigendian in #(
18312 yes)
18313 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18314 ;; #(
18315 no)
18316 ;; #(
18317 universal)
18318
18319 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18320
18321 ;; #(
18322 *)
18323 as_fn_error $? "unknown endianness
18324 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18325 esac
18326
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
18329 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
18330 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333
18334 gcc_cv_as_cfi_pseudo_op=unknown
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18337 asm (".cfi_startproc\n\t.cfi_endproc");
18338 int
18339 main ()
18340 {
18341
18342 ;
18343 return 0;
18344 }
18345 _ACEOF
18346 if ac_fn_c_try_compile "$LINENO"; then :
18347 gcc_cv_as_cfi_pseudo_op=yes
18348 else
18349 gcc_cv_as_cfi_pseudo_op=no
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352
18353 fi
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
18355 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
18356 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
18357
18358 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
18359
18360 fi
18361
18362
18363 if test x$TARGET = xSPARC; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
18365 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
18366 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369
18370 save_CFLAGS="$CFLAGS"
18371 save_LDFLAGS="$LDFLAGS"
18372 CFLAGS="$CFLAGS -fpic"
18373 LDFLAGS="$LDFLAGS -shared"
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
18377 int
18378 main ()
18379 {
18380
18381 ;
18382 return 0;
18383 }
18384 _ACEOF
18385 if ac_fn_c_try_link "$LINENO"; then :
18386 libffi_cv_as_sparc_ua_pcrel=yes
18387 else
18388 libffi_cv_as_sparc_ua_pcrel=no
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392 CFLAGS="$save_CFLAGS"
18393 LDFLAGS="$save_LDFLAGS"
18394 fi
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
18396 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
18397 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
18398
18399 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
18400
18401 fi
18402
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
18404 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
18405 if ${libffi_cv_as_register_pseudo_op+:} false; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408
18409 libffi_cv_as_register_pseudo_op=unknown
18410 # Check if we have .register
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413
18414 int
18415 main ()
18416 {
18417 asm (".register %g2, #scratch");
18418 ;
18419 return 0;
18420 }
18421 _ACEOF
18422 if ac_fn_c_try_compile "$LINENO"; then :
18423 libffi_cv_as_register_pseudo_op=yes
18424 else
18425 libffi_cv_as_register_pseudo_op=no
18426 fi
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428
18429 fi
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
18431 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
18432 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
18433
18434 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
18435
18436 fi
18437 fi
18438
18439 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
18441 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
18442 if ${libffi_cv_as_x86_pcrel+:} false; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445
18446 libffi_cv_as_x86_pcrel=no
18447 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
18448 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
18449 libffi_cv_as_x86_pcrel=yes
18450 fi
18451
18452 fi
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
18454 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
18455 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
18456
18457 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
18458
18459 fi
18460
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
18462 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
18463 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
18464 $as_echo_n "(cached) " >&6
18465 else
18466
18467 libffi_cv_as_ascii_pseudo_op=unknown
18468 # Check if we have .ascii
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18471
18472 int
18473 main ()
18474 {
18475 asm (".ascii \\"string\\"");
18476 ;
18477 return 0;
18478 }
18479 _ACEOF
18480 if ac_fn_c_try_compile "$LINENO"; then :
18481 libffi_cv_as_ascii_pseudo_op=yes
18482 else
18483 libffi_cv_as_ascii_pseudo_op=no
18484 fi
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486
18487 fi
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
18489 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
18490 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
18491
18492 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
18493
18494 fi
18495
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
18497 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
18498 if ${libffi_cv_as_string_pseudo_op+:} false; then :
18499 $as_echo_n "(cached) " >&6
18500 else
18501
18502 libffi_cv_as_string_pseudo_op=unknown
18503 # Check if we have .string
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18506
18507 int
18508 main ()
18509 {
18510 asm (".string \\"string\\"");
18511 ;
18512 return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_compile "$LINENO"; then :
18516 libffi_cv_as_string_pseudo_op=yes
18517 else
18518 libffi_cv_as_string_pseudo_op=no
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521
18522 fi
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
18524 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
18525 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
18526
18527 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
18528
18529 fi
18530 fi
18531
18532 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
18533 # Check whether --enable-pax_emutramp was given.
18534 if test "${enable_pax_emutramp+set}" = set; then :
18535 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
18536
18537 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
18538
18539 fi
18540 fi
18541
18542
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18544 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18545 if ${lt_cv_sys_symbol_underscore+:} false; then :
18546 $as_echo_n "(cached) " >&6
18547 else
18548 lt_cv_sys_symbol_underscore=no
18549 cat > conftest.$ac_ext <<_LT_EOF
18550 void nm_test_func(){}
18551 int main(){nm_test_func;return 0;}
18552 _LT_EOF
18553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18554 (eval $ac_compile) 2>&5
18555 ac_status=$?
18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557 test $ac_status = 0; }; then
18558 # Now try to grab the symbols.
18559 ac_nlist=conftest.nm
18560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18561 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18562 ac_status=$?
18563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18564 test $ac_status = 0; } && test -s "$ac_nlist"; then
18565 # See whether the symbols have a leading underscore.
18566 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18567 lt_cv_sys_symbol_underscore=yes
18568 else
18569 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18570 :
18571 else
18572 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18573 fi
18574 fi
18575 else
18576 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18577 fi
18578 else
18579 echo "configure: failed program was:" >&5
18580 cat conftest.c >&5
18581 fi
18582 rm -rf conftest*
18583
18584 fi
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18586 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18587 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18588
18589
18590 if test "x$sys_symbol_underscore" = xyes; then
18591
18592 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
18593
18594 fi
18595
18596 FFI_EXEC_TRAMPOLINE_TABLE=0
18597 case "$target" in
18598 *arm*-apple-darwin*)
18599 FFI_EXEC_TRAMPOLINE_TABLE=1
18600
18601 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
18602
18603 ;;
18604 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
18605
18606 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
18607
18608 ;;
18609 esac
18610 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
18611 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
18612 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
18613 else
18614 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
18615 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
18616 fi
18617
18618
18619
18620 if test x$TARGET = xX86_64; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
18622 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
18623 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
18624 $as_echo_n "(cached) " >&6
18625 else
18626
18627 cat > conftest1.s << EOF
18628 .text
18629 .globl foo
18630 foo:
18631 jmp bar
18632 .section .eh_frame,"a",@unwind
18633 bar:
18634 EOF
18635
18636 cat > conftest2.c << EOF
18637 extern void foo();
18638 int main(){foo();}
18639 EOF
18640
18641 libffi_cv_as_x86_64_unwind_section_type=no
18642 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
18643 # since the compiler can support it and not the linker (ie old binutils)
18644 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
18645 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
18646 libffi_cv_as_x86_64_unwind_section_type=yes
18647 fi
18648
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
18651 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
18652 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
18653
18654 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
18655
18656 fi
18657 fi
18658
18659 if test "x$GCC" = "xyes"; then
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
18661 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
18662 if ${libffi_cv_ro_eh_frame+:} false; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665
18666 libffi_cv_ro_eh_frame=no
18667 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
18668 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
18669 objdump -h conftest.o > conftest.dump 2>&1
18670 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
18671 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
18672 sed -n $libffi_test_line conftest.dump > conftest.line
18673 if grep READONLY conftest.line > /dev/null; then
18674 libffi_cv_ro_eh_frame=yes
18675 fi
18676 fi
18677 rm -f conftest.*
18678
18679 fi
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
18681 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
18682 if test "x$libffi_cv_ro_eh_frame" = xyes; then
18683
18684 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
18685
18686
18687 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
18688
18689 else
18690
18691 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
18692
18693 fi
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
18696 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
18697 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
18698 $as_echo_n "(cached) " >&6
18699 else
18700
18701 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
18702 libffi_cv_hidden_visibility_attribute=no
18703 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
18704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708 test $ac_status = 0; }; }; then
18709 if grep '\.hidden.*foo' conftest.s >/dev/null; then
18710 libffi_cv_hidden_visibility_attribute=yes
18711 fi
18712 fi
18713 rm -f conftest.*
18714
18715 fi
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
18717 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
18718 if test $libffi_cv_hidden_visibility_attribute = yes; then
18719
18720 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
18721
18722 fi
18723 fi
18724
18725
18726
18727
18728
18729
18730
18731
18732 # Check whether --enable-debug was given.
18733 if test "${enable_debug+set}" = set; then :
18734 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
18735
18736 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
18737
18738 fi
18739 fi
18740
18741 if test "$enable_debug" = "yes"; then
18742 FFI_DEBUG_TRUE=
18743 FFI_DEBUG_FALSE='#'
18744 else
18745 FFI_DEBUG_TRUE='#'
18746 FFI_DEBUG_FALSE=
18747 fi
18748
18749
18750 # Check whether --enable-structs was given.
18751 if test "${enable_structs+set}" = set; then :
18752 enableval=$enable_structs; if test "$enable_structs" = "no"; then
18753
18754 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
18755
18756 fi
18757 fi
18758
18759 if test "$enable_debug" = "yes"; then
18760 FFI_DEBUG_TRUE=
18761 FFI_DEBUG_FALSE='#'
18762 else
18763 FFI_DEBUG_TRUE='#'
18764 FFI_DEBUG_FALSE=
18765 fi
18766
18767
18768 # Check whether --enable-raw-api was given.
18769 if test "${enable_raw_api+set}" = set; then :
18770 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
18771
18772 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
18773
18774 fi
18775 fi
18776
18777
18778 # Check whether --enable-purify-safety was given.
18779 if test "${enable_purify_safety+set}" = set; then :
18780 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
18781
18782 $as_echo "#define USING_PURIFY 1" >>confdefs.h
18783
18784 fi
18785 fi
18786
18787
18788 # These variables are only ever used when we cross-build to X86_WIN32.
18789 # And we only support this with GCC, so...
18790 if test "x$GCC" = "xyes"; then
18791 if test -n "$with_cross_host" &&
18792 test x"$with_cross_host" != x"no"; then
18793 toolexecdir='$(exec_prefix)/$(target_alias)'
18794 toolexeclibdir='$(toolexecdir)/lib'
18795 else
18796 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
18797 toolexeclibdir='$(libdir)'
18798 fi
18799 multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
18800 case $multi_os_directory in
18801 .) ;; # Avoid trailing /.
18802 ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
18803 esac
18804
18805 else
18806 toolexeclibdir='$(libdir)'
18807 fi
18808
18809
18810 ac_config_commands="$ac_config_commands include"
18811
18812 ac_config_commands="$ac_config_commands src"
18813
18814
18815 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
18816
18817
18818 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
18819
18820
18821 ac_config_links="$ac_config_links include/ffi_common.h:include/ffi_common.h"
18822
18823
18824 ac_config_files="$ac_config_files fficonfig.py"
18825
18826
18827 cat >confcache <<\_ACEOF
18828 # This file is a shell script that caches the results of configure
18829 # tests run on this system so they can be shared between configure
18830 # scripts and configure runs, see configure's option --config-cache.
18831 # It is not useful on other systems. If it contains results you don't
18832 # want to keep, you may remove or edit it.
18833 #
18834 # config.status only pays attention to the cache file if you give it
18835 # the --recheck option to rerun configure.
18836 #
18837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18839 # following values.
18840
18841 _ACEOF
18842
18843 # The following way of writing the cache mishandles newlines in values,
18844 # but we know of no workaround that is simple, portable, and efficient.
18845 # So, we kill variables containing newlines.
18846 # Ultrix sh set writes to stderr and can't be redirected directly,
18847 # and sets the high bit in the cache file unless we assign to the vars.
18848 (
18849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18850 eval ac_val=\$$ac_var
18851 case $ac_val in #(
18852 *${as_nl}*)
18853 case $ac_var in #(
18854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18856 esac
18857 case $ac_var in #(
18858 _ | IFS | as_nl) ;; #(
18859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18860 *) { eval $ac_var=; unset $ac_var;} ;;
18861 esac ;;
18862 esac
18863 done
18864
18865 (set) 2>&1 |
18866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18867 *${as_nl}ac_space=\ *)
18868 # `set' does not quote correctly, so add quotes: double-quote
18869 # substitution turns \\\\ into \\, and sed turns \\ into \.
18870 sed -n \
18871 "s/'/'\\\\''/g;
18872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18873 ;; #(
18874 *)
18875 # `set' quotes correctly as required by POSIX, so do not add quotes.
18876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18877 ;;
18878 esac |
18879 sort
18880 ) |
18881 sed '
18882 /^ac_cv_env_/b end
18883 t clear
18884 :clear
18885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18886 t end
18887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18888 :end' >>confcache
18889 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18890 if test -w "$cache_file"; then
18891 if test "x$cache_file" != "x/dev/null"; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18893 $as_echo "$as_me: updating cache $cache_file" >&6;}
18894 if test ! -f "$cache_file" || test -h "$cache_file"; then
18895 cat confcache >"$cache_file"
18896 else
18897 case $cache_file in #(
18898 */* | ?:*)
18899 mv -f confcache "$cache_file"$$ &&
18900 mv -f "$cache_file"$$ "$cache_file" ;; #(
18901 *)
18902 mv -f confcache "$cache_file" ;;
18903 esac
18904 fi
18905 fi
18906 else
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18908 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18909 fi
18910 fi
18911 rm -f confcache
18912
18913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18914 # Let make expand exec_prefix.
18915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18916
18917 DEFS=-DHAVE_CONFIG_H
18918
18919 ac_libobjs=
18920 ac_ltlibobjs=
18921 U=
18922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18923 # 1. Remove the extension, and $U if already installed.
18924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18925 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18927 # will be set to the directory where LIBOBJS objects are built.
18928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18930 done
18931 LIBOBJS=$ac_libobjs
18932
18933 LTLIBOBJS=$ac_ltlibobjs
18934
18935
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18937 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18938 if test -n "$am_sleep_pid"; then
18939 # Hide warnings about reused PIDs.
18940 wait $am_sleep_pid 2>/dev/null
18941 fi
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18943 $as_echo "done" >&6; }
18944 if test -n "$EXEEXT"; then
18945 am__EXEEXT_TRUE=
18946 am__EXEEXT_FALSE='#'
18947 else
18948 am__EXEEXT_TRUE='#'
18949 am__EXEEXT_FALSE=
18950 fi
18951
18952 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18953 as_fn_error $? "conditional \"AMDEP\" was never defined.
18954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18955 fi
18956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18957 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18959 fi
18960 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18961 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18963 fi
18964 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18965 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
18966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18967 fi
18968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18969 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18971 fi
18972 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
18973 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
18974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18975 fi
18976 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
18977 as_fn_error $? "conditional \"MIPS\" was never defined.
18978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18979 fi
18980 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
18981 as_fn_error $? "conditional \"BFIN\" was never defined.
18982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18983 fi
18984 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
18985 as_fn_error $? "conditional \"SPARC\" was never defined.
18986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18987 fi
18988 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
18989 as_fn_error $? "conditional \"X86\" was never defined.
18990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18991 fi
18992 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
18993 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
18994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995 fi
18996 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
18997 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999 fi
19000 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
19001 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003 fi
19004 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
19005 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
19006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19007 fi
19008 if test -z "${X86_DARWIN32_TRUE}" && test -z "${X86_DARWIN32_FALSE}"; then
19009 as_fn_error $? "conditional \"X86_DARWIN32\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19011 fi
19012 if test -z "${X86_DARWIN64_TRUE}" && test -z "${X86_DARWIN64_FALSE}"; then
19013 as_fn_error $? "conditional \"X86_DARWIN64\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19015 fi
19016 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
19017 as_fn_error $? "conditional \"ALPHA\" was never defined.
19018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19019 fi
19020 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
19021 as_fn_error $? "conditional \"IA64\" was never defined.
19022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19023 fi
19024 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
19025 as_fn_error $? "conditional \"M32R\" was never defined.
19026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027 fi
19028 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
19029 as_fn_error $? "conditional \"M68K\" was never defined.
19030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19031 fi
19032 if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
19033 as_fn_error $? "conditional \"M88K\" was never defined.
19034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19035 fi
19036 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
19037 as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
19038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19039 fi
19040 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
19041 as_fn_error $? "conditional \"METAG\" was never defined.
19042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19043 fi
19044 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
19045 as_fn_error $? "conditional \"MOXIE\" was never defined.
19046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19047 fi
19048 if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
19049 as_fn_error $? "conditional \"NIOS2\" was never defined.
19050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19051 fi
19052 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
19053 as_fn_error $? "conditional \"POWERPC\" was never defined.
19054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19055 fi
19056 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
19057 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
19058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059 fi
19060 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
19061 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
19062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19063 fi
19064 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
19065 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
19066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19067 fi
19068 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
19069 as_fn_error $? "conditional \"AARCH64\" was never defined.
19070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19071 fi
19072 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
19073 as_fn_error $? "conditional \"ARC\" was never defined.
19074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19075 fi
19076 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
19077 as_fn_error $? "conditional \"ARM\" was never defined.
19078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19079 fi
19080 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
19081 as_fn_error $? "conditional \"AVR32\" was never defined.
19082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19083 fi
19084 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
19085 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
19086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19087 fi
19088 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
19089 as_fn_error $? "conditional \"FRV\" was never defined.
19090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19091 fi
19092 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
19093 as_fn_error $? "conditional \"S390\" was never defined.
19094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19095 fi
19096 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
19097 as_fn_error $? "conditional \"X86_64\" was never defined.
19098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19099 fi
19100 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
19101 as_fn_error $? "conditional \"SH\" was never defined.
19102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19103 fi
19104 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
19105 as_fn_error $? "conditional \"SH64\" was never defined.
19106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19107 fi
19108 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
19109 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
19110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19111 fi
19112 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
19113 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
19114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19115 fi
19116 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
19117 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
19118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19119 fi
19120 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
19121 as_fn_error $? "conditional \"TILE\" was never defined.
19122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19123 fi
19124 if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
19125 as_fn_error $? "conditional \"VAX\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19127 fi
19128 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
19129 as_fn_error $? "conditional \"XTENSA\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19131 fi
19132
19133 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
19134 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
19135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19136 fi
19137 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19138 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19140 fi
19141 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19142 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19144 fi
19145
19146 : "${CONFIG_STATUS=./config.status}"
19147 ac_write_fail=0
19148 ac_clean_files_save=$ac_clean_files
19149 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19151 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19152 as_write_fail=0
19153 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19154 #! $SHELL
19155 # Generated by $as_me.
19156 # Run this file to recreate the current configuration.
19157 # Compiler output produced by configure, useful for debugging
19158 # configure, is in config.log if it exists.
19159
19160 debug=false
19161 ac_cs_recheck=false
19162 ac_cs_silent=false
19163
19164 SHELL=\${CONFIG_SHELL-$SHELL}
19165 export SHELL
19166 _ASEOF
19167 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19168 ## -------------------- ##
19169 ## M4sh Initialization. ##
19170 ## -------------------- ##
19171
19172 # Be more Bourne compatible
19173 DUALCASE=1; export DUALCASE # for MKS sh
19174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19175 emulate sh
19176 NULLCMD=:
19177 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19178 # is contrary to our usage. Disable this feature.
19179 alias -g '${1+"$@"}'='"$@"'
19180 setopt NO_GLOB_SUBST
19181 else
19182 case `(set -o) 2>/dev/null` in #(
19183 *posix*) :
19184 set -o posix ;; #(
19185 *) :
19186 ;;
19187 esac
19188 fi
19189
19190
19191 as_nl='
19192 '
19193 export as_nl
19194 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19195 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19196 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19198 # Prefer a ksh shell builtin over an external printf program on Solaris,
19199 # but without wasting forks for bash or zsh.
19200 if test -z "$BASH_VERSION$ZSH_VERSION" \
19201 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19202 as_echo='print -r --'
19203 as_echo_n='print -rn --'
19204 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19205 as_echo='printf %s\n'
19206 as_echo_n='printf %s'
19207 else
19208 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19209 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19210 as_echo_n='/usr/ucb/echo -n'
19211 else
19212 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19213 as_echo_n_body='eval
19214 arg=$1;
19215 case $arg in #(
19216 *"$as_nl"*)
19217 expr "X$arg" : "X\\(.*\\)$as_nl";
19218 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19219 esac;
19220 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19221 '
19222 export as_echo_n_body
19223 as_echo_n='sh -c $as_echo_n_body as_echo'
19224 fi
19225 export as_echo_body
19226 as_echo='sh -c $as_echo_body as_echo'
19227 fi
19228
19229 # The user is always right.
19230 if test "${PATH_SEPARATOR+set}" != set; then
19231 PATH_SEPARATOR=:
19232 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19233 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19234 PATH_SEPARATOR=';'
19235 }
19236 fi
19237
19238
19239 # IFS
19240 # We need space, tab and new line, in precisely that order. Quoting is
19241 # there to prevent editors from complaining about space-tab.
19242 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19243 # splitting by setting IFS to empty value.)
19244 IFS=" "" $as_nl"
19245
19246 # Find who we are. Look in the path if we contain no directory separator.
19247 as_myself=
19248 case $0 in #((
19249 *[\\/]* ) as_myself=$0 ;;
19250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19252 do
19253 IFS=$as_save_IFS
19254 test -z "$as_dir" && as_dir=.
19255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19256 done
19257 IFS=$as_save_IFS
19258
19259 ;;
19260 esac
19261 # We did not find ourselves, most probably we were run as `sh COMMAND'
19262 # in which case we are not to be found in the path.
19263 if test "x$as_myself" = x; then
19264 as_myself=$0
19265 fi
19266 if test ! -f "$as_myself"; then
19267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19268 exit 1
19269 fi
19270
19271 # Unset variables that we do not need and which cause bugs (e.g. in
19272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19273 # suppresses any "Segmentation fault" message there. '((' could
19274 # trigger a bug in pdksh 5.2.14.
19275 for as_var in BASH_ENV ENV MAIL MAILPATH
19276 do eval test x\${$as_var+set} = xset \
19277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19278 done
19279 PS1='$ '
19280 PS2='> '
19281 PS4='+ '
19282
19283 # NLS nuisances.
19284 LC_ALL=C
19285 export LC_ALL
19286 LANGUAGE=C
19287 export LANGUAGE
19288
19289 # CDPATH.
19290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19291
19292
19293 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19294 # ----------------------------------------
19295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19297 # script with STATUS, using 1 if that was 0.
19298 as_fn_error ()
19299 {
19300 as_status=$1; test $as_status -eq 0 && as_status=1
19301 if test "$4"; then
19302 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19304 fi
19305 $as_echo "$as_me: error: $2" >&2
19306 as_fn_exit $as_status
19307 } # as_fn_error
19308
19309
19310 # as_fn_set_status STATUS
19311 # -----------------------
19312 # Set $? to STATUS, without forking.
19313 as_fn_set_status ()
19314 {
19315 return $1
19316 } # as_fn_set_status
19317
19318 # as_fn_exit STATUS
19319 # -----------------
19320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19321 as_fn_exit ()
19322 {
19323 set +e
19324 as_fn_set_status $1
19325 exit $1
19326 } # as_fn_exit
19327
19328 # as_fn_unset VAR
19329 # ---------------
19330 # Portably unset VAR.
19331 as_fn_unset ()
19332 {
19333 { eval $1=; unset $1;}
19334 }
19335 as_unset=as_fn_unset
19336 # as_fn_append VAR VALUE
19337 # ----------------------
19338 # Append the text in VALUE to the end of the definition contained in VAR. Take
19339 # advantage of any shell optimizations that allow amortized linear growth over
19340 # repeated appends, instead of the typical quadratic growth present in naive
19341 # implementations.
19342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19343 eval 'as_fn_append ()
19344 {
19345 eval $1+=\$2
19346 }'
19347 else
19348 as_fn_append ()
19349 {
19350 eval $1=\$$1\$2
19351 }
19352 fi # as_fn_append
19353
19354 # as_fn_arith ARG...
19355 # ------------------
19356 # Perform arithmetic evaluation on the ARGs, and store the result in the
19357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19358 # must be portable across $(()) and expr.
19359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19360 eval 'as_fn_arith ()
19361 {
19362 as_val=$(( $* ))
19363 }'
19364 else
19365 as_fn_arith ()
19366 {
19367 as_val=`expr "$@" || test $? -eq 1`
19368 }
19369 fi # as_fn_arith
19370
19371
19372 if expr a : '\(a\)' >/dev/null 2>&1 &&
19373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19374 as_expr=expr
19375 else
19376 as_expr=false
19377 fi
19378
19379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19380 as_basename=basename
19381 else
19382 as_basename=false
19383 fi
19384
19385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19386 as_dirname=dirname
19387 else
19388 as_dirname=false
19389 fi
19390
19391 as_me=`$as_basename -- "$0" ||
19392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19393 X"$0" : 'X\(//\)$' \| \
19394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19395 $as_echo X/"$0" |
19396 sed '/^.*\/\([^/][^/]*\)\/*$/{
19397 s//\1/
19398 q
19399 }
19400 /^X\/\(\/\/\)$/{
19401 s//\1/
19402 q
19403 }
19404 /^X\/\(\/\).*/{
19405 s//\1/
19406 q
19407 }
19408 s/.*/./; q'`
19409
19410 # Avoid depending upon Character Ranges.
19411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19414 as_cr_digits='0123456789'
19415 as_cr_alnum=$as_cr_Letters$as_cr_digits
19416
19417 ECHO_C= ECHO_N= ECHO_T=
19418 case `echo -n x` in #(((((
19419 -n*)
19420 case `echo 'xy\c'` in
19421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19422 xy) ECHO_C='\c';;
19423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19424 ECHO_T=' ';;
19425 esac;;
19426 *)
19427 ECHO_N='-n';;
19428 esac
19429
19430 rm -f conf$$ conf$$.exe conf$$.file
19431 if test -d conf$$.dir; then
19432 rm -f conf$$.dir/conf$$.file
19433 else
19434 rm -f conf$$.dir
19435 mkdir conf$$.dir 2>/dev/null
19436 fi
19437 if (echo >conf$$.file) 2>/dev/null; then
19438 if ln -s conf$$.file conf$$ 2>/dev/null; then
19439 as_ln_s='ln -s'
19440 # ... but there are two gotchas:
19441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19443 # In both cases, we have to default to `cp -pR'.
19444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19445 as_ln_s='cp -pR'
19446 elif ln conf$$.file conf$$ 2>/dev/null; then
19447 as_ln_s=ln
19448 else
19449 as_ln_s='cp -pR'
19450 fi
19451 else
19452 as_ln_s='cp -pR'
19453 fi
19454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19455 rmdir conf$$.dir 2>/dev/null
19456
19457
19458 # as_fn_mkdir_p
19459 # -------------
19460 # Create "$as_dir" as a directory, including parents if necessary.
19461 as_fn_mkdir_p ()
19462 {
19463
19464 case $as_dir in #(
19465 -*) as_dir=./$as_dir;;
19466 esac
19467 test -d "$as_dir" || eval $as_mkdir_p || {
19468 as_dirs=
19469 while :; do
19470 case $as_dir in #(
19471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19472 *) as_qdir=$as_dir;;
19473 esac
19474 as_dirs="'$as_qdir' $as_dirs"
19475 as_dir=`$as_dirname -- "$as_dir" ||
19476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19477 X"$as_dir" : 'X\(//\)[^/]' \| \
19478 X"$as_dir" : 'X\(//\)$' \| \
19479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19480 $as_echo X"$as_dir" |
19481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19482 s//\1/
19483 q
19484 }
19485 /^X\(\/\/\)[^/].*/{
19486 s//\1/
19487 q
19488 }
19489 /^X\(\/\/\)$/{
19490 s//\1/
19491 q
19492 }
19493 /^X\(\/\).*/{
19494 s//\1/
19495 q
19496 }
19497 s/.*/./; q'`
19498 test -d "$as_dir" && break
19499 done
19500 test -z "$as_dirs" || eval "mkdir $as_dirs"
19501 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19502
19503
19504 } # as_fn_mkdir_p
19505 if mkdir -p . 2>/dev/null; then
19506 as_mkdir_p='mkdir -p "$as_dir"'
19507 else
19508 test -d ./-p && rmdir ./-p
19509 as_mkdir_p=false
19510 fi
19511
19512
19513 # as_fn_executable_p FILE
19514 # -----------------------
19515 # Test if FILE is an executable regular file.
19516 as_fn_executable_p ()
19517 {
19518 test -f "$1" && test -x "$1"
19519 } # as_fn_executable_p
19520 as_test_x='test -x'
19521 as_executable_p=as_fn_executable_p
19522
19523 # Sed expression to map a string onto a valid CPP name.
19524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19525
19526 # Sed expression to map a string onto a valid variable name.
19527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19528
19529
19530 exec 6>&1
19531 ## ----------------------------------- ##
19532 ## Main body of $CONFIG_STATUS script. ##
19533 ## ----------------------------------- ##
19534 _ASEOF
19535 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19536
19537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19538 # Save the log message, to keep $0 and so on meaningful, and to
19539 # report actual input values of CONFIG_FILES etc. instead of their
19540 # values after options handling.
19541 ac_log="
19542 This file was extended by libffi $as_me 3.1, which was
19543 generated by GNU Autoconf 2.69. Invocation command line was
19544
19545 CONFIG_FILES = $CONFIG_FILES
19546 CONFIG_HEADERS = $CONFIG_HEADERS
19547 CONFIG_LINKS = $CONFIG_LINKS
19548 CONFIG_COMMANDS = $CONFIG_COMMANDS
19549 $ $0 $@
19550
19551 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19552 "
19553
19554 _ACEOF
19555
19556 case $ac_config_files in *"
19557 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19558 esac
19559
19560 case $ac_config_headers in *"
19561 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19562 esac
19563
19564
19565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19566 # Files that config.status was made for.
19567 config_files="$ac_config_files"
19568 config_headers="$ac_config_headers"
19569 config_links="$ac_config_links"
19570 config_commands="$ac_config_commands"
19571
19572 _ACEOF
19573
19574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19575 ac_cs_usage="\
19576 \`$as_me' instantiates files and other configuration actions
19577 from templates according to the current configuration. Unless the files
19578 and actions are specified as TAGs, all are instantiated by default.
19579
19580 Usage: $0 [OPTION]... [TAG]...
19581
19582 -h, --help print this help, then exit
19583 -V, --version print version number and configuration settings, then exit
19584 --config print configuration, then exit
19585 -q, --quiet, --silent
19586 do not print progress messages
19587 -d, --debug don't remove temporary files
19588 --recheck update $as_me by reconfiguring in the same conditions
19589 --file=FILE[:TEMPLATE]
19590 instantiate the configuration file FILE
19591 --header=FILE[:TEMPLATE]
19592 instantiate the configuration header FILE
19593
19594 Configuration files:
19595 $config_files
19596
19597 Configuration headers:
19598 $config_headers
19599
19600 Configuration links:
19601 $config_links
19602
19603 Configuration commands:
19604 $config_commands
19605
19606 Report bugs to <http://github.com/atgreen/libffi/issues>."
19607
19608 _ACEOF
19609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19610 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19611 ac_cs_version="\\
19612 libffi config.status 3.1
19613 configured by $0, generated by GNU Autoconf 2.69,
19614 with options \\"\$ac_cs_config\\"
19615
19616 Copyright (C) 2012 Free Software Foundation, Inc.
19617 This config.status script is free software; the Free Software Foundation
19618 gives unlimited permission to copy, distribute and modify it."
19619
19620 ac_pwd='$ac_pwd'
19621 srcdir='$srcdir'
19622 INSTALL='$INSTALL'
19623 MKDIR_P='$MKDIR_P'
19624 AWK='$AWK'
19625 test -n "\$AWK" || AWK=awk
19626 _ACEOF
19627
19628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19629 # The default lists apply if the user does not specify any file.
19630 ac_need_defaults=:
19631 while test $# != 0
19632 do
19633 case $1 in
19634 --*=?*)
19635 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19636 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19637 ac_shift=:
19638 ;;
19639 --*=)
19640 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19641 ac_optarg=
19642 ac_shift=:
19643 ;;
19644 *)
19645 ac_option=$1
19646 ac_optarg=$2
19647 ac_shift=shift
19648 ;;
19649 esac
19650
19651 case $ac_option in
19652 # Handling of the options.
19653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19654 ac_cs_recheck=: ;;
19655 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19656 $as_echo "$ac_cs_version"; exit ;;
19657 --config | --confi | --conf | --con | --co | --c )
19658 $as_echo "$ac_cs_config"; exit ;;
19659 --debug | --debu | --deb | --de | --d | -d )
19660 debug=: ;;
19661 --file | --fil | --fi | --f )
19662 $ac_shift
19663 case $ac_optarg in
19664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19665 '') as_fn_error $? "missing file argument" ;;
19666 esac
19667 as_fn_append CONFIG_FILES " '$ac_optarg'"
19668 ac_need_defaults=false;;
19669 --header | --heade | --head | --hea )
19670 $ac_shift
19671 case $ac_optarg in
19672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19673 esac
19674 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19675 ac_need_defaults=false;;
19676 --he | --h)
19677 # Conflict between --help and --header
19678 as_fn_error $? "ambiguous option: \`$1'
19679 Try \`$0 --help' for more information.";;
19680 --help | --hel | -h )
19681 $as_echo "$ac_cs_usage"; exit ;;
19682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19684 ac_cs_silent=: ;;
19685
19686 # This is an error.
19687 -*) as_fn_error $? "unrecognized option: \`$1'
19688 Try \`$0 --help' for more information." ;;
19689
19690 *) as_fn_append ac_config_targets " $1"
19691 ac_need_defaults=false ;;
19692
19693 esac
19694 shift
19695 done
19696
19697 ac_configure_extra_args=
19698
19699 if $ac_cs_silent; then
19700 exec 6>/dev/null
19701 ac_configure_extra_args="$ac_configure_extra_args --silent"
19702 fi
19703
19704 _ACEOF
19705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19706 if \$ac_cs_recheck; then
19707 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19708 shift
19709 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19710 CONFIG_SHELL='$SHELL'
19711 export CONFIG_SHELL
19712 exec "\$@"
19713 fi
19714
19715 _ACEOF
19716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19717 exec 5>>config.log
19718 {
19719 echo
19720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19721 ## Running $as_me. ##
19722 _ASBOX
19723 $as_echo "$ac_log"
19724 } >&5
19725
19726 _ACEOF
19727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19728 #
19729 # INIT-COMMANDS
19730 #
19731 ax_enable_builddir_srcdir="$srcdir" # $srcdir
19732 ax_enable_builddir_host="$HOST" # $HOST / $host
19733 ax_enable_builddir_version="$VERSION" # $VERSION
19734 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
19735 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
19736 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
19737 ax_enable_builddir="$ax_enable_builddir" # $SUB
19738
19739 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19740
19741
19742 # The HP-UX ksh and POSIX shell print the target directory to stdout
19743 # if CDPATH is set.
19744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19745
19746 sed_quote_subst='$sed_quote_subst'
19747 double_quote_subst='$double_quote_subst'
19748 delay_variable_subst='$delay_variable_subst'
19749 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19750 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19751 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19752 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19753 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19754 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19755 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19756 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19757 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19758 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19759 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19760 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19761 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19762 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19763 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19764 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19765 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19766 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19767 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19768 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19769 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19770 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19771 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19772 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19773 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19774 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19775 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19776 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19777 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19778 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19779 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19780 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19781 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19782 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19783 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19784 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19785 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19786 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19787 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19788 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19789 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19790 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19791 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19792 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19793 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19794 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19795 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19796 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19797 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19798 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19799 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19800 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19801 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19802 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19803 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19804 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19805 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19806 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"`'
19807 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19808 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19809 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19813 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19814 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19818 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19819 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19820 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19821 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19822 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19823 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19824 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19825 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19826 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19827 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19828 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19829 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19830 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19831 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19832 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19833 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19834 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19835 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19836 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19837 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19838 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19839 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19840 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19841 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19855 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19874 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19875 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19876 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19877 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19878 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19879 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19880 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19881 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19882 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19883 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19884 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19885 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19886 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19887 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19888 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19889 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19890 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19891 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19892 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19893 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19894 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19895 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19896 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19897 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19898 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19899 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19900 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19901 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19902 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19903 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19904 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19905 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19906 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19907 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19908 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19909 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19910 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19911 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19912 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19913 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19914 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19915 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19916 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19917 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19918 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19919 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19920 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19921 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19922 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19923 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19924 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19925 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19926 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19927 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19928 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19929 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19930 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19931 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19932 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19933 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19934 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19935
19936 LTCC='$LTCC'
19937 LTCFLAGS='$LTCFLAGS'
19938 compiler='$compiler_DEFAULT'
19939
19940 # A function that is used when there is no print builtin or printf.
19941 func_fallback_echo ()
19942 {
19943 eval 'cat <<_LTECHO_EOF
19944 \$1
19945 _LTECHO_EOF'
19946 }
19947
19948 # Quote evaled strings.
19949 for var in SHELL \
19950 ECHO \
19951 PATH_SEPARATOR \
19952 SED \
19953 GREP \
19954 EGREP \
19955 FGREP \
19956 LD \
19957 NM \
19958 LN_S \
19959 lt_SP2NL \
19960 lt_NL2SP \
19961 reload_flag \
19962 OBJDUMP \
19963 deplibs_check_method \
19964 file_magic_cmd \
19965 file_magic_glob \
19966 want_nocaseglob \
19967 DLLTOOL \
19968 sharedlib_from_linklib_cmd \
19969 AR \
19970 AR_FLAGS \
19971 archiver_list_spec \
19972 STRIP \
19973 RANLIB \
19974 CC \
19975 CFLAGS \
19976 compiler \
19977 lt_cv_sys_global_symbol_pipe \
19978 lt_cv_sys_global_symbol_to_cdecl \
19979 lt_cv_sys_global_symbol_to_import \
19980 lt_cv_sys_global_symbol_to_c_name_address \
19981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19982 lt_cv_nm_interface \
19983 nm_file_list_spec \
19984 lt_prog_compiler_no_builtin_flag \
19985 lt_prog_compiler_pic \
19986 lt_prog_compiler_wl \
19987 lt_prog_compiler_static \
19988 lt_cv_prog_compiler_c_o \
19989 need_locks \
19990 MANIFEST_TOOL \
19991 DSYMUTIL \
19992 NMEDIT \
19993 LIPO \
19994 OTOOL \
19995 OTOOL64 \
19996 shrext_cmds \
19997 export_dynamic_flag_spec \
19998 whole_archive_flag_spec \
19999 compiler_needs_object \
20000 with_gnu_ld \
20001 allow_undefined_flag \
20002 no_undefined_flag \
20003 hardcode_libdir_flag_spec \
20004 hardcode_libdir_separator \
20005 exclude_expsyms \
20006 include_expsyms \
20007 file_list_spec \
20008 variables_saved_for_relink \
20009 libname_spec \
20010 library_names_spec \
20011 soname_spec \
20012 install_override_mode \
20013 finish_eval \
20014 old_striplib \
20015 striplib \
20016 compiler_lib_search_dirs \
20017 predep_objects \
20018 postdep_objects \
20019 predeps \
20020 postdeps \
20021 compiler_lib_search_path \
20022 LD_CXX \
20023 reload_flag_CXX \
20024 compiler_CXX \
20025 lt_prog_compiler_no_builtin_flag_CXX \
20026 lt_prog_compiler_pic_CXX \
20027 lt_prog_compiler_wl_CXX \
20028 lt_prog_compiler_static_CXX \
20029 lt_cv_prog_compiler_c_o_CXX \
20030 export_dynamic_flag_spec_CXX \
20031 whole_archive_flag_spec_CXX \
20032 compiler_needs_object_CXX \
20033 with_gnu_ld_CXX \
20034 allow_undefined_flag_CXX \
20035 no_undefined_flag_CXX \
20036 hardcode_libdir_flag_spec_CXX \
20037 hardcode_libdir_separator_CXX \
20038 exclude_expsyms_CXX \
20039 include_expsyms_CXX \
20040 file_list_spec_CXX \
20041 compiler_lib_search_dirs_CXX \
20042 predep_objects_CXX \
20043 postdep_objects_CXX \
20044 predeps_CXX \
20045 postdeps_CXX \
20046 compiler_lib_search_path_CXX; do
20047 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20048 *[\\\\\\\`\\"\\\$]*)
20049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20050 ;;
20051 *)
20052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20053 ;;
20054 esac
20055 done
20056
20057 # Double-quote double-evaled strings.
20058 for var in reload_cmds \
20059 old_postinstall_cmds \
20060 old_postuninstall_cmds \
20061 old_archive_cmds \
20062 extract_expsyms_cmds \
20063 old_archive_from_new_cmds \
20064 old_archive_from_expsyms_cmds \
20065 archive_cmds \
20066 archive_expsym_cmds \
20067 module_cmds \
20068 module_expsym_cmds \
20069 export_symbols_cmds \
20070 prelink_cmds \
20071 postlink_cmds \
20072 postinstall_cmds \
20073 postuninstall_cmds \
20074 finish_cmds \
20075 sys_lib_search_path_spec \
20076 sys_lib_dlsearch_path_spec \
20077 reload_cmds_CXX \
20078 old_archive_cmds_CXX \
20079 old_archive_from_new_cmds_CXX \
20080 old_archive_from_expsyms_cmds_CXX \
20081 archive_cmds_CXX \
20082 archive_expsym_cmds_CXX \
20083 module_cmds_CXX \
20084 module_expsym_cmds_CXX \
20085 export_symbols_cmds_CXX \
20086 prelink_cmds_CXX \
20087 postlink_cmds_CXX; do
20088 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20089 *[\\\\\\\`\\"\\\$]*)
20090 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20091 ;;
20092 *)
20093 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20094 ;;
20095 esac
20096 done
20097
20098 ac_aux_dir='$ac_aux_dir'
20099
20100 # See if we are running on zsh, and set the options that allow our
20101 # commands through without removal of \ escapes INIT.
20102 if test -n "\${ZSH_VERSION+set}"; then
20103 setopt NO_GLOB_SUBST
20104 fi
20105
20106
20107 PACKAGE='$PACKAGE'
20108 VERSION='$VERSION'
20109 RM='$RM'
20110 ofile='$ofile'
20111
20112
20113
20114
20115
20116 TARGETDIR="$TARGETDIR"
20117
20118 _ACEOF
20119
20120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20121
20122 # Handling of arguments.
20123 for ac_config_target in $ac_config_targets
20124 do
20125 case $ac_config_target in
20126 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
20127 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
20128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20130 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
20131 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
20132 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
20133 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20134 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
20135 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20136 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20137 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20138 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
20139 "include/ffi_common.h") CONFIG_LINKS="$CONFIG_LINKS include/ffi_common.h:include/ffi_common.h" ;;
20140 "fficonfig.py") CONFIG_FILES="$CONFIG_FILES fficonfig.py" ;;
20141
20142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20143 esac
20144 done
20145
20146
20147 # If the user did not use the arguments to specify the items to instantiate,
20148 # then the envvar interface is used. Set only those that are not.
20149 # We use the long form for the default assignment because of an extremely
20150 # bizarre bug on SunOS 4.1.3.
20151 if $ac_need_defaults; then
20152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20154 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20155 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20156 fi
20157
20158 # Have a temporary directory for convenience. Make it in the build tree
20159 # simply because there is no reason against having it here, and in addition,
20160 # creating and moving files from /tmp can sometimes cause problems.
20161 # Hook for its removal unless debugging.
20162 # Note that there is a small window in which the directory will not be cleaned:
20163 # after its creation but before its name has been assigned to `$tmp'.
20164 $debug ||
20165 {
20166 tmp= ac_tmp=
20167 trap 'exit_status=$?
20168 : "${ac_tmp:=$tmp}"
20169 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20170 ' 0
20171 trap 'as_fn_exit 1' 1 2 13 15
20172 }
20173 # Create a (secure) tmp directory for tmp files.
20174
20175 {
20176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20177 test -d "$tmp"
20178 } ||
20179 {
20180 tmp=./conf$$-$RANDOM
20181 (umask 077 && mkdir "$tmp")
20182 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20183 ac_tmp=$tmp
20184
20185 # Set up the scripts for CONFIG_FILES section.
20186 # No need to generate them if there are no CONFIG_FILES.
20187 # This happens for instance with `./config.status config.h'.
20188 if test -n "$CONFIG_FILES"; then
20189
20190
20191 ac_cr=`echo X | tr X '\015'`
20192 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20193 # But we know of no other shell where ac_cr would be empty at this
20194 # point, so we can use a bashism as a fallback.
20195 if test "x$ac_cr" = x; then
20196 eval ac_cr=\$\'\\r\'
20197 fi
20198 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20200 ac_cs_awk_cr='\\r'
20201 else
20202 ac_cs_awk_cr=$ac_cr
20203 fi
20204
20205 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20206 _ACEOF
20207
20208
20209 {
20210 echo "cat >conf$$subs.awk <<_ACEOF" &&
20211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20212 echo "_ACEOF"
20213 } >conf$$subs.sh ||
20214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20215 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20216 ac_delim='%!_!# '
20217 for ac_last_try in false false false false false :; do
20218 . ./conf$$subs.sh ||
20219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20220
20221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20222 if test $ac_delim_n = $ac_delim_num; then
20223 break
20224 elif $ac_last_try; then
20225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20226 else
20227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20228 fi
20229 done
20230 rm -f conf$$subs.sh
20231
20232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20233 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20234 _ACEOF
20235 sed -n '
20236 h
20237 s/^/S["/; s/!.*/"]=/
20238 p
20239 g
20240 s/^[^!]*!//
20241 :repl
20242 t repl
20243 s/'"$ac_delim"'$//
20244 t delim
20245 :nl
20246 h
20247 s/\(.\{148\}\)..*/\1/
20248 t more1
20249 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20250 p
20251 n
20252 b repl
20253 :more1
20254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20255 p
20256 g
20257 s/.\{148\}//
20258 t nl
20259 :delim
20260 h
20261 s/\(.\{148\}\)..*/\1/
20262 t more2
20263 s/["\\]/\\&/g; s/^/"/; s/$/"/
20264 p
20265 b
20266 :more2
20267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20268 p
20269 g
20270 s/.\{148\}//
20271 t delim
20272 ' <conf$$subs.awk | sed '
20273 /^[^""]/{
20274 N
20275 s/\n//
20276 }
20277 ' >>$CONFIG_STATUS || ac_write_fail=1
20278 rm -f conf$$subs.awk
20279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20280 _ACAWK
20281 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20282 for (key in S) S_is_set[key] = 1
20283 FS = ""
20284
20285 }
20286 {
20287 line = $ 0
20288 nfields = split(line, field, "@")
20289 substed = 0
20290 len = length(field[1])
20291 for (i = 2; i < nfields; i++) {
20292 key = field[i]
20293 keylen = length(key)
20294 if (S_is_set[key]) {
20295 value = S[key]
20296 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20297 len += length(value) + length(field[++i])
20298 substed = 1
20299 } else
20300 len += 1 + keylen
20301 }
20302
20303 print line
20304 }
20305
20306 _ACAWK
20307 _ACEOF
20308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20309 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20310 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20311 else
20312 cat
20313 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20314 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20315 _ACEOF
20316
20317 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20318 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20319 # trailing colons and then remove the whole line if VPATH becomes empty
20320 # (actually we leave an empty line to preserve line numbers).
20321 if test "x$srcdir" = x.; then
20322 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20323 h
20324 s///
20325 s/^/:/
20326 s/[ ]*$/:/
20327 s/:\$(srcdir):/:/g
20328 s/:\${srcdir}:/:/g
20329 s/:@srcdir@:/:/g
20330 s/^:*//
20331 s/:*$//
20332 x
20333 s/\(=[ ]*\).*/\1/
20334 G
20335 s/\n//
20336 s/^[^=]*=[ ]*$//
20337 }'
20338 fi
20339
20340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20341 fi # test -n "$CONFIG_FILES"
20342
20343 # Set up the scripts for CONFIG_HEADERS section.
20344 # No need to generate them if there are no CONFIG_HEADERS.
20345 # This happens for instance with `./config.status Makefile'.
20346 if test -n "$CONFIG_HEADERS"; then
20347 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20348 BEGIN {
20349 _ACEOF
20350
20351 # Transform confdefs.h into an awk script `defines.awk', embedded as
20352 # here-document in config.status, that substitutes the proper values into
20353 # config.h.in to produce config.h.
20354
20355 # Create a delimiter string that does not exist in confdefs.h, to ease
20356 # handling of long lines.
20357 ac_delim='%!_!# '
20358 for ac_last_try in false false :; do
20359 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20360 if test -z "$ac_tt"; then
20361 break
20362 elif $ac_last_try; then
20363 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20364 else
20365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20366 fi
20367 done
20368
20369 # For the awk script, D is an array of macro values keyed by name,
20370 # likewise P contains macro parameters if any. Preserve backslash
20371 # newline sequences.
20372
20373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20374 sed -n '
20375 s/.\{148\}/&'"$ac_delim"'/g
20376 t rset
20377 :rset
20378 s/^[ ]*#[ ]*define[ ][ ]*/ /
20379 t def
20380 d
20381 :def
20382 s/\\$//
20383 t bsnl
20384 s/["\\]/\\&/g
20385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20386 D["\1"]=" \3"/p
20387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20388 d
20389 :bsnl
20390 s/["\\]/\\&/g
20391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20392 D["\1"]=" \3\\\\\\n"\\/p
20393 t cont
20394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20395 t cont
20396 d
20397 :cont
20398 n
20399 s/.\{148\}/&'"$ac_delim"'/g
20400 t clear
20401 :clear
20402 s/\\$//
20403 t bsnlc
20404 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20405 d
20406 :bsnlc
20407 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20408 b cont
20409 ' <confdefs.h | sed '
20410 s/'"$ac_delim"'/"\\\
20411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20412
20413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20414 for (key in D) D_is_set[key] = 1
20415 FS = ""
20416 }
20417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20418 line = \$ 0
20419 split(line, arg, " ")
20420 if (arg[1] == "#") {
20421 defundef = arg[2]
20422 mac1 = arg[3]
20423 } else {
20424 defundef = substr(arg[1], 2)
20425 mac1 = arg[2]
20426 }
20427 split(mac1, mac2, "(") #)
20428 macro = mac2[1]
20429 prefix = substr(line, 1, index(line, defundef) - 1)
20430 if (D_is_set[macro]) {
20431 # Preserve the white space surrounding the "#".
20432 print prefix "define", macro P[macro] D[macro]
20433 next
20434 } else {
20435 # Replace #undef with comments. This is necessary, for example,
20436 # in the case of _POSIX_SOURCE, which is predefined and required
20437 # on some systems where configure will not decide to define it.
20438 if (defundef == "undef") {
20439 print "/*", prefix defundef, macro, "*/"
20440 next
20441 }
20442 }
20443 }
20444 { print }
20445 _ACAWK
20446 _ACEOF
20447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20448 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20449 fi # test -n "$CONFIG_HEADERS"
20450
20451
20452 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20453 shift
20454 for ac_tag
20455 do
20456 case $ac_tag in
20457 :[FHLC]) ac_mode=$ac_tag; continue;;
20458 esac
20459 case $ac_mode$ac_tag in
20460 :[FHL]*:*);;
20461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20462 :[FH]-) ac_tag=-:-;;
20463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20464 esac
20465 ac_save_IFS=$IFS
20466 IFS=:
20467 set x $ac_tag
20468 IFS=$ac_save_IFS
20469 shift
20470 ac_file=$1
20471 shift
20472
20473 case $ac_mode in
20474 :L) ac_source=$1;;
20475 :[FH])
20476 ac_file_inputs=
20477 for ac_f
20478 do
20479 case $ac_f in
20480 -) ac_f="$ac_tmp/stdin";;
20481 *) # Look for the file first in the build tree, then in the source tree
20482 # (if the path is not absolute). The absolute path cannot be DOS-style,
20483 # because $ac_f cannot contain `:'.
20484 test -f "$ac_f" ||
20485 case $ac_f in
20486 [\\/$]*) false;;
20487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20488 esac ||
20489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20490 esac
20491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20492 as_fn_append ac_file_inputs " '$ac_f'"
20493 done
20494
20495 # Let's still pretend it is `configure' which instantiates (i.e., don't
20496 # use $as_me), people would be surprised to read:
20497 # /* config.h. Generated by config.status. */
20498 configure_input='Generated from '`
20499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20500 `' by configure.'
20501 if test x"$ac_file" != x-; then
20502 configure_input="$ac_file. $configure_input"
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20504 $as_echo "$as_me: creating $ac_file" >&6;}
20505 fi
20506 # Neutralize special characters interpreted by sed in replacement strings.
20507 case $configure_input in #(
20508 *\&* | *\|* | *\\* )
20509 ac_sed_conf_input=`$as_echo "$configure_input" |
20510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20511 *) ac_sed_conf_input=$configure_input;;
20512 esac
20513
20514 case $ac_tag in
20515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20517 esac
20518 ;;
20519 esac
20520
20521 ac_dir=`$as_dirname -- "$ac_file" ||
20522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20523 X"$ac_file" : 'X\(//\)[^/]' \| \
20524 X"$ac_file" : 'X\(//\)$' \| \
20525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20526 $as_echo X"$ac_file" |
20527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20528 s//\1/
20529 q
20530 }
20531 /^X\(\/\/\)[^/].*/{
20532 s//\1/
20533 q
20534 }
20535 /^X\(\/\/\)$/{
20536 s//\1/
20537 q
20538 }
20539 /^X\(\/\).*/{
20540 s//\1/
20541 q
20542 }
20543 s/.*/./; q'`
20544 as_dir="$ac_dir"; as_fn_mkdir_p
20545 ac_builddir=.
20546
20547 case "$ac_dir" in
20548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20549 *)
20550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20551 # A ".." for each directory in $ac_dir_suffix.
20552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20553 case $ac_top_builddir_sub in
20554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20556 esac ;;
20557 esac
20558 ac_abs_top_builddir=$ac_pwd
20559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20560 # for backward compatibility:
20561 ac_top_builddir=$ac_top_build_prefix
20562
20563 case $srcdir in
20564 .) # We are building in place.
20565 ac_srcdir=.
20566 ac_top_srcdir=$ac_top_builddir_sub
20567 ac_abs_top_srcdir=$ac_pwd ;;
20568 [\\/]* | ?:[\\/]* ) # Absolute name.
20569 ac_srcdir=$srcdir$ac_dir_suffix;
20570 ac_top_srcdir=$srcdir
20571 ac_abs_top_srcdir=$srcdir ;;
20572 *) # Relative name.
20573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20574 ac_top_srcdir=$ac_top_build_prefix$srcdir
20575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20576 esac
20577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20578
20579
20580 case $ac_mode in
20581 :F)
20582 #
20583 # CONFIG_FILE
20584 #
20585
20586 case $INSTALL in
20587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20589 esac
20590 ac_MKDIR_P=$MKDIR_P
20591 case $MKDIR_P in
20592 [\\/$]* | ?:[\\/]* ) ;;
20593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20594 esac
20595 _ACEOF
20596
20597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598 # If the template does not know about datarootdir, expand it.
20599 # FIXME: This hack should be removed a few years after 2.60.
20600 ac_datarootdir_hack=; ac_datarootdir_seen=
20601 ac_sed_dataroot='
20602 /datarootdir/ {
20603 p
20604 q
20605 }
20606 /@datadir@/p
20607 /@docdir@/p
20608 /@infodir@/p
20609 /@localedir@/p
20610 /@mandir@/p'
20611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20612 *datarootdir*) ac_datarootdir_seen=yes;;
20613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20616 _ACEOF
20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618 ac_datarootdir_hack='
20619 s&@datadir@&$datadir&g
20620 s&@docdir@&$docdir&g
20621 s&@infodir@&$infodir&g
20622 s&@localedir@&$localedir&g
20623 s&@mandir@&$mandir&g
20624 s&\\\${datarootdir}&$datarootdir&g' ;;
20625 esac
20626 _ACEOF
20627
20628 # Neutralize VPATH when `$srcdir' = `.'.
20629 # Shell code in configure.ac might set extrasub.
20630 # FIXME: do we really want to maintain this feature?
20631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20632 ac_sed_extra="$ac_vpsub
20633 $extrasub
20634 _ACEOF
20635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20636 :t
20637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20638 s|@configure_input@|$ac_sed_conf_input|;t t
20639 s&@top_builddir@&$ac_top_builddir_sub&;t t
20640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20641 s&@srcdir@&$ac_srcdir&;t t
20642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20643 s&@top_srcdir@&$ac_top_srcdir&;t t
20644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20645 s&@builddir@&$ac_builddir&;t t
20646 s&@abs_builddir@&$ac_abs_builddir&;t t
20647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20648 s&@INSTALL@&$ac_INSTALL&;t t
20649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20650 $ac_datarootdir_hack
20651 "
20652 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20653 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20654
20655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20656 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20658 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20660 which seems to be undefined. Please make sure it is defined" >&5
20661 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20662 which seems to be undefined. Please make sure it is defined" >&2;}
20663
20664 rm -f "$ac_tmp/stdin"
20665 case $ac_file in
20666 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20667 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20668 esac \
20669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20670 ;;
20671 :H)
20672 #
20673 # CONFIG_HEADER
20674 #
20675 if test x"$ac_file" != x-; then
20676 {
20677 $as_echo "/* $configure_input */" \
20678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20679 } >"$ac_tmp/config.h" \
20680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20681 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20684 else
20685 rm -f "$ac_file"
20686 mv "$ac_tmp/config.h" "$ac_file" \
20687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20688 fi
20689 else
20690 $as_echo "/* $configure_input */" \
20691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20692 || as_fn_error $? "could not create -" "$LINENO" 5
20693 fi
20694 # Compute "$ac_file"'s index in $config_headers.
20695 _am_arg="$ac_file"
20696 _am_stamp_count=1
20697 for _am_header in $config_headers :; do
20698 case $_am_header in
20699 $_am_arg | $_am_arg:* )
20700 break ;;
20701 * )
20702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20703 esac
20704 done
20705 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20706 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$_am_arg" : 'X\(//\)[^/]' \| \
20708 X"$_am_arg" : 'X\(//\)$' \| \
20709 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20710 $as_echo X"$_am_arg" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\/\)[^/].*/{
20716 s//\1/
20717 q
20718 }
20719 /^X\(\/\/\)$/{
20720 s//\1/
20721 q
20722 }
20723 /^X\(\/\).*/{
20724 s//\1/
20725 q
20726 }
20727 s/.*/./; q'`/stamp-h$_am_stamp_count
20728 ;;
20729 :L)
20730 #
20731 # CONFIG_LINK
20732 #
20733
20734 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20735 :
20736 else
20737 # Prefer the file from the source tree if names are identical.
20738 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20739 ac_source=$srcdir/$ac_source
20740 fi
20741
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20743 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20744
20745 if test ! -r "$ac_source"; then
20746 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20747 fi
20748 rm -f "$ac_file"
20749
20750 # Try a relative symlink, then a hard link, then a copy.
20751 case $ac_source in
20752 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20753 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20754 esac
20755 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20756 ln "$ac_source" "$ac_file" 2>/dev/null ||
20757 cp -p "$ac_source" "$ac_file" ||
20758 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20759 fi
20760 ;;
20761 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20762 $as_echo "$as_me: executing $ac_file commands" >&6;}
20763 ;;
20764 esac
20765
20766
20767 case $ac_file$ac_mode in
20768 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
20769 if test ".$ax_enable_builddir" = ".." ; then
20770 if test -f "$top_srcdir/Makefile" ; then
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
20772 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
20773 else
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
20775 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
20776 fi
20777 else
20778 if test -f "$ac_top_srcdir/Makefile" ; then
20779 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
20780 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
20781 fi
20782 if test -f "$ac_top_srcdir/Makefile" ; then
20783 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
20784 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
20785 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
20786 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
20787 then rm $ac_top_srcdir/Makefile ; fi
20788 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
20789 fi
20790 if test ! -f "$ac_top_srcdir/Makefile" ; then
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
20792 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
20793 x='`' ; cat >$tmp/conftemp.sed <<_EOF
20794 /^\$/n
20795 x
20796 /^\$/bS
20797 x
20798 /\\\\\$/{H;d;}
20799 {H;s/.*//;x;}
20800 bM
20801 :S
20802 x
20803 /\\\\\$/{h;d;}
20804 {h;s/.*//;x;}
20805 :M
20806 s/\\(\\n\\) /\\1 /g
20807 /^ /d
20808 /^[ ]*[\\#]/d
20809 /^VPATH *=/d
20810 s/^srcdir *=.*/srcdir = ./
20811 s/^top_srcdir *=.*/top_srcdir = ./
20812 /[:=]/!d
20813 /^\\./d
20814 / = /b
20815 / .= /b
20816 /:/!b
20817 s/:.*/:/
20818 s/ / /g
20819 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
20820 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
20821 s/ / /g
20822 /^all all-all[ :]/i\\
20823 all-configured : all-all
20824 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
20825 /-all-all/d
20826 a\\
20827 @ HOST="\$(HOST)\" \\\\\\
20828 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20829 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20830 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
20831 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
20832 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
20833 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
20834 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
20835 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20836 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
20837 /dist-all *:/a\\
20838 @ HOST="\$(HOST)\" \\\\\\
20839 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20840 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20841 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
20842 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
20843 ; if test "\$\$found" -eq "0" ; then : \\\\\\
20844 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
20845 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20846 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
20847 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
20848 /dist-[a-zA-Z0-9]*-all *:/a\\
20849 @ HOST="\$(HOST)\" \\\\\\
20850 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
20851 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20852 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
20853 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
20854 ; if test "\$\$found" -eq "0" ; then : \\\\\\
20855 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
20856 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20857 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
20858 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
20859 /distclean-all *:/a\\
20860 @ HOST="\$(HOST)\" \\\\\\
20861 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20862 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
20863 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
20864 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
20865 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
20866 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20867 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
20868 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20869 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
20870 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
20871 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
20872 _EOF
20873 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
20874 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
20875 if test -f "$ac_top_srcdir/Makefile.mk" ; then
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
20877 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
20878 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
20879 fi ; xxxx="####"
20880 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
20881 # sanity check
20882 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
20884 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
20885 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
20886 >$ac_top_srcdir/Makefile~
20887 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
20888 fi
20889 else
20890 xxxx="\\#\\#\\#\\#"
20891 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
20892 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
20893 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
20894 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
20895 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
20896 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
20898 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
20899 rm "$tmp/mkfile.tmp"
20900 else
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
20902 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
20903 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
20904 fi
20905 fi
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
20907 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
20908 xxxx="####"
20909 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
20910 fi
20911 ;;
20912 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20913 # Older Autoconf quotes --file arguments for eval, but not when files
20914 # are listed without --file. Let's play safe and only enable the eval
20915 # if we detect the quoting.
20916 case $CONFIG_FILES in
20917 *\'*) eval set x "$CONFIG_FILES" ;;
20918 *) set x $CONFIG_FILES ;;
20919 esac
20920 shift
20921 for mf
20922 do
20923 # Strip MF so we end up with the name of the file.
20924 mf=`echo "$mf" | sed -e 's/:.*$//'`
20925 # Check whether this is an Automake generated Makefile or not.
20926 # We used to match only the files named 'Makefile.in', but
20927 # some people rename them; so instead we look at the file content.
20928 # Grep'ing the first line is not enough: some people post-process
20929 # each Makefile.in and add a new line on top of each file to say so.
20930 # Grep'ing the whole file is not good either: AIX grep has a line
20931 # limit of 2048, but all sed's we know have understand at least 4000.
20932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20933 dirpart=`$as_dirname -- "$mf" ||
20934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20935 X"$mf" : 'X\(//\)[^/]' \| \
20936 X"$mf" : 'X\(//\)$' \| \
20937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20938 $as_echo X"$mf" |
20939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20940 s//\1/
20941 q
20942 }
20943 /^X\(\/\/\)[^/].*/{
20944 s//\1/
20945 q
20946 }
20947 /^X\(\/\/\)$/{
20948 s//\1/
20949 q
20950 }
20951 /^X\(\/\).*/{
20952 s//\1/
20953 q
20954 }
20955 s/.*/./; q'`
20956 else
20957 continue
20958 fi
20959 # Extract the definition of DEPDIR, am__include, and am__quote
20960 # from the Makefile without running 'make'.
20961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20962 test -z "$DEPDIR" && continue
20963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20964 test -z "$am__include" && continue
20965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20966 # Find all dependency output files, they are included files with
20967 # $(DEPDIR) in their names. We invoke sed twice because it is the
20968 # simplest approach to changing $(DEPDIR) to its actual value in the
20969 # expansion.
20970 for file in `sed -n "
20971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20973 # Make sure the directory exists.
20974 test -f "$dirpart/$file" && continue
20975 fdir=`$as_dirname -- "$file" ||
20976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20977 X"$file" : 'X\(//\)[^/]' \| \
20978 X"$file" : 'X\(//\)$' \| \
20979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20980 $as_echo X"$file" |
20981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20982 s//\1/
20983 q
20984 }
20985 /^X\(\/\/\)[^/].*/{
20986 s//\1/
20987 q
20988 }
20989 /^X\(\/\/\)$/{
20990 s//\1/
20991 q
20992 }
20993 /^X\(\/\).*/{
20994 s//\1/
20995 q
20996 }
20997 s/.*/./; q'`
20998 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20999 # echo "creating $dirpart/$file"
21000 echo '# dummy' > "$dirpart/$file"
21001 done
21002 done
21003 }
21004 ;;
21005 "libtool":C)
21006
21007 # See if we are running on zsh, and set the options that allow our
21008 # commands through without removal of \ escapes.
21009 if test -n "${ZSH_VERSION+set}"; then
21010 setopt NO_GLOB_SUBST
21011 fi
21012
21013 cfgfile=${ofile}T
21014 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21015 $RM "$cfgfile"
21016
21017 cat <<_LT_EOF >> "$cfgfile"
21018 #! $SHELL
21019
21020 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21021 # Generated automatically by $as_me ($PACKAGE) $VERSION
21022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21024 #
21025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21026 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21027 # Foundation, Inc.
21028 # Written by Gordon Matzigkeit, 1996
21029 #
21030 # This file is part of GNU Libtool.
21031 #
21032 # GNU Libtool is free software; you can redistribute it and/or
21033 # modify it under the terms of the GNU General Public License as
21034 # published by the Free Software Foundation; either version 2 of
21035 # the License, or (at your option) any later version.
21036 #
21037 # As a special exception to the GNU General Public License,
21038 # if you distribute this file as part of a program or library that
21039 # is built using GNU Libtool, you may include this file under the
21040 # same distribution terms that you use for the rest of that program.
21041 #
21042 # GNU Libtool is distributed in the hope that it will be useful,
21043 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21044 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21045 # GNU General Public License for more details.
21046 #
21047 # You should have received a copy of the GNU General Public License
21048 # along with GNU Libtool; see the file COPYING. If not, a copy
21049 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21050 # obtained by writing to the Free Software Foundation, Inc.,
21051 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21052
21053
21054 # The names of the tagged configurations supported by this script.
21055 available_tags='CXX '
21056
21057 # ### BEGIN LIBTOOL CONFIG
21058
21059 # Which release of libtool.m4 was used?
21060 macro_version=$macro_version
21061 macro_revision=$macro_revision
21062
21063 # Whether or not to build shared libraries.
21064 build_libtool_libs=$enable_shared
21065
21066 # Whether or not to build static libraries.
21067 build_old_libs=$enable_static
21068
21069 # What type of objects to build.
21070 pic_mode=$pic_mode
21071
21072 # Whether or not to optimize for fast installation.
21073 fast_install=$enable_fast_install
21074
21075 # Shell to use when invoking shell scripts.
21076 SHELL=$lt_SHELL
21077
21078 # An echo program that protects backslashes.
21079 ECHO=$lt_ECHO
21080
21081 # The PATH separator for the build system.
21082 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21083
21084 # The host system.
21085 host_alias=$host_alias
21086 host=$host
21087 host_os=$host_os
21088
21089 # The build system.
21090 build_alias=$build_alias
21091 build=$build
21092 build_os=$build_os
21093
21094 # A sed program that does not truncate output.
21095 SED=$lt_SED
21096
21097 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21098 Xsed="\$SED -e 1s/^X//"
21099
21100 # A grep program that handles long lines.
21101 GREP=$lt_GREP
21102
21103 # An ERE matcher.
21104 EGREP=$lt_EGREP
21105
21106 # A literal string matcher.
21107 FGREP=$lt_FGREP
21108
21109 # A BSD- or MS-compatible name lister.
21110 NM=$lt_NM
21111
21112 # Whether we need soft or hard links.
21113 LN_S=$lt_LN_S
21114
21115 # What is the maximum length of a command?
21116 max_cmd_len=$max_cmd_len
21117
21118 # Object file suffix (normally "o").
21119 objext=$ac_objext
21120
21121 # Executable file suffix (normally "").
21122 exeext=$exeext
21123
21124 # whether the shell understands "unset".
21125 lt_unset=$lt_unset
21126
21127 # turn spaces into newlines.
21128 SP2NL=$lt_lt_SP2NL
21129
21130 # turn newlines into spaces.
21131 NL2SP=$lt_lt_NL2SP
21132
21133 # convert \$build file names to \$host format.
21134 to_host_file_cmd=$lt_cv_to_host_file_cmd
21135
21136 # convert \$build files to toolchain format.
21137 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21138
21139 # An object symbol dumper.
21140 OBJDUMP=$lt_OBJDUMP
21141
21142 # Method to check whether dependent libraries are shared objects.
21143 deplibs_check_method=$lt_deplibs_check_method
21144
21145 # Command to use when deplibs_check_method = "file_magic".
21146 file_magic_cmd=$lt_file_magic_cmd
21147
21148 # How to find potential files when deplibs_check_method = "file_magic".
21149 file_magic_glob=$lt_file_magic_glob
21150
21151 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21152 want_nocaseglob=$lt_want_nocaseglob
21153
21154 # DLL creation program.
21155 DLLTOOL=$lt_DLLTOOL
21156
21157 # Command to associate shared and link libraries.
21158 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21159
21160 # The archiver.
21161 AR=$lt_AR
21162
21163 # Flags to create an archive.
21164 AR_FLAGS=$lt_AR_FLAGS
21165
21166 # How to feed a file listing to the archiver.
21167 archiver_list_spec=$lt_archiver_list_spec
21168
21169 # A symbol stripping program.
21170 STRIP=$lt_STRIP
21171
21172 # Commands used to install an old-style archive.
21173 RANLIB=$lt_RANLIB
21174 old_postinstall_cmds=$lt_old_postinstall_cmds
21175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21176
21177 # Whether to use a lock for old archive extraction.
21178 lock_old_archive_extraction=$lock_old_archive_extraction
21179
21180 # A C compiler.
21181 LTCC=$lt_CC
21182
21183 # LTCC compiler flags.
21184 LTCFLAGS=$lt_CFLAGS
21185
21186 # Take the output of nm and produce a listing of raw symbols and C names.
21187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21188
21189 # Transform the output of nm in a proper C declaration.
21190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21191
21192 # Transform the output of nm into a list of symbols to manually relocate.
21193 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21194
21195 # Transform the output of nm in a C name address pair.
21196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21197
21198 # Transform the output of nm in a C name address pair when lib prefix is needed.
21199 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21200
21201 # The name lister interface.
21202 nm_interface=$lt_lt_cv_nm_interface
21203
21204 # Specify filename containing input files for \$NM.
21205 nm_file_list_spec=$lt_nm_file_list_spec
21206
21207 # The root where to search for dependent libraries,and where our libraries should be installed.
21208 lt_sysroot=$lt_sysroot
21209
21210 # The name of the directory that contains temporary libtool files.
21211 objdir=$objdir
21212
21213 # Used to examine libraries when file_magic_cmd begins with "file".
21214 MAGIC_CMD=$MAGIC_CMD
21215
21216 # Must we lock files when doing compilation?
21217 need_locks=$lt_need_locks
21218
21219 # Manifest tool.
21220 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21221
21222 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21223 DSYMUTIL=$lt_DSYMUTIL
21224
21225 # Tool to change global to local symbols on Mac OS X.
21226 NMEDIT=$lt_NMEDIT
21227
21228 # Tool to manipulate fat objects and archives on Mac OS X.
21229 LIPO=$lt_LIPO
21230
21231 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21232 OTOOL=$lt_OTOOL
21233
21234 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21235 OTOOL64=$lt_OTOOL64
21236
21237 # Old archive suffix (normally "a").
21238 libext=$libext
21239
21240 # Shared library suffix (normally ".so").
21241 shrext_cmds=$lt_shrext_cmds
21242
21243 # The commands to extract the exported symbol list from a shared archive.
21244 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21245
21246 # Variables whose values should be saved in libtool wrapper scripts and
21247 # restored at link time.
21248 variables_saved_for_relink=$lt_variables_saved_for_relink
21249
21250 # Do we need the "lib" prefix for modules?
21251 need_lib_prefix=$need_lib_prefix
21252
21253 # Do we need a version for libraries?
21254 need_version=$need_version
21255
21256 # Library versioning type.
21257 version_type=$version_type
21258
21259 # Shared library runtime path variable.
21260 runpath_var=$runpath_var
21261
21262 # Shared library path variable.
21263 shlibpath_var=$shlibpath_var
21264
21265 # Is shlibpath searched before the hard-coded library search path?
21266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21267
21268 # Format of library name prefix.
21269 libname_spec=$lt_libname_spec
21270
21271 # List of archive names. First name is the real one, the rest are links.
21272 # The last name is the one that the linker finds with -lNAME
21273 library_names_spec=$lt_library_names_spec
21274
21275 # The coded name of the library, if different from the real name.
21276 soname_spec=$lt_soname_spec
21277
21278 # Permission mode override for installation of shared libraries.
21279 install_override_mode=$lt_install_override_mode
21280
21281 # Command to use after installation of a shared archive.
21282 postinstall_cmds=$lt_postinstall_cmds
21283
21284 # Command to use after uninstallation of a shared archive.
21285 postuninstall_cmds=$lt_postuninstall_cmds
21286
21287 # Commands used to finish a libtool library installation in a directory.
21288 finish_cmds=$lt_finish_cmds
21289
21290 # As "finish_cmds", except a single script fragment to be evaled but
21291 # not shown.
21292 finish_eval=$lt_finish_eval
21293
21294 # Whether we should hardcode library paths into libraries.
21295 hardcode_into_libs=$hardcode_into_libs
21296
21297 # Compile-time system search path for libraries.
21298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21299
21300 # Run-time system search path for libraries.
21301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21302
21303 # Whether dlopen is supported.
21304 dlopen_support=$enable_dlopen
21305
21306 # Whether dlopen of programs is supported.
21307 dlopen_self=$enable_dlopen_self
21308
21309 # Whether dlopen of statically linked programs is supported.
21310 dlopen_self_static=$enable_dlopen_self_static
21311
21312 # Commands to strip libraries.
21313 old_striplib=$lt_old_striplib
21314 striplib=$lt_striplib
21315
21316
21317 # The linker used to build libraries.
21318 LD=$lt_LD
21319
21320 # How to create reloadable object files.
21321 reload_flag=$lt_reload_flag
21322 reload_cmds=$lt_reload_cmds
21323
21324 # Commands used to build an old-style archive.
21325 old_archive_cmds=$lt_old_archive_cmds
21326
21327 # A language specific compiler.
21328 CC=$lt_compiler
21329
21330 # Is the compiler the GNU compiler?
21331 with_gcc=$GCC
21332
21333 # Compiler flag to turn off builtin functions.
21334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21335
21336 # Additional compiler flags for building library objects.
21337 pic_flag=$lt_lt_prog_compiler_pic
21338
21339 # How to pass a linker flag through the compiler.
21340 wl=$lt_lt_prog_compiler_wl
21341
21342 # Compiler flag to prevent dynamic linking.
21343 link_static_flag=$lt_lt_prog_compiler_static
21344
21345 # Does compiler simultaneously support -c and -o options?
21346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21347
21348 # Whether or not to add -lc for building shared libraries.
21349 build_libtool_need_lc=$archive_cmds_need_lc
21350
21351 # Whether or not to disallow shared libs when runtime libs are static.
21352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21353
21354 # Compiler flag to allow reflexive dlopens.
21355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21356
21357 # Compiler flag to generate shared objects directly from archives.
21358 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21359
21360 # Whether the compiler copes with passing no objects directly.
21361 compiler_needs_object=$lt_compiler_needs_object
21362
21363 # Create an old-style archive from a shared archive.
21364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21365
21366 # Create a temporary old-style archive to link instead of a shared archive.
21367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21368
21369 # Commands used to build a shared archive.
21370 archive_cmds=$lt_archive_cmds
21371 archive_expsym_cmds=$lt_archive_expsym_cmds
21372
21373 # Commands used to build a loadable module if different from building
21374 # a shared archive.
21375 module_cmds=$lt_module_cmds
21376 module_expsym_cmds=$lt_module_expsym_cmds
21377
21378 # Whether we are building with GNU ld or not.
21379 with_gnu_ld=$lt_with_gnu_ld
21380
21381 # Flag that allows shared libraries with undefined symbols to be built.
21382 allow_undefined_flag=$lt_allow_undefined_flag
21383
21384 # Flag that enforces no undefined symbols.
21385 no_undefined_flag=$lt_no_undefined_flag
21386
21387 # Flag to hardcode \$libdir into a binary during linking.
21388 # This must work even if \$libdir does not exist
21389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21390
21391 # Whether we need a single "-rpath" flag with a separated argument.
21392 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21393
21394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21395 # DIR into the resulting binary.
21396 hardcode_direct=$hardcode_direct
21397
21398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21399 # DIR into the resulting binary and the resulting library dependency is
21400 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21401 # library is relocated.
21402 hardcode_direct_absolute=$hardcode_direct_absolute
21403
21404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21405 # into the resulting binary.
21406 hardcode_minus_L=$hardcode_minus_L
21407
21408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21409 # into the resulting binary.
21410 hardcode_shlibpath_var=$hardcode_shlibpath_var
21411
21412 # Set to "yes" if building a shared library automatically hardcodes DIR
21413 # into the library and all subsequent libraries and executables linked
21414 # against it.
21415 hardcode_automatic=$hardcode_automatic
21416
21417 # Set to yes if linker adds runtime paths of dependent libraries
21418 # to runtime path list.
21419 inherit_rpath=$inherit_rpath
21420
21421 # Whether libtool must link a program against all its dependency libraries.
21422 link_all_deplibs=$link_all_deplibs
21423
21424 # Set to "yes" if exported symbols are required.
21425 always_export_symbols=$always_export_symbols
21426
21427 # The commands to list exported symbols.
21428 export_symbols_cmds=$lt_export_symbols_cmds
21429
21430 # Symbols that should not be listed in the preloaded symbols.
21431 exclude_expsyms=$lt_exclude_expsyms
21432
21433 # Symbols that must always be exported.
21434 include_expsyms=$lt_include_expsyms
21435
21436 # Commands necessary for linking programs (against libraries) with templates.
21437 prelink_cmds=$lt_prelink_cmds
21438
21439 # Commands necessary for finishing linking programs.
21440 postlink_cmds=$lt_postlink_cmds
21441
21442 # Specify filename containing input files.
21443 file_list_spec=$lt_file_list_spec
21444
21445 # How to hardcode a shared library path into an executable.
21446 hardcode_action=$hardcode_action
21447
21448 # The directories searched by this compiler when creating a shared library.
21449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21450
21451 # Dependencies to place before and after the objects being linked to
21452 # create a shared library.
21453 predep_objects=$lt_predep_objects
21454 postdep_objects=$lt_postdep_objects
21455 predeps=$lt_predeps
21456 postdeps=$lt_postdeps
21457
21458 # The library search path used internally by the compiler when linking
21459 # a shared library.
21460 compiler_lib_search_path=$lt_compiler_lib_search_path
21461
21462 # ### END LIBTOOL CONFIG
21463
21464 _LT_EOF
21465
21466 case $host_os in
21467 aix3*)
21468 cat <<\_LT_EOF >> "$cfgfile"
21469 # AIX sometimes has problems with the GCC collect2 program. For some
21470 # reason, if we set the COLLECT_NAMES environment variable, the problems
21471 # vanish in a puff of smoke.
21472 if test set != "${COLLECT_NAMES+set}"; then
21473 COLLECT_NAMES=
21474 export COLLECT_NAMES
21475 fi
21476 _LT_EOF
21477 ;;
21478 esac
21479
21480
21481 ltmain=$ac_aux_dir/ltmain.sh
21482
21483
21484 # We use sed instead of cat because bash on DJGPP gets confused if
21485 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21486 # text mode, it properly converts lines to CR/LF. This bash problem
21487 # is reportedly fixed, but why not run on old versions too?
21488 sed '$q' "$ltmain" >> "$cfgfile" \
21489 || (rm -f "$cfgfile"; exit 1)
21490
21491 mv -f "$cfgfile" "$ofile" ||
21492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21493 chmod +x "$ofile"
21494
21495
21496 cat <<_LT_EOF >> "$ofile"
21497
21498 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21499
21500 # The linker used to build libraries.
21501 LD=$lt_LD_CXX
21502
21503 # How to create reloadable object files.
21504 reload_flag=$lt_reload_flag_CXX
21505 reload_cmds=$lt_reload_cmds_CXX
21506
21507 # Commands used to build an old-style archive.
21508 old_archive_cmds=$lt_old_archive_cmds_CXX
21509
21510 # A language specific compiler.
21511 CC=$lt_compiler_CXX
21512
21513 # Is the compiler the GNU compiler?
21514 with_gcc=$GCC_CXX
21515
21516 # Compiler flag to turn off builtin functions.
21517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21518
21519 # Additional compiler flags for building library objects.
21520 pic_flag=$lt_lt_prog_compiler_pic_CXX
21521
21522 # How to pass a linker flag through the compiler.
21523 wl=$lt_lt_prog_compiler_wl_CXX
21524
21525 # Compiler flag to prevent dynamic linking.
21526 link_static_flag=$lt_lt_prog_compiler_static_CXX
21527
21528 # Does compiler simultaneously support -c and -o options?
21529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21530
21531 # Whether or not to add -lc for building shared libraries.
21532 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21533
21534 # Whether or not to disallow shared libs when runtime libs are static.
21535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21536
21537 # Compiler flag to allow reflexive dlopens.
21538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21539
21540 # Compiler flag to generate shared objects directly from archives.
21541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21542
21543 # Whether the compiler copes with passing no objects directly.
21544 compiler_needs_object=$lt_compiler_needs_object_CXX
21545
21546 # Create an old-style archive from a shared archive.
21547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21548
21549 # Create a temporary old-style archive to link instead of a shared archive.
21550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21551
21552 # Commands used to build a shared archive.
21553 archive_cmds=$lt_archive_cmds_CXX
21554 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21555
21556 # Commands used to build a loadable module if different from building
21557 # a shared archive.
21558 module_cmds=$lt_module_cmds_CXX
21559 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21560
21561 # Whether we are building with GNU ld or not.
21562 with_gnu_ld=$lt_with_gnu_ld_CXX
21563
21564 # Flag that allows shared libraries with undefined symbols to be built.
21565 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21566
21567 # Flag that enforces no undefined symbols.
21568 no_undefined_flag=$lt_no_undefined_flag_CXX
21569
21570 # Flag to hardcode \$libdir into a binary during linking.
21571 # This must work even if \$libdir does not exist
21572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21573
21574 # Whether we need a single "-rpath" flag with a separated argument.
21575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21576
21577 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21578 # DIR into the resulting binary.
21579 hardcode_direct=$hardcode_direct_CXX
21580
21581 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21582 # DIR into the resulting binary and the resulting library dependency is
21583 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21584 # library is relocated.
21585 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21586
21587 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21588 # into the resulting binary.
21589 hardcode_minus_L=$hardcode_minus_L_CXX
21590
21591 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21592 # into the resulting binary.
21593 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21594
21595 # Set to "yes" if building a shared library automatically hardcodes DIR
21596 # into the library and all subsequent libraries and executables linked
21597 # against it.
21598 hardcode_automatic=$hardcode_automatic_CXX
21599
21600 # Set to yes if linker adds runtime paths of dependent libraries
21601 # to runtime path list.
21602 inherit_rpath=$inherit_rpath_CXX
21603
21604 # Whether libtool must link a program against all its dependency libraries.
21605 link_all_deplibs=$link_all_deplibs_CXX
21606
21607 # Set to "yes" if exported symbols are required.
21608 always_export_symbols=$always_export_symbols_CXX
21609
21610 # The commands to list exported symbols.
21611 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21612
21613 # Symbols that should not be listed in the preloaded symbols.
21614 exclude_expsyms=$lt_exclude_expsyms_CXX
21615
21616 # Symbols that must always be exported.
21617 include_expsyms=$lt_include_expsyms_CXX
21618
21619 # Commands necessary for linking programs (against libraries) with templates.
21620 prelink_cmds=$lt_prelink_cmds_CXX
21621
21622 # Commands necessary for finishing linking programs.
21623 postlink_cmds=$lt_postlink_cmds_CXX
21624
21625 # Specify filename containing input files.
21626 file_list_spec=$lt_file_list_spec_CXX
21627
21628 # How to hardcode a shared library path into an executable.
21629 hardcode_action=$hardcode_action_CXX
21630
21631 # The directories searched by this compiler when creating a shared library.
21632 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21633
21634 # Dependencies to place before and after the objects being linked to
21635 # create a shared library.
21636 predep_objects=$lt_predep_objects_CXX
21637 postdep_objects=$lt_postdep_objects_CXX
21638 predeps=$lt_predeps_CXX
21639 postdeps=$lt_postdeps_CXX
21640
21641 # The library search path used internally by the compiler when linking
21642 # a shared library.
21643 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21644
21645 # ### END LIBTOOL TAG CONFIG: CXX
21646 _LT_EOF
21647
21648 ;;
21649 "include":C) test -d include || mkdir include ;;
21650 "src":C)
21651 test -d src || mkdir src
21652 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
21653 ;;
21654
21655 esac
21656 done # for ac_tag
21657
21658
21659 as_fn_exit 0
21660 _ACEOF
21661 ac_clean_files=$ac_clean_files_save
21662
21663 test $ac_write_fail = 0 ||
21664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21665
21666
21667 # configure is writing to config.log, and then calls config.status.
21668 # config.status does its own redirection, appending to config.log.
21669 # Unfortunately, on DOS this fails, as config.log is still kept open
21670 # by configure, so config.status won't be able to write to it; its
21671 # output is simply discarded. So we exec the FD to /dev/null,
21672 # effectively closing config.log, so it can be properly (re)opened and
21673 # appended to by config.status. When coming back to configure, we
21674 # need to make the FD available again.
21675 if test "$no_create" != yes; then
21676 ac_cs_success=:
21677 ac_config_status_args=
21678 test "$silent" = yes &&
21679 ac_config_status_args="$ac_config_status_args --quiet"
21680 exec 5>/dev/null
21681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21682 exec 5>>config.log
21683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21684 # would make configure fail if this is the last instruction.
21685 $ac_cs_success || as_fn_exit 1
21686 fi
21687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21690 fi
21691