]> git.ipfire.org Git - thirdparty/gcc.git/blob - libffi/configure
libffi: Update LOCAL_PATCHES
[thirdparty/gcc.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.4.2.
4 #
5 # Report bugs to <http://github.com/libffi/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 bug-autoconf@gnu.org and
278 $0: http://github.com/libffi/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.4.2'
594 PACKAGE_STRING='libffi 3.4.2'
595 PACKAGE_BUGREPORT='http://github.com/libffi/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 get_gcc_base_ver
639 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 BUILD_DOCS_FALSE
655 BUILD_DOCS_TRUE
656 FFI_EXEC_TRAMPOLINE_TABLE
657 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659 HAVE_LONG_DOUBLE_VARIANT
660 HAVE_LONG_DOUBLE
661 ALLOCA
662 AM_LTLDFLAGS
663 AM_RUNTESTFLAGS
664 TESTSUBDIR_FALSE
665 TESTSUBDIR_TRUE
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 READELF
670 CXXCPP
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 RANLIB
678 AR
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 LIBTOOL
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 CET_FLAGS
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 ac_ct_CXX
700 CXXFLAGS
701 CXX
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 GENINSRC_FALSE
720 GENINSRC_TRUE
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 enable_silent_rules
804 enable_generated_files_in_srcdir
805 enable_dependency_tracking
806 enable_cet
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_pax_emutramp
815 enable_debug
816 enable_structs
817 enable_raw_api
818 enable_exec_static_tramp
819 enable_purify_safety
820 with_toolexeclibdir
821 enable_symvers
822 with_gcc_major_version_only
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CCAS
828 CCASFLAGS
829 CPP
830 CPPFLAGS
831 CXXCPP'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of libffi 3.4.2:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-multilib build many library versions (default)
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-generated-files-in-srcdir
1455 put copies of generated files in source dir intended
1456 for creating source tarballs for users without
1457 texinfo bison or flex
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-cet enable Intel CET in target libraries [default=auto]
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1472 --enable-debug debugging mode
1473 --disable-structs omit code for struct support
1474 --disable-raw-api make the raw api unavailable
1475 --enable-exec-static-tramp enable use of static exec trampolines
1476 --enable-purify-safety purify-safe mode
1477 --enable-symvers=STYLE enables symbol versioning of the shared library
1478 [default=yes]
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-toolexeclibdir=DIR
1487 install libraries built with a cross compiler within
1488 DIR
1489 --with-gcc-major-version-only
1490 use only GCC major number in filesystem paths
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CCAS assembler compiler command (defaults to CC)
1503 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1504 CPP C preprocessor
1505 CXXCPP C++ preprocessor
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <http://github.com/libffi/libffi/issues>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 libffi configure 3.4.2
1574 generated by GNU Autoconf 2.69
1575
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580 exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_cxx_try_compile LINENO
1626 # ----------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_cxx_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_cxx_try_compile
1662
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_link ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 test -x conftest$ac_exeext
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_link
1708
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_cpp
1776
1777 # ac_fn_c_try_run LINENO
1778 # ----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1780 # that executables *can* be run.
1781 ac_fn_c_try_run ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795 { { case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_try") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; }; }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: program exited with status $ac_status" >&5
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=$ac_status
1812 fi
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_run
1818
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1835
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1846
1847 #undef $2
1848
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1862
1863 int
1864 main ()
1865 {
1866 return $2 ();
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_func
1885
1886 # ac_fn_cxx_try_cpp LINENO
1887 # ------------------------
1888 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_cpp ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } > conftest.i && {
1908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1909 test ! -s conftest.err
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917 fi
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_cxx_try_cpp
1922
1923 # ac_fn_cxx_try_link LINENO
1924 # -------------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_link ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958 fi
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1966
1967 } # ac_fn_cxx_try_link
1968
1969 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970 # --------------------------------------------
1971 # Tries to find the compile-time value of EXPR in a program that includes
1972 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1973 # computed
1974 ac_fn_c_compute_int ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if test "$cross_compiling" = yes; then
1978 # Depending upon the size, compute the lo and hi bounds.
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) >= 0)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=0 ac_mid=0
1995 while :; do
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 test_array [0] = 0;
2004 return test_array [0];
2005
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2012 else
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2015 ac_lo= ac_hi=
2016 break
2017 fi
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) < 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=-1 ac_mid=-1
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=$ac_mid; break
2056 else
2057 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058 if test $ac_mid -le $ac_hi; then
2059 ac_lo= ac_hi=
2060 break
2061 fi
2062 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066 else
2067 ac_lo= ac_hi=
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0;
2083 return test_array [0];
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=$ac_mid
2091 else
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 case $ac_lo in #((
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2098 '') ac_retval=1 ;;
2099 esac
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2106 #include <stdio.h>
2107 #include <stdlib.h>
2108 int
2109 main ()
2110 {
2111
2112 FILE *f = fopen ("conftest.val", "w");
2113 if (! f)
2114 return 1;
2115 if (($2) < 0)
2116 {
2117 long int i = longval ();
2118 if (i != ($2))
2119 return 1;
2120 fprintf (f, "%ld", i);
2121 }
2122 else
2123 {
2124 unsigned long int i = ulongval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%lu", i);
2128 }
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2132
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2139 else
2140 ac_retval=1
2141 fi
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 rm -f conftest.val
2145
2146 fi
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2149
2150 } # ac_fn_c_compute_int
2151
2152 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2153 # -------------------------------------------------------
2154 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155 # the include files in INCLUDES and setting the cache variable VAR
2156 # accordingly.
2157 ac_fn_c_check_header_mongrel ()
2158 {
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if eval \${$3+:} false; then :
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2165 fi
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 else
2170 # Is the header compilable?
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172 $as_echo_n "checking $2 usability... " >&6; }
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 #include <$2>
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_header_compiler=yes
2180 else
2181 ac_header_compiler=no
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185 $as_echo "$ac_header_compiler" >&6; }
2186
2187 # Is the header present?
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189 $as_echo_n "checking $2 presence... " >&6; }
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_c_try_cpp "$LINENO"; then :
2195 ac_header_preproc=yes
2196 else
2197 ac_header_preproc=no
2198 fi
2199 rm -f conftest.err conftest.i conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201 $as_echo "$ac_header_preproc" >&6; }
2202
2203 # So? What about this header?
2204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2205 yes:no: )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ;;
2211 no:yes:* )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2215 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2219 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222 ( $as_echo "## ----------------------------------------------------- ##
2223 ## Report this to http://github.com/libffi/libffi/issues ##
2224 ## ----------------------------------------------------- ##"
2225 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 ;;
2227 esac
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232 else
2233 eval "$3=\$ac_header_compiler"
2234 fi
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 fi
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240
2241 } # ac_fn_c_check_header_mongrel
2242
2243 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2244 # -------------------------------------------
2245 # Tests whether TYPE exists after having included INCLUDES, setting cache
2246 # variable VAR accordingly.
2247 ac_fn_c_check_type ()
2248 {
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 eval "$3=no"
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 int
2260 main ()
2261 {
2262 if (sizeof ($2))
2263 return 0;
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 int
2273 main ()
2274 {
2275 if (sizeof (($2)))
2276 return 0;
2277 ;
2278 return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2282
2283 else
2284 eval "$3=yes"
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295 } # ac_fn_c_check_type
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2299
2300 It was created by libffi $as_me 3.4.2, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2302
2303 $ $0 $@
2304
2305 _ACEOF
2306 exec 5>>config.log
2307 {
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2312
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2321
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329
2330 _ASUNAME
2331
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2340
2341 } >&5
2342
2343 cat >&5 <<_ACEOF
2344
2345
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2349
2350 _ACEOF
2351
2352
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2363 do
2364 for ac_arg
2365 do
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 2)
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2389 ;;
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2392 fi
2393 as_fn_append ac_configure_args " '$ac_arg'"
2394 ;;
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2400
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2408 {
2409 echo
2410
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2416 (
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2439 *)
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 ;;
2442 esac |
2443 sort
2444 )
2445 echo
2446
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475 fi
2476
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492 ' 0
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2497
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2500
2501 $as_echo "/* confdefs.h */" > confdefs.h
2502
2503 # Predefined preprocessor variables.
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2528
2529
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2547 fi
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549 do
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561 done
2562
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2578 fi
2579
2580 # Check that the precious variables saved in the cache have kept the same
2581 # value.
2582 ac_cache_corrupted=false
2583 for ac_var in $ac_precious_vars; do
2584 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2585 eval ac_new_set=\$ac_env_${ac_var}_set
2586 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2587 eval ac_new_val=\$ac_env_${ac_var}_value
2588 case $ac_old_set,$ac_new_set in
2589 set,)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,set)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,);;
2598 *)
2599 if test "x$ac_old_val" != "x$ac_new_val"; then
2600 # differences in whitespace do not lead to failure.
2601 ac_old_val_w=`echo x $ac_old_val`
2602 ac_new_val_w=`echo x $ac_new_val`
2603 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2605 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2606 ac_cache_corrupted=:
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2609 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2610 eval $ac_var=\$ac_old_val
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2613 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2615 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2616 fi;;
2617 esac
2618 # Pass precious variables to config.status.
2619 if test "$ac_new_set" = set; then
2620 case $ac_new_val in
2621 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2622 *) ac_arg=$ac_var=$ac_new_val ;;
2623 esac
2624 case " $ac_configure_args " in
2625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2626 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627 esac
2628 fi
2629 done
2630 if $ac_cache_corrupted; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2634 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2635 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2636 fi
2637 ## -------------------- ##
2638 ## Main body of script. ##
2639 ## -------------------- ##
2640
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649
2650
2651 ac_config_headers="$ac_config_headers fficonfig.h"
2652
2653
2654 # Default to --enable-multilib
2655 # Check whether --enable-multilib was given.
2656 if test "${enable_multilib+set}" = set; then :
2657 enableval=$enable_multilib; case "$enableval" in
2658 yes) multilib=yes ;;
2659 no) multilib=no ;;
2660 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2661 esac
2662 else
2663 multilib=yes
2664 fi
2665
2666
2667 # We may get other options which we leave undocumented:
2668 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2669 # See config-ml.in if you want the gory details.
2670
2671 if test "$srcdir" = "."; then
2672 if test "$with_target_subdir" != "."; then
2673 multi_basedir="$srcdir/$with_multisrctop../.."
2674 else
2675 multi_basedir="$srcdir/$with_multisrctop.."
2676 fi
2677 else
2678 multi_basedir="$srcdir/.."
2679 fi
2680
2681
2682 # Even if the default multilib is not a cross compilation,
2683 # it may be that some of the other multilibs are.
2684 if test $cross_compiling = no && test $multilib = yes \
2685 && test "x${with_multisubdir}" != x ; then
2686 cross_compiling=maybe
2687 fi
2688
2689 ac_config_commands="$ac_config_commands default-1"
2690
2691
2692 ac_aux_dir=
2693 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2694 if test -f "$ac_dir/install-sh"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/install-sh -c"
2697 break
2698 elif test -f "$ac_dir/install.sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install.sh -c"
2701 break
2702 elif test -f "$ac_dir/shtool"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/shtool install -c"
2705 break
2706 fi
2707 done
2708 if test -z "$ac_aux_dir"; then
2709 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2710 fi
2711
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2717 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2718 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2719
2720
2721 # Make sure we can run config.sub.
2722 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2723 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2726 $as_echo_n "checking build system type... " >&6; }
2727 if ${ac_cv_build+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 ac_build_alias=$build_alias
2731 test "x$ac_build_alias" = x &&
2732 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2733 test "x$ac_build_alias" = x &&
2734 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2737
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2740 $as_echo "$ac_cv_build" >&6; }
2741 case $ac_cv_build in
2742 *-*-*) ;;
2743 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2744 esac
2745 build=$ac_cv_build
2746 ac_save_IFS=$IFS; IFS='-'
2747 set x $ac_cv_build
2748 shift
2749 build_cpu=$1
2750 build_vendor=$2
2751 shift; shift
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2754 build_os=$*
2755 IFS=$ac_save_IFS
2756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2757
2758
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2760 $as_echo_n "checking host system type... " >&6; }
2761 if ${ac_cv_host+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test "x$host_alias" = x; then
2765 ac_cv_host=$ac_cv_build
2766 else
2767 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2769 fi
2770
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2773 $as_echo "$ac_cv_host" >&6; }
2774 case $ac_cv_host in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2777 esac
2778 host=$ac_cv_host
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_host
2781 shift
2782 host_cpu=$1
2783 host_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 host_os=$*
2788 IFS=$ac_save_IFS
2789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2793 $as_echo_n "checking target system type... " >&6; }
2794 if ${ac_cv_target+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$target_alias" = x; then
2798 ac_cv_target=$ac_cv_host
2799 else
2800 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2802 fi
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2806 $as_echo "$ac_cv_target" >&6; }
2807 case $ac_cv_target in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2810 esac
2811 target=$ac_cv_target
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_target
2814 shift
2815 target_cpu=$1
2816 target_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 target_os=$*
2821 IFS=$ac_save_IFS
2822 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 # The aliases save the names the user supplied, while $host etc.
2826 # will get canonicalized.
2827 test -n "$target_alias" &&
2828 test "$program_prefix$program_suffix$program_transform_name" = \
2829 NONENONEs,x,x, &&
2830 program_prefix=${target_alias}-
2831
2832 target_alias=${target_alias-$host_alias}
2833
2834 am__api_version='1.15'
2835
2836 # Find a good install program. We prefer a C program (faster),
2837 # so one script is as good as another. But avoid the broken or
2838 # incompatible versions:
2839 # SysV /etc/install, /usr/sbin/install
2840 # SunOS /usr/etc/install
2841 # IRIX /sbin/install
2842 # AIX /bin/install
2843 # AmigaOS /C/install, which installs bootblocks on floppy discs
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # OS/2's system install, which has a completely different semantic
2848 # ./install, which can be erroneously created by make from ./install.sh.
2849 # Reject install programs that cannot install multiple files.
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2851 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2852 if test -z "$INSTALL"; then
2853 if ${ac_cv_path_install+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 # Account for people who put trailing slashes in PATH elements.
2862 case $as_dir/ in #((
2863 ./ | .// | /[cC]/* | \
2864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2865 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2866 /usr/ucb/* ) ;;
2867 *)
2868 # OSF1 and SCO ODT 3.0 have their own names for install.
2869 # Don't use installbsd from OSF since it installs stuff as root
2870 # by default.
2871 for ac_prog in ginstall scoinst install; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2874 if test $ac_prog = install &&
2875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876 # AIX install. It has an incompatible calling convention.
2877 :
2878 elif test $ac_prog = install &&
2879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880 # program-specific install script used by HP pwplus--don't use.
2881 :
2882 else
2883 rm -rf conftest.one conftest.two conftest.dir
2884 echo one > conftest.one
2885 echo two > conftest.two
2886 mkdir conftest.dir
2887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2888 test -s conftest.one && test -s conftest.two &&
2889 test -s conftest.dir/conftest.one &&
2890 test -s conftest.dir/conftest.two
2891 then
2892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2893 break 3
2894 fi
2895 fi
2896 fi
2897 done
2898 done
2899 ;;
2900 esac
2901
2902 done
2903 IFS=$as_save_IFS
2904
2905 rm -rf conftest.one conftest.two conftest.dir
2906
2907 fi
2908 if test "${ac_cv_path_install+set}" = set; then
2909 INSTALL=$ac_cv_path_install
2910 else
2911 # As a last resort, use the slow shell script. Don't cache a
2912 # value for INSTALL within a source directory, because that will
2913 # break other packages using the cache if that directory is
2914 # removed, or if the value is a relative name.
2915 INSTALL=$ac_install_sh
2916 fi
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2919 $as_echo "$INSTALL" >&6; }
2920
2921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2922 # It thinks the first close brace ends the variable substitution.
2923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2924
2925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2926
2927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2928
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2930 $as_echo_n "checking whether build environment is sane... " >&6; }
2931 # Reject unsafe characters in $srcdir or the absolute working directory
2932 # name. Accept space and tab only in the latter.
2933 am_lf='
2934 '
2935 case `pwd` in
2936 *[\\\"\#\$\&\'\`$am_lf]*)
2937 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2938 esac
2939 case $srcdir in
2940 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2941 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2942 esac
2943
2944 # Do 'set' in a subshell so we don't clobber the current shell's
2945 # arguments. Must try -L first in case configure is actually a
2946 # symlink; some systems play weird games with the mod time of symlinks
2947 # (eg FreeBSD returns the mod time of the symlink's containing
2948 # directory).
2949 if (
2950 am_has_slept=no
2951 for am_try in 1 2; do
2952 echo "timestamp, slept: $am_has_slept" > conftest.file
2953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2954 if test "$*" = "X"; then
2955 # -L didn't work.
2956 set X `ls -t "$srcdir/configure" conftest.file`
2957 fi
2958 if test "$*" != "X $srcdir/configure conftest.file" \
2959 && test "$*" != "X conftest.file $srcdir/configure"; then
2960
2961 # If neither matched, then we have a broken ls. This can happen
2962 # if, for instance, CONFIG_SHELL is bash and it inherits a
2963 # broken ls alias from the environment. This has actually
2964 # happened. Such a system could not be considered "sane".
2965 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2966 alias in your environment" "$LINENO" 5
2967 fi
2968 if test "$2" = conftest.file || test $am_try -eq 2; then
2969 break
2970 fi
2971 # Just in case.
2972 sleep 1
2973 am_has_slept=yes
2974 done
2975 test "$2" = conftest.file
2976 )
2977 then
2978 # Ok.
2979 :
2980 else
2981 as_fn_error $? "newly created file is older than distributed files!
2982 Check your system clock" "$LINENO" 5
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986 # If we didn't sleep, we still need to ensure time stamps of config.status and
2987 # generated files are strictly newer.
2988 am_sleep_pid=
2989 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2990 ( sleep 1 ) &
2991 am_sleep_pid=$!
2992 fi
2993
2994 rm -f conftest.file
2995
2996 test "$program_prefix" != NONE &&
2997 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2998 # Use a double $ so make ignores it.
2999 test "$program_suffix" != NONE &&
3000 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3001 # Double any \ or $.
3002 # By default was `s,x,x', remove it if useless.
3003 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3004 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3005
3006 # Expand $ac_aux_dir to an absolute path.
3007 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3008
3009 if test x"${MISSING+set}" != xset; then
3010 case $am_aux_dir in
3011 *\ * | *\ *)
3012 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3013 *)
3014 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3015 esac
3016 fi
3017 # Use eval to expand $SHELL
3018 if eval "$MISSING --is-lightweight"; then
3019 am_missing_run="$MISSING "
3020 else
3021 am_missing_run=
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3023 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3024 fi
3025
3026 if test x"${install_sh+set}" != xset; then
3027 case $am_aux_dir in
3028 *\ * | *\ *)
3029 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3030 *)
3031 install_sh="\${SHELL} $am_aux_dir/install-sh"
3032 esac
3033 fi
3034
3035 # Installed binaries are usually stripped using 'strip' when the user
3036 # run "make install-strip". However 'strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the 'STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_STRIP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$ac_cv_prog_STRIP"; then
3080 ac_ct_STRIP=$STRIP
3081 # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_STRIP"; then
3089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_STRIP="strip"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117 if test "x$ac_ct_STRIP" = x; then
3118 STRIP=":"
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 STRIP=$ac_ct_STRIP
3127 fi
3128 else
3129 STRIP="$ac_cv_prog_STRIP"
3130 fi
3131
3132 fi
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3136 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3137 if test -z "$MKDIR_P"; then
3138 if ${ac_cv_path_mkdir+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3143 do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_prog in mkdir gmkdir; do
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3150 'mkdir (GNU coreutils) '* | \
3151 'mkdir (coreutils) '* | \
3152 'mkdir (fileutils) '4.1*)
3153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3154 break 3;;
3155 esac
3156 done
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162
3163 test -d ./--version && rmdir ./--version
3164 if test "${ac_cv_path_mkdir+set}" = set; then
3165 MKDIR_P="$ac_cv_path_mkdir -p"
3166 else
3167 # As a last resort, use the slow shell script. Don't cache a
3168 # value for MKDIR_P within a source directory, because that will
3169 # break other packages using the cache if that directory is
3170 # removed, or if the value is a relative name.
3171 MKDIR_P="$ac_install_sh -d"
3172 fi
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3175 $as_echo "$MKDIR_P" >&6; }
3176
3177 for ac_prog in gawk mawk nawk awk
3178 do
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_AWK+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$AWK"; then
3187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_AWK="$ac_prog"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 AWK=$ac_cv_prog_AWK
3207 if test -n "$AWK"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3209 $as_echo "$AWK" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216 test -n "$AWK" && break
3217 done
3218
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3220 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3221 set x ${MAKE-make}
3222 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3223 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat >conftest.make <<\_ACEOF
3227 SHELL = /bin/sh
3228 all:
3229 @echo '@@@%%%=$(MAKE)=@@@%%%'
3230 _ACEOF
3231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3233 *@@@%%%=?*=@@@%%%*)
3234 eval ac_cv_prog_make_${ac_make}_set=yes;;
3235 *)
3236 eval ac_cv_prog_make_${ac_make}_set=no;;
3237 esac
3238 rm -f conftest.make
3239 fi
3240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3243 SET_MAKE=
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 SET_MAKE="MAKE=${MAKE-make}"
3248 fi
3249
3250 rm -rf .tst 2>/dev/null
3251 mkdir .tst 2>/dev/null
3252 if test -d .tst; then
3253 am__leading_dot=.
3254 else
3255 am__leading_dot=_
3256 fi
3257 rmdir .tst 2>/dev/null
3258
3259 # Check whether --enable-silent-rules was given.
3260 if test "${enable_silent_rules+set}" = set; then :
3261 enableval=$enable_silent_rules;
3262 fi
3263
3264 case $enable_silent_rules in # (((
3265 yes) AM_DEFAULT_VERBOSITY=0;;
3266 no) AM_DEFAULT_VERBOSITY=1;;
3267 *) AM_DEFAULT_VERBOSITY=1;;
3268 esac
3269 am_make=${MAKE-make}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3271 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3272 if ${am_cv_make_support_nested_variables+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if $as_echo 'TRUE=$(BAR$(V))
3276 BAR0=false
3277 BAR1=true
3278 V=1
3279 am__doit:
3280 @$(TRUE)
3281 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3282 am_cv_make_support_nested_variables=yes
3283 else
3284 am_cv_make_support_nested_variables=no
3285 fi
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3288 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3289 if test $am_cv_make_support_nested_variables = yes; then
3290 AM_V='$(V)'
3291 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3292 else
3293 AM_V=$AM_DEFAULT_VERBOSITY
3294 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3295 fi
3296 AM_BACKSLASH='\'
3297
3298 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3300 # is not polluted with repeated "-I."
3301 am__isrc=' -I$(srcdir)'
3302 # test to see if srcdir already configured
3303 if test -f $srcdir/config.status; then
3304 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3305 fi
3306 fi
3307
3308 # test whether we have cygpath
3309 if test -z "$CYGPATH_W"; then
3310 if (cygpath --version) >/dev/null 2>/dev/null; then
3311 CYGPATH_W='cygpath -w'
3312 else
3313 CYGPATH_W=echo
3314 fi
3315 fi
3316
3317
3318 # Define the identity of the package.
3319 PACKAGE='libffi'
3320 VERSION='3.4.2'
3321
3322
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE "$PACKAGE"
3325 _ACEOF
3326
3327
3328 cat >>confdefs.h <<_ACEOF
3329 #define VERSION "$VERSION"
3330 _ACEOF
3331
3332 # Some tools Automake needs.
3333
3334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3335
3336
3337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3338
3339
3340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3341
3342
3343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3344
3345
3346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3347
3348 # For better backward compatibility. To be removed once Automake 1.9.x
3349 # dies out for good. For more background, see:
3350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3351 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3352 mkdir_p='$(MKDIR_P)'
3353
3354 # We need awk for the "check" target (and possibly the TAP driver). The
3355 # system "awk" is bad on some platforms.
3356 # Always define AMTAR for backward compatibility. Yes, it's still used
3357 # in the wild :-( We should find a proper way to deprecate it ...
3358 AMTAR='$${TAR-tar}'
3359
3360
3361 # We'll loop over all known methods to create a tar archive until one works.
3362 _am_tools='gnutar pax cpio none'
3363
3364 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3365
3366
3367
3368
3369
3370
3371 # POSIX will say in a future version that running "rm -f" with no argument
3372 # is OK; and we want to be able to make that assumption in our Makefile
3373 # recipes. So use an aggressive probe to check that the usage we want is
3374 # actually supported "in the wild" to an acceptable degree.
3375 # See automake bug#10828.
3376 # To make any issue more visible, cause the running configure to be aborted
3377 # by default if the 'rm' program in use doesn't match our expectations; the
3378 # user can still override this though.
3379 if rm -f && rm -fr && rm -rf; then : OK; else
3380 cat >&2 <<'END'
3381 Oops!
3382
3383 Your 'rm' program seems unable to run without file operands specified
3384 on the command line, even when the '-f' option is present. This is contrary
3385 to the behaviour of most rm programs out there, and not conforming with
3386 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3387
3388 Please tell bug-automake@gnu.org about your system, including the value
3389 of your $PATH and any error possibly output before this message. This
3390 can help us improve future automake versions.
3391
3392 END
3393 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3394 echo 'Configuration will proceed anyway, since you have set the' >&2
3395 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3396 echo >&2
3397 else
3398 cat >&2 <<'END'
3399 Aborting the configuration process, to ensure you take notice of the issue.
3400
3401 You can download and install GNU coreutils to get an 'rm' implementation
3402 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3403
3404 If you want to complete the configuration process using your problematic
3405 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3406 to "yes", and re-run configure.
3407
3408 END
3409 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3410 fi
3411 fi
3412
3413
3414 # We would like our source tree to be readonly. However when releases or
3415 # pre-releases are generated, the flex/bison generated files as well as the
3416 # various formats of manuals need to be included along with the rest of the
3417 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3418 # just that.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3420 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3421 # Check whether --enable-generated-files-in-srcdir was given.
3422 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3423 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3424 yes) enable_generated_files_in_srcdir=yes ;;
3425 no) enable_generated_files_in_srcdir=no ;;
3426 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3427 esac
3428 else
3429 enable_generated_files_in_srcdir=no
3430 fi
3431
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3433 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3434 if test "$enable_generated_files_in_srcdir" = yes; then
3435 GENINSRC_TRUE=
3436 GENINSRC_FALSE='#'
3437 else
3438 GENINSRC_TRUE='#'
3439 GENINSRC_FALSE=
3440 fi
3441
3442
3443 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3444 # We must force CC to /not/ be precious variables; otherwise
3445 # the wrong, non-multilib-adjusted value will be used in multilibs.
3446 # As a side effect, we have to subst CFLAGS ourselves.
3447 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3448 # defaults of its own if none are provided.
3449
3450
3451
3452 save_CFLAGS=$CFLAGS
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_CC"; then
3498 ac_ct_CC=$CC
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3545 fi
3546 else
3547 CC="$ac_cv_prog_CC"
3548 fi
3549
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589 fi
3590 fi
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3613 fi
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3632 fi
3633 fi
3634 fi
3635 fi
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646 fi
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3650 do
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688 test -n "$CC" && break
3689 done
3690 fi
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 test -n "$ac_ct_CC" && break
3733 done
3734
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744 CC=$ac_ct_CC
3745 fi
3746 fi
3747
3748 fi
3749
3750
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3755
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3775 fi
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3780
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3806 do
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3813
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3831 do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835 ;;
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 fi
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3851 * )
3852 break;;
3853 esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856
3857 else
3858 ac_file=''
3859 fi
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3879
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3913 fi
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3917
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3924 int
3925 main ()
3926 {
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3972 fi
3973 fi
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3977
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main ()
3990 {
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4024 fi
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main ()
4041 {
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063 else
4064 GCC=
4065 fi
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 else
4091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094
4095 int
4096 main ()
4097 {
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104
4105 else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main ()
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4138 fi
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4144 fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 struct stat;
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4162 char **p;
4163 int i;
4164 {
4165 return p[i];
4166 }
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4168 {
4169 char *s;
4170 va_list v;
4171 va_start (v,p);
4172 s = g (p, va_arg (v,int));
4173 va_end (v);
4174 return s;
4175 }
4176
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4188 #define FOO(x) 'x'
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 int argc;
4196 char **argv;
4197 int
4198 main ()
4199 {
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 do
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4217
4218 fi
4219 # AC_CACHE_VAL
4220 case "x$ac_cv_prog_cc_c89" in
4221 x)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4224 xno)
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4227 *)
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 esac
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4233
4234 fi
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4249 if ${am_cv_prog_cc_c_o+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254
4255 int
4256 main ()
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 # Make sure it works both with $CC and with simple cc.
4264 # Following AC_PROG_CC_C_O, we do the test twice because some
4265 # compilers refuse to overwrite an existing .o file with -o,
4266 # though they will create one.
4267 am_cv_prog_cc_c_o=yes
4268 for am_i in 1 2; do
4269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } \
4274 && test -f conftest2.$ac_objext; then
4275 : OK
4276 else
4277 am_cv_prog_cc_c_o=no
4278 break
4279 fi
4280 done
4281 rm -f core conftest*
4282 unset am_i
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4286 if test "$am_cv_prog_cc_c_o" != yes; then
4287 # Losing compiler, so override with the script.
4288 # FIXME: It is wrong to rewrite CC.
4289 # But if we don't then we get into trouble of one sort or another.
4290 # A longer-term fix would be to have automake use am__CC in this case,
4291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4292 CC="$am_aux_dir/compile $CC"
4293 fi
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299
4300 DEPDIR="${am__leading_dot}deps"
4301
4302 ac_config_commands="$ac_config_commands depfiles"
4303
4304
4305 am_make=${MAKE-make}
4306 cat > confinc << 'END'
4307 am__doit:
4308 @echo this is the am__doit target
4309 .PHONY: am__doit
4310 END
4311 # If we don't find an include directive, just comment out the code.
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4313 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4314 am__include="#"
4315 am__quote=
4316 _am_result=none
4317 # First try GNU make style include.
4318 echo "include confinc" > confmf
4319 # Ignore all kinds of additional output from 'make'.
4320 case `$am_make -s -f confmf 2> /dev/null` in #(
4321 *the\ am__doit\ target*)
4322 am__include=include
4323 am__quote=
4324 _am_result=GNU
4325 ;;
4326 esac
4327 # Now try BSD make style include.
4328 if test "$am__include" = "#"; then
4329 echo '.include "confinc"' > confmf
4330 case `$am_make -s -f confmf 2> /dev/null` in #(
4331 *the\ am__doit\ target*)
4332 am__include=.include
4333 am__quote="\""
4334 _am_result=BSD
4335 ;;
4336 esac
4337 fi
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4341 $as_echo "$_am_result" >&6; }
4342 rm -f confinc confmf
4343
4344 # Check whether --enable-dependency-tracking was given.
4345 if test "${enable_dependency_tracking+set}" = set; then :
4346 enableval=$enable_dependency_tracking;
4347 fi
4348
4349 if test "x$enable_dependency_tracking" != xno; then
4350 am_depcomp="$ac_aux_dir/depcomp"
4351 AMDEPBACKSLASH='\'
4352 am__nodep='_no'
4353 fi
4354 if test "x$enable_dependency_tracking" != xno; then
4355 AMDEP_TRUE=
4356 AMDEP_FALSE='#'
4357 else
4358 AMDEP_TRUE='#'
4359 AMDEP_FALSE=
4360 fi
4361
4362
4363
4364 depcc="$CC" am_compiler_list=
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4367 $as_echo_n "checking dependency style of $depcc... " >&6; }
4368 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4372 # We make a subdir and do the tests there. Otherwise we can end up
4373 # making bogus files that we don't know about and never remove. For
4374 # instance it was reported that on HP-UX the gcc test will end up
4375 # making a dummy file named 'D' -- because '-MD' means "put the output
4376 # in D".
4377 rm -rf conftest.dir
4378 mkdir conftest.dir
4379 # Copy depcomp to subdir because otherwise we won't find it if we're
4380 # using a relative directory.
4381 cp "$am_depcomp" conftest.dir
4382 cd conftest.dir
4383 # We will build objects and dependencies in a subdirectory because
4384 # it helps to detect inapplicable dependency modes. For instance
4385 # both Tru64's cc and ICC support -MD to output dependencies as a
4386 # side effect of compilation, but ICC will put the dependencies in
4387 # the current directory while Tru64 will put them in the object
4388 # directory.
4389 mkdir sub
4390
4391 am_cv_CC_dependencies_compiler_type=none
4392 if test "$am_compiler_list" = ""; then
4393 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4394 fi
4395 am__universal=false
4396 case " $depcc " in #(
4397 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4398 esac
4399
4400 for depmode in $am_compiler_list; do
4401 # Setup a source with many dependencies, because some compilers
4402 # like to wrap large dependency lists on column 80 (with \), and
4403 # we should not choose a depcomp mode which is confused by this.
4404 #
4405 # We need to recreate these files for each test, as the compiler may
4406 # overwrite some of them when testing with obscure command lines.
4407 # This happens at least with the AIX C compiler.
4408 : > sub/conftest.c
4409 for i in 1 2 3 4 5 6; do
4410 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4411 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4412 # Solaris 10 /bin/sh.
4413 echo '/* dummy */' > sub/conftst$i.h
4414 done
4415 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4416
4417 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4418 # mode. It turns out that the SunPro C++ compiler does not properly
4419 # handle '-M -o', and we need to detect this. Also, some Intel
4420 # versions had trouble with output in subdirs.
4421 am__obj=sub/conftest.${OBJEXT-o}
4422 am__minus_obj="-o $am__obj"
4423 case $depmode in
4424 gcc)
4425 # This depmode causes a compiler race in universal mode.
4426 test "$am__universal" = false || continue
4427 ;;
4428 nosideeffect)
4429 # After this tag, mechanisms are not by side-effect, so they'll
4430 # only be used when explicitly requested.
4431 if test "x$enable_dependency_tracking" = xyes; then
4432 continue
4433 else
4434 break
4435 fi
4436 ;;
4437 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4438 # This compiler won't grok '-c -o', but also, the minuso test has
4439 # not run yet. These depmodes are late enough in the game, and
4440 # so weak that their functioning should not be impacted.
4441 am__obj=conftest.${OBJEXT-o}
4442 am__minus_obj=
4443 ;;
4444 none) break ;;
4445 esac
4446 if depmode=$depmode \
4447 source=sub/conftest.c object=$am__obj \
4448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4449 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4450 >/dev/null 2>conftest.err &&
4451 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4452 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4453 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4454 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4455 # icc doesn't choke on unknown options, it will just issue warnings
4456 # or remarks (even with -Werror). So we grep stderr for any message
4457 # that says an option was ignored or not supported.
4458 # When given -MP, icc 7.0 and 7.1 complain thusly:
4459 # icc: Command line warning: ignoring option '-M'; no argument required
4460 # The diagnosis changed in icc 8.0:
4461 # icc: Command line remark: option '-MP' not supported
4462 if (grep 'ignoring option' conftest.err ||
4463 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4464 am_cv_CC_dependencies_compiler_type=$depmode
4465 break
4466 fi
4467 fi
4468 done
4469
4470 cd ..
4471 rm -rf conftest.dir
4472 else
4473 am_cv_CC_dependencies_compiler_type=none
4474 fi
4475
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4478 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4479 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4480
4481 if
4482 test "x$enable_dependency_tracking" != xno \
4483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484 am__fastdepCC_TRUE=
4485 am__fastdepCC_FALSE='#'
4486 else
4487 am__fastdepCC_TRUE='#'
4488 am__fastdepCC_FALSE=
4489 fi
4490
4491
4492 ac_ext=cpp
4493 ac_cpp='$CXXCPP $CPPFLAGS'
4494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4497 if test -z "$CXX"; then
4498 if test -n "$CCC"; then
4499 CXX=$CCC
4500 else
4501 if test -n "$ac_tool_prefix"; then
4502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4503 do
4504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_CXX+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$CXX"; then
4512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525 done
4526 done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 CXX=$ac_cv_prog_CXX
4532 if test -n "$CXX"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4534 $as_echo "$CXX" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541 test -n "$CXX" && break
4542 done
4543 fi
4544 if test -z "$CXX"; then
4545 ac_ct_CXX=$CXX
4546 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4547 do
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569 done
4570 done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4576 if test -n "$ac_ct_CXX"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4578 $as_echo "$ac_ct_CXX" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583
4584
4585 test -n "$ac_ct_CXX" && break
4586 done
4587
4588 if test "x$ac_ct_CXX" = x; then
4589 CXX="g++"
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 CXX=$ac_ct_CXX
4598 fi
4599 fi
4600
4601 fi
4602 fi
4603 # Provide some information about the compiler.
4604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 for ac_option in --version -v -V -qversion; do
4608 { { ac_try="$ac_compiler $ac_option >&5"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 ac_status=$?
4617 if test -s conftest.err; then
4618 sed '10a\
4619 ... rest of stderr output deleted ...
4620 10q' conftest.err >conftest.er1
4621 cat conftest.er1 >&5
4622 fi
4623 rm -f conftest.er1 conftest.err
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4626 done
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4629 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4630 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main ()
4638 {
4639 #ifndef __GNUC__
4640 choke me
4641 #endif
4642
4643 ;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_cxx_try_compile "$LINENO"; then :
4648 ac_compiler_gnu=yes
4649 else
4650 ac_compiler_gnu=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4657 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4658 if test $ac_compiler_gnu = yes; then
4659 GXX=yes
4660 else
4661 GXX=
4662 fi
4663 ac_test_CXXFLAGS=${CXXFLAGS+set}
4664 ac_save_CXXFLAGS=$CXXFLAGS
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4666 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4667 if ${ac_cv_prog_cxx_g+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4671 ac_cxx_werror_flag=yes
4672 ac_cv_prog_cxx_g=no
4673 CXXFLAGS="-g"
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676
4677 int
4678 main ()
4679 {
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_cxx_try_compile "$LINENO"; then :
4686 ac_cv_prog_cxx_g=yes
4687 else
4688 CXXFLAGS=""
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691
4692 int
4693 main ()
4694 {
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_cxx_try_compile "$LINENO"; then :
4701
4702 else
4703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704 CXXFLAGS="-g"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717 ac_cv_prog_cxx_g=yes
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4727 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4728 if test "$ac_test_CXXFLAGS" = set; then
4729 CXXFLAGS=$ac_save_CXXFLAGS
4730 elif test $ac_cv_prog_cxx_g = yes; then
4731 if test "$GXX" = yes; then
4732 CXXFLAGS="-g -O2"
4733 else
4734 CXXFLAGS="-g"
4735 fi
4736 else
4737 if test "$GXX" = yes; then
4738 CXXFLAGS="-O2"
4739 else
4740 CXXFLAGS=
4741 fi
4742 fi
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 depcc="$CXX" am_compiler_list=
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4752 $as_echo_n "checking dependency style of $depcc... " >&6; }
4753 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4757 # We make a subdir and do the tests there. Otherwise we can end up
4758 # making bogus files that we don't know about and never remove. For
4759 # instance it was reported that on HP-UX the gcc test will end up
4760 # making a dummy file named 'D' -- because '-MD' means "put the output
4761 # in D".
4762 rm -rf conftest.dir
4763 mkdir conftest.dir
4764 # Copy depcomp to subdir because otherwise we won't find it if we're
4765 # using a relative directory.
4766 cp "$am_depcomp" conftest.dir
4767 cd conftest.dir
4768 # We will build objects and dependencies in a subdirectory because
4769 # it helps to detect inapplicable dependency modes. For instance
4770 # both Tru64's cc and ICC support -MD to output dependencies as a
4771 # side effect of compilation, but ICC will put the dependencies in
4772 # the current directory while Tru64 will put them in the object
4773 # directory.
4774 mkdir sub
4775
4776 am_cv_CXX_dependencies_compiler_type=none
4777 if test "$am_compiler_list" = ""; then
4778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4779 fi
4780 am__universal=false
4781 case " $depcc " in #(
4782 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4783 esac
4784
4785 for depmode in $am_compiler_list; do
4786 # Setup a source with many dependencies, because some compilers
4787 # like to wrap large dependency lists on column 80 (with \), and
4788 # we should not choose a depcomp mode which is confused by this.
4789 #
4790 # We need to recreate these files for each test, as the compiler may
4791 # overwrite some of them when testing with obscure command lines.
4792 # This happens at least with the AIX C compiler.
4793 : > sub/conftest.c
4794 for i in 1 2 3 4 5 6; do
4795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4796 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4797 # Solaris 10 /bin/sh.
4798 echo '/* dummy */' > sub/conftst$i.h
4799 done
4800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4801
4802 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4803 # mode. It turns out that the SunPro C++ compiler does not properly
4804 # handle '-M -o', and we need to detect this. Also, some Intel
4805 # versions had trouble with output in subdirs.
4806 am__obj=sub/conftest.${OBJEXT-o}
4807 am__minus_obj="-o $am__obj"
4808 case $depmode in
4809 gcc)
4810 # This depmode causes a compiler race in universal mode.
4811 test "$am__universal" = false || continue
4812 ;;
4813 nosideeffect)
4814 # After this tag, mechanisms are not by side-effect, so they'll
4815 # only be used when explicitly requested.
4816 if test "x$enable_dependency_tracking" = xyes; then
4817 continue
4818 else
4819 break
4820 fi
4821 ;;
4822 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4823 # This compiler won't grok '-c -o', but also, the minuso test has
4824 # not run yet. These depmodes are late enough in the game, and
4825 # so weak that their functioning should not be impacted.
4826 am__obj=conftest.${OBJEXT-o}
4827 am__minus_obj=
4828 ;;
4829 none) break ;;
4830 esac
4831 if depmode=$depmode \
4832 source=sub/conftest.c object=$am__obj \
4833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4835 >/dev/null 2>conftest.err &&
4836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4840 # icc doesn't choke on unknown options, it will just issue warnings
4841 # or remarks (even with -Werror). So we grep stderr for any message
4842 # that says an option was ignored or not supported.
4843 # When given -MP, icc 7.0 and 7.1 complain thusly:
4844 # icc: Command line warning: ignoring option '-M'; no argument required
4845 # The diagnosis changed in icc 8.0:
4846 # icc: Command line remark: option '-MP' not supported
4847 if (grep 'ignoring option' conftest.err ||
4848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4849 am_cv_CXX_dependencies_compiler_type=$depmode
4850 break
4851 fi
4852 fi
4853 done
4854
4855 cd ..
4856 rm -rf conftest.dir
4857 else
4858 am_cv_CXX_dependencies_compiler_type=none
4859 fi
4860
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4863 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4864 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4865
4866 if
4867 test "x$enable_dependency_tracking" != xno \
4868 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4869 am__fastdepCXX_TRUE=
4870 am__fastdepCXX_FALSE='#'
4871 else
4872 am__fastdepCXX_TRUE='#'
4873 am__fastdepCXX_FALSE=
4874 fi
4875
4876
4877 CFLAGS=$save_CFLAGS
4878
4879
4880
4881
4882
4883 # Add CET specific flags if CET is enabled
4884
4885 # Check whether --enable-cet was given.
4886 if test "${enable_cet+set}" = set; then :
4887 enableval=$enable_cet;
4888 case "$enableval" in
4889 yes|no|auto) ;;
4890 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4891 esac
4892
4893 else
4894 enable_cet=auto
4895 fi
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4899 $as_echo_n "checking for CET support... " >&6; }
4900
4901 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4902 case "$host" in
4903 i[34567]86-*-linux* | x86_64-*-linux*)
4904 case "$enable_cet" in
4905 auto)
4906 # Check if target supports multi-byte NOPs
4907 # and if compiler and assembler support CET insn.
4908 cet_save_CFLAGS="$CFLAGS"
4909 CFLAGS="$CFLAGS -fcf-protection"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 int
4914 main ()
4915 {
4916
4917 #if !defined(__SSE2__)
4918 #error target does not support multi-byte NOPs
4919 #else
4920 asm ("setssbsy");
4921 #endif
4922
4923 ;
4924 return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 enable_cet=yes
4929 else
4930 enable_cet=no
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 CFLAGS="$cet_save_CFLAGS"
4934 ;;
4935 yes)
4936 # Check if assembler supports CET.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943 asm ("setssbsy");
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949
4950 else
4951 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ;;
4955 esac
4956 ;;
4957 *)
4958 enable_cet=no
4959 ;;
4960 esac
4961 if test x$enable_cet = xyes; then
4962 CET_FLAGS="-fcf-protection -mshstk"
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4964 $as_echo "yes" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971
4972 # By default we simply use the C compiler to build assembly code.
4973
4974 test "${CCAS+set}" = set || CCAS=$CC
4975 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4976
4977
4978
4979 depcc="$CCAS" am_compiler_list=
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4982 $as_echo_n "checking dependency style of $depcc... " >&6; }
4983 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4987 # We make a subdir and do the tests there. Otherwise we can end up
4988 # making bogus files that we don't know about and never remove. For
4989 # instance it was reported that on HP-UX the gcc test will end up
4990 # making a dummy file named 'D' -- because '-MD' means "put the output
4991 # in D".
4992 rm -rf conftest.dir
4993 mkdir conftest.dir
4994 # Copy depcomp to subdir because otherwise we won't find it if we're
4995 # using a relative directory.
4996 cp "$am_depcomp" conftest.dir
4997 cd conftest.dir
4998 # We will build objects and dependencies in a subdirectory because
4999 # it helps to detect inapplicable dependency modes. For instance
5000 # both Tru64's cc and ICC support -MD to output dependencies as a
5001 # side effect of compilation, but ICC will put the dependencies in
5002 # the current directory while Tru64 will put them in the object
5003 # directory.
5004 mkdir sub
5005
5006 am_cv_CCAS_dependencies_compiler_type=none
5007 if test "$am_compiler_list" = ""; then
5008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5009 fi
5010 am__universal=false
5011
5012
5013 for depmode in $am_compiler_list; do
5014 # Setup a source with many dependencies, because some compilers
5015 # like to wrap large dependency lists on column 80 (with \), and
5016 # we should not choose a depcomp mode which is confused by this.
5017 #
5018 # We need to recreate these files for each test, as the compiler may
5019 # overwrite some of them when testing with obscure command lines.
5020 # This happens at least with the AIX C compiler.
5021 : > sub/conftest.c
5022 for i in 1 2 3 4 5 6; do
5023 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5024 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5025 # Solaris 10 /bin/sh.
5026 echo '/* dummy */' > sub/conftst$i.h
5027 done
5028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5029
5030 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5031 # mode. It turns out that the SunPro C++ compiler does not properly
5032 # handle '-M -o', and we need to detect this. Also, some Intel
5033 # versions had trouble with output in subdirs.
5034 am__obj=sub/conftest.${OBJEXT-o}
5035 am__minus_obj="-o $am__obj"
5036 case $depmode in
5037 gcc)
5038 # This depmode causes a compiler race in universal mode.
5039 test "$am__universal" = false || continue
5040 ;;
5041 nosideeffect)
5042 # After this tag, mechanisms are not by side-effect, so they'll
5043 # only be used when explicitly requested.
5044 if test "x$enable_dependency_tracking" = xyes; then
5045 continue
5046 else
5047 break
5048 fi
5049 ;;
5050 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5051 # This compiler won't grok '-c -o', but also, the minuso test has
5052 # not run yet. These depmodes are late enough in the game, and
5053 # so weak that their functioning should not be impacted.
5054 am__obj=conftest.${OBJEXT-o}
5055 am__minus_obj=
5056 ;;
5057 none) break ;;
5058 esac
5059 if depmode=$depmode \
5060 source=sub/conftest.c object=$am__obj \
5061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5062 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5063 >/dev/null 2>conftest.err &&
5064 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5066 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5068 # icc doesn't choke on unknown options, it will just issue warnings
5069 # or remarks (even with -Werror). So we grep stderr for any message
5070 # that says an option was ignored or not supported.
5071 # When given -MP, icc 7.0 and 7.1 complain thusly:
5072 # icc: Command line warning: ignoring option '-M'; no argument required
5073 # The diagnosis changed in icc 8.0:
5074 # icc: Command line remark: option '-MP' not supported
5075 if (grep 'ignoring option' conftest.err ||
5076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5077 am_cv_CCAS_dependencies_compiler_type=$depmode
5078 break
5079 fi
5080 fi
5081 done
5082
5083 cd ..
5084 rm -rf conftest.dir
5085 else
5086 am_cv_CCAS_dependencies_compiler_type=none
5087 fi
5088
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5091 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5092 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5093
5094 if
5095 test "x$enable_dependency_tracking" != xno \
5096 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5097 am__fastdepCCAS_TRUE=
5098 am__fastdepCCAS_FALSE='#'
5099 else
5100 am__fastdepCCAS_TRUE='#'
5101 am__fastdepCCAS_FALSE=
5102 fi
5103
5104
5105
5106 case `pwd` in
5107 *\ * | *\ *)
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5110 esac
5111
5112
5113
5114 macro_version='2.2.7a'
5115 macro_revision='1.3134'
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 ltmain="$ac_aux_dir/ltmain.sh"
5130
5131 # Backslashify metacharacters that are still active within
5132 # double-quoted strings.
5133 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5134
5135 # Same as above, but do not quote variable references.
5136 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5137
5138 # Sed substitution to delay expansion of an escaped shell variable in a
5139 # double_quote_subst'ed string.
5140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5141
5142 # Sed substitution to delay expansion of an escaped single quote.
5143 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5144
5145 # Sed substitution to avoid accidental globbing in evaled expressions
5146 no_glob_subst='s/\*/\\\*/g'
5147
5148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153 $as_echo_n "checking how to print strings... " >&6; }
5154 # Test print first, because it will be a builtin if present.
5155 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157 ECHO='print -r --'
5158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159 ECHO='printf %s\n'
5160 else
5161 # Use this function as a fallback that always works.
5162 func_fallback_echo ()
5163 {
5164 eval 'cat <<_LTECHO_EOF
5165 $1
5166 _LTECHO_EOF'
5167 }
5168 ECHO='func_fallback_echo'
5169 fi
5170
5171 # func_echo_all arg...
5172 # Invoke $ECHO with all args, space-separated.
5173 func_echo_all ()
5174 {
5175 $ECHO ""
5176 }
5177
5178 case "$ECHO" in
5179 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180 $as_echo "printf" >&6; } ;;
5181 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182 $as_echo "print -r" >&6; } ;;
5183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184 $as_echo "cat" >&6; } ;;
5185 esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5202 if ${ac_cv_path_SED+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5206 for ac_i in 1 2 3 4 5 6 7; do
5207 ac_script="$ac_script$as_nl$ac_script"
5208 done
5209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5210 { ac_script=; unset ac_script;}
5211 if test -z "$SED"; then
5212 ac_path_SED_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in sed gsed; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_SED" || continue
5223 # Check for GNU ac_path_SED and select it if it is found.
5224 # Check for GNU $ac_path_SED
5225 case `"$ac_path_SED" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5228 *)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo '' >> "conftest.nl"
5237 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_SED_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_SED="$ac_path_SED"
5243 ac_path_SED_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5250
5251 $ac_path_SED_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_SED"; then
5257 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5258 fi
5259 else
5260 ac_cv_path_SED=$SED
5261 fi
5262
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5265 $as_echo "$ac_cv_path_SED" >&6; }
5266 SED="$ac_cv_path_SED"
5267 rm -f conftest.sed
5268
5269 test -z "$SED" && SED=sed
5270 Xsed="$SED -e 1s/^X//"
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5284 if ${ac_cv_path_GREP+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -z "$GREP"; then
5288 ac_path_GREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in grep ggrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5298 as_fn_executable_p "$ac_path_GREP" || continue
5299 # Check for GNU ac_path_GREP and select it if it is found.
5300 # Check for GNU $ac_path_GREP
5301 case `"$ac_path_GREP" --version 2>&1` in
5302 *GNU*)
5303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5304 *)
5305 ac_count=0
5306 $as_echo_n 0123456789 >"conftest.in"
5307 while :
5308 do
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo 'GREP' >> "conftest.nl"
5313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_GREP="$ac_path_GREP"
5319 ac_path_GREP_max=$ac_count
5320 fi
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5323 done
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5326
5327 $ac_path_GREP_found && break 3
5328 done
5329 done
5330 done
5331 IFS=$as_save_IFS
5332 if test -z "$ac_cv_path_GREP"; then
5333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5334 fi
5335 else
5336 ac_cv_path_GREP=$GREP
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5341 $as_echo "$ac_cv_path_GREP" >&6; }
5342 GREP="$ac_cv_path_GREP"
5343
5344
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5346 $as_echo_n "checking for egrep... " >&6; }
5347 if ${ac_cv_path_EGREP+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5351 then ac_cv_path_EGREP="$GREP -E"
5352 else
5353 if test -z "$EGREP"; then
5354 ac_path_EGREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in egrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5364 as_fn_executable_p "$ac_path_EGREP" || continue
5365 # Check for GNU ac_path_EGREP and select it if it is found.
5366 # Check for GNU $ac_path_EGREP
5367 case `"$ac_path_EGREP" --version 2>&1` in
5368 *GNU*)
5369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5370 *)
5371 ac_count=0
5372 $as_echo_n 0123456789 >"conftest.in"
5373 while :
5374 do
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'EGREP' >> "conftest.nl"
5379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_EGREP="$ac_path_EGREP"
5385 ac_path_EGREP_max=$ac_count
5386 fi
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5389 done
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 esac
5392
5393 $ac_path_EGREP_found && break 3
5394 done
5395 done
5396 done
5397 IFS=$as_save_IFS
5398 if test -z "$ac_cv_path_EGREP"; then
5399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400 fi
5401 else
5402 ac_cv_path_EGREP=$EGREP
5403 fi
5404
5405 fi
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5408 $as_echo "$ac_cv_path_EGREP" >&6; }
5409 EGREP="$ac_cv_path_EGREP"
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5413 $as_echo_n "checking for fgrep... " >&6; }
5414 if ${ac_cv_path_FGREP+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5418 then ac_cv_path_FGREP="$GREP -F"
5419 else
5420 if test -z "$FGREP"; then
5421 ac_path_FGREP_found=false
5422 # Loop through the user's path and test for each of PROGNAME-LIST
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5425 do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_prog in fgrep; do
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5431 as_fn_executable_p "$ac_path_FGREP" || continue
5432 # Check for GNU ac_path_FGREP and select it if it is found.
5433 # Check for GNU $ac_path_FGREP
5434 case `"$ac_path_FGREP" --version 2>&1` in
5435 *GNU*)
5436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5437 *)
5438 ac_count=0
5439 $as_echo_n 0123456789 >"conftest.in"
5440 while :
5441 do
5442 cat "conftest.in" "conftest.in" >"conftest.tmp"
5443 mv "conftest.tmp" "conftest.in"
5444 cp "conftest.in" "conftest.nl"
5445 $as_echo 'FGREP' >> "conftest.nl"
5446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5448 as_fn_arith $ac_count + 1 && ac_count=$as_val
5449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5450 # Best one so far, save it but keep looking for a better one
5451 ac_cv_path_FGREP="$ac_path_FGREP"
5452 ac_path_FGREP_max=$ac_count
5453 fi
5454 # 10*(2^10) chars as input seems more than enough
5455 test $ac_count -gt 10 && break
5456 done
5457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5458 esac
5459
5460 $ac_path_FGREP_found && break 3
5461 done
5462 done
5463 done
5464 IFS=$as_save_IFS
5465 if test -z "$ac_cv_path_FGREP"; then
5466 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5467 fi
5468 else
5469 ac_cv_path_FGREP=$FGREP
5470 fi
5471
5472 fi
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5475 $as_echo "$ac_cv_path_FGREP" >&6; }
5476 FGREP="$ac_cv_path_FGREP"
5477
5478
5479 test -z "$GREP" && GREP=grep
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499 # Check whether --with-gnu-ld was given.
5500 if test "${with_gnu_ld+set}" = set; then :
5501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5502 else
5503 with_gnu_ld=no
5504 fi
5505
5506 ac_prog=ld
5507 if test "$GCC" = yes; then
5508 # Check if gcc -print-prog-name=ld gives a path.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5510 $as_echo_n "checking for ld used by $CC... " >&6; }
5511 case $host in
5512 *-*-mingw*)
5513 # gcc leaves a trailing carriage return which upsets mingw
5514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5515 *)
5516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5517 esac
5518 case $ac_prog in
5519 # Accept absolute paths.
5520 [\\/]* | ?:[\\/]*)
5521 re_direlt='/[^/][^/]*/\.\./'
5522 # Canonicalize the pathname of ld
5523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5526 done
5527 test -z "$LD" && LD="$ac_prog"
5528 ;;
5529 "")
5530 # If it fails, then pretend we aren't using GCC.
5531 ac_prog=ld
5532 ;;
5533 *)
5534 # If it is relative, then search for the first ld in PATH.
5535 with_gnu_ld=unknown
5536 ;;
5537 esac
5538 elif test "$with_gnu_ld" = yes; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5540 $as_echo_n "checking for GNU ld... " >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5543 $as_echo_n "checking for non-GNU ld... " >&6; }
5544 fi
5545 if ${lt_cv_path_LD+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -z "$LD"; then
5549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH; do
5551 IFS="$lt_save_ifs"
5552 test -z "$ac_dir" && ac_dir=.
5553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5554 lt_cv_path_LD="$ac_dir/$ac_prog"
5555 # Check to see if the program is GNU ld. I'd rather use --version,
5556 # but apparently some variants of GNU ld only accept -v.
5557 # Break only if it was the GNU/non-GNU ld that we prefer.
5558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 test "$with_gnu_ld" != no && break
5561 ;;
5562 *)
5563 test "$with_gnu_ld" != yes && break
5564 ;;
5565 esac
5566 fi
5567 done
5568 IFS="$lt_save_ifs"
5569 else
5570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5571 fi
5572 fi
5573
5574 LD="$lt_cv_path_LD"
5575 if test -n "$LD"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5577 $as_echo "$LD" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5584 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5585 if ${lt_cv_prog_gnu_ld+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5589 case `$LD -v 2>&1 </dev/null` in
5590 *GNU* | *'with BFD'*)
5591 lt_cv_prog_gnu_ld=yes
5592 ;;
5593 *)
5594 lt_cv_prog_gnu_ld=no
5595 ;;
5596 esac
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5599 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5600 with_gnu_ld=$lt_cv_prog_gnu_ld
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5611 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5612 if ${lt_cv_path_NM+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$NM"; then
5616 # Let the user override the test.
5617 lt_cv_path_NM="$NM"
5618 else
5619 lt_nm_to_check="${ac_tool_prefix}nm"
5620 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5621 lt_nm_to_check="$lt_nm_to_check nm"
5622 fi
5623 for lt_tmp_nm in $lt_nm_to_check; do
5624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5625 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5626 IFS="$lt_save_ifs"
5627 test -z "$ac_dir" && ac_dir=.
5628 tmp_nm="$ac_dir/$lt_tmp_nm"
5629 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5630 # Check to see if the nm accepts a BSD-compat flag.
5631 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5632 # nm: unknown option "B" ignored
5633 # Tru64's nm complains that /dev/null is an invalid object file
5634 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5635 */dev/null* | *'Invalid file or object type'*)
5636 lt_cv_path_NM="$tmp_nm -B"
5637 break
5638 ;;
5639 *)
5640 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5641 */dev/null*)
5642 lt_cv_path_NM="$tmp_nm -p"
5643 break
5644 ;;
5645 *)
5646 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5647 continue # so that we can try to find one that supports BSD flags
5648 ;;
5649 esac
5650 ;;
5651 esac
5652 fi
5653 done
5654 IFS="$lt_save_ifs"
5655 done
5656 : ${lt_cv_path_NM=no}
5657 fi
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5660 $as_echo "$lt_cv_path_NM" >&6; }
5661 if test "$lt_cv_path_NM" != "no"; then
5662 NM="$lt_cv_path_NM"
5663 else
5664 # Didn't find any BSD compatible name lister, look for dumpbin.
5665 if test -n "$DUMPBIN"; then :
5666 # Let the user override the test.
5667 else
5668 if test -n "$ac_tool_prefix"; then
5669 for ac_prog in dumpbin "link -dump"
5670 do
5671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_DUMPBIN+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$DUMPBIN"; then
5679 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 DUMPBIN=$ac_cv_prog_DUMPBIN
5699 if test -n "$DUMPBIN"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5701 $as_echo "$DUMPBIN" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707
5708 test -n "$DUMPBIN" && break
5709 done
5710 fi
5711 if test -z "$DUMPBIN"; then
5712 ac_ct_DUMPBIN=$DUMPBIN
5713 for ac_prog in dumpbin "link -dump"
5714 do
5715 # Extract the first word of "$ac_prog", so it can be a program name with args.
5716 set dummy $ac_prog; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_DUMPBIN"; then
5723 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5743 if test -n "$ac_ct_DUMPBIN"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5745 $as_echo "$ac_ct_DUMPBIN" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 test -n "$ac_ct_DUMPBIN" && break
5753 done
5754
5755 if test "x$ac_ct_DUMPBIN" = x; then
5756 DUMPBIN=":"
5757 else
5758 case $cross_compiling:$ac_tool_warned in
5759 yes:)
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5762 ac_tool_warned=yes ;;
5763 esac
5764 DUMPBIN=$ac_ct_DUMPBIN
5765 fi
5766 fi
5767
5768 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5769 *COFF*)
5770 DUMPBIN="$DUMPBIN -symbols"
5771 ;;
5772 *)
5773 DUMPBIN=:
5774 ;;
5775 esac
5776 fi
5777
5778 if test "$DUMPBIN" != ":"; then
5779 NM="$DUMPBIN"
5780 fi
5781 fi
5782 test -z "$NM" && NM=nm
5783
5784
5785
5786
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5790 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5791 if ${lt_cv_nm_interface+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_nm_interface="BSD nm"
5795 echo "int some_variable = 0;" > conftest.$ac_ext
5796 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5797 (eval "$ac_compile" 2>conftest.err)
5798 cat conftest.err >&5
5799 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5800 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5801 cat conftest.err >&5
5802 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5803 cat conftest.out >&5
5804 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5805 lt_cv_nm_interface="MS dumpbin"
5806 fi
5807 rm -f conftest*
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5810 $as_echo "$lt_cv_nm_interface" >&6; }
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5813 $as_echo_n "checking whether ln -s works... " >&6; }
5814 LN_S=$as_ln_s
5815 if test "$LN_S" = "ln -s"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5817 $as_echo "yes" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5820 $as_echo "no, using $LN_S" >&6; }
5821 fi
5822
5823 # find the maximum length of command line arguments
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5825 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5826 if ${lt_cv_sys_max_cmd_len+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 i=0
5830 teststring="ABCD"
5831
5832 case $build_os in
5833 msdosdjgpp*)
5834 # On DJGPP, this test can blow up pretty badly due to problems in libc
5835 # (any single argument exceeding 2000 bytes causes a buffer overrun
5836 # during glob expansion). Even if it were fixed, the result of this
5837 # check would be larger than it should be.
5838 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5839 ;;
5840
5841 gnu*)
5842 # Under GNU Hurd, this test is not required because there is
5843 # no limit to the length of command line arguments.
5844 # Libtool will interpret -1 as no limit whatsoever
5845 lt_cv_sys_max_cmd_len=-1;
5846 ;;
5847
5848 cygwin* | mingw* | cegcc*)
5849 # On Win9x/ME, this test blows up -- it succeeds, but takes
5850 # about 5 minutes as the teststring grows exponentially.
5851 # Worse, since 9x/ME are not pre-emptively multitasking,
5852 # you end up with a "frozen" computer, even though with patience
5853 # the test eventually succeeds (with a max line length of 256k).
5854 # Instead, let's just punt: use the minimum linelength reported by
5855 # all of the supported platforms: 8192 (on NT/2K/XP).
5856 lt_cv_sys_max_cmd_len=8192;
5857 ;;
5858
5859 mint*)
5860 # On MiNT this can take a long time and run out of memory.
5861 lt_cv_sys_max_cmd_len=8192;
5862 ;;
5863
5864 amigaos*)
5865 # On AmigaOS with pdksh, this test takes hours, literally.
5866 # So we just punt and use a minimum line length of 8192.
5867 lt_cv_sys_max_cmd_len=8192;
5868 ;;
5869
5870 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5871 # This has been around since 386BSD, at least. Likely further.
5872 if test -x /sbin/sysctl; then
5873 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5874 elif test -x /usr/sbin/sysctl; then
5875 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5876 else
5877 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5878 fi
5879 # And add a safety zone
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5882 ;;
5883
5884 interix*)
5885 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5886 lt_cv_sys_max_cmd_len=196608
5887 ;;
5888
5889 osf*)
5890 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5891 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5892 # nice to cause kernel panics so lets avoid the loop below.
5893 # First set a reasonable default.
5894 lt_cv_sys_max_cmd_len=16384
5895 #
5896 if test -x /sbin/sysconfig; then
5897 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5898 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5899 esac
5900 fi
5901 ;;
5902 sco3.2v5*)
5903 lt_cv_sys_max_cmd_len=102400
5904 ;;
5905 sysv5* | sco5v6* | sysv4.2uw2*)
5906 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5907 if test -n "$kargmax"; then
5908 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5909 else
5910 lt_cv_sys_max_cmd_len=32768
5911 fi
5912 ;;
5913 *)
5914 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5915 if test -n "$lt_cv_sys_max_cmd_len"; then
5916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5918 else
5919 # Make teststring a little bigger before we do anything with it.
5920 # a 1K string should be a reasonable start.
5921 for i in 1 2 3 4 5 6 7 8 ; do
5922 teststring=$teststring$teststring
5923 done
5924 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5925 # If test is not a shell built-in, we'll probably end up computing a
5926 # maximum length that is only half of the actual maximum length, but
5927 # we can't tell.
5928 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5929 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5930 test $i != 17 # 1/2 MB should be enough
5931 do
5932 i=`expr $i + 1`
5933 teststring=$teststring$teststring
5934 done
5935 # Only check the string length outside the loop.
5936 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5937 teststring=
5938 # Add a significant safety factor because C++ compilers can tack on
5939 # massive amounts of additional arguments before passing them to the
5940 # linker. It appears as though 1/2 is a usable value.
5941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5942 fi
5943 ;;
5944 esac
5945
5946 fi
5947
5948 if test -n $lt_cv_sys_max_cmd_len ; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5950 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5953 $as_echo "none" >&6; }
5954 fi
5955 max_cmd_len=$lt_cv_sys_max_cmd_len
5956
5957
5958
5959
5960
5961
5962 : ${CP="cp -f"}
5963 : ${MV="mv -f"}
5964 : ${RM="rm -f"}
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5967 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5968 # Try some XSI features
5969 xsi_shell=no
5970 ( _lt_dummy="a/b/c"
5971 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5972 = c,a/b,, \
5973 && eval 'test $(( 1 + 1 )) -eq 2 \
5974 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5975 && xsi_shell=yes
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5977 $as_echo "$xsi_shell" >&6; }
5978
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5981 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5982 lt_shell_append=no
5983 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5984 >/dev/null 2>&1 \
5985 && lt_shell_append=yes
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5987 $as_echo "$lt_shell_append" >&6; }
5988
5989
5990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5991 lt_unset=unset
5992 else
5993 lt_unset=false
5994 fi
5995
5996
5997
5998
5999
6000 # test EBCDIC or ASCII
6001 case `echo X|tr X '\101'` in
6002 A) # ASCII based system
6003 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6004 lt_SP2NL='tr \040 \012'
6005 lt_NL2SP='tr \015\012 \040\040'
6006 ;;
6007 *) # EBCDIC based system
6008 lt_SP2NL='tr \100 \n'
6009 lt_NL2SP='tr \r\n \100\100'
6010 ;;
6011 esac
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6022 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6023 if ${lt_cv_ld_reload_flag+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 lt_cv_ld_reload_flag='-r'
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6029 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6030 reload_flag=$lt_cv_ld_reload_flag
6031 case $reload_flag in
6032 "" | " "*) ;;
6033 *) reload_flag=" $reload_flag" ;;
6034 esac
6035 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6036 case $host_os in
6037 darwin*)
6038 if test "$GCC" = yes; then
6039 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6040 else
6041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6042 fi
6043 ;;
6044 esac
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if ${ac_cv_prog_OBJDUMP+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$OBJDUMP"; then
6063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 OBJDUMP=$ac_cv_prog_OBJDUMP
6083 if test -n "$OBJDUMP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6085 $as_echo "$OBJDUMP" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091
6092 fi
6093 if test -z "$ac_cv_prog_OBJDUMP"; then
6094 ac_ct_OBJDUMP=$OBJDUMP
6095 # Extract the first word of "objdump", so it can be a program name with args.
6096 set dummy objdump; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$ac_ct_OBJDUMP"; then
6103 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6123 if test -n "$ac_ct_OBJDUMP"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6125 $as_echo "$ac_ct_OBJDUMP" >&6; }
6126 else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130
6131 if test "x$ac_ct_OBJDUMP" = x; then
6132 OBJDUMP="false"
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 OBJDUMP=$ac_ct_OBJDUMP
6141 fi
6142 else
6143 OBJDUMP="$ac_cv_prog_OBJDUMP"
6144 fi
6145
6146 test -z "$OBJDUMP" && OBJDUMP=objdump
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6157 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6158 if ${lt_cv_deplibs_check_method+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 lt_cv_file_magic_cmd='$MAGIC_CMD'
6162 lt_cv_file_magic_test_file=
6163 lt_cv_deplibs_check_method='unknown'
6164 # Need to set the preceding variable on all platforms that support
6165 # interlibrary dependencies.
6166 # 'none' -- dependencies not supported.
6167 # `unknown' -- same as none, but documents that we really don't know.
6168 # 'pass_all' -- all dependencies passed with no checks.
6169 # 'test_compile' -- check by making test program.
6170 # 'file_magic [[regex]]' -- check by looking for files in library path
6171 # which responds to the $file_magic_cmd with a given extended regex.
6172 # If you have `file' or equivalent on your system and you're not sure
6173 # whether `pass_all' will *always* work, you probably want this one.
6174
6175 case $host_os in
6176 aix[4-9]*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179
6180 beos*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
6184 bsdi[45]*)
6185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6186 lt_cv_file_magic_cmd='/usr/bin/file -L'
6187 lt_cv_file_magic_test_file=/shlib/libc.so
6188 ;;
6189
6190 cygwin*)
6191 # func_win32_libid is a shell function defined in ltmain.sh
6192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6193 lt_cv_file_magic_cmd='func_win32_libid'
6194 ;;
6195
6196 mingw* | pw32*)
6197 # Base MSYS/MinGW do not provide the 'file' command needed by
6198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6199 # unless we find 'file', for example because we are cross-compiling.
6200 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6201 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6203 lt_cv_file_magic_cmd='func_win32_libid'
6204 else
6205 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6206 lt_cv_file_magic_cmd='$OBJDUMP -f'
6207 fi
6208 ;;
6209
6210 cegcc*)
6211 # use the weaker test based on 'objdump'. See mingw*.
6212 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6213 lt_cv_file_magic_cmd='$OBJDUMP -f'
6214 ;;
6215
6216 darwin* | rhapsody*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220 freebsd* | dragonfly*)
6221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6222 case $host_cpu in
6223 i*86 )
6224 # Not sure whether the presence of OpenBSD here was a mistake.
6225 # Let's accept both of them until this is cleared up.
6226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6227 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6229 ;;
6230 esac
6231 else
6232 lt_cv_deplibs_check_method=pass_all
6233 fi
6234 ;;
6235
6236 gnu*)
6237 lt_cv_deplibs_check_method=pass_all
6238 ;;
6239
6240 haiku*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244 hpux10.20* | hpux11*)
6245 lt_cv_file_magic_cmd=/usr/bin/file
6246 case $host_cpu in
6247 ia64*)
6248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6249 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6250 ;;
6251 hppa*64*)
6252 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]'
6253 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6254 ;;
6255 *)
6256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6257 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6258 ;;
6259 esac
6260 ;;
6261
6262 interix[3-9]*)
6263 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6265 ;;
6266
6267 irix5* | irix6* | nonstopux*)
6268 case $LD in
6269 *-32|*"-32 ") libmagic=32-bit;;
6270 *-n32|*"-n32 ") libmagic=N32;;
6271 *-64|*"-64 ") libmagic=64-bit;;
6272 *) libmagic=never-match;;
6273 esac
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277 # This must be Linux ELF.
6278 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282 netbsd*)
6283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 else
6286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6287 fi
6288 ;;
6289
6290 newos6*)
6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6292 lt_cv_file_magic_cmd=/usr/bin/file
6293 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6294 ;;
6295
6296 *nto* | *qnx*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300 openbsd*)
6301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6303 else
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6305 fi
6306 ;;
6307
6308 osf3* | osf4* | osf5*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312 rdos*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316 solaris*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323
6324 sysv4 | sysv4.3*)
6325 case $host_vendor in
6326 motorola)
6327 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]'
6328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6329 ;;
6330 ncr)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333 sequent)
6334 lt_cv_file_magic_cmd='/bin/file'
6335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6336 ;;
6337 sni)
6338 lt_cv_file_magic_cmd='/bin/file'
6339 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6340 lt_cv_file_magic_test_file=/lib/libc.so
6341 ;;
6342 siemens)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345 pc)
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
6348 esac
6349 ;;
6350
6351 tpf*)
6352 lt_cv_deplibs_check_method=pass_all
6353 ;;
6354 esac
6355
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6358 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6359 file_magic_cmd=$lt_cv_file_magic_cmd
6360 deplibs_check_method=$lt_cv_deplibs_check_method
6361 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}ar; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_AR+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$AR"; then
6383 ac_cv_prog_AR="$AR" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_AR="${ac_tool_prefix}ar"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 AR=$ac_cv_prog_AR
6403 if test -n "$AR"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6405 $as_echo "$AR" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_AR"; then
6414 ac_ct_AR=$AR
6415 # Extract the first word of "ar", so it can be a program name with args.
6416 set dummy ar; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$ac_ct_AR"; then
6423 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_ac_ct_AR="ar"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6443 if test -n "$ac_ct_AR"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6445 $as_echo "$ac_ct_AR" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451 if test "x$ac_ct_AR" = x; then
6452 AR="false"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460 AR=$ac_ct_AR
6461 fi
6462 else
6463 AR="$ac_cv_prog_AR"
6464 fi
6465
6466 test -z "$AR" && AR=ar
6467 test -z "$AR_FLAGS" && AR_FLAGS=cru
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}strip; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_STRIP+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test -n "$STRIP"; then
6488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 STRIP=$ac_cv_prog_STRIP
6508 if test -n "$STRIP"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6510 $as_echo "$STRIP" >&6; }
6511 else
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517 fi
6518 if test -z "$ac_cv_prog_STRIP"; then
6519 ac_ct_STRIP=$STRIP
6520 # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 if test -n "$ac_ct_STRIP"; then
6528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_STRIP="strip"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6548 if test -n "$ac_ct_STRIP"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6550 $as_echo "$ac_ct_STRIP" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556 if test "x$ac_ct_STRIP" = x; then
6557 STRIP=":"
6558 else
6559 case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565 STRIP=$ac_ct_STRIP
6566 fi
6567 else
6568 STRIP="$ac_cv_prog_STRIP"
6569 fi
6570
6571 test -z "$STRIP" && STRIP=:
6572
6573
6574
6575
6576
6577
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_RANLIB+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$RANLIB"; then
6587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 RANLIB=$ac_cv_prog_RANLIB
6607 if test -n "$RANLIB"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6609 $as_echo "$RANLIB" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_RANLIB"; then
6618 ac_ct_RANLIB=$RANLIB
6619 # Extract the first word of "ranlib", so it can be a program name with args.
6620 set dummy ranlib; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$ac_ct_RANLIB"; then
6627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_ac_ct_RANLIB="ranlib"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6647 if test -n "$ac_ct_RANLIB"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6649 $as_echo "$ac_ct_RANLIB" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655 if test "x$ac_ct_RANLIB" = x; then
6656 RANLIB=":"
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664 RANLIB=$ac_ct_RANLIB
6665 fi
6666 else
6667 RANLIB="$ac_cv_prog_RANLIB"
6668 fi
6669
6670 test -z "$RANLIB" && RANLIB=:
6671
6672
6673
6674
6675
6676
6677 # Determine commands to create old-style static archives.
6678 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6679 old_postinstall_cmds='chmod 644 $oldlib'
6680 old_postuninstall_cmds=
6681
6682 if test -n "$RANLIB"; then
6683 case $host_os in
6684 openbsd*)
6685 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6686 ;;
6687 *)
6688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6689 ;;
6690 esac
6691 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6692 fi
6693
6694 case $host_os in
6695 darwin*)
6696 lock_old_archive_extraction=yes ;;
6697 *)
6698 lock_old_archive_extraction=no ;;
6699 esac
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 # If no C compiler was specified, use CC.
6740 LTCC=${LTCC-"$CC"}
6741
6742 # If no C compiler flags were specified, use CFLAGS.
6743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6744
6745 # Allow CC to be a program name with arguments.
6746 compiler=$CC
6747
6748
6749 # Check for command to grab the raw symbol name followed by C symbol from nm.
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6751 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6752 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755
6756 # These are sane defaults that work on at least a few old systems.
6757 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6758
6759 # Character class describing NM global symbol codes.
6760 symcode='[BCDEGRST]'
6761
6762 # Regexp to match symbols that can be accessed directly from C.
6763 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6764
6765 # Define system-specific variables.
6766 case $host_os in
6767 aix*)
6768 symcode='[BCDT]'
6769 ;;
6770 cygwin* | mingw* | pw32* | cegcc*)
6771 symcode='[ABCDGISTW]'
6772 ;;
6773 hpux*)
6774 if test "$host_cpu" = ia64; then
6775 symcode='[ABCDEGRST]'
6776 fi
6777 ;;
6778 irix* | nonstopux*)
6779 symcode='[BCDEGRST]'
6780 ;;
6781 osf*)
6782 symcode='[BCDEGQRST]'
6783 ;;
6784 solaris*)
6785 symcode='[BDRT]'
6786 ;;
6787 sco3.2v5*)
6788 symcode='[DT]'
6789 ;;
6790 sysv4.2uw2*)
6791 symcode='[DT]'
6792 ;;
6793 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6794 symcode='[ABDT]'
6795 ;;
6796 sysv4)
6797 symcode='[DFNSTU]'
6798 ;;
6799 esac
6800
6801 # If we're using GNU nm, then use its standard symbol codes.
6802 case `$NM -V 2>&1` in
6803 *GNU* | *'with BFD'*)
6804 symcode='[ABCDGIRSTW]' ;;
6805 esac
6806
6807 # Transform an extracted symbol line into a proper C declaration.
6808 # Some systems (esp. on ia64) link data and code symbols differently,
6809 # so use this general approach.
6810 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6811
6812 # Transform an extracted symbol line into symbol name and symbol address
6813 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6815
6816 # Handle CRLF in mingw tool chain
6817 opt_cr=
6818 case $build_os in
6819 mingw*)
6820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6821 ;;
6822 esac
6823
6824 # Try without a prefix underscore, then with it.
6825 for ac_symprfx in "" "_"; do
6826
6827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6828 symxfrm="\\1 $ac_symprfx\\2 \\2"
6829
6830 # Write the raw and C identifiers.
6831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6832 # Fake it for dumpbin and say T for any non-static function
6833 # and D for any global variable.
6834 # Also find C++ and __fastcall symbols from MSVC++,
6835 # which start with @ or ?.
6836 lt_cv_sys_global_symbol_pipe="$AWK '"\
6837 " {last_section=section; section=\$ 3};"\
6838 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6839 " \$ 0!~/External *\|/{next};"\
6840 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6841 " {if(hide[section]) next};"\
6842 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6843 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6844 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6845 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6846 " ' prfx=^$ac_symprfx"
6847 else
6848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6849 fi
6850
6851 # Check to see that the pipe works correctly.
6852 pipe_works=no
6853
6854 rm -f conftest*
6855 cat > conftest.$ac_ext <<_LT_EOF
6856 #ifdef __cplusplus
6857 extern "C" {
6858 #endif
6859 char nm_test_var;
6860 void nm_test_func(void);
6861 void nm_test_func(void){}
6862 #ifdef __cplusplus
6863 }
6864 #endif
6865 int main(){nm_test_var='a';nm_test_func();return(0);}
6866 _LT_EOF
6867
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 # Now try to grab the symbols.
6874 nlist=conftest.nm
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6876 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; } && test -s "$nlist"; then
6880 # Try sorting and uniquifying the output.
6881 if sort "$nlist" | uniq > "$nlist"T; then
6882 mv -f "$nlist"T "$nlist"
6883 else
6884 rm -f "$nlist"T
6885 fi
6886
6887 # Make sure that we snagged all the symbols we need.
6888 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6889 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6890 cat <<_LT_EOF > conftest.$ac_ext
6891 #ifdef __cplusplus
6892 extern "C" {
6893 #endif
6894
6895 _LT_EOF
6896 # Now generate the symbol file.
6897 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6898
6899 cat <<_LT_EOF >> conftest.$ac_ext
6900
6901 /* The mapping between symbol names and symbols. */
6902 const struct {
6903 const char *name;
6904 void *address;
6905 }
6906 lt__PROGRAM__LTX_preloaded_symbols[] =
6907 {
6908 { "@PROGRAM@", (void *) 0 },
6909 _LT_EOF
6910 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6911 cat <<\_LT_EOF >> conftest.$ac_ext
6912 {0, (void *) 0}
6913 };
6914
6915 /* This works around a problem in FreeBSD linker */
6916 #ifdef FREEBSD_WORKAROUND
6917 static const void *lt_preloaded_setup() {
6918 return lt__PROGRAM__LTX_preloaded_symbols;
6919 }
6920 #endif
6921
6922 #ifdef __cplusplus
6923 }
6924 #endif
6925 _LT_EOF
6926 # Now try linking the two files.
6927 mv conftest.$ac_objext conftstm.$ac_objext
6928 lt_save_LIBS="$LIBS"
6929 lt_save_CFLAGS="$CFLAGS"
6930 LIBS="conftstm.$ac_objext"
6931 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6933 (eval $ac_link) 2>&5
6934 ac_status=$?
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6937 pipe_works=yes
6938 fi
6939 LIBS="$lt_save_LIBS"
6940 CFLAGS="$lt_save_CFLAGS"
6941 else
6942 echo "cannot find nm_test_func in $nlist" >&5
6943 fi
6944 else
6945 echo "cannot find nm_test_var in $nlist" >&5
6946 fi
6947 else
6948 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6949 fi
6950 else
6951 echo "$progname: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6953 fi
6954 rm -rf conftest* conftst*
6955
6956 # Do not use the global_symbol_pipe unless it works.
6957 if test "$pipe_works" = yes; then
6958 break
6959 else
6960 lt_cv_sys_global_symbol_pipe=
6961 fi
6962 done
6963
6964 fi
6965
6966 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6967 lt_cv_sys_global_symbol_to_cdecl=
6968 fi
6969 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6971 $as_echo "failed" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6974 $as_echo "ok" >&6; }
6975 fi
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 # Check whether --enable-libtool-lock was given.
6999 if test "${enable_libtool_lock+set}" = set; then :
7000 enableval=$enable_libtool_lock;
7001 fi
7002
7003 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7004
7005 # Some flags need to be propagated to the compiler or linker for good
7006 # libtool support.
7007 case $host in
7008 ia64-*-hpux*)
7009 # Find out which ABI we are using.
7010 echo 'int i;' > conftest.$ac_ext
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 case `/usr/bin/file conftest.$ac_objext` in
7017 *ELF-32*)
7018 HPUX_IA64_MODE="32"
7019 ;;
7020 *ELF-64*)
7021 HPUX_IA64_MODE="64"
7022 ;;
7023 esac
7024 fi
7025 rm -rf conftest*
7026 ;;
7027 *-*-irix6*)
7028 # Find out which ABI we are using.
7029 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7032 ac_status=$?
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 if test "$lt_cv_prog_gnu_ld" = yes; then
7036 case `/usr/bin/file conftest.$ac_objext` in
7037 *32-bit*)
7038 LD="${LD-ld} -melf32bsmip"
7039 ;;
7040 *N32*)
7041 LD="${LD-ld} -melf32bmipn32"
7042 ;;
7043 *64-bit*)
7044 LD="${LD-ld} -melf64bmip"
7045 ;;
7046 esac
7047 else
7048 case `/usr/bin/file conftest.$ac_objext` in
7049 *32-bit*)
7050 LD="${LD-ld} -32"
7051 ;;
7052 *N32*)
7053 LD="${LD-ld} -n32"
7054 ;;
7055 *64-bit*)
7056 LD="${LD-ld} -64"
7057 ;;
7058 esac
7059 fi
7060 fi
7061 rm -rf conftest*
7062 ;;
7063
7064 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7065 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7066 # Find out which ABI we are using.
7067 echo 'int i;' > conftest.$ac_ext
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 case `/usr/bin/file conftest.o` in
7074 *32-bit*)
7075 case $host in
7076 x86_64-*kfreebsd*-gnu)
7077 LD="${LD-ld} -m elf_i386_fbsd"
7078 ;;
7079 x86_64-*linux*)
7080 case `/usr/bin/file conftest.o` in
7081 *x86-64*)
7082 LD="${LD-ld} -m elf32_x86_64"
7083 ;;
7084 *)
7085 LD="${LD-ld} -m elf_i386"
7086 ;;
7087 esac
7088 ;;
7089 powerpc64le-*linux*)
7090 LD="${LD-ld} -m elf32lppclinux"
7091 ;;
7092 powerpc64-*linux*)
7093 LD="${LD-ld} -m elf32ppclinux"
7094 ;;
7095 s390x-*linux*)
7096 LD="${LD-ld} -m elf_s390"
7097 ;;
7098 sparc64-*linux*)
7099 LD="${LD-ld} -m elf32_sparc"
7100 ;;
7101 esac
7102 ;;
7103 *64-bit*)
7104 case $host in
7105 x86_64-*kfreebsd*-gnu)
7106 LD="${LD-ld} -m elf_x86_64_fbsd"
7107 ;;
7108 x86_64-*linux*)
7109 LD="${LD-ld} -m elf_x86_64"
7110 ;;
7111 powerpcle-*linux*)
7112 LD="${LD-ld} -m elf64lppc"
7113 ;;
7114 powerpc-*linux*)
7115 LD="${LD-ld} -m elf64ppc"
7116 ;;
7117 s390*-*linux*|s390*-*tpf*)
7118 LD="${LD-ld} -m elf64_s390"
7119 ;;
7120 sparc*-*linux*)
7121 LD="${LD-ld} -m elf64_sparc"
7122 ;;
7123 esac
7124 ;;
7125 esac
7126 fi
7127 rm -rf conftest*
7128 ;;
7129
7130 *-*-sco3.2v5*)
7131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7132 SAVE_CFLAGS="$CFLAGS"
7133 CFLAGS="$CFLAGS -belf"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7135 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7136 if ${lt_cv_cc_needs_belf+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 ac_ext=c
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7147
7148 int
7149 main ()
7150 {
7151
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 if ac_fn_c_try_link "$LINENO"; then :
7157 lt_cv_cc_needs_belf=yes
7158 else
7159 lt_cv_cc_needs_belf=no
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163 ac_ext=c
7164 ac_cpp='$CPP $CPPFLAGS'
7165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168
7169 fi
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7171 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7172 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7173 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7174 CFLAGS="$SAVE_CFLAGS"
7175 fi
7176 ;;
7177 sparc*-*solaris*)
7178 # Find out which ABI we are using.
7179 echo 'int i;' > conftest.$ac_ext
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181 (eval $ac_compile) 2>&5
7182 ac_status=$?
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 case `/usr/bin/file conftest.o` in
7186 *64-bit*)
7187 case $lt_cv_prog_gnu_ld in
7188 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7189 *)
7190 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7191 LD="${LD-ld} -64"
7192 fi
7193 ;;
7194 esac
7195 ;;
7196 esac
7197 fi
7198 rm -rf conftest*
7199 ;;
7200 esac
7201
7202 need_locks="$enable_libtool_lock"
7203
7204
7205 case $host_os in
7206 rhapsody* | darwin*)
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$DSYMUTIL"; then
7216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7236 if test -n "$DSYMUTIL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7238 $as_echo "$DSYMUTIL" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244
7245 fi
7246 if test -z "$ac_cv_prog_DSYMUTIL"; then
7247 ac_ct_DSYMUTIL=$DSYMUTIL
7248 # Extract the first word of "dsymutil", so it can be a program name with args.
7249 set dummy dsymutil; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$ac_ct_DSYMUTIL"; then
7256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7276 if test -n "$ac_ct_DSYMUTIL"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284 if test "x$ac_ct_DSYMUTIL" = x; then
7285 DSYMUTIL=":"
7286 else
7287 case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293 DSYMUTIL=$ac_ct_DSYMUTIL
7294 fi
7295 else
7296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7297 fi
7298
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_NMEDIT+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$NMEDIT"; then
7308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 NMEDIT=$ac_cv_prog_NMEDIT
7328 if test -n "$NMEDIT"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7330 $as_echo "$NMEDIT" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_NMEDIT"; then
7339 ac_ct_NMEDIT=$NMEDIT
7340 # Extract the first word of "nmedit", so it can be a program name with args.
7341 set dummy nmedit; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$ac_ct_NMEDIT"; then
7348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7368 if test -n "$ac_ct_NMEDIT"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7370 $as_echo "$ac_ct_NMEDIT" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376 if test "x$ac_ct_NMEDIT" = x; then
7377 NMEDIT=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385 NMEDIT=$ac_ct_NMEDIT
7386 fi
7387 else
7388 NMEDIT="$ac_cv_prog_NMEDIT"
7389 fi
7390
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_LIPO+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$LIPO"; then
7400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 LIPO=$ac_cv_prog_LIPO
7420 if test -n "$LIPO"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7422 $as_echo "$LIPO" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428
7429 fi
7430 if test -z "$ac_cv_prog_LIPO"; then
7431 ac_ct_LIPO=$LIPO
7432 # Extract the first word of "lipo", so it can be a program name with args.
7433 set dummy lipo; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if test -n "$ac_ct_LIPO"; then
7440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_LIPO="lipo"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7460 if test -n "$ac_ct_LIPO"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7462 $as_echo "$ac_ct_LIPO" >&6; }
7463 else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468 if test "x$ac_ct_LIPO" = x; then
7469 LIPO=":"
7470 else
7471 case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7476 esac
7477 LIPO=$ac_ct_LIPO
7478 fi
7479 else
7480 LIPO="$ac_cv_prog_LIPO"
7481 fi
7482
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}otool; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_OTOOL+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$OTOOL"; then
7492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 OTOOL=$ac_cv_prog_OTOOL
7512 if test -n "$OTOOL"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7514 $as_echo "$OTOOL" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520
7521 fi
7522 if test -z "$ac_cv_prog_OTOOL"; then
7523 ac_ct_OTOOL=$OTOOL
7524 # Extract the first word of "otool", so it can be a program name with args.
7525 set dummy otool; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$ac_ct_OTOOL"; then
7532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_OTOOL="otool"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7552 if test -n "$ac_ct_OTOOL"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7554 $as_echo "$ac_ct_OTOOL" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560 if test "x$ac_ct_OTOOL" = x; then
7561 OTOOL=":"
7562 else
7563 case $cross_compiling:$ac_tool_warned in
7564 yes:)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7568 esac
7569 OTOOL=$ac_ct_OTOOL
7570 fi
7571 else
7572 OTOOL="$ac_cv_prog_OTOOL"
7573 fi
7574
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OTOOL64+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$OTOOL64"; then
7584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 OTOOL64=$ac_cv_prog_OTOOL64
7604 if test -n "$OTOOL64"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7606 $as_echo "$OTOOL64" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613 fi
7614 if test -z "$ac_cv_prog_OTOOL64"; then
7615 ac_ct_OTOOL64=$OTOOL64
7616 # Extract the first word of "otool64", so it can be a program name with args.
7617 set dummy otool64; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$ac_ct_OTOOL64"; then
7624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OTOOL64="otool64"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7644 if test -n "$ac_ct_OTOOL64"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7646 $as_echo "$ac_ct_OTOOL64" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652 if test "x$ac_ct_OTOOL64" = x; then
7653 OTOOL64=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661 OTOOL64=$ac_ct_OTOOL64
7662 fi
7663 else
7664 OTOOL64="$ac_cv_prog_OTOOL64"
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7694 $as_echo_n "checking for -single_module linker flag... " >&6; }
7695 if ${lt_cv_apple_cc_single_mod+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 lt_cv_apple_cc_single_mod=no
7699 if test -z "${LT_MULTI_MODULE}"; then
7700 # By default we will add the -single_module flag. You can override
7701 # by either setting the environment variable LT_MULTI_MODULE
7702 # non-empty at configure time, or by adding -multi_module to the
7703 # link flags.
7704 rm -rf libconftest.dylib*
7705 echo "int foo(void){return 1;}" > conftest.c
7706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7707 -dynamiclib -Wl,-single_module conftest.c" >&5
7708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7710 _lt_result=$?
7711 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7712 lt_cv_apple_cc_single_mod=yes
7713 else
7714 cat conftest.err >&5
7715 fi
7716 rm -rf libconftest.dylib*
7717 rm -f conftest.*
7718 fi
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7721 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 lt_cv_ld_exported_symbols_list=no
7728 save_LDFLAGS=$LDFLAGS
7729 echo "_main" > conftest.sym
7730 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733
7734 int
7735 main ()
7736 {
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 lt_cv_ld_exported_symbols_list=yes
7744 else
7745 lt_cv_ld_exported_symbols_list=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 LDFLAGS="$save_LDFLAGS"
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7755 $as_echo_n "checking for -force_load linker flag... " >&6; }
7756 if ${lt_cv_ld_force_load+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 lt_cv_ld_force_load=no
7760 cat > conftest.c << _LT_EOF
7761 int forced_loaded() { return 2;}
7762 _LT_EOF
7763 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7764 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7765 echo "$AR cru libconftest.a conftest.o" >&5
7766 $AR cru libconftest.a conftest.o 2>&5
7767 cat > conftest.c << _LT_EOF
7768 int main() { return 0;}
7769 _LT_EOF
7770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7772 _lt_result=$?
7773 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7774 lt_cv_ld_force_load=yes
7775 else
7776 cat conftest.err >&5
7777 fi
7778 rm -f conftest.err libconftest.a conftest conftest.c
7779 rm -rf conftest.dSYM
7780
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7783 $as_echo "$lt_cv_ld_force_load" >&6; }
7784 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7785 # build without first building modern cctools / linker.
7786 case $host_cpu-$host_os in
7787 *-rhapsody* | *-darwin1.[012])
7788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7789 *-darwin1.*)
7790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7791 *-darwin*)
7792 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7793 # deployment target is forced to an earlier version.
7794 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7795 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7796 ;;
7797 10.[012][,.]*)
7798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7799 ;;
7800 *)
7801 ;;
7802 esac
7803 ;;
7804 esac
7805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7806 _lt_dar_single_mod='$single_module'
7807 fi
7808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7810 else
7811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7812 fi
7813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7814 _lt_dsymutil='~$DSYMUTIL $lib || :'
7815 else
7816 _lt_dsymutil=
7817 fi
7818 ;;
7819 esac
7820
7821 ac_ext=c
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7828 # On Suns, sometimes $CPP names a directory.
7829 if test -n "$CPP" && test -d "$CPP"; then
7830 CPP=
7831 fi
7832 if test -z "$CPP"; then
7833 if ${ac_cv_prog_CPP+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 # Double quotes because CPP needs to be expanded
7837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7838 do
7839 ac_preproc_ok=false
7840 for ac_c_preproc_warn_flag in '' yes
7841 do
7842 # Use a header file that comes with gcc, so configuring glibc
7843 # with a fresh cross-compiler works.
7844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845 # <limits.h> exists even on freestanding compilers.
7846 # On the NeXT, cc -E runs the code through the compiler's parser,
7847 # not just through cpp. "Syntax error" is here to catch this case.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #ifdef __STDC__
7851 # include <limits.h>
7852 #else
7853 # include <assert.h>
7854 #endif
7855 Syntax error
7856 _ACEOF
7857 if ac_fn_c_try_cpp "$LINENO"; then :
7858
7859 else
7860 # Broken: fails on valid input.
7861 continue
7862 fi
7863 rm -f conftest.err conftest.i conftest.$ac_ext
7864
7865 # OK, works on sane cases. Now check whether nonexistent headers
7866 # can be detected and how.
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 #include <ac_nonexistent.h>
7870 _ACEOF
7871 if ac_fn_c_try_cpp "$LINENO"; then :
7872 # Broken: success on invalid input.
7873 continue
7874 else
7875 # Passes both tests.
7876 ac_preproc_ok=:
7877 break
7878 fi
7879 rm -f conftest.err conftest.i conftest.$ac_ext
7880
7881 done
7882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7883 rm -f conftest.i conftest.err conftest.$ac_ext
7884 if $ac_preproc_ok; then :
7885 break
7886 fi
7887
7888 done
7889 ac_cv_prog_CPP=$CPP
7890
7891 fi
7892 CPP=$ac_cv_prog_CPP
7893 else
7894 ac_cv_prog_CPP=$CPP
7895 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7897 $as_echo "$CPP" >&6; }
7898 ac_preproc_ok=false
7899 for ac_c_preproc_warn_flag in '' yes
7900 do
7901 # Use a header file that comes with gcc, so configuring glibc
7902 # with a fresh cross-compiler works.
7903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904 # <limits.h> exists even on freestanding compilers.
7905 # On the NeXT, cc -E runs the code through the compiler's parser,
7906 # not just through cpp. "Syntax error" is here to catch this case.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #ifdef __STDC__
7910 # include <limits.h>
7911 #else
7912 # include <assert.h>
7913 #endif
7914 Syntax error
7915 _ACEOF
7916 if ac_fn_c_try_cpp "$LINENO"; then :
7917
7918 else
7919 # Broken: fails on valid input.
7920 continue
7921 fi
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7923
7924 # OK, works on sane cases. Now check whether nonexistent headers
7925 # can be detected and how.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <ac_nonexistent.h>
7929 _ACEOF
7930 if ac_fn_c_try_cpp "$LINENO"; then :
7931 # Broken: success on invalid input.
7932 continue
7933 else
7934 # Passes both tests.
7935 ac_preproc_ok=:
7936 break
7937 fi
7938 rm -f conftest.err conftest.i conftest.$ac_ext
7939
7940 done
7941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942 rm -f conftest.i conftest.err conftest.$ac_ext
7943 if $ac_preproc_ok; then :
7944
7945 else
7946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7948 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7949 See \`config.log' for more details" "$LINENO" 5; }
7950 fi
7951
7952 ac_ext=c
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7960 $as_echo_n "checking for ANSI C header files... " >&6; }
7961 if ${ac_cv_header_stdc+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <stdlib.h>
7967 #include <stdarg.h>
7968 #include <string.h>
7969 #include <float.h>
7970
7971 int
7972 main ()
7973 {
7974
7975 ;
7976 return 0;
7977 }
7978 _ACEOF
7979 if ac_fn_c_try_compile "$LINENO"; then :
7980 ac_cv_header_stdc=yes
7981 else
7982 ac_cv_header_stdc=no
7983 fi
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985
7986 if test $ac_cv_header_stdc = yes; then
7987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #include <string.h>
7991
7992 _ACEOF
7993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994 $EGREP "memchr" >/dev/null 2>&1; then :
7995
7996 else
7997 ac_cv_header_stdc=no
7998 fi
7999 rm -f conftest*
8000
8001 fi
8002
8003 if test $ac_cv_header_stdc = yes; then
8004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <stdlib.h>
8008
8009 _ACEOF
8010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8011 $EGREP "free" >/dev/null 2>&1; then :
8012
8013 else
8014 ac_cv_header_stdc=no
8015 fi
8016 rm -f conftest*
8017
8018 fi
8019
8020 if test $ac_cv_header_stdc = yes; then
8021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8022 if test "$cross_compiling" = yes; then :
8023 :
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <ctype.h>
8028 #include <stdlib.h>
8029 #if ((' ' & 0x0FF) == 0x020)
8030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8032 #else
8033 # define ISLOWER(c) \
8034 (('a' <= (c) && (c) <= 'i') \
8035 || ('j' <= (c) && (c) <= 'r') \
8036 || ('s' <= (c) && (c) <= 'z'))
8037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8038 #endif
8039
8040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8041 int
8042 main ()
8043 {
8044 int i;
8045 for (i = 0; i < 256; i++)
8046 if (XOR (islower (i), ISLOWER (i))
8047 || toupper (i) != TOUPPER (i))
8048 return 2;
8049 return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_run "$LINENO"; then :
8053
8054 else
8055 ac_cv_header_stdc=no
8056 fi
8057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8058 conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 fi
8060
8061 fi
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8064 $as_echo "$ac_cv_header_stdc" >&6; }
8065 if test $ac_cv_header_stdc = yes; then
8066
8067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8068
8069 fi
8070
8071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8073 inttypes.h stdint.h unistd.h
8074 do :
8075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8077 "
8078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8079 cat >>confdefs.h <<_ACEOF
8080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8081 _ACEOF
8082
8083 fi
8084
8085 done
8086
8087
8088 for ac_header in dlfcn.h
8089 do :
8090 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8091 "
8092 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8093 cat >>confdefs.h <<_ACEOF
8094 #define HAVE_DLFCN_H 1
8095 _ACEOF
8096
8097 fi
8098
8099 done
8100
8101
8102
8103
8104
8105
8106 # Set options
8107
8108
8109
8110 enable_dlopen=no
8111
8112
8113 enable_win32_dll=no
8114
8115
8116 # Check whether --enable-shared was given.
8117 if test "${enable_shared+set}" = set; then :
8118 enableval=$enable_shared; p=${PACKAGE-default}
8119 case $enableval in
8120 yes) enable_shared=yes ;;
8121 no) enable_shared=no ;;
8122 *)
8123 enable_shared=no
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8126 for pkg in $enableval; do
8127 IFS="$lt_save_ifs"
8128 if test "X$pkg" = "X$p"; then
8129 enable_shared=yes
8130 fi
8131 done
8132 IFS="$lt_save_ifs"
8133 ;;
8134 esac
8135 else
8136 enable_shared=yes
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 # Check whether --enable-static was given.
8148 if test "${enable_static+set}" = set; then :
8149 enableval=$enable_static; p=${PACKAGE-default}
8150 case $enableval in
8151 yes) enable_static=yes ;;
8152 no) enable_static=no ;;
8153 *)
8154 enable_static=no
8155 # Look at the argument we got. We use all the common list separators.
8156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8157 for pkg in $enableval; do
8158 IFS="$lt_save_ifs"
8159 if test "X$pkg" = "X$p"; then
8160 enable_static=yes
8161 fi
8162 done
8163 IFS="$lt_save_ifs"
8164 ;;
8165 esac
8166 else
8167 enable_static=yes
8168 fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179 # Check whether --with-pic was given.
8180 if test "${with_pic+set}" = set; then :
8181 withval=$with_pic; pic_mode="$withval"
8182 else
8183 pic_mode=default
8184 fi
8185
8186
8187 test -z "$pic_mode" && pic_mode=default
8188
8189
8190
8191
8192
8193
8194
8195 # Check whether --enable-fast-install was given.
8196 if test "${enable_fast_install+set}" = set; then :
8197 enableval=$enable_fast_install; p=${PACKAGE-default}
8198 case $enableval in
8199 yes) enable_fast_install=yes ;;
8200 no) enable_fast_install=no ;;
8201 *)
8202 enable_fast_install=no
8203 # Look at the argument we got. We use all the common list separators.
8204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8205 for pkg in $enableval; do
8206 IFS="$lt_save_ifs"
8207 if test "X$pkg" = "X$p"; then
8208 enable_fast_install=yes
8209 fi
8210 done
8211 IFS="$lt_save_ifs"
8212 ;;
8213 esac
8214 else
8215 enable_fast_install=yes
8216 fi
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 # This can be used to rebuild libtool when needed
8229 LIBTOOL_DEPS="$ltmain"
8230
8231 # Always use our own libtool.
8232 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 test -z "$LN_S" && LN_S="ln -s"
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 if test -n "${ZSH_VERSION+set}" ; then
8275 setopt NO_GLOB_SUBST
8276 fi
8277
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8279 $as_echo_n "checking for objdir... " >&6; }
8280 if ${lt_cv_objdir+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 rm -f .libs 2>/dev/null
8284 mkdir .libs 2>/dev/null
8285 if test -d .libs; then
8286 lt_cv_objdir=.libs
8287 else
8288 # MS-DOS does not allow filenames that begin with a dot.
8289 lt_cv_objdir=_libs
8290 fi
8291 rmdir .libs 2>/dev/null
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8294 $as_echo "$lt_cv_objdir" >&6; }
8295 objdir=$lt_cv_objdir
8296
8297
8298
8299
8300
8301 cat >>confdefs.h <<_ACEOF
8302 #define LT_OBJDIR "$lt_cv_objdir/"
8303 _ACEOF
8304
8305
8306
8307
8308 case $host_os in
8309 aix3*)
8310 # AIX sometimes has problems with the GCC collect2 program. For some
8311 # reason, if we set the COLLECT_NAMES environment variable, the problems
8312 # vanish in a puff of smoke.
8313 if test "X${COLLECT_NAMES+set}" != Xset; then
8314 COLLECT_NAMES=
8315 export COLLECT_NAMES
8316 fi
8317 ;;
8318 esac
8319
8320 # Global variables:
8321 ofile=libtool
8322 can_build_shared=yes
8323
8324 # All known linkers require a `.a' archive for static linking (except MSVC,
8325 # which needs '.lib').
8326 libext=a
8327
8328 with_gnu_ld="$lt_cv_prog_gnu_ld"
8329
8330 old_CC="$CC"
8331 old_CFLAGS="$CFLAGS"
8332
8333 # Set sane defaults for various variables
8334 test -z "$CC" && CC=cc
8335 test -z "$LTCC" && LTCC=$CC
8336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8337 test -z "$LD" && LD=ld
8338 test -z "$ac_objext" && ac_objext=o
8339
8340 for cc_temp in $compiler""; do
8341 case $cc_temp in
8342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8344 \-*) ;;
8345 *) break;;
8346 esac
8347 done
8348 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8349
8350
8351 # Only perform the check for file, if the check method requires it
8352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8353 case $deplibs_check_method in
8354 file_magic*)
8355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $MAGIC_CMD in
8362 [\\/*] | ?:[\\/]*)
8363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8364 ;;
8365 *)
8366 lt_save_MAGIC_CMD="$MAGIC_CMD"
8367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8369 for ac_dir in $ac_dummy; do
8370 IFS="$lt_save_ifs"
8371 test -z "$ac_dir" && ac_dir=.
8372 if test -f $ac_dir/${ac_tool_prefix}file; then
8373 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8374 if test -n "$file_magic_test_file"; then
8375 case $deplibs_check_method in
8376 "file_magic "*)
8377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8380 $EGREP "$file_magic_regex" > /dev/null; then
8381 :
8382 else
8383 cat <<_LT_EOF 1>&2
8384
8385 *** Warning: the command libtool uses to detect shared libraries,
8386 *** $file_magic_cmd, produces output that libtool cannot recognize.
8387 *** The result is that libtool may fail to recognize shared libraries
8388 *** as such. This will affect the creation of libtool libraries that
8389 *** depend on shared libraries, but programs linked with such libtool
8390 *** libraries will work regardless of this problem. Nevertheless, you
8391 *** may want to report the problem to your system manager and/or to
8392 *** bug-libtool@gnu.org
8393
8394 _LT_EOF
8395 fi ;;
8396 esac
8397 fi
8398 break
8399 fi
8400 done
8401 IFS="$lt_save_ifs"
8402 MAGIC_CMD="$lt_save_MAGIC_CMD"
8403 ;;
8404 esac
8405 fi
8406
8407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8408 if test -n "$MAGIC_CMD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410 $as_echo "$MAGIC_CMD" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417
8418
8419
8420 if test -z "$lt_cv_path_MAGIC_CMD"; then
8421 if test -n "$ac_tool_prefix"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423 $as_echo_n "checking for file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $MAGIC_CMD in
8428 [\\/*] | ?:[\\/]*)
8429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8430 ;;
8431 *)
8432 lt_save_MAGIC_CMD="$MAGIC_CMD"
8433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir in $ac_dummy; do
8436 IFS="$lt_save_ifs"
8437 test -z "$ac_dir" && ac_dir=.
8438 if test -f $ac_dir/file; then
8439 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8442 "file_magic "*)
8443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446 $EGREP "$file_magic_regex" > /dev/null; then
8447 :
8448 else
8449 cat <<_LT_EOF 1>&2
8450
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8459
8460 _LT_EOF
8461 fi ;;
8462 esac
8463 fi
8464 break
8465 fi
8466 done
8467 IFS="$lt_save_ifs"
8468 MAGIC_CMD="$lt_save_MAGIC_CMD"
8469 ;;
8470 esac
8471 fi
8472
8473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483 else
8484 MAGIC_CMD=:
8485 fi
8486 fi
8487
8488 fi
8489 ;;
8490 esac
8491
8492 # Use C for the default configuration in the libtool script
8493
8494 lt_save_CC="$CC"
8495 ac_ext=c
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502 # Source file extension for C test sources.
8503 ac_ext=c
8504
8505 # Object file extension for compiled C test sources.
8506 objext=o
8507 objext=$objext
8508
8509 # Code to be used in simple compile tests
8510 lt_simple_compile_test_code="int some_variable = 0;"
8511
8512 # Code to be used in simple link tests
8513 lt_simple_link_test_code='int main(){return(0);}'
8514
8515
8516
8517
8518
8519
8520
8521 # If no C compiler was specified, use CC.
8522 LTCC=${LTCC-"$CC"}
8523
8524 # If no C compiler flags were specified, use CFLAGS.
8525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8526
8527 # Allow CC to be a program name with arguments.
8528 compiler=$CC
8529
8530 # Save the default compiler, since it gets overwritten when the other
8531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532 compiler_DEFAULT=$CC
8533
8534 # save warnings/boilerplate of simple test code
8535 ac_outfile=conftest.$ac_objext
8536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_compiler_boilerplate=`cat conftest.err`
8539 $RM conftest*
8540
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8544 _lt_linker_boilerplate=`cat conftest.err`
8545 $RM -r conftest*
8546
8547
8548 ## CAVEAT EMPTOR:
8549 ## There is no encapsulation within the following macros, do not change
8550 ## the running order or otherwise move them around unless you know exactly
8551 ## what you are doing...
8552 if test -n "$compiler"; then
8553
8554 lt_prog_compiler_no_builtin_flag=
8555
8556 if test "$GCC" = yes; then
8557 case $cc_basename in
8558 nvcc*)
8559 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8560 *)
8561 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8562 esac
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_rtti_exceptions=no
8570 ac_outfile=conftest.$ac_objext
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572 lt_compiler_flag="-fno-rtti -fno-exceptions"
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 # The option is referenced via a variable to avoid confusing sed.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>conftest.err)
8584 ac_status=$?
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s "$ac_outfile"; then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings other than the usual output.
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_rtti_exceptions=yes
8594 fi
8595 fi
8596 $RM conftest*
8597
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8601
8602 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8603 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8604 else
8605 :
8606 fi
8607
8608 fi
8609
8610
8611
8612
8613
8614
8615 lt_prog_compiler_wl=
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_static=
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8621
8622 if test "$GCC" = yes; then
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_static='-static'
8625
8626 case $host_os in
8627 aix*)
8628 # All AIX code is PIC.
8629 if test "$host_cpu" = ia64; then
8630 # AIX 5 now supports IA64 processor
8631 lt_prog_compiler_static='-Bstatic'
8632 fi
8633 lt_prog_compiler_pic='-fPIC'
8634 ;;
8635
8636 amigaos*)
8637 case $host_cpu in
8638 powerpc)
8639 # see comment about AmigaOS4 .so support
8640 lt_prog_compiler_pic='-fPIC'
8641 ;;
8642 m68k)
8643 # FIXME: we need at least 68020 code to build shared libraries, but
8644 # adding the `-m68020' flag to GCC prevents building anything better,
8645 # like `-m68040'.
8646 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8647 ;;
8648 esac
8649 ;;
8650
8651 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8652 # PIC is the default for these OSes.
8653 ;;
8654
8655 mingw* | cygwin* | pw32* | os2* | cegcc*)
8656 # This hack is so that the source file can tell whether it is being
8657 # built for inclusion in a dll (and should export symbols for example).
8658 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8659 # (--disable-auto-import) libraries
8660 lt_prog_compiler_pic='-DDLL_EXPORT'
8661 ;;
8662
8663 darwin* | rhapsody*)
8664 # PIC is the default on this platform
8665 # Common symbols not allowed in MH_DYLIB files
8666 lt_prog_compiler_pic='-fno-common'
8667 ;;
8668
8669 haiku*)
8670 # PIC is the default for Haiku.
8671 # The "-static" flag exists, but is broken.
8672 lt_prog_compiler_static=
8673 ;;
8674
8675 hpux*)
8676 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8677 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8678 # sets the default TLS model and affects inlining.
8679 case $host_cpu in
8680 hppa*64*)
8681 # +Z the default
8682 ;;
8683 *)
8684 lt_prog_compiler_pic='-fPIC'
8685 ;;
8686 esac
8687 ;;
8688
8689 interix[3-9]*)
8690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8691 # Instead, we relocate shared libraries at runtime.
8692 ;;
8693
8694 msdosdjgpp*)
8695 # Just because we use GCC doesn't mean we suddenly get shared libraries
8696 # on systems that don't support them.
8697 lt_prog_compiler_can_build_shared=no
8698 enable_shared=no
8699 ;;
8700
8701 *nto* | *qnx*)
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8703 # it will coredump.
8704 lt_prog_compiler_pic='-fPIC -shared'
8705 ;;
8706
8707 sysv4*MP*)
8708 if test -d /usr/nec; then
8709 lt_prog_compiler_pic=-Kconform_pic
8710 fi
8711 ;;
8712
8713 *)
8714 lt_prog_compiler_pic='-fPIC'
8715 ;;
8716 esac
8717
8718 case $cc_basename in
8719 nvcc*) # Cuda Compiler Driver 2.2
8720 lt_prog_compiler_wl='-Xlinker '
8721 lt_prog_compiler_pic='-Xcompiler -fPIC'
8722 ;;
8723 esac
8724 else
8725 # PORTME Check for flag to pass linker flags through the system compiler.
8726 case $host_os in
8727 aix*)
8728 lt_prog_compiler_wl='-Wl,'
8729 if test "$host_cpu" = ia64; then
8730 # AIX 5 now supports IA64 processor
8731 lt_prog_compiler_static='-Bstatic'
8732 else
8733 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8734 fi
8735 ;;
8736
8737 mingw* | cygwin* | pw32* | os2* | cegcc*)
8738 # This hack is so that the source file can tell whether it is being
8739 # built for inclusion in a dll (and should export symbols for example).
8740 lt_prog_compiler_pic='-DDLL_EXPORT'
8741 ;;
8742
8743 hpux9* | hpux10* | hpux11*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8746 # not for PA HP-UX.
8747 case $host_cpu in
8748 hppa*64*|ia64*)
8749 # +Z the default
8750 ;;
8751 *)
8752 lt_prog_compiler_pic='+Z'
8753 ;;
8754 esac
8755 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8756 lt_prog_compiler_static='${wl}-a ${wl}archive'
8757 ;;
8758
8759 irix5* | irix6* | nonstopux*)
8760 lt_prog_compiler_wl='-Wl,'
8761 # PIC (with -KPIC) is the default.
8762 lt_prog_compiler_static='-non_shared'
8763 ;;
8764
8765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8766 case $cc_basename in
8767 # old Intel for x86_64 which still supported -KPIC.
8768 ecc*)
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-KPIC'
8771 lt_prog_compiler_static='-static'
8772 ;;
8773 # icc used to be incompatible with GCC.
8774 # ICC 10 doesn't accept -KPIC any more.
8775 icc* | ifort*)
8776 lt_prog_compiler_wl='-Wl,'
8777 lt_prog_compiler_pic='-fPIC'
8778 lt_prog_compiler_static='-static'
8779 ;;
8780 # Lahey Fortran 8.1.
8781 lf95*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='--shared'
8784 lt_prog_compiler_static='--static'
8785 ;;
8786 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8787 # Portland Group compilers (*not* the Pentium gcc compiler,
8788 # which looks to be a dead project)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-fpic'
8791 lt_prog_compiler_static='-Bstatic'
8792 ;;
8793 ccc*)
8794 lt_prog_compiler_wl='-Wl,'
8795 # All Alpha code is PIC.
8796 lt_prog_compiler_static='-non_shared'
8797 ;;
8798 xl* | bgxl* | bgf* | mpixl*)
8799 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-qpic'
8802 lt_prog_compiler_static='-qstaticlink'
8803 ;;
8804 *)
8805 case `$CC -V 2>&1 | sed 5q` in
8806 *Sun\ F* | *Sun*Fortran*)
8807 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8810 lt_prog_compiler_wl=''
8811 ;;
8812 *Sun\ C*)
8813 # Sun C 5.9
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_wl='-Wl,'
8817 ;;
8818 esac
8819 ;;
8820 esac
8821 ;;
8822
8823 newsos6)
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8826 ;;
8827
8828 *nto* | *qnx*)
8829 # QNX uses GNU C++, but need to define -shared option too, otherwise
8830 # it will coredump.
8831 lt_prog_compiler_pic='-fPIC -shared'
8832 ;;
8833
8834 osf3* | osf4* | osf5*)
8835 lt_prog_compiler_wl='-Wl,'
8836 # All OSF/1 code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8838 ;;
8839
8840 rdos*)
8841 lt_prog_compiler_static='-non_shared'
8842 ;;
8843
8844 solaris*)
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-Bstatic'
8847 case $cc_basename in
8848 f77* | f90* | f95*)
8849 lt_prog_compiler_wl='-Qoption ld ';;
8850 *)
8851 lt_prog_compiler_wl='-Wl,';;
8852 esac
8853 ;;
8854
8855 sunos4*)
8856 lt_prog_compiler_wl='-Qoption ld '
8857 lt_prog_compiler_pic='-PIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 sysv4 | sysv4.2uw2* | sysv4.3*)
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 ;;
8866
8867 sysv4*MP*)
8868 if test -d /usr/nec ;then
8869 lt_prog_compiler_pic='-Kconform_pic'
8870 lt_prog_compiler_static='-Bstatic'
8871 fi
8872 ;;
8873
8874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8875 lt_prog_compiler_wl='-Wl,'
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 ;;
8879
8880 unicos*)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_can_build_shared=no
8883 ;;
8884
8885 uts4*)
8886 lt_prog_compiler_pic='-pic'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 *)
8891 lt_prog_compiler_can_build_shared=no
8892 ;;
8893 esac
8894 fi
8895
8896 case $host_os in
8897 # For platforms which do not support PIC, -DPIC is meaningless:
8898 *djgpp*)
8899 lt_prog_compiler_pic=
8900 ;;
8901 *)
8902 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8903 ;;
8904 esac
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8906 $as_echo "$lt_prog_compiler_pic" >&6; }
8907
8908
8909
8910
8911
8912
8913 #
8914 # Check to make sure the PIC flag actually works.
8915 #
8916 if test -n "$lt_prog_compiler_pic"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8918 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8919 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 lt_cv_prog_compiler_pic_works=no
8923 ac_outfile=conftest.$ac_objext
8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8926 # Insert the option either (1) after the last *FLAGS variable, or
8927 # (2) before a word containing "conftest.", or (3) at the end.
8928 # Note that $ac_compile itself does not contain backslashes and begins
8929 # with a dollar sign (not a hyphen), so the echo should work correctly.
8930 # The option is referenced via a variable to avoid confusing sed.
8931 lt_compile=`echo "$ac_compile" | $SED \
8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934 -e 's:$: $lt_compiler_flag:'`
8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936 (eval "$lt_compile" 2>conftest.err)
8937 ac_status=$?
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 if (exit $ac_status) && test -s "$ac_outfile"; then
8941 # The compiler can only warn and ignore the option if not recognized
8942 # So say no if there are warnings other than the usual output.
8943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8946 lt_cv_prog_compiler_pic_works=yes
8947 fi
8948 fi
8949 $RM conftest*
8950
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8953 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8954
8955 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8956 case $lt_prog_compiler_pic in
8957 "" | " "*) ;;
8958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8959 esac
8960 else
8961 lt_prog_compiler_pic=
8962 lt_prog_compiler_can_build_shared=no
8963 fi
8964
8965 fi
8966
8967
8968
8969
8970
8971
8972 #
8973 # Check to make sure the static flag actually works.
8974 #
8975 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8978 if ${lt_cv_prog_compiler_static_works+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 lt_cv_prog_compiler_static_works=no
8982 save_LDFLAGS="$LDFLAGS"
8983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8986 # The linker can only warn and ignore the option if not recognized
8987 # So say no if there are warnings
8988 if test -s conftest.err; then
8989 # Append any errors to the config.log.
8990 cat conftest.err 1>&5
8991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8993 if diff conftest.exp conftest.er2 >/dev/null; then
8994 lt_cv_prog_compiler_static_works=yes
8995 fi
8996 else
8997 lt_cv_prog_compiler_static_works=yes
8998 fi
8999 fi
9000 $RM -r conftest*
9001 LDFLAGS="$save_LDFLAGS"
9002
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9005 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9006
9007 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9008 :
9009 else
9010 lt_prog_compiler_static=
9011 fi
9012
9013
9014
9015
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9021 if ${lt_cv_prog_compiler_c_o+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_c_o=no
9025 $RM -r conftest 2>/dev/null
9026 mkdir conftest
9027 cd conftest
9028 mkdir out
9029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030
9031 lt_compiler_flag="-o out/conftest2.$ac_objext"
9032 # Insert the option either (1) after the last *FLAGS variable, or
9033 # (2) before a word containing "conftest.", or (3) at the end.
9034 # Note that $ac_compile itself does not contain backslashes and begins
9035 # with a dollar sign (not a hyphen), so the echo should work correctly.
9036 lt_compile=`echo "$ac_compile" | $SED \
9037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9039 -e 's:$: $lt_compiler_flag:'`
9040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9041 (eval "$lt_compile" 2>out/conftest.err)
9042 ac_status=$?
9043 cat out/conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9046 then
9047 # The compiler can only warn and ignore the option if not recognized
9048 # So say no if there are warnings
9049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_c_o=yes
9053 fi
9054 fi
9055 chmod u+w . 2>&5
9056 $RM conftest*
9057 # SGI C++ compiler will create directory out/ii_files/ for
9058 # template instantiation
9059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9060 $RM out/* && rmdir out
9061 cd ..
9062 $RM -r conftest
9063 $RM conftest*
9064
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9067 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9068
9069
9070
9071
9072
9073
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9075 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9076 if ${lt_cv_prog_compiler_c_o+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 lt_cv_prog_compiler_c_o=no
9080 $RM -r conftest 2>/dev/null
9081 mkdir conftest
9082 cd conftest
9083 mkdir out
9084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085
9086 lt_compiler_flag="-o out/conftest2.$ac_objext"
9087 # Insert the option either (1) after the last *FLAGS variable, or
9088 # (2) before a word containing "conftest.", or (3) at the end.
9089 # Note that $ac_compile itself does not contain backslashes and begins
9090 # with a dollar sign (not a hyphen), so the echo should work correctly.
9091 lt_compile=`echo "$ac_compile" | $SED \
9092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9094 -e 's:$: $lt_compiler_flag:'`
9095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9096 (eval "$lt_compile" 2>out/conftest.err)
9097 ac_status=$?
9098 cat out/conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9101 then
9102 # The compiler can only warn and ignore the option if not recognized
9103 # So say no if there are warnings
9104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9107 lt_cv_prog_compiler_c_o=yes
9108 fi
9109 fi
9110 chmod u+w . 2>&5
9111 $RM conftest*
9112 # SGI C++ compiler will create directory out/ii_files/ for
9113 # template instantiation
9114 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9115 $RM out/* && rmdir out
9116 cd ..
9117 $RM -r conftest
9118 $RM conftest*
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9122 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9123
9124
9125
9126
9127 hard_links="nottested"
9128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9129 # do not overwrite the value of need_locks provided by the user
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9131 $as_echo_n "checking if we can lock with hard links... " >&6; }
9132 hard_links=yes
9133 $RM conftest*
9134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9135 touch conftest.a
9136 ln conftest.a conftest.b 2>&5 || hard_links=no
9137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9139 $as_echo "$hard_links" >&6; }
9140 if test "$hard_links" = no; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9142 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9143 need_locks=warn
9144 fi
9145 else
9146 need_locks=no
9147 fi
9148
9149
9150
9151
9152
9153
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9155 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9156
9157 runpath_var=
9158 allow_undefined_flag=
9159 always_export_symbols=no
9160 archive_cmds=
9161 archive_expsym_cmds=
9162 compiler_needs_object=no
9163 enable_shared_with_static_runtimes=no
9164 export_dynamic_flag_spec=
9165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9166 hardcode_automatic=no
9167 hardcode_direct=no
9168 hardcode_direct_absolute=no
9169 hardcode_libdir_flag_spec=
9170 hardcode_libdir_flag_spec_ld=
9171 hardcode_libdir_separator=
9172 hardcode_minus_L=no
9173 hardcode_shlibpath_var=unsupported
9174 inherit_rpath=no
9175 link_all_deplibs=unknown
9176 module_cmds=
9177 module_expsym_cmds=
9178 old_archive_from_new_cmds=
9179 old_archive_from_expsyms_cmds=
9180 thread_safe_flag_spec=
9181 whole_archive_flag_spec=
9182 # include_expsyms should be a list of space-separated symbols to be *always*
9183 # included in the symbol list
9184 include_expsyms=
9185 # exclude_expsyms can be an extended regexp of symbols to exclude
9186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9188 # as well as any symbol that contains `d'.
9189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9191 # platforms (ab)use it in PIC code, but their linkers get confused if
9192 # the symbol is explicitly referenced. Since portable code cannot
9193 # rely on this symbol name, it's probably fine to never include it in
9194 # preloaded symbol tables.
9195 # Exclude shared library initialization/finalization symbols.
9196 extract_expsyms_cmds=
9197
9198 case $host_os in
9199 cygwin* | mingw* | pw32* | cegcc*)
9200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9201 # When not using gcc, we currently assume that we are using
9202 # Microsoft Visual C++.
9203 if test "$GCC" != yes; then
9204 with_gnu_ld=no
9205 fi
9206 ;;
9207 interix*)
9208 # we just hope/assume this is gcc and not c89 (= MSVC++)
9209 with_gnu_ld=yes
9210 ;;
9211 openbsd*)
9212 with_gnu_ld=no
9213 ;;
9214 esac
9215
9216 ld_shlibs=yes
9217
9218 # On some targets, GNU ld is compatible enough with the native linker
9219 # that we're better off using the native interface for both.
9220 lt_use_gnu_ld_interface=no
9221 if test "$with_gnu_ld" = yes; then
9222 case $host_os in
9223 aix*)
9224 # The AIX port of GNU ld has always aspired to compatibility
9225 # with the native linker. However, as the warning in the GNU ld
9226 # block says, versions before 2.19.5* couldn't really create working
9227 # shared libraries, regardless of the interface used.
9228 case `$LD -v 2>&1` in
9229 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9230 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9231 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9232 *)
9233 lt_use_gnu_ld_interface=yes
9234 ;;
9235 esac
9236 ;;
9237 *)
9238 lt_use_gnu_ld_interface=yes
9239 ;;
9240 esac
9241 fi
9242
9243 if test "$lt_use_gnu_ld_interface" = yes; then
9244 # If archive_cmds runs LD, not CC, wlarc should be empty
9245 wlarc='${wl}'
9246
9247 # Set some defaults for GNU ld with shared library support. These
9248 # are reset later if shared libraries are not supported. Putting them
9249 # here allows them to be overridden if necessary.
9250 runpath_var=LD_RUN_PATH
9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 export_dynamic_flag_spec='${wl}--export-dynamic'
9253 # ancient GNU ld didn't support --whole-archive et. al.
9254 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9255 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9256 else
9257 whole_archive_flag_spec=
9258 fi
9259 supports_anon_versioning=no
9260 case `$LD -v 2>&1` in
9261 *GNU\ gold*) supports_anon_versioning=yes ;;
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9265 *\ 2.11.*) ;; # other 2.11 versions
9266 *) supports_anon_versioning=yes ;;
9267 esac
9268
9269 # See if GNU ld supports shared libraries.
9270 case $host_os in
9271 aix[3-9]*)
9272 # On AIX/PPC, the GNU linker is very broken
9273 if test "$host_cpu" != ia64; then
9274 ld_shlibs=no
9275 cat <<_LT_EOF 1>&2
9276
9277 *** Warning: the GNU linker, at least up to release 2.19, is reported
9278 *** to be unable to reliably create shared libraries on AIX.
9279 *** Therefore, libtool is disabling shared libraries support. If you
9280 *** really care for shared libraries, you may want to install binutils
9281 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9282 *** You will then need to restart the configuration process.
9283
9284 _LT_EOF
9285 fi
9286 ;;
9287
9288 amigaos*)
9289 case $host_cpu in
9290 powerpc)
9291 # see comment about AmigaOS4 .so support
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds=''
9294 ;;
9295 m68k)
9296 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)'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9299 ;;
9300 esac
9301 ;;
9302
9303 beos*)
9304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9305 allow_undefined_flag=unsupported
9306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9307 # support --undefined. This deserves some investigation. FIXME
9308 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 else
9310 ld_shlibs=no
9311 fi
9312 ;;
9313
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9316 # as there is no search path for DLLs.
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 export_dynamic_flag_spec='${wl}--export-all-symbols'
9319 allow_undefined_flag=unsupported
9320 always_export_symbols=no
9321 enable_shared_with_static_runtimes=yes
9322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9323
9324 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9326 # If the export-symbols file already is a .def file (1st line
9327 # is EXPORTS), use it as is; otherwise, prepend...
9328 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9329 cp $export_symbols $output_objdir/$soname.def;
9330 else
9331 echo EXPORTS > $output_objdir/$soname.def;
9332 cat $export_symbols >> $output_objdir/$soname.def;
9333 fi~
9334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9335 else
9336 ld_shlibs=no
9337 fi
9338 ;;
9339
9340 haiku*)
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 link_all_deplibs=yes
9343 ;;
9344
9345 interix[3-9]*)
9346 hardcode_direct=no
9347 hardcode_shlibpath_var=no
9348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9349 export_dynamic_flag_spec='${wl}-E'
9350 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9351 # Instead, shared libraries are loaded at an image base (0x10000000 by
9352 # default) and relocated if they conflict, which is a slow very memory
9353 # consuming and fragmenting process. To avoid this, we pick a random,
9354 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9355 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9357 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'
9358 ;;
9359
9360 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9361 tmp_diet=no
9362 if test "$host_os" = linux-dietlibc; then
9363 case $cc_basename in
9364 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9365 esac
9366 fi
9367 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9368 && test "$tmp_diet" = no
9369 then
9370 tmp_addflag=' $pic_flag'
9371 tmp_sharedflag='-shared'
9372 case $cc_basename,$host_cpu in
9373 pgcc*) # Portland Group C compiler
9374 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'
9375 tmp_addflag=' $pic_flag'
9376 ;;
9377 pgf77* | pgf90* | pgf95* | pgfortran*)
9378 # Portland Group f77 and f90 compilers
9379 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'
9380 tmp_addflag=' $pic_flag -Mnomain' ;;
9381 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9382 tmp_addflag=' -i_dynamic' ;;
9383 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9384 tmp_addflag=' -i_dynamic -nofor_main' ;;
9385 ifc* | ifort*) # Intel Fortran compiler
9386 tmp_addflag=' -nofor_main' ;;
9387 lf95*) # Lahey Fortran 8.1
9388 whole_archive_flag_spec=
9389 tmp_sharedflag='--shared' ;;
9390 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9391 tmp_sharedflag='-qmkshrobj'
9392 tmp_addflag= ;;
9393 nvcc*) # Cuda Compiler Driver 2.2
9394 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'
9395 compiler_needs_object=yes
9396 ;;
9397 esac
9398 case `$CC -V 2>&1 | sed 5q` in
9399 *Sun\ C*) # Sun C 5.9
9400 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'
9401 compiler_needs_object=yes
9402 tmp_sharedflag='-G' ;;
9403 *Sun\ F*) # Sun Fortran 8.3
9404 tmp_sharedflag='-G' ;;
9405 esac
9406 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407
9408 if test "x$supports_anon_versioning" = xyes; then
9409 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9410 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9411 echo "local: *; };" >> $output_objdir/$libname.ver~
9412 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9413 fi
9414
9415 case $cc_basename in
9416 xlf* | bgf* | bgxlf* | mpixlf*)
9417 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9418 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9419 hardcode_libdir_flag_spec=
9420 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9421 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9422 if test "x$supports_anon_versioning" = xyes; then
9423 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9425 echo "local: *; };" >> $output_objdir/$libname.ver~
9426 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9427 fi
9428 ;;
9429 esac
9430 else
9431 ld_shlibs=no
9432 fi
9433 ;;
9434
9435 netbsd*)
9436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9437 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9438 wlarc=
9439 else
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 fi
9443 ;;
9444
9445 solaris*)
9446 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9447 ld_shlibs=no
9448 cat <<_LT_EOF 1>&2
9449
9450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9451 *** create shared libraries on Solaris systems. Therefore, libtool
9452 *** is disabling shared libraries support. We urge you to upgrade GNU
9453 *** binutils to release 2.9.1 or newer. Another option is to modify
9454 *** your PATH or compiler configuration so that the native linker is
9455 *** used, and then restart.
9456
9457 _LT_EOF
9458 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9461 else
9462 ld_shlibs=no
9463 fi
9464 ;;
9465
9466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9467 case `$LD -v 2>&1` in
9468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9469 ld_shlibs=no
9470 cat <<_LT_EOF 1>&2
9471
9472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9473 *** reliably create shared libraries on SCO systems. Therefore, libtool
9474 *** is disabling shared libraries support. We urge you to upgrade GNU
9475 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9476 *** your PATH or compiler configuration so that the native linker is
9477 *** used, and then restart.
9478
9479 _LT_EOF
9480 ;;
9481 *)
9482 # For security reasons, it is highly recommended that you always
9483 # use absolute paths for naming shared libraries, and exclude the
9484 # DT_RUNPATH tag from executables and libraries. But doing so
9485 # requires that you compile everything twice, which is a pain.
9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9490 else
9491 ld_shlibs=no
9492 fi
9493 ;;
9494 esac
9495 ;;
9496
9497 sunos4*)
9498 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 wlarc=
9500 hardcode_direct=yes
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 *)
9505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 else
9509 ld_shlibs=no
9510 fi
9511 ;;
9512 esac
9513
9514 if test "$ld_shlibs" = no; then
9515 runpath_var=
9516 hardcode_libdir_flag_spec=
9517 export_dynamic_flag_spec=
9518 whole_archive_flag_spec=
9519 fi
9520 else
9521 # PORTME fill in a description of your system's linker (not GNU ld)
9522 case $host_os in
9523 aix3*)
9524 allow_undefined_flag=unsupported
9525 always_export_symbols=yes
9526 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'
9527 # Note: this linker hardcodes the directories in LIBPATH if there
9528 # are no directories specified by -L.
9529 hardcode_minus_L=yes
9530 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9531 # Neither direct hardcoding nor static linking is supported with a
9532 # broken collect2.
9533 hardcode_direct=unsupported
9534 fi
9535 ;;
9536
9537 aix[4-9]*)
9538 if test "$host_cpu" = ia64; then
9539 # On IA64, the linker does run time linking by default, so we don't
9540 # have to do anything special.
9541 aix_use_runtimelinking=no
9542 exp_sym_flag='-Bexport'
9543 no_entry_flag=""
9544 else
9545 # If we're using GNU nm, then we don't want the "-C" option.
9546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9547 # Also, AIX nm treats weak defined symbols like other global
9548 # defined symbols, whereas GNU nm marks them as "W".
9549 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9550 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'
9551 else
9552 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9553 fi
9554 aix_use_runtimelinking=no
9555
9556 # Test if we are trying to use run time linking or normal
9557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9558 # need to do runtime linking.
9559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9560 for ld_flag in $LDFLAGS; do
9561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9562 aix_use_runtimelinking=yes
9563 break
9564 fi
9565 done
9566 ;;
9567 esac
9568
9569 exp_sym_flag='-bexport'
9570 no_entry_flag='-bnoentry'
9571 fi
9572
9573 # When large executables or shared objects are built, AIX ld can
9574 # have problems creating the table of contents. If linking a library
9575 # or program results in "error TOC overflow" add -mminimal-toc to
9576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9578
9579 archive_cmds=''
9580 hardcode_direct=yes
9581 hardcode_direct_absolute=yes
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 file_list_spec='${wl}-f,'
9585
9586 if test "$GCC" = yes; then
9587 case $host_os in aix4.[012]|aix4.[012].*)
9588 # We only want to do this on AIX 4.2 and lower, the check
9589 # below for broken collect2 doesn't work under 4.3+
9590 collect2name=`${CC} -print-prog-name=collect2`
9591 if test -f "$collect2name" &&
9592 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9593 then
9594 # We have reworked collect2
9595 :
9596 else
9597 # We have old collect2
9598 hardcode_direct=unsupported
9599 # It fails to find uninstalled libraries when the uninstalled
9600 # path is not listed in the libpath. Setting hardcode_minus_L
9601 # to unsupported forces relinking
9602 hardcode_minus_L=yes
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_libdir_separator=
9605 fi
9606 ;;
9607 esac
9608 shared_flag='-shared'
9609 if test "$aix_use_runtimelinking" = yes; then
9610 shared_flag="$shared_flag "'${wl}-G'
9611 fi
9612 else
9613 # not using gcc
9614 if test "$host_cpu" = ia64; then
9615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9616 # chokes on -Wl,-G. The following line is correct:
9617 shared_flag='-G'
9618 else
9619 if test "$aix_use_runtimelinking" = yes; then
9620 shared_flag='${wl}-G'
9621 else
9622 shared_flag='${wl}-bM:SRE'
9623 fi
9624 fi
9625 fi
9626
9627 export_dynamic_flag_spec='${wl}-bexpall'
9628 # It seems that -bexpall does not export symbols beginning with
9629 # underscore (_), so it is better to generate a list of symbols to export.
9630 always_export_symbols=yes
9631 if test "$aix_use_runtimelinking" = yes; then
9632 # Warning - without using the other runtime loading flags (-brtl),
9633 # -berok will link without error, but may produce a broken library.
9634 allow_undefined_flag='-berok'
9635 # Determine the default libpath from the value encoded in an
9636 # empty executable.
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639
9640 int
9641 main ()
9642 {
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649
9650 lt_aix_libpath_sed='
9651 /Import File Strings/,/^$/ {
9652 /^0/ {
9653 s/^0 *\(.*\)$/\1/
9654 p
9655 }
9656 }'
9657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$aix_libpath"; then
9660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9661 fi
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9666
9667 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9668 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9669 else
9670 if test "$host_cpu" = ia64; then
9671 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9672 allow_undefined_flag="-z nodefs"
9673 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"
9674 else
9675 # Determine the default libpath from the value encoded in an
9676 # empty executable.
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679
9680 int
9681 main ()
9682 {
9683
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"; then :
9689
9690 lt_aix_libpath_sed='
9691 /Import File Strings/,/^$/ {
9692 /^0/ {
9693 s/^0 *\(.*\)$/\1/
9694 p
9695 }
9696 }'
9697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9698 # Check for a 64-bit object if we didn't find anything.
9699 if test -z "$aix_libpath"; then
9700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701 fi
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9706
9707 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9708 # Warning - without using the other run time loading flags,
9709 # -berok will link without error, but may produce a broken library.
9710 no_undefined_flag=' ${wl}-bernotok'
9711 allow_undefined_flag=' ${wl}-berok'
9712 if test "$with_gnu_ld" = yes; then
9713 # We only use this code for GNU lds that support --whole-archive.
9714 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9715 else
9716 # Exported symbols can be pulled into shared objects from archives
9717 whole_archive_flag_spec='$convenience'
9718 fi
9719 archive_cmds_need_lc=yes
9720 # This is similar to how AIX traditionally builds its shared libraries.
9721 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'
9722 fi
9723 fi
9724 ;;
9725
9726 amigaos*)
9727 case $host_cpu in
9728 powerpc)
9729 # see comment about AmigaOS4 .so support
9730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 archive_expsym_cmds=''
9732 ;;
9733 m68k)
9734 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)'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_minus_L=yes
9737 ;;
9738 esac
9739 ;;
9740
9741 bsdi[45]*)
9742 export_dynamic_flag_spec=-rdynamic
9743 ;;
9744
9745 cygwin* | mingw* | pw32* | cegcc*)
9746 # When not using gcc, we currently assume that we are using
9747 # Microsoft Visual C++.
9748 # hardcode_libdir_flag_spec is actually meaningless, as there is
9749 # no search path for DLLs.
9750 hardcode_libdir_flag_spec=' '
9751 allow_undefined_flag=unsupported
9752 # Tell ltmain to make .lib files, not .a files.
9753 libext=lib
9754 # Tell ltmain to make .dll files, not .so files.
9755 shrext_cmds=".dll"
9756 # FIXME: Setting linknames here is a bad hack.
9757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9758 # The linker will automatically build a .lib file if we build a DLL.
9759 old_archive_from_new_cmds='true'
9760 # FIXME: Should let the user specify the lib program.
9761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9762 fix_srcfile_path='`cygpath -w "$srcfile"`'
9763 enable_shared_with_static_runtimes=yes
9764 ;;
9765
9766 darwin* | rhapsody*)
9767
9768
9769 archive_cmds_need_lc=no
9770 hardcode_direct=no
9771 hardcode_automatic=yes
9772 hardcode_shlibpath_var=unsupported
9773 if test "$lt_cv_ld_force_load" = "yes"; then
9774 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\"`'
9775 else
9776 whole_archive_flag_spec=''
9777 fi
9778 link_all_deplibs=yes
9779 allow_undefined_flag="$_lt_dar_allow_undefined"
9780 case $cc_basename in
9781 ifort*) _lt_dar_can_shared=yes ;;
9782 *) _lt_dar_can_shared=$GCC ;;
9783 esac
9784 if test "$_lt_dar_can_shared" = "yes"; then
9785 output_verbose_link_cmd=func_echo_all
9786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9788 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}"
9789 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}"
9790
9791 else
9792 ld_shlibs=no
9793 fi
9794
9795 ;;
9796
9797 dgux*)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9804 # support. Future versions do this automatically, but an explicit c++rt0.o
9805 # does not break anything, and helps significantly (at the cost of a little
9806 # extra space).
9807 freebsd2.2*)
9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9815 freebsd2.*)
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9823 freebsd* | dragonfly*)
9824 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9825 hardcode_libdir_flag_spec='-R$libdir'
9826 hardcode_direct=yes
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 hpux9*)
9831 if test "$GCC" = yes; then
9832 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9833 else
9834 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9835 fi
9836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9837 hardcode_libdir_separator=:
9838 hardcode_direct=yes
9839
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L=yes
9843 export_dynamic_flag_spec='${wl}-E'
9844 ;;
9845
9846 hpux10*)
9847 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 else
9850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9851 fi
9852 if test "$with_gnu_ld" = no; then
9853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9854 hardcode_libdir_flag_spec_ld='+b $libdir'
9855 hardcode_libdir_separator=:
9856 hardcode_direct=yes
9857 hardcode_direct_absolute=yes
9858 export_dynamic_flag_spec='${wl}-E'
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L=yes
9862 fi
9863 ;;
9864
9865 hpux11*)
9866 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9867 case $host_cpu in
9868 hppa*64*)
9869 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9870 ;;
9871 ia64*)
9872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9873 ;;
9874 *)
9875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9876 ;;
9877 esac
9878 else
9879 case $host_cpu in
9880 hppa*64*)
9881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9882 ;;
9883 ia64*)
9884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9885 ;;
9886 *)
9887
9888 # Older versions of the 11.00 compiler do not understand -b yet
9889 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9891 $as_echo_n "checking if $CC understands -b... " >&6; }
9892 if ${lt_cv_prog_compiler__b+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 lt_cv_prog_compiler__b=no
9896 save_LDFLAGS="$LDFLAGS"
9897 LDFLAGS="$LDFLAGS -b"
9898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9900 # The linker can only warn and ignore the option if not recognized
9901 # So say no if there are warnings
9902 if test -s conftest.err; then
9903 # Append any errors to the config.log.
9904 cat conftest.err 1>&5
9905 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9907 if diff conftest.exp conftest.er2 >/dev/null; then
9908 lt_cv_prog_compiler__b=yes
9909 fi
9910 else
9911 lt_cv_prog_compiler__b=yes
9912 fi
9913 fi
9914 $RM -r conftest*
9915 LDFLAGS="$save_LDFLAGS"
9916
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9919 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9920
9921 if test x"$lt_cv_prog_compiler__b" = xyes; then
9922 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923 else
9924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9925 fi
9926
9927 ;;
9928 esac
9929 fi
9930 if test "$with_gnu_ld" = no; then
9931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9932 hardcode_libdir_separator=:
9933
9934 case $host_cpu in
9935 hppa*64*|ia64*)
9936 hardcode_direct=no
9937 hardcode_shlibpath_var=no
9938 ;;
9939 *)
9940 hardcode_direct=yes
9941 hardcode_direct_absolute=yes
9942 export_dynamic_flag_spec='${wl}-E'
9943
9944 # hardcode_minus_L: Not really in the search PATH,
9945 # but as the default location of the library.
9946 hardcode_minus_L=yes
9947 ;;
9948 esac
9949 fi
9950 ;;
9951
9952 irix5* | irix6* | nonstopux*)
9953 if test "$GCC" = yes; then
9954 archive_cmds='$CC -shared $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'
9955 # Try to use the -exported_symbol ld option, if it does not
9956 # work, assume that -exports_file does not work either and
9957 # implicitly export all symbols.
9958 save_LDFLAGS="$LDFLAGS"
9959 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 int foo(void) {}
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9965 archive_expsym_cmds='$CC -shared $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'
9966
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LDFLAGS="$save_LDFLAGS"
9971 else
9972 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'
9973 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'
9974 fi
9975 archive_cmds_need_lc='no'
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978 inherit_rpath=yes
9979 link_all_deplibs=yes
9980 ;;
9981
9982 netbsd*)
9983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9985 else
9986 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9987 fi
9988 hardcode_libdir_flag_spec='-R$libdir'
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9991 ;;
9992
9993 newsos6)
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_direct=yes
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 *nto* | *qnx*)
10002 ;;
10003
10004 openbsd*)
10005 if test -f /usr/libexec/ld.so; then
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10008 hardcode_direct_absolute=yes
10009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013 export_dynamic_flag_spec='${wl}-E'
10014 else
10015 case $host_os in
10016 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 ;;
10020 *)
10021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10023 ;;
10024 esac
10025 fi
10026 else
10027 ld_shlibs=no
10028 fi
10029 ;;
10030
10031 os2*)
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 hardcode_minus_L=yes
10034 allow_undefined_flag=unsupported
10035 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'
10036 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10037 ;;
10038
10039 osf3*)
10040 if test "$GCC" = yes; then
10041 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10042 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'
10043 else
10044 allow_undefined_flag=' -expect_unresolved \*'
10045 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'
10046 fi
10047 archive_cmds_need_lc='no'
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049 hardcode_libdir_separator=:
10050 ;;
10051
10052 osf4* | osf5*) # as osf3* with the addition of -msym flag
10053 if test "$GCC" = yes; then
10054 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10055 archive_cmds='$CC -shared${allow_undefined_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'
10056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057 else
10058 allow_undefined_flag=' -expect_unresolved \*'
10059 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'
10060 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~
10061 $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'
10062
10063 # Both c and cxx compiler support -rpath directly
10064 hardcode_libdir_flag_spec='-rpath $libdir'
10065 fi
10066 archive_cmds_need_lc='no'
10067 hardcode_libdir_separator=:
10068 ;;
10069
10070 solaris*)
10071 no_undefined_flag=' -z defs'
10072 if test "$GCC" = yes; then
10073 wlarc='${wl}'
10074 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10077 else
10078 case `$CC -V 2>&1` in
10079 *"Compilers 5.0"*)
10080 wlarc=''
10081 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10084 ;;
10085 *)
10086 wlarc='${wl}'
10087 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10090 ;;
10091 esac
10092 fi
10093 hardcode_libdir_flag_spec='-R$libdir'
10094 hardcode_shlibpath_var=no
10095 case $host_os in
10096 solaris2.[0-5] | solaris2.[0-5].*) ;;
10097 *)
10098 # The compiler driver will combine and reorder linker options,
10099 # but understands `-z linker_flag'. GCC discards it without `$wl',
10100 # but is careful enough not to reorder.
10101 # Supported since Solaris 2.6 (maybe 2.5.1?)
10102 if test "$GCC" = yes; then
10103 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10104 else
10105 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10106 fi
10107 ;;
10108 esac
10109 link_all_deplibs=yes
10110 ;;
10111
10112 sunos4*)
10113 if test "x$host_vendor" = xsequent; then
10114 # Use $CC to link under sequent, because it throws in some extra .o
10115 # files that make .init and .fini sections work.
10116 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10119 fi
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_direct=yes
10122 hardcode_minus_L=yes
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 sysv4)
10127 case $host_vendor in
10128 sni)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_direct=yes # is this really true???
10131 ;;
10132 siemens)
10133 ## LD is ld it makes a PLAMLIB
10134 ## CC just makes a GrossModule.
10135 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10136 reload_cmds='$CC -r -o $output$reload_objs'
10137 hardcode_direct=no
10138 ;;
10139 motorola)
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10142 ;;
10143 esac
10144 runpath_var='LD_RUN_PATH'
10145 hardcode_shlibpath_var=no
10146 ;;
10147
10148 sysv4.3*)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_shlibpath_var=no
10151 export_dynamic_flag_spec='-Bexport'
10152 ;;
10153
10154 sysv4*MP*)
10155 if test -d /usr/nec; then
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_shlibpath_var=no
10158 runpath_var=LD_RUN_PATH
10159 hardcode_runpath_var=yes
10160 ld_shlibs=yes
10161 fi
10162 ;;
10163
10164 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10165 no_undefined_flag='${wl}-z,text'
10166 archive_cmds_need_lc=no
10167 hardcode_shlibpath_var=no
10168 runpath_var='LD_RUN_PATH'
10169
10170 if test "$GCC" = yes; then
10171 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 else
10174 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 fi
10177 ;;
10178
10179 sysv5* | sco3.2v5* | sco5v6*)
10180 # Note: We can NOT use -z defs as we might desire, because we do not
10181 # link with -lc, and that would cause any symbols used from libc to
10182 # always be unresolved, which means just about no library would
10183 # ever link correctly. If we're not using GNU ld we use -z text
10184 # though, which does catch some bad symbols but isn't as heavy-handed
10185 # as -z defs.
10186 no_undefined_flag='${wl}-z,text'
10187 allow_undefined_flag='${wl}-z,nodefs'
10188 archive_cmds_need_lc=no
10189 hardcode_shlibpath_var=no
10190 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10191 hardcode_libdir_separator=':'
10192 link_all_deplibs=yes
10193 export_dynamic_flag_spec='${wl}-Bexport'
10194 runpath_var='LD_RUN_PATH'
10195
10196 if test "$GCC" = yes; then
10197 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 else
10200 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10201 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202 fi
10203 ;;
10204
10205 uts4*)
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 hardcode_shlibpath_var=no
10209 ;;
10210
10211 *)
10212 ld_shlibs=no
10213 ;;
10214 esac
10215
10216 if test x$host_vendor = xsni; then
10217 case $host in
10218 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10219 export_dynamic_flag_spec='${wl}-Blargedynsym'
10220 ;;
10221 esac
10222 fi
10223 fi
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10226 $as_echo "$ld_shlibs" >&6; }
10227 test "$ld_shlibs" = no && can_build_shared=no
10228
10229 with_gnu_ld=$with_gnu_ld
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245 #
10246 # Do we need to explicitly link libc?
10247 #
10248 case "x$archive_cmds_need_lc" in
10249 x|xyes)
10250 # Assume -lc should be added
10251 archive_cmds_need_lc=yes
10252
10253 if test "$enable_shared" = yes && test "$GCC" = yes; then
10254 case $archive_cmds in
10255 *'~'*)
10256 # FIXME: we may have to deal with multi-command sequences.
10257 ;;
10258 '$CC '*)
10259 # Test whether the compiler implicitly links with -lc since on some
10260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10261 # to ld, don't add -lc before -lgcc.
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10263 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10264 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 $RM conftest*
10268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10269
10270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10271 (eval $ac_compile) 2>&5
10272 ac_status=$?
10273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274 test $ac_status = 0; } 2>conftest.err; then
10275 soname=conftest
10276 lib=conftest
10277 libobjs=conftest.$ac_objext
10278 deplibs=
10279 wl=$lt_prog_compiler_wl
10280 pic_flag=$lt_prog_compiler_pic
10281 compiler_flags=-v
10282 linker_flags=-v
10283 verstring=
10284 output_objdir=.
10285 libname=conftest
10286 lt_save_allow_undefined_flag=$allow_undefined_flag
10287 allow_undefined_flag=
10288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10289 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10290 ac_status=$?
10291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10292 test $ac_status = 0; }
10293 then
10294 lt_cv_archive_cmds_need_lc=no
10295 else
10296 lt_cv_archive_cmds_need_lc=yes
10297 fi
10298 allow_undefined_flag=$lt_save_allow_undefined_flag
10299 else
10300 cat conftest.err 1>&5
10301 fi
10302 $RM conftest*
10303
10304 fi
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10306 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10307 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10308 ;;
10309 esac
10310 fi
10311 ;;
10312 esac
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10472
10473 if test "$GCC" = yes; then
10474 case $host_os in
10475 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10476 *) lt_awk_arg="/^libraries:/" ;;
10477 esac
10478 case $host_os in
10479 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10480 *) lt_sed_strip_eq="s,=/,/,g" ;;
10481 esac
10482 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10483 case $lt_search_path_spec in
10484 *\;*)
10485 # if the path contains ";" then we assume it to be the separator
10486 # otherwise default to the standard path separator (i.e. ":") - it is
10487 # assumed that no part of a normal pathname contains ";" but that should
10488 # okay in the real world where ";" in dirpaths is itself problematic.
10489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10490 ;;
10491 *)
10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10493 ;;
10494 esac
10495 # Ok, now we have the path, separated by spaces, we can step through it
10496 # and add multilib dir if necessary.
10497 lt_tmp_lt_search_path_spec=
10498 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10499 for lt_sys_path in $lt_search_path_spec; do
10500 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10501 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10502 else
10503 test -d "$lt_sys_path" && \
10504 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10505 fi
10506 done
10507 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10508 BEGIN {RS=" "; FS="/|\n";} {
10509 lt_foo="";
10510 lt_count=0;
10511 for (lt_i = NF; lt_i > 0; lt_i--) {
10512 if ($lt_i != "" && $lt_i != ".") {
10513 if ($lt_i == "..") {
10514 lt_count++;
10515 } else {
10516 if (lt_count == 0) {
10517 lt_foo="/" $lt_i lt_foo;
10518 } else {
10519 lt_count--;
10520 }
10521 }
10522 }
10523 }
10524 if (lt_foo != "") { lt_freq[lt_foo]++; }
10525 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10526 }'`
10527 # AWK program above erroneously prepends '/' to C:/dos/paths
10528 # for these hosts.
10529 case $host_os in
10530 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10531 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10532 esac
10533 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10534 else
10535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10536 fi
10537 library_names_spec=
10538 libname_spec='lib$name'
10539 soname_spec=
10540 shrext_cmds=".so"
10541 postinstall_cmds=
10542 postuninstall_cmds=
10543 finish_cmds=
10544 finish_eval=
10545 shlibpath_var=
10546 shlibpath_overrides_runpath=unknown
10547 version_type=none
10548 dynamic_linker="$host_os ld.so"
10549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10550 need_lib_prefix=unknown
10551 hardcode_into_libs=no
10552
10553 # when you set need_version to no, make sure it does not cause -set_version
10554 # flags to be left without arguments
10555 need_version=unknown
10556
10557 case $host_os in
10558 aix3*)
10559 version_type=linux
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10561 shlibpath_var=LIBPATH
10562
10563 # AIX 3 has no versioning support, so we append a major version to the name.
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 ;;
10566
10567 aix[4-9]*)
10568 version_type=linux
10569 need_lib_prefix=no
10570 need_version=no
10571 hardcode_into_libs=yes
10572 if test "$host_cpu" = ia64; then
10573 # AIX 5 supports IA64
10574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 else
10577 # With GCC up to 2.95.x, collect2 would create an import file
10578 # for dependence libraries. The import file would start with
10579 # the line `#! .'. This would cause the generated library to
10580 # depend on `.', always an invalid library. This was fixed in
10581 # development snapshots of GCC prior to 3.0.
10582 case $host_os in
10583 aix4 | aix4.[01] | aix4.[01].*)
10584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10585 echo ' yes '
10586 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10587 :
10588 else
10589 can_build_shared=no
10590 fi
10591 ;;
10592 esac
10593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10594 # soname into executable. Probably we can add versioning support to
10595 # collect2, so additional links can be useful in future.
10596 if test "$aix_use_runtimelinking" = yes; then
10597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10598 # instead of lib<name>.a to let people know that these are not
10599 # typical AIX shared libraries.
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 else
10602 # We preserve .a as extension for shared libraries through AIX4.2
10603 # and later when we are not doing run time linking.
10604 library_names_spec='${libname}${release}.a $libname.a'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 fi
10607 shlibpath_var=LIBPATH
10608 fi
10609 ;;
10610
10611 amigaos*)
10612 case $host_cpu in
10613 powerpc)
10614 # Since July 2007 AmigaOS4 officially supports .so libraries.
10615 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 ;;
10618 m68k)
10619 library_names_spec='$libname.ixlibrary $libname.a'
10620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10621 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10622 ;;
10623 esac
10624 ;;
10625
10626 beos*)
10627 library_names_spec='${libname}${shared_ext}'
10628 dynamic_linker="$host_os ld.so"
10629 shlibpath_var=LIBRARY_PATH
10630 ;;
10631
10632 bsdi[45]*)
10633 version_type=linux
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10641 # the default ld.so.conf also contains /usr/contrib/lib and
10642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10643 # libtool to hard-code these into programs
10644 ;;
10645
10646 cygwin* | mingw* | pw32* | cegcc*)
10647 version_type=windows
10648 shrext_cmds=".dll"
10649 need_version=no
10650 need_lib_prefix=no
10651
10652 case $GCC,$host_os in
10653 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10654 library_names_spec='$libname.dll.a'
10655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10656 postinstall_cmds='base_file=`basename \${file}`~
10657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10658 dldir=$destdir/`dirname \$dlpath`~
10659 test -d \$dldir || mkdir -p \$dldir~
10660 $install_prog $dir/$dlname \$dldir/$dlname~
10661 chmod a+x \$dldir/$dlname~
10662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10664 fi'
10665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10666 dlpath=$dir/\$dldll~
10667 $RM \$dlpath'
10668 shlibpath_overrides_runpath=yes
10669
10670 case $host_os in
10671 cygwin*)
10672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674
10675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10676 ;;
10677 mingw* | cegcc*)
10678 # MinGW DLLs use traditional 'lib' prefix
10679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680 ;;
10681 pw32*)
10682 # pw32 DLLs use 'pw' prefix rather than 'lib'
10683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10684 ;;
10685 esac
10686 ;;
10687
10688 *)
10689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10690 ;;
10691 esac
10692 dynamic_linker='Win32 ld.exe'
10693 # FIXME: first we should search . and the directory the executable is in
10694 shlibpath_var=PATH
10695 ;;
10696
10697 darwin* | rhapsody*)
10698 dynamic_linker="$host_os dyld"
10699 version_type=darwin
10700 need_lib_prefix=no
10701 need_version=no
10702 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10703 soname_spec='${libname}${release}${major}$shared_ext'
10704 shlibpath_overrides_runpath=yes
10705 shlibpath_var=DYLD_LIBRARY_PATH
10706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10707
10708 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10710 ;;
10711
10712 dgux*)
10713 version_type=linux
10714 need_lib_prefix=no
10715 need_version=no
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 ;;
10720
10721 freebsd* | dragonfly*)
10722 # DragonFly does not have aout. When/if they implement a new
10723 # versioning mechanism, adjust this.
10724 if test -x /usr/bin/objformat; then
10725 objformat=`/usr/bin/objformat`
10726 else
10727 case $host_os in
10728 freebsd[23].*) objformat=aout ;;
10729 *) objformat=elf ;;
10730 esac
10731 fi
10732 version_type=freebsd-$objformat
10733 case $version_type in
10734 freebsd-elf*)
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 need_version=no
10737 need_lib_prefix=no
10738 ;;
10739 freebsd-*)
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10741 need_version=yes
10742 ;;
10743 esac
10744 shlibpath_var=LD_LIBRARY_PATH
10745 case $host_os in
10746 freebsd2.*)
10747 shlibpath_overrides_runpath=yes
10748 ;;
10749 freebsd3.[01]* | freebsdelf3.[01]*)
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10752 ;;
10753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10755 shlibpath_overrides_runpath=no
10756 hardcode_into_libs=yes
10757 ;;
10758 *) # from 4.6 on, and DragonFly
10759 shlibpath_overrides_runpath=yes
10760 hardcode_into_libs=yes
10761 ;;
10762 esac
10763 ;;
10764
10765 haiku*)
10766 version_type=linux
10767 need_lib_prefix=no
10768 need_version=no
10769 dynamic_linker="$host_os runtime_loader"
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10775 hardcode_into_libs=yes
10776 ;;
10777
10778 hpux9* | hpux10* | hpux11*)
10779 # Give a soname corresponding to the major version so that dld.sl refuses to
10780 # link against other versions.
10781 version_type=sunos
10782 need_lib_prefix=no
10783 need_version=no
10784 case $host_cpu in
10785 ia64*)
10786 shrext_cmds='.so'
10787 hardcode_into_libs=yes
10788 dynamic_linker="$host_os dld.so"
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 if test "X$HPUX_IA64_MODE" = X32; then
10794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10795 else
10796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10797 fi
10798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10799 ;;
10800 hppa*64*)
10801 shrext_cmds='.sl'
10802 hardcode_into_libs=yes
10803 dynamic_linker="$host_os dld.sl"
10804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10810 ;;
10811 *)
10812 shrext_cmds='.sl'
10813 dynamic_linker="$host_os dld.sl"
10814 shlibpath_var=SHLIB_PATH
10815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 ;;
10819 esac
10820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10821 postinstall_cmds='chmod 555 $lib'
10822 # or fails outright, so override atomically:
10823 install_override_mode=555
10824 ;;
10825
10826 interix[3-9]*)
10827 version_type=linux
10828 need_lib_prefix=no
10829 need_version=no
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=no
10835 hardcode_into_libs=yes
10836 ;;
10837
10838 irix5* | irix6* | nonstopux*)
10839 case $host_os in
10840 nonstopux*) version_type=nonstopux ;;
10841 *)
10842 if test "$lt_cv_prog_gnu_ld" = yes; then
10843 version_type=linux
10844 else
10845 version_type=irix
10846 fi ;;
10847 esac
10848 need_lib_prefix=no
10849 need_version=no
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10852 case $host_os in
10853 irix5* | nonstopux*)
10854 libsuff= shlibsuff=
10855 ;;
10856 *)
10857 case $LD in # libtool.m4 will add one of these switches to LD
10858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10859 libsuff= shlibsuff= libmagic=32-bit;;
10860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10861 libsuff=32 shlibsuff=N32 libmagic=N32;;
10862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10864 *) libsuff= shlibsuff= libmagic=never-match;;
10865 esac
10866 ;;
10867 esac
10868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10869 shlibpath_overrides_runpath=no
10870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10872 hardcode_into_libs=yes
10873 ;;
10874
10875 # No shared lib support for Linux oldld, aout, or coff.
10876 linux*oldld* | linux*aout* | linux*coff*)
10877 dynamic_linker=no
10878 ;;
10879
10880 # This must be Linux ELF.
10881
10882 # uclinux* changes (here and below) have been submitted to the libtool
10883 # project, but have not yet been accepted: they are GCC-local changes
10884 # for the time being. (See
10885 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10886 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10887 version_type=linux
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895
10896 # Some binutils ld are patched to set DT_RUNPATH
10897 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 lt_cv_shlibpath_overrides_runpath=no
10901 save_LDFLAGS=$LDFLAGS
10902 save_libdir=$libdir
10903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 int
10909 main ()
10910 {
10911
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10918 lt_cv_shlibpath_overrides_runpath=yes
10919 fi
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LDFLAGS=$save_LDFLAGS
10924 libdir=$save_libdir
10925
10926 fi
10927
10928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10929
10930 # This implies no fast_install, which is unacceptable.
10931 # Some rework will be needed to allow for fast_install
10932 # before this can be enabled.
10933 hardcode_into_libs=yes
10934
10935 # Append ld.so.conf contents to the search path
10936 if test -f /etc/ld.so.conf; then
10937 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' ' '`
10938 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10939 fi
10940
10941 # We used to test for /lib/ld.so.1 and disable shared libraries on
10942 # powerpc, because MkLinux only supported shared libraries with the
10943 # GNU dynamic linker. Since this was broken with cross compilers,
10944 # most powerpc-linux boxes support dynamic linking these days and
10945 # people can always --disable-shared, the test was removed, and we
10946 # assume the GNU/Linux dynamic linker is in use.
10947 dynamic_linker='GNU/Linux ld.so'
10948 ;;
10949
10950 netbsd*)
10951 version_type=sunos
10952 need_lib_prefix=no
10953 need_version=no
10954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10957 dynamic_linker='NetBSD (a.out) ld.so'
10958 else
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 dynamic_linker='NetBSD ld.elf_so'
10962 fi
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965 hardcode_into_libs=yes
10966 ;;
10967
10968 newsos6)
10969 version_type=linux
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10973 ;;
10974
10975 *nto* | *qnx*)
10976 version_type=qnx
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10984 dynamic_linker='ldqnx.so'
10985 ;;
10986
10987 openbsd*)
10988 version_type=sunos
10989 sys_lib_dlsearch_path_spec="/usr/lib"
10990 need_lib_prefix=no
10991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10992 case $host_os in
10993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10994 *) need_version=no ;;
10995 esac
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11000 case $host_os in
11001 openbsd2.[89] | openbsd2.[89].*)
11002 shlibpath_overrides_runpath=no
11003 ;;
11004 *)
11005 shlibpath_overrides_runpath=yes
11006 ;;
11007 esac
11008 else
11009 shlibpath_overrides_runpath=yes
11010 fi
11011 ;;
11012
11013 os2*)
11014 libname_spec='$name'
11015 shrext_cmds=".dll"
11016 need_lib_prefix=no
11017 library_names_spec='$libname${shared_ext} $libname.a'
11018 dynamic_linker='OS/2 ld.exe'
11019 shlibpath_var=LIBPATH
11020 ;;
11021
11022 osf3* | osf4* | osf5*)
11023 version_type=osf
11024 need_lib_prefix=no
11025 need_version=no
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11031 ;;
11032
11033 rdos*)
11034 dynamic_linker=no
11035 ;;
11036
11037 solaris*)
11038 version_type=linux
11039 need_lib_prefix=no
11040 need_version=no
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 # ldd complains unless libraries are executable
11047 postinstall_cmds='chmod +x $lib'
11048 ;;
11049
11050 sunos4*)
11051 version_type=sunos
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=yes
11056 if test "$with_gnu_ld" = yes; then
11057 need_lib_prefix=no
11058 fi
11059 need_version=yes
11060 ;;
11061
11062 sysv4 | sysv4.3*)
11063 version_type=linux
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 case $host_vendor in
11068 sni)
11069 shlibpath_overrides_runpath=no
11070 need_lib_prefix=no
11071 runpath_var=LD_RUN_PATH
11072 ;;
11073 siemens)
11074 need_lib_prefix=no
11075 ;;
11076 motorola)
11077 need_lib_prefix=no
11078 need_version=no
11079 shlibpath_overrides_runpath=no
11080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11081 ;;
11082 esac
11083 ;;
11084
11085 sysv4*MP*)
11086 if test -d /usr/nec ;then
11087 version_type=linux
11088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11089 soname_spec='$libname${shared_ext}.$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 fi
11092 ;;
11093
11094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11095 version_type=freebsd-elf
11096 need_lib_prefix=no
11097 need_version=no
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes
11102 hardcode_into_libs=yes
11103 if test "$with_gnu_ld" = yes; then
11104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11105 else
11106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11107 case $host_os in
11108 sco3.2v5*)
11109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11110 ;;
11111 esac
11112 fi
11113 sys_lib_dlsearch_path_spec='/usr/lib'
11114 ;;
11115
11116 tpf*)
11117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11118 version_type=linux
11119 need_lib_prefix=no
11120 need_version=no
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=no
11124 hardcode_into_libs=yes
11125 ;;
11126
11127 uts4*)
11128 version_type=linux
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 ;;
11133
11134 *)
11135 dynamic_linker=no
11136 ;;
11137 esac
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11139 $as_echo "$dynamic_linker" >&6; }
11140 test "$dynamic_linker" = no && can_build_shared=no
11141
11142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11143 if test "$GCC" = yes; then
11144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11145 fi
11146
11147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11148 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11149 fi
11150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11151 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11152 fi
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11246 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11247 hardcode_action=
11248 if test -n "$hardcode_libdir_flag_spec" ||
11249 test -n "$runpath_var" ||
11250 test "X$hardcode_automatic" = "Xyes" ; then
11251
11252 # We can hardcode non-existent directories.
11253 if test "$hardcode_direct" != no &&
11254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11255 # have to relink, otherwise we might link with an installed library
11256 # when we should be linking with a yet-to-be-installed one
11257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11258 test "$hardcode_minus_L" != no; then
11259 # Linking always hardcodes the temporary library directory.
11260 hardcode_action=relink
11261 else
11262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11263 hardcode_action=immediate
11264 fi
11265 else
11266 # We cannot hardcode anything, or else we can only hardcode existing
11267 # directories.
11268 hardcode_action=unsupported
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11271 $as_echo "$hardcode_action" >&6; }
11272
11273 if test "$hardcode_action" = relink ||
11274 test "$inherit_rpath" = yes; then
11275 # Fast installation is not supported
11276 enable_fast_install=no
11277 elif test "$shlibpath_overrides_runpath" = yes ||
11278 test "$enable_shared" = no; then
11279 # Fast installation is not necessary
11280 enable_fast_install=needless
11281 fi
11282
11283
11284
11285
11286
11287
11288 if test "x$enable_dlopen" != xyes; then
11289 enable_dlopen=unknown
11290 enable_dlopen_self=unknown
11291 enable_dlopen_self_static=unknown
11292 else
11293 lt_cv_dlopen=no
11294 lt_cv_dlopen_libs=
11295
11296 case $host_os in
11297 beos*)
11298 lt_cv_dlopen="load_add_on"
11299 lt_cv_dlopen_libs=
11300 lt_cv_dlopen_self=yes
11301 ;;
11302
11303 mingw* | pw32* | cegcc*)
11304 lt_cv_dlopen="LoadLibrary"
11305 lt_cv_dlopen_libs=
11306 ;;
11307
11308 cygwin*)
11309 lt_cv_dlopen="dlopen"
11310 lt_cv_dlopen_libs=
11311 ;;
11312
11313 darwin*)
11314 # if libdl is installed we need to link against it
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11317 if ${ac_cv_lib_dl_dlopen+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldl $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dlopen ();
11332 int
11333 main ()
11334 {
11335 return dlopen ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dl_dlopen=yes
11342 else
11343 ac_cv_lib_dl_dlopen=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11351 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11353 else
11354
11355 lt_cv_dlopen="dyld"
11356 lt_cv_dlopen_libs=
11357 lt_cv_dlopen_self=yes
11358
11359 fi
11360
11361 ;;
11362
11363 *)
11364 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11365 if test "x$ac_cv_func_shl_load" = xyes; then :
11366 lt_cv_dlopen="shl_load"
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11369 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11370 if ${ac_cv_lib_dld_shl_load+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-ldld $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char shl_load ();
11385 int
11386 main ()
11387 {
11388 return shl_load ();
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_dld_shl_load=yes
11395 else
11396 ac_cv_lib_dld_shl_load=no
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11401 fi
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11403 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11404 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11405 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11406 else
11407 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11408 if test "x$ac_cv_func_dlopen" = xyes; then :
11409 lt_cv_dlopen="dlopen"
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11412 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11413 if ${ac_cv_lib_dl_dlopen+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-ldl $LIBS"
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char dlopen ();
11428 int
11429 main ()
11430 {
11431 return dlopen ();
11432 ;
11433 return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_lib_dl_dlopen=yes
11438 else
11439 ac_cv_lib_dl_dlopen=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11447 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11451 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11452 if ${ac_cv_lib_svld_dlopen+:} false; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_check_lib_save_LIBS=$LIBS
11456 LIBS="-lsvld $LIBS"
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char dlopen ();
11467 int
11468 main ()
11469 {
11470 return dlopen ();
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 ac_cv_lib_svld_dlopen=yes
11477 else
11478 ac_cv_lib_svld_dlopen=no
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11485 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11486 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11490 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11491 if ${ac_cv_lib_dld_dld_link+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldld $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char dld_link ();
11506 int
11507 main ()
11508 {
11509 return dld_link ();
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_dld_dld_link=yes
11516 else
11517 ac_cv_lib_dld_dld_link=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11524 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11525 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11527 fi
11528
11529
11530 fi
11531
11532
11533 fi
11534
11535
11536 fi
11537
11538
11539 fi
11540
11541
11542 fi
11543
11544 ;;
11545 esac
11546
11547 if test "x$lt_cv_dlopen" != xno; then
11548 enable_dlopen=yes
11549 else
11550 enable_dlopen=no
11551 fi
11552
11553 case $lt_cv_dlopen in
11554 dlopen)
11555 save_CPPFLAGS="$CPPFLAGS"
11556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11557
11558 save_LDFLAGS="$LDFLAGS"
11559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11560
11561 save_LIBS="$LIBS"
11562 LIBS="$lt_cv_dlopen_libs $LIBS"
11563
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11565 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11566 if ${lt_cv_dlopen_self+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test "$cross_compiling" = yes; then :
11570 lt_cv_dlopen_self=cross
11571 else
11572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11573 lt_status=$lt_dlunknown
11574 cat > conftest.$ac_ext <<_LT_EOF
11575 #line 11575 "configure"
11576 #include "confdefs.h"
11577
11578 #if HAVE_DLFCN_H
11579 #include <dlfcn.h>
11580 #endif
11581
11582 #include <stdio.h>
11583
11584 #ifdef RTLD_GLOBAL
11585 # define LT_DLGLOBAL RTLD_GLOBAL
11586 #else
11587 # ifdef DL_GLOBAL
11588 # define LT_DLGLOBAL DL_GLOBAL
11589 # else
11590 # define LT_DLGLOBAL 0
11591 # endif
11592 #endif
11593
11594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11595 find out it does not work in some platform. */
11596 #ifndef LT_DLLAZY_OR_NOW
11597 # ifdef RTLD_LAZY
11598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11599 # else
11600 # ifdef DL_LAZY
11601 # define LT_DLLAZY_OR_NOW DL_LAZY
11602 # else
11603 # ifdef RTLD_NOW
11604 # define LT_DLLAZY_OR_NOW RTLD_NOW
11605 # else
11606 # ifdef DL_NOW
11607 # define LT_DLLAZY_OR_NOW DL_NOW
11608 # else
11609 # define LT_DLLAZY_OR_NOW 0
11610 # endif
11611 # endif
11612 # endif
11613 # endif
11614 #endif
11615
11616 /* When -fvisbility=hidden is used, assume the code has been annotated
11617 correspondingly for the symbols needed. */
11618 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11619 void fnord () __attribute__((visibility("default")));
11620 #endif
11621
11622 void fnord () { int i=42; }
11623 int main ()
11624 {
11625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11626 int status = $lt_dlunknown;
11627
11628 if (self)
11629 {
11630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11631 else
11632 {
11633 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11634 else puts (dlerror ());
11635 }
11636 /* dlclose (self); */
11637 }
11638 else
11639 puts (dlerror ());
11640
11641 return status;
11642 }
11643 _LT_EOF
11644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11645 (eval $ac_link) 2>&5
11646 ac_status=$?
11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11649 (./conftest; exit; ) >&5 2>/dev/null
11650 lt_status=$?
11651 case x$lt_status in
11652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11655 esac
11656 else :
11657 # compilation failed
11658 lt_cv_dlopen_self=no
11659 fi
11660 fi
11661 rm -fr conftest*
11662
11663
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11666 $as_echo "$lt_cv_dlopen_self" >&6; }
11667
11668 if test "x$lt_cv_dlopen_self" = xyes; then
11669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11672 if ${lt_cv_dlopen_self_static+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 if test "$cross_compiling" = yes; then :
11676 lt_cv_dlopen_self_static=cross
11677 else
11678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11679 lt_status=$lt_dlunknown
11680 cat > conftest.$ac_ext <<_LT_EOF
11681 #line 11681 "configure"
11682 #include "confdefs.h"
11683
11684 #if HAVE_DLFCN_H
11685 #include <dlfcn.h>
11686 #endif
11687
11688 #include <stdio.h>
11689
11690 #ifdef RTLD_GLOBAL
11691 # define LT_DLGLOBAL RTLD_GLOBAL
11692 #else
11693 # ifdef DL_GLOBAL
11694 # define LT_DLGLOBAL DL_GLOBAL
11695 # else
11696 # define LT_DLGLOBAL 0
11697 # endif
11698 #endif
11699
11700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11701 find out it does not work in some platform. */
11702 #ifndef LT_DLLAZY_OR_NOW
11703 # ifdef RTLD_LAZY
11704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11705 # else
11706 # ifdef DL_LAZY
11707 # define LT_DLLAZY_OR_NOW DL_LAZY
11708 # else
11709 # ifdef RTLD_NOW
11710 # define LT_DLLAZY_OR_NOW RTLD_NOW
11711 # else
11712 # ifdef DL_NOW
11713 # define LT_DLLAZY_OR_NOW DL_NOW
11714 # else
11715 # define LT_DLLAZY_OR_NOW 0
11716 # endif
11717 # endif
11718 # endif
11719 # endif
11720 #endif
11721
11722 /* When -fvisbility=hidden is used, assume the code has been annotated
11723 correspondingly for the symbols needed. */
11724 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11725 void fnord () __attribute__((visibility("default")));
11726 #endif
11727
11728 void fnord () { int i=42; }
11729 int main ()
11730 {
11731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11732 int status = $lt_dlunknown;
11733
11734 if (self)
11735 {
11736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11737 else
11738 {
11739 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11740 else puts (dlerror ());
11741 }
11742 /* dlclose (self); */
11743 }
11744 else
11745 puts (dlerror ());
11746
11747 return status;
11748 }
11749 _LT_EOF
11750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11751 (eval $ac_link) 2>&5
11752 ac_status=$?
11753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11755 (./conftest; exit; ) >&5 2>/dev/null
11756 lt_status=$?
11757 case x$lt_status in
11758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11760 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11761 esac
11762 else :
11763 # compilation failed
11764 lt_cv_dlopen_self_static=no
11765 fi
11766 fi
11767 rm -fr conftest*
11768
11769
11770 fi
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11772 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11773 fi
11774
11775 CPPFLAGS="$save_CPPFLAGS"
11776 LDFLAGS="$save_LDFLAGS"
11777 LIBS="$save_LIBS"
11778 ;;
11779 esac
11780
11781 case $lt_cv_dlopen_self in
11782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11783 *) enable_dlopen_self=unknown ;;
11784 esac
11785
11786 case $lt_cv_dlopen_self_static in
11787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11788 *) enable_dlopen_self_static=unknown ;;
11789 esac
11790 fi
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808 striplib=
11809 old_striplib=
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11811 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11812 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11816 $as_echo "yes" >&6; }
11817 else
11818 # FIXME - insert some real tests, host_os isn't really good enough
11819 case $host_os in
11820 darwin*)
11821 if test -n "$STRIP" ; then
11822 striplib="$STRIP -x"
11823 old_striplib="$STRIP -S"
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825 $as_echo "yes" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830 ;;
11831 *)
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 ;;
11835 esac
11836 fi
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849 # Report which library types will actually be built
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11851 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11853 $as_echo "$can_build_shared" >&6; }
11854
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11856 $as_echo_n "checking whether to build shared libraries... " >&6; }
11857 test "$can_build_shared" = "no" && enable_shared=no
11858
11859 # On AIX, shared libraries and static libraries use the same namespace, and
11860 # are all built from PIC.
11861 case $host_os in
11862 aix3*)
11863 test "$enable_shared" = yes && enable_static=no
11864 if test -n "$RANLIB"; then
11865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11866 postinstall_cmds='$RANLIB $lib'
11867 fi
11868 ;;
11869
11870 aix[4-9]*)
11871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11872 test "$enable_shared" = yes && enable_static=no
11873 fi
11874 ;;
11875 esac
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11877 $as_echo "$enable_shared" >&6; }
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11880 $as_echo_n "checking whether to build static libraries... " >&6; }
11881 # Make sure either enable_shared or enable_static is yes.
11882 test "$enable_shared" = yes || enable_static=yes
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11884 $as_echo "$enable_static" >&6; }
11885
11886
11887
11888
11889 fi
11890 ac_ext=c
11891 ac_cpp='$CPP $CPPFLAGS'
11892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895
11896 CC="$lt_save_CC"
11897
11898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11900 (test "X$CXX" != "Xg++"))) ; then
11901 ac_ext=cpp
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11908 if test -z "$CXXCPP"; then
11909 if ${ac_cv_prog_CXXCPP+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 # Double quotes because CXXCPP needs to be expanded
11913 for CXXCPP in "$CXX -E" "/lib/cpp"
11914 do
11915 ac_preproc_ok=false
11916 for ac_cxx_preproc_warn_flag in '' yes
11917 do
11918 # Use a header file that comes with gcc, so configuring glibc
11919 # with a fresh cross-compiler works.
11920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 # <limits.h> exists even on freestanding compilers.
11922 # On the NeXT, cc -E runs the code through the compiler's parser,
11923 # not just through cpp. "Syntax error" is here to catch this case.
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931 Syntax error
11932 _ACEOF
11933 if ac_fn_cxx_try_cpp "$LINENO"; then :
11934
11935 else
11936 # Broken: fails on valid input.
11937 continue
11938 fi
11939 rm -f conftest.err conftest.i conftest.$ac_ext
11940
11941 # OK, works on sane cases. Now check whether nonexistent headers
11942 # can be detected and how.
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945 #include <ac_nonexistent.h>
11946 _ACEOF
11947 if ac_fn_cxx_try_cpp "$LINENO"; then :
11948 # Broken: success on invalid input.
11949 continue
11950 else
11951 # Passes both tests.
11952 ac_preproc_ok=:
11953 break
11954 fi
11955 rm -f conftest.err conftest.i conftest.$ac_ext
11956
11957 done
11958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11959 rm -f conftest.i conftest.err conftest.$ac_ext
11960 if $ac_preproc_ok; then :
11961 break
11962 fi
11963
11964 done
11965 ac_cv_prog_CXXCPP=$CXXCPP
11966
11967 fi
11968 CXXCPP=$ac_cv_prog_CXXCPP
11969 else
11970 ac_cv_prog_CXXCPP=$CXXCPP
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11973 $as_echo "$CXXCPP" >&6; }
11974 ac_preproc_ok=false
11975 for ac_cxx_preproc_warn_flag in '' yes
11976 do
11977 # Use a header file that comes with gcc, so configuring glibc
11978 # with a fresh cross-compiler works.
11979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980 # <limits.h> exists even on freestanding compilers.
11981 # On the NeXT, cc -E runs the code through the compiler's parser,
11982 # not just through cpp. "Syntax error" is here to catch this case.
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990 Syntax error
11991 _ACEOF
11992 if ac_fn_cxx_try_cpp "$LINENO"; then :
11993
11994 else
11995 # Broken: fails on valid input.
11996 continue
11997 fi
11998 rm -f conftest.err conftest.i conftest.$ac_ext
11999
12000 # OK, works on sane cases. Now check whether nonexistent headers
12001 # can be detected and how.
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 #include <ac_nonexistent.h>
12005 _ACEOF
12006 if ac_fn_cxx_try_cpp "$LINENO"; then :
12007 # Broken: success on invalid input.
12008 continue
12009 else
12010 # Passes both tests.
12011 ac_preproc_ok=:
12012 break
12013 fi
12014 rm -f conftest.err conftest.i conftest.$ac_ext
12015
12016 done
12017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12018 rm -f conftest.i conftest.err conftest.$ac_ext
12019 if $ac_preproc_ok; then :
12020
12021 else
12022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12024 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12025 See \`config.log' for more details" "$LINENO" 5; }
12026 fi
12027
12028 ac_ext=c
12029 ac_cpp='$CPP $CPPFLAGS'
12030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033
12034 else
12035 _lt_caught_CXX_error=yes
12036 fi
12037
12038 ac_ext=cpp
12039 ac_cpp='$CXXCPP $CPPFLAGS'
12040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12043
12044 archive_cmds_need_lc_CXX=no
12045 allow_undefined_flag_CXX=
12046 always_export_symbols_CXX=no
12047 archive_expsym_cmds_CXX=
12048 compiler_needs_object_CXX=no
12049 export_dynamic_flag_spec_CXX=
12050 hardcode_direct_CXX=no
12051 hardcode_direct_absolute_CXX=no
12052 hardcode_libdir_flag_spec_CXX=
12053 hardcode_libdir_flag_spec_ld_CXX=
12054 hardcode_libdir_separator_CXX=
12055 hardcode_minus_L_CXX=no
12056 hardcode_shlibpath_var_CXX=unsupported
12057 hardcode_automatic_CXX=no
12058 inherit_rpath_CXX=no
12059 module_cmds_CXX=
12060 module_expsym_cmds_CXX=
12061 link_all_deplibs_CXX=unknown
12062 old_archive_cmds_CXX=$old_archive_cmds
12063 reload_flag_CXX=$reload_flag
12064 reload_cmds_CXX=$reload_cmds
12065 no_undefined_flag_CXX=
12066 whole_archive_flag_spec_CXX=
12067 enable_shared_with_static_runtimes_CXX=no
12068
12069 # Source file extension for C++ test sources.
12070 ac_ext=cpp
12071
12072 # Object file extension for compiled C++ test sources.
12073 objext=o
12074 objext_CXX=$objext
12075
12076 # No sense in running all these tests if we already determined that
12077 # the CXX compiler isn't working. Some variables (like enable_shared)
12078 # are currently assumed to apply to all compilers on this platform,
12079 # and will be corrupted by setting them based on a non-working compiler.
12080 if test "$_lt_caught_CXX_error" != yes; then
12081 # Code to be used in simple compile tests
12082 lt_simple_compile_test_code="int some_variable = 0;"
12083
12084 # Code to be used in simple link tests
12085 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12086
12087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12088
12089
12090
12091
12092
12093
12094 # If no C compiler was specified, use CC.
12095 LTCC=${LTCC-"$CC"}
12096
12097 # If no C compiler flags were specified, use CFLAGS.
12098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12099
12100 # Allow CC to be a program name with arguments.
12101 compiler=$CC
12102
12103
12104 # save warnings/boilerplate of simple test code
12105 ac_outfile=conftest.$ac_objext
12106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_compiler_boilerplate=`cat conftest.err`
12109 $RM conftest*
12110
12111 ac_outfile=conftest.$ac_objext
12112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12114 _lt_linker_boilerplate=`cat conftest.err`
12115 $RM -r conftest*
12116
12117
12118 # Allow CC to be a program name with arguments.
12119 lt_save_CC=$CC
12120 lt_save_LD=$LD
12121 lt_save_GCC=$GCC
12122 GCC=$GXX
12123 lt_save_with_gnu_ld=$with_gnu_ld
12124 lt_save_path_LD=$lt_cv_path_LD
12125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12127 else
12128 $as_unset lt_cv_prog_gnu_ld
12129 fi
12130 if test -n "${lt_cv_path_LDCXX+set}"; then
12131 lt_cv_path_LD=$lt_cv_path_LDCXX
12132 else
12133 $as_unset lt_cv_path_LD
12134 fi
12135 test -z "${LDCXX+set}" || LD=$LDCXX
12136 CC=${CXX-"c++"}
12137 compiler=$CC
12138 compiler_CXX=$CC
12139 for cc_temp in $compiler""; do
12140 case $cc_temp in
12141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12143 \-*) ;;
12144 *) break;;
12145 esac
12146 done
12147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12148
12149
12150 if test -n "$compiler"; then
12151 # We don't want -fno-exception when compiling C++ code, so set the
12152 # no_builtin_flag separately
12153 if test "$GXX" = yes; then
12154 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12155 else
12156 lt_prog_compiler_no_builtin_flag_CXX=
12157 fi
12158
12159 if test "$GXX" = yes; then
12160 # Set up default GNU C++ configuration
12161
12162
12163
12164 # Check whether --with-gnu-ld was given.
12165 if test "${with_gnu_ld+set}" = set; then :
12166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12167 else
12168 with_gnu_ld=no
12169 fi
12170
12171 ac_prog=ld
12172 if test "$GCC" = yes; then
12173 # Check if gcc -print-prog-name=ld gives a path.
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12175 $as_echo_n "checking for ld used by $CC... " >&6; }
12176 case $host in
12177 *-*-mingw*)
12178 # gcc leaves a trailing carriage return which upsets mingw
12179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12180 *)
12181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12182 esac
12183 case $ac_prog in
12184 # Accept absolute paths.
12185 [\\/]* | ?:[\\/]*)
12186 re_direlt='/[^/][^/]*/\.\./'
12187 # Canonicalize the pathname of ld
12188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12191 done
12192 test -z "$LD" && LD="$ac_prog"
12193 ;;
12194 "")
12195 # If it fails, then pretend we aren't using GCC.
12196 ac_prog=ld
12197 ;;
12198 *)
12199 # If it is relative, then search for the first ld in PATH.
12200 with_gnu_ld=unknown
12201 ;;
12202 esac
12203 elif test "$with_gnu_ld" = yes; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12205 $as_echo_n "checking for GNU ld... " >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12208 $as_echo_n "checking for non-GNU ld... " >&6; }
12209 fi
12210 if ${lt_cv_path_LD+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 if test -z "$LD"; then
12214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12215 for ac_dir in $PATH; do
12216 IFS="$lt_save_ifs"
12217 test -z "$ac_dir" && ac_dir=.
12218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12219 lt_cv_path_LD="$ac_dir/$ac_prog"
12220 # Check to see if the program is GNU ld. I'd rather use --version,
12221 # but apparently some variants of GNU ld only accept -v.
12222 # Break only if it was the GNU/non-GNU ld that we prefer.
12223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12224 *GNU* | *'with BFD'*)
12225 test "$with_gnu_ld" != no && break
12226 ;;
12227 *)
12228 test "$with_gnu_ld" != yes && break
12229 ;;
12230 esac
12231 fi
12232 done
12233 IFS="$lt_save_ifs"
12234 else
12235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12236 fi
12237 fi
12238
12239 LD="$lt_cv_path_LD"
12240 if test -n "$LD"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12242 $as_echo "$LD" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12250 if ${lt_cv_prog_gnu_ld+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12254 case `$LD -v 2>&1 </dev/null` in
12255 *GNU* | *'with BFD'*)
12256 lt_cv_prog_gnu_ld=yes
12257 ;;
12258 *)
12259 lt_cv_prog_gnu_ld=no
12260 ;;
12261 esac
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12265 with_gnu_ld=$lt_cv_prog_gnu_ld
12266
12267
12268
12269
12270
12271
12272
12273 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12274 # archiving commands below assume that GNU ld is being used.
12275 if test "$with_gnu_ld" = yes; then
12276 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 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'
12278
12279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12281
12282 # If archive_cmds runs LD, not CC, wlarc should be empty
12283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12284 # investigate it a little bit more. (MM)
12285 wlarc='${wl}'
12286
12287 # ancient GNU ld didn't support --whole-archive et. al.
12288 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12289 $GREP 'no-whole-archive' > /dev/null; then
12290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12291 else
12292 whole_archive_flag_spec_CXX=
12293 fi
12294 else
12295 with_gnu_ld=no
12296 wlarc=
12297
12298 # A generic and very simple default shared library creation
12299 # command for GNU C++ for the case where it uses the native
12300 # linker, instead of GNU ld. If possible, this setting should
12301 # overridden to take advantage of the native linker features on
12302 # the platform it is being used on.
12303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12304 fi
12305
12306 # Commands to make compiler produce verbose output that lists
12307 # what "hidden" libraries, object files and flags are used when
12308 # linking a shared library.
12309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12310
12311 else
12312 GXX=no
12313 with_gnu_ld=no
12314 wlarc=
12315 fi
12316
12317 # PORTME: fill in a description of your system's C++ link characteristics
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12320 ld_shlibs_CXX=yes
12321 case $host_os in
12322 aix3*)
12323 # FIXME: insert proper C++ library support
12324 ld_shlibs_CXX=no
12325 ;;
12326 aix[4-9]*)
12327 if test "$host_cpu" = ia64; then
12328 # On IA64, the linker does run time linking by default, so we don't
12329 # have to do anything special.
12330 aix_use_runtimelinking=no
12331 exp_sym_flag='-Bexport'
12332 no_entry_flag=""
12333 else
12334 aix_use_runtimelinking=no
12335
12336 # Test if we are trying to use run time linking or normal
12337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12338 # need to do runtime linking.
12339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12340 for ld_flag in $LDFLAGS; do
12341 case $ld_flag in
12342 *-brtl*)
12343 aix_use_runtimelinking=yes
12344 break
12345 ;;
12346 esac
12347 done
12348 ;;
12349 esac
12350
12351 exp_sym_flag='-bexport'
12352 no_entry_flag='-bnoentry'
12353 fi
12354
12355 # When large executables or shared objects are built, AIX ld can
12356 # have problems creating the table of contents. If linking a library
12357 # or program results in "error TOC overflow" add -mminimal-toc to
12358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12360
12361 archive_cmds_CXX=''
12362 hardcode_direct_CXX=yes
12363 hardcode_direct_absolute_CXX=yes
12364 hardcode_libdir_separator_CXX=':'
12365 link_all_deplibs_CXX=yes
12366 file_list_spec_CXX='${wl}-f,'
12367
12368 if test "$GXX" = yes; then
12369 case $host_os in aix4.[012]|aix4.[012].*)
12370 # We only want to do this on AIX 4.2 and lower, the check
12371 # below for broken collect2 doesn't work under 4.3+
12372 collect2name=`${CC} -print-prog-name=collect2`
12373 if test -f "$collect2name" &&
12374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12375 then
12376 # We have reworked collect2
12377 :
12378 else
12379 # We have old collect2
12380 hardcode_direct_CXX=unsupported
12381 # It fails to find uninstalled libraries when the uninstalled
12382 # path is not listed in the libpath. Setting hardcode_minus_L
12383 # to unsupported forces relinking
12384 hardcode_minus_L_CXX=yes
12385 hardcode_libdir_flag_spec_CXX='-L$libdir'
12386 hardcode_libdir_separator_CXX=
12387 fi
12388 esac
12389 shared_flag='-shared'
12390 if test "$aix_use_runtimelinking" = yes; then
12391 shared_flag="$shared_flag "'${wl}-G'
12392 fi
12393 else
12394 # not using gcc
12395 if test "$host_cpu" = ia64; then
12396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12397 # chokes on -Wl,-G. The following line is correct:
12398 shared_flag='-G'
12399 else
12400 if test "$aix_use_runtimelinking" = yes; then
12401 shared_flag='${wl}-G'
12402 else
12403 shared_flag='${wl}-bM:SRE'
12404 fi
12405 fi
12406 fi
12407
12408 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12409 # It seems that -bexpall does not export symbols beginning with
12410 # underscore (_), so it is better to generate a list of symbols to
12411 # export.
12412 always_export_symbols_CXX=yes
12413 if test "$aix_use_runtimelinking" = yes; then
12414 # Warning - without using the other runtime loading flags (-brtl),
12415 # -berok will link without error, but may produce a broken library.
12416 allow_undefined_flag_CXX='-berok'
12417 # Determine the default libpath from the value encoded in an empty
12418 # executable.
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421
12422 int
12423 main ()
12424 {
12425
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_cxx_try_link "$LINENO"; then :
12431
12432 lt_aix_libpath_sed='
12433 /Import File Strings/,/^$/ {
12434 /^0/ {
12435 s/^0 *\(.*\)$/\1/
12436 p
12437 }
12438 }'
12439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 # Check for a 64-bit object if we didn't find anything.
12441 if test -z "$aix_libpath"; then
12442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12443 fi
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12448
12449 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12450
12451 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12452 else
12453 if test "$host_cpu" = ia64; then
12454 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12455 allow_undefined_flag_CXX="-z nodefs"
12456 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"
12457 else
12458 # Determine the default libpath from the value encoded in an
12459 # empty executable.
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462
12463 int
12464 main ()
12465 {
12466
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_link "$LINENO"; then :
12472
12473 lt_aix_libpath_sed='
12474 /Import File Strings/,/^$/ {
12475 /^0/ {
12476 s/^0 *\(.*\)$/\1/
12477 p
12478 }
12479 }'
12480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12481 # Check for a 64-bit object if we didn't find anything.
12482 if test -z "$aix_libpath"; then
12483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12484 fi
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12489
12490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12491 # Warning - without using the other run time loading flags,
12492 # -berok will link without error, but may produce a broken library.
12493 no_undefined_flag_CXX=' ${wl}-bernotok'
12494 allow_undefined_flag_CXX=' ${wl}-berok'
12495 if test "$with_gnu_ld" = yes; then
12496 # We only use this code for GNU lds that support --whole-archive.
12497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12498 else
12499 # Exported symbols can be pulled into shared objects from archives
12500 whole_archive_flag_spec_CXX='$convenience'
12501 fi
12502 archive_cmds_need_lc_CXX=yes
12503 # This is similar to how AIX traditionally builds its shared
12504 # libraries.
12505 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'
12506 fi
12507 fi
12508 ;;
12509
12510 beos*)
12511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12512 allow_undefined_flag_CXX=unsupported
12513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12514 # support --undefined. This deserves some investigation. FIXME
12515 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12516 else
12517 ld_shlibs_CXX=no
12518 fi
12519 ;;
12520
12521 chorus*)
12522 case $cc_basename in
12523 *)
12524 # FIXME: insert proper C++ library support
12525 ld_shlibs_CXX=no
12526 ;;
12527 esac
12528 ;;
12529
12530 cygwin* | mingw* | pw32* | cegcc*)
12531 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12532 # as there is no search path for DLLs.
12533 hardcode_libdir_flag_spec_CXX='-L$libdir'
12534 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12535 allow_undefined_flag_CXX=unsupported
12536 always_export_symbols_CXX=no
12537 enable_shared_with_static_runtimes_CXX=yes
12538
12539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12540 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'
12541 # If the export-symbols file already is a .def file (1st line
12542 # is EXPORTS), use it as is; otherwise, prepend...
12543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12544 cp $export_symbols $output_objdir/$soname.def;
12545 else
12546 echo EXPORTS > $output_objdir/$soname.def;
12547 cat $export_symbols >> $output_objdir/$soname.def;
12548 fi~
12549 $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'
12550 else
12551 ld_shlibs_CXX=no
12552 fi
12553 ;;
12554 darwin* | rhapsody*)
12555
12556
12557 archive_cmds_need_lc_CXX=no
12558 hardcode_direct_CXX=no
12559 hardcode_automatic_CXX=yes
12560 hardcode_shlibpath_var_CXX=unsupported
12561 if test "$lt_cv_ld_force_load" = "yes"; then
12562 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\"`'
12563 else
12564 whole_archive_flag_spec_CXX=''
12565 fi
12566 link_all_deplibs_CXX=yes
12567 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12568 case $cc_basename in
12569 ifort*) _lt_dar_can_shared=yes ;;
12570 *) _lt_dar_can_shared=$GCC ;;
12571 esac
12572 if test "$_lt_dar_can_shared" = "yes"; then
12573 output_verbose_link_cmd=func_echo_all
12574 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}"
12575 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12576 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}"
12577 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}"
12578 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12579 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}"
12580 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}"
12581 fi
12582
12583 else
12584 ld_shlibs_CXX=no
12585 fi
12586
12587 ;;
12588
12589 dgux*)
12590 case $cc_basename in
12591 ec++*)
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 ghcx*)
12596 # Green Hills C++ Compiler
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 *)
12601 # FIXME: insert proper C++ library support
12602 ld_shlibs_CXX=no
12603 ;;
12604 esac
12605 ;;
12606
12607 freebsd2.*)
12608 # C++ shared libraries reported to be fairly broken before
12609 # switch to ELF
12610 ld_shlibs_CXX=no
12611 ;;
12612
12613 freebsd-elf*)
12614 archive_cmds_need_lc_CXX=no
12615 ;;
12616
12617 freebsd* | dragonfly*)
12618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12619 # conventions
12620 ld_shlibs_CXX=yes
12621 ;;
12622
12623 gnu*)
12624 ;;
12625
12626 haiku*)
12627 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628 link_all_deplibs_CXX=yes
12629 ;;
12630
12631 hpux9*)
12632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12633 hardcode_libdir_separator_CXX=:
12634 export_dynamic_flag_spec_CXX='${wl}-E'
12635 hardcode_direct_CXX=yes
12636 hardcode_minus_L_CXX=yes # Not in the search PATH,
12637 # but as the default
12638 # location of the library.
12639
12640 case $cc_basename in
12641 CC*)
12642 # FIXME: insert proper C++ library support
12643 ld_shlibs_CXX=no
12644 ;;
12645 aCC*)
12646 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12647 # Commands to make compiler produce verbose output that lists
12648 # what "hidden" libraries, object files and flags are used when
12649 # linking a shared library.
12650 #
12651 # There doesn't appear to be a way to prevent this compiler from
12652 # explicitly linking system object files so we need to strip them
12653 # from the output so that they don't get included in the library
12654 # dependencies.
12655 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"'
12656 ;;
12657 *)
12658 if test "$GXX" = yes; then
12659 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12660 else
12661 # FIXME: insert proper C++ library support
12662 ld_shlibs_CXX=no
12663 fi
12664 ;;
12665 esac
12666 ;;
12667
12668 hpux10*|hpux11*)
12669 if test $with_gnu_ld = no; then
12670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12671 hardcode_libdir_separator_CXX=:
12672
12673 case $host_cpu in
12674 hppa*64*|ia64*)
12675 ;;
12676 *)
12677 export_dynamic_flag_spec_CXX='${wl}-E'
12678 ;;
12679 esac
12680 fi
12681 case $host_cpu in
12682 hppa*64*|ia64*)
12683 hardcode_direct_CXX=no
12684 hardcode_shlibpath_var_CXX=no
12685 ;;
12686 *)
12687 hardcode_direct_CXX=yes
12688 hardcode_direct_absolute_CXX=yes
12689 hardcode_minus_L_CXX=yes # Not in the search PATH,
12690 # but as the default
12691 # location of the library.
12692 ;;
12693 esac
12694
12695 case $cc_basename in
12696 CC*)
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 aCC*)
12701 case $host_cpu in
12702 hppa*64*)
12703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704 ;;
12705 ia64*)
12706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12707 ;;
12708 *)
12709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 ;;
12711 esac
12712 # Commands to make compiler produce verbose output that lists
12713 # what "hidden" libraries, object files and flags are used when
12714 # linking a shared library.
12715 #
12716 # There doesn't appear to be a way to prevent this compiler from
12717 # explicitly linking system object files so we need to strip them
12718 # from the output so that they don't get included in the library
12719 # dependencies.
12720 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"'
12721 ;;
12722 *)
12723 if test "$GXX" = yes; then
12724 if test $with_gnu_ld = no; then
12725 case $host_cpu in
12726 hppa*64*)
12727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12728 ;;
12729 ia64*)
12730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12731 ;;
12732 *)
12733 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12734 ;;
12735 esac
12736 fi
12737 else
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12740 fi
12741 ;;
12742 esac
12743 ;;
12744
12745 interix[3-9]*)
12746 hardcode_direct_CXX=no
12747 hardcode_shlibpath_var_CXX=no
12748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12749 export_dynamic_flag_spec_CXX='${wl}-E'
12750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12751 # Instead, shared libraries are loaded at an image base (0x10000000 by
12752 # default) and relocated if they conflict, which is a slow very memory
12753 # consuming and fragmenting process. To avoid this, we pick a random,
12754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12756 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'
12757 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'
12758 ;;
12759 irix5* | irix6*)
12760 case $cc_basename in
12761 CC*)
12762 # SGI C++
12763 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'
12764
12765 # Archives containing C++ object files must be created using
12766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12767 # necessary to make sure instantiated templates are included
12768 # in the archive.
12769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12770 ;;
12771 *)
12772 if test "$GXX" = yes; then
12773 if test "$with_gnu_ld" = no; then
12774 archive_cmds_CXX='$CC -shared -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'
12775 else
12776 archive_cmds_CXX='$CC -shared -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'
12777 fi
12778 fi
12779 link_all_deplibs_CXX=yes
12780 ;;
12781 esac
12782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12783 hardcode_libdir_separator_CXX=:
12784 inherit_rpath_CXX=yes
12785 ;;
12786
12787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12788 case $cc_basename in
12789 KCC*)
12790 # Kuck and Associates, Inc. (KAI) C++ Compiler
12791
12792 # KCC will only create a shared library if the output file
12793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12794 # to its proper name (with version) after linking.
12795 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'
12796 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'
12797 # Commands to make compiler produce verbose output that lists
12798 # what "hidden" libraries, object files and flags are used when
12799 # linking a shared library.
12800 #
12801 # There doesn't appear to be a way to prevent this compiler from
12802 # explicitly linking system object files so we need to strip them
12803 # from the output so that they don't get included in the library
12804 # dependencies.
12805 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"'
12806
12807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12809
12810 # Archives containing C++ object files must be created using
12811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12813 ;;
12814 icpc* | ecpc* )
12815 # Intel C++
12816 with_gnu_ld=yes
12817 # version 8.0 and above of icpc choke on multiply defined symbols
12818 # if we add $predep_objects and $postdep_objects, however 7.1 and
12819 # earlier do not add the objects themselves.
12820 case `$CC -V 2>&1` in
12821 *"Version 7."*)
12822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 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'
12824 ;;
12825 *) # Version 8.0 or newer
12826 tmp_idyn=
12827 case $host_cpu in
12828 ia64*) tmp_idyn=' -i_dynamic';;
12829 esac
12830 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 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'
12832 ;;
12833 esac
12834 archive_cmds_need_lc_CXX=no
12835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12837 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12838 ;;
12839 pgCC* | pgcpp*)
12840 # Portland Group C++ compiler
12841 case `$CC -V` in
12842 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12843 prelink_cmds_CXX='tpldir=Template.dir~
12844 rm -rf $tpldir~
12845 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12846 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12847 old_archive_cmds_CXX='tpldir=Template.dir~
12848 rm -rf $tpldir~
12849 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12850 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12851 $RANLIB $oldlib'
12852 archive_cmds_CXX='tpldir=Template.dir~
12853 rm -rf $tpldir~
12854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12855 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12856 archive_expsym_cmds_CXX='tpldir=Template.dir~
12857 rm -rf $tpldir~
12858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12859 $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'
12860 ;;
12861 *) # Version 6 and above use weak symbols
12862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12863 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'
12864 ;;
12865 esac
12866
12867 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12869 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'
12870 ;;
12871 cxx*)
12872 # Compaq C++
12873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12874 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'
12875
12876 runpath_var=LD_RUN_PATH
12877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12878 hardcode_libdir_separator_CXX=:
12879
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12883 #
12884 # There doesn't appear to be a way to prevent this compiler from
12885 # explicitly linking system object files so we need to strip them
12886 # from the output so that they don't get included in the library
12887 # dependencies.
12888 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'
12889 ;;
12890 xl* | mpixl* | bgxl*)
12891 # IBM XL 8.0 on PPC, with GNU ld
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12894 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 if test "x$supports_anon_versioning" = xyes; then
12896 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12898 echo "local: *; };" >> $output_objdir/$libname.ver~
12899 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12900 fi
12901 ;;
12902 *)
12903 case `$CC -V 2>&1 | sed 5q` in
12904 *Sun\ C*)
12905 # Sun C++ 5.9
12906 no_undefined_flag_CXX=' -zdefs'
12907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 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'
12909 hardcode_libdir_flag_spec_CXX='-R$libdir'
12910 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'
12911 compiler_needs_object_CXX=yes
12912
12913 # Not sure whether something based on
12914 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12915 # would be better.
12916 output_verbose_link_cmd='func_echo_all'
12917
12918 # Archives containing C++ object files must be created using
12919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12920 # necessary to make sure instantiated templates are included
12921 # in the archive.
12922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12923 ;;
12924 esac
12925 ;;
12926 esac
12927 ;;
12928
12929 lynxos*)
12930 # FIXME: insert proper C++ library support
12931 ld_shlibs_CXX=no
12932 ;;
12933
12934 m88k*)
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12937 ;;
12938
12939 mvs*)
12940 case $cc_basename in
12941 cxx*)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12944 ;;
12945 *)
12946 # FIXME: insert proper C++ library support
12947 ld_shlibs_CXX=no
12948 ;;
12949 esac
12950 ;;
12951
12952 netbsd*)
12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12955 wlarc=
12956 hardcode_libdir_flag_spec_CXX='-R$libdir'
12957 hardcode_direct_CXX=yes
12958 hardcode_shlibpath_var_CXX=no
12959 fi
12960 # Workaround some broken pre-1.5 toolchains
12961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12962 ;;
12963
12964 *nto* | *qnx*)
12965 ld_shlibs_CXX=yes
12966 ;;
12967
12968 openbsd2*)
12969 # C++ shared libraries are fairly broken
12970 ld_shlibs_CXX=no
12971 ;;
12972
12973 openbsd*)
12974 if test -f /usr/libexec/ld.so; then
12975 hardcode_direct_CXX=yes
12976 hardcode_shlibpath_var_CXX=no
12977 hardcode_direct_absolute_CXX=yes
12978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12982 export_dynamic_flag_spec_CXX='${wl}-E'
12983 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12984 fi
12985 output_verbose_link_cmd=func_echo_all
12986 else
12987 ld_shlibs_CXX=no
12988 fi
12989 ;;
12990
12991 osf3* | osf4* | osf5*)
12992 case $cc_basename in
12993 KCC*)
12994 # Kuck and Associates, Inc. (KAI) C++ Compiler
12995
12996 # KCC will only create a shared library if the output file
12997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12998 # to its proper name (with version) after linking.
12999 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'
13000
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002 hardcode_libdir_separator_CXX=:
13003
13004 # Archives containing C++ object files must be created using
13005 # the KAI C++ compiler.
13006 case $host in
13007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13009 esac
13010 ;;
13011 RCC*)
13012 # Rational C++ 2.4.1
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13015 ;;
13016 cxx*)
13017 case $host in
13018 osf3*)
13019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13020 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'
13021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13022 ;;
13023 *)
13024 allow_undefined_flag_CXX=' -expect_unresolved \*'
13025 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'
13026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13027 echo "-hidden">> $lib.exp~
13028 $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~
13029 $RM $lib.exp'
13030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13031 ;;
13032 esac
13033
13034 hardcode_libdir_separator_CXX=:
13035
13036 # Commands to make compiler produce verbose output that lists
13037 # what "hidden" libraries, object files and flags are used when
13038 # linking a shared library.
13039 #
13040 # There doesn't appear to be a way to prevent this compiler from
13041 # explicitly linking system object files so we need to strip them
13042 # from the output so that they don't get included in the library
13043 # dependencies.
13044 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"'
13045 ;;
13046 *)
13047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13049 case $host in
13050 osf3*)
13051 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'
13052 ;;
13053 *)
13054 archive_cmds_CXX='$CC -shared -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'
13055 ;;
13056 esac
13057
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059 hardcode_libdir_separator_CXX=:
13060
13061 # Commands to make compiler produce verbose output that lists
13062 # what "hidden" libraries, object files and flags are used when
13063 # linking a shared library.
13064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13065
13066 else
13067 # FIXME: insert proper C++ library support
13068 ld_shlibs_CXX=no
13069 fi
13070 ;;
13071 esac
13072 ;;
13073
13074 psos*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13077 ;;
13078
13079 sunos4*)
13080 case $cc_basename in
13081 CC*)
13082 # Sun C++ 4.x
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 lcc*)
13087 # Lucid
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 *)
13092 # FIXME: insert proper C++ library support
13093 ld_shlibs_CXX=no
13094 ;;
13095 esac
13096 ;;
13097
13098 solaris*)
13099 case $cc_basename in
13100 CC*)
13101 # Sun C++ 4.2, 5.x and Centerline C++
13102 archive_cmds_need_lc_CXX=yes
13103 no_undefined_flag_CXX=' -zdefs'
13104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13106 $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'
13107
13108 hardcode_libdir_flag_spec_CXX='-R$libdir'
13109 hardcode_shlibpath_var_CXX=no
13110 case $host_os in
13111 solaris2.[0-5] | solaris2.[0-5].*) ;;
13112 *)
13113 # The compiler driver will combine and reorder linker options,
13114 # but understands `-z linker_flag'.
13115 # Supported since Solaris 2.6 (maybe 2.5.1?)
13116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13117 ;;
13118 esac
13119 link_all_deplibs_CXX=yes
13120
13121 output_verbose_link_cmd='func_echo_all'
13122
13123 # Archives containing C++ object files must be created using
13124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13125 # necessary to make sure instantiated templates are included
13126 # in the archive.
13127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13128 ;;
13129 gcx*)
13130 # Green Hills C++ Compiler
13131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13132
13133 # The C++ compiler must be used to create the archive.
13134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13135 ;;
13136 *)
13137 # GNU C++ compiler with Solaris linker
13138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 else
13150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13151 # platform.
13152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13155
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13160 fi
13161
13162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13163 case $host_os in
13164 solaris2.[0-5] | solaris2.[0-5].*) ;;
13165 *)
13166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13167 ;;
13168 esac
13169 fi
13170 ;;
13171 esac
13172 ;;
13173
13174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13175 no_undefined_flag_CXX='${wl}-z,text'
13176 archive_cmds_need_lc_CXX=no
13177 hardcode_shlibpath_var_CXX=no
13178 runpath_var='LD_RUN_PATH'
13179
13180 case $cc_basename in
13181 CC*)
13182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13184 ;;
13185 *)
13186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188 ;;
13189 esac
13190 ;;
13191
13192 sysv5* | sco3.2v5* | sco5v6*)
13193 # Note: We can NOT use -z defs as we might desire, because we do not
13194 # link with -lc, and that would cause any symbols used from libc to
13195 # always be unresolved, which means just about no library would
13196 # ever link correctly. If we're not using GNU ld we use -z text
13197 # though, which does catch some bad symbols but isn't as heavy-handed
13198 # as -z defs.
13199 no_undefined_flag_CXX='${wl}-z,text'
13200 allow_undefined_flag_CXX='${wl}-z,nodefs'
13201 archive_cmds_need_lc_CXX=no
13202 hardcode_shlibpath_var_CXX=no
13203 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13204 hardcode_libdir_separator_CXX=':'
13205 link_all_deplibs_CXX=yes
13206 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13207 runpath_var='LD_RUN_PATH'
13208
13209 case $cc_basename in
13210 CC*)
13211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13214 '"$old_archive_cmds_CXX"
13215 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13216 '"$reload_cmds_CXX"
13217 ;;
13218 *)
13219 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221 ;;
13222 esac
13223 ;;
13224
13225 tandem*)
13226 case $cc_basename in
13227 NCC*)
13228 # NonStop-UX NCC 3.20
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 *)
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 esac
13237 ;;
13238
13239 vxworks*)
13240 # FIXME: insert proper C++ library support
13241 ld_shlibs_CXX=no
13242 ;;
13243
13244 *)
13245 # FIXME: insert proper C++ library support
13246 ld_shlibs_CXX=no
13247 ;;
13248 esac
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13251 $as_echo "$ld_shlibs_CXX" >&6; }
13252 test "$ld_shlibs_CXX" = no && can_build_shared=no
13253
13254 GCC_CXX="$GXX"
13255 LD_CXX="$LD"
13256
13257 ## CAVEAT EMPTOR:
13258 ## There is no encapsulation within the following macros, do not change
13259 ## the running order or otherwise move them around unless you know exactly
13260 ## what you are doing...
13261 # Dependencies to place before and after the object being linked:
13262 predep_objects_CXX=
13263 postdep_objects_CXX=
13264 predeps_CXX=
13265 postdeps_CXX=
13266 compiler_lib_search_path_CXX=
13267
13268 cat > conftest.$ac_ext <<_LT_EOF
13269 class Foo
13270 {
13271 public:
13272 Foo (void) { a = 0; }
13273 private:
13274 int a;
13275 };
13276 _LT_EOF
13277
13278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13279 (eval $ac_compile) 2>&5
13280 ac_status=$?
13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282 test $ac_status = 0; }; then
13283 # Parse the compiler output and extract the necessary
13284 # objects, libraries and library flags.
13285
13286 # Sentinel used to keep track of whether or not we are before
13287 # the conftest object file.
13288 pre_test_object_deps_done=no
13289
13290 for p in `eval "$output_verbose_link_cmd"`; do
13291 case $p in
13292
13293 -L* | -R* | -l*)
13294 # Some compilers place space between "-{L,R}" and the path.
13295 # Remove the space.
13296 if test $p = "-L" ||
13297 test $p = "-R"; then
13298 prev=$p
13299 continue
13300 else
13301 prev=
13302 fi
13303
13304 if test "$pre_test_object_deps_done" = no; then
13305 case $p in
13306 -L* | -R*)
13307 # Internal compiler library paths should come after those
13308 # provided the user. The postdeps already come after the
13309 # user supplied libs so there is no need to process them.
13310 if test -z "$compiler_lib_search_path_CXX"; then
13311 compiler_lib_search_path_CXX="${prev}${p}"
13312 else
13313 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13314 fi
13315 ;;
13316 # The "-l" case would never come before the object being
13317 # linked, so don't bother handling this case.
13318 esac
13319 else
13320 if test -z "$postdeps_CXX"; then
13321 postdeps_CXX="${prev}${p}"
13322 else
13323 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13324 fi
13325 fi
13326 ;;
13327
13328 *.$objext)
13329 # This assumes that the test object file only shows up
13330 # once in the compiler output.
13331 if test "$p" = "conftest.$objext"; then
13332 pre_test_object_deps_done=yes
13333 continue
13334 fi
13335
13336 if test "$pre_test_object_deps_done" = no; then
13337 if test -z "$predep_objects_CXX"; then
13338 predep_objects_CXX="$p"
13339 else
13340 predep_objects_CXX="$predep_objects_CXX $p"
13341 fi
13342 else
13343 if test -z "$postdep_objects_CXX"; then
13344 postdep_objects_CXX="$p"
13345 else
13346 postdep_objects_CXX="$postdep_objects_CXX $p"
13347 fi
13348 fi
13349 ;;
13350
13351 *) ;; # Ignore the rest.
13352
13353 esac
13354 done
13355
13356 # Clean up.
13357 rm -f a.out a.exe
13358 else
13359 echo "libtool.m4: error: problem compiling CXX test program"
13360 fi
13361
13362 $RM -f confest.$objext
13363
13364 # PORTME: override above test on systems where it is broken
13365 case $host_os in
13366 interix[3-9]*)
13367 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13368 # hack all around it, let's just trust "g++" to DTRT.
13369 predep_objects_CXX=
13370 postdep_objects_CXX=
13371 postdeps_CXX=
13372 ;;
13373
13374 linux*)
13375 case `$CC -V 2>&1 | sed 5q` in
13376 *Sun\ C*)
13377 # Sun C++ 5.9
13378
13379 # The more standards-conforming stlport4 library is
13380 # incompatible with the Cstd library. Avoid specifying
13381 # it if it's in CXXFLAGS. Ignore libCrun as
13382 # -library=stlport4 depends on it.
13383 case " $CXX $CXXFLAGS " in
13384 *" -library=stlport4 "*)
13385 solaris_use_stlport4=yes
13386 ;;
13387 esac
13388
13389 if test "$solaris_use_stlport4" != yes; then
13390 postdeps_CXX='-library=Cstd -library=Crun'
13391 fi
13392 ;;
13393 esac
13394 ;;
13395
13396 solaris*)
13397 case $cc_basename in
13398 CC*)
13399 # The more standards-conforming stlport4 library is
13400 # incompatible with the Cstd library. Avoid specifying
13401 # it if it's in CXXFLAGS. Ignore libCrun as
13402 # -library=stlport4 depends on it.
13403 case " $CXX $CXXFLAGS " in
13404 *" -library=stlport4 "*)
13405 solaris_use_stlport4=yes
13406 ;;
13407 esac
13408
13409 # Adding this requires a known-good setup of shared libraries for
13410 # Sun compiler versions before 5.6, else PIC objects from an old
13411 # archive will be linked into the output, leading to subtle bugs.
13412 if test "$solaris_use_stlport4" != yes; then
13413 postdeps_CXX='-library=Cstd -library=Crun'
13414 fi
13415 ;;
13416 esac
13417 ;;
13418 esac
13419
13420
13421 case " $postdeps_CXX " in
13422 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13423 esac
13424 compiler_lib_search_dirs_CXX=
13425 if test -n "${compiler_lib_search_path_CXX}"; then
13426 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13427 fi
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459 lt_prog_compiler_wl_CXX=
13460 lt_prog_compiler_pic_CXX=
13461 lt_prog_compiler_static_CXX=
13462
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13465
13466 # C++ specific cases for pic, static, wl, etc.
13467 if test "$GXX" = yes; then
13468 lt_prog_compiler_wl_CXX='-Wl,'
13469 lt_prog_compiler_static_CXX='-static'
13470
13471 case $host_os in
13472 aix*)
13473 # All AIX code is PIC.
13474 if test "$host_cpu" = ia64; then
13475 # AIX 5 now supports IA64 processor
13476 lt_prog_compiler_static_CXX='-Bstatic'
13477 fi
13478 lt_prog_compiler_pic_CXX='-fPIC'
13479 ;;
13480
13481 amigaos*)
13482 case $host_cpu in
13483 powerpc)
13484 # see comment about AmigaOS4 .so support
13485 lt_prog_compiler_pic_CXX='-fPIC'
13486 ;;
13487 m68k)
13488 # FIXME: we need at least 68020 code to build shared libraries, but
13489 # adding the `-m68020' flag to GCC prevents building anything better,
13490 # like `-m68040'.
13491 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13492 ;;
13493 esac
13494 ;;
13495
13496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13497 # PIC is the default for these OSes.
13498 ;;
13499 mingw* | cygwin* | os2* | pw32* | cegcc*)
13500 # This hack is so that the source file can tell whether it is being
13501 # built for inclusion in a dll (and should export symbols for example).
13502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13503 # (--disable-auto-import) libraries
13504 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13505 ;;
13506 darwin* | rhapsody*)
13507 # PIC is the default on this platform
13508 # Common symbols not allowed in MH_DYLIB files
13509 lt_prog_compiler_pic_CXX='-fno-common'
13510 ;;
13511 *djgpp*)
13512 # DJGPP does not support shared libraries at all
13513 lt_prog_compiler_pic_CXX=
13514 ;;
13515 haiku*)
13516 # PIC is the default for Haiku.
13517 # The "-static" flag exists, but is broken.
13518 lt_prog_compiler_static_CXX=
13519 ;;
13520 interix[3-9]*)
13521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13522 # Instead, we relocate shared libraries at runtime.
13523 ;;
13524 sysv4*MP*)
13525 if test -d /usr/nec; then
13526 lt_prog_compiler_pic_CXX=-Kconform_pic
13527 fi
13528 ;;
13529 hpux*)
13530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13532 # sets the default TLS model and affects inlining.
13533 case $host_cpu in
13534 hppa*64*)
13535 ;;
13536 *)
13537 lt_prog_compiler_pic_CXX='-fPIC'
13538 ;;
13539 esac
13540 ;;
13541 *qnx* | *nto*)
13542 # QNX uses GNU C++, but need to define -shared option too, otherwise
13543 # it will coredump.
13544 lt_prog_compiler_pic_CXX='-fPIC -shared'
13545 ;;
13546 *)
13547 lt_prog_compiler_pic_CXX='-fPIC'
13548 ;;
13549 esac
13550 else
13551 case $host_os in
13552 aix[4-9]*)
13553 # All AIX code is PIC.
13554 if test "$host_cpu" = ia64; then
13555 # AIX 5 now supports IA64 processor
13556 lt_prog_compiler_static_CXX='-Bstatic'
13557 else
13558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13559 fi
13560 ;;
13561 chorus*)
13562 case $cc_basename in
13563 cxch68*)
13564 # Green Hills C++ Compiler
13565 # _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"
13566 ;;
13567 esac
13568 ;;
13569 dgux*)
13570 case $cc_basename in
13571 ec++*)
13572 lt_prog_compiler_pic_CXX='-KPIC'
13573 ;;
13574 ghcx*)
13575 # Green Hills C++ Compiler
13576 lt_prog_compiler_pic_CXX='-pic'
13577 ;;
13578 *)
13579 ;;
13580 esac
13581 ;;
13582 freebsd* | dragonfly*)
13583 # FreeBSD uses GNU C++
13584 ;;
13585 hpux9* | hpux10* | hpux11*)
13586 case $cc_basename in
13587 CC*)
13588 lt_prog_compiler_wl_CXX='-Wl,'
13589 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13590 if test "$host_cpu" != ia64; then
13591 lt_prog_compiler_pic_CXX='+Z'
13592 fi
13593 ;;
13594 aCC*)
13595 lt_prog_compiler_wl_CXX='-Wl,'
13596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13597 case $host_cpu in
13598 hppa*64*|ia64*)
13599 # +Z the default
13600 ;;
13601 *)
13602 lt_prog_compiler_pic_CXX='+Z'
13603 ;;
13604 esac
13605 ;;
13606 *)
13607 ;;
13608 esac
13609 ;;
13610 interix*)
13611 # This is c89, which is MS Visual C++ (no shared libs)
13612 # Anyone wants to do a port?
13613 ;;
13614 irix5* | irix6* | nonstopux*)
13615 case $cc_basename in
13616 CC*)
13617 lt_prog_compiler_wl_CXX='-Wl,'
13618 lt_prog_compiler_static_CXX='-non_shared'
13619 # CC pic flag -KPIC is the default.
13620 ;;
13621 *)
13622 ;;
13623 esac
13624 ;;
13625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13626 case $cc_basename in
13627 KCC*)
13628 # KAI C++ Compiler
13629 lt_prog_compiler_wl_CXX='--backend -Wl,'
13630 lt_prog_compiler_pic_CXX='-fPIC'
13631 ;;
13632 ecpc* )
13633 # old Intel C++ for x86_64 which still supported -KPIC.
13634 lt_prog_compiler_wl_CXX='-Wl,'
13635 lt_prog_compiler_pic_CXX='-KPIC'
13636 lt_prog_compiler_static_CXX='-static'
13637 ;;
13638 icpc* )
13639 # Intel C++, used to be incompatible with GCC.
13640 # ICC 10 doesn't accept -KPIC any more.
13641 lt_prog_compiler_wl_CXX='-Wl,'
13642 lt_prog_compiler_pic_CXX='-fPIC'
13643 lt_prog_compiler_static_CXX='-static'
13644 ;;
13645 pgCC* | pgcpp*)
13646 # Portland Group C++ compiler
13647 lt_prog_compiler_wl_CXX='-Wl,'
13648 lt_prog_compiler_pic_CXX='-fpic'
13649 lt_prog_compiler_static_CXX='-Bstatic'
13650 ;;
13651 cxx*)
13652 # Compaq C++
13653 # Make sure the PIC flag is empty. It appears that all Alpha
13654 # Linux and Compaq Tru64 Unix objects are PIC.
13655 lt_prog_compiler_pic_CXX=
13656 lt_prog_compiler_static_CXX='-non_shared'
13657 ;;
13658 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13659 # IBM XL 8.0, 9.0 on PPC and BlueGene
13660 lt_prog_compiler_wl_CXX='-Wl,'
13661 lt_prog_compiler_pic_CXX='-qpic'
13662 lt_prog_compiler_static_CXX='-qstaticlink'
13663 ;;
13664 *)
13665 case `$CC -V 2>&1 | sed 5q` in
13666 *Sun\ C*)
13667 # Sun C++ 5.9
13668 lt_prog_compiler_pic_CXX='-KPIC'
13669 lt_prog_compiler_static_CXX='-Bstatic'
13670 lt_prog_compiler_wl_CXX='-Qoption ld '
13671 ;;
13672 esac
13673 ;;
13674 esac
13675 ;;
13676 lynxos*)
13677 ;;
13678 m88k*)
13679 ;;
13680 mvs*)
13681 case $cc_basename in
13682 cxx*)
13683 lt_prog_compiler_pic_CXX='-W c,exportall'
13684 ;;
13685 *)
13686 ;;
13687 esac
13688 ;;
13689 netbsd*)
13690 ;;
13691 *qnx* | *nto*)
13692 # QNX uses GNU C++, but need to define -shared option too, otherwise
13693 # it will coredump.
13694 lt_prog_compiler_pic_CXX='-fPIC -shared'
13695 ;;
13696 osf3* | osf4* | osf5*)
13697 case $cc_basename in
13698 KCC*)
13699 lt_prog_compiler_wl_CXX='--backend -Wl,'
13700 ;;
13701 RCC*)
13702 # Rational C++ 2.4.1
13703 lt_prog_compiler_pic_CXX='-pic'
13704 ;;
13705 cxx*)
13706 # Digital/Compaq C++
13707 lt_prog_compiler_wl_CXX='-Wl,'
13708 # Make sure the PIC flag is empty. It appears that all Alpha
13709 # Linux and Compaq Tru64 Unix objects are PIC.
13710 lt_prog_compiler_pic_CXX=
13711 lt_prog_compiler_static_CXX='-non_shared'
13712 ;;
13713 *)
13714 ;;
13715 esac
13716 ;;
13717 psos*)
13718 ;;
13719 solaris*)
13720 case $cc_basename in
13721 CC*)
13722 # Sun C++ 4.2, 5.x and Centerline C++
13723 lt_prog_compiler_pic_CXX='-KPIC'
13724 lt_prog_compiler_static_CXX='-Bstatic'
13725 lt_prog_compiler_wl_CXX='-Qoption ld '
13726 ;;
13727 gcx*)
13728 # Green Hills C++ Compiler
13729 lt_prog_compiler_pic_CXX='-PIC'
13730 ;;
13731 *)
13732 ;;
13733 esac
13734 ;;
13735 sunos4*)
13736 case $cc_basename in
13737 CC*)
13738 # Sun C++ 4.x
13739 lt_prog_compiler_pic_CXX='-pic'
13740 lt_prog_compiler_static_CXX='-Bstatic'
13741 ;;
13742 lcc*)
13743 # Lucid
13744 lt_prog_compiler_pic_CXX='-pic'
13745 ;;
13746 *)
13747 ;;
13748 esac
13749 ;;
13750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13751 case $cc_basename in
13752 CC*)
13753 lt_prog_compiler_wl_CXX='-Wl,'
13754 lt_prog_compiler_pic_CXX='-KPIC'
13755 lt_prog_compiler_static_CXX='-Bstatic'
13756 ;;
13757 esac
13758 ;;
13759 tandem*)
13760 case $cc_basename in
13761 NCC*)
13762 # NonStop-UX NCC 3.20
13763 lt_prog_compiler_pic_CXX='-KPIC'
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 vxworks*)
13770 ;;
13771 *)
13772 lt_prog_compiler_can_build_shared_CXX=no
13773 ;;
13774 esac
13775 fi
13776
13777 case $host_os in
13778 # For platforms which do not support PIC, -DPIC is meaningless:
13779 *djgpp*)
13780 lt_prog_compiler_pic_CXX=
13781 ;;
13782 *)
13783 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13784 ;;
13785 esac
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13787 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13788
13789
13790
13791 #
13792 # Check to make sure the PIC flag actually works.
13793 #
13794 if test -n "$lt_prog_compiler_pic_CXX"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13797 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 lt_cv_prog_compiler_pic_works_CXX=no
13801 ac_outfile=conftest.$ac_objext
13802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13804 # Insert the option either (1) after the last *FLAGS variable, or
13805 # (2) before a word containing "conftest.", or (3) at the end.
13806 # Note that $ac_compile itself does not contain backslashes and begins
13807 # with a dollar sign (not a hyphen), so the echo should work correctly.
13808 # The option is referenced via a variable to avoid confusing sed.
13809 lt_compile=`echo "$ac_compile" | $SED \
13810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13812 -e 's:$: $lt_compiler_flag:'`
13813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13814 (eval "$lt_compile" 2>conftest.err)
13815 ac_status=$?
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 if (exit $ac_status) && test -s "$ac_outfile"; then
13819 # The compiler can only warn and ignore the option if not recognized
13820 # So say no if there are warnings other than the usual output.
13821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13824 lt_cv_prog_compiler_pic_works_CXX=yes
13825 fi
13826 fi
13827 $RM conftest*
13828
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13831 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13832
13833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13834 case $lt_prog_compiler_pic_CXX in
13835 "" | " "*) ;;
13836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13837 esac
13838 else
13839 lt_prog_compiler_pic_CXX=
13840 lt_prog_compiler_can_build_shared_CXX=no
13841 fi
13842
13843 fi
13844
13845
13846
13847 #
13848 # Check to make sure the static flag actually works.
13849 #
13850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13853 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 lt_cv_prog_compiler_static_works_CXX=no
13857 save_LDFLAGS="$LDFLAGS"
13858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13861 # The linker can only warn and ignore the option if not recognized
13862 # So say no if there are warnings
13863 if test -s conftest.err; then
13864 # Append any errors to the config.log.
13865 cat conftest.err 1>&5
13866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13868 if diff conftest.exp conftest.er2 >/dev/null; then
13869 lt_cv_prog_compiler_static_works_CXX=yes
13870 fi
13871 else
13872 lt_cv_prog_compiler_static_works_CXX=yes
13873 fi
13874 fi
13875 $RM -r conftest*
13876 LDFLAGS="$save_LDFLAGS"
13877
13878 fi
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13880 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13881
13882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13883 :
13884 else
13885 lt_prog_compiler_static_CXX=
13886 fi
13887
13888
13889
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13893 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 lt_cv_prog_compiler_c_o_CXX=no
13897 $RM -r conftest 2>/dev/null
13898 mkdir conftest
13899 cd conftest
13900 mkdir out
13901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13902
13903 lt_compiler_flag="-o out/conftest2.$ac_objext"
13904 # Insert the option either (1) after the last *FLAGS variable, or
13905 # (2) before a word containing "conftest.", or (3) at the end.
13906 # Note that $ac_compile itself does not contain backslashes and begins
13907 # with a dollar sign (not a hyphen), so the echo should work correctly.
13908 lt_compile=`echo "$ac_compile" | $SED \
13909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13911 -e 's:$: $lt_compiler_flag:'`
13912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13913 (eval "$lt_compile" 2>out/conftest.err)
13914 ac_status=$?
13915 cat out/conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13918 then
13919 # The compiler can only warn and ignore the option if not recognized
13920 # So say no if there are warnings
13921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13924 lt_cv_prog_compiler_c_o_CXX=yes
13925 fi
13926 fi
13927 chmod u+w . 2>&5
13928 $RM conftest*
13929 # SGI C++ compiler will create directory out/ii_files/ for
13930 # template instantiation
13931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13932 $RM out/* && rmdir out
13933 cd ..
13934 $RM -r conftest
13935 $RM conftest*
13936
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13939 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13940
13941
13942
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13945 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948 lt_cv_prog_compiler_c_o_CXX=no
13949 $RM -r conftest 2>/dev/null
13950 mkdir conftest
13951 cd conftest
13952 mkdir out
13953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955 lt_compiler_flag="-o out/conftest2.$ac_objext"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 lt_compile=`echo "$ac_compile" | $SED \
13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963 -e 's:$: $lt_compiler_flag:'`
13964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965 (eval "$lt_compile" 2>out/conftest.err)
13966 ac_status=$?
13967 cat out/conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13970 then
13971 # The compiler can only warn and ignore the option if not recognized
13972 # So say no if there are warnings
13973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13976 lt_cv_prog_compiler_c_o_CXX=yes
13977 fi
13978 fi
13979 chmod u+w . 2>&5
13980 $RM conftest*
13981 # SGI C++ compiler will create directory out/ii_files/ for
13982 # template instantiation
13983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13984 $RM out/* && rmdir out
13985 cd ..
13986 $RM -r conftest
13987 $RM conftest*
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13992
13993
13994
13995
13996 hard_links="nottested"
13997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13998 # do not overwrite the value of need_locks provided by the user
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14000 $as_echo_n "checking if we can lock with hard links... " >&6; }
14001 hard_links=yes
14002 $RM conftest*
14003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14004 touch conftest.a
14005 ln conftest.a conftest.b 2>&5 || hard_links=no
14006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14008 $as_echo "$hard_links" >&6; }
14009 if test "$hard_links" = no; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14012 need_locks=warn
14013 fi
14014 else
14015 need_locks=no
14016 fi
14017
14018
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14022
14023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14024 case $host_os in
14025 aix[4-9]*)
14026 # If we're using GNU nm, then we don't want the "-C" option.
14027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14028 # Also, AIX nm treats weak defined symbols like other global defined
14029 # symbols, whereas GNU nm marks them as "W".
14030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14031 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'
14032 else
14033 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14034 fi
14035 ;;
14036 pw32*)
14037 export_symbols_cmds_CXX="$ltdll_cmds"
14038 ;;
14039 cygwin* | mingw* | cegcc*)
14040 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14041 ;;
14042 *)
14043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14044 ;;
14045 esac
14046 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14047
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14049 $as_echo "$ld_shlibs_CXX" >&6; }
14050 test "$ld_shlibs_CXX" = no && can_build_shared=no
14051
14052 with_gnu_ld_CXX=$with_gnu_ld
14053
14054
14055
14056
14057
14058
14059 #
14060 # Do we need to explicitly link libc?
14061 #
14062 case "x$archive_cmds_need_lc_CXX" in
14063 x|xyes)
14064 # Assume -lc should be added
14065 archive_cmds_need_lc_CXX=yes
14066
14067 if test "$enable_shared" = yes && test "$GCC" = yes; then
14068 case $archive_cmds_CXX in
14069 *'~'*)
14070 # FIXME: we may have to deal with multi-command sequences.
14071 ;;
14072 '$CC '*)
14073 # Test whether the compiler implicitly links with -lc since on some
14074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14075 # to ld, don't add -lc before -lgcc.
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14078 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 $RM conftest*
14082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14083
14084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14085 (eval $ac_compile) 2>&5
14086 ac_status=$?
14087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088 test $ac_status = 0; } 2>conftest.err; then
14089 soname=conftest
14090 lib=conftest
14091 libobjs=conftest.$ac_objext
14092 deplibs=
14093 wl=$lt_prog_compiler_wl_CXX
14094 pic_flag=$lt_prog_compiler_pic_CXX
14095 compiler_flags=-v
14096 linker_flags=-v
14097 verstring=
14098 output_objdir=.
14099 libname=conftest
14100 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14101 allow_undefined_flag_CXX=
14102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14103 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14104 ac_status=$?
14105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106 test $ac_status = 0; }
14107 then
14108 lt_cv_archive_cmds_need_lc_CXX=no
14109 else
14110 lt_cv_archive_cmds_need_lc_CXX=yes
14111 fi
14112 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14113 else
14114 cat conftest.err 1>&5
14115 fi
14116 $RM conftest*
14117
14118 fi
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14120 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14121 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14122 ;;
14123 esac
14124 fi
14125 ;;
14126 esac
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14193
14194 library_names_spec=
14195 libname_spec='lib$name'
14196 soname_spec=
14197 shrext_cmds=".so"
14198 postinstall_cmds=
14199 postuninstall_cmds=
14200 finish_cmds=
14201 finish_eval=
14202 shlibpath_var=
14203 shlibpath_overrides_runpath=unknown
14204 version_type=none
14205 dynamic_linker="$host_os ld.so"
14206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14207 need_lib_prefix=unknown
14208 hardcode_into_libs=no
14209
14210 # when you set need_version to no, make sure it does not cause -set_version
14211 # flags to be left without arguments
14212 need_version=unknown
14213
14214 case $host_os in
14215 aix3*)
14216 version_type=linux
14217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14218 shlibpath_var=LIBPATH
14219
14220 # AIX 3 has no versioning support, so we append a major version to the name.
14221 soname_spec='${libname}${release}${shared_ext}$major'
14222 ;;
14223
14224 aix[4-9]*)
14225 version_type=linux
14226 need_lib_prefix=no
14227 need_version=no
14228 hardcode_into_libs=yes
14229 if test "$host_cpu" = ia64; then
14230 # AIX 5 supports IA64
14231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14232 shlibpath_var=LD_LIBRARY_PATH
14233 else
14234 # With GCC up to 2.95.x, collect2 would create an import file
14235 # for dependence libraries. The import file would start with
14236 # the line `#! .'. This would cause the generated library to
14237 # depend on `.', always an invalid library. This was fixed in
14238 # development snapshots of GCC prior to 3.0.
14239 case $host_os in
14240 aix4 | aix4.[01] | aix4.[01].*)
14241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14242 echo ' yes '
14243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14244 :
14245 else
14246 can_build_shared=no
14247 fi
14248 ;;
14249 esac
14250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14251 # soname into executable. Probably we can add versioning support to
14252 # collect2, so additional links can be useful in future.
14253 if test "$aix_use_runtimelinking" = yes; then
14254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14255 # instead of lib<name>.a to let people know that these are not
14256 # typical AIX shared libraries.
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258 else
14259 # We preserve .a as extension for shared libraries through AIX4.2
14260 # and later when we are not doing run time linking.
14261 library_names_spec='${libname}${release}.a $libname.a'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 fi
14264 shlibpath_var=LIBPATH
14265 fi
14266 ;;
14267
14268 amigaos*)
14269 case $host_cpu in
14270 powerpc)
14271 # Since July 2007 AmigaOS4 officially supports .so libraries.
14272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 ;;
14275 m68k)
14276 library_names_spec='$libname.ixlibrary $libname.a'
14277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14278 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14279 ;;
14280 esac
14281 ;;
14282
14283 beos*)
14284 library_names_spec='${libname}${shared_ext}'
14285 dynamic_linker="$host_os ld.so"
14286 shlibpath_var=LIBRARY_PATH
14287 ;;
14288
14289 bsdi[45]*)
14290 version_type=linux
14291 need_version=no
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14298 # the default ld.so.conf also contains /usr/contrib/lib and
14299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14300 # libtool to hard-code these into programs
14301 ;;
14302
14303 cygwin* | mingw* | pw32* | cegcc*)
14304 version_type=windows
14305 shrext_cmds=".dll"
14306 need_version=no
14307 need_lib_prefix=no
14308
14309 case $GCC,$host_os in
14310 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14311 library_names_spec='$libname.dll.a'
14312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14313 postinstall_cmds='base_file=`basename \${file}`~
14314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14315 dldir=$destdir/`dirname \$dlpath`~
14316 test -d \$dldir || mkdir -p \$dldir~
14317 $install_prog $dir/$dlname \$dldir/$dlname~
14318 chmod a+x \$dldir/$dlname~
14319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14321 fi'
14322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14323 dlpath=$dir/\$dldll~
14324 $RM \$dlpath'
14325 shlibpath_overrides_runpath=yes
14326
14327 case $host_os in
14328 cygwin*)
14329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14331
14332 ;;
14333 mingw* | cegcc*)
14334 # MinGW DLLs use traditional 'lib' prefix
14335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14336 ;;
14337 pw32*)
14338 # pw32 DLLs use 'pw' prefix rather than 'lib'
14339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14340 ;;
14341 esac
14342 ;;
14343
14344 *)
14345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14346 ;;
14347 esac
14348 dynamic_linker='Win32 ld.exe'
14349 # FIXME: first we should search . and the directory the executable is in
14350 shlibpath_var=PATH
14351 ;;
14352
14353 darwin* | rhapsody*)
14354 dynamic_linker="$host_os dyld"
14355 version_type=darwin
14356 need_lib_prefix=no
14357 need_version=no
14358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14359 soname_spec='${libname}${release}${major}$shared_ext'
14360 shlibpath_overrides_runpath=yes
14361 shlibpath_var=DYLD_LIBRARY_PATH
14362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14363
14364 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14365 ;;
14366
14367 dgux*)
14368 version_type=linux
14369 need_lib_prefix=no
14370 need_version=no
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 ;;
14375
14376 freebsd* | dragonfly*)
14377 # DragonFly does not have aout. When/if they implement a new
14378 # versioning mechanism, adjust this.
14379 if test -x /usr/bin/objformat; then
14380 objformat=`/usr/bin/objformat`
14381 else
14382 case $host_os in
14383 freebsd[23].*) objformat=aout ;;
14384 *) objformat=elf ;;
14385 esac
14386 fi
14387 version_type=freebsd-$objformat
14388 case $version_type in
14389 freebsd-elf*)
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14391 need_version=no
14392 need_lib_prefix=no
14393 ;;
14394 freebsd-*)
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14396 need_version=yes
14397 ;;
14398 esac
14399 shlibpath_var=LD_LIBRARY_PATH
14400 case $host_os in
14401 freebsd2.*)
14402 shlibpath_overrides_runpath=yes
14403 ;;
14404 freebsd3.[01]* | freebsdelf3.[01]*)
14405 shlibpath_overrides_runpath=yes
14406 hardcode_into_libs=yes
14407 ;;
14408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14410 shlibpath_overrides_runpath=no
14411 hardcode_into_libs=yes
14412 ;;
14413 *) # from 4.6 on, and DragonFly
14414 shlibpath_overrides_runpath=yes
14415 hardcode_into_libs=yes
14416 ;;
14417 esac
14418 ;;
14419
14420 haiku*)
14421 version_type=linux
14422 need_lib_prefix=no
14423 need_version=no
14424 dynamic_linker="$host_os runtime_loader"
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 shlibpath_var=LIBRARY_PATH
14428 shlibpath_overrides_runpath=yes
14429 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14430 hardcode_into_libs=yes
14431 ;;
14432
14433 hpux9* | hpux10* | hpux11*)
14434 # Give a soname corresponding to the major version so that dld.sl refuses to
14435 # link against other versions.
14436 version_type=sunos
14437 need_lib_prefix=no
14438 need_version=no
14439 case $host_cpu in
14440 ia64*)
14441 shrext_cmds='.so'
14442 hardcode_into_libs=yes
14443 dynamic_linker="$host_os dld.so"
14444 shlibpath_var=LD_LIBRARY_PATH
14445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447 soname_spec='${libname}${release}${shared_ext}$major'
14448 if test "X$HPUX_IA64_MODE" = X32; then
14449 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14450 else
14451 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14452 fi
14453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454 ;;
14455 hppa*64*)
14456 shrext_cmds='.sl'
14457 hardcode_into_libs=yes
14458 dynamic_linker="$host_os dld.sl"
14459 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14465 ;;
14466 *)
14467 shrext_cmds='.sl'
14468 dynamic_linker="$host_os dld.sl"
14469 shlibpath_var=SHLIB_PATH
14470 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 ;;
14474 esac
14475 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14476 postinstall_cmds='chmod 555 $lib'
14477 # or fails outright, so override atomically:
14478 install_override_mode=555
14479 ;;
14480
14481 interix[3-9]*)
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 shlibpath_overrides_runpath=no
14490 hardcode_into_libs=yes
14491 ;;
14492
14493 irix5* | irix6* | nonstopux*)
14494 case $host_os in
14495 nonstopux*) version_type=nonstopux ;;
14496 *)
14497 if test "$lt_cv_prog_gnu_ld" = yes; then
14498 version_type=linux
14499 else
14500 version_type=irix
14501 fi ;;
14502 esac
14503 need_lib_prefix=no
14504 need_version=no
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14507 case $host_os in
14508 irix5* | nonstopux*)
14509 libsuff= shlibsuff=
14510 ;;
14511 *)
14512 case $LD in # libtool.m4 will add one of these switches to LD
14513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14514 libsuff= shlibsuff= libmagic=32-bit;;
14515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14516 libsuff=32 shlibsuff=N32 libmagic=N32;;
14517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14519 *) libsuff= shlibsuff= libmagic=never-match;;
14520 esac
14521 ;;
14522 esac
14523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14524 shlibpath_overrides_runpath=no
14525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14527 hardcode_into_libs=yes
14528 ;;
14529
14530 # No shared lib support for Linux oldld, aout, or coff.
14531 linux*oldld* | linux*aout* | linux*coff*)
14532 dynamic_linker=no
14533 ;;
14534
14535 # This must be Linux ELF.
14536
14537 # uclinux* changes (here and below) have been submitted to the libtool
14538 # project, but have not yet been accepted: they are GCC-local changes
14539 # for the time being. (See
14540 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14542 version_type=linux
14543 need_lib_prefix=no
14544 need_version=no
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550
14551 # Some binutils ld are patched to set DT_RUNPATH
14552 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 lt_cv_shlibpath_overrides_runpath=no
14556 save_LDFLAGS=$LDFLAGS
14557 save_libdir=$libdir
14558 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14559 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562
14563 int
14564 main ()
14565 {
14566
14567 ;
14568 return 0;
14569 }
14570 _ACEOF
14571 if ac_fn_cxx_try_link "$LINENO"; then :
14572 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14573 lt_cv_shlibpath_overrides_runpath=yes
14574 fi
14575 fi
14576 rm -f core conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14578 LDFLAGS=$save_LDFLAGS
14579 libdir=$save_libdir
14580
14581 fi
14582
14583 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14584
14585 # This implies no fast_install, which is unacceptable.
14586 # Some rework will be needed to allow for fast_install
14587 # before this can be enabled.
14588 hardcode_into_libs=yes
14589
14590 # Append ld.so.conf contents to the search path
14591 if test -f /etc/ld.so.conf; then
14592 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' ' '`
14593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14594 fi
14595
14596 # We used to test for /lib/ld.so.1 and disable shared libraries on
14597 # powerpc, because MkLinux only supported shared libraries with the
14598 # GNU dynamic linker. Since this was broken with cross compilers,
14599 # most powerpc-linux boxes support dynamic linking these days and
14600 # people can always --disable-shared, the test was removed, and we
14601 # assume the GNU/Linux dynamic linker is in use.
14602 dynamic_linker='GNU/Linux ld.so'
14603 ;;
14604
14605 netbsd*)
14606 version_type=sunos
14607 need_lib_prefix=no
14608 need_version=no
14609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612 dynamic_linker='NetBSD (a.out) ld.so'
14613 else
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 dynamic_linker='NetBSD ld.elf_so'
14617 fi
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14621 ;;
14622
14623 newsos6)
14624 version_type=linux
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=yes
14628 ;;
14629
14630 *nto* | *qnx*)
14631 version_type=qnx
14632 need_lib_prefix=no
14633 need_version=no
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 dynamic_linker='ldqnx.so'
14640 ;;
14641
14642 openbsd*)
14643 version_type=sunos
14644 sys_lib_dlsearch_path_spec="/usr/lib"
14645 need_lib_prefix=no
14646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14647 case $host_os in
14648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14649 *) need_version=no ;;
14650 esac
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655 case $host_os in
14656 openbsd2.[89] | openbsd2.[89].*)
14657 shlibpath_overrides_runpath=no
14658 ;;
14659 *)
14660 shlibpath_overrides_runpath=yes
14661 ;;
14662 esac
14663 else
14664 shlibpath_overrides_runpath=yes
14665 fi
14666 ;;
14667
14668 os2*)
14669 libname_spec='$name'
14670 shrext_cmds=".dll"
14671 need_lib_prefix=no
14672 library_names_spec='$libname${shared_ext} $libname.a'
14673 dynamic_linker='OS/2 ld.exe'
14674 shlibpath_var=LIBPATH
14675 ;;
14676
14677 osf3* | osf4* | osf5*)
14678 version_type=osf
14679 need_lib_prefix=no
14680 need_version=no
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14686 ;;
14687
14688 rdos*)
14689 dynamic_linker=no
14690 ;;
14691
14692 solaris*)
14693 version_type=linux
14694 need_lib_prefix=no
14695 need_version=no
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes
14700 hardcode_into_libs=yes
14701 # ldd complains unless libraries are executable
14702 postinstall_cmds='chmod +x $lib'
14703 ;;
14704
14705 sunos4*)
14706 version_type=sunos
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 if test "$with_gnu_ld" = yes; then
14712 need_lib_prefix=no
14713 fi
14714 need_version=yes
14715 ;;
14716
14717 sysv4 | sysv4.3*)
14718 version_type=linux
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 case $host_vendor in
14723 sni)
14724 shlibpath_overrides_runpath=no
14725 need_lib_prefix=no
14726 runpath_var=LD_RUN_PATH
14727 ;;
14728 siemens)
14729 need_lib_prefix=no
14730 ;;
14731 motorola)
14732 need_lib_prefix=no
14733 need_version=no
14734 shlibpath_overrides_runpath=no
14735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14736 ;;
14737 esac
14738 ;;
14739
14740 sysv4*MP*)
14741 if test -d /usr/nec ;then
14742 version_type=linux
14743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14744 soname_spec='$libname${shared_ext}.$major'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 fi
14747 ;;
14748
14749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14750 version_type=freebsd-elf
14751 need_lib_prefix=no
14752 need_version=no
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 hardcode_into_libs=yes
14758 if test "$with_gnu_ld" = yes; then
14759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14760 else
14761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14762 case $host_os in
14763 sco3.2v5*)
14764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14765 ;;
14766 esac
14767 fi
14768 sys_lib_dlsearch_path_spec='/usr/lib'
14769 ;;
14770
14771 tpf*)
14772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14773 version_type=linux
14774 need_lib_prefix=no
14775 need_version=no
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 shlibpath_overrides_runpath=no
14779 hardcode_into_libs=yes
14780 ;;
14781
14782 uts4*)
14783 version_type=linux
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 ;;
14788
14789 *)
14790 dynamic_linker=no
14791 ;;
14792 esac
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14794 $as_echo "$dynamic_linker" >&6; }
14795 test "$dynamic_linker" = no && can_build_shared=no
14796
14797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14798 if test "$GCC" = yes; then
14799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14800 fi
14801
14802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14804 fi
14805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14807 fi
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14847 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14848 hardcode_action_CXX=
14849 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14850 test -n "$runpath_var_CXX" ||
14851 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14852
14853 # We can hardcode non-existent directories.
14854 if test "$hardcode_direct_CXX" != no &&
14855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14856 # have to relink, otherwise we might link with an installed library
14857 # when we should be linking with a yet-to-be-installed one
14858 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14859 test "$hardcode_minus_L_CXX" != no; then
14860 # Linking always hardcodes the temporary library directory.
14861 hardcode_action_CXX=relink
14862 else
14863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14864 hardcode_action_CXX=immediate
14865 fi
14866 else
14867 # We cannot hardcode anything, or else we can only hardcode existing
14868 # directories.
14869 hardcode_action_CXX=unsupported
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14872 $as_echo "$hardcode_action_CXX" >&6; }
14873
14874 if test "$hardcode_action_CXX" = relink ||
14875 test "$inherit_rpath_CXX" = yes; then
14876 # Fast installation is not supported
14877 enable_fast_install=no
14878 elif test "$shlibpath_overrides_runpath" = yes ||
14879 test "$enable_shared" = no; then
14880 # Fast installation is not necessary
14881 enable_fast_install=needless
14882 fi
14883
14884
14885
14886
14887
14888
14889
14890 fi # test -n "$compiler"
14891
14892 CC=$lt_save_CC
14893 LDCXX=$LD
14894 LD=$lt_save_LD
14895 GCC=$lt_save_GCC
14896 with_gnu_ld=$lt_save_with_gnu_ld
14897 lt_cv_path_LDCXX=$lt_cv_path_LD
14898 lt_cv_path_LD=$lt_save_path_LD
14899 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14900 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14901 fi # test "$_lt_caught_CXX_error" != yes
14902
14903 ac_ext=c
14904 ac_cpp='$CPP $CPPFLAGS'
14905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921 ac_config_commands="$ac_config_commands libtool"
14922
14923
14924
14925
14926 # Only expand once:
14927
14928
14929
14930 if test -n "$ac_tool_prefix"; then
14931 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
14932 set dummy ${ac_tool_prefix}readelf; ac_word=$2
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14934 $as_echo_n "checking for $ac_word... " >&6; }
14935 if ${ac_cv_prog_READELF+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 if test -n "$READELF"; then
14939 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14940 else
14941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942 for as_dir in $PATH
14943 do
14944 IFS=$as_save_IFS
14945 test -z "$as_dir" && as_dir=.
14946 for ac_exec_ext in '' $ac_executable_extensions; do
14947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
14949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14950 break 2
14951 fi
14952 done
14953 done
14954 IFS=$as_save_IFS
14955
14956 fi
14957 fi
14958 READELF=$ac_cv_prog_READELF
14959 if test -n "$READELF"; then
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14961 $as_echo "$READELF" >&6; }
14962 else
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14965 fi
14966
14967
14968 fi
14969 if test -z "$ac_cv_prog_READELF"; then
14970 ac_ct_READELF=$READELF
14971 # Extract the first word of "readelf", so it can be a program name with args.
14972 set dummy readelf; ac_word=$2
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14974 $as_echo_n "checking for $ac_word... " >&6; }
14975 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
14976 $as_echo_n "(cached) " >&6
14977 else
14978 if test -n "$ac_ct_READELF"; then
14979 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
14980 else
14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982 for as_dir in $PATH
14983 do
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
14986 for ac_exec_ext in '' $ac_executable_extensions; do
14987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14988 ac_cv_prog_ac_ct_READELF="readelf"
14989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14990 break 2
14991 fi
14992 done
14993 done
14994 IFS=$as_save_IFS
14995
14996 fi
14997 fi
14998 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
14999 if test -n "$ac_ct_READELF"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15001 $as_echo "$ac_ct_READELF" >&6; }
15002 else
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15005 fi
15006
15007 if test "x$ac_ct_READELF" = x; then
15008 READELF=""
15009 else
15010 case $cross_compiling:$ac_tool_warned in
15011 yes:)
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15014 ac_tool_warned=yes ;;
15015 esac
15016 READELF=$ac_ct_READELF
15017 fi
15018 else
15019 READELF="$ac_cv_prog_READELF"
15020 fi
15021
15022
15023 # Test for 64-bit build.
15024 # The cast to long int works around a bug in the HP C Compiler
15025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15027 # This bug is HP SR number 8606223364.
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15029 $as_echo_n "checking size of size_t... " >&6; }
15030 if ${ac_cv_sizeof_size_t+:} false; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15034
15035 else
15036 if test "$ac_cv_type_size_t" = yes; then
15037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15039 as_fn_error 77 "cannot compute sizeof (size_t)
15040 See \`config.log' for more details" "$LINENO" 5; }
15041 else
15042 ac_cv_sizeof_size_t=0
15043 fi
15044 fi
15045
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15048 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15049
15050
15051
15052 cat >>confdefs.h <<_ACEOF
15053 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15054 _ACEOF
15055
15056
15057
15058 cat > local.exp <<EOF
15059 set CC_FOR_TARGET "$CC"
15060 set CXX_FOR_TARGET "$CXX"
15061 set compiler_vendor "$ax_cv_c_compiler_vendor"
15062 EOF
15063
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15066 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15067 # Check whether --enable-maintainer-mode was given.
15068 if test "${enable_maintainer_mode+set}" = set; then :
15069 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15070 else
15071 USE_MAINTAINER_MODE=no
15072 fi
15073
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15075 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15076 if test $USE_MAINTAINER_MODE = yes; then
15077 MAINTAINER_MODE_TRUE=
15078 MAINTAINER_MODE_FALSE='#'
15079 else
15080 MAINTAINER_MODE_TRUE='#'
15081 MAINTAINER_MODE_FALSE=
15082 fi
15083
15084 MAINT=$MAINTAINER_MODE_TRUE
15085
15086
15087
15088 for ac_header in sys/memfd.h
15089 do :
15090 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15091 if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_SYS_MEMFD_H 1
15094 _ACEOF
15095
15096 fi
15097
15098 done
15099
15100 for ac_func in memfd_create
15101 do :
15102 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15103 if test "x$ac_cv_func_memfd_create" = xyes; then :
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_MEMFD_CREATE 1
15106 _ACEOF
15107
15108 fi
15109 done
15110
15111
15112 for ac_header in sys/mman.h
15113 do :
15114 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15115 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_SYS_MMAN_H 1
15118 _ACEOF
15119
15120 fi
15121
15122 done
15123
15124 for ac_func in mmap mkostemp mkstemp
15125 do :
15126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15127 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15128 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15131 _ACEOF
15132
15133 fi
15134 done
15135
15136
15137 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15138 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15139 libffi_header_sys_mman_h=yes
15140 else
15141 libffi_header_sys_mman_h=no
15142 fi
15143
15144
15145 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15146 if test "x$ac_cv_func_mmap" = xyes; then :
15147 libffi_func_mmap=yes
15148 else
15149 libffi_func_mmap=no
15150 fi
15151
15152 if test "$libffi_header_sys_mman_h" != yes \
15153 || test "$libffi_func_mmap" != yes; then
15154 ac_cv_func_mmap_file=no
15155 ac_cv_func_mmap_dev_zero=no
15156 ac_cv_func_mmap_anon=no
15157 else
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15159 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15160 if ${ac_cv_func_mmap_file+:} false; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 # Add a system to this blacklist if
15164 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15165 # memory area containing the same data that you'd get if you applied
15166 # read() to the same fd. The only system known to have a problem here
15167 # is VMS, where text files have record structure.
15168 case "$host_os" in
15169 vms* | ultrix*)
15170 ac_cv_func_mmap_file=no ;;
15171 *)
15172 ac_cv_func_mmap_file=yes;;
15173 esac
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15176 $as_echo "$ac_cv_func_mmap_file" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15178 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15179 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 # Add a system to this blacklist if it has mmap() but /dev/zero
15183 # does not exist, or if mmapping /dev/zero does not give anonymous
15184 # zeroed pages with both the following properties:
15185 # 1. If you map N consecutive pages in with one call, and then
15186 # unmap any subset of those pages, the pages that were not
15187 # explicitly unmapped remain accessible.
15188 # 2. If you map two adjacent blocks of memory and then unmap them
15189 # both at once, they must both go away.
15190 # Systems known to be in this category are Windows (all variants),
15191 # VMS, and Darwin.
15192 case "$host_os" in
15193 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15194 ac_cv_func_mmap_dev_zero=no ;;
15195 *)
15196 ac_cv_func_mmap_dev_zero=yes;;
15197 esac
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15200 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15201
15202 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15204 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15205 if ${ac_cv_decl_map_anon+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210 #include <sys/types.h>
15211 #include <sys/mman.h>
15212 #include <unistd.h>
15213
15214 #ifndef MAP_ANONYMOUS
15215 #define MAP_ANONYMOUS MAP_ANON
15216 #endif
15217
15218 int
15219 main ()
15220 {
15221 int n = MAP_ANONYMOUS;
15222 ;
15223 return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227 ac_cv_decl_map_anon=yes
15228 else
15229 ac_cv_decl_map_anon=no
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 fi
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15234 $as_echo "$ac_cv_decl_map_anon" >&6; }
15235
15236 if test $ac_cv_decl_map_anon = no; then
15237 ac_cv_func_mmap_anon=no
15238 else
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15240 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15241 if ${ac_cv_func_mmap_anon+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15245 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15246 # doesn't give anonymous zeroed pages with the same properties listed
15247 # above for use of /dev/zero.
15248 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15249 case "$host_os" in
15250 vms* | cygwin* | pe | mingw* | sco* | udk* )
15251 ac_cv_func_mmap_anon=no ;;
15252 *)
15253 ac_cv_func_mmap_anon=yes;;
15254 esac
15255 fi
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15257 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15258 fi
15259 fi
15260
15261 if test $ac_cv_func_mmap_file = yes; then
15262
15263 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15264
15265 fi
15266 if test $ac_cv_func_mmap_dev_zero = yes; then
15267
15268 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15269
15270 fi
15271 if test $ac_cv_func_mmap_anon = yes; then
15272
15273 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15274
15275 fi
15276
15277
15278 if test -d $srcdir/testsuite; then
15279 TESTSUBDIR_TRUE=
15280 TESTSUBDIR_FALSE='#'
15281 else
15282 TESTSUBDIR_TRUE='#'
15283 TESTSUBDIR_FALSE=
15284 fi
15285
15286
15287 TARGETDIR="unknown"
15288 HAVE_LONG_DOUBLE_VARIANT=0
15289
15290 . ${srcdir}/configure.host
15291
15292 if test -n "${UNSUPPORTED}"; then
15293 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15294 fi
15295
15296
15297
15298
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15300 $as_echo_n "checking for ANSI C header files... " >&6; }
15301 if ${ac_cv_header_stdc+:} false; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 #include <stdlib.h>
15307 #include <stdarg.h>
15308 #include <string.h>
15309 #include <float.h>
15310
15311 int
15312 main ()
15313 {
15314
15315 ;
15316 return 0;
15317 }
15318 _ACEOF
15319 if ac_fn_c_try_compile "$LINENO"; then :
15320 ac_cv_header_stdc=yes
15321 else
15322 ac_cv_header_stdc=no
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325
15326 if test $ac_cv_header_stdc = yes; then
15327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <string.h>
15331
15332 _ACEOF
15333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15334 $EGREP "memchr" >/dev/null 2>&1; then :
15335
15336 else
15337 ac_cv_header_stdc=no
15338 fi
15339 rm -f conftest*
15340
15341 fi
15342
15343 if test $ac_cv_header_stdc = yes; then
15344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #include <stdlib.h>
15348
15349 _ACEOF
15350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15351 $EGREP "free" >/dev/null 2>&1; then :
15352
15353 else
15354 ac_cv_header_stdc=no
15355 fi
15356 rm -f conftest*
15357
15358 fi
15359
15360 if test $ac_cv_header_stdc = yes; then
15361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15362 if test "$cross_compiling" = yes; then :
15363 :
15364 else
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 #include <ctype.h>
15368 #include <stdlib.h>
15369 #if ((' ' & 0x0FF) == 0x020)
15370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15372 #else
15373 # define ISLOWER(c) \
15374 (('a' <= (c) && (c) <= 'i') \
15375 || ('j' <= (c) && (c) <= 'r') \
15376 || ('s' <= (c) && (c) <= 'z'))
15377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15378 #endif
15379
15380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15381 int
15382 main ()
15383 {
15384 int i;
15385 for (i = 0; i < 256; i++)
15386 if (XOR (islower (i), ISLOWER (i))
15387 || toupper (i) != TOUPPER (i))
15388 return 2;
15389 return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_run "$LINENO"; then :
15393
15394 else
15395 ac_cv_header_stdc=no
15396 fi
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15398 conftest.$ac_objext conftest.beam conftest.$ac_ext
15399 fi
15400
15401 fi
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15404 $as_echo "$ac_cv_header_stdc" >&6; }
15405 if test $ac_cv_header_stdc = yes; then
15406
15407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15408
15409 fi
15410
15411 for ac_func in memcpy
15412 do :
15413 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15414 if test "x$ac_cv_func_memcpy" = xyes; then :
15415 cat >>confdefs.h <<_ACEOF
15416 #define HAVE_MEMCPY 1
15417 _ACEOF
15418
15419 fi
15420 done
15421
15422 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15423 if test "x$ac_cv_type_size_t" = xyes; then :
15424
15425 else
15426
15427 cat >>confdefs.h <<_ACEOF
15428 #define size_t unsigned int
15429 _ACEOF
15430
15431 fi
15432
15433 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15434 # for constant arguments. Useless!
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15436 $as_echo_n "checking for working alloca.h... " >&6; }
15437 if ${ac_cv_working_alloca_h+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15442 #include <alloca.h>
15443 int
15444 main ()
15445 {
15446 char *p = (char *) alloca (2 * sizeof (int));
15447 if (p) return 0;
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 if ac_fn_c_try_link "$LINENO"; then :
15453 ac_cv_working_alloca_h=yes
15454 else
15455 ac_cv_working_alloca_h=no
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15461 $as_echo "$ac_cv_working_alloca_h" >&6; }
15462 if test $ac_cv_working_alloca_h = yes; then
15463
15464 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15465
15466 fi
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15469 $as_echo_n "checking for alloca... " >&6; }
15470 if ${ac_cv_func_alloca_works+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 #ifdef __GNUC__
15476 # define alloca __builtin_alloca
15477 #else
15478 # ifdef _MSC_VER
15479 # include <malloc.h>
15480 # define alloca _alloca
15481 # else
15482 # ifdef HAVE_ALLOCA_H
15483 # include <alloca.h>
15484 # else
15485 # ifdef _AIX
15486 #pragma alloca
15487 # else
15488 # ifndef alloca /* predefined by HP cc +Olibcalls */
15489 void *alloca (size_t);
15490 # endif
15491 # endif
15492 # endif
15493 # endif
15494 #endif
15495
15496 int
15497 main ()
15498 {
15499 char *p = (char *) alloca (1);
15500 if (p) return 0;
15501 ;
15502 return 0;
15503 }
15504 _ACEOF
15505 if ac_fn_c_try_link "$LINENO"; then :
15506 ac_cv_func_alloca_works=yes
15507 else
15508 ac_cv_func_alloca_works=no
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511 conftest$ac_exeext conftest.$ac_ext
15512 fi
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15514 $as_echo "$ac_cv_func_alloca_works" >&6; }
15515
15516 if test $ac_cv_func_alloca_works = yes; then
15517
15518 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15519
15520 else
15521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15522 # that cause trouble. Some versions do not even contain alloca or
15523 # contain a buggy version. If you still want to use their alloca,
15524 # use ar to extract alloca.o from them instead of compiling alloca.c.
15525
15526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15527
15528 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15529
15530
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15532 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15533 if ${ac_cv_os_cray+:} false; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 #if defined CRAY && ! defined CRAY2
15539 webecray
15540 #else
15541 wenotbecray
15542 #endif
15543
15544 _ACEOF
15545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15546 $EGREP "webecray" >/dev/null 2>&1; then :
15547 ac_cv_os_cray=yes
15548 else
15549 ac_cv_os_cray=no
15550 fi
15551 rm -f conftest*
15552
15553 fi
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15555 $as_echo "$ac_cv_os_cray" >&6; }
15556 if test $ac_cv_os_cray = yes; then
15557 for ac_func in _getb67 GETB67 getb67; do
15558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define CRAY_STACKSEG_END $ac_func
15564 _ACEOF
15565
15566 break
15567 fi
15568
15569 done
15570 fi
15571
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15573 $as_echo_n "checking stack direction for C alloca... " >&6; }
15574 if ${ac_cv_c_stack_direction+:} false; then :
15575 $as_echo_n "(cached) " >&6
15576 else
15577 if test "$cross_compiling" = yes; then :
15578 ac_cv_c_stack_direction=0
15579 else
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 $ac_includes_default
15583 int
15584 find_stack_direction (int *addr, int depth)
15585 {
15586 int dir, dummy = 0;
15587 if (! addr)
15588 addr = &dummy;
15589 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15590 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15591 return dir + dummy;
15592 }
15593
15594 int
15595 main (int argc, char **argv)
15596 {
15597 return find_stack_direction (0, argc + !argv + 20) < 0;
15598 }
15599 _ACEOF
15600 if ac_fn_c_try_run "$LINENO"; then :
15601 ac_cv_c_stack_direction=1
15602 else
15603 ac_cv_c_stack_direction=-1
15604 fi
15605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15606 conftest.$ac_objext conftest.beam conftest.$ac_ext
15607 fi
15608
15609 fi
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15611 $as_echo "$ac_cv_c_stack_direction" >&6; }
15612 cat >>confdefs.h <<_ACEOF
15613 #define STACK_DIRECTION $ac_cv_c_stack_direction
15614 _ACEOF
15615
15616
15617 fi
15618
15619
15620 # The cast to long int works around a bug in the HP C Compiler
15621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15623 # This bug is HP SR number 8606223364.
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15625 $as_echo_n "checking size of double... " >&6; }
15626 if ${ac_cv_sizeof_double+:} false; then :
15627 $as_echo_n "(cached) " >&6
15628 else
15629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15630
15631 else
15632 if test "$ac_cv_type_double" = yes; then
15633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15635 as_fn_error 77 "cannot compute sizeof (double)
15636 See \`config.log' for more details" "$LINENO" 5; }
15637 else
15638 ac_cv_sizeof_double=0
15639 fi
15640 fi
15641
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15644 $as_echo "$ac_cv_sizeof_double" >&6; }
15645
15646
15647
15648 cat >>confdefs.h <<_ACEOF
15649 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15650 _ACEOF
15651
15652
15653 # The cast to long int works around a bug in the HP C Compiler
15654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15656 # This bug is HP SR number 8606223364.
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15658 $as_echo_n "checking size of long double... " >&6; }
15659 if ${ac_cv_sizeof_long_double+:} false; then :
15660 $as_echo_n "(cached) " >&6
15661 else
15662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15663
15664 else
15665 if test "$ac_cv_type_long_double" = yes; then
15666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15668 as_fn_error 77 "cannot compute sizeof (long double)
15669 See \`config.log' for more details" "$LINENO" 5; }
15670 else
15671 ac_cv_sizeof_long_double=0
15672 fi
15673 fi
15674
15675 fi
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15677 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15678
15679
15680
15681 cat >>confdefs.h <<_ACEOF
15682 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15683 _ACEOF
15684
15685
15686
15687 # Also AC_SUBST this variable for ffi.h.
15688 if test -z "$HAVE_LONG_DOUBLE"; then
15689 HAVE_LONG_DOUBLE=0
15690 if test $ac_cv_sizeof_long_double != 0; then
15691 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15692
15693 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15694
15695 HAVE_LONG_DOUBLE=1
15696 else
15697 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15698 HAVE_LONG_DOUBLE=1
15699
15700 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15701
15702 fi
15703 fi
15704 fi
15705 fi
15706
15707
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15710 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15711 if ${ac_cv_c_bigendian+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714 ac_cv_c_bigendian=unknown
15715 # See if we're dealing with a universal compiler.
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 #ifndef __APPLE_CC__
15719 not a universal capable compiler
15720 #endif
15721 typedef int dummy;
15722
15723 _ACEOF
15724 if ac_fn_c_try_compile "$LINENO"; then :
15725
15726 # Check for potential -arch flags. It is not universal unless
15727 # there are at least two -arch flags with different values.
15728 ac_arch=
15729 ac_prev=
15730 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15731 if test -n "$ac_prev"; then
15732 case $ac_word in
15733 i?86 | x86_64 | ppc | ppc64)
15734 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15735 ac_arch=$ac_word
15736 else
15737 ac_cv_c_bigendian=universal
15738 break
15739 fi
15740 ;;
15741 esac
15742 ac_prev=
15743 elif test "x$ac_word" = "x-arch"; then
15744 ac_prev=arch
15745 fi
15746 done
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 if test $ac_cv_c_bigendian = unknown; then
15750 # See if sys/param.h defines the BYTE_ORDER macro.
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 #include <sys/types.h>
15754 #include <sys/param.h>
15755
15756 int
15757 main ()
15758 {
15759 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15760 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15761 && LITTLE_ENDIAN)
15762 bogus endian macros
15763 #endif
15764
15765 ;
15766 return 0;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 # It does; now see whether it defined to BIG_ENDIAN or not.
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773 #include <sys/types.h>
15774 #include <sys/param.h>
15775
15776 int
15777 main ()
15778 {
15779 #if BYTE_ORDER != BIG_ENDIAN
15780 not big endian
15781 #endif
15782
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788 ac_cv_c_bigendian=yes
15789 else
15790 ac_cv_c_bigendian=no
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 fi
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 fi
15796 if test $ac_cv_c_bigendian = unknown; then
15797 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #include <limits.h>
15801
15802 int
15803 main ()
15804 {
15805 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15806 bogus endian macros
15807 #endif
15808
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_compile "$LINENO"; then :
15814 # It does; now see whether it defined to _BIG_ENDIAN or not.
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817 #include <limits.h>
15818
15819 int
15820 main ()
15821 {
15822 #ifndef _BIG_ENDIAN
15823 not big endian
15824 #endif
15825
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 ac_cv_c_bigendian=yes
15832 else
15833 ac_cv_c_bigendian=no
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 fi
15839 if test $ac_cv_c_bigendian = unknown; then
15840 # Compile a test program.
15841 if test "$cross_compiling" = yes; then :
15842 # Try to guess by grepping values from an object file.
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 short int ascii_mm[] =
15846 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15847 short int ascii_ii[] =
15848 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15849 int use_ascii (int i) {
15850 return ascii_mm[i] + ascii_ii[i];
15851 }
15852 short int ebcdic_ii[] =
15853 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15854 short int ebcdic_mm[] =
15855 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15856 int use_ebcdic (int i) {
15857 return ebcdic_mm[i] + ebcdic_ii[i];
15858 }
15859 extern int foo;
15860
15861 int
15862 main ()
15863 {
15864 return use_ascii (foo) == use_ebcdic (foo);
15865 ;
15866 return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15871 ac_cv_c_bigendian=yes
15872 fi
15873 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15874 if test "$ac_cv_c_bigendian" = unknown; then
15875 ac_cv_c_bigendian=no
15876 else
15877 # finding both strings is unlikely to happen, but who knows?
15878 ac_cv_c_bigendian=unknown
15879 fi
15880 fi
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 $ac_includes_default
15887 int
15888 main ()
15889 {
15890
15891 /* Are we little or big endian? From Harbison&Steele. */
15892 union
15893 {
15894 long int l;
15895 char c[sizeof (long int)];
15896 } u;
15897 u.l = 1;
15898 return u.c[sizeof (long int) - 1] == 1;
15899
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 if ac_fn_c_try_run "$LINENO"; then :
15905 ac_cv_c_bigendian=no
15906 else
15907 ac_cv_c_bigendian=yes
15908 fi
15909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15910 conftest.$ac_objext conftest.beam conftest.$ac_ext
15911 fi
15912
15913 fi
15914 fi
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15916 $as_echo "$ac_cv_c_bigendian" >&6; }
15917 case $ac_cv_c_bigendian in #(
15918 yes)
15919 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15920 ;; #(
15921 no)
15922 ;; #(
15923 universal)
15924
15925 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15926
15927 ;; #(
15928 *)
15929 as_fn_error $? "unknown endianness
15930 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15931 esac
15932
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15935 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15936 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939
15940 gcc_cv_as_cfi_pseudo_op=unknown
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 asm (".cfi_startproc\n\t.cfi_endproc");
15944 int
15945 main ()
15946 {
15947
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_compile "$LINENO"; then :
15953 gcc_cv_as_cfi_pseudo_op=yes
15954 else
15955 gcc_cv_as_cfi_pseudo_op=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15961 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15962 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15963
15964 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15965
15966 fi
15967
15968
15969 case "$TARGET" in
15970 SPARC)
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15972 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15973 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976
15977 save_CFLAGS="$CFLAGS"
15978 save_LDFLAGS="$LDFLAGS"
15979 CFLAGS="$CFLAGS -fpic"
15980 LDFLAGS="$LDFLAGS -shared"
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15984 int
15985 main ()
15986 {
15987
15988 ;
15989 return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_c_try_link "$LINENO"; then :
15993 libffi_cv_as_sparc_ua_pcrel=yes
15994 else
15995 libffi_cv_as_sparc_ua_pcrel=no
15996 fi
15997 rm -f core conftest.err conftest.$ac_objext \
15998 conftest$ac_exeext conftest.$ac_ext
15999 CFLAGS="$save_CFLAGS"
16000 LDFLAGS="$save_LDFLAGS"
16001 fi
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
16003 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
16004 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
16005
16006 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
16007
16008 fi
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
16011 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
16012 if ${libffi_cv_as_register_pseudo_op+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015
16016 libffi_cv_as_register_pseudo_op=unknown
16017 # Check if we have .register
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020
16021 int
16022 main ()
16023 {
16024 asm (".register %g2, #scratch");
16025 ;
16026 return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_c_try_compile "$LINENO"; then :
16030 libffi_cv_as_register_pseudo_op=yes
16031 else
16032 libffi_cv_as_register_pseudo_op=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035
16036 fi
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
16038 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
16039 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
16040
16041 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
16042
16043 fi
16044 ;;
16045
16046 X86*)
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16048 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
16049 if ${libffi_cv_as_x86_pcrel+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052
16053 libffi_cv_as_x86_pcrel=no
16054 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16055 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
16056 libffi_cv_as_x86_pcrel=yes
16057 fi
16058
16059 fi
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
16061 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
16062 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
16063
16064 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16065
16066 fi
16067 ;;
16068
16069 S390)
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
16071 $as_echo_n "checking compiler uses zarch features... " >&6; }
16072 if ${libffi_cv_as_s390_zarch+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075
16076 libffi_cv_as_s390_zarch=no
16077 echo 'void foo(void) { bar(); bar(); }' > conftest.c
16078 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
16079 if grep -q brasl conftest.s; then
16080 libffi_cv_as_s390_zarch=yes
16081 fi
16082 fi
16083
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
16086 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
16087 if test "x$libffi_cv_as_s390_zarch" = xyes; then
16088
16089 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16090
16091 fi
16092 ;;
16093 esac
16094
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16096 $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16097 if ${libffi_cv_as_ptrauth+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100
16101 libffi_cv_as_ptrauth=unknown
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
16105 int
16106 main ()
16107 {
16108
16109 #ifdef __clang__
16110 # if __has_feature(ptrauth_calls)
16111 # define HAVE_PTRAUTH 1
16112 # endif
16113 #endif
16114
16115 #ifndef HAVE_PTRAUTH
16116 # error Pointer authentication not supported
16117 #endif
16118
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_compile "$LINENO"; then :
16124 libffi_cv_as_ptrauth=yes
16125 else
16126 libffi_cv_as_ptrauth=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129
16130 fi
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16132 $as_echo "$libffi_cv_as_ptrauth" >&6; }
16133 if test "x$libffi_cv_as_ptrauth" = xyes; then
16134
16135 $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16136
16137 fi
16138
16139 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16140 # Check whether --enable-pax_emutramp was given.
16141 if test "${enable_pax_emutramp+set}" = set; then :
16142 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16143
16144 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16145
16146 fi
16147 fi
16148
16149
16150 FFI_EXEC_TRAMPOLINE_TABLE=0
16151 case "$target" in
16152 *arm*-apple-* | aarch64-apple-*)
16153 FFI_EXEC_TRAMPOLINE_TABLE=1
16154
16155 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16156
16157 ;;
16158 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16159
16160 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16161
16162 ;;
16163 esac
16164 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16165 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16166 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16167 else
16168 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16169 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16170 fi
16171
16172
16173
16174 if test x$TARGET = xX86_64; then
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16176 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16177 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179 else
16180
16181 cat > conftest1.s << EOF
16182 .text
16183 .globl foo
16184 foo:
16185 jmp bar
16186 .section .eh_frame,"a",@unwind
16187 bar:
16188 EOF
16189
16190 cat > conftest2.c << EOF
16191 extern void foo();
16192 int main(){foo();}
16193 EOF
16194
16195 libffi_cv_as_x86_64_unwind_section_type=no
16196 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16197 # since the compiler can support it and not the linker (ie old binutils)
16198 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16199 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16200 libffi_cv_as_x86_64_unwind_section_type=yes
16201 fi
16202
16203 fi
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16205 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16206 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16207
16208 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16209
16210 fi
16211 fi
16212
16213 if test "x$GCC" = "xyes"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16215 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16216 if ${libffi_cv_ro_eh_frame+:} false; then :
16217 $as_echo_n "(cached) " >&6
16218 else
16219
16220 libffi_cv_ro_eh_frame=yes
16221 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16222 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16223 if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16224 libffi_cv_ro_eh_frame=no
16225 fi
16226 fi
16227 rm -f conftest.*
16228
16229 fi
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16231 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16232 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16233
16234 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16235
16236
16237 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16238
16239 else
16240
16241 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16242
16243 fi
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16246 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16247 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250
16251 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16252 libffi_cv_hidden_visibility_attribute=no
16253 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16258 test $ac_status = 0; }; }; then
16259 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16260 libffi_cv_hidden_visibility_attribute=yes
16261 fi
16262 fi
16263 rm -f conftest.*
16264
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16267 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16268 if test $libffi_cv_hidden_visibility_attribute = yes; then
16269
16270 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16271
16272 fi
16273 fi
16274
16275 # See if makeinfo has been installed and is modern enough
16276 # that we can use it.
16277
16278 # Extract the first word of "makeinfo", so it can be a program name with args.
16279 set dummy makeinfo; ac_word=$2
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16281 $as_echo_n "checking for $ac_word... " >&6; }
16282 if ${ac_cv_prog_MAKEINFO+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 if test -n "$MAKEINFO"; then
16286 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16287 else
16288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16289 for as_dir in $PATH
16290 do
16291 IFS=$as_save_IFS
16292 test -z "$as_dir" && as_dir=.
16293 for ac_exec_ext in '' $ac_executable_extensions; do
16294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16295 ac_cv_prog_MAKEINFO="makeinfo"
16296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16297 break 2
16298 fi
16299 done
16300 done
16301 IFS=$as_save_IFS
16302
16303 fi
16304 fi
16305 MAKEINFO=$ac_cv_prog_MAKEINFO
16306 if test -n "$MAKEINFO"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16308 $as_echo "$MAKEINFO" >&6; }
16309 else
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16311 $as_echo "no" >&6; }
16312 fi
16313
16314
16315 if test -n "$MAKEINFO"; then
16316 # Found it, now check the version.
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16318 $as_echo_n "checking for modern makeinfo... " >&6; }
16319 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16320 $as_echo_n "(cached) " >&6
16321 else
16322 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16323 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16324
16325 case $ac_prog_version in
16326 '') gcc_cv_prog_makeinfo_modern=no;;
16327 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
16328 *) gcc_cv_prog_makeinfo_modern=no;;
16329 esac
16330
16331 fi
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16333 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16334 else
16335 gcc_cv_prog_makeinfo_modern=no
16336 fi
16337 if test $gcc_cv_prog_makeinfo_modern = no; then
16338 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16339 fi
16340
16341 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16342 BUILD_DOCS_TRUE=
16343 BUILD_DOCS_FALSE='#'
16344 else
16345 BUILD_DOCS_TRUE='#'
16346 BUILD_DOCS_FALSE=
16347 fi
16348
16349
16350
16351
16352
16353
16354
16355
16356 TARGET_OBJ=
16357 for i in $SOURCES; do
16358 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16359 done
16360
16361
16362
16363
16364
16365 # Check whether --enable-debug was given.
16366 if test "${enable_debug+set}" = set; then :
16367 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16368
16369 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16370
16371 fi
16372 fi
16373
16374 if test "$enable_debug" = "yes"; then
16375 FFI_DEBUG_TRUE=
16376 FFI_DEBUG_FALSE='#'
16377 else
16378 FFI_DEBUG_TRUE='#'
16379 FFI_DEBUG_FALSE=
16380 fi
16381
16382
16383 # Check whether --enable-structs was given.
16384 if test "${enable_structs+set}" = set; then :
16385 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16386
16387 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16388
16389 fi
16390 fi
16391
16392 if test "$enable_debug" = "yes"; then
16393 FFI_DEBUG_TRUE=
16394 FFI_DEBUG_FALSE='#'
16395 else
16396 FFI_DEBUG_TRUE='#'
16397 FFI_DEBUG_FALSE=
16398 fi
16399
16400
16401 # Check whether --enable-raw-api was given.
16402 if test "${enable_raw_api+set}" = set; then :
16403 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16404
16405 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16406
16407 fi
16408 fi
16409
16410
16411 # Check whether --enable-exec-static-tramp was given.
16412 if test "${enable_exec_static_tramp+set}" = set; then :
16413 enableval=$enable_exec_static_tramp;
16414 fi
16415
16416
16417 if test "$enable_exec_static_tramp" = yes; then
16418 case "$target" in
16419 *-cygwin*)
16420 ;;
16421 *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16422
16423 $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16424
16425 ;;
16426 esac
16427 fi
16428
16429 # Check whether --enable-purify-safety was given.
16430 if test "${enable_purify_safety+set}" = set; then :
16431 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16432
16433 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16434
16435 fi
16436 fi
16437
16438
16439
16440 # Check whether --with-toolexeclibdir was given.
16441 if test "${with_toolexeclibdir+set}" = set; then :
16442 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16443 /)
16444 ;;
16445 */)
16446 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16447 ;;
16448 esac
16449 else
16450 with_toolexeclibdir=no
16451 fi
16452
16453
16454
16455 if test -n "$with_cross_host" &&
16456 test x"$with_cross_host" != x"no"; then
16457 toolexecdir='$(exec_prefix)/$(target_alias)'
16458 case ${with_toolexeclibdir} in
16459 no)
16460 toolexeclibdir='$(toolexecdir)/lib'
16461 ;;
16462 *)
16463 toolexeclibdir=${with_toolexeclibdir}
16464 ;;
16465 esac
16466 else
16467 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16468 toolexeclibdir='$(libdir)'
16469 fi
16470 multi_os_directory=`$CC -print-multi-os-directory`
16471 case $multi_os_directory in
16472 .) ;; # Avoid trailing /.
16473 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16474 esac
16475
16476
16477
16478 if test "${multilib}" = "yes"; then
16479 multilib_arg="--enable-multilib"
16480 else
16481 multilib_arg=
16482 fi
16483
16484 # Check linker support.
16485
16486
16487 # Check whether --with-gnu-ld was given.
16488 if test "${with_gnu_ld+set}" = set; then :
16489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16490 else
16491 with_gnu_ld=no
16492 fi
16493
16494 ac_prog=ld
16495 if test "$GCC" = yes; then
16496 # Check if gcc -print-prog-name=ld gives a path.
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16498 $as_echo_n "checking for ld used by $CC... " >&6; }
16499 case $host in
16500 *-*-mingw*)
16501 # gcc leaves a trailing carriage return which upsets mingw
16502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16503 *)
16504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16505 esac
16506 case $ac_prog in
16507 # Accept absolute paths.
16508 [\\/]* | ?:[\\/]*)
16509 re_direlt='/[^/][^/]*/\.\./'
16510 # Canonicalize the pathname of ld
16511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16514 done
16515 test -z "$LD" && LD="$ac_prog"
16516 ;;
16517 "")
16518 # If it fails, then pretend we aren't using GCC.
16519 ac_prog=ld
16520 ;;
16521 *)
16522 # If it is relative, then search for the first ld in PATH.
16523 with_gnu_ld=unknown
16524 ;;
16525 esac
16526 elif test "$with_gnu_ld" = yes; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16528 $as_echo_n "checking for GNU ld... " >&6; }
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16531 $as_echo_n "checking for non-GNU ld... " >&6; }
16532 fi
16533 if ${lt_cv_path_LD+:} false; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 if test -z "$LD"; then
16537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16538 for ac_dir in $PATH; do
16539 IFS="$lt_save_ifs"
16540 test -z "$ac_dir" && ac_dir=.
16541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16542 lt_cv_path_LD="$ac_dir/$ac_prog"
16543 # Check to see if the program is GNU ld. I'd rather use --version,
16544 # but apparently some variants of GNU ld only accept -v.
16545 # Break only if it was the GNU/non-GNU ld that we prefer.
16546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16547 *GNU* | *'with BFD'*)
16548 test "$with_gnu_ld" != no && break
16549 ;;
16550 *)
16551 test "$with_gnu_ld" != yes && break
16552 ;;
16553 esac
16554 fi
16555 done
16556 IFS="$lt_save_ifs"
16557 else
16558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16559 fi
16560 fi
16561
16562 LD="$lt_cv_path_LD"
16563 if test -n "$LD"; then
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16565 $as_echo "$LD" >&6; }
16566 else
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568 $as_echo "no" >&6; }
16569 fi
16570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16573 if ${lt_cv_prog_gnu_ld+:} false; then :
16574 $as_echo_n "(cached) " >&6
16575 else
16576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16577 case `$LD -v 2>&1 </dev/null` in
16578 *GNU* | *'with BFD'*)
16579 lt_cv_prog_gnu_ld=yes
16580 ;;
16581 *)
16582 lt_cv_prog_gnu_ld=no
16583 ;;
16584 esac
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16587 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16588 with_gnu_ld=$lt_cv_prog_gnu_ld
16589
16590
16591
16592
16593
16594
16595
16596 # If we're not using GNU ld, then there's no point in even trying these
16597 # tests. Check for that first. We should have already tested for gld
16598 # by now (in libtool), but require it now just to be safe...
16599 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16600 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16601
16602
16603
16604 # The name set by libtool depends on the version of libtool. Shame on us
16605 # for depending on an impl detail, but c'est la vie. Older versions used
16606 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16607 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16608 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16609 # set (hence we're using an older libtool), then set it.
16610 if test x${with_gnu_ld+set} != xset; then
16611 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16612 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16613 with_gnu_ld=no
16614 else
16615 with_gnu_ld=$ac_cv_prog_gnu_ld
16616 fi
16617 fi
16618
16619 # Start by getting the version number. I think the libtool test already
16620 # does some of this, but throws away the result.
16621 libat_ld_is_gold=no
16622 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16623 libat_ld_is_gold=yes
16624 fi
16625 libat_ld_is_lld=no
16626 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16627 libat_ld_is_lld=yes
16628 fi
16629
16630 ldver=`$LD --version 2>/dev/null |
16631 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16632
16633 libat_gnu_ld_version=`echo $ldver | \
16634 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16635
16636 # Set --gc-sections.
16637 if test "$with_gnu_ld" = "notbroken"; then
16638 # GNU ld it is! Joy and bunny rabbits!
16639
16640 # All these tests are for C++; save the language and the compiler flags.
16641 # Need to do this so that g++ won't try to link in libstdc++
16642 ac_test_CFLAGS="${CFLAGS+set}"
16643 ac_save_CFLAGS="$CFLAGS"
16644 CFLAGS='-x c++ -Wl,--gc-sections'
16645
16646 # Check for -Wl,--gc-sections
16647 # XXX This test is broken at the moment, as symbols required for linking
16648 # are now in libsupc++ (not built yet). In addition, this test has
16649 # cored on solaris in the past. In addition, --gc-sections doesn't
16650 # really work at the moment (keeps on discarding used sections, first
16651 # .eh_frame and now some of the glibc sections for iconv).
16652 # Bzzzzt. Thanks for playing, maybe next time.
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16654 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16655 if test "$cross_compiling" = yes; then :
16656 ac_sectionLDflags=yes
16657 else
16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659 /* end confdefs.h. */
16660
16661 int main(void)
16662 {
16663 try { throw 1; }
16664 catch (...) { };
16665 return 0;
16666 }
16667
16668 _ACEOF
16669 if ac_fn_c_try_run "$LINENO"; then :
16670 ac_sectionLDflags=yes
16671 else
16672 ac_sectionLDflags=no
16673 fi
16674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16675 conftest.$ac_objext conftest.beam conftest.$ac_ext
16676 fi
16677
16678 if test "$ac_test_CFLAGS" = set; then
16679 CFLAGS="$ac_save_CFLAGS"
16680 else
16681 # this is the suspicious part
16682 CFLAGS=''
16683 fi
16684 if test "$ac_sectionLDflags" = "yes"; then
16685 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16686 fi
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16688 $as_echo "$ac_sectionLDflags" >&6; }
16689 fi
16690
16691 # Set linker optimization flags.
16692 if test x"$with_gnu_ld" = x"yes"; then
16693 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16694 fi
16695
16696
16697
16698
16699
16700
16701 # Check whether --enable-symvers was given.
16702 if test "${enable_symvers+set}" = set; then :
16703 enableval=$enable_symvers;
16704 case "$enableval" in
16705 yes|no|gnu*|sun) ;;
16706 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16707 esac
16708
16709 else
16710 enable_symvers=yes
16711 fi
16712
16713
16714
16715 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16716 # don't know enough about $LD to do tricks...
16717
16718
16719 # Turn a 'yes' into a suitable default.
16720 if test x$enable_symvers = xyes ; then
16721 # FIXME The following test is too strict, in theory.
16722 if test $enable_shared = no || test "x$LD" = x; then
16723 enable_symvers=no
16724 else
16725 if test $with_gnu_ld = yes ; then
16726 enable_symvers=gnu
16727 else
16728 case ${target_os} in
16729 # Sun symbol versioning exists since Solaris 2.5.
16730 solaris2.[5-9]* | solaris2.1[0-9]*)
16731 enable_symvers=sun ;;
16732 *)
16733 enable_symvers=no ;;
16734 esac
16735 fi
16736 fi
16737 fi
16738
16739 # Check if 'sun' was requested on non-Solaris 2 platforms.
16740 if test x$enable_symvers = xsun ; then
16741 case ${target_os} in
16742 solaris2*)
16743 # All fine.
16744 ;;
16745 *)
16746 # Unlikely to work.
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16748 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16750 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16752 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16753 enable_symvers=no
16754 ;;
16755 esac
16756 fi
16757
16758 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16759 if test $enable_symvers != no; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16761 $as_echo_n "checking for shared libgcc... " >&6; }
16762 ac_save_CFLAGS="$CFLAGS"
16763 CFLAGS=' -lgcc_s'
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16766
16767 int
16768 main ()
16769 {
16770 return 0;
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 if ac_fn_c_try_link "$LINENO"; then :
16776 libat_shared_libgcc=yes
16777 else
16778 libat_shared_libgcc=no
16779 fi
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782 CFLAGS="$ac_save_CFLAGS"
16783 if test $libat_shared_libgcc = no; then
16784 cat > conftest.c <<EOF
16785 int main (void) { return 0; }
16786 EOF
16787 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16788 -shared -shared-libgcc -o conftest.so \
16789 conftest.c -v 2>&1 >/dev/null \
16790 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16791 rm -f conftest.c conftest.so
16792 if test x${libat_libgcc_s_suffix+set} = xset; then
16793 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16796
16797 int
16798 main ()
16799 {
16800 return 0;
16801 ;
16802 return 0;
16803 }
16804 _ACEOF
16805 if ac_fn_c_try_link "$LINENO"; then :
16806 libat_shared_libgcc=yes
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 CFLAGS="$ac_save_CFLAGS"
16811 fi
16812 fi
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16814 $as_echo "$libat_shared_libgcc" >&6; }
16815 fi
16816
16817 # For GNU ld, we need at least this version. The format is described in
16818 # LIBFFI_CHECK_LINKER_FEATURES above.
16819 libat_min_gnu_ld_version=21400
16820 # XXXXXXXXXXX libat_gnu_ld_version=21390
16821
16822 # Check to see if unspecified "yes" value can win, given results above.
16823 # Change "yes" into either "no" or a style name.
16824 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16825 if test $with_gnu_ld = yes; then
16826 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16827 enable_symvers=gnu
16828 elif test $libat_ld_is_gold = yes ; then
16829 enable_symvers=gnu
16830 elif test $libat_ld_is_lld = yes ; then
16831 enable_symvers=gnu
16832 else
16833 # The right tools, the right setup, but too old. Fallbacks?
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16835 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16837 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16839 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16841 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16842 if test $libat_gnu_ld_version -ge 21200 ; then
16843 # Globbing fix is present, proper block support is not.
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16845 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16846 enable_symvers=no
16847 else
16848 # 2.11 or older.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16850 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16851 enable_symvers=no
16852 fi
16853 fi
16854 elif test $enable_symvers = sun; then
16855 : All interesting versions of Sun ld support sun style symbol versioning.
16856 else
16857 # just fail for now
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16859 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16861 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16863 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16865 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16866 enable_symvers=no
16867 fi
16868 fi
16869 if test $enable_symvers = gnu; then
16870
16871 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16872
16873 fi
16874
16875 if test $enable_symvers != no; then
16876 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
16877 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
16878 else
16879 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
16880 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
16881 fi
16882
16883 if test $enable_symvers = gnu; then
16884 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16885 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16886 else
16887 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16888 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16889 fi
16890
16891 if test $enable_symvers = sun; then
16892 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16893 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16894 else
16895 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16896 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16897 fi
16898
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16900 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16901
16902
16903 # Determine what GCC version number to use in filesystem paths.
16904
16905 get_gcc_base_ver="cat"
16906
16907 # Check whether --with-gcc-major-version-only was given.
16908 if test "${with_gcc_major_version_only+set}" = set; then :
16909 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16910 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16911 fi
16912
16913 fi
16914
16915
16916
16917
16918 ac_config_commands="$ac_config_commands include"
16919
16920 ac_config_commands="$ac_config_commands src"
16921
16922
16923 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16924
16925
16926 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16927
16928
16929 cat >confcache <<\_ACEOF
16930 # This file is a shell script that caches the results of configure
16931 # tests run on this system so they can be shared between configure
16932 # scripts and configure runs, see configure's option --config-cache.
16933 # It is not useful on other systems. If it contains results you don't
16934 # want to keep, you may remove or edit it.
16935 #
16936 # config.status only pays attention to the cache file if you give it
16937 # the --recheck option to rerun configure.
16938 #
16939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16941 # following values.
16942
16943 _ACEOF
16944
16945 # The following way of writing the cache mishandles newlines in values,
16946 # but we know of no workaround that is simple, portable, and efficient.
16947 # So, we kill variables containing newlines.
16948 # Ultrix sh set writes to stderr and can't be redirected directly,
16949 # and sets the high bit in the cache file unless we assign to the vars.
16950 (
16951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16952 eval ac_val=\$$ac_var
16953 case $ac_val in #(
16954 *${as_nl}*)
16955 case $ac_var in #(
16956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16958 esac
16959 case $ac_var in #(
16960 _ | IFS | as_nl) ;; #(
16961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16962 *) { eval $ac_var=; unset $ac_var;} ;;
16963 esac ;;
16964 esac
16965 done
16966
16967 (set) 2>&1 |
16968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16969 *${as_nl}ac_space=\ *)
16970 # `set' does not quote correctly, so add quotes: double-quote
16971 # substitution turns \\\\ into \\, and sed turns \\ into \.
16972 sed -n \
16973 "s/'/'\\\\''/g;
16974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16975 ;; #(
16976 *)
16977 # `set' quotes correctly as required by POSIX, so do not add quotes.
16978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16979 ;;
16980 esac |
16981 sort
16982 ) |
16983 sed '
16984 /^ac_cv_env_/b end
16985 t clear
16986 :clear
16987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16988 t end
16989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16990 :end' >>confcache
16991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16992 if test -w "$cache_file"; then
16993 if test "x$cache_file" != "x/dev/null"; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16995 $as_echo "$as_me: updating cache $cache_file" >&6;}
16996 if test ! -f "$cache_file" || test -h "$cache_file"; then
16997 cat confcache >"$cache_file"
16998 else
16999 case $cache_file in #(
17000 */* | ?:*)
17001 mv -f confcache "$cache_file"$$ &&
17002 mv -f "$cache_file"$$ "$cache_file" ;; #(
17003 *)
17004 mv -f confcache "$cache_file" ;;
17005 esac
17006 fi
17007 fi
17008 else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17011 fi
17012 fi
17013 rm -f confcache
17014
17015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17016 # Let make expand exec_prefix.
17017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17018
17019 DEFS=-DHAVE_CONFIG_H
17020
17021 ac_libobjs=
17022 ac_ltlibobjs=
17023 U=
17024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17025 # 1. Remove the extension, and $U if already installed.
17026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17029 # will be set to the directory where LIBOBJS objects are built.
17030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17032 done
17033 LIBOBJS=$ac_libobjs
17034
17035 LTLIBOBJS=$ac_ltlibobjs
17036
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17039 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17040 if test -n "$am_sleep_pid"; then
17041 # Hide warnings about reused PIDs.
17042 wait $am_sleep_pid 2>/dev/null
17043 fi
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17045 $as_echo "done" >&6; }
17046 if test -n "$EXEEXT"; then
17047 am__EXEEXT_TRUE=
17048 am__EXEEXT_FALSE='#'
17049 else
17050 am__EXEEXT_TRUE='#'
17051 am__EXEEXT_FALSE=
17052 fi
17053
17054 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17055 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 fi
17058 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17059 as_fn_error $? "conditional \"AMDEP\" was never defined.
17060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 fi
17062 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17063 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 fi
17066 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17067 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 fi
17070 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17071 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 fi
17074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17075 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 fi
17078 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17079 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
17080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081 fi
17082
17083 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
17084 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
17085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17086 fi
17087 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17088 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17090 fi
17091 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17092 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17094 fi
17095 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17096 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17098 fi
17099 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17100 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17102 fi
17103 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17104 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17106 fi
17107 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17108 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17110 fi
17111
17112 : "${CONFIG_STATUS=./config.status}"
17113 ac_write_fail=0
17114 ac_clean_files_save=$ac_clean_files
17115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17117 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17118 as_write_fail=0
17119 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17120 #! $SHELL
17121 # Generated by $as_me.
17122 # Run this file to recreate the current configuration.
17123 # Compiler output produced by configure, useful for debugging
17124 # configure, is in config.log if it exists.
17125
17126 debug=false
17127 ac_cs_recheck=false
17128 ac_cs_silent=false
17129
17130 SHELL=\${CONFIG_SHELL-$SHELL}
17131 export SHELL
17132 _ASEOF
17133 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17134 ## -------------------- ##
17135 ## M4sh Initialization. ##
17136 ## -------------------- ##
17137
17138 # Be more Bourne compatible
17139 DUALCASE=1; export DUALCASE # for MKS sh
17140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17141 emulate sh
17142 NULLCMD=:
17143 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17144 # is contrary to our usage. Disable this feature.
17145 alias -g '${1+"$@"}'='"$@"'
17146 setopt NO_GLOB_SUBST
17147 else
17148 case `(set -o) 2>/dev/null` in #(
17149 *posix*) :
17150 set -o posix ;; #(
17151 *) :
17152 ;;
17153 esac
17154 fi
17155
17156
17157 as_nl='
17158 '
17159 export as_nl
17160 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17161 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17164 # Prefer a ksh shell builtin over an external printf program on Solaris,
17165 # but without wasting forks for bash or zsh.
17166 if test -z "$BASH_VERSION$ZSH_VERSION" \
17167 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17168 as_echo='print -r --'
17169 as_echo_n='print -rn --'
17170 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17171 as_echo='printf %s\n'
17172 as_echo_n='printf %s'
17173 else
17174 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17175 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17176 as_echo_n='/usr/ucb/echo -n'
17177 else
17178 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17179 as_echo_n_body='eval
17180 arg=$1;
17181 case $arg in #(
17182 *"$as_nl"*)
17183 expr "X$arg" : "X\\(.*\\)$as_nl";
17184 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17185 esac;
17186 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17187 '
17188 export as_echo_n_body
17189 as_echo_n='sh -c $as_echo_n_body as_echo'
17190 fi
17191 export as_echo_body
17192 as_echo='sh -c $as_echo_body as_echo'
17193 fi
17194
17195 # The user is always right.
17196 if test "${PATH_SEPARATOR+set}" != set; then
17197 PATH_SEPARATOR=:
17198 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17199 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17200 PATH_SEPARATOR=';'
17201 }
17202 fi
17203
17204
17205 # IFS
17206 # We need space, tab and new line, in precisely that order. Quoting is
17207 # there to prevent editors from complaining about space-tab.
17208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17209 # splitting by setting IFS to empty value.)
17210 IFS=" "" $as_nl"
17211
17212 # Find who we are. Look in the path if we contain no directory separator.
17213 as_myself=
17214 case $0 in #((
17215 *[\\/]* ) as_myself=$0 ;;
17216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 for as_dir in $PATH
17218 do
17219 IFS=$as_save_IFS
17220 test -z "$as_dir" && as_dir=.
17221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17222 done
17223 IFS=$as_save_IFS
17224
17225 ;;
17226 esac
17227 # We did not find ourselves, most probably we were run as `sh COMMAND'
17228 # in which case we are not to be found in the path.
17229 if test "x$as_myself" = x; then
17230 as_myself=$0
17231 fi
17232 if test ! -f "$as_myself"; then
17233 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17234 exit 1
17235 fi
17236
17237 # Unset variables that we do not need and which cause bugs (e.g. in
17238 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17239 # suppresses any "Segmentation fault" message there. '((' could
17240 # trigger a bug in pdksh 5.2.14.
17241 for as_var in BASH_ENV ENV MAIL MAILPATH
17242 do eval test x\${$as_var+set} = xset \
17243 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17244 done
17245 PS1='$ '
17246 PS2='> '
17247 PS4='+ '
17248
17249 # NLS nuisances.
17250 LC_ALL=C
17251 export LC_ALL
17252 LANGUAGE=C
17253 export LANGUAGE
17254
17255 # CDPATH.
17256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17257
17258
17259 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17260 # ----------------------------------------
17261 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17262 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17263 # script with STATUS, using 1 if that was 0.
17264 as_fn_error ()
17265 {
17266 as_status=$1; test $as_status -eq 0 && as_status=1
17267 if test "$4"; then
17268 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17269 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17270 fi
17271 $as_echo "$as_me: error: $2" >&2
17272 as_fn_exit $as_status
17273 } # as_fn_error
17274
17275
17276 # as_fn_set_status STATUS
17277 # -----------------------
17278 # Set $? to STATUS, without forking.
17279 as_fn_set_status ()
17280 {
17281 return $1
17282 } # as_fn_set_status
17283
17284 # as_fn_exit STATUS
17285 # -----------------
17286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17287 as_fn_exit ()
17288 {
17289 set +e
17290 as_fn_set_status $1
17291 exit $1
17292 } # as_fn_exit
17293
17294 # as_fn_unset VAR
17295 # ---------------
17296 # Portably unset VAR.
17297 as_fn_unset ()
17298 {
17299 { eval $1=; unset $1;}
17300 }
17301 as_unset=as_fn_unset
17302 # as_fn_append VAR VALUE
17303 # ----------------------
17304 # Append the text in VALUE to the end of the definition contained in VAR. Take
17305 # advantage of any shell optimizations that allow amortized linear growth over
17306 # repeated appends, instead of the typical quadratic growth present in naive
17307 # implementations.
17308 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17309 eval 'as_fn_append ()
17310 {
17311 eval $1+=\$2
17312 }'
17313 else
17314 as_fn_append ()
17315 {
17316 eval $1=\$$1\$2
17317 }
17318 fi # as_fn_append
17319
17320 # as_fn_arith ARG...
17321 # ------------------
17322 # Perform arithmetic evaluation on the ARGs, and store the result in the
17323 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17324 # must be portable across $(()) and expr.
17325 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17326 eval 'as_fn_arith ()
17327 {
17328 as_val=$(( $* ))
17329 }'
17330 else
17331 as_fn_arith ()
17332 {
17333 as_val=`expr "$@" || test $? -eq 1`
17334 }
17335 fi # as_fn_arith
17336
17337
17338 if expr a : '\(a\)' >/dev/null 2>&1 &&
17339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17340 as_expr=expr
17341 else
17342 as_expr=false
17343 fi
17344
17345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17346 as_basename=basename
17347 else
17348 as_basename=false
17349 fi
17350
17351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17352 as_dirname=dirname
17353 else
17354 as_dirname=false
17355 fi
17356
17357 as_me=`$as_basename -- "$0" ||
17358 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17359 X"$0" : 'X\(//\)$' \| \
17360 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17361 $as_echo X/"$0" |
17362 sed '/^.*\/\([^/][^/]*\)\/*$/{
17363 s//\1/
17364 q
17365 }
17366 /^X\/\(\/\/\)$/{
17367 s//\1/
17368 q
17369 }
17370 /^X\/\(\/\).*/{
17371 s//\1/
17372 q
17373 }
17374 s/.*/./; q'`
17375
17376 # Avoid depending upon Character Ranges.
17377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17380 as_cr_digits='0123456789'
17381 as_cr_alnum=$as_cr_Letters$as_cr_digits
17382
17383 ECHO_C= ECHO_N= ECHO_T=
17384 case `echo -n x` in #(((((
17385 -n*)
17386 case `echo 'xy\c'` in
17387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17388 xy) ECHO_C='\c';;
17389 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17390 ECHO_T=' ';;
17391 esac;;
17392 *)
17393 ECHO_N='-n';;
17394 esac
17395
17396 rm -f conf$$ conf$$.exe conf$$.file
17397 if test -d conf$$.dir; then
17398 rm -f conf$$.dir/conf$$.file
17399 else
17400 rm -f conf$$.dir
17401 mkdir conf$$.dir 2>/dev/null
17402 fi
17403 if (echo >conf$$.file) 2>/dev/null; then
17404 if ln -s conf$$.file conf$$ 2>/dev/null; then
17405 as_ln_s='ln -s'
17406 # ... but there are two gotchas:
17407 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17408 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17409 # In both cases, we have to default to `cp -pR'.
17410 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17411 as_ln_s='cp -pR'
17412 elif ln conf$$.file conf$$ 2>/dev/null; then
17413 as_ln_s=ln
17414 else
17415 as_ln_s='cp -pR'
17416 fi
17417 else
17418 as_ln_s='cp -pR'
17419 fi
17420 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17421 rmdir conf$$.dir 2>/dev/null
17422
17423
17424 # as_fn_mkdir_p
17425 # -------------
17426 # Create "$as_dir" as a directory, including parents if necessary.
17427 as_fn_mkdir_p ()
17428 {
17429
17430 case $as_dir in #(
17431 -*) as_dir=./$as_dir;;
17432 esac
17433 test -d "$as_dir" || eval $as_mkdir_p || {
17434 as_dirs=
17435 while :; do
17436 case $as_dir in #(
17437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17438 *) as_qdir=$as_dir;;
17439 esac
17440 as_dirs="'$as_qdir' $as_dirs"
17441 as_dir=`$as_dirname -- "$as_dir" ||
17442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443 X"$as_dir" : 'X\(//\)[^/]' \| \
17444 X"$as_dir" : 'X\(//\)$' \| \
17445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17446 $as_echo X"$as_dir" |
17447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17448 s//\1/
17449 q
17450 }
17451 /^X\(\/\/\)[^/].*/{
17452 s//\1/
17453 q
17454 }
17455 /^X\(\/\/\)$/{
17456 s//\1/
17457 q
17458 }
17459 /^X\(\/\).*/{
17460 s//\1/
17461 q
17462 }
17463 s/.*/./; q'`
17464 test -d "$as_dir" && break
17465 done
17466 test -z "$as_dirs" || eval "mkdir $as_dirs"
17467 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17468
17469
17470 } # as_fn_mkdir_p
17471 if mkdir -p . 2>/dev/null; then
17472 as_mkdir_p='mkdir -p "$as_dir"'
17473 else
17474 test -d ./-p && rmdir ./-p
17475 as_mkdir_p=false
17476 fi
17477
17478
17479 # as_fn_executable_p FILE
17480 # -----------------------
17481 # Test if FILE is an executable regular file.
17482 as_fn_executable_p ()
17483 {
17484 test -f "$1" && test -x "$1"
17485 } # as_fn_executable_p
17486 as_test_x='test -x'
17487 as_executable_p=as_fn_executable_p
17488
17489 # Sed expression to map a string onto a valid CPP name.
17490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17491
17492 # Sed expression to map a string onto a valid variable name.
17493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17494
17495
17496 exec 6>&1
17497 ## ----------------------------------- ##
17498 ## Main body of $CONFIG_STATUS script. ##
17499 ## ----------------------------------- ##
17500 _ASEOF
17501 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17502
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 # Save the log message, to keep $0 and so on meaningful, and to
17505 # report actual input values of CONFIG_FILES etc. instead of their
17506 # values after options handling.
17507 ac_log="
17508 This file was extended by libffi $as_me 3.4.2, which was
17509 generated by GNU Autoconf 2.69. Invocation command line was
17510
17511 CONFIG_FILES = $CONFIG_FILES
17512 CONFIG_HEADERS = $CONFIG_HEADERS
17513 CONFIG_LINKS = $CONFIG_LINKS
17514 CONFIG_COMMANDS = $CONFIG_COMMANDS
17515 $ $0 $@
17516
17517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17518 "
17519
17520 _ACEOF
17521
17522 case $ac_config_files in *"
17523 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17524 esac
17525
17526 case $ac_config_headers in *"
17527 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17528 esac
17529
17530
17531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17532 # Files that config.status was made for.
17533 config_files="$ac_config_files"
17534 config_headers="$ac_config_headers"
17535 config_links="$ac_config_links"
17536 config_commands="$ac_config_commands"
17537
17538 _ACEOF
17539
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17541 ac_cs_usage="\
17542 \`$as_me' instantiates files and other configuration actions
17543 from templates according to the current configuration. Unless the files
17544 and actions are specified as TAGs, all are instantiated by default.
17545
17546 Usage: $0 [OPTION]... [TAG]...
17547
17548 -h, --help print this help, then exit
17549 -V, --version print version number and configuration settings, then exit
17550 --config print configuration, then exit
17551 -q, --quiet, --silent
17552 do not print progress messages
17553 -d, --debug don't remove temporary files
17554 --recheck update $as_me by reconfiguring in the same conditions
17555 --file=FILE[:TEMPLATE]
17556 instantiate the configuration file FILE
17557 --header=FILE[:TEMPLATE]
17558 instantiate the configuration header FILE
17559
17560 Configuration files:
17561 $config_files
17562
17563 Configuration headers:
17564 $config_headers
17565
17566 Configuration links:
17567 $config_links
17568
17569 Configuration commands:
17570 $config_commands
17571
17572 Report bugs to <http://github.com/libffi/libffi/issues>."
17573
17574 _ACEOF
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17577 ac_cs_version="\\
17578 libffi config.status 3.4.2
17579 configured by $0, generated by GNU Autoconf 2.69,
17580 with options \\"\$ac_cs_config\\"
17581
17582 Copyright (C) 2012 Free Software Foundation, Inc.
17583 This config.status script is free software; the Free Software Foundation
17584 gives unlimited permission to copy, distribute and modify it."
17585
17586 ac_pwd='$ac_pwd'
17587 srcdir='$srcdir'
17588 INSTALL='$INSTALL'
17589 MKDIR_P='$MKDIR_P'
17590 AWK='$AWK'
17591 test -n "\$AWK" || AWK=awk
17592 _ACEOF
17593
17594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17595 # The default lists apply if the user does not specify any file.
17596 ac_need_defaults=:
17597 while test $# != 0
17598 do
17599 case $1 in
17600 --*=?*)
17601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17602 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17603 ac_shift=:
17604 ;;
17605 --*=)
17606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17607 ac_optarg=
17608 ac_shift=:
17609 ;;
17610 *)
17611 ac_option=$1
17612 ac_optarg=$2
17613 ac_shift=shift
17614 ;;
17615 esac
17616
17617 case $ac_option in
17618 # Handling of the options.
17619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17620 ac_cs_recheck=: ;;
17621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17622 $as_echo "$ac_cs_version"; exit ;;
17623 --config | --confi | --conf | --con | --co | --c )
17624 $as_echo "$ac_cs_config"; exit ;;
17625 --debug | --debu | --deb | --de | --d | -d )
17626 debug=: ;;
17627 --file | --fil | --fi | --f )
17628 $ac_shift
17629 case $ac_optarg in
17630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17631 '') as_fn_error $? "missing file argument" ;;
17632 esac
17633 as_fn_append CONFIG_FILES " '$ac_optarg'"
17634 ac_need_defaults=false;;
17635 --header | --heade | --head | --hea )
17636 $ac_shift
17637 case $ac_optarg in
17638 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17639 esac
17640 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17641 ac_need_defaults=false;;
17642 --he | --h)
17643 # Conflict between --help and --header
17644 as_fn_error $? "ambiguous option: \`$1'
17645 Try \`$0 --help' for more information.";;
17646 --help | --hel | -h )
17647 $as_echo "$ac_cs_usage"; exit ;;
17648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17650 ac_cs_silent=: ;;
17651
17652 # This is an error.
17653 -*) as_fn_error $? "unrecognized option: \`$1'
17654 Try \`$0 --help' for more information." ;;
17655
17656 *) as_fn_append ac_config_targets " $1"
17657 ac_need_defaults=false ;;
17658
17659 esac
17660 shift
17661 done
17662
17663 ac_configure_extra_args=
17664
17665 if $ac_cs_silent; then
17666 exec 6>/dev/null
17667 ac_configure_extra_args="$ac_configure_extra_args --silent"
17668 fi
17669
17670 _ACEOF
17671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17672 if \$ac_cs_recheck; then
17673 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17674 shift
17675 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17676 CONFIG_SHELL='$SHELL'
17677 export CONFIG_SHELL
17678 exec "\$@"
17679 fi
17680
17681 _ACEOF
17682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17683 exec 5>>config.log
17684 {
17685 echo
17686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17687 ## Running $as_me. ##
17688 _ASBOX
17689 $as_echo "$ac_log"
17690 } >&5
17691
17692 _ACEOF
17693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17694 #
17695 # INIT-COMMANDS
17696 #
17697
17698 srcdir="$srcdir"
17699 host="$host"
17700 target="$target"
17701 with_multisubdir="$with_multisubdir"
17702 with_multisrctop="$with_multisrctop"
17703 with_target_subdir="$with_target_subdir"
17704 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17705 multi_basedir="$multi_basedir"
17706 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17707 CC="$CC"
17708 CXX="$CXX"
17709 GFORTRAN="$GFORTRAN"
17710 GDC="$GDC"
17711 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17712
17713
17714 # The HP-UX ksh and POSIX shell print the target directory to stdout
17715 # if CDPATH is set.
17716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17717
17718 sed_quote_subst='$sed_quote_subst'
17719 double_quote_subst='$double_quote_subst'
17720 delay_variable_subst='$delay_variable_subst'
17721 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17722 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17724 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17725 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17726 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17727 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17728 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17729 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17730 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17731 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17732 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17733 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17734 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17735 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17736 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17737 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17738 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17739 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17740 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17741 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17742 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17743 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17744 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17745 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17746 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17747 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17748 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17749 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17750 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17751 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17752 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17753 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17754 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17755 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17756 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17757 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17758 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17759 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17760 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17761 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17762 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17763 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17764 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17765 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17767 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17769 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"`'
17770 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17771 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17772 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17773 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17774 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17775 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17776 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17777 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17778 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17779 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17780 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17781 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17782 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17783 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17784 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17785 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17786 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17787 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17788 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17789 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17790 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17791 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17792 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17793 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17794 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17795 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17796 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17797 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17798 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17799 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17800 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17801 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17802 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17803 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17804 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17805 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17806 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17807 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17808 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17809 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17810 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17811 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17812 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17813 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17814 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17815 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17816 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17817 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17818 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17819 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17820 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17821 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17822 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17823 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17824 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17825 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17826 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17827 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17828 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17829 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17830 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17831 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17832 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17833 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17834 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17835 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17836 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17837 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17838 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17839 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17840 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17841 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17842 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17843 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17844 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17845 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17846 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17847 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17848 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17849 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17850 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17851 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17852 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17853 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17854 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17857 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17858 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17859 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17860 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17861 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17862 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17863 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17864 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17865 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17866 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17867 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17868 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17869 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17870 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17871 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17872 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17873 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17874 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17875 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17876 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17877 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17878 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17879 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17880 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17881 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17882 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17883 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17884 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17885 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17886 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17887 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17888 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17889 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17890 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17891 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17892 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17893 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17894 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17895 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17896
17897 LTCC='$LTCC'
17898 LTCFLAGS='$LTCFLAGS'
17899 compiler='$compiler_DEFAULT'
17900
17901 # A function that is used when there is no print builtin or printf.
17902 func_fallback_echo ()
17903 {
17904 eval 'cat <<_LTECHO_EOF
17905 \$1
17906 _LTECHO_EOF'
17907 }
17908
17909 # Quote evaled strings.
17910 for var in SHELL \
17911 ECHO \
17912 SED \
17913 GREP \
17914 EGREP \
17915 FGREP \
17916 LD \
17917 NM \
17918 LN_S \
17919 lt_SP2NL \
17920 lt_NL2SP \
17921 reload_flag \
17922 OBJDUMP \
17923 deplibs_check_method \
17924 file_magic_cmd \
17925 AR \
17926 AR_FLAGS \
17927 STRIP \
17928 RANLIB \
17929 CC \
17930 CFLAGS \
17931 compiler \
17932 lt_cv_sys_global_symbol_pipe \
17933 lt_cv_sys_global_symbol_to_cdecl \
17934 lt_cv_sys_global_symbol_to_c_name_address \
17935 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17936 lt_prog_compiler_no_builtin_flag \
17937 lt_prog_compiler_wl \
17938 lt_prog_compiler_pic \
17939 lt_prog_compiler_static \
17940 lt_cv_prog_compiler_c_o \
17941 need_locks \
17942 DSYMUTIL \
17943 NMEDIT \
17944 LIPO \
17945 OTOOL \
17946 OTOOL64 \
17947 shrext_cmds \
17948 export_dynamic_flag_spec \
17949 whole_archive_flag_spec \
17950 compiler_needs_object \
17951 with_gnu_ld \
17952 allow_undefined_flag \
17953 no_undefined_flag \
17954 hardcode_libdir_flag_spec \
17955 hardcode_libdir_flag_spec_ld \
17956 hardcode_libdir_separator \
17957 fix_srcfile_path \
17958 exclude_expsyms \
17959 include_expsyms \
17960 file_list_spec \
17961 variables_saved_for_relink \
17962 libname_spec \
17963 library_names_spec \
17964 soname_spec \
17965 install_override_mode \
17966 finish_eval \
17967 old_striplib \
17968 striplib \
17969 compiler_lib_search_dirs \
17970 predep_objects \
17971 postdep_objects \
17972 predeps \
17973 postdeps \
17974 compiler_lib_search_path \
17975 LD_CXX \
17976 reload_flag_CXX \
17977 compiler_CXX \
17978 lt_prog_compiler_no_builtin_flag_CXX \
17979 lt_prog_compiler_wl_CXX \
17980 lt_prog_compiler_pic_CXX \
17981 lt_prog_compiler_static_CXX \
17982 lt_cv_prog_compiler_c_o_CXX \
17983 export_dynamic_flag_spec_CXX \
17984 whole_archive_flag_spec_CXX \
17985 compiler_needs_object_CXX \
17986 with_gnu_ld_CXX \
17987 allow_undefined_flag_CXX \
17988 no_undefined_flag_CXX \
17989 hardcode_libdir_flag_spec_CXX \
17990 hardcode_libdir_flag_spec_ld_CXX \
17991 hardcode_libdir_separator_CXX \
17992 fix_srcfile_path_CXX \
17993 exclude_expsyms_CXX \
17994 include_expsyms_CXX \
17995 file_list_spec_CXX \
17996 compiler_lib_search_dirs_CXX \
17997 predep_objects_CXX \
17998 postdep_objects_CXX \
17999 predeps_CXX \
18000 postdeps_CXX \
18001 compiler_lib_search_path_CXX; do
18002 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18003 *[\\\\\\\`\\"\\\$]*)
18004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18005 ;;
18006 *)
18007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18008 ;;
18009 esac
18010 done
18011
18012 # Double-quote double-evaled strings.
18013 for var in reload_cmds \
18014 old_postinstall_cmds \
18015 old_postuninstall_cmds \
18016 old_archive_cmds \
18017 extract_expsyms_cmds \
18018 old_archive_from_new_cmds \
18019 old_archive_from_expsyms_cmds \
18020 archive_cmds \
18021 archive_expsym_cmds \
18022 module_cmds \
18023 module_expsym_cmds \
18024 export_symbols_cmds \
18025 prelink_cmds \
18026 postinstall_cmds \
18027 postuninstall_cmds \
18028 finish_cmds \
18029 sys_lib_search_path_spec \
18030 sys_lib_dlsearch_path_spec \
18031 reload_cmds_CXX \
18032 old_archive_cmds_CXX \
18033 old_archive_from_new_cmds_CXX \
18034 old_archive_from_expsyms_cmds_CXX \
18035 archive_cmds_CXX \
18036 archive_expsym_cmds_CXX \
18037 module_cmds_CXX \
18038 module_expsym_cmds_CXX \
18039 export_symbols_cmds_CXX \
18040 prelink_cmds_CXX; do
18041 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18042 *[\\\\\\\`\\"\\\$]*)
18043 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18044 ;;
18045 *)
18046 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18047 ;;
18048 esac
18049 done
18050
18051 ac_aux_dir='$ac_aux_dir'
18052 xsi_shell='$xsi_shell'
18053 lt_shell_append='$lt_shell_append'
18054
18055 # See if we are running on zsh, and set the options which allow our
18056 # commands through without removal of \ escapes INIT.
18057 if test -n "\${ZSH_VERSION+set}" ; then
18058 setopt NO_GLOB_SUBST
18059 fi
18060
18061
18062 PACKAGE='$PACKAGE'
18063 VERSION='$VERSION'
18064 TIMESTAMP='$TIMESTAMP'
18065 RM='$RM'
18066 ofile='$ofile'
18067
18068
18069
18070
18071
18072 TARGETDIR="$TARGETDIR"
18073
18074 _ACEOF
18075
18076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18077
18078 # Handling of arguments.
18079 for ac_config_target in $ac_config_targets
18080 do
18081 case $ac_config_target in
18082 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
18083 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18084 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18085 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18086 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
18087 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
18088 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18089 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
18090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18091 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18092 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18093 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18094 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18095
18096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18097 esac
18098 done
18099
18100
18101 # If the user did not use the arguments to specify the items to instantiate,
18102 # then the envvar interface is used. Set only those that are not.
18103 # We use the long form for the default assignment because of an extremely
18104 # bizarre bug on SunOS 4.1.3.
18105 if $ac_need_defaults; then
18106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18108 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18110 fi
18111
18112 # Have a temporary directory for convenience. Make it in the build tree
18113 # simply because there is no reason against having it here, and in addition,
18114 # creating and moving files from /tmp can sometimes cause problems.
18115 # Hook for its removal unless debugging.
18116 # Note that there is a small window in which the directory will not be cleaned:
18117 # after its creation but before its name has been assigned to `$tmp'.
18118 $debug ||
18119 {
18120 tmp= ac_tmp=
18121 trap 'exit_status=$?
18122 : "${ac_tmp:=$tmp}"
18123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18124 ' 0
18125 trap 'as_fn_exit 1' 1 2 13 15
18126 }
18127 # Create a (secure) tmp directory for tmp files.
18128
18129 {
18130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18131 test -d "$tmp"
18132 } ||
18133 {
18134 tmp=./conf$$-$RANDOM
18135 (umask 077 && mkdir "$tmp")
18136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18137 ac_tmp=$tmp
18138
18139 # Set up the scripts for CONFIG_FILES section.
18140 # No need to generate them if there are no CONFIG_FILES.
18141 # This happens for instance with `./config.status config.h'.
18142 if test -n "$CONFIG_FILES"; then
18143
18144
18145 ac_cr=`echo X | tr X '\015'`
18146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18147 # But we know of no other shell where ac_cr would be empty at this
18148 # point, so we can use a bashism as a fallback.
18149 if test "x$ac_cr" = x; then
18150 eval ac_cr=\$\'\\r\'
18151 fi
18152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18154 ac_cs_awk_cr='\\r'
18155 else
18156 ac_cs_awk_cr=$ac_cr
18157 fi
18158
18159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18160 _ACEOF
18161
18162
18163 {
18164 echo "cat >conf$$subs.awk <<_ACEOF" &&
18165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18166 echo "_ACEOF"
18167 } >conf$$subs.sh ||
18168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18170 ac_delim='%!_!# '
18171 for ac_last_try in false false false false false :; do
18172 . ./conf$$subs.sh ||
18173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18174
18175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18176 if test $ac_delim_n = $ac_delim_num; then
18177 break
18178 elif $ac_last_try; then
18179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18180 else
18181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18182 fi
18183 done
18184 rm -f conf$$subs.sh
18185
18186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18188 _ACEOF
18189 sed -n '
18190 h
18191 s/^/S["/; s/!.*/"]=/
18192 p
18193 g
18194 s/^[^!]*!//
18195 :repl
18196 t repl
18197 s/'"$ac_delim"'$//
18198 t delim
18199 :nl
18200 h
18201 s/\(.\{148\}\)..*/\1/
18202 t more1
18203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18204 p
18205 n
18206 b repl
18207 :more1
18208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18209 p
18210 g
18211 s/.\{148\}//
18212 t nl
18213 :delim
18214 h
18215 s/\(.\{148\}\)..*/\1/
18216 t more2
18217 s/["\\]/\\&/g; s/^/"/; s/$/"/
18218 p
18219 b
18220 :more2
18221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18222 p
18223 g
18224 s/.\{148\}//
18225 t delim
18226 ' <conf$$subs.awk | sed '
18227 /^[^""]/{
18228 N
18229 s/\n//
18230 }
18231 ' >>$CONFIG_STATUS || ac_write_fail=1
18232 rm -f conf$$subs.awk
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234 _ACAWK
18235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18236 for (key in S) S_is_set[key] = 1
18237 FS = "\a"
18238
18239 }
18240 {
18241 line = $ 0
18242 nfields = split(line, field, "@")
18243 substed = 0
18244 len = length(field[1])
18245 for (i = 2; i < nfields; i++) {
18246 key = field[i]
18247 keylen = length(key)
18248 if (S_is_set[key]) {
18249 value = S[key]
18250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18251 len += length(value) + length(field[++i])
18252 substed = 1
18253 } else
18254 len += 1 + keylen
18255 }
18256
18257 print line
18258 }
18259
18260 _ACAWK
18261 _ACEOF
18262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18265 else
18266 cat
18267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18269 _ACEOF
18270
18271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18273 # trailing colons and then remove the whole line if VPATH becomes empty
18274 # (actually we leave an empty line to preserve line numbers).
18275 if test "x$srcdir" = x.; then
18276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18277 h
18278 s///
18279 s/^/:/
18280 s/[ ]*$/:/
18281 s/:\$(srcdir):/:/g
18282 s/:\${srcdir}:/:/g
18283 s/:@srcdir@:/:/g
18284 s/^:*//
18285 s/:*$//
18286 x
18287 s/\(=[ ]*\).*/\1/
18288 G
18289 s/\n//
18290 s/^[^=]*=[ ]*$//
18291 }'
18292 fi
18293
18294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18295 fi # test -n "$CONFIG_FILES"
18296
18297 # Set up the scripts for CONFIG_HEADERS section.
18298 # No need to generate them if there are no CONFIG_HEADERS.
18299 # This happens for instance with `./config.status Makefile'.
18300 if test -n "$CONFIG_HEADERS"; then
18301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18302 BEGIN {
18303 _ACEOF
18304
18305 # Transform confdefs.h into an awk script `defines.awk', embedded as
18306 # here-document in config.status, that substitutes the proper values into
18307 # config.h.in to produce config.h.
18308
18309 # Create a delimiter string that does not exist in confdefs.h, to ease
18310 # handling of long lines.
18311 ac_delim='%!_!# '
18312 for ac_last_try in false false :; do
18313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18314 if test -z "$ac_tt"; then
18315 break
18316 elif $ac_last_try; then
18317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18318 else
18319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18320 fi
18321 done
18322
18323 # For the awk script, D is an array of macro values keyed by name,
18324 # likewise P contains macro parameters if any. Preserve backslash
18325 # newline sequences.
18326
18327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18328 sed -n '
18329 s/.\{148\}/&'"$ac_delim"'/g
18330 t rset
18331 :rset
18332 s/^[ ]*#[ ]*define[ ][ ]*/ /
18333 t def
18334 d
18335 :def
18336 s/\\$//
18337 t bsnl
18338 s/["\\]/\\&/g
18339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18340 D["\1"]=" \3"/p
18341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18342 d
18343 :bsnl
18344 s/["\\]/\\&/g
18345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18346 D["\1"]=" \3\\\\\\n"\\/p
18347 t cont
18348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18349 t cont
18350 d
18351 :cont
18352 n
18353 s/.\{148\}/&'"$ac_delim"'/g
18354 t clear
18355 :clear
18356 s/\\$//
18357 t bsnlc
18358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18359 d
18360 :bsnlc
18361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18362 b cont
18363 ' <confdefs.h | sed '
18364 s/'"$ac_delim"'/"\\\
18365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18366
18367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368 for (key in D) D_is_set[key] = 1
18369 FS = "\a"
18370 }
18371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18372 line = \$ 0
18373 split(line, arg, " ")
18374 if (arg[1] == "#") {
18375 defundef = arg[2]
18376 mac1 = arg[3]
18377 } else {
18378 defundef = substr(arg[1], 2)
18379 mac1 = arg[2]
18380 }
18381 split(mac1, mac2, "(") #)
18382 macro = mac2[1]
18383 prefix = substr(line, 1, index(line, defundef) - 1)
18384 if (D_is_set[macro]) {
18385 # Preserve the white space surrounding the "#".
18386 print prefix "define", macro P[macro] D[macro]
18387 next
18388 } else {
18389 # Replace #undef with comments. This is necessary, for example,
18390 # in the case of _POSIX_SOURCE, which is predefined and required
18391 # on some systems where configure will not decide to define it.
18392 if (defundef == "undef") {
18393 print "/*", prefix defundef, macro, "*/"
18394 next
18395 }
18396 }
18397 }
18398 { print }
18399 _ACAWK
18400 _ACEOF
18401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18403 fi # test -n "$CONFIG_HEADERS"
18404
18405
18406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18407 shift
18408 for ac_tag
18409 do
18410 case $ac_tag in
18411 :[FHLC]) ac_mode=$ac_tag; continue;;
18412 esac
18413 case $ac_mode$ac_tag in
18414 :[FHL]*:*);;
18415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18416 :[FH]-) ac_tag=-:-;;
18417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18418 esac
18419 ac_save_IFS=$IFS
18420 IFS=:
18421 set x $ac_tag
18422 IFS=$ac_save_IFS
18423 shift
18424 ac_file=$1
18425 shift
18426
18427 case $ac_mode in
18428 :L) ac_source=$1;;
18429 :[FH])
18430 ac_file_inputs=
18431 for ac_f
18432 do
18433 case $ac_f in
18434 -) ac_f="$ac_tmp/stdin";;
18435 *) # Look for the file first in the build tree, then in the source tree
18436 # (if the path is not absolute). The absolute path cannot be DOS-style,
18437 # because $ac_f cannot contain `:'.
18438 test -f "$ac_f" ||
18439 case $ac_f in
18440 [\\/$]*) false;;
18441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18442 esac ||
18443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18444 esac
18445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18446 as_fn_append ac_file_inputs " '$ac_f'"
18447 done
18448
18449 # Let's still pretend it is `configure' which instantiates (i.e., don't
18450 # use $as_me), people would be surprised to read:
18451 # /* config.h. Generated by config.status. */
18452 configure_input='Generated from '`
18453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18454 `' by configure.'
18455 if test x"$ac_file" != x-; then
18456 configure_input="$ac_file. $configure_input"
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18458 $as_echo "$as_me: creating $ac_file" >&6;}
18459 fi
18460 # Neutralize special characters interpreted by sed in replacement strings.
18461 case $configure_input in #(
18462 *\&* | *\|* | *\\* )
18463 ac_sed_conf_input=`$as_echo "$configure_input" |
18464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18465 *) ac_sed_conf_input=$configure_input;;
18466 esac
18467
18468 case $ac_tag in
18469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18471 esac
18472 ;;
18473 esac
18474
18475 ac_dir=`$as_dirname -- "$ac_file" ||
18476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$ac_file" : 'X\(//\)[^/]' \| \
18478 X"$ac_file" : 'X\(//\)$' \| \
18479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18480 $as_echo X"$ac_file" |
18481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18482 s//\1/
18483 q
18484 }
18485 /^X\(\/\/\)[^/].*/{
18486 s//\1/
18487 q
18488 }
18489 /^X\(\/\/\)$/{
18490 s//\1/
18491 q
18492 }
18493 /^X\(\/\).*/{
18494 s//\1/
18495 q
18496 }
18497 s/.*/./; q'`
18498 as_dir="$ac_dir"; as_fn_mkdir_p
18499 ac_builddir=.
18500
18501 case "$ac_dir" in
18502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18503 *)
18504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18505 # A ".." for each directory in $ac_dir_suffix.
18506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18507 case $ac_top_builddir_sub in
18508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18510 esac ;;
18511 esac
18512 ac_abs_top_builddir=$ac_pwd
18513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18514 # for backward compatibility:
18515 ac_top_builddir=$ac_top_build_prefix
18516
18517 case $srcdir in
18518 .) # We are building in place.
18519 ac_srcdir=.
18520 ac_top_srcdir=$ac_top_builddir_sub
18521 ac_abs_top_srcdir=$ac_pwd ;;
18522 [\\/]* | ?:[\\/]* ) # Absolute name.
18523 ac_srcdir=$srcdir$ac_dir_suffix;
18524 ac_top_srcdir=$srcdir
18525 ac_abs_top_srcdir=$srcdir ;;
18526 *) # Relative name.
18527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18528 ac_top_srcdir=$ac_top_build_prefix$srcdir
18529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18530 esac
18531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18532
18533
18534 case $ac_mode in
18535 :F)
18536 #
18537 # CONFIG_FILE
18538 #
18539
18540 case $INSTALL in
18541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18543 esac
18544 ac_MKDIR_P=$MKDIR_P
18545 case $MKDIR_P in
18546 [\\/$]* | ?:[\\/]* ) ;;
18547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18548 esac
18549 _ACEOF
18550
18551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18552 # If the template does not know about datarootdir, expand it.
18553 # FIXME: This hack should be removed a few years after 2.60.
18554 ac_datarootdir_hack=; ac_datarootdir_seen=
18555 ac_sed_dataroot='
18556 /datarootdir/ {
18557 p
18558 q
18559 }
18560 /@datadir@/p
18561 /@docdir@/p
18562 /@infodir@/p
18563 /@localedir@/p
18564 /@mandir@/p'
18565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18566 *datarootdir*) ac_datarootdir_seen=yes;;
18567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18570 _ACEOF
18571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572 ac_datarootdir_hack='
18573 s&@datadir@&$datadir&g
18574 s&@docdir@&$docdir&g
18575 s&@infodir@&$infodir&g
18576 s&@localedir@&$localedir&g
18577 s&@mandir@&$mandir&g
18578 s&\\\${datarootdir}&$datarootdir&g' ;;
18579 esac
18580 _ACEOF
18581
18582 # Neutralize VPATH when `$srcdir' = `.'.
18583 # Shell code in configure.ac might set extrasub.
18584 # FIXME: do we really want to maintain this feature?
18585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18586 ac_sed_extra="$ac_vpsub
18587 $extrasub
18588 _ACEOF
18589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18590 :t
18591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18592 s|@configure_input@|$ac_sed_conf_input|;t t
18593 s&@top_builddir@&$ac_top_builddir_sub&;t t
18594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18595 s&@srcdir@&$ac_srcdir&;t t
18596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18597 s&@top_srcdir@&$ac_top_srcdir&;t t
18598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18599 s&@builddir@&$ac_builddir&;t t
18600 s&@abs_builddir@&$ac_abs_builddir&;t t
18601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18602 s&@INSTALL@&$ac_INSTALL&;t t
18603 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18604 $ac_datarootdir_hack
18605 "
18606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18607 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18608
18609 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18610 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18612 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18614 which seems to be undefined. Please make sure it is defined" >&5
18615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18616 which seems to be undefined. Please make sure it is defined" >&2;}
18617
18618 rm -f "$ac_tmp/stdin"
18619 case $ac_file in
18620 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18621 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18622 esac \
18623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18624 ;;
18625 :H)
18626 #
18627 # CONFIG_HEADER
18628 #
18629 if test x"$ac_file" != x-; then
18630 {
18631 $as_echo "/* $configure_input */" \
18632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18633 } >"$ac_tmp/config.h" \
18634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18635 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18637 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18638 else
18639 rm -f "$ac_file"
18640 mv "$ac_tmp/config.h" "$ac_file" \
18641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18642 fi
18643 else
18644 $as_echo "/* $configure_input */" \
18645 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18646 || as_fn_error $? "could not create -" "$LINENO" 5
18647 fi
18648 # Compute "$ac_file"'s index in $config_headers.
18649 _am_arg="$ac_file"
18650 _am_stamp_count=1
18651 for _am_header in $config_headers :; do
18652 case $_am_header in
18653 $_am_arg | $_am_arg:* )
18654 break ;;
18655 * )
18656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18657 esac
18658 done
18659 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18660 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18661 X"$_am_arg" : 'X\(//\)[^/]' \| \
18662 X"$_am_arg" : 'X\(//\)$' \| \
18663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18664 $as_echo X"$_am_arg" |
18665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18666 s//\1/
18667 q
18668 }
18669 /^X\(\/\/\)[^/].*/{
18670 s//\1/
18671 q
18672 }
18673 /^X\(\/\/\)$/{
18674 s//\1/
18675 q
18676 }
18677 /^X\(\/\).*/{
18678 s//\1/
18679 q
18680 }
18681 s/.*/./; q'`/stamp-h$_am_stamp_count
18682 ;;
18683 :L)
18684 #
18685 # CONFIG_LINK
18686 #
18687
18688 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18689 :
18690 else
18691 # Prefer the file from the source tree if names are identical.
18692 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18693 ac_source=$srcdir/$ac_source
18694 fi
18695
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18697 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18698
18699 if test ! -r "$ac_source"; then
18700 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18701 fi
18702 rm -f "$ac_file"
18703
18704 # Try a relative symlink, then a hard link, then a copy.
18705 case $ac_source in
18706 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18707 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18708 esac
18709 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18710 ln "$ac_source" "$ac_file" 2>/dev/null ||
18711 cp -p "$ac_source" "$ac_file" ||
18712 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18713 fi
18714 ;;
18715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18716 $as_echo "$as_me: executing $ac_file commands" >&6;}
18717 ;;
18718 esac
18719
18720
18721 case $ac_file$ac_mode in
18722 "default-1":C)
18723 # Only add multilib support code if we just rebuilt the top-level
18724 # Makefile.
18725 case " $CONFIG_FILES " in
18726 *" Makefile "*)
18727 ac_file=Makefile . ${multi_basedir}/config-ml.in
18728 ;;
18729 esac ;;
18730 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18731 # Older Autoconf quotes --file arguments for eval, but not when files
18732 # are listed without --file. Let's play safe and only enable the eval
18733 # if we detect the quoting.
18734 case $CONFIG_FILES in
18735 *\'*) eval set x "$CONFIG_FILES" ;;
18736 *) set x $CONFIG_FILES ;;
18737 esac
18738 shift
18739 for mf
18740 do
18741 # Strip MF so we end up with the name of the file.
18742 mf=`echo "$mf" | sed -e 's/:.*$//'`
18743 # Check whether this is an Automake generated Makefile or not.
18744 # We used to match only the files named 'Makefile.in', but
18745 # some people rename them; so instead we look at the file content.
18746 # Grep'ing the first line is not enough: some people post-process
18747 # each Makefile.in and add a new line on top of each file to say so.
18748 # Grep'ing the whole file is not good either: AIX grep has a line
18749 # limit of 2048, but all sed's we know have understand at least 4000.
18750 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18751 dirpart=`$as_dirname -- "$mf" ||
18752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18753 X"$mf" : 'X\(//\)[^/]' \| \
18754 X"$mf" : 'X\(//\)$' \| \
18755 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18756 $as_echo X"$mf" |
18757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18758 s//\1/
18759 q
18760 }
18761 /^X\(\/\/\)[^/].*/{
18762 s//\1/
18763 q
18764 }
18765 /^X\(\/\/\)$/{
18766 s//\1/
18767 q
18768 }
18769 /^X\(\/\).*/{
18770 s//\1/
18771 q
18772 }
18773 s/.*/./; q'`
18774 else
18775 continue
18776 fi
18777 # Extract the definition of DEPDIR, am__include, and am__quote
18778 # from the Makefile without running 'make'.
18779 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18780 test -z "$DEPDIR" && continue
18781 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18782 test -z "$am__include" && continue
18783 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18784 # Find all dependency output files, they are included files with
18785 # $(DEPDIR) in their names. We invoke sed twice because it is the
18786 # simplest approach to changing $(DEPDIR) to its actual value in the
18787 # expansion.
18788 for file in `sed -n "
18789 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18790 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18791 # Make sure the directory exists.
18792 test -f "$dirpart/$file" && continue
18793 fdir=`$as_dirname -- "$file" ||
18794 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18795 X"$file" : 'X\(//\)[^/]' \| \
18796 X"$file" : 'X\(//\)$' \| \
18797 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18798 $as_echo X"$file" |
18799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18800 s//\1/
18801 q
18802 }
18803 /^X\(\/\/\)[^/].*/{
18804 s//\1/
18805 q
18806 }
18807 /^X\(\/\/\)$/{
18808 s//\1/
18809 q
18810 }
18811 /^X\(\/\).*/{
18812 s//\1/
18813 q
18814 }
18815 s/.*/./; q'`
18816 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18817 # echo "creating $dirpart/$file"
18818 echo '# dummy' > "$dirpart/$file"
18819 done
18820 done
18821 }
18822 ;;
18823 "libtool":C)
18824
18825 # See if we are running on zsh, and set the options which allow our
18826 # commands through without removal of \ escapes.
18827 if test -n "${ZSH_VERSION+set}" ; then
18828 setopt NO_GLOB_SUBST
18829 fi
18830
18831 cfgfile="${ofile}T"
18832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18833 $RM "$cfgfile"
18834
18835 cat <<_LT_EOF >> "$cfgfile"
18836 #! $SHELL
18837
18838 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18839 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18841 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18842 #
18843 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18844 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18845 # Written by Gordon Matzigkeit, 1996
18846 #
18847 # This file is part of GNU Libtool.
18848 #
18849 # GNU Libtool is free software; you can redistribute it and/or
18850 # modify it under the terms of the GNU General Public License as
18851 # published by the Free Software Foundation; either version 2 of
18852 # the License, or (at your option) any later version.
18853 #
18854 # As a special exception to the GNU General Public License,
18855 # if you distribute this file as part of a program or library that
18856 # is built using GNU Libtool, you may include this file under the
18857 # same distribution terms that you use for the rest of that program.
18858 #
18859 # GNU Libtool is distributed in the hope that it will be useful,
18860 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18862 # GNU General Public License for more details.
18863 #
18864 # You should have received a copy of the GNU General Public License
18865 # along with GNU Libtool; see the file COPYING. If not, a copy
18866 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18867 # obtained by writing to the Free Software Foundation, Inc.,
18868 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18869
18870
18871 # The names of the tagged configurations supported by this script.
18872 available_tags="CXX "
18873
18874 # ### BEGIN LIBTOOL CONFIG
18875
18876 # Which release of libtool.m4 was used?
18877 macro_version=$macro_version
18878 macro_revision=$macro_revision
18879
18880 # Whether or not to build shared libraries.
18881 build_libtool_libs=$enable_shared
18882
18883 # Whether or not to build static libraries.
18884 build_old_libs=$enable_static
18885
18886 # What type of objects to build.
18887 pic_mode=$pic_mode
18888
18889 # Whether or not to optimize for fast installation.
18890 fast_install=$enable_fast_install
18891
18892 # Shell to use when invoking shell scripts.
18893 SHELL=$lt_SHELL
18894
18895 # An echo program that protects backslashes.
18896 ECHO=$lt_ECHO
18897
18898 # The host system.
18899 host_alias=$host_alias
18900 host=$host
18901 host_os=$host_os
18902
18903 # The build system.
18904 build_alias=$build_alias
18905 build=$build
18906 build_os=$build_os
18907
18908 # A sed program that does not truncate output.
18909 SED=$lt_SED
18910
18911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18912 Xsed="\$SED -e 1s/^X//"
18913
18914 # A grep program that handles long lines.
18915 GREP=$lt_GREP
18916
18917 # An ERE matcher.
18918 EGREP=$lt_EGREP
18919
18920 # A literal string matcher.
18921 FGREP=$lt_FGREP
18922
18923 # A BSD- or MS-compatible name lister.
18924 NM=$lt_NM
18925
18926 # Whether we need soft or hard links.
18927 LN_S=$lt_LN_S
18928
18929 # What is the maximum length of a command?
18930 max_cmd_len=$max_cmd_len
18931
18932 # Object file suffix (normally "o").
18933 objext=$ac_objext
18934
18935 # Executable file suffix (normally "").
18936 exeext=$exeext
18937
18938 # whether the shell understands "unset".
18939 lt_unset=$lt_unset
18940
18941 # turn spaces into newlines.
18942 SP2NL=$lt_lt_SP2NL
18943
18944 # turn newlines into spaces.
18945 NL2SP=$lt_lt_NL2SP
18946
18947 # An object symbol dumper.
18948 OBJDUMP=$lt_OBJDUMP
18949
18950 # Method to check whether dependent libraries are shared objects.
18951 deplibs_check_method=$lt_deplibs_check_method
18952
18953 # Command to use when deplibs_check_method == "file_magic".
18954 file_magic_cmd=$lt_file_magic_cmd
18955
18956 # The archiver.
18957 AR=$lt_AR
18958 AR_FLAGS=$lt_AR_FLAGS
18959
18960 # A symbol stripping program.
18961 STRIP=$lt_STRIP
18962
18963 # Commands used to install an old-style archive.
18964 RANLIB=$lt_RANLIB
18965 old_postinstall_cmds=$lt_old_postinstall_cmds
18966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18967
18968 # Whether to use a lock for old archive extraction.
18969 lock_old_archive_extraction=$lock_old_archive_extraction
18970
18971 # A C compiler.
18972 LTCC=$lt_CC
18973
18974 # LTCC compiler flags.
18975 LTCFLAGS=$lt_CFLAGS
18976
18977 # Take the output of nm and produce a listing of raw symbols and C names.
18978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18979
18980 # Transform the output of nm in a proper C declaration.
18981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18982
18983 # Transform the output of nm in a C name address pair.
18984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18985
18986 # Transform the output of nm in a C name address pair when lib prefix is needed.
18987 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18988
18989 # The name of the directory that contains temporary libtool files.
18990 objdir=$objdir
18991
18992 # Used to examine libraries when file_magic_cmd begins with "file".
18993 MAGIC_CMD=$MAGIC_CMD
18994
18995 # Must we lock files when doing compilation?
18996 need_locks=$lt_need_locks
18997
18998 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18999 DSYMUTIL=$lt_DSYMUTIL
19000
19001 # Tool to change global to local symbols on Mac OS X.
19002 NMEDIT=$lt_NMEDIT
19003
19004 # Tool to manipulate fat objects and archives on Mac OS X.
19005 LIPO=$lt_LIPO
19006
19007 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19008 OTOOL=$lt_OTOOL
19009
19010 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19011 OTOOL64=$lt_OTOOL64
19012
19013 # Old archive suffix (normally "a").
19014 libext=$libext
19015
19016 # Shared library suffix (normally ".so").
19017 shrext_cmds=$lt_shrext_cmds
19018
19019 # The commands to extract the exported symbol list from a shared archive.
19020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19021
19022 # Variables whose values should be saved in libtool wrapper scripts and
19023 # restored at link time.
19024 variables_saved_for_relink=$lt_variables_saved_for_relink
19025
19026 # Do we need the "lib" prefix for modules?
19027 need_lib_prefix=$need_lib_prefix
19028
19029 # Do we need a version for libraries?
19030 need_version=$need_version
19031
19032 # Library versioning type.
19033 version_type=$version_type
19034
19035 # Shared library runtime path variable.
19036 runpath_var=$runpath_var
19037
19038 # Shared library path variable.
19039 shlibpath_var=$shlibpath_var
19040
19041 # Is shlibpath searched before the hard-coded library search path?
19042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19043
19044 # Format of library name prefix.
19045 libname_spec=$lt_libname_spec
19046
19047 # List of archive names. First name is the real one, the rest are links.
19048 # The last name is the one that the linker finds with -lNAME
19049 library_names_spec=$lt_library_names_spec
19050
19051 # The coded name of the library, if different from the real name.
19052 soname_spec=$lt_soname_spec
19053
19054 # Permission mode override for installation of shared libraries.
19055 install_override_mode=$lt_install_override_mode
19056
19057 # Command to use after installation of a shared archive.
19058 postinstall_cmds=$lt_postinstall_cmds
19059
19060 # Command to use after uninstallation of a shared archive.
19061 postuninstall_cmds=$lt_postuninstall_cmds
19062
19063 # Commands used to finish a libtool library installation in a directory.
19064 finish_cmds=$lt_finish_cmds
19065
19066 # As "finish_cmds", except a single script fragment to be evaled but
19067 # not shown.
19068 finish_eval=$lt_finish_eval
19069
19070 # Whether we should hardcode library paths into libraries.
19071 hardcode_into_libs=$hardcode_into_libs
19072
19073 # Compile-time system search path for libraries.
19074 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19075
19076 # Run-time system search path for libraries.
19077 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19078
19079 # Whether dlopen is supported.
19080 dlopen_support=$enable_dlopen
19081
19082 # Whether dlopen of programs is supported.
19083 dlopen_self=$enable_dlopen_self
19084
19085 # Whether dlopen of statically linked programs is supported.
19086 dlopen_self_static=$enable_dlopen_self_static
19087
19088 # Commands to strip libraries.
19089 old_striplib=$lt_old_striplib
19090 striplib=$lt_striplib
19091
19092
19093 # The linker used to build libraries.
19094 LD=$lt_LD
19095
19096 # How to create reloadable object files.
19097 reload_flag=$lt_reload_flag
19098 reload_cmds=$lt_reload_cmds
19099
19100 # Commands used to build an old-style archive.
19101 old_archive_cmds=$lt_old_archive_cmds
19102
19103 # A language specific compiler.
19104 CC=$lt_compiler
19105
19106 # Is the compiler the GNU compiler?
19107 with_gcc=$GCC
19108
19109 # Compiler flag to turn off builtin functions.
19110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19111
19112 # How to pass a linker flag through the compiler.
19113 wl=$lt_lt_prog_compiler_wl
19114
19115 # Additional compiler flags for building library objects.
19116 pic_flag=$lt_lt_prog_compiler_pic
19117
19118 # Compiler flag to prevent dynamic linking.
19119 link_static_flag=$lt_lt_prog_compiler_static
19120
19121 # Does compiler simultaneously support -c and -o options?
19122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19123
19124 # Whether or not to add -lc for building shared libraries.
19125 build_libtool_need_lc=$archive_cmds_need_lc
19126
19127 # Whether or not to disallow shared libs when runtime libs are static.
19128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19129
19130 # Compiler flag to allow reflexive dlopens.
19131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19132
19133 # Compiler flag to generate shared objects directly from archives.
19134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19135
19136 # Whether the compiler copes with passing no objects directly.
19137 compiler_needs_object=$lt_compiler_needs_object
19138
19139 # Create an old-style archive from a shared archive.
19140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19141
19142 # Create a temporary old-style archive to link instead of a shared archive.
19143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19144
19145 # Commands used to build a shared archive.
19146 archive_cmds=$lt_archive_cmds
19147 archive_expsym_cmds=$lt_archive_expsym_cmds
19148
19149 # Commands used to build a loadable module if different from building
19150 # a shared archive.
19151 module_cmds=$lt_module_cmds
19152 module_expsym_cmds=$lt_module_expsym_cmds
19153
19154 # Whether we are building with GNU ld or not.
19155 with_gnu_ld=$lt_with_gnu_ld
19156
19157 # Flag that allows shared libraries with undefined symbols to be built.
19158 allow_undefined_flag=$lt_allow_undefined_flag
19159
19160 # Flag that enforces no undefined symbols.
19161 no_undefined_flag=$lt_no_undefined_flag
19162
19163 # Flag to hardcode \$libdir into a binary during linking.
19164 # This must work even if \$libdir does not exist
19165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19166
19167 # If ld is used when linking, flag to hardcode \$libdir into a binary
19168 # during linking. This must work even if \$libdir does not exist.
19169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19170
19171 # Whether we need a single "-rpath" flag with a separated argument.
19172 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19173
19174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19175 # DIR into the resulting binary.
19176 hardcode_direct=$hardcode_direct
19177
19178 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19179 # DIR into the resulting binary and the resulting library dependency is
19180 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19181 # library is relocated.
19182 hardcode_direct_absolute=$hardcode_direct_absolute
19183
19184 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19185 # into the resulting binary.
19186 hardcode_minus_L=$hardcode_minus_L
19187
19188 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19189 # into the resulting binary.
19190 hardcode_shlibpath_var=$hardcode_shlibpath_var
19191
19192 # Set to "yes" if building a shared library automatically hardcodes DIR
19193 # into the library and all subsequent libraries and executables linked
19194 # against it.
19195 hardcode_automatic=$hardcode_automatic
19196
19197 # Set to yes if linker adds runtime paths of dependent libraries
19198 # to runtime path list.
19199 inherit_rpath=$inherit_rpath
19200
19201 # Whether libtool must link a program against all its dependency libraries.
19202 link_all_deplibs=$link_all_deplibs
19203
19204 # Fix the shell variable \$srcfile for the compiler.
19205 fix_srcfile_path=$lt_fix_srcfile_path
19206
19207 # Set to "yes" if exported symbols are required.
19208 always_export_symbols=$always_export_symbols
19209
19210 # The commands to list exported symbols.
19211 export_symbols_cmds=$lt_export_symbols_cmds
19212
19213 # Symbols that should not be listed in the preloaded symbols.
19214 exclude_expsyms=$lt_exclude_expsyms
19215
19216 # Symbols that must always be exported.
19217 include_expsyms=$lt_include_expsyms
19218
19219 # Commands necessary for linking programs (against libraries) with templates.
19220 prelink_cmds=$lt_prelink_cmds
19221
19222 # Specify filename containing input files.
19223 file_list_spec=$lt_file_list_spec
19224
19225 # How to hardcode a shared library path into an executable.
19226 hardcode_action=$hardcode_action
19227
19228 # The directories searched by this compiler when creating a shared library.
19229 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19230
19231 # Dependencies to place before and after the objects being linked to
19232 # create a shared library.
19233 predep_objects=$lt_predep_objects
19234 postdep_objects=$lt_postdep_objects
19235 predeps=$lt_predeps
19236 postdeps=$lt_postdeps
19237
19238 # The library search path used internally by the compiler when linking
19239 # a shared library.
19240 compiler_lib_search_path=$lt_compiler_lib_search_path
19241
19242 # ### END LIBTOOL CONFIG
19243
19244 _LT_EOF
19245
19246 case $host_os in
19247 aix3*)
19248 cat <<\_LT_EOF >> "$cfgfile"
19249 # AIX sometimes has problems with the GCC collect2 program. For some
19250 # reason, if we set the COLLECT_NAMES environment variable, the problems
19251 # vanish in a puff of smoke.
19252 if test "X${COLLECT_NAMES+set}" != Xset; then
19253 COLLECT_NAMES=
19254 export COLLECT_NAMES
19255 fi
19256 _LT_EOF
19257 ;;
19258 esac
19259
19260
19261 ltmain="$ac_aux_dir/ltmain.sh"
19262
19263
19264 # We use sed instead of cat because bash on DJGPP gets confused if
19265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19266 # text mode, it properly converts lines to CR/LF. This bash problem
19267 # is reportedly fixed, but why not run on old versions too?
19268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19269 || (rm -f "$cfgfile"; exit 1)
19270
19271 case $xsi_shell in
19272 yes)
19273 cat << \_LT_EOF >> "$cfgfile"
19274
19275 # func_dirname file append nondir_replacement
19276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19277 # otherwise set result to NONDIR_REPLACEMENT.
19278 func_dirname ()
19279 {
19280 case ${1} in
19281 */*) func_dirname_result="${1%/*}${2}" ;;
19282 * ) func_dirname_result="${3}" ;;
19283 esac
19284 }
19285
19286 # func_basename file
19287 func_basename ()
19288 {
19289 func_basename_result="${1##*/}"
19290 }
19291
19292 # func_dirname_and_basename file append nondir_replacement
19293 # perform func_basename and func_dirname in a single function
19294 # call:
19295 # dirname: Compute the dirname of FILE. If nonempty,
19296 # add APPEND to the result, otherwise set result
19297 # to NONDIR_REPLACEMENT.
19298 # value returned in "$func_dirname_result"
19299 # basename: Compute filename of FILE.
19300 # value retuned in "$func_basename_result"
19301 # Implementation must be kept synchronized with func_dirname
19302 # and func_basename. For efficiency, we do not delegate to
19303 # those functions but instead duplicate the functionality here.
19304 func_dirname_and_basename ()
19305 {
19306 case ${1} in
19307 */*) func_dirname_result="${1%/*}${2}" ;;
19308 * ) func_dirname_result="${3}" ;;
19309 esac
19310 func_basename_result="${1##*/}"
19311 }
19312
19313 # func_stripname prefix suffix name
19314 # strip PREFIX and SUFFIX off of NAME.
19315 # PREFIX and SUFFIX must not contain globbing or regex special
19316 # characters, hashes, percent signs, but SUFFIX may contain a leading
19317 # dot (in which case that matches only a dot).
19318 func_stripname ()
19319 {
19320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19321 # positional parameters, so assign one to ordinary parameter first.
19322 func_stripname_result=${3}
19323 func_stripname_result=${func_stripname_result#"${1}"}
19324 func_stripname_result=${func_stripname_result%"${2}"}
19325 }
19326
19327 # func_opt_split
19328 func_opt_split ()
19329 {
19330 func_opt_split_opt=${1%%=*}
19331 func_opt_split_arg=${1#*=}
19332 }
19333
19334 # func_lo2o object
19335 func_lo2o ()
19336 {
19337 case ${1} in
19338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19339 *) func_lo2o_result=${1} ;;
19340 esac
19341 }
19342
19343 # func_xform libobj-or-source
19344 func_xform ()
19345 {
19346 func_xform_result=${1%.*}.lo
19347 }
19348
19349 # func_arith arithmetic-term...
19350 func_arith ()
19351 {
19352 func_arith_result=$(( $* ))
19353 }
19354
19355 # func_len string
19356 # STRING may not start with a hyphen.
19357 func_len ()
19358 {
19359 func_len_result=${#1}
19360 }
19361
19362 _LT_EOF
19363 ;;
19364 *) # Bourne compatible functions.
19365 cat << \_LT_EOF >> "$cfgfile"
19366
19367 # func_dirname file append nondir_replacement
19368 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19369 # otherwise set result to NONDIR_REPLACEMENT.
19370 func_dirname ()
19371 {
19372 # Extract subdirectory from the argument.
19373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19374 if test "X$func_dirname_result" = "X${1}"; then
19375 func_dirname_result="${3}"
19376 else
19377 func_dirname_result="$func_dirname_result${2}"
19378 fi
19379 }
19380
19381 # func_basename file
19382 func_basename ()
19383 {
19384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19385 }
19386
19387
19388 # func_stripname prefix suffix name
19389 # strip PREFIX and SUFFIX off of NAME.
19390 # PREFIX and SUFFIX must not contain globbing or regex special
19391 # characters, hashes, percent signs, but SUFFIX may contain a leading
19392 # dot (in which case that matches only a dot).
19393 # func_strip_suffix prefix name
19394 func_stripname ()
19395 {
19396 case ${2} in
19397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19399 esac
19400 }
19401
19402 # sed scripts:
19403 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19404 my_sed_long_arg='1s/^-[^=]*=//'
19405
19406 # func_opt_split
19407 func_opt_split ()
19408 {
19409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19411 }
19412
19413 # func_lo2o object
19414 func_lo2o ()
19415 {
19416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19417 }
19418
19419 # func_xform libobj-or-source
19420 func_xform ()
19421 {
19422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19423 }
19424
19425 # func_arith arithmetic-term...
19426 func_arith ()
19427 {
19428 func_arith_result=`expr "$@"`
19429 }
19430
19431 # func_len string
19432 # STRING may not start with a hyphen.
19433 func_len ()
19434 {
19435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19436 }
19437
19438 _LT_EOF
19439 esac
19440
19441 case $lt_shell_append in
19442 yes)
19443 cat << \_LT_EOF >> "$cfgfile"
19444
19445 # func_append var value
19446 # Append VALUE to the end of shell variable VAR.
19447 func_append ()
19448 {
19449 eval "$1+=\$2"
19450 }
19451 _LT_EOF
19452 ;;
19453 *)
19454 cat << \_LT_EOF >> "$cfgfile"
19455
19456 # func_append var value
19457 # Append VALUE to the end of shell variable VAR.
19458 func_append ()
19459 {
19460 eval "$1=\$$1\$2"
19461 }
19462
19463 _LT_EOF
19464 ;;
19465 esac
19466
19467
19468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19469 || (rm -f "$cfgfile"; exit 1)
19470
19471 mv -f "$cfgfile" "$ofile" ||
19472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19473 chmod +x "$ofile"
19474
19475
19476 cat <<_LT_EOF >> "$ofile"
19477
19478 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19479
19480 # The linker used to build libraries.
19481 LD=$lt_LD_CXX
19482
19483 # How to create reloadable object files.
19484 reload_flag=$lt_reload_flag_CXX
19485 reload_cmds=$lt_reload_cmds_CXX
19486
19487 # Commands used to build an old-style archive.
19488 old_archive_cmds=$lt_old_archive_cmds_CXX
19489
19490 # A language specific compiler.
19491 CC=$lt_compiler_CXX
19492
19493 # Is the compiler the GNU compiler?
19494 with_gcc=$GCC_CXX
19495
19496 # Compiler flag to turn off builtin functions.
19497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19498
19499 # How to pass a linker flag through the compiler.
19500 wl=$lt_lt_prog_compiler_wl_CXX
19501
19502 # Additional compiler flags for building library objects.
19503 pic_flag=$lt_lt_prog_compiler_pic_CXX
19504
19505 # Compiler flag to prevent dynamic linking.
19506 link_static_flag=$lt_lt_prog_compiler_static_CXX
19507
19508 # Does compiler simultaneously support -c and -o options?
19509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19510
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19513
19514 # Whether or not to disallow shared libs when runtime libs are static.
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19516
19517 # Compiler flag to allow reflexive dlopens.
19518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19519
19520 # Compiler flag to generate shared objects directly from archives.
19521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19522
19523 # Whether the compiler copes with passing no objects directly.
19524 compiler_needs_object=$lt_compiler_needs_object_CXX
19525
19526 # Create an old-style archive from a shared archive.
19527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19528
19529 # Create a temporary old-style archive to link instead of a shared archive.
19530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19531
19532 # Commands used to build a shared archive.
19533 archive_cmds=$lt_archive_cmds_CXX
19534 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19535
19536 # Commands used to build a loadable module if different from building
19537 # a shared archive.
19538 module_cmds=$lt_module_cmds_CXX
19539 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19540
19541 # Whether we are building with GNU ld or not.
19542 with_gnu_ld=$lt_with_gnu_ld_CXX
19543
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19546
19547 # Flag that enforces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag_CXX
19549
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19553
19554 # If ld is used when linking, flag to hardcode \$libdir into a binary
19555 # during linking. This must work even if \$libdir does not exist.
19556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19557
19558 # Whether we need a single "-rpath" flag with a separated argument.
19559 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19560
19561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19562 # DIR into the resulting binary.
19563 hardcode_direct=$hardcode_direct_CXX
19564
19565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19566 # DIR into the resulting binary and the resulting library dependency is
19567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19568 # library is relocated.
19569 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19570
19571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19572 # into the resulting binary.
19573 hardcode_minus_L=$hardcode_minus_L_CXX
19574
19575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19578
19579 # Set to "yes" if building a shared library automatically hardcodes DIR
19580 # into the library and all subsequent libraries and executables linked
19581 # against it.
19582 hardcode_automatic=$hardcode_automatic_CXX
19583
19584 # Set to yes if linker adds runtime paths of dependent libraries
19585 # to runtime path list.
19586 inherit_rpath=$inherit_rpath_CXX
19587
19588 # Whether libtool must link a program against all its dependency libraries.
19589 link_all_deplibs=$link_all_deplibs_CXX
19590
19591 # Fix the shell variable \$srcfile for the compiler.
19592 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19593
19594 # Set to "yes" if exported symbols are required.
19595 always_export_symbols=$always_export_symbols_CXX
19596
19597 # The commands to list exported symbols.
19598 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19599
19600 # Symbols that should not be listed in the preloaded symbols.
19601 exclude_expsyms=$lt_exclude_expsyms_CXX
19602
19603 # Symbols that must always be exported.
19604 include_expsyms=$lt_include_expsyms_CXX
19605
19606 # Commands necessary for linking programs (against libraries) with templates.
19607 prelink_cmds=$lt_prelink_cmds_CXX
19608
19609 # Specify filename containing input files.
19610 file_list_spec=$lt_file_list_spec_CXX
19611
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action_CXX
19614
19615 # The directories searched by this compiler when creating a shared library.
19616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19617
19618 # Dependencies to place before and after the objects being linked to
19619 # create a shared library.
19620 predep_objects=$lt_predep_objects_CXX
19621 postdep_objects=$lt_postdep_objects_CXX
19622 predeps=$lt_predeps_CXX
19623 postdeps=$lt_postdeps_CXX
19624
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19628
19629 # ### END LIBTOOL TAG CONFIG: CXX
19630 _LT_EOF
19631
19632 ;;
19633 "include":C) test -d include || mkdir include ;;
19634 "src":C)
19635 test -d src || mkdir src
19636 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19637 ;;
19638
19639 esac
19640 done # for ac_tag
19641
19642
19643 as_fn_exit 0
19644 _ACEOF
19645 ac_clean_files=$ac_clean_files_save
19646
19647 test $ac_write_fail = 0 ||
19648 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19649
19650
19651 # configure is writing to config.log, and then calls config.status.
19652 # config.status does its own redirection, appending to config.log.
19653 # Unfortunately, on DOS this fails, as config.log is still kept open
19654 # by configure, so config.status won't be able to write to it; its
19655 # output is simply discarded. So we exec the FD to /dev/null,
19656 # effectively closing config.log, so it can be properly (re)opened and
19657 # appended to by config.status. When coming back to configure, we
19658 # need to make the FD available again.
19659 if test "$no_create" != yes; then
19660 ac_cs_success=:
19661 ac_config_status_args=
19662 test "$silent" = yes &&
19663 ac_config_status_args="$ac_config_status_args --quiet"
19664 exec 5>/dev/null
19665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19666 exec 5>>config.log
19667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19668 # would make configure fail if this is the last instruction.
19669 $ac_cs_success || as_fn_exit 1
19670 fi
19671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19673 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19674 fi
19675