re PR target/68964 (Internal compiler error for test case gcc.dg/tm/20100610.c since...
[gcc.git] / libitm / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_FUTEX_FALSE
605 ARCH_FUTEX_TRUE
606 ARCH_X86_AVX_FALSE
607 ARCH_X86_AVX_TRUE
608 ARCH_X86_FALSE
609 ARCH_X86_TRUE
610 ARCH_S390_FALSE
611 ARCH_S390_TRUE
612 ARCH_PPC_FALSE
613 ARCH_PPC_TRUE
614 ARCH_ARM_FALSE
615 ARCH_ARM_TRUE
616 ARCH_AARCH64_FALSE
617 ARCH_AARCH64_TRUE
618 link_itm
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
623 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
624 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
625 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
626 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
627 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
628 OPT_LDFLAGS
629 SECTION_LDFLAGS
630 HAVE_HWCAP_FALSE
631 HAVE_HWCAP_TRUE
632 HWCAP_LDFLAGS
633 libtool_VERSION
634 MAINT
635 MAINTAINER_MODE_FALSE
636 MAINTAINER_MODE_TRUE
637 enable_static
638 enable_shared
639 CXXCPP
640 CPP
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 OBJDUMP
647 LN_S
648 ac_ct_DUMPBIN
649 DUMPBIN
650 LD
651 FGREP
652 EGREP
653 GREP
654 SED
655 LIBTOOL
656 BUILD_INFO_FALSE
657 BUILD_INFO_TRUE
658 PERL
659 RANLIB
660 NM
661 AR
662 am__fastdepCCAS_FALSE
663 am__fastdepCCAS_TRUE
664 CCASDEPMODE
665 CCASFLAGS
666 CCAS
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 ac_ct_CXX
671 CXXFLAGS
672 CXX
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 toolexeclibdir
691 toolexecdir
692 multi_basedir
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_os
717 target_vendor
718 target_cpu
719 target
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 GENINSRC_FALSE
729 GENINSRC_TRUE
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_version_specific_runtime_libs
772 enable_generated_files_in_srcdir
773 enable_multilib
774 enable_dependency_tracking
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 enable_libtool_lock
781 enable_maintainer_mode
782 enable_linux_futex
783 enable_tls
784 enable_symvers
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CPP
790 CPPFLAGS
791 CXXCPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
851 fi
852
853 case $ac_option in
854 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information."
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used." >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-version-specific-runtime-libs
1413 Specify that runtime libraries should be installed
1414 in a compiler-specific directory [default=no]
1415 --enable-generated-files-in-srcdir
1416 put copies of generated files in source dir intended
1417 for creating source tarballs for users without
1418 texinfo bison or flex. [default=no]
1419 --enable-multilib build many library versions (default)
1420 --disable-dependency-tracking speeds up one-time build
1421 --enable-dependency-tracking do not reject slow dependency extractors
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1429 --enable-linux-futex use the Linux futex system call [default=default]
1430 --enable-tls Use thread-local storage [default=yes]
1431 --enable-symvers=STYLE enables symbol versioning of the shared library
1432 [default=yes]
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CXX C++ compiler command
1450 CXXFLAGS C++ compiler flags
1451 CCAS assembler compiler command (defaults to CC)
1452 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1453 CPP C preprocessor
1454 CXXCPP C++ preprocessor
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to the package provider.
1460 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1461 General help using GNU software: <http://www.gnu.org/gethelp/>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 GNU TM Runtime Library configure 1.0
1525 generated by GNU Autoconf 2.64
1526
1527 Copyright (C) 2009 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_cxx_try_compile LINENO
1577 # ----------------------------
1578 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_cxx_try_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_cxx_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1611
1612 } # ac_fn_cxx_try_compile
1613
1614 # ac_fn_c_try_link LINENO
1615 # -----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_link ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext conftest$ac_exeext
1621 if { { ac_try="$ac_link"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest$ac_exeext && {
1640 test "$cross_compiling" = yes ||
1641 $as_test_x conftest$ac_exeext
1642 }; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1652 # interfere with the next link command; also delete a directory that is
1653 # left behind by Apple's compiler. We do this before executing the actions.
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 return $ac_retval
1657
1658 } # ac_fn_c_try_link
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } >/dev/null && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 return $ac_retval
1725
1726 } # ac_fn_c_try_cpp
1727
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=$ac_status
1763 fi
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768 } # ac_fn_c_try_run
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_cxx_try_cpp LINENO
1838 # ------------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_cpp ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } >/dev/null && {
1859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1871
1872 } # ac_fn_cxx_try_cpp
1873
1874 # ac_fn_cxx_try_link LINENO
1875 # -------------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 $as_test_x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1917
1918 } # ac_fn_cxx_try_link
1919
1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923 # the include files in INCLUDES and setting the cache variable VAR
1924 # accordingly.
1925 ac_fn_c_check_header_mongrel ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 else
1938 # Is the header compilable?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940 $as_echo_n "checking $2 usability... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 $4
1944 #include <$2>
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_header_compiler=yes
1948 else
1949 ac_header_compiler=no
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953 $as_echo "$ac_header_compiler" >&6; }
1954
1955 # Is the header present?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957 $as_echo_n "checking $2 presence... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 ac_header_preproc=yes
1964 else
1965 ac_header_preproc=no
1966 fi
1967 rm -f conftest.err conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969 $as_echo "$ac_header_preproc" >&6; }
1970
1971 # So? What about this header?
1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 yes:no: )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 ;;
1979 no:yes:* )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1983 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1987 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ;;
1991 esac
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 eval "$3=\$ac_header_compiler"
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 fi
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
2005 } # ac_fn_c_check_header_mongrel
2006
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=no"
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof ($2))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 if (sizeof (($2)))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046
2047 else
2048 eval "$3=yes"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058
2059 } # ac_fn_c_check_type
2060
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2065 # computed
2066 ac_fn_c_compute_int ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if test "$cross_compiling" = yes; then
2070 # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2078 test_array [0] = 0
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_lo=0 ac_mid=0
2086 while :; do
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 test_array [0] = 0
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=$ac_mid; break
2102 else
2103 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104 if test $ac_lo -le $ac_mid; then
2105 ac_lo= ac_hi=
2106 break
2107 fi
2108 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 done
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) < 0)];
2120 test_array [0] = 0
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=-1 ac_mid=-1
2128 while :; do
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2136 test_array [0] = 0
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=$ac_mid; break
2144 else
2145 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2146 if test $ac_mid -le $ac_hi; then
2147 ac_lo= ac_hi=
2148 break
2149 fi
2150 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 ac_lo= ac_hi=
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 # Binary search between lo and hi bounds.
2161 while test "x$ac_lo" != "x$ac_hi"; do
2162 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 test_array [0] = 0
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=$ac_mid
2178 else
2179 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 done
2183 case $ac_lo in #((
2184 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2185 '') ac_retval=1 ;;
2186 esac
2187 else
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $4
2191 static long int longval () { return $2; }
2192 static unsigned long int ulongval () { return $2; }
2193 #include <stdio.h>
2194 #include <stdlib.h>
2195 int
2196 main ()
2197 {
2198
2199 FILE *f = fopen ("conftest.val", "w");
2200 if (! f)
2201 return 1;
2202 if (($2) < 0)
2203 {
2204 long int i = longval ();
2205 if (i != ($2))
2206 return 1;
2207 fprintf (f, "%ld", i);
2208 }
2209 else
2210 {
2211 unsigned long int i = ulongval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%lu", i);
2215 }
2216 /* Do not output a trailing newline, as this causes \r\n confusion
2217 on some platforms. */
2218 return ferror (f) || fclose (f) != 0;
2219
2220 ;
2221 return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_run "$LINENO"; then :
2225 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2226 else
2227 ac_retval=1
2228 fi
2229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2230 conftest.$ac_objext conftest.beam conftest.$ac_ext
2231 rm -f conftest.val
2232
2233 fi
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 return $ac_retval
2236
2237 } # ac_fn_c_compute_int
2238
2239 # ac_fn_c_check_decl LINENO SYMBOL VAR
2240 # ------------------------------------
2241 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2242 ac_fn_c_check_decl ()
2243 {
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 as_decl_name=`echo $2|sed 's/ *(.*//'`
2246 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2248 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2249 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 #ifndef $as_decl_name
2259 #ifdef __cplusplus
2260 (void) $as_decl_use;
2261 #else
2262 (void) $as_decl_name;
2263 #endif
2264 #endif
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 eval "$3=yes"
2272 else
2273 eval "$3=no"
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 fi
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281
2282 } # ac_fn_c_check_decl
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2286
2287 It was created by GNU TM Runtime Library $as_me 1.0, which was
2288 generated by GNU Autoconf 2.64. Invocation command line was
2289
2290 $ $0 $@
2291
2292 _ACEOF
2293 exec 5>>config.log
2294 {
2295 cat <<_ASUNAME
2296 ## --------- ##
2297 ## Platform. ##
2298 ## --------- ##
2299
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316
2317 _ASUNAME
2318
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 $as_echo "PATH: $as_dir"
2325 done
2326 IFS=$as_save_IFS
2327
2328 } >&5
2329
2330 cat >&5 <<_ACEOF
2331
2332
2333 ## ----------- ##
2334 ## Core tests. ##
2335 ## ----------- ##
2336
2337 _ACEOF
2338
2339
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2345 ac_configure_args=
2346 ac_configure_args0=
2347 ac_configure_args1=
2348 ac_must_keep_next=false
2349 for ac_pass in 1 2
2350 do
2351 for ac_arg
2352 do
2353 case $ac_arg in
2354 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356 | -silent | --silent | --silen | --sile | --sil)
2357 continue ;;
2358 *\'*)
2359 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360 esac
2361 case $ac_pass in
2362 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363 2)
2364 as_fn_append ac_configure_args1 " '$ac_arg'"
2365 if test $ac_must_keep_next = true; then
2366 ac_must_keep_next=false # Got value, back to normal.
2367 else
2368 case $ac_arg in
2369 *=* | --config-cache | -C | -disable-* | --disable-* \
2370 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372 | -with-* | --with-* | -without-* | --without-* | --x)
2373 case "$ac_configure_args0 " in
2374 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375 esac
2376 ;;
2377 -* ) ac_must_keep_next=true ;;
2378 esac
2379 fi
2380 as_fn_append ac_configure_args " '$ac_arg'"
2381 ;;
2382 esac
2383 done
2384 done
2385 { ac_configure_args0=; unset ac_configure_args0;}
2386 { ac_configure_args1=; unset ac_configure_args1;}
2387
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log. We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394 # Save into config.log some information that might help in debugging.
2395 {
2396 echo
2397
2398 cat <<\_ASBOX
2399 ## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##
2402 _ASBOX
2403 echo
2404 # The following way of writing the cache mishandles newlines in values,
2405 (
2406 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in #(
2409 *${as_nl}*)
2410 case $ac_var in #(
2411 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413 esac
2414 case $ac_var in #(
2415 _ | IFS | as_nl) ;; #(
2416 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417 *) { eval $ac_var=; unset $ac_var;} ;;
2418 esac ;;
2419 esac
2420 done
2421 (set) 2>&1 |
2422 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423 *${as_nl}ac_space=\ *)
2424 sed -n \
2425 "s/'\''/'\''\\\\'\'''\''/g;
2426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427 ;; #(
2428 *)
2429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430 ;;
2431 esac |
2432 sort
2433 )
2434 echo
2435
2436 cat <<\_ASBOX
2437 ## ----------------- ##
2438 ## Output variables. ##
2439 ## ----------------- ##
2440 _ASBOX
2441 echo
2442 for ac_var in $ac_subst_vars
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451
2452 if test -n "$ac_subst_files"; then
2453 cat <<\_ASBOX
2454 ## ------------------- ##
2455 ## File substitutions. ##
2456 ## ------------------- ##
2457 _ASBOX
2458 echo
2459 for ac_var in $ac_subst_files
2460 do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2468 fi
2469
2470 if test -s confdefs.h; then
2471 cat <<\_ASBOX
2472 ## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##
2475 _ASBOX
2476 echo
2477 cat confdefs.h
2478 echo
2479 fi
2480 test "$ac_signal" != 0 &&
2481 $as_echo "$as_me: caught signal $ac_signal"
2482 $as_echo "$as_me: exit $exit_status"
2483 } >&5
2484 rm -f core *.core core.conftest.* &&
2485 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486 exit $exit_status
2487 ' 0
2488 for ac_signal in 1 2 13 15; do
2489 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 done
2491 ac_signal=0
2492
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2495
2496 $as_echo "/* confdefs.h */" > confdefs.h
2497
2498 # Predefined preprocessor variables.
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2522 _ACEOF
2523
2524
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2527 ac_site_file1=NONE
2528 ac_site_file2=NONE
2529 if test -n "$CONFIG_SITE"; then
2530 ac_site_file1=$CONFIG_SITE
2531 elif test "x$prefix" != xNONE; then
2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
2534 else
2535 ac_site_file1=$ac_default_prefix/share/config.site
2536 ac_site_file2=$ac_default_prefix/etc/config.site
2537 fi
2538 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2539 do
2540 test "x$ac_site_file" = xNONE && continue
2541 if test -r "$ac_site_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544 sed 's/^/| /' "$ac_site_file" >&5
2545 . "$ac_site_file"
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special
2551 # files actually), so we avoid doing that.
2552 if test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 # Check that the precious variables saved in the cache have kept the same
2567 # value.
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571 eval ac_new_set=\$ac_env_${ac_var}_set
2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573 eval ac_new_val=\$ac_env_${ac_var}_value
2574 case $ac_old_set,$ac_new_set in
2575 set,)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2579 ,set)
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,);;
2584 *)
2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592 ac_cache_corrupted=:
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2602 fi;;
2603 esac
2604 # Pass precious variables to config.status.
2605 if test "$ac_new_set" = set; then
2606 case $ac_new_val in
2607 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608 *) ac_arg=$ac_var=$ac_new_val ;;
2609 esac
2610 case " $ac_configure_args " in
2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613 esac
2614 fi
2615 done
2616 if $ac_cache_corrupted; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622 fi
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2626
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634
2635
2636
2637 ac_config_headers="$ac_config_headers config.h"
2638
2639
2640 # -------
2641 # Options
2642 # -------
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2645 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2646 # Check whether --enable-version-specific-runtime-libs was given.
2647 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2648 enableval=$enable_version_specific_runtime_libs;
2649 case "$enableval" in
2650 yes|no) ;;
2651 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2652 esac
2653
2654 else
2655 enable_version_specific_runtime_libs=no
2656 fi
2657
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2660 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2661
2662 # We would like our source tree to be readonly. However when releases or
2663 # pre-releases are generated, the flex/bison generated files as well as the
2664 # various formats of manuals need to be included along with the rest of the
2665 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2666 # just that.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2668 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2669 # Check whether --enable-generated-files-in-srcdir was given.
2670 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2671 enableval=$enable_generated_files_in_srcdir;
2672 case "$enableval" in
2673 yes|no) ;;
2674 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2675 esac
2676
2677 else
2678 enable_generated_files_in_srcdir=no
2679 fi
2680
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2683 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2684 if test "$enable_generated_files_in_srcdir" = yes; then
2685 GENINSRC_TRUE=
2686 GENINSRC_FALSE='#'
2687 else
2688 GENINSRC_TRUE='#'
2689 GENINSRC_FALSE=
2690 fi
2691
2692
2693
2694 # -------
2695 # -------
2696
2697 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2698 #
2699 # You will slowly go insane if you do not grok the following fact: when
2700 # building this library, the top-level /target/ becomes the library's /host/.
2701 #
2702 # configure then causes --target to default to --host, exactly like any
2703 # other package using autoconf. Therefore, 'target' and 'host' will
2704 # always be the same. This makes sense both for native and cross compilers
2705 # just think about it for a little while. :-)
2706 #
2707 # Also, if this library is being configured as part of a cross compiler, the
2708 # top-level configure script will pass the "real" host as $with_cross_host.
2709 #
2710 # Do not delete or change the following two lines. For why, see
2711 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2712 ac_aux_dir=
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714 for ac_t in install-sh install.sh shtool; do
2715 if test -f "$ac_dir/$ac_t"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/$ac_t -c"
2718 break 2
2719 fi
2720 done
2721 done
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2724 fi
2725
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2733
2734
2735 # Make sure we can run config.sub.
2736 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2737 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2738
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2740 $as_echo_n "checking build system type... " >&6; }
2741 if test "${ac_cv_build+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 ac_build_alias=$build_alias
2745 test "x$ac_build_alias" = x &&
2746 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2747 test "x$ac_build_alias" = x &&
2748 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2749 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2751
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2754 $as_echo "$ac_cv_build" >&6; }
2755 case $ac_cv_build in
2756 *-*-*) ;;
2757 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2758 esac
2759 build=$ac_cv_build
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_build
2762 shift
2763 build_cpu=$1
2764 build_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 build_os=$*
2769 IFS=$ac_save_IFS
2770 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2771
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2774 $as_echo_n "checking host system type... " >&6; }
2775 if test "${ac_cv_host+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$host_alias" = x; then
2779 ac_cv_host=$ac_cv_build
2780 else
2781 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2782 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2783 fi
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2787 $as_echo "$ac_cv_host" >&6; }
2788 case $ac_cv_host in
2789 *-*-*) ;;
2790 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2791 esac
2792 host=$ac_cv_host
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_host
2795 shift
2796 host_cpu=$1
2797 host_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 host_os=$*
2802 IFS=$ac_save_IFS
2803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2807 $as_echo_n "checking target system type... " >&6; }
2808 if test "${ac_cv_target+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test "x$target_alias" = x; then
2812 ac_cv_target=$ac_cv_host
2813 else
2814 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2815 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2816 fi
2817
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2820 $as_echo "$ac_cv_target" >&6; }
2821 case $ac_cv_target in
2822 *-*-*) ;;
2823 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2824 esac
2825 target=$ac_cv_target
2826 ac_save_IFS=$IFS; IFS='-'
2827 set x $ac_cv_target
2828 shift
2829 target_cpu=$1
2830 target_vendor=$2
2831 shift; shift
2832 # Remember, the first character of IFS is used to create $*,
2833 # except with old shells:
2834 target_os=$*
2835 IFS=$ac_save_IFS
2836 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2837
2838
2839 # The aliases save the names the user supplied, while $host etc.
2840 # will get canonicalized.
2841 test -n "$target_alias" &&
2842 test "$program_prefix$program_suffix$program_transform_name" = \
2843 NONENONEs,x,x, &&
2844 program_prefix=${target_alias}-
2845
2846 target_alias=${target_alias-$host_alias}
2847
2848 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2849 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2850 # 1.9.0: minimum required version
2851 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2852 # of other PACKAGE_* variables will, however, and there's nothing
2853 # we can do about that; they come from AC_INIT).
2854 # no-dist: we don't want 'dist' and related rules.
2855 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2856 # file in the top srcdir, etc, etc), so stop complaining.
2857 # -Wall: turns on all automake warnings...
2858 # -Wno-portability: ...except this one, since GNU make is required.
2859 # -Wno-override: ... and this one, since we do want this in testsuite.
2860 am__api_version='1.11'
2861
2862 # Find a good install program. We prefer a C program (faster),
2863 # so one script is as good as another. But avoid the broken or
2864 # incompatible versions:
2865 # SysV /etc/install, /usr/sbin/install
2866 # SunOS /usr/etc/install
2867 # IRIX /sbin/install
2868 # AIX /bin/install
2869 # AmigaOS /C/install, which installs bootblocks on floppy discs
2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873 # OS/2's system install, which has a completely different semantic
2874 # ./install, which can be erroneously created by make from ./install.sh.
2875 # Reject install programs that cannot install multiple files.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2878 if test -z "$INSTALL"; then
2879 if test "${ac_cv_path_install+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 # Account for people who put trailing slashes in PATH elements.
2888 case $as_dir/ in #((
2889 ./ | .// | /[cC]/* | \
2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2892 /usr/ucb/* ) ;;
2893 *)
2894 # OSF1 and SCO ODT 3.0 have their own names for install.
2895 # Don't use installbsd from OSF since it installs stuff as root
2896 # by default.
2897 for ac_prog in ginstall scoinst install; do
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2900 if test $ac_prog = install &&
2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902 # AIX install. It has an incompatible calling convention.
2903 :
2904 elif test $ac_prog = install &&
2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # program-specific install script used by HP pwplus--don't use.
2907 :
2908 else
2909 rm -rf conftest.one conftest.two conftest.dir
2910 echo one > conftest.one
2911 echo two > conftest.two
2912 mkdir conftest.dir
2913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2914 test -s conftest.one && test -s conftest.two &&
2915 test -s conftest.dir/conftest.one &&
2916 test -s conftest.dir/conftest.two
2917 then
2918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919 break 3
2920 fi
2921 fi
2922 fi
2923 done
2924 done
2925 ;;
2926 esac
2927
2928 done
2929 IFS=$as_save_IFS
2930
2931 rm -rf conftest.one conftest.two conftest.dir
2932
2933 fi
2934 if test "${ac_cv_path_install+set}" = set; then
2935 INSTALL=$ac_cv_path_install
2936 else
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for INSTALL within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 INSTALL=$ac_install_sh
2942 fi
2943 fi
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2945 $as_echo "$INSTALL" >&6; }
2946
2947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948 # It thinks the first close brace ends the variable substitution.
2949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2950
2951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2952
2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2956 $as_echo_n "checking whether build environment is sane... " >&6; }
2957 # Just in case
2958 sleep 1
2959 echo timestamp > conftest.file
2960 # Reject unsafe characters in $srcdir or the absolute working directory
2961 # name. Accept space and tab only in the latter.
2962 am_lf='
2963 '
2964 case `pwd` in
2965 *[\\\"\#\$\&\'\`$am_lf]*)
2966 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2967 esac
2968 case $srcdir in
2969 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2970 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2971 esac
2972
2973 # Do `set' in a subshell so we don't clobber the current shell's
2974 # arguments. Must try -L first in case configure is actually a
2975 # symlink; some systems play weird games with the mod time of symlinks
2976 # (eg FreeBSD returns the mod time of the symlink's containing
2977 # directory).
2978 if (
2979 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2980 if test "$*" = "X"; then
2981 # -L didn't work.
2982 set X `ls -t "$srcdir/configure" conftest.file`
2983 fi
2984 rm -f conftest.file
2985 if test "$*" != "X $srcdir/configure conftest.file" \
2986 && test "$*" != "X conftest.file $srcdir/configure"; then
2987
2988 # If neither matched, then we have a broken ls. This can happen
2989 # if, for instance, CONFIG_SHELL is bash and it inherits a
2990 # broken ls alias from the environment. This has actually
2991 # happened. Such a system could not be considered "sane".
2992 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2993 alias in your environment" "$LINENO" 5
2994 fi
2995
2996 test "$2" = conftest.file
2997 )
2998 then
2999 # Ok.
3000 :
3001 else
3002 as_fn_error "newly created file is older than distributed files!
3003 Check your system clock" "$LINENO" 5
3004 fi
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007 test "$program_prefix" != NONE &&
3008 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3009 # Use a double $ so make ignores it.
3010 test "$program_suffix" != NONE &&
3011 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3012 # Double any \ or $.
3013 # By default was `s,x,x', remove it if useless.
3014 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3015 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3016
3017 # expand $ac_aux_dir to an absolute path
3018 am_aux_dir=`cd $ac_aux_dir && pwd`
3019
3020 if test x"${MISSING+set}" != xset; then
3021 case $am_aux_dir in
3022 *\ * | *\ *)
3023 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3024 *)
3025 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3026 esac
3027 fi
3028 # Use eval to expand $SHELL
3029 if eval "$MISSING --run true"; then
3030 am_missing_run="$MISSING --run "
3031 else
3032 am_missing_run=
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3034 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3035 fi
3036
3037 if test x"${install_sh}" != xset; then
3038 case $am_aux_dir in
3039 *\ * | *\ *)
3040 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3041 *)
3042 install_sh="\${SHELL} $am_aux_dir/install-sh"
3043 esac
3044 fi
3045
3046 # Installed binaries are usually stripped using `strip' when the user
3047 # run `make install-strip'. However `strip' might not be the right
3048 # tool to use in cross-compilation environments, therefore Automake
3049 # will honor the `STRIP' environment variable to overrule this program.
3050 if test "$cross_compiling" != no; then
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}strip; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_STRIP+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$STRIP"; then
3060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 STRIP=$ac_cv_prog_STRIP
3080 if test -n "$STRIP"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3082 $as_echo "$STRIP" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 fi
3090 if test -z "$ac_cv_prog_STRIP"; then
3091 ac_ct_STRIP=$STRIP
3092 # Extract the first word of "strip", so it can be a program name with args.
3093 set dummy strip; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_STRIP"; then
3100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_STRIP="strip"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3120 if test -n "$ac_ct_STRIP"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3122 $as_echo "$ac_ct_STRIP" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128 if test "x$ac_ct_STRIP" = x; then
3129 STRIP=":"
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 STRIP=$ac_ct_STRIP
3138 fi
3139 else
3140 STRIP="$ac_cv_prog_STRIP"
3141 fi
3142
3143 fi
3144 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3145
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3147 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3148 if test -z "$MKDIR_P"; then
3149 if test "${ac_cv_path_mkdir+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_prog in mkdir gmkdir; do
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3160 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3161 'mkdir (GNU coreutils) '* | \
3162 'mkdir (coreutils) '* | \
3163 'mkdir (fileutils) '4.1*)
3164 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3165 break 3;;
3166 esac
3167 done
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173
3174 if test "${ac_cv_path_mkdir+set}" = set; then
3175 MKDIR_P="$ac_cv_path_mkdir -p"
3176 else
3177 # As a last resort, use the slow shell script. Don't cache a
3178 # value for MKDIR_P within a source directory, because that will
3179 # break other packages using the cache if that directory is
3180 # removed, or if the value is a relative name.
3181 test -d ./--version && rmdir ./--version
3182 MKDIR_P="$ac_install_sh -d"
3183 fi
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3186 $as_echo "$MKDIR_P" >&6; }
3187
3188 mkdir_p="$MKDIR_P"
3189 case $mkdir_p in
3190 [\\/$]* | ?:[\\/]*) ;;
3191 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3192 esac
3193
3194 for ac_prog in gawk mawk nawk awk
3195 do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_AWK+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$AWK"; then
3204 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_AWK="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 AWK=$ac_cv_prog_AWK
3224 if test -n "$AWK"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3226 $as_echo "$AWK" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 test -n "$AWK" && break
3234 done
3235
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3237 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3238 set x ${MAKE-make}
3239 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3240 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 cat >conftest.make <<\_ACEOF
3244 SHELL = /bin/sh
3245 all:
3246 @echo '@@@%%%=$(MAKE)=@@@%%%'
3247 _ACEOF
3248 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3249 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3250 *@@@%%%=?*=@@@%%%*)
3251 eval ac_cv_prog_make_${ac_make}_set=yes;;
3252 *)
3253 eval ac_cv_prog_make_${ac_make}_set=no;;
3254 esac
3255 rm -f conftest.make
3256 fi
3257 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 SET_MAKE=
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 SET_MAKE="MAKE=${MAKE-make}"
3265 fi
3266
3267 rm -rf .tst 2>/dev/null
3268 mkdir .tst 2>/dev/null
3269 if test -d .tst; then
3270 am__leading_dot=.
3271 else
3272 am__leading_dot=_
3273 fi
3274 rmdir .tst 2>/dev/null
3275
3276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3277 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3278 # is not polluted with repeated "-I."
3279 am__isrc=' -I$(srcdir)'
3280 # test to see if srcdir already configured
3281 if test -f $srcdir/config.status; then
3282 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283 fi
3284 fi
3285
3286 # test whether we have cygpath
3287 if test -z "$CYGPATH_W"; then
3288 if (cygpath --version) >/dev/null 2>/dev/null; then
3289 CYGPATH_W='cygpath -w'
3290 else
3291 CYGPATH_W=echo
3292 fi
3293 fi
3294
3295
3296 # Define the identity of the package.
3297 PACKAGE='libitm'
3298 VERSION='1.0'
3299
3300
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE "$PACKAGE"
3303 _ACEOF
3304
3305
3306 cat >>confdefs.h <<_ACEOF
3307 #define VERSION "$VERSION"
3308 _ACEOF
3309
3310 # Some tools Automake needs.
3311
3312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3313
3314
3315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3316
3317
3318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3319
3320
3321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3322
3323
3324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3325
3326 # We need awk for the "check" target. The system "awk" is bad on
3327 # some platforms.
3328 # Always define AMTAR for backward compatibility. Yes, it's still used
3329 # in the wild :-( We should find a proper way to deprecate it ...
3330 AMTAR='$${TAR-tar}'
3331
3332 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3333
3334
3335
3336
3337
3338 # Default to --enable-multilib
3339 # Check whether --enable-multilib was given.
3340 if test "${enable_multilib+set}" = set; then :
3341 enableval=$enable_multilib; case "$enableval" in
3342 yes) multilib=yes ;;
3343 no) multilib=no ;;
3344 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3345 esac
3346 else
3347 multilib=yes
3348 fi
3349
3350
3351 # We may get other options which we leave undocumented:
3352 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3353 # See config-ml.in if you want the gory details.
3354
3355 if test "$srcdir" = "."; then
3356 if test "$with_target_subdir" != "."; then
3357 multi_basedir="$srcdir/$with_multisrctop../.."
3358 else
3359 multi_basedir="$srcdir/$with_multisrctop.."
3360 fi
3361 else
3362 multi_basedir="$srcdir/.."
3363 fi
3364
3365
3366 # Even if the default multilib is not a cross compilation,
3367 # it may be that some of the other multilibs are.
3368 if test $cross_compiling = no && test $multilib = yes \
3369 && test "x${with_multisubdir}" != x ; then
3370 cross_compiling=maybe
3371 fi
3372
3373 ac_config_commands="$ac_config_commands default-1"
3374
3375
3376 # Calculate toolexeclibdir
3377 # Also toolexecdir, though it's only used in toolexeclibdir
3378 case ${enable_version_specific_runtime_libs} in
3379 yes)
3380 # Need the gcc compiler version to know where to install libraries
3381 # and header files if --enable-version-specific-runtime-libs option
3382 # is selected.
3383 toolexecdir='$(libdir)/gcc/$(target_alias)'
3384 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3385 ;;
3386 no)
3387 if test -n "$with_cross_host" &&
3388 test x"$with_cross_host" != x"no"; then
3389 # Install a library built with a cross compiler in tooldir, not libdir.
3390 toolexecdir='$(exec_prefix)/$(target_alias)'
3391 toolexeclibdir='$(toolexecdir)/lib'
3392 else
3393 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3394 toolexeclibdir='$(libdir)'
3395 fi
3396 multi_os_directory=`$CC -print-multi-os-directory`
3397 case $multi_os_directory in
3398 .) ;; # Avoid trailing /.
3399 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3400 esac
3401 ;;
3402 esac
3403
3404
3405
3406 # Check the compiler.
3407 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3408 # We must force CC to /not/ be precious variables; otherwise
3409 # the wrong, non-multilib-adjusted value will be used in multilibs.
3410 # As a side effect, we have to subst CFLAGS ourselves.
3411
3412
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 if test -z "$ac_cv_prog_CC"; then
3459 ac_ct_CC=$CC
3460 # Extract the first word of "gcc", so it can be a program name with args.
3461 set dummy gcc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_CC="gcc"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3480 fi
3481 done
3482 done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 fi
3495
3496 if test "x$ac_ct_CC" = x; then
3497 CC=""
3498 else
3499 case $cross_compiling:$ac_tool_warned in
3500 yes:)
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503 ac_tool_warned=yes ;;
3504 esac
3505 CC=$ac_ct_CC
3506 fi
3507 else
3508 CC="$ac_cv_prog_CC"
3509 fi
3510
3511 if test -z "$CC"; then
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_CC="${ac_tool_prefix}cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549
3550 fi
3551 fi
3552 if test -z "$CC"; then
3553 # Extract the first word of "cc", so it can be a program name with args.
3554 set dummy cc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CC+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 ac_prog_rejected=no
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3572 ac_prog_rejected=yes
3573 continue
3574 fi
3575 ac_cv_prog_CC="cc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 if test $ac_prog_rejected = yes; then
3584 # We found a bogon in the path, so make sure we never use it.
3585 set dummy $ac_cv_prog_CC
3586 shift
3587 if test $# != 0; then
3588 # We chose a different compiler from the bogus one.
3589 # However, it has the same basename, so the bogon will be chosen
3590 # first if we set CC to just the basename; use the full file name.
3591 shift
3592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3593 fi
3594 fi
3595 fi
3596 fi
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607 fi
3608 if test -z "$CC"; then
3609 if test -n "$ac_tool_prefix"; then
3610 for ac_prog in cl.exe
3611 do
3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if test "${ac_cv_prog_CC+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642 $as_echo "$CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648
3649 test -n "$CC" && break
3650 done
3651 fi
3652 if test -z "$CC"; then
3653 ac_ct_CC=$CC
3654 for ac_prog in cl.exe
3655 do
3656 # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 set dummy $ac_prog; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_ac_ct_CC="$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 test -n "$ac_ct_CC" && break
3694 done
3695
3696 if test "x$ac_ct_CC" = x; then
3697 CC=""
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700 yes:)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703 ac_tool_warned=yes ;;
3704 esac
3705 CC=$ac_ct_CC
3706 fi
3707 fi
3708
3709 fi
3710
3711
3712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "no acceptable C compiler found in \$PATH
3715 See \`config.log' for more details." "$LINENO" 5; }
3716
3717 # Provide some information about the compiler.
3718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3719 set X $ac_compile
3720 ac_compiler=$2
3721 for ac_option in --version -v -V -qversion; do
3722 { { ac_try="$ac_compiler $ac_option >&5"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3730 ac_status=$?
3731 if test -s conftest.err; then
3732 sed '10a\
3733 ... rest of stderr output deleted ...
3734 10q' conftest.err >conftest.er1
3735 cat conftest.er1 >&5
3736 rm -f conftest.er1 conftest.err
3737 fi
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3740 done
3741
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 ac_clean_files_save=$ac_clean_files
3754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3755 # Try to create an executable without -o first, disregard a.out.
3756 # It will help us diagnose broken compilers, and finding out an intuition
3757 # of exeext.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759 $as_echo_n "checking for C compiler default output file name... " >&6; }
3760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3761
3762 # The possible output files:
3763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3764
3765 ac_rmfiles=
3766 for ac_file in $ac_files
3767 do
3768 case $ac_file in
3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3771 esac
3772 done
3773 rm -f $ac_rmfiles
3774
3775 if { { ac_try="$ac_link_default"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_link_default") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3789 # so that the user can short-circuit this test for compilers unknown to
3790 # Autoconf.
3791 for ac_file in $ac_files ''
3792 do
3793 test -f "$ac_file" || continue
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 ;;
3797 [ab].out )
3798 # We found the default executable, but exeext='' is most
3799 # certainly right.
3800 break;;
3801 *.* )
3802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3803 then :; else
3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 fi
3806 # We set ac_cv_exeext here because the later test for it is not
3807 # safe: cross compilers may not add the suffix if given an `-o'
3808 # argument, so we may need to know it at that point already.
3809 # Even if this section looks crufty: it has the advantage of
3810 # actually working.
3811 break;;
3812 * )
3813 break;;
3814 esac
3815 done
3816 test "$ac_cv_exeext" = no && ac_cv_exeext=
3817
3818 else
3819 ac_file=''
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3822 $as_echo "$ac_file" >&6; }
3823 if test -z "$ac_file"; then :
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 { as_fn_set_status 77
3830 as_fn_error "C compiler cannot create executables
3831 See \`config.log' for more details." "$LINENO" 5; }; }
3832 fi
3833 ac_exeext=$ac_cv_exeext
3834
3835 # Check that the compiler produces executables we can run. If not, either
3836 # the compiler is broken, or we cross compile.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3838 $as_echo_n "checking whether the C compiler works... " >&6; }
3839 # If not cross compiling, check that we can run a simple program.
3840 if test "$cross_compiling" != yes; then
3841 if { ac_try='./$ac_file'
3842 { { case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_try") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; }; then
3852 cross_compiling=no
3853 else
3854 if test "$cross_compiling" = maybe; then
3855 cross_compiling=yes
3856 else
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot run C compiled programs.
3860 If you meant to cross compile, use \`--host'.
3861 See \`config.log' for more details." "$LINENO" 5; }
3862 fi
3863 fi
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866 $as_echo "yes" >&6; }
3867
3868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3869 ac_clean_files=$ac_clean_files_save
3870 # Check that the compiler produces executables we can run. If not, either
3871 # the compiler is broken, or we cross compile.
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3873 $as_echo_n "checking whether we are cross compiling... " >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3875 $as_echo "$cross_compiling" >&6; }
3876
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3878 $as_echo_n "checking for suffix of executables... " >&6; }
3879 if { { ac_try="$ac_link"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_link") 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; then :
3890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3892 # work properly (i.e., refer to `conftest.exe'), while it won't with
3893 # `rm'.
3894 for ac_file in conftest.exe conftest conftest.*; do
3895 test -f "$ac_file" || continue
3896 case $ac_file in
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3899 break;;
3900 * ) break;;
3901 esac
3902 done
3903 else
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error "cannot compute suffix of executables: cannot compile and link
3907 See \`config.log' for more details." "$LINENO" 5; }
3908 fi
3909 rm -f conftest$ac_cv_exeext
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3911 $as_echo "$ac_cv_exeext" >&6; }
3912
3913 rm -f conftest.$ac_ext
3914 EXEEXT=$ac_cv_exeext
3915 ac_exeext=$EXEEXT
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3917 $as_echo_n "checking for suffix of object files... " >&6; }
3918 if test "${ac_cv_objext+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.o conftest.obj
3933 if { { ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compile") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
3944 for ac_file in conftest.o conftest.obj conftest.*; do
3945 test -f "$ac_file" || continue;
3946 case $ac_file in
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3949 break;;
3950 esac
3951 done
3952 else
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error "cannot compute suffix of object files: cannot compile
3959 See \`config.log' for more details." "$LINENO" 5; }
3960 fi
3961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964 $as_echo "$ac_cv_objext" >&6; }
3965 OBJEXT=$ac_cv_objext
3966 ac_objext=$OBJEXT
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978 #ifndef __GNUC__
3979 choke me
3980 #endif
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_compiler_gnu=yes
3988 else
3989 ac_compiler_gnu=no
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997 if test $ac_compiler_gnu = yes; then
3998 GCC=yes
3999 else
4000 GCC=
4001 fi
4002 ac_test_CFLAGS=${CFLAGS+set}
4003 ac_save_CFLAGS=$CFLAGS
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4006 if test "${ac_cv_prog_cc_g+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_save_c_werror_flag=$ac_c_werror_flag
4010 ac_c_werror_flag=yes
4011 ac_cv_prog_cc_g=no
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4026 else
4027 CFLAGS=""
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040
4041 else
4042 ac_c_werror_flag=$ac_save_c_werror_flag
4043 CFLAGS="-g"
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main ()
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_g=yes
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066 $as_echo "$ac_cv_prog_cc_g" >&6; }
4067 if test "$ac_test_CFLAGS" = set; then
4068 CFLAGS=$ac_save_CFLAGS
4069 elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4071 CFLAGS="-g -O2"
4072 else
4073 CFLAGS="-g"
4074 fi
4075 else
4076 if test "$GCC" = yes; then
4077 CFLAGS="-O2"
4078 else
4079 CFLAGS=
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_cv_prog_cc_c89=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #include <stdarg.h>
4092 #include <stdio.h>
4093 #include <sys/types.h>
4094 #include <sys/stat.h>
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099 char **p;
4100 int i;
4101 {
4102 return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 DEPDIR="${am__leading_dot}deps"
4179
4180 ac_config_commands="$ac_config_commands depfiles"
4181
4182
4183 am_make=${MAKE-make}
4184 cat > confinc << 'END'
4185 am__doit:
4186 @echo this is the am__doit target
4187 .PHONY: am__doit
4188 END
4189 # If we don't find an include directive, just comment out the code.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4191 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4192 am__include="#"
4193 am__quote=
4194 _am_result=none
4195 # First try GNU make style include.
4196 echo "include confinc" > confmf
4197 # Ignore all kinds of additional output from `make'.
4198 case `$am_make -s -f confmf 2> /dev/null` in #(
4199 *the\ am__doit\ target*)
4200 am__include=include
4201 am__quote=
4202 _am_result=GNU
4203 ;;
4204 esac
4205 # Now try BSD make style include.
4206 if test "$am__include" = "#"; then
4207 echo '.include "confinc"' > confmf
4208 case `$am_make -s -f confmf 2> /dev/null` in #(
4209 *the\ am__doit\ target*)
4210 am__include=.include
4211 am__quote="\""
4212 _am_result=BSD
4213 ;;
4214 esac
4215 fi
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4219 $as_echo "$_am_result" >&6; }
4220 rm -f confinc confmf
4221
4222 # Check whether --enable-dependency-tracking was given.
4223 if test "${enable_dependency_tracking+set}" = set; then :
4224 enableval=$enable_dependency_tracking;
4225 fi
4226
4227 if test "x$enable_dependency_tracking" != xno; then
4228 am_depcomp="$ac_aux_dir/depcomp"
4229 AMDEPBACKSLASH='\'
4230 am__nodep='_no'
4231 fi
4232 if test "x$enable_dependency_tracking" != xno; then
4233 AMDEP_TRUE=
4234 AMDEP_FALSE='#'
4235 else
4236 AMDEP_TRUE='#'
4237 AMDEP_FALSE=
4238 fi
4239
4240
4241
4242 depcc="$CC" am_compiler_list=
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4245 $as_echo_n "checking dependency style of $depcc... " >&6; }
4246 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250 # We make a subdir and do the tests there. Otherwise we can end up
4251 # making bogus files that we don't know about and never remove. For
4252 # instance it was reported that on HP-UX the gcc test will end up
4253 # making a dummy file named `D' -- because `-MD' means `put the output
4254 # in D'.
4255 rm -rf conftest.dir
4256 mkdir conftest.dir
4257 # Copy depcomp to subdir because otherwise we won't find it if we're
4258 # using a relative directory.
4259 cp "$am_depcomp" conftest.dir
4260 cd conftest.dir
4261 # We will build objects and dependencies in a subdirectory because
4262 # it helps to detect inapplicable dependency modes. For instance
4263 # both Tru64's cc and ICC support -MD to output dependencies as a
4264 # side effect of compilation, but ICC will put the dependencies in
4265 # the current directory while Tru64 will put them in the object
4266 # directory.
4267 mkdir sub
4268
4269 am_cv_CC_dependencies_compiler_type=none
4270 if test "$am_compiler_list" = ""; then
4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4272 fi
4273 am__universal=false
4274 case " $depcc " in #(
4275 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4276 esac
4277
4278 for depmode in $am_compiler_list; do
4279 # Setup a source with many dependencies, because some compilers
4280 # like to wrap large dependency lists on column 80 (with \), and
4281 # we should not choose a depcomp mode which is confused by this.
4282 #
4283 # We need to recreate these files for each test, as the compiler may
4284 # overwrite some of them when testing with obscure command lines.
4285 # This happens at least with the AIX C compiler.
4286 : > sub/conftest.c
4287 for i in 1 2 3 4 5 6; do
4288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4290 # Solaris 8's {/usr,}/bin/sh.
4291 touch sub/conftst$i.h
4292 done
4293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4294
4295 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4296 # mode. It turns out that the SunPro C++ compiler does not properly
4297 # handle `-M -o', and we need to detect this. Also, some Intel
4298 # versions had trouble with output in subdirs
4299 am__obj=sub/conftest.${OBJEXT-o}
4300 am__minus_obj="-o $am__obj"
4301 case $depmode in
4302 gcc)
4303 # This depmode causes a compiler race in universal mode.
4304 test "$am__universal" = false || continue
4305 ;;
4306 nosideeffect)
4307 # after this tag, mechanisms are not by side-effect, so they'll
4308 # only be used when explicitly requested
4309 if test "x$enable_dependency_tracking" = xyes; then
4310 continue
4311 else
4312 break
4313 fi
4314 ;;
4315 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4316 # This compiler won't grok `-c -o', but also, the minuso test has
4317 # not run yet. These depmodes are late enough in the game, and
4318 # so weak that their functioning should not be impacted.
4319 am__obj=conftest.${OBJEXT-o}
4320 am__minus_obj=
4321 ;;
4322 none) break ;;
4323 esac
4324 if depmode=$depmode \
4325 source=sub/conftest.c object=$am__obj \
4326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4327 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4328 >/dev/null 2>conftest.err &&
4329 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4330 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4331 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4332 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4333 # icc doesn't choke on unknown options, it will just issue warnings
4334 # or remarks (even with -Werror). So we grep stderr for any message
4335 # that says an option was ignored or not supported.
4336 # When given -MP, icc 7.0 and 7.1 complain thusly:
4337 # icc: Command line warning: ignoring option '-M'; no argument required
4338 # The diagnosis changed in icc 8.0:
4339 # icc: Command line remark: option '-MP' not supported
4340 if (grep 'ignoring option' conftest.err ||
4341 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4342 am_cv_CC_dependencies_compiler_type=$depmode
4343 break
4344 fi
4345 fi
4346 done
4347
4348 cd ..
4349 rm -rf conftest.dir
4350 else
4351 am_cv_CC_dependencies_compiler_type=none
4352 fi
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4356 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4357 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4358
4359 if
4360 test "x$enable_dependency_tracking" != xno \
4361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4362 am__fastdepCC_TRUE=
4363 am__fastdepCC_FALSE='#'
4364 else
4365 am__fastdepCC_TRUE='#'
4366 am__fastdepCC_FALSE=
4367 fi
4368
4369
4370 ac_ext=cpp
4371 ac_cpp='$CXXCPP $CPPFLAGS'
4372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4375 if test -z "$CXX"; then
4376 if test -n "$CCC"; then
4377 CXX=$CCC
4378 else
4379 if test -n "$ac_tool_prefix"; then
4380 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4381 do
4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_CXX+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$CXX"; then
4390 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 CXX=$ac_cv_prog_CXX
4410 if test -n "$CXX"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4412 $as_echo "$CXX" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 test -n "$CXX" && break
4420 done
4421 fi
4422 if test -z "$CXX"; then
4423 ac_ct_CXX=$CXX
4424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4425 do
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$ac_ct_CXX"; then
4434 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_ac_ct_CXX="$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4454 if test -n "$ac_ct_CXX"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4456 $as_echo "$ac_ct_CXX" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463 test -n "$ac_ct_CXX" && break
4464 done
4465
4466 if test "x$ac_ct_CXX" = x; then
4467 CXX="g++"
4468 else
4469 case $cross_compiling:$ac_tool_warned in
4470 yes:)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4473 ac_tool_warned=yes ;;
4474 esac
4475 CXX=$ac_ct_CXX
4476 fi
4477 fi
4478
4479 fi
4480 fi
4481 # Provide some information about the compiler.
4482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4483 set X $ac_compile
4484 ac_compiler=$2
4485 for ac_option in --version -v -V -qversion; do
4486 { { ac_try="$ac_compiler $ac_option >&5"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4494 ac_status=$?
4495 if test -s conftest.err; then
4496 sed '10a\
4497 ... rest of stderr output deleted ...
4498 10q' conftest.err >conftest.er1
4499 cat conftest.er1 >&5
4500 rm -f conftest.er1 conftest.err
4501 fi
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }
4504 done
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4507 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4508 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513
4514 int
4515 main ()
4516 {
4517 #ifndef __GNUC__
4518 choke me
4519 #endif
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_cxx_try_compile "$LINENO"; then :
4526 ac_compiler_gnu=yes
4527 else
4528 ac_compiler_gnu=no
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4532
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4535 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4536 if test $ac_compiler_gnu = yes; then
4537 GXX=yes
4538 else
4539 GXX=
4540 fi
4541 ac_test_CXXFLAGS=${CXXFLAGS+set}
4542 ac_save_CXXFLAGS=$CXXFLAGS
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4544 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4545 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4549 ac_cxx_werror_flag=yes
4550 ac_cv_prog_cxx_g=no
4551 CXXFLAGS="-g"
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554
4555 int
4556 main ()
4557 {
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_cxx_try_compile "$LINENO"; then :
4564 ac_cv_prog_cxx_g=yes
4565 else
4566 CXXFLAGS=""
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_cxx_try_compile "$LINENO"; then :
4579
4580 else
4581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4582 CXXFLAGS="-g"
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585
4586 int
4587 main ()
4588 {
4589
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4595 ac_cv_prog_cxx_g=yes
4596 fi
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4605 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4606 if test "$ac_test_CXXFLAGS" = set; then
4607 CXXFLAGS=$ac_save_CXXFLAGS
4608 elif test $ac_cv_prog_cxx_g = yes; then
4609 if test "$GXX" = yes; then
4610 CXXFLAGS="-g -O2"
4611 else
4612 CXXFLAGS="-g"
4613 fi
4614 else
4615 if test "$GXX" = yes; then
4616 CXXFLAGS="-O2"
4617 else
4618 CXXFLAGS=
4619 fi
4620 fi
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627 depcc="$CXX" am_compiler_list=
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4630 $as_echo_n "checking dependency style of $depcc... " >&6; }
4631 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4635 # We make a subdir and do the tests there. Otherwise we can end up
4636 # making bogus files that we don't know about and never remove. For
4637 # instance it was reported that on HP-UX the gcc test will end up
4638 # making a dummy file named `D' -- because `-MD' means `put the output
4639 # in D'.
4640 rm -rf conftest.dir
4641 mkdir conftest.dir
4642 # Copy depcomp to subdir because otherwise we won't find it if we're
4643 # using a relative directory.
4644 cp "$am_depcomp" conftest.dir
4645 cd conftest.dir
4646 # We will build objects and dependencies in a subdirectory because
4647 # it helps to detect inapplicable dependency modes. For instance
4648 # both Tru64's cc and ICC support -MD to output dependencies as a
4649 # side effect of compilation, but ICC will put the dependencies in
4650 # the current directory while Tru64 will put them in the object
4651 # directory.
4652 mkdir sub
4653
4654 am_cv_CXX_dependencies_compiler_type=none
4655 if test "$am_compiler_list" = ""; then
4656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4657 fi
4658 am__universal=false
4659 case " $depcc " in #(
4660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4661 esac
4662
4663 for depmode in $am_compiler_list; do
4664 # Setup a source with many dependencies, because some compilers
4665 # like to wrap large dependency lists on column 80 (with \), and
4666 # we should not choose a depcomp mode which is confused by this.
4667 #
4668 # We need to recreate these files for each test, as the compiler may
4669 # overwrite some of them when testing with obscure command lines.
4670 # This happens at least with the AIX C compiler.
4671 : > sub/conftest.c
4672 for i in 1 2 3 4 5 6; do
4673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4675 # Solaris 8's {/usr,}/bin/sh.
4676 touch sub/conftst$i.h
4677 done
4678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4679
4680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4681 # mode. It turns out that the SunPro C++ compiler does not properly
4682 # handle `-M -o', and we need to detect this. Also, some Intel
4683 # versions had trouble with output in subdirs
4684 am__obj=sub/conftest.${OBJEXT-o}
4685 am__minus_obj="-o $am__obj"
4686 case $depmode in
4687 gcc)
4688 # This depmode causes a compiler race in universal mode.
4689 test "$am__universal" = false || continue
4690 ;;
4691 nosideeffect)
4692 # after this tag, mechanisms are not by side-effect, so they'll
4693 # only be used when explicitly requested
4694 if test "x$enable_dependency_tracking" = xyes; then
4695 continue
4696 else
4697 break
4698 fi
4699 ;;
4700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4701 # This compiler won't grok `-c -o', but also, the minuso test has
4702 # not run yet. These depmodes are late enough in the game, and
4703 # so weak that their functioning should not be impacted.
4704 am__obj=conftest.${OBJEXT-o}
4705 am__minus_obj=
4706 ;;
4707 none) break ;;
4708 esac
4709 if depmode=$depmode \
4710 source=sub/conftest.c object=$am__obj \
4711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4713 >/dev/null 2>conftest.err &&
4714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4718 # icc doesn't choke on unknown options, it will just issue warnings
4719 # or remarks (even with -Werror). So we grep stderr for any message
4720 # that says an option was ignored or not supported.
4721 # When given -MP, icc 7.0 and 7.1 complain thusly:
4722 # icc: Command line warning: ignoring option '-M'; no argument required
4723 # The diagnosis changed in icc 8.0:
4724 # icc: Command line remark: option '-MP' not supported
4725 if (grep 'ignoring option' conftest.err ||
4726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4727 am_cv_CXX_dependencies_compiler_type=$depmode
4728 break
4729 fi
4730 fi
4731 done
4732
4733 cd ..
4734 rm -rf conftest.dir
4735 else
4736 am_cv_CXX_dependencies_compiler_type=none
4737 fi
4738
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4741 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4742 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4743
4744 if
4745 test "x$enable_dependency_tracking" != xno \
4746 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4747 am__fastdepCXX_TRUE=
4748 am__fastdepCXX_FALSE='#'
4749 else
4750 am__fastdepCXX_TRUE='#'
4751 am__fastdepCXX_FALSE=
4752 fi
4753
4754
4755 # By default we simply use the C compiler to build assembly code.
4756
4757 test "${CCAS+set}" = set || CCAS=$CC
4758 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4759
4760
4761
4762 depcc="$CCAS" am_compiler_list=
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4765 $as_echo_n "checking dependency style of $depcc... " >&6; }
4766 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4770 # We make a subdir and do the tests there. Otherwise we can end up
4771 # making bogus files that we don't know about and never remove. For
4772 # instance it was reported that on HP-UX the gcc test will end up
4773 # making a dummy file named `D' -- because `-MD' means `put the output
4774 # in D'.
4775 rm -rf conftest.dir
4776 mkdir conftest.dir
4777 # Copy depcomp to subdir because otherwise we won't find it if we're
4778 # using a relative directory.
4779 cp "$am_depcomp" conftest.dir
4780 cd conftest.dir
4781 # We will build objects and dependencies in a subdirectory because
4782 # it helps to detect inapplicable dependency modes. For instance
4783 # both Tru64's cc and ICC support -MD to output dependencies as a
4784 # side effect of compilation, but ICC will put the dependencies in
4785 # the current directory while Tru64 will put them in the object
4786 # directory.
4787 mkdir sub
4788
4789 am_cv_CCAS_dependencies_compiler_type=none
4790 if test "$am_compiler_list" = ""; then
4791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4792 fi
4793 am__universal=false
4794
4795
4796 for depmode in $am_compiler_list; do
4797 # Setup a source with many dependencies, because some compilers
4798 # like to wrap large dependency lists on column 80 (with \), and
4799 # we should not choose a depcomp mode which is confused by this.
4800 #
4801 # We need to recreate these files for each test, as the compiler may
4802 # overwrite some of them when testing with obscure command lines.
4803 # This happens at least with the AIX C compiler.
4804 : > sub/conftest.c
4805 for i in 1 2 3 4 5 6; do
4806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4807 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4808 # Solaris 8's {/usr,}/bin/sh.
4809 touch sub/conftst$i.h
4810 done
4811 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4812
4813 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4814 # mode. It turns out that the SunPro C++ compiler does not properly
4815 # handle `-M -o', and we need to detect this. Also, some Intel
4816 # versions had trouble with output in subdirs
4817 am__obj=sub/conftest.${OBJEXT-o}
4818 am__minus_obj="-o $am__obj"
4819 case $depmode in
4820 gcc)
4821 # This depmode causes a compiler race in universal mode.
4822 test "$am__universal" = false || continue
4823 ;;
4824 nosideeffect)
4825 # after this tag, mechanisms are not by side-effect, so they'll
4826 # only be used when explicitly requested
4827 if test "x$enable_dependency_tracking" = xyes; then
4828 continue
4829 else
4830 break
4831 fi
4832 ;;
4833 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4834 # This compiler won't grok `-c -o', but also, the minuso test has
4835 # not run yet. These depmodes are late enough in the game, and
4836 # so weak that their functioning should not be impacted.
4837 am__obj=conftest.${OBJEXT-o}
4838 am__minus_obj=
4839 ;;
4840 none) break ;;
4841 esac
4842 if depmode=$depmode \
4843 source=sub/conftest.c object=$am__obj \
4844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4845 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4846 >/dev/null 2>conftest.err &&
4847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4849 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4851 # icc doesn't choke on unknown options, it will just issue warnings
4852 # or remarks (even with -Werror). So we grep stderr for any message
4853 # that says an option was ignored or not supported.
4854 # When given -MP, icc 7.0 and 7.1 complain thusly:
4855 # icc: Command line warning: ignoring option '-M'; no argument required
4856 # The diagnosis changed in icc 8.0:
4857 # icc: Command line remark: option '-MP' not supported
4858 if (grep 'ignoring option' conftest.err ||
4859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4860 am_cv_CCAS_dependencies_compiler_type=$depmode
4861 break
4862 fi
4863 fi
4864 done
4865
4866 cd ..
4867 rm -rf conftest.dir
4868 else
4869 am_cv_CCAS_dependencies_compiler_type=none
4870 fi
4871
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4874 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4875 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4876
4877 if
4878 test "x$enable_dependency_tracking" != xno \
4879 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4880 am__fastdepCCAS_TRUE=
4881 am__fastdepCCAS_FALSE='#'
4882 else
4883 am__fastdepCCAS_TRUE='#'
4884 am__fastdepCCAS_FALSE=
4885 fi
4886
4887
4888
4889
4890
4891
4892 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4893 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4894 # in both places for now and restore CFLAGS at the end of config.
4895 save_CFLAGS="$CFLAGS"
4896
4897 # Find other programs we need.
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4900 set dummy ${ac_tool_prefix}ar; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_AR+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$AR"; then
4907 ac_cv_prog_AR="$AR" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_AR="${ac_tool_prefix}ar"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 AR=$ac_cv_prog_AR
4927 if test -n "$AR"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4929 $as_echo "$AR" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934
4935
4936 fi
4937 if test -z "$ac_cv_prog_AR"; then
4938 ac_ct_AR=$AR
4939 # Extract the first word of "ar", so it can be a program name with args.
4940 set dummy ar; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$ac_ct_AR"; then
4947 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_ac_ct_AR="ar"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4967 if test -n "$ac_ct_AR"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4969 $as_echo "$ac_ct_AR" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975 if test "x$ac_ct_AR" = x; then
4976 AR=""
4977 else
4978 case $cross_compiling:$ac_tool_warned in
4979 yes:)
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4982 ac_tool_warned=yes ;;
4983 esac
4984 AR=$ac_ct_AR
4985 fi
4986 else
4987 AR="$ac_cv_prog_AR"
4988 fi
4989
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}nm; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_NM+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$NM"; then
4999 ac_cv_prog_NM="$NM" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_NM="${ac_tool_prefix}nm"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 NM=$ac_cv_prog_NM
5019 if test -n "$NM"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5021 $as_echo "$NM" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_NM"; then
5030 ac_ct_NM=$NM
5031 # Extract the first word of "nm", so it can be a program name with args.
5032 set dummy nm; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_NM"; then
5039 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_NM="nm"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5059 if test -n "$ac_ct_NM"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5061 $as_echo "$ac_ct_NM" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067 if test "x$ac_ct_NM" = x; then
5068 NM=""
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 NM=$ac_ct_NM
5077 fi
5078 else
5079 NM="$ac_cv_prog_NM"
5080 fi
5081
5082 if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$RANLIB"; then
5091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 RANLIB=$ac_cv_prog_RANLIB
5111 if test -n "$RANLIB"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5113 $as_echo "$RANLIB" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 fi
5121 if test -z "$ac_cv_prog_RANLIB"; then
5122 ac_ct_RANLIB=$RANLIB
5123 # Extract the first word of "ranlib", so it can be a program name with args.
5124 set dummy ranlib; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$ac_ct_RANLIB"; then
5131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_ac_ct_RANLIB="ranlib"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5151 if test -n "$ac_ct_RANLIB"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5153 $as_echo "$ac_ct_RANLIB" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159 if test "x$ac_ct_RANLIB" = x; then
5160 RANLIB="ranlib-not-found-in-path-error"
5161 else
5162 case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166 ac_tool_warned=yes ;;
5167 esac
5168 RANLIB=$ac_ct_RANLIB
5169 fi
5170 else
5171 RANLIB="$ac_cv_prog_RANLIB"
5172 fi
5173
5174 # Extract the first word of "perl", so it can be a program name with args.
5175 set dummy perl; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_PERL+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 case $PERL in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5184 ;;
5185 *)
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5202 ;;
5203 esac
5204 fi
5205 PERL=$ac_cv_path_PERL
5206 if test -n "$PERL"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5208 $as_echo "$PERL" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5217 set x ${MAKE-make}
5218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 cat >conftest.make <<\_ACEOF
5223 SHELL = /bin/sh
5224 all:
5225 @echo '@@@%%%=$(MAKE)=@@@%%%'
5226 _ACEOF
5227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5229 *@@@%%%=?*=@@@%%%*)
5230 eval ac_cv_prog_make_${ac_make}_set=yes;;
5231 *)
5232 eval ac_cv_prog_make_${ac_make}_set=no;;
5233 esac
5234 rm -f conftest.make
5235 fi
5236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238 $as_echo "yes" >&6; }
5239 SET_MAKE=
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 SET_MAKE="MAKE=${MAKE-make}"
5244 fi
5245
5246
5247
5248 # See if makeinfo has been installed and is modern enough
5249 # that we can use it.
5250
5251 # Extract the first word of "makeinfo", so it can be a program name with args.
5252 set dummy makeinfo; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$MAKEINFO"; then
5259 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_MAKEINFO="makeinfo"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 MAKEINFO=$ac_cv_prog_MAKEINFO
5279 if test -n "$MAKEINFO"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5281 $as_echo "$MAKEINFO" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288 if test -n "$MAKEINFO"; then
5289 # Found it, now check the version.
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5291 $as_echo_n "checking for modern makeinfo... " >&6; }
5292 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5296 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5297
5298 case $ac_prog_version in
5299 '') gcc_cv_prog_makeinfo_modern=no;;
5300 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5301 *) gcc_cv_prog_makeinfo_modern=no;;
5302 esac
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5306 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5307 else
5308 gcc_cv_prog_makeinfo_modern=no
5309 fi
5310 if test $gcc_cv_prog_makeinfo_modern = no; then
5311 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5312 fi
5313
5314 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5315 BUILD_INFO_TRUE=
5316 BUILD_INFO_FALSE='#'
5317 else
5318 BUILD_INFO_TRUE='#'
5319 BUILD_INFO_FALSE=
5320 fi
5321
5322
5323
5324 # Configure libtool
5325 case `pwd` in
5326 *\ * | *\ *)
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5328 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5329 esac
5330
5331
5332
5333 macro_version='2.2.7a'
5334 macro_revision='1.3134'
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 ltmain="$ac_aux_dir/ltmain.sh"
5349
5350 # Backslashify metacharacters that are still active within
5351 # double-quoted strings.
5352 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5353
5354 # Same as above, but do not quote variable references.
5355 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5356
5357 # Sed substitution to delay expansion of an escaped shell variable in a
5358 # double_quote_subst'ed string.
5359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5360
5361 # Sed substitution to delay expansion of an escaped single quote.
5362 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5363
5364 # Sed substitution to avoid accidental globbing in evaled expressions
5365 no_glob_subst='s/\*/\\\*/g'
5366
5367 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5368 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5372 $as_echo_n "checking how to print strings... " >&6; }
5373 # Test print first, because it will be a builtin if present.
5374 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5375 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5376 ECHO='print -r --'
5377 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5378 ECHO='printf %s\n'
5379 else
5380 # Use this function as a fallback that always works.
5381 func_fallback_echo ()
5382 {
5383 eval 'cat <<_LTECHO_EOF
5384 $1
5385 _LTECHO_EOF'
5386 }
5387 ECHO='func_fallback_echo'
5388 fi
5389
5390 # func_echo_all arg...
5391 # Invoke $ECHO with all args, space-separated.
5392 func_echo_all ()
5393 {
5394 $ECHO ""
5395 }
5396
5397 case "$ECHO" in
5398 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5399 $as_echo "printf" >&6; } ;;
5400 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5401 $as_echo "print -r" >&6; } ;;
5402 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5403 $as_echo "cat" >&6; } ;;
5404 esac
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5420 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5421 if test "${ac_cv_path_SED+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5425 for ac_i in 1 2 3 4 5 6 7; do
5426 ac_script="$ac_script$as_nl$ac_script"
5427 done
5428 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5429 { ac_script=; unset ac_script;}
5430 if test -z "$SED"; then
5431 ac_path_SED_found=false
5432 # Loop through the user's path and test for each of PROGNAME-LIST
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_prog in sed gsed; do
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5441 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5442 # Check for GNU ac_path_SED and select it if it is found.
5443 # Check for GNU $ac_path_SED
5444 case `"$ac_path_SED" --version 2>&1` in
5445 *GNU*)
5446 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5447 *)
5448 ac_count=0
5449 $as_echo_n 0123456789 >"conftest.in"
5450 while :
5451 do
5452 cat "conftest.in" "conftest.in" >"conftest.tmp"
5453 mv "conftest.tmp" "conftest.in"
5454 cp "conftest.in" "conftest.nl"
5455 $as_echo '' >> "conftest.nl"
5456 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5458 as_fn_arith $ac_count + 1 && ac_count=$as_val
5459 if test $ac_count -gt ${ac_path_SED_max-0}; then
5460 # Best one so far, save it but keep looking for a better one
5461 ac_cv_path_SED="$ac_path_SED"
5462 ac_path_SED_max=$ac_count
5463 fi
5464 # 10*(2^10) chars as input seems more than enough
5465 test $ac_count -gt 10 && break
5466 done
5467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5468 esac
5469
5470 $ac_path_SED_found && break 3
5471 done
5472 done
5473 done
5474 IFS=$as_save_IFS
5475 if test -z "$ac_cv_path_SED"; then
5476 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5477 fi
5478 else
5479 ac_cv_path_SED=$SED
5480 fi
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5484 $as_echo "$ac_cv_path_SED" >&6; }
5485 SED="$ac_cv_path_SED"
5486 rm -f conftest.sed
5487
5488 test -z "$SED" && SED=sed
5489 Xsed="$SED -e 1s/^X//"
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5503 if test "${ac_cv_path_GREP+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -z "$GREP"; then
5507 ac_path_GREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in grep ggrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5518 # Check for GNU ac_path_GREP and select it if it is found.
5519 # Check for GNU $ac_path_GREP
5520 case `"$ac_path_GREP" --version 2>&1` in
5521 *GNU*)
5522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5523 *)
5524 ac_count=0
5525 $as_echo_n 0123456789 >"conftest.in"
5526 while :
5527 do
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'GREP' >> "conftest.nl"
5532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_GREP="$ac_path_GREP"
5538 ac_path_GREP_max=$ac_count
5539 fi
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5542 done
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544 esac
5545
5546 $ac_path_GREP_found && break 3
5547 done
5548 done
5549 done
5550 IFS=$as_save_IFS
5551 if test -z "$ac_cv_path_GREP"; then
5552 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5553 fi
5554 else
5555 ac_cv_path_GREP=$GREP
5556 fi
5557
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5560 $as_echo "$ac_cv_path_GREP" >&6; }
5561 GREP="$ac_cv_path_GREP"
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5565 $as_echo_n "checking for egrep... " >&6; }
5566 if test "${ac_cv_path_EGREP+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5570 then ac_cv_path_EGREP="$GREP -E"
5571 else
5572 if test -z "$EGREP"; then
5573 ac_path_EGREP_found=false
5574 # Loop through the user's path and test for each of PROGNAME-LIST
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_prog in egrep; do
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5583 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5584 # Check for GNU ac_path_EGREP and select it if it is found.
5585 # Check for GNU $ac_path_EGREP
5586 case `"$ac_path_EGREP" --version 2>&1` in
5587 *GNU*)
5588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5589 *)
5590 ac_count=0
5591 $as_echo_n 0123456789 >"conftest.in"
5592 while :
5593 do
5594 cat "conftest.in" "conftest.in" >"conftest.tmp"
5595 mv "conftest.tmp" "conftest.in"
5596 cp "conftest.in" "conftest.nl"
5597 $as_echo 'EGREP' >> "conftest.nl"
5598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5600 as_fn_arith $ac_count + 1 && ac_count=$as_val
5601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5602 # Best one so far, save it but keep looking for a better one
5603 ac_cv_path_EGREP="$ac_path_EGREP"
5604 ac_path_EGREP_max=$ac_count
5605 fi
5606 # 10*(2^10) chars as input seems more than enough
5607 test $ac_count -gt 10 && break
5608 done
5609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5610 esac
5611
5612 $ac_path_EGREP_found && break 3
5613 done
5614 done
5615 done
5616 IFS=$as_save_IFS
5617 if test -z "$ac_cv_path_EGREP"; then
5618 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5619 fi
5620 else
5621 ac_cv_path_EGREP=$EGREP
5622 fi
5623
5624 fi
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5627 $as_echo "$ac_cv_path_EGREP" >&6; }
5628 EGREP="$ac_cv_path_EGREP"
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5632 $as_echo_n "checking for fgrep... " >&6; }
5633 if test "${ac_cv_path_FGREP+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5637 then ac_cv_path_FGREP="$GREP -F"
5638 else
5639 if test -z "$FGREP"; then
5640 ac_path_FGREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in fgrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5650 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5651 # Check for GNU ac_path_FGREP and select it if it is found.
5652 # Check for GNU $ac_path_FGREP
5653 case `"$ac_path_FGREP" --version 2>&1` in
5654 *GNU*)
5655 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5656 *)
5657 ac_count=0
5658 $as_echo_n 0123456789 >"conftest.in"
5659 while :
5660 do
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'FGREP' >> "conftest.nl"
5665 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_FGREP="$ac_path_FGREP"
5671 ac_path_FGREP_max=$ac_count
5672 fi
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5675 done
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5677 esac
5678
5679 $ac_path_FGREP_found && break 3
5680 done
5681 done
5682 done
5683 IFS=$as_save_IFS
5684 if test -z "$ac_cv_path_FGREP"; then
5685 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5686 fi
5687 else
5688 ac_cv_path_FGREP=$FGREP
5689 fi
5690
5691 fi
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5694 $as_echo "$ac_cv_path_FGREP" >&6; }
5695 FGREP="$ac_cv_path_FGREP"
5696
5697
5698 test -z "$GREP" && GREP=grep
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 # Check whether --with-gnu-ld was given.
5719 if test "${with_gnu_ld+set}" = set; then :
5720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5721 else
5722 with_gnu_ld=no
5723 fi
5724
5725 ac_prog=ld
5726 if test "$GCC" = yes; then
5727 # Check if gcc -print-prog-name=ld gives a path.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5729 $as_echo_n "checking for ld used by $CC... " >&6; }
5730 case $host in
5731 *-*-mingw*)
5732 # gcc leaves a trailing carriage return which upsets mingw
5733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5734 *)
5735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5736 esac
5737 case $ac_prog in
5738 # Accept absolute paths.
5739 [\\/]* | ?:[\\/]*)
5740 re_direlt='/[^/][^/]*/\.\./'
5741 # Canonicalize the pathname of ld
5742 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5743 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5744 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5745 done
5746 test -z "$LD" && LD="$ac_prog"
5747 ;;
5748 "")
5749 # If it fails, then pretend we aren't using GCC.
5750 ac_prog=ld
5751 ;;
5752 *)
5753 # If it is relative, then search for the first ld in PATH.
5754 with_gnu_ld=unknown
5755 ;;
5756 esac
5757 elif test "$with_gnu_ld" = yes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5759 $as_echo_n "checking for GNU ld... " >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5762 $as_echo_n "checking for non-GNU ld... " >&6; }
5763 fi
5764 if test "${lt_cv_path_LD+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -z "$LD"; then
5768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5769 for ac_dir in $PATH; do
5770 IFS="$lt_save_ifs"
5771 test -z "$ac_dir" && ac_dir=.
5772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5773 lt_cv_path_LD="$ac_dir/$ac_prog"
5774 # Check to see if the program is GNU ld. I'd rather use --version,
5775 # but apparently some variants of GNU ld only accept -v.
5776 # Break only if it was the GNU/non-GNU ld that we prefer.
5777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5778 *GNU* | *'with BFD'*)
5779 test "$with_gnu_ld" != no && break
5780 ;;
5781 *)
5782 test "$with_gnu_ld" != yes && break
5783 ;;
5784 esac
5785 fi
5786 done
5787 IFS="$lt_save_ifs"
5788 else
5789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5790 fi
5791 fi
5792
5793 LD="$lt_cv_path_LD"
5794 if test -n "$LD"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5796 $as_echo "$LD" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5804 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5808 case `$LD -v 2>&1 </dev/null` in
5809 *GNU* | *'with BFD'*)
5810 lt_cv_prog_gnu_ld=yes
5811 ;;
5812 *)
5813 lt_cv_prog_gnu_ld=no
5814 ;;
5815 esac
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5818 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5819 with_gnu_ld=$lt_cv_prog_gnu_ld
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5830 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5831 if test "${lt_cv_path_NM+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$NM"; then
5835 # Let the user override the test.
5836 lt_cv_path_NM="$NM"
5837 else
5838 lt_nm_to_check="${ac_tool_prefix}nm"
5839 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5840 lt_nm_to_check="$lt_nm_to_check nm"
5841 fi
5842 for lt_tmp_nm in $lt_nm_to_check; do
5843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5844 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5845 IFS="$lt_save_ifs"
5846 test -z "$ac_dir" && ac_dir=.
5847 tmp_nm="$ac_dir/$lt_tmp_nm"
5848 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5849 # Check to see if the nm accepts a BSD-compat flag.
5850 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5851 # nm: unknown option "B" ignored
5852 # Tru64's nm complains that /dev/null is an invalid object file
5853 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5854 */dev/null* | *'Invalid file or object type'*)
5855 lt_cv_path_NM="$tmp_nm -B"
5856 break
5857 ;;
5858 *)
5859 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5860 */dev/null*)
5861 lt_cv_path_NM="$tmp_nm -p"
5862 break
5863 ;;
5864 *)
5865 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5866 continue # so that we can try to find one that supports BSD flags
5867 ;;
5868 esac
5869 ;;
5870 esac
5871 fi
5872 done
5873 IFS="$lt_save_ifs"
5874 done
5875 : ${lt_cv_path_NM=no}
5876 fi
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5879 $as_echo "$lt_cv_path_NM" >&6; }
5880 if test "$lt_cv_path_NM" != "no"; then
5881 NM="$lt_cv_path_NM"
5882 else
5883 # Didn't find any BSD compatible name lister, look for dumpbin.
5884 if test -n "$DUMPBIN"; then :
5885 # Let the user override the test.
5886 else
5887 if test -n "$ac_tool_prefix"; then
5888 for ac_prog in dumpbin "link -dump"
5889 do
5890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$DUMPBIN"; then
5898 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 DUMPBIN=$ac_cv_prog_DUMPBIN
5918 if test -n "$DUMPBIN"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5920 $as_echo "$DUMPBIN" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 test -n "$DUMPBIN" && break
5928 done
5929 fi
5930 if test -z "$DUMPBIN"; then
5931 ac_ct_DUMPBIN=$DUMPBIN
5932 for ac_prog in dumpbin "link -dump"
5933 do
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy $ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_DUMPBIN"; then
5942 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5962 if test -n "$ac_ct_DUMPBIN"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5964 $as_echo "$ac_ct_DUMPBIN" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971 test -n "$ac_ct_DUMPBIN" && break
5972 done
5973
5974 if test "x$ac_ct_DUMPBIN" = x; then
5975 DUMPBIN=":"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 DUMPBIN=$ac_ct_DUMPBIN
5984 fi
5985 fi
5986
5987 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5988 *COFF*)
5989 DUMPBIN="$DUMPBIN -symbols"
5990 ;;
5991 *)
5992 DUMPBIN=:
5993 ;;
5994 esac
5995 fi
5996
5997 if test "$DUMPBIN" != ":"; then
5998 NM="$DUMPBIN"
5999 fi
6000 fi
6001 test -z "$NM" && NM=nm
6002
6003
6004
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6009 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6010 if test "${lt_cv_nm_interface+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 lt_cv_nm_interface="BSD nm"
6014 echo "int some_variable = 0;" > conftest.$ac_ext
6015 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6016 (eval "$ac_compile" 2>conftest.err)
6017 cat conftest.err >&5
6018 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6019 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6020 cat conftest.err >&5
6021 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6022 cat conftest.out >&5
6023 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6024 lt_cv_nm_interface="MS dumpbin"
6025 fi
6026 rm -f conftest*
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6029 $as_echo "$lt_cv_nm_interface" >&6; }
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6032 $as_echo_n "checking whether ln -s works... " >&6; }
6033 LN_S=$as_ln_s
6034 if test "$LN_S" = "ln -s"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036 $as_echo "yes" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6039 $as_echo "no, using $LN_S" >&6; }
6040 fi
6041
6042 # find the maximum length of command line arguments
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6044 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6045 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 i=0
6049 teststring="ABCD"
6050
6051 case $build_os in
6052 msdosdjgpp*)
6053 # On DJGPP, this test can blow up pretty badly due to problems in libc
6054 # (any single argument exceeding 2000 bytes causes a buffer overrun
6055 # during glob expansion). Even if it were fixed, the result of this
6056 # check would be larger than it should be.
6057 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6058 ;;
6059
6060 gnu*)
6061 # Under GNU Hurd, this test is not required because there is
6062 # no limit to the length of command line arguments.
6063 # Libtool will interpret -1 as no limit whatsoever
6064 lt_cv_sys_max_cmd_len=-1;
6065 ;;
6066
6067 cygwin* | mingw* | cegcc*)
6068 # On Win9x/ME, this test blows up -- it succeeds, but takes
6069 # about 5 minutes as the teststring grows exponentially.
6070 # Worse, since 9x/ME are not pre-emptively multitasking,
6071 # you end up with a "frozen" computer, even though with patience
6072 # the test eventually succeeds (with a max line length of 256k).
6073 # Instead, let's just punt: use the minimum linelength reported by
6074 # all of the supported platforms: 8192 (on NT/2K/XP).
6075 lt_cv_sys_max_cmd_len=8192;
6076 ;;
6077
6078 mint*)
6079 # On MiNT this can take a long time and run out of memory.
6080 lt_cv_sys_max_cmd_len=8192;
6081 ;;
6082
6083 amigaos*)
6084 # On AmigaOS with pdksh, this test takes hours, literally.
6085 # So we just punt and use a minimum line length of 8192.
6086 lt_cv_sys_max_cmd_len=8192;
6087 ;;
6088
6089 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6090 # This has been around since 386BSD, at least. Likely further.
6091 if test -x /sbin/sysctl; then
6092 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6093 elif test -x /usr/sbin/sysctl; then
6094 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6095 else
6096 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6097 fi
6098 # And add a safety zone
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6101 ;;
6102
6103 interix*)
6104 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6105 lt_cv_sys_max_cmd_len=196608
6106 ;;
6107
6108 osf*)
6109 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6110 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6111 # nice to cause kernel panics so lets avoid the loop below.
6112 # First set a reasonable default.
6113 lt_cv_sys_max_cmd_len=16384
6114 #
6115 if test -x /sbin/sysconfig; then
6116 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6117 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6118 esac
6119 fi
6120 ;;
6121 sco3.2v5*)
6122 lt_cv_sys_max_cmd_len=102400
6123 ;;
6124 sysv5* | sco5v6* | sysv4.2uw2*)
6125 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6126 if test -n "$kargmax"; then
6127 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6128 else
6129 lt_cv_sys_max_cmd_len=32768
6130 fi
6131 ;;
6132 *)
6133 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6134 if test -n "$lt_cv_sys_max_cmd_len"; then
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6137 else
6138 # Make teststring a little bigger before we do anything with it.
6139 # a 1K string should be a reasonable start.
6140 for i in 1 2 3 4 5 6 7 8 ; do
6141 teststring=$teststring$teststring
6142 done
6143 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6144 # If test is not a shell built-in, we'll probably end up computing a
6145 # maximum length that is only half of the actual maximum length, but
6146 # we can't tell.
6147 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6148 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6149 test $i != 17 # 1/2 MB should be enough
6150 do
6151 i=`expr $i + 1`
6152 teststring=$teststring$teststring
6153 done
6154 # Only check the string length outside the loop.
6155 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6156 teststring=
6157 # Add a significant safety factor because C++ compilers can tack on
6158 # massive amounts of additional arguments before passing them to the
6159 # linker. It appears as though 1/2 is a usable value.
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6161 fi
6162 ;;
6163 esac
6164
6165 fi
6166
6167 if test -n $lt_cv_sys_max_cmd_len ; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6169 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6172 $as_echo "none" >&6; }
6173 fi
6174 max_cmd_len=$lt_cv_sys_max_cmd_len
6175
6176
6177
6178
6179
6180
6181 : ${CP="cp -f"}
6182 : ${MV="mv -f"}
6183 : ${RM="rm -f"}
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6186 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6187 # Try some XSI features
6188 xsi_shell=no
6189 ( _lt_dummy="a/b/c"
6190 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6191 = c,a/b,, \
6192 && eval 'test $(( 1 + 1 )) -eq 2 \
6193 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6194 && xsi_shell=yes
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6196 $as_echo "$xsi_shell" >&6; }
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6200 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6201 lt_shell_append=no
6202 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6203 >/dev/null 2>&1 \
6204 && lt_shell_append=yes
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6206 $as_echo "$lt_shell_append" >&6; }
6207
6208
6209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6210 lt_unset=unset
6211 else
6212 lt_unset=false
6213 fi
6214
6215
6216
6217
6218
6219 # test EBCDIC or ASCII
6220 case `echo X|tr X '\101'` in
6221 A) # ASCII based system
6222 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6223 lt_SP2NL='tr \040 \012'
6224 lt_NL2SP='tr \015\012 \040\040'
6225 ;;
6226 *) # EBCDIC based system
6227 lt_SP2NL='tr \100 \n'
6228 lt_NL2SP='tr \r\n \100\100'
6229 ;;
6230 esac
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6241 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6242 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 lt_cv_ld_reload_flag='-r'
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6248 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6249 reload_flag=$lt_cv_ld_reload_flag
6250 case $reload_flag in
6251 "" | " "*) ;;
6252 *) reload_flag=" $reload_flag" ;;
6253 esac
6254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255 case $host_os in
6256 darwin*)
6257 if test "$GCC" = yes; then
6258 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6259 else
6260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6261 fi
6262 ;;
6263 esac
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$OBJDUMP"; then
6282 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 OBJDUMP=$ac_cv_prog_OBJDUMP
6302 if test -n "$OBJDUMP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6304 $as_echo "$OBJDUMP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_OBJDUMP"; then
6313 ac_ct_OBJDUMP=$OBJDUMP
6314 # Extract the first word of "objdump", so it can be a program name with args.
6315 set dummy objdump; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_OBJDUMP"; then
6322 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6342 if test -n "$ac_ct_OBJDUMP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6344 $as_echo "$ac_ct_OBJDUMP" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_OBJDUMP" = x; then
6351 OBJDUMP="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 OBJDUMP=$ac_ct_OBJDUMP
6360 fi
6361 else
6362 OBJDUMP="$ac_cv_prog_OBJDUMP"
6363 fi
6364
6365 test -z "$OBJDUMP" && OBJDUMP=objdump
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6376 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6377 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 lt_cv_file_magic_cmd='$MAGIC_CMD'
6381 lt_cv_file_magic_test_file=
6382 lt_cv_deplibs_check_method='unknown'
6383 # Need to set the preceding variable on all platforms that support
6384 # interlibrary dependencies.
6385 # 'none' -- dependencies not supported.
6386 # `unknown' -- same as none, but documents that we really don't know.
6387 # 'pass_all' -- all dependencies passed with no checks.
6388 # 'test_compile' -- check by making test program.
6389 # 'file_magic [[regex]]' -- check by looking for files in library path
6390 # which responds to the $file_magic_cmd with a given extended regex.
6391 # If you have `file' or equivalent on your system and you're not sure
6392 # whether `pass_all' will *always* work, you probably want this one.
6393
6394 case $host_os in
6395 aix[4-9]*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398
6399 beos*)
6400 lt_cv_deplibs_check_method=pass_all
6401 ;;
6402
6403 bsdi[45]*)
6404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6405 lt_cv_file_magic_cmd='/usr/bin/file -L'
6406 lt_cv_file_magic_test_file=/shlib/libc.so
6407 ;;
6408
6409 cygwin*)
6410 # func_win32_libid is a shell function defined in ltmain.sh
6411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6412 lt_cv_file_magic_cmd='func_win32_libid'
6413 ;;
6414
6415 mingw* | pw32*)
6416 # Base MSYS/MinGW do not provide the 'file' command needed by
6417 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6418 # unless we find 'file', for example because we are cross-compiling.
6419 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6420 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6421 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6422 lt_cv_file_magic_cmd='func_win32_libid'
6423 else
6424 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6425 lt_cv_file_magic_cmd='$OBJDUMP -f'
6426 fi
6427 ;;
6428
6429 cegcc*)
6430 # use the weaker test based on 'objdump'. See mingw*.
6431 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6432 lt_cv_file_magic_cmd='$OBJDUMP -f'
6433 ;;
6434
6435 darwin* | rhapsody*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 freebsd* | dragonfly*)
6440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6441 case $host_cpu in
6442 i*86 )
6443 # Not sure whether the presence of OpenBSD here was a mistake.
6444 # Let's accept both of them until this is cleared up.
6445 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6446 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6448 ;;
6449 esac
6450 else
6451 lt_cv_deplibs_check_method=pass_all
6452 fi
6453 ;;
6454
6455 gnu*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459 haiku*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 hpux10.20* | hpux11*)
6464 lt_cv_file_magic_cmd=/usr/bin/file
6465 case $host_cpu in
6466 ia64*)
6467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6468 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6469 ;;
6470 hppa*64*)
6471 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]'
6472 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6473 ;;
6474 *)
6475 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6476 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6477 ;;
6478 esac
6479 ;;
6480
6481 interix[3-9]*)
6482 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6484 ;;
6485
6486 irix5* | irix6* | nonstopux*)
6487 case $LD in
6488 *-32|*"-32 ") libmagic=32-bit;;
6489 *-n32|*"-n32 ") libmagic=N32;;
6490 *-64|*"-64 ") libmagic=64-bit;;
6491 *) libmagic=never-match;;
6492 esac
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 # This must be Linux ELF.
6497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501 netbsd*)
6502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6504 else
6505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6506 fi
6507 ;;
6508
6509 newos6*)
6510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6511 lt_cv_file_magic_cmd=/usr/bin/file
6512 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6513 ;;
6514
6515 *nto* | *qnx*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519 openbsd*)
6520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6522 else
6523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6524 fi
6525 ;;
6526
6527 osf3* | osf4* | osf5*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 rdos*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
6535 solaris*)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538
6539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542
6543 sysv4 | sysv4.3*)
6544 case $host_vendor in
6545 motorola)
6546 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]'
6547 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6548 ;;
6549 ncr)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552 sequent)
6553 lt_cv_file_magic_cmd='/bin/file'
6554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6555 ;;
6556 sni)
6557 lt_cv_file_magic_cmd='/bin/file'
6558 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6559 lt_cv_file_magic_test_file=/lib/libc.so
6560 ;;
6561 siemens)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564 pc)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567 esac
6568 ;;
6569
6570 tpf*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573 esac
6574
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6577 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6578 file_magic_cmd=$lt_cv_file_magic_cmd
6579 deplibs_check_method=$lt_cv_deplibs_check_method
6580 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}ar; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if test "${ac_cv_prog_AR+set}" = set; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$AR"; then
6602 ac_cv_prog_AR="$AR" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_AR="${ac_tool_prefix}ar"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 AR=$ac_cv_prog_AR
6622 if test -n "$AR"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6624 $as_echo "$AR" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_AR"; then
6633 ac_ct_AR=$AR
6634 # Extract the first word of "ar", so it can be a program name with args.
6635 set dummy ar; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$ac_ct_AR"; then
6642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_AR="ar"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6662 if test -n "$ac_ct_AR"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6664 $as_echo "$ac_ct_AR" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670 if test "x$ac_ct_AR" = x; then
6671 AR="false"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 AR=$ac_ct_AR
6680 fi
6681 else
6682 AR="$ac_cv_prog_AR"
6683 fi
6684
6685 test -z "$AR" && AR=ar
6686 test -z "$AR_FLAGS" && AR_FLAGS=cru
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}strip; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_STRIP+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$STRIP"; then
6707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 STRIP=$ac_cv_prog_STRIP
6727 if test -n "$STRIP"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6729 $as_echo "$STRIP" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_STRIP"; then
6738 ac_ct_STRIP=$STRIP
6739 # Extract the first word of "strip", so it can be a program name with args.
6740 set dummy strip; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_STRIP"; then
6747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_ac_ct_STRIP="strip"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6767 if test -n "$ac_ct_STRIP"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6769 $as_echo "$ac_ct_STRIP" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775 if test "x$ac_ct_STRIP" = x; then
6776 STRIP=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 STRIP=$ac_ct_STRIP
6785 fi
6786 else
6787 STRIP="$ac_cv_prog_STRIP"
6788 fi
6789
6790 test -z "$STRIP" && STRIP=:
6791
6792
6793
6794
6795
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$RANLIB"; then
6806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 RANLIB=$ac_cv_prog_RANLIB
6826 if test -n "$RANLIB"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6828 $as_echo "$RANLIB" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_RANLIB"; then
6837 ac_ct_RANLIB=$RANLIB
6838 # Extract the first word of "ranlib", so it can be a program name with args.
6839 set dummy ranlib; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_RANLIB"; then
6846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_ac_ct_RANLIB="ranlib"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6866 if test -n "$ac_ct_RANLIB"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6868 $as_echo "$ac_ct_RANLIB" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_RANLIB" = x; then
6875 RANLIB=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 RANLIB=$ac_ct_RANLIB
6884 fi
6885 else
6886 RANLIB="$ac_cv_prog_RANLIB"
6887 fi
6888
6889 test -z "$RANLIB" && RANLIB=:
6890
6891
6892
6893
6894
6895
6896 # Determine commands to create old-style static archives.
6897 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6898 old_postinstall_cmds='chmod 644 $oldlib'
6899 old_postuninstall_cmds=
6900
6901 if test -n "$RANLIB"; then
6902 case $host_os in
6903 openbsd*)
6904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6905 ;;
6906 *)
6907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 ;;
6909 esac
6910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911 fi
6912
6913 case $host_os in
6914 darwin*)
6915 lock_old_archive_extraction=yes ;;
6916 *)
6917 lock_old_archive_extraction=no ;;
6918 esac
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 # If no C compiler was specified, use CC.
6959 LTCC=${LTCC-"$CC"}
6960
6961 # If no C compiler flags were specified, use CFLAGS.
6962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6963
6964 # Allow CC to be a program name with arguments.
6965 compiler=$CC
6966
6967
6968 # Check for command to grab the raw symbol name followed by C symbol from nm.
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6970 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6971 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974
6975 # These are sane defaults that work on at least a few old systems.
6976 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6977
6978 # Character class describing NM global symbol codes.
6979 symcode='[BCDEGRST]'
6980
6981 # Regexp to match symbols that can be accessed directly from C.
6982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6983
6984 # Define system-specific variables.
6985 case $host_os in
6986 aix*)
6987 symcode='[BCDT]'
6988 ;;
6989 cygwin* | mingw* | pw32* | cegcc*)
6990 symcode='[ABCDGISTW]'
6991 ;;
6992 hpux*)
6993 if test "$host_cpu" = ia64; then
6994 symcode='[ABCDEGRST]'
6995 fi
6996 ;;
6997 irix* | nonstopux*)
6998 symcode='[BCDEGRST]'
6999 ;;
7000 osf*)
7001 symcode='[BCDEGQRST]'
7002 ;;
7003 solaris*)
7004 symcode='[BDRT]'
7005 ;;
7006 sco3.2v5*)
7007 symcode='[DT]'
7008 ;;
7009 sysv4.2uw2*)
7010 symcode='[DT]'
7011 ;;
7012 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7013 symcode='[ABDT]'
7014 ;;
7015 sysv4)
7016 symcode='[DFNSTU]'
7017 ;;
7018 esac
7019
7020 # If we're using GNU nm, then use its standard symbol codes.
7021 case `$NM -V 2>&1` in
7022 *GNU* | *'with BFD'*)
7023 symcode='[ABCDGIRSTW]' ;;
7024 esac
7025
7026 # Transform an extracted symbol line into a proper C declaration.
7027 # Some systems (esp. on ia64) link data and code symbols differently,
7028 # so use this general approach.
7029 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7030
7031 # Transform an extracted symbol line into symbol name and symbol address
7032 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7033 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'"
7034
7035 # Handle CRLF in mingw tool chain
7036 opt_cr=
7037 case $build_os in
7038 mingw*)
7039 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7040 ;;
7041 esac
7042
7043 # Try without a prefix underscore, then with it.
7044 for ac_symprfx in "" "_"; do
7045
7046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7047 symxfrm="\\1 $ac_symprfx\\2 \\2"
7048
7049 # Write the raw and C identifiers.
7050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7051 # Fake it for dumpbin and say T for any non-static function
7052 # and D for any global variable.
7053 # Also find C++ and __fastcall symbols from MSVC++,
7054 # which start with @ or ?.
7055 lt_cv_sys_global_symbol_pipe="$AWK '"\
7056 " {last_section=section; section=\$ 3};"\
7057 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7058 " \$ 0!~/External *\|/{next};"\
7059 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7060 " {if(hide[section]) next};"\
7061 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7062 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7063 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7064 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7065 " ' prfx=^$ac_symprfx"
7066 else
7067 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7068 fi
7069
7070 # Check to see that the pipe works correctly.
7071 pipe_works=no
7072
7073 rm -f conftest*
7074 cat > conftest.$ac_ext <<_LT_EOF
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078 char nm_test_var;
7079 void nm_test_func(void);
7080 void nm_test_func(void){}
7081 #ifdef __cplusplus
7082 }
7083 #endif
7084 int main(){nm_test_var='a';nm_test_func();return(0);}
7085 _LT_EOF
7086
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 # Now try to grab the symbols.
7093 nlist=conftest.nm
7094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7095 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7096 ac_status=$?
7097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; } && test -s "$nlist"; then
7099 # Try sorting and uniquifying the output.
7100 if sort "$nlist" | uniq > "$nlist"T; then
7101 mv -f "$nlist"T "$nlist"
7102 else
7103 rm -f "$nlist"T
7104 fi
7105
7106 # Make sure that we snagged all the symbols we need.
7107 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7108 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7109 cat <<_LT_EOF > conftest.$ac_ext
7110 #ifdef __cplusplus
7111 extern "C" {
7112 #endif
7113
7114 _LT_EOF
7115 # Now generate the symbol file.
7116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7117
7118 cat <<_LT_EOF >> conftest.$ac_ext
7119
7120 /* The mapping between symbol names and symbols. */
7121 const struct {
7122 const char *name;
7123 void *address;
7124 }
7125 lt__PROGRAM__LTX_preloaded_symbols[] =
7126 {
7127 { "@PROGRAM@", (void *) 0 },
7128 _LT_EOF
7129 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7130 cat <<\_LT_EOF >> conftest.$ac_ext
7131 {0, (void *) 0}
7132 };
7133
7134 /* This works around a problem in FreeBSD linker */
7135 #ifdef FREEBSD_WORKAROUND
7136 static const void *lt_preloaded_setup() {
7137 return lt__PROGRAM__LTX_preloaded_symbols;
7138 }
7139 #endif
7140
7141 #ifdef __cplusplus
7142 }
7143 #endif
7144 _LT_EOF
7145 # Now try linking the two files.
7146 mv conftest.$ac_objext conftstm.$ac_objext
7147 lt_save_LIBS="$LIBS"
7148 lt_save_CFLAGS="$CFLAGS"
7149 LIBS="conftstm.$ac_objext"
7150 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7152 (eval $ac_link) 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7156 pipe_works=yes
7157 fi
7158 LIBS="$lt_save_LIBS"
7159 CFLAGS="$lt_save_CFLAGS"
7160 else
7161 echo "cannot find nm_test_func in $nlist" >&5
7162 fi
7163 else
7164 echo "cannot find nm_test_var in $nlist" >&5
7165 fi
7166 else
7167 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7168 fi
7169 else
7170 echo "$progname: failed program was:" >&5
7171 cat conftest.$ac_ext >&5
7172 fi
7173 rm -rf conftest* conftst*
7174
7175 # Do not use the global_symbol_pipe unless it works.
7176 if test "$pipe_works" = yes; then
7177 break
7178 else
7179 lt_cv_sys_global_symbol_pipe=
7180 fi
7181 done
7182
7183 fi
7184
7185 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7186 lt_cv_sys_global_symbol_to_cdecl=
7187 fi
7188 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7190 $as_echo "failed" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7193 $as_echo "ok" >&6; }
7194 fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 # Check whether --enable-libtool-lock was given.
7219 if test "${enable_libtool_lock+set}" = set; then :
7220 enableval=$enable_libtool_lock;
7221 fi
7222
7223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7224
7225 # Some flags need to be propagated to the compiler or linker for good
7226 # libtool support.
7227 case $host in
7228 ia64-*-hpux*)
7229 # Find out which ABI we are using.
7230 echo 'int i;' > conftest.$ac_ext
7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232 (eval $ac_compile) 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; }; then
7236 case `/usr/bin/file conftest.$ac_objext` in
7237 *ELF-32*)
7238 HPUX_IA64_MODE="32"
7239 ;;
7240 *ELF-64*)
7241 HPUX_IA64_MODE="64"
7242 ;;
7243 esac
7244 fi
7245 rm -rf conftest*
7246 ;;
7247 *-*-irix6*)
7248 # Find out which ABI we are using.
7249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251 (eval $ac_compile) 2>&5
7252 ac_status=$?
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; }; then
7255 if test "$lt_cv_prog_gnu_ld" = yes; then
7256 case `/usr/bin/file conftest.$ac_objext` in
7257 *32-bit*)
7258 LD="${LD-ld} -melf32bsmip"
7259 ;;
7260 *N32*)
7261 LD="${LD-ld} -melf32bmipn32"
7262 ;;
7263 *64-bit*)
7264 LD="${LD-ld} -melf64bmip"
7265 ;;
7266 esac
7267 else
7268 case `/usr/bin/file conftest.$ac_objext` in
7269 *32-bit*)
7270 LD="${LD-ld} -32"
7271 ;;
7272 *N32*)
7273 LD="${LD-ld} -n32"
7274 ;;
7275 *64-bit*)
7276 LD="${LD-ld} -64"
7277 ;;
7278 esac
7279 fi
7280 fi
7281 rm -rf conftest*
7282 ;;
7283
7284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7286 # Find out which ABI we are using.
7287 echo 'int i;' > conftest.$ac_ext
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7290 ac_status=$?
7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 case `/usr/bin/file conftest.o` in
7294 *32-bit*)
7295 case $host in
7296 x86_64-*kfreebsd*-gnu)
7297 LD="${LD-ld} -m elf_i386_fbsd"
7298 ;;
7299 x86_64-*linux*)
7300 case `/usr/bin/file conftest.o` in
7301 *x86-64*)
7302 LD="${LD-ld} -m elf32_x86_64"
7303 ;;
7304 *)
7305 LD="${LD-ld} -m elf_i386"
7306 ;;
7307 esac
7308 ;;
7309 powerpc64le-*linux*)
7310 LD="${LD-ld} -m elf32lppclinux"
7311 ;;
7312 powerpc64-*linux*)
7313 LD="${LD-ld} -m elf32ppclinux"
7314 ;;
7315 s390x-*linux*)
7316 LD="${LD-ld} -m elf_s390"
7317 ;;
7318 sparc64-*linux*)
7319 LD="${LD-ld} -m elf32_sparc"
7320 ;;
7321 esac
7322 ;;
7323 *64-bit*)
7324 case $host in
7325 x86_64-*kfreebsd*-gnu)
7326 LD="${LD-ld} -m elf_x86_64_fbsd"
7327 ;;
7328 x86_64-*linux*)
7329 LD="${LD-ld} -m elf_x86_64"
7330 ;;
7331 powerpcle-*linux*)
7332 LD="${LD-ld} -m elf64lppc"
7333 ;;
7334 powerpc-*linux*)
7335 LD="${LD-ld} -m elf64ppc"
7336 ;;
7337 s390*-*linux*|s390*-*tpf*)
7338 LD="${LD-ld} -m elf64_s390"
7339 ;;
7340 sparc*-*linux*)
7341 LD="${LD-ld} -m elf64_sparc"
7342 ;;
7343 esac
7344 ;;
7345 esac
7346 fi
7347 rm -rf conftest*
7348 ;;
7349
7350 *-*-sco3.2v5*)
7351 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7352 SAVE_CFLAGS="$CFLAGS"
7353 CFLAGS="$CFLAGS -belf"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7355 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7356 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367
7368 int
7369 main ()
7370 {
7371
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 lt_cv_cc_needs_belf=yes
7378 else
7379 lt_cv_cc_needs_belf=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 ac_ext=c
7384 ac_cpp='$CPP $CPPFLAGS'
7385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7391 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7394 CFLAGS="$SAVE_CFLAGS"
7395 fi
7396 ;;
7397 sparc*-*solaris*)
7398 # Find out which ABI we are using.
7399 echo 'int i;' > conftest.$ac_ext
7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401 (eval $ac_compile) 2>&5
7402 ac_status=$?
7403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7404 test $ac_status = 0; }; then
7405 case `/usr/bin/file conftest.o` in
7406 *64-bit*)
7407 case $lt_cv_prog_gnu_ld in
7408 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7409 *)
7410 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7411 LD="${LD-ld} -64"
7412 fi
7413 ;;
7414 esac
7415 ;;
7416 esac
7417 fi
7418 rm -rf conftest*
7419 ;;
7420 esac
7421
7422 need_locks="$enable_libtool_lock"
7423
7424
7425 case $host_os in
7426 rhapsody* | darwin*)
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$DSYMUTIL"; then
7436 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7456 if test -n "$DSYMUTIL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7458 $as_echo "$DSYMUTIL" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_DSYMUTIL"; then
7467 ac_ct_DSYMUTIL=$DSYMUTIL
7468 # Extract the first word of "dsymutil", so it can be a program name with args.
7469 set dummy dsymutil; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$ac_ct_DSYMUTIL"; then
7476 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7496 if test -n "$ac_ct_DSYMUTIL"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7498 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504 if test "x$ac_ct_DSYMUTIL" = x; then
7505 DSYMUTIL=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 DSYMUTIL=$ac_ct_DSYMUTIL
7514 fi
7515 else
7516 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7517 fi
7518
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7521 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 if test -n "$NMEDIT"; then
7528 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541 done
7542 done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 NMEDIT=$ac_cv_prog_NMEDIT
7548 if test -n "$NMEDIT"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7550 $as_echo "$NMEDIT" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556
7557 fi
7558 if test -z "$ac_cv_prog_NMEDIT"; then
7559 ac_ct_NMEDIT=$NMEDIT
7560 # Extract the first word of "nmedit", so it can be a program name with args.
7561 set dummy nmedit; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$ac_ct_NMEDIT"; then
7568 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7588 if test -n "$ac_ct_NMEDIT"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7590 $as_echo "$ac_ct_NMEDIT" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596 if test "x$ac_ct_NMEDIT" = x; then
7597 NMEDIT=":"
7598 else
7599 case $cross_compiling:$ac_tool_warned in
7600 yes:)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603 ac_tool_warned=yes ;;
7604 esac
7605 NMEDIT=$ac_ct_NMEDIT
7606 fi
7607 else
7608 NMEDIT="$ac_cv_prog_NMEDIT"
7609 fi
7610
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_LIPO+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$LIPO"; then
7620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 LIPO=$ac_cv_prog_LIPO
7640 if test -n "$LIPO"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7642 $as_echo "$LIPO" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649 fi
7650 if test -z "$ac_cv_prog_LIPO"; then
7651 ac_ct_LIPO=$LIPO
7652 # Extract the first word of "lipo", so it can be a program name with args.
7653 set dummy lipo; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$ac_ct_LIPO"; then
7660 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_ac_ct_LIPO="lipo"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7680 if test -n "$ac_ct_LIPO"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7682 $as_echo "$ac_ct_LIPO" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688 if test "x$ac_ct_LIPO" = x; then
7689 LIPO=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697 LIPO=$ac_ct_LIPO
7698 fi
7699 else
7700 LIPO="$ac_cv_prog_LIPO"
7701 fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}otool; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$OTOOL"; then
7712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 OTOOL=$ac_cv_prog_OTOOL
7732 if test -n "$OTOOL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7734 $as_echo "$OTOOL" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_OTOOL"; then
7743 ac_ct_OTOOL=$OTOOL
7744 # Extract the first word of "otool", so it can be a program name with args.
7745 set dummy otool; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$ac_ct_OTOOL"; then
7752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_OTOOL="otool"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7772 if test -n "$ac_ct_OTOOL"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7774 $as_echo "$ac_ct_OTOOL" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780 if test "x$ac_ct_OTOOL" = x; then
7781 OTOOL=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 OTOOL=$ac_ct_OTOOL
7790 fi
7791 else
7792 OTOOL="$ac_cv_prog_OTOOL"
7793 fi
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$OTOOL64"; then
7804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7826 $as_echo "$OTOOL64" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835 ac_ct_OTOOL64=$OTOOL64
7836 # Extract the first word of "otool64", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$ac_ct_OTOOL64"; then
7844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_OTOOL64="otool64"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7866 $as_echo "$ac_ct_OTOOL64" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872 if test "x$ac_ct_OTOOL64" = x; then
7873 OTOOL64=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 OTOOL64=$ac_ct_OTOOL64
7882 fi
7883 else
7884 OTOOL64="$ac_cv_prog_OTOOL64"
7885 fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7914 $as_echo_n "checking for -single_module linker flag... " >&6; }
7915 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 lt_cv_apple_cc_single_mod=no
7919 if test -z "${LT_MULTI_MODULE}"; then
7920 # By default we will add the -single_module flag. You can override
7921 # by either setting the environment variable LT_MULTI_MODULE
7922 # non-empty at configure time, or by adding -multi_module to the
7923 # link flags.
7924 rm -rf libconftest.dylib*
7925 echo "int foo(void){return 1;}" > conftest.c
7926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7927 -dynamiclib -Wl,-single_module conftest.c" >&5
7928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7930 _lt_result=$?
7931 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7932 lt_cv_apple_cc_single_mod=yes
7933 else
7934 cat conftest.err >&5
7935 fi
7936 rm -rf libconftest.dylib*
7937 rm -f conftest.*
7938 fi
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7941 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7943 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7944 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 lt_cv_ld_exported_symbols_list=no
7948 save_LDFLAGS=$LDFLAGS
7949 echo "_main" > conftest.sym
7950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953
7954 int
7955 main ()
7956 {
7957
7958 ;
7959 return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_link "$LINENO"; then :
7963 lt_cv_ld_exported_symbols_list=yes
7964 else
7965 lt_cv_ld_exported_symbols_list=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 LDFLAGS="$save_LDFLAGS"
7970
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7973 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7975 $as_echo_n "checking for -force_load linker flag... " >&6; }
7976 if test "${lt_cv_ld_force_load+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 lt_cv_ld_force_load=no
7980 cat > conftest.c << _LT_EOF
7981 int forced_loaded() { return 2;}
7982 _LT_EOF
7983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7985 echo "$AR cru libconftest.a conftest.o" >&5
7986 $AR cru libconftest.a conftest.o 2>&5
7987 cat > conftest.c << _LT_EOF
7988 int main() { return 0;}
7989 _LT_EOF
7990 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7992 _lt_result=$?
7993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7994 lt_cv_ld_force_load=yes
7995 else
7996 cat conftest.err >&5
7997 fi
7998 rm -f conftest.err libconftest.a conftest conftest.c
7999 rm -rf conftest.dSYM
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8003 $as_echo "$lt_cv_ld_force_load" >&6; }
8004 case $host_os in
8005 rhapsody* | darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007 darwin1.*)
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 darwin*) # darwin 5.x on
8010 # if running on 10.5 or later, the deployment target defaults
8011 # to the OS version, if on x86, and 10.4, the deployment
8012 # target defaults to 10.4. Don't you love it?
8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016 10.[012][,.]*)
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018 10.*)
8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020 esac
8021 ;;
8022 esac
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8025 fi
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028 else
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030 fi
8031 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8033 else
8034 _lt_dsymutil=
8035 fi
8036 ;;
8037 esac
8038
8039 ac_ext=c
8040 ac_cpp='$CPP $CPPFLAGS'
8041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8045 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8046 # On Suns, sometimes $CPP names a directory.
8047 if test -n "$CPP" && test -d "$CPP"; then
8048 CPP=
8049 fi
8050 if test -z "$CPP"; then
8051 if test "${ac_cv_prog_CPP+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 # Double quotes because CPP needs to be expanded
8055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8056 do
8057 ac_preproc_ok=false
8058 for ac_c_preproc_warn_flag in '' yes
8059 do
8060 # Use a header file that comes with gcc, so configuring glibc
8061 # with a fresh cross-compiler works.
8062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063 # <limits.h> exists even on freestanding compilers.
8064 # On the NeXT, cc -E runs the code through the compiler's parser,
8065 # not just through cpp. "Syntax error" is here to catch this case.
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #ifdef __STDC__
8069 # include <limits.h>
8070 #else
8071 # include <assert.h>
8072 #endif
8073 Syntax error
8074 _ACEOF
8075 if ac_fn_c_try_cpp "$LINENO"; then :
8076
8077 else
8078 # Broken: fails on valid input.
8079 continue
8080 fi
8081 rm -f conftest.err conftest.$ac_ext
8082
8083 # OK, works on sane cases. Now check whether nonexistent headers
8084 # can be detected and how.
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <ac_nonexistent.h>
8088 _ACEOF
8089 if ac_fn_c_try_cpp "$LINENO"; then :
8090 # Broken: success on invalid input.
8091 continue
8092 else
8093 # Passes both tests.
8094 ac_preproc_ok=:
8095 break
8096 fi
8097 rm -f conftest.err conftest.$ac_ext
8098
8099 done
8100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8101 rm -f conftest.err conftest.$ac_ext
8102 if $ac_preproc_ok; then :
8103 break
8104 fi
8105
8106 done
8107 ac_cv_prog_CPP=$CPP
8108
8109 fi
8110 CPP=$ac_cv_prog_CPP
8111 else
8112 ac_cv_prog_CPP=$CPP
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8115 $as_echo "$CPP" >&6; }
8116 ac_preproc_ok=false
8117 for ac_c_preproc_warn_flag in '' yes
8118 do
8119 # Use a header file that comes with gcc, so configuring glibc
8120 # with a fresh cross-compiler works.
8121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122 # <limits.h> exists even on freestanding compilers.
8123 # On the NeXT, cc -E runs the code through the compiler's parser,
8124 # not just through cpp. "Syntax error" is here to catch this case.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #ifdef __STDC__
8128 # include <limits.h>
8129 #else
8130 # include <assert.h>
8131 #endif
8132 Syntax error
8133 _ACEOF
8134 if ac_fn_c_try_cpp "$LINENO"; then :
8135
8136 else
8137 # Broken: fails on valid input.
8138 continue
8139 fi
8140 rm -f conftest.err conftest.$ac_ext
8141
8142 # OK, works on sane cases. Now check whether nonexistent headers
8143 # can be detected and how.
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include <ac_nonexistent.h>
8147 _ACEOF
8148 if ac_fn_c_try_cpp "$LINENO"; then :
8149 # Broken: success on invalid input.
8150 continue
8151 else
8152 # Passes both tests.
8153 ac_preproc_ok=:
8154 break
8155 fi
8156 rm -f conftest.err conftest.$ac_ext
8157
8158 done
8159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8160 rm -f conftest.err conftest.$ac_ext
8161 if $ac_preproc_ok; then :
8162
8163 else
8164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8166 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8167 See \`config.log' for more details." "$LINENO" 5; }
8168 fi
8169
8170 ac_ext=c
8171 ac_cpp='$CPP $CPPFLAGS'
8172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8175
8176
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8178 $as_echo_n "checking for ANSI C header files... " >&6; }
8179 if test "${ac_cv_header_stdc+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <stdlib.h>
8185 #include <stdarg.h>
8186 #include <string.h>
8187 #include <float.h>
8188
8189 int
8190 main ()
8191 {
8192
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 ac_cv_header_stdc=yes
8199 else
8200 ac_cv_header_stdc=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203
8204 if test $ac_cv_header_stdc = yes; then
8205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 #include <string.h>
8209
8210 _ACEOF
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "memchr" >/dev/null 2>&1; then :
8213
8214 else
8215 ac_cv_header_stdc=no
8216 fi
8217 rm -f conftest*
8218
8219 fi
8220
8221 if test $ac_cv_header_stdc = yes; then
8222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #include <stdlib.h>
8226
8227 _ACEOF
8228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8229 $EGREP "free" >/dev/null 2>&1; then :
8230
8231 else
8232 ac_cv_header_stdc=no
8233 fi
8234 rm -f conftest*
8235
8236 fi
8237
8238 if test $ac_cv_header_stdc = yes; then
8239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8240 if test "$cross_compiling" = yes; then :
8241 :
8242 else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245 #include <ctype.h>
8246 #include <stdlib.h>
8247 #if ((' ' & 0x0FF) == 0x020)
8248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8250 #else
8251 # define ISLOWER(c) \
8252 (('a' <= (c) && (c) <= 'i') \
8253 || ('j' <= (c) && (c) <= 'r') \
8254 || ('s' <= (c) && (c) <= 'z'))
8255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8256 #endif
8257
8258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8259 int
8260 main ()
8261 {
8262 int i;
8263 for (i = 0; i < 256; i++)
8264 if (XOR (islower (i), ISLOWER (i))
8265 || toupper (i) != TOUPPER (i))
8266 return 2;
8267 return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_run "$LINENO"; then :
8271
8272 else
8273 ac_cv_header_stdc=no
8274 fi
8275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8276 conftest.$ac_objext conftest.beam conftest.$ac_ext
8277 fi
8278
8279 fi
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8282 $as_echo "$ac_cv_header_stdc" >&6; }
8283 if test $ac_cv_header_stdc = yes; then
8284
8285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8286
8287 fi
8288
8289 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8291 inttypes.h stdint.h unistd.h
8292 do :
8293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8294 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8295 "
8296 eval as_val=\$$as_ac_Header
8297 if test "x$as_val" = x""yes; then :
8298 cat >>confdefs.h <<_ACEOF
8299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8300 _ACEOF
8301
8302 fi
8303
8304 done
8305
8306
8307 for ac_header in dlfcn.h
8308 do :
8309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8310 "
8311 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_DLFCN_H 1
8314 _ACEOF
8315
8316 fi
8317
8318 done
8319
8320
8321
8322
8323
8324
8325 # Set options
8326
8327
8328
8329 enable_dlopen=no
8330
8331
8332 enable_win32_dll=no
8333
8334
8335 # Check whether --enable-shared was given.
8336 if test "${enable_shared+set}" = set; then :
8337 enableval=$enable_shared; p=${PACKAGE-default}
8338 case $enableval in
8339 yes) enable_shared=yes ;;
8340 no) enable_shared=no ;;
8341 *)
8342 enable_shared=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8346 IFS="$lt_save_ifs"
8347 if test "X$pkg" = "X$p"; then
8348 enable_shared=yes
8349 fi
8350 done
8351 IFS="$lt_save_ifs"
8352 ;;
8353 esac
8354 else
8355 enable_shared=yes
8356 fi
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 # Check whether --enable-static was given.
8367 if test "${enable_static+set}" = set; then :
8368 enableval=$enable_static; p=${PACKAGE-default}
8369 case $enableval in
8370 yes) enable_static=yes ;;
8371 no) enable_static=no ;;
8372 *)
8373 enable_static=no
8374 # Look at the argument we got. We use all the common list separators.
8375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8376 for pkg in $enableval; do
8377 IFS="$lt_save_ifs"
8378 if test "X$pkg" = "X$p"; then
8379 enable_static=yes
8380 fi
8381 done
8382 IFS="$lt_save_ifs"
8383 ;;
8384 esac
8385 else
8386 enable_static=yes
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 # Check whether --with-pic was given.
8399 if test "${with_pic+set}" = set; then :
8400 withval=$with_pic; pic_mode="$withval"
8401 else
8402 pic_mode=default
8403 fi
8404
8405
8406 test -z "$pic_mode" && pic_mode=default
8407
8408
8409
8410
8411
8412
8413
8414 # Check whether --enable-fast-install was given.
8415 if test "${enable_fast_install+set}" = set; then :
8416 enableval=$enable_fast_install; p=${PACKAGE-default}
8417 case $enableval in
8418 yes) enable_fast_install=yes ;;
8419 no) enable_fast_install=no ;;
8420 *)
8421 enable_fast_install=no
8422 # Look at the argument we got. We use all the common list separators.
8423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8424 for pkg in $enableval; do
8425 IFS="$lt_save_ifs"
8426 if test "X$pkg" = "X$p"; then
8427 enable_fast_install=yes
8428 fi
8429 done
8430 IFS="$lt_save_ifs"
8431 ;;
8432 esac
8433 else
8434 enable_fast_install=yes
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447 # This can be used to rebuild libtool when needed
8448 LIBTOOL_DEPS="$ltmain"
8449
8450 # Always use our own libtool.
8451 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478 test -z "$LN_S" && LN_S="ln -s"
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493 if test -n "${ZSH_VERSION+set}" ; then
8494 setopt NO_GLOB_SUBST
8495 fi
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8498 $as_echo_n "checking for objdir... " >&6; }
8499 if test "${lt_cv_objdir+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 rm -f .libs 2>/dev/null
8503 mkdir .libs 2>/dev/null
8504 if test -d .libs; then
8505 lt_cv_objdir=.libs
8506 else
8507 # MS-DOS does not allow filenames that begin with a dot.
8508 lt_cv_objdir=_libs
8509 fi
8510 rmdir .libs 2>/dev/null
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8513 $as_echo "$lt_cv_objdir" >&6; }
8514 objdir=$lt_cv_objdir
8515
8516
8517
8518
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define LT_OBJDIR "$lt_cv_objdir/"
8522 _ACEOF
8523
8524
8525
8526
8527 case $host_os in
8528 aix3*)
8529 # AIX sometimes has problems with the GCC collect2 program. For some
8530 # reason, if we set the COLLECT_NAMES environment variable, the problems
8531 # vanish in a puff of smoke.
8532 if test "X${COLLECT_NAMES+set}" != Xset; then
8533 COLLECT_NAMES=
8534 export COLLECT_NAMES
8535 fi
8536 ;;
8537 esac
8538
8539 # Global variables:
8540 ofile=libtool
8541 can_build_shared=yes
8542
8543 # All known linkers require a `.a' archive for static linking (except MSVC,
8544 # which needs '.lib').
8545 libext=a
8546
8547 with_gnu_ld="$lt_cv_prog_gnu_ld"
8548
8549 old_CC="$CC"
8550 old_CFLAGS="$CFLAGS"
8551
8552 # Set sane defaults for various variables
8553 test -z "$CC" && CC=cc
8554 test -z "$LTCC" && LTCC=$CC
8555 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8556 test -z "$LD" && LD=ld
8557 test -z "$ac_objext" && ac_objext=o
8558
8559 for cc_temp in $compiler""; do
8560 case $cc_temp in
8561 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8562 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8563 \-*) ;;
8564 *) break;;
8565 esac
8566 done
8567 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8568
8569
8570 # Only perform the check for file, if the check method requires it
8571 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8572 case $deplibs_check_method in
8573 file_magic*)
8574 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8576 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8577 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 case $MAGIC_CMD in
8581 [\\/*] | ?:[\\/]*)
8582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8583 ;;
8584 *)
8585 lt_save_MAGIC_CMD="$MAGIC_CMD"
8586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8587 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8588 for ac_dir in $ac_dummy; do
8589 IFS="$lt_save_ifs"
8590 test -z "$ac_dir" && ac_dir=.
8591 if test -f $ac_dir/${ac_tool_prefix}file; then
8592 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8593 if test -n "$file_magic_test_file"; then
8594 case $deplibs_check_method in
8595 "file_magic "*)
8596 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8599 $EGREP "$file_magic_regex" > /dev/null; then
8600 :
8601 else
8602 cat <<_LT_EOF 1>&2
8603
8604 *** Warning: the command libtool uses to detect shared libraries,
8605 *** $file_magic_cmd, produces output that libtool cannot recognize.
8606 *** The result is that libtool may fail to recognize shared libraries
8607 *** as such. This will affect the creation of libtool libraries that
8608 *** depend on shared libraries, but programs linked with such libtool
8609 *** libraries will work regardless of this problem. Nevertheless, you
8610 *** may want to report the problem to your system manager and/or to
8611 *** bug-libtool@gnu.org
8612
8613 _LT_EOF
8614 fi ;;
8615 esac
8616 fi
8617 break
8618 fi
8619 done
8620 IFS="$lt_save_ifs"
8621 MAGIC_CMD="$lt_save_MAGIC_CMD"
8622 ;;
8623 esac
8624 fi
8625
8626 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8627 if test -n "$MAGIC_CMD"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8629 $as_echo "$MAGIC_CMD" >&6; }
8630 else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 fi
8634
8635
8636
8637
8638
8639 if test -z "$lt_cv_path_MAGIC_CMD"; then
8640 if test -n "$ac_tool_prefix"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8642 $as_echo_n "checking for file... " >&6; }
8643 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 case $MAGIC_CMD in
8647 [\\/*] | ?:[\\/]*)
8648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8649 ;;
8650 *)
8651 lt_save_MAGIC_CMD="$MAGIC_CMD"
8652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8654 for ac_dir in $ac_dummy; do
8655 IFS="$lt_save_ifs"
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/file; then
8658 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8659 if test -n "$file_magic_test_file"; then
8660 case $deplibs_check_method in
8661 "file_magic "*)
8662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8665 $EGREP "$file_magic_regex" > /dev/null; then
8666 :
8667 else
8668 cat <<_LT_EOF 1>&2
8669
8670 *** Warning: the command libtool uses to detect shared libraries,
8671 *** $file_magic_cmd, produces output that libtool cannot recognize.
8672 *** The result is that libtool may fail to recognize shared libraries
8673 *** as such. This will affect the creation of libtool libraries that
8674 *** depend on shared libraries, but programs linked with such libtool
8675 *** libraries will work regardless of this problem. Nevertheless, you
8676 *** may want to report the problem to your system manager and/or to
8677 *** bug-libtool@gnu.org
8678
8679 _LT_EOF
8680 fi ;;
8681 esac
8682 fi
8683 break
8684 fi
8685 done
8686 IFS="$lt_save_ifs"
8687 MAGIC_CMD="$lt_save_MAGIC_CMD"
8688 ;;
8689 esac
8690 fi
8691
8692 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8693 if test -n "$MAGIC_CMD"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8695 $as_echo "$MAGIC_CMD" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8699 fi
8700
8701
8702 else
8703 MAGIC_CMD=:
8704 fi
8705 fi
8706
8707 fi
8708 ;;
8709 esac
8710
8711 # Use C for the default configuration in the libtool script
8712
8713 lt_save_CC="$CC"
8714 ac_ext=c
8715 ac_cpp='$CPP $CPPFLAGS'
8716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8719
8720
8721 # Source file extension for C test sources.
8722 ac_ext=c
8723
8724 # Object file extension for compiled C test sources.
8725 objext=o
8726 objext=$objext
8727
8728 # Code to be used in simple compile tests
8729 lt_simple_compile_test_code="int some_variable = 0;"
8730
8731 # Code to be used in simple link tests
8732 lt_simple_link_test_code='int main(){return(0);}'
8733
8734
8735
8736
8737
8738
8739
8740 # If no C compiler was specified, use CC.
8741 LTCC=${LTCC-"$CC"}
8742
8743 # If no C compiler flags were specified, use CFLAGS.
8744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8745
8746 # Allow CC to be a program name with arguments.
8747 compiler=$CC
8748
8749 # Save the default compiler, since it gets overwritten when the other
8750 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8751 compiler_DEFAULT=$CC
8752
8753 # save warnings/boilerplate of simple test code
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_compiler_boilerplate=`cat conftest.err`
8758 $RM conftest*
8759
8760 ac_outfile=conftest.$ac_objext
8761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8763 _lt_linker_boilerplate=`cat conftest.err`
8764 $RM -r conftest*
8765
8766
8767 ## CAVEAT EMPTOR:
8768 ## There is no encapsulation within the following macros, do not change
8769 ## the running order or otherwise move them around unless you know exactly
8770 ## what you are doing...
8771 if test -n "$compiler"; then
8772
8773 lt_prog_compiler_no_builtin_flag=
8774
8775 if test "$GCC" = yes; then
8776 case $cc_basename in
8777 nvcc*)
8778 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8779 *)
8780 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8781 esac
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8784 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8785 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_rtti_exceptions=no
8789 ac_outfile=conftest.$ac_objext
8790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8791 lt_compiler_flag="-fno-rtti -fno-exceptions"
8792 # Insert the option either (1) after the last *FLAGS variable, or
8793 # (2) before a word containing "conftest.", or (3) at the end.
8794 # Note that $ac_compile itself does not contain backslashes and begins
8795 # with a dollar sign (not a hyphen), so the echo should work correctly.
8796 # The option is referenced via a variable to avoid confusing sed.
8797 lt_compile=`echo "$ac_compile" | $SED \
8798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800 -e 's:$: $lt_compiler_flag:'`
8801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8802 (eval "$lt_compile" 2>conftest.err)
8803 ac_status=$?
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 if (exit $ac_status) && test -s "$ac_outfile"; then
8807 # The compiler can only warn and ignore the option if not recognized
8808 # So say no if there are warnings other than the usual output.
8809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_rtti_exceptions=yes
8813 fi
8814 fi
8815 $RM conftest*
8816
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8819 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8820
8821 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8822 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8823 else
8824 :
8825 fi
8826
8827 fi
8828
8829
8830
8831
8832
8833
8834 lt_prog_compiler_wl=
8835 lt_prog_compiler_pic=
8836 lt_prog_compiler_static=
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8840
8841 if test "$GCC" = yes; then
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_static='-static'
8844
8845 case $host_os in
8846 aix*)
8847 # All AIX code is PIC.
8848 if test "$host_cpu" = ia64; then
8849 # AIX 5 now supports IA64 processor
8850 lt_prog_compiler_static='-Bstatic'
8851 fi
8852 lt_prog_compiler_pic='-fPIC'
8853 ;;
8854
8855 amigaos*)
8856 case $host_cpu in
8857 powerpc)
8858 # see comment about AmigaOS4 .so support
8859 lt_prog_compiler_pic='-fPIC'
8860 ;;
8861 m68k)
8862 # FIXME: we need at least 68020 code to build shared libraries, but
8863 # adding the `-m68020' flag to GCC prevents building anything better,
8864 # like `-m68040'.
8865 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8866 ;;
8867 esac
8868 ;;
8869
8870 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8871 # PIC is the default for these OSes.
8872 ;;
8873
8874 mingw* | cygwin* | pw32* | os2* | cegcc*)
8875 # This hack is so that the source file can tell whether it is being
8876 # built for inclusion in a dll (and should export symbols for example).
8877 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8878 # (--disable-auto-import) libraries
8879 lt_prog_compiler_pic='-DDLL_EXPORT'
8880 ;;
8881
8882 darwin* | rhapsody*)
8883 # PIC is the default on this platform
8884 # Common symbols not allowed in MH_DYLIB files
8885 lt_prog_compiler_pic='-fno-common'
8886 ;;
8887
8888 haiku*)
8889 # PIC is the default for Haiku.
8890 # The "-static" flag exists, but is broken.
8891 lt_prog_compiler_static=
8892 ;;
8893
8894 hpux*)
8895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8897 # sets the default TLS model and affects inlining.
8898 case $host_cpu in
8899 hppa*64*)
8900 # +Z the default
8901 ;;
8902 *)
8903 lt_prog_compiler_pic='-fPIC'
8904 ;;
8905 esac
8906 ;;
8907
8908 interix[3-9]*)
8909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8910 # Instead, we relocate shared libraries at runtime.
8911 ;;
8912
8913 msdosdjgpp*)
8914 # Just because we use GCC doesn't mean we suddenly get shared libraries
8915 # on systems that don't support them.
8916 lt_prog_compiler_can_build_shared=no
8917 enable_shared=no
8918 ;;
8919
8920 *nto* | *qnx*)
8921 # QNX uses GNU C++, but need to define -shared option too, otherwise
8922 # it will coredump.
8923 lt_prog_compiler_pic='-fPIC -shared'
8924 ;;
8925
8926 sysv4*MP*)
8927 if test -d /usr/nec; then
8928 lt_prog_compiler_pic=-Kconform_pic
8929 fi
8930 ;;
8931
8932 *)
8933 lt_prog_compiler_pic='-fPIC'
8934 ;;
8935 esac
8936
8937 case $cc_basename in
8938 nvcc*) # Cuda Compiler Driver 2.2
8939 lt_prog_compiler_wl='-Xlinker '
8940 lt_prog_compiler_pic='-Xcompiler -fPIC'
8941 ;;
8942 esac
8943 else
8944 # PORTME Check for flag to pass linker flags through the system compiler.
8945 case $host_os in
8946 aix*)
8947 lt_prog_compiler_wl='-Wl,'
8948 if test "$host_cpu" = ia64; then
8949 # AIX 5 now supports IA64 processor
8950 lt_prog_compiler_static='-Bstatic'
8951 else
8952 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8953 fi
8954 ;;
8955
8956 mingw* | cygwin* | pw32* | os2* | cegcc*)
8957 # This hack is so that the source file can tell whether it is being
8958 # built for inclusion in a dll (and should export symbols for example).
8959 lt_prog_compiler_pic='-DDLL_EXPORT'
8960 ;;
8961
8962 hpux9* | hpux10* | hpux11*)
8963 lt_prog_compiler_wl='-Wl,'
8964 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8965 # not for PA HP-UX.
8966 case $host_cpu in
8967 hppa*64*|ia64*)
8968 # +Z the default
8969 ;;
8970 *)
8971 lt_prog_compiler_pic='+Z'
8972 ;;
8973 esac
8974 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8975 lt_prog_compiler_static='${wl}-a ${wl}archive'
8976 ;;
8977
8978 irix5* | irix6* | nonstopux*)
8979 lt_prog_compiler_wl='-Wl,'
8980 # PIC (with -KPIC) is the default.
8981 lt_prog_compiler_static='-non_shared'
8982 ;;
8983
8984 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8985 case $cc_basename in
8986 # old Intel for x86_64 which still supported -KPIC.
8987 ecc*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-static'
8991 ;;
8992 # icc used to be incompatible with GCC.
8993 # ICC 10 doesn't accept -KPIC any more.
8994 icc* | ifort*)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-fPIC'
8997 lt_prog_compiler_static='-static'
8998 ;;
8999 # Lahey Fortran 8.1.
9000 lf95*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='--shared'
9003 lt_prog_compiler_static='--static'
9004 ;;
9005 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9006 # Portland Group compilers (*not* the Pentium gcc compiler,
9007 # which looks to be a dead project)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-fpic'
9010 lt_prog_compiler_static='-Bstatic'
9011 ;;
9012 ccc*)
9013 lt_prog_compiler_wl='-Wl,'
9014 # All Alpha code is PIC.
9015 lt_prog_compiler_static='-non_shared'
9016 ;;
9017 xl* | bgxl* | bgf* | mpixl*)
9018 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9019 lt_prog_compiler_wl='-Wl,'
9020 lt_prog_compiler_pic='-qpic'
9021 lt_prog_compiler_static='-qstaticlink'
9022 ;;
9023 *)
9024 case `$CC -V 2>&1 | sed 5q` in
9025 *Sun\ F* | *Sun*Fortran*)
9026 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9027 lt_prog_compiler_pic='-KPIC'
9028 lt_prog_compiler_static='-Bstatic'
9029 lt_prog_compiler_wl=''
9030 ;;
9031 *Sun\ C*)
9032 # Sun C 5.9
9033 lt_prog_compiler_pic='-KPIC'
9034 lt_prog_compiler_static='-Bstatic'
9035 lt_prog_compiler_wl='-Wl,'
9036 ;;
9037 esac
9038 ;;
9039 esac
9040 ;;
9041
9042 newsos6)
9043 lt_prog_compiler_pic='-KPIC'
9044 lt_prog_compiler_static='-Bstatic'
9045 ;;
9046
9047 *nto* | *qnx*)
9048 # QNX uses GNU C++, but need to define -shared option too, otherwise
9049 # it will coredump.
9050 lt_prog_compiler_pic='-fPIC -shared'
9051 ;;
9052
9053 osf3* | osf4* | osf5*)
9054 lt_prog_compiler_wl='-Wl,'
9055 # All OSF/1 code is PIC.
9056 lt_prog_compiler_static='-non_shared'
9057 ;;
9058
9059 rdos*)
9060 lt_prog_compiler_static='-non_shared'
9061 ;;
9062
9063 solaris*)
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-Bstatic'
9066 case $cc_basename in
9067 f77* | f90* | f95*)
9068 lt_prog_compiler_wl='-Qoption ld ';;
9069 *)
9070 lt_prog_compiler_wl='-Wl,';;
9071 esac
9072 ;;
9073
9074 sunos4*)
9075 lt_prog_compiler_wl='-Qoption ld '
9076 lt_prog_compiler_pic='-PIC'
9077 lt_prog_compiler_static='-Bstatic'
9078 ;;
9079
9080 sysv4 | sysv4.2uw2* | sysv4.3*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-KPIC'
9083 lt_prog_compiler_static='-Bstatic'
9084 ;;
9085
9086 sysv4*MP*)
9087 if test -d /usr/nec ;then
9088 lt_prog_compiler_pic='-Kconform_pic'
9089 lt_prog_compiler_static='-Bstatic'
9090 fi
9091 ;;
9092
9093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 ;;
9098
9099 unicos*)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_can_build_shared=no
9102 ;;
9103
9104 uts4*)
9105 lt_prog_compiler_pic='-pic'
9106 lt_prog_compiler_static='-Bstatic'
9107 ;;
9108
9109 *)
9110 lt_prog_compiler_can_build_shared=no
9111 ;;
9112 esac
9113 fi
9114
9115 case $host_os in
9116 # For platforms which do not support PIC, -DPIC is meaningless:
9117 *djgpp*)
9118 lt_prog_compiler_pic=
9119 ;;
9120 *)
9121 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9122 ;;
9123 esac
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9125 $as_echo "$lt_prog_compiler_pic" >&6; }
9126
9127
9128
9129
9130
9131
9132 #
9133 # Check to make sure the PIC flag actually works.
9134 #
9135 if test -n "$lt_prog_compiler_pic"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9138 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 lt_cv_prog_compiler_pic_works=no
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 # The option is referenced via a variable to avoid confusing sed.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>conftest.err)
9156 ac_status=$?
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s "$ac_outfile"; then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings other than the usual output.
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_pic_works=yes
9166 fi
9167 fi
9168 $RM conftest*
9169
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9172 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9173
9174 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9175 case $lt_prog_compiler_pic in
9176 "" | " "*) ;;
9177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9178 esac
9179 else
9180 lt_prog_compiler_pic=
9181 lt_prog_compiler_can_build_shared=no
9182 fi
9183
9184 fi
9185
9186
9187
9188
9189
9190
9191 #
9192 # Check to make sure the static flag actually works.
9193 #
9194 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9197 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 lt_cv_prog_compiler_static_works=no
9201 save_LDFLAGS="$LDFLAGS"
9202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9203 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9205 # The linker can only warn and ignore the option if not recognized
9206 # So say no if there are warnings
9207 if test -s conftest.err; then
9208 # Append any errors to the config.log.
9209 cat conftest.err 1>&5
9210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9212 if diff conftest.exp conftest.er2 >/dev/null; then
9213 lt_cv_prog_compiler_static_works=yes
9214 fi
9215 else
9216 lt_cv_prog_compiler_static_works=yes
9217 fi
9218 fi
9219 $RM -r conftest*
9220 LDFLAGS="$save_LDFLAGS"
9221
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9224 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9225
9226 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9227 :
9228 else
9229 lt_prog_compiler_static=
9230 fi
9231
9232
9233
9234
9235
9236
9237
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9240 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 lt_cv_prog_compiler_c_o=no
9244 $RM -r conftest 2>/dev/null
9245 mkdir conftest
9246 cd conftest
9247 mkdir out
9248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9249
9250 lt_compiler_flag="-o out/conftest2.$ac_objext"
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 lt_compile=`echo "$ac_compile" | $SED \
9256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9258 -e 's:$: $lt_compiler_flag:'`
9259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9260 (eval "$lt_compile" 2>out/conftest.err)
9261 ac_status=$?
9262 cat out/conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9265 then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_c_o=yes
9272 fi
9273 fi
9274 chmod u+w . 2>&5
9275 $RM conftest*
9276 # SGI C++ compiler will create directory out/ii_files/ for
9277 # template instantiation
9278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9279 $RM out/* && rmdir out
9280 cd ..
9281 $RM -r conftest
9282 $RM conftest*
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287
9288
9289
9290
9291
9292
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9295 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 lt_cv_prog_compiler_c_o=no
9299 $RM -r conftest 2>/dev/null
9300 mkdir conftest
9301 cd conftest
9302 mkdir out
9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9304
9305 lt_compiler_flag="-o out/conftest2.$ac_objext"
9306 # Insert the option either (1) after the last *FLAGS variable, or
9307 # (2) before a word containing "conftest.", or (3) at the end.
9308 # Note that $ac_compile itself does not contain backslashes and begins
9309 # with a dollar sign (not a hyphen), so the echo should work correctly.
9310 lt_compile=`echo "$ac_compile" | $SED \
9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9313 -e 's:$: $lt_compiler_flag:'`
9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9315 (eval "$lt_compile" 2>out/conftest.err)
9316 ac_status=$?
9317 cat out/conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9320 then
9321 # The compiler can only warn and ignore the option if not recognized
9322 # So say no if there are warnings
9323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9326 lt_cv_prog_compiler_c_o=yes
9327 fi
9328 fi
9329 chmod u+w . 2>&5
9330 $RM conftest*
9331 # SGI C++ compiler will create directory out/ii_files/ for
9332 # template instantiation
9333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9334 $RM out/* && rmdir out
9335 cd ..
9336 $RM -r conftest
9337 $RM conftest*
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9341 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9342
9343
9344
9345
9346 hard_links="nottested"
9347 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9348 # do not overwrite the value of need_locks provided by the user
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9350 $as_echo_n "checking if we can lock with hard links... " >&6; }
9351 hard_links=yes
9352 $RM conftest*
9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354 touch conftest.a
9355 ln conftest.a conftest.b 2>&5 || hard_links=no
9356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9358 $as_echo "$hard_links" >&6; }
9359 if test "$hard_links" = no; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9361 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9362 need_locks=warn
9363 fi
9364 else
9365 need_locks=no
9366 fi
9367
9368
9369
9370
9371
9372
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9375
9376 runpath_var=
9377 allow_undefined_flag=
9378 always_export_symbols=no
9379 archive_cmds=
9380 archive_expsym_cmds=
9381 compiler_needs_object=no
9382 enable_shared_with_static_runtimes=no
9383 export_dynamic_flag_spec=
9384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9385 hardcode_automatic=no
9386 hardcode_direct=no
9387 hardcode_direct_absolute=no
9388 hardcode_libdir_flag_spec=
9389 hardcode_libdir_flag_spec_ld=
9390 hardcode_libdir_separator=
9391 hardcode_minus_L=no
9392 hardcode_shlibpath_var=unsupported
9393 inherit_rpath=no
9394 link_all_deplibs=unknown
9395 module_cmds=
9396 module_expsym_cmds=
9397 old_archive_from_new_cmds=
9398 old_archive_from_expsyms_cmds=
9399 thread_safe_flag_spec=
9400 whole_archive_flag_spec=
9401 # include_expsyms should be a list of space-separated symbols to be *always*
9402 # included in the symbol list
9403 include_expsyms=
9404 # exclude_expsyms can be an extended regexp of symbols to exclude
9405 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9406 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9407 # as well as any symbol that contains `d'.
9408 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9409 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9410 # platforms (ab)use it in PIC code, but their linkers get confused if
9411 # the symbol is explicitly referenced. Since portable code cannot
9412 # rely on this symbol name, it's probably fine to never include it in
9413 # preloaded symbol tables.
9414 # Exclude shared library initialization/finalization symbols.
9415 extract_expsyms_cmds=
9416
9417 case $host_os in
9418 cygwin* | mingw* | pw32* | cegcc*)
9419 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9420 # When not using gcc, we currently assume that we are using
9421 # Microsoft Visual C++.
9422 if test "$GCC" != yes; then
9423 with_gnu_ld=no
9424 fi
9425 ;;
9426 interix*)
9427 # we just hope/assume this is gcc and not c89 (= MSVC++)
9428 with_gnu_ld=yes
9429 ;;
9430 openbsd*)
9431 with_gnu_ld=no
9432 ;;
9433 esac
9434
9435 ld_shlibs=yes
9436
9437 # On some targets, GNU ld is compatible enough with the native linker
9438 # that we're better off using the native interface for both.
9439 lt_use_gnu_ld_interface=no
9440 if test "$with_gnu_ld" = yes; then
9441 case $host_os in
9442 aix*)
9443 # The AIX port of GNU ld has always aspired to compatibility
9444 # with the native linker. However, as the warning in the GNU ld
9445 # block says, versions before 2.19.5* couldn't really create working
9446 # shared libraries, regardless of the interface used.
9447 case `$LD -v 2>&1` in
9448 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9449 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9450 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9451 *)
9452 lt_use_gnu_ld_interface=yes
9453 ;;
9454 esac
9455 ;;
9456 *)
9457 lt_use_gnu_ld_interface=yes
9458 ;;
9459 esac
9460 fi
9461
9462 if test "$lt_use_gnu_ld_interface" = yes; then
9463 # If archive_cmds runs LD, not CC, wlarc should be empty
9464 wlarc='${wl}'
9465
9466 # Set some defaults for GNU ld with shared library support. These
9467 # are reset later if shared libraries are not supported. Putting them
9468 # here allows them to be overridden if necessary.
9469 runpath_var=LD_RUN_PATH
9470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471 export_dynamic_flag_spec='${wl}--export-dynamic'
9472 # ancient GNU ld didn't support --whole-archive et. al.
9473 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9474 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9475 else
9476 whole_archive_flag_spec=
9477 fi
9478 supports_anon_versioning=no
9479 case `$LD -v 2>&1` in
9480 *GNU\ gold*) supports_anon_versioning=yes ;;
9481 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9484 *\ 2.11.*) ;; # other 2.11 versions
9485 *) supports_anon_versioning=yes ;;
9486 esac
9487
9488 # See if GNU ld supports shared libraries.
9489 case $host_os in
9490 aix[3-9]*)
9491 # On AIX/PPC, the GNU linker is very broken
9492 if test "$host_cpu" != ia64; then
9493 ld_shlibs=no
9494 cat <<_LT_EOF 1>&2
9495
9496 *** Warning: the GNU linker, at least up to release 2.19, is reported
9497 *** to be unable to reliably create shared libraries on AIX.
9498 *** Therefore, libtool is disabling shared libraries support. If you
9499 *** really care for shared libraries, you may want to install binutils
9500 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9501 *** You will then need to restart the configuration process.
9502
9503 _LT_EOF
9504 fi
9505 ;;
9506
9507 amigaos*)
9508 case $host_cpu in
9509 powerpc)
9510 # see comment about AmigaOS4 .so support
9511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 archive_expsym_cmds=''
9513 ;;
9514 m68k)
9515 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)'
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_minus_L=yes
9518 ;;
9519 esac
9520 ;;
9521
9522 beos*)
9523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524 allow_undefined_flag=unsupported
9525 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9526 # support --undefined. This deserves some investigation. FIXME
9527 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532
9533 cygwin* | mingw* | pw32* | cegcc*)
9534 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9535 # as there is no search path for DLLs.
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 export_dynamic_flag_spec='${wl}--export-all-symbols'
9538 allow_undefined_flag=unsupported
9539 always_export_symbols=no
9540 enable_shared_with_static_runtimes=yes
9541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9542
9543 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9545 # If the export-symbols file already is a .def file (1st line
9546 # is EXPORTS), use it as is; otherwise, prepend...
9547 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9548 cp $export_symbols $output_objdir/$soname.def;
9549 else
9550 echo EXPORTS > $output_objdir/$soname.def;
9551 cat $export_symbols >> $output_objdir/$soname.def;
9552 fi~
9553 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9554 else
9555 ld_shlibs=no
9556 fi
9557 ;;
9558
9559 haiku*)
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9561 link_all_deplibs=yes
9562 ;;
9563
9564 interix[3-9]*)
9565 hardcode_direct=no
9566 hardcode_shlibpath_var=no
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568 export_dynamic_flag_spec='${wl}-E'
9569 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9570 # Instead, shared libraries are loaded at an image base (0x10000000 by
9571 # default) and relocated if they conflict, which is a slow very memory
9572 # consuming and fragmenting process. To avoid this, we pick a random,
9573 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9574 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9576 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'
9577 ;;
9578
9579 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9580 tmp_diet=no
9581 if test "$host_os" = linux-dietlibc; then
9582 case $cc_basename in
9583 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9584 esac
9585 fi
9586 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9587 && test "$tmp_diet" = no
9588 then
9589 tmp_addflag=' $pic_flag'
9590 tmp_sharedflag='-shared'
9591 case $cc_basename,$host_cpu in
9592 pgcc*) # Portland Group C compiler
9593 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'
9594 tmp_addflag=' $pic_flag'
9595 ;;
9596 pgf77* | pgf90* | pgf95* | pgfortran*)
9597 # Portland Group f77 and f90 compilers
9598 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'
9599 tmp_addflag=' $pic_flag -Mnomain' ;;
9600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9601 tmp_addflag=' -i_dynamic' ;;
9602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9603 tmp_addflag=' -i_dynamic -nofor_main' ;;
9604 ifc* | ifort*) # Intel Fortran compiler
9605 tmp_addflag=' -nofor_main' ;;
9606 lf95*) # Lahey Fortran 8.1
9607 whole_archive_flag_spec=
9608 tmp_sharedflag='--shared' ;;
9609 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9610 tmp_sharedflag='-qmkshrobj'
9611 tmp_addflag= ;;
9612 nvcc*) # Cuda Compiler Driver 2.2
9613 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'
9614 compiler_needs_object=yes
9615 ;;
9616 esac
9617 case `$CC -V 2>&1 | sed 5q` in
9618 *Sun\ C*) # Sun C 5.9
9619 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'
9620 compiler_needs_object=yes
9621 tmp_sharedflag='-G' ;;
9622 *Sun\ F*) # Sun Fortran 8.3
9623 tmp_sharedflag='-G' ;;
9624 esac
9625 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626
9627 if test "x$supports_anon_versioning" = xyes; then
9628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9630 echo "local: *; };" >> $output_objdir/$libname.ver~
9631 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9632 fi
9633
9634 case $cc_basename in
9635 xlf* | bgf* | bgxlf* | mpixlf*)
9636 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9637 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9638 hardcode_libdir_flag_spec=
9639 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9640 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9641 if test "x$supports_anon_versioning" = xyes; then
9642 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9644 echo "local: *; };" >> $output_objdir/$libname.ver~
9645 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9646 fi
9647 ;;
9648 esac
9649 else
9650 ld_shlibs=no
9651 fi
9652 ;;
9653
9654 netbsd*)
9655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9657 wlarc=
9658 else
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661 fi
9662 ;;
9663
9664 solaris*)
9665 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9666 ld_shlibs=no
9667 cat <<_LT_EOF 1>&2
9668
9669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9670 *** create shared libraries on Solaris systems. Therefore, libtool
9671 *** is disabling shared libraries support. We urge you to upgrade GNU
9672 *** binutils to release 2.9.1 or newer. Another option is to modify
9673 *** your PATH or compiler configuration so that the native linker is
9674 *** used, and then restart.
9675
9676 _LT_EOF
9677 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9680 else
9681 ld_shlibs=no
9682 fi
9683 ;;
9684
9685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9686 case `$LD -v 2>&1` in
9687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9688 ld_shlibs=no
9689 cat <<_LT_EOF 1>&2
9690
9691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9692 *** reliably create shared libraries on SCO systems. Therefore, libtool
9693 *** is disabling shared libraries support. We urge you to upgrade GNU
9694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9695 *** your PATH or compiler configuration so that the native linker is
9696 *** used, and then restart.
9697
9698 _LT_EOF
9699 ;;
9700 *)
9701 # For security reasons, it is highly recommended that you always
9702 # use absolute paths for naming shared libraries, and exclude the
9703 # DT_RUNPATH tag from executables and libraries. But doing so
9704 # requires that you compile everything twice, which is a pain.
9705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9709 else
9710 ld_shlibs=no
9711 fi
9712 ;;
9713 esac
9714 ;;
9715
9716 sunos4*)
9717 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9718 wlarc=
9719 hardcode_direct=yes
9720 hardcode_shlibpath_var=no
9721 ;;
9722
9723 *)
9724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9727 else
9728 ld_shlibs=no
9729 fi
9730 ;;
9731 esac
9732
9733 if test "$ld_shlibs" = no; then
9734 runpath_var=
9735 hardcode_libdir_flag_spec=
9736 export_dynamic_flag_spec=
9737 whole_archive_flag_spec=
9738 fi
9739 else
9740 # PORTME fill in a description of your system's linker (not GNU ld)
9741 case $host_os in
9742 aix3*)
9743 allow_undefined_flag=unsupported
9744 always_export_symbols=yes
9745 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'
9746 # Note: this linker hardcodes the directories in LIBPATH if there
9747 # are no directories specified by -L.
9748 hardcode_minus_L=yes
9749 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9750 # Neither direct hardcoding nor static linking is supported with a
9751 # broken collect2.
9752 hardcode_direct=unsupported
9753 fi
9754 ;;
9755
9756 aix[4-9]*)
9757 if test "$host_cpu" = ia64; then
9758 # On IA64, the linker does run time linking by default, so we don't
9759 # have to do anything special.
9760 aix_use_runtimelinking=no
9761 exp_sym_flag='-Bexport'
9762 no_entry_flag=""
9763 else
9764 # If we're using GNU nm, then we don't want the "-C" option.
9765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9766 # Also, AIX nm treats weak defined symbols like other global
9767 # defined symbols, whereas GNU nm marks them as "W".
9768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9769 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'
9770 else
9771 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'
9772 fi
9773 aix_use_runtimelinking=no
9774
9775 # Test if we are trying to use run time linking or normal
9776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9777 # need to do runtime linking.
9778 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9779 for ld_flag in $LDFLAGS; do
9780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9781 aix_use_runtimelinking=yes
9782 break
9783 fi
9784 done
9785 ;;
9786 esac
9787
9788 exp_sym_flag='-bexport'
9789 no_entry_flag='-bnoentry'
9790 fi
9791
9792 # When large executables or shared objects are built, AIX ld can
9793 # have problems creating the table of contents. If linking a library
9794 # or program results in "error TOC overflow" add -mminimal-toc to
9795 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9796 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9797
9798 archive_cmds=''
9799 hardcode_direct=yes
9800 hardcode_direct_absolute=yes
9801 hardcode_libdir_separator=':'
9802 link_all_deplibs=yes
9803 file_list_spec='${wl}-f,'
9804
9805 if test "$GCC" = yes; then
9806 case $host_os in aix4.[012]|aix4.[012].*)
9807 # We only want to do this on AIX 4.2 and lower, the check
9808 # below for broken collect2 doesn't work under 4.3+
9809 collect2name=`${CC} -print-prog-name=collect2`
9810 if test -f "$collect2name" &&
9811 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9812 then
9813 # We have reworked collect2
9814 :
9815 else
9816 # We have old collect2
9817 hardcode_direct=unsupported
9818 # It fails to find uninstalled libraries when the uninstalled
9819 # path is not listed in the libpath. Setting hardcode_minus_L
9820 # to unsupported forces relinking
9821 hardcode_minus_L=yes
9822 hardcode_libdir_flag_spec='-L$libdir'
9823 hardcode_libdir_separator=
9824 fi
9825 ;;
9826 esac
9827 shared_flag='-shared'
9828 if test "$aix_use_runtimelinking" = yes; then
9829 shared_flag="$shared_flag "'${wl}-G'
9830 fi
9831 else
9832 # not using gcc
9833 if test "$host_cpu" = ia64; then
9834 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9835 # chokes on -Wl,-G. The following line is correct:
9836 shared_flag='-G'
9837 else
9838 if test "$aix_use_runtimelinking" = yes; then
9839 shared_flag='${wl}-G'
9840 else
9841 shared_flag='${wl}-bM:SRE'
9842 fi
9843 fi
9844 fi
9845
9846 export_dynamic_flag_spec='${wl}-bexpall'
9847 # It seems that -bexpall does not export symbols beginning with
9848 # underscore (_), so it is better to generate a list of symbols to export.
9849 always_export_symbols=yes
9850 if test "$aix_use_runtimelinking" = yes; then
9851 # Warning - without using the other runtime loading flags (-brtl),
9852 # -berok will link without error, but may produce a broken library.
9853 allow_undefined_flag='-berok'
9854 # Determine the default libpath from the value encoded in an
9855 # empty executable.
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858
9859 int
9860 main ()
9861 {
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868
9869 lt_aix_libpath_sed='
9870 /Import File Strings/,/^$/ {
9871 /^0/ {
9872 s/^0 *\(.*\)$/\1/
9873 p
9874 }
9875 }'
9876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 # Check for a 64-bit object if we didn't find anything.
9878 if test -z "$aix_libpath"; then
9879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9880 fi
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9885
9886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9887 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"
9888 else
9889 if test "$host_cpu" = ia64; then
9890 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9891 allow_undefined_flag="-z nodefs"
9892 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"
9893 else
9894 # Determine the default libpath from the value encoded in an
9895 # empty executable.
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898
9899 int
9900 main ()
9901 {
9902
9903 ;
9904 return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_c_try_link "$LINENO"; then :
9908
9909 lt_aix_libpath_sed='
9910 /Import File Strings/,/^$/ {
9911 /^0/ {
9912 s/^0 *\(.*\)$/\1/
9913 p
9914 }
9915 }'
9916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9917 # Check for a 64-bit object if we didn't find anything.
9918 if test -z "$aix_libpath"; then
9919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920 fi
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9925
9926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9927 # Warning - without using the other run time loading flags,
9928 # -berok will link without error, but may produce a broken library.
9929 no_undefined_flag=' ${wl}-bernotok'
9930 allow_undefined_flag=' ${wl}-berok'
9931 if test "$with_gnu_ld" = yes; then
9932 # We only use this code for GNU lds that support --whole-archive.
9933 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9934 else
9935 # Exported symbols can be pulled into shared objects from archives
9936 whole_archive_flag_spec='$convenience'
9937 fi
9938 archive_cmds_need_lc=yes
9939 # This is similar to how AIX traditionally builds its shared libraries.
9940 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'
9941 fi
9942 fi
9943 ;;
9944
9945 amigaos*)
9946 case $host_cpu in
9947 powerpc)
9948 # see comment about AmigaOS4 .so support
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds=''
9951 ;;
9952 m68k)
9953 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)'
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_minus_L=yes
9956 ;;
9957 esac
9958 ;;
9959
9960 bsdi[45]*)
9961 export_dynamic_flag_spec=-rdynamic
9962 ;;
9963
9964 cygwin* | mingw* | pw32* | cegcc*)
9965 # When not using gcc, we currently assume that we are using
9966 # Microsoft Visual C++.
9967 # hardcode_libdir_flag_spec is actually meaningless, as there is
9968 # no search path for DLLs.
9969 hardcode_libdir_flag_spec=' '
9970 allow_undefined_flag=unsupported
9971 # Tell ltmain to make .lib files, not .a files.
9972 libext=lib
9973 # Tell ltmain to make .dll files, not .so files.
9974 shrext_cmds=".dll"
9975 # FIXME: Setting linknames here is a bad hack.
9976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9977 # The linker will automatically build a .lib file if we build a DLL.
9978 old_archive_from_new_cmds='true'
9979 # FIXME: Should let the user specify the lib program.
9980 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9981 fix_srcfile_path='`cygpath -w "$srcfile"`'
9982 enable_shared_with_static_runtimes=yes
9983 ;;
9984
9985 darwin* | rhapsody*)
9986
9987
9988 archive_cmds_need_lc=no
9989 hardcode_direct=no
9990 hardcode_automatic=yes
9991 hardcode_shlibpath_var=unsupported
9992 if test "$lt_cv_ld_force_load" = "yes"; then
9993 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\"`'
9994 else
9995 whole_archive_flag_spec=''
9996 fi
9997 link_all_deplibs=yes
9998 allow_undefined_flag="$_lt_dar_allow_undefined"
9999 case $cc_basename in
10000 ifort*) _lt_dar_can_shared=yes ;;
10001 *) _lt_dar_can_shared=$GCC ;;
10002 esac
10003 if test "$_lt_dar_can_shared" = "yes"; then
10004 output_verbose_link_cmd=func_echo_all
10005 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10006 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10007 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}"
10008 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}"
10009
10010 else
10011 ld_shlibs=no
10012 fi
10013
10014 ;;
10015
10016 dgux*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10023 # support. Future versions do this automatically, but an explicit c++rt0.o
10024 # does not break anything, and helps significantly (at the cost of a little
10025 # extra space).
10026 freebsd2.2*)
10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10034 freebsd2.*)
10035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes
10037 hardcode_minus_L=yes
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10042 freebsd* | dragonfly*)
10043 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10044 hardcode_libdir_flag_spec='-R$libdir'
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 hpux9*)
10050 if test "$GCC" = yes; then
10051 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'
10052 else
10053 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'
10054 fi
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_direct=yes
10058
10059 # hardcode_minus_L: Not really in the search PATH,
10060 # but as the default location of the library.
10061 hardcode_minus_L=yes
10062 export_dynamic_flag_spec='${wl}-E'
10063 ;;
10064
10065 hpux10*)
10066 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10067 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 else
10069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10070 fi
10071 if test "$with_gnu_ld" = no; then
10072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10073 hardcode_libdir_flag_spec_ld='+b $libdir'
10074 hardcode_libdir_separator=:
10075 hardcode_direct=yes
10076 hardcode_direct_absolute=yes
10077 export_dynamic_flag_spec='${wl}-E'
10078 # hardcode_minus_L: Not really in the search PATH,
10079 # but as the default location of the library.
10080 hardcode_minus_L=yes
10081 fi
10082 ;;
10083
10084 hpux11*)
10085 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10086 case $host_cpu in
10087 hppa*64*)
10088 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 ;;
10090 ia64*)
10091 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 *)
10094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095 ;;
10096 esac
10097 else
10098 case $host_cpu in
10099 hppa*64*)
10100 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 ;;
10102 ia64*)
10103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10104 ;;
10105 *)
10106
10107 # Older versions of the 11.00 compiler do not understand -b yet
10108 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10110 $as_echo_n "checking if $CC understands -b... " >&6; }
10111 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 lt_cv_prog_compiler__b=no
10115 save_LDFLAGS="$LDFLAGS"
10116 LDFLAGS="$LDFLAGS -b"
10117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10119 # The linker can only warn and ignore the option if not recognized
10120 # So say no if there are warnings
10121 if test -s conftest.err; then
10122 # Append any errors to the config.log.
10123 cat conftest.err 1>&5
10124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10126 if diff conftest.exp conftest.er2 >/dev/null; then
10127 lt_cv_prog_compiler__b=yes
10128 fi
10129 else
10130 lt_cv_prog_compiler__b=yes
10131 fi
10132 fi
10133 $RM -r conftest*
10134 LDFLAGS="$save_LDFLAGS"
10135
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10138 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10139
10140 if test x"$lt_cv_prog_compiler__b" = xyes; then
10141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10142 else
10143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10144 fi
10145
10146 ;;
10147 esac
10148 fi
10149 if test "$with_gnu_ld" = no; then
10150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151 hardcode_libdir_separator=:
10152
10153 case $host_cpu in
10154 hppa*64*|ia64*)
10155 hardcode_direct=no
10156 hardcode_shlibpath_var=no
10157 ;;
10158 *)
10159 hardcode_direct=yes
10160 hardcode_direct_absolute=yes
10161 export_dynamic_flag_spec='${wl}-E'
10162
10163 # hardcode_minus_L: Not really in the search PATH,
10164 # but as the default location of the library.
10165 hardcode_minus_L=yes
10166 ;;
10167 esac
10168 fi
10169 ;;
10170
10171 irix5* | irix6* | nonstopux*)
10172 if test "$GCC" = yes; then
10173 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'
10174 # Try to use the -exported_symbol ld option, if it does not
10175 # work, assume that -exports_file does not work either and
10176 # implicitly export all symbols.
10177 save_LDFLAGS="$LDFLAGS"
10178 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int foo(void) {}
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 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'
10185
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LDFLAGS="$save_LDFLAGS"
10190 else
10191 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'
10192 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'
10193 fi
10194 archive_cmds_need_lc='no'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 hardcode_libdir_separator=:
10197 inherit_rpath=yes
10198 link_all_deplibs=yes
10199 ;;
10200
10201 netbsd*)
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10204 else
10205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10206 fi
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 newsos6)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=yes
10215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216 hardcode_libdir_separator=:
10217 hardcode_shlibpath_var=no
10218 ;;
10219
10220 *nto* | *qnx*)
10221 ;;
10222
10223 openbsd*)
10224 if test -f /usr/libexec/ld.so; then
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10227 hardcode_direct_absolute=yes
10228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10232 export_dynamic_flag_spec='${wl}-E'
10233 else
10234 case $host_os in
10235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_libdir_flag_spec='-R$libdir'
10238 ;;
10239 *)
10240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10242 ;;
10243 esac
10244 fi
10245 else
10246 ld_shlibs=no
10247 fi
10248 ;;
10249
10250 os2*)
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 allow_undefined_flag=unsupported
10254 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'
10255 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10256 ;;
10257
10258 osf3*)
10259 if test "$GCC" = yes; then
10260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10261 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'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 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'
10265 fi
10266 archive_cmds_need_lc='no'
10267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268 hardcode_libdir_separator=:
10269 ;;
10270
10271 osf4* | osf5*) # as osf3* with the addition of -msym flag
10272 if test "$GCC" = yes; then
10273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10274 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'
10275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10276 else
10277 allow_undefined_flag=' -expect_unresolved \*'
10278 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'
10279 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~
10280 $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'
10281
10282 # Both c and cxx compiler support -rpath directly
10283 hardcode_libdir_flag_spec='-rpath $libdir'
10284 fi
10285 archive_cmds_need_lc='no'
10286 hardcode_libdir_separator=:
10287 ;;
10288
10289 solaris*)
10290 no_undefined_flag=' -z defs'
10291 if test "$GCC" = yes; then
10292 wlarc='${wl}'
10293 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10296 else
10297 case `$CC -V 2>&1` in
10298 *"Compilers 5.0"*)
10299 wlarc=''
10300 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10303 ;;
10304 *)
10305 wlarc='${wl}'
10306 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10309 ;;
10310 esac
10311 fi
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_shlibpath_var=no
10314 case $host_os in
10315 solaris2.[0-5] | solaris2.[0-5].*) ;;
10316 *)
10317 # The compiler driver will combine and reorder linker options,
10318 # but understands `-z linker_flag'. GCC discards it without `$wl',
10319 # but is careful enough not to reorder.
10320 # Supported since Solaris 2.6 (maybe 2.5.1?)
10321 if test "$GCC" = yes; then
10322 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10323 else
10324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10325 fi
10326 ;;
10327 esac
10328 link_all_deplibs=yes
10329 ;;
10330
10331 sunos4*)
10332 if test "x$host_vendor" = xsequent; then
10333 # Use $CC to link under sequent, because it throws in some extra .o
10334 # files that make .init and .fini sections work.
10335 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10338 fi
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_direct=yes
10341 hardcode_minus_L=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 sysv4)
10346 case $host_vendor in
10347 sni)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_direct=yes # is this really true???
10350 ;;
10351 siemens)
10352 ## LD is ld it makes a PLAMLIB
10353 ## CC just makes a GrossModule.
10354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10355 reload_cmds='$CC -r -o $output$reload_objs'
10356 hardcode_direct=no
10357 ;;
10358 motorola)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10361 ;;
10362 esac
10363 runpath_var='LD_RUN_PATH'
10364 hardcode_shlibpath_var=no
10365 ;;
10366
10367 sysv4.3*)
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 export_dynamic_flag_spec='-Bexport'
10371 ;;
10372
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_shlibpath_var=no
10377 runpath_var=LD_RUN_PATH
10378 hardcode_runpath_var=yes
10379 ld_shlibs=yes
10380 fi
10381 ;;
10382
10383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10384 no_undefined_flag='${wl}-z,text'
10385 archive_cmds_need_lc=no
10386 hardcode_shlibpath_var=no
10387 runpath_var='LD_RUN_PATH'
10388
10389 if test "$GCC" = yes; then
10390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 else
10393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 fi
10396 ;;
10397
10398 sysv5* | sco3.2v5* | sco5v6*)
10399 # Note: We can NOT use -z defs as we might desire, because we do not
10400 # link with -lc, and that would cause any symbols used from libc to
10401 # always be unresolved, which means just about no library would
10402 # ever link correctly. If we're not using GNU ld we use -z text
10403 # though, which does catch some bad symbols but isn't as heavy-handed
10404 # as -z defs.
10405 no_undefined_flag='${wl}-z,text'
10406 allow_undefined_flag='${wl}-z,nodefs'
10407 archive_cmds_need_lc=no
10408 hardcode_shlibpath_var=no
10409 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10410 hardcode_libdir_separator=':'
10411 link_all_deplibs=yes
10412 export_dynamic_flag_spec='${wl}-Bexport'
10413 runpath_var='LD_RUN_PATH'
10414
10415 if test "$GCC" = yes; then
10416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 else
10419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 fi
10422 ;;
10423
10424 uts4*)
10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 *)
10431 ld_shlibs=no
10432 ;;
10433 esac
10434
10435 if test x$host_vendor = xsni; then
10436 case $host in
10437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10438 export_dynamic_flag_spec='${wl}-Blargedynsym'
10439 ;;
10440 esac
10441 fi
10442 fi
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10445 $as_echo "$ld_shlibs" >&6; }
10446 test "$ld_shlibs" = no && can_build_shared=no
10447
10448 with_gnu_ld=$with_gnu_ld
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 #
10465 # Do we need to explicitly link libc?
10466 #
10467 case "x$archive_cmds_need_lc" in
10468 x|xyes)
10469 # Assume -lc should be added
10470 archive_cmds_need_lc=yes
10471
10472 if test "$enable_shared" = yes && test "$GCC" = yes; then
10473 case $archive_cmds in
10474 *'~'*)
10475 # FIXME: we may have to deal with multi-command sequences.
10476 ;;
10477 '$CC '*)
10478 # Test whether the compiler implicitly links with -lc since on some
10479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10480 # to ld, don't add -lc before -lgcc.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10483 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 $RM conftest*
10487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10488
10489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10490 (eval $ac_compile) 2>&5
10491 ac_status=$?
10492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10493 test $ac_status = 0; } 2>conftest.err; then
10494 soname=conftest
10495 lib=conftest
10496 libobjs=conftest.$ac_objext
10497 deplibs=
10498 wl=$lt_prog_compiler_wl
10499 pic_flag=$lt_prog_compiler_pic
10500 compiler_flags=-v
10501 linker_flags=-v
10502 verstring=
10503 output_objdir=.
10504 libname=conftest
10505 lt_save_allow_undefined_flag=$allow_undefined_flag
10506 allow_undefined_flag=
10507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10509 ac_status=$?
10510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10511 test $ac_status = 0; }
10512 then
10513 lt_cv_archive_cmds_need_lc=no
10514 else
10515 lt_cv_archive_cmds_need_lc=yes
10516 fi
10517 allow_undefined_flag=$lt_save_allow_undefined_flag
10518 else
10519 cat conftest.err 1>&5
10520 fi
10521 $RM conftest*
10522
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10527 ;;
10528 esac
10529 fi
10530 ;;
10531 esac
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10690 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10691
10692 if test "$GCC" = yes; then
10693 case $host_os in
10694 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10695 *) lt_awk_arg="/^libraries:/" ;;
10696 esac
10697 case $host_os in
10698 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10699 *) lt_sed_strip_eq="s,=/,/,g" ;;
10700 esac
10701 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10702 case $lt_search_path_spec in
10703 *\;*)
10704 # if the path contains ";" then we assume it to be the separator
10705 # otherwise default to the standard path separator (i.e. ":") - it is
10706 # assumed that no part of a normal pathname contains ";" but that should
10707 # okay in the real world where ";" in dirpaths is itself problematic.
10708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10709 ;;
10710 *)
10711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10712 ;;
10713 esac
10714 # Ok, now we have the path, separated by spaces, we can step through it
10715 # and add multilib dir if necessary.
10716 lt_tmp_lt_search_path_spec=
10717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10718 for lt_sys_path in $lt_search_path_spec; do
10719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10721 else
10722 test -d "$lt_sys_path" && \
10723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10724 fi
10725 done
10726 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10727 BEGIN {RS=" "; FS="/|\n";} {
10728 lt_foo="";
10729 lt_count=0;
10730 for (lt_i = NF; lt_i > 0; lt_i--) {
10731 if ($lt_i != "" && $lt_i != ".") {
10732 if ($lt_i == "..") {
10733 lt_count++;
10734 } else {
10735 if (lt_count == 0) {
10736 lt_foo="/" $lt_i lt_foo;
10737 } else {
10738 lt_count--;
10739 }
10740 }
10741 }
10742 }
10743 if (lt_foo != "") { lt_freq[lt_foo]++; }
10744 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10745 }'`
10746 # AWK program above erroneously prepends '/' to C:/dos/paths
10747 # for these hosts.
10748 case $host_os in
10749 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10750 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10751 esac
10752 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10753 else
10754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10755 fi
10756 library_names_spec=
10757 libname_spec='lib$name'
10758 soname_spec=
10759 shrext_cmds=".so"
10760 postinstall_cmds=
10761 postuninstall_cmds=
10762 finish_cmds=
10763 finish_eval=
10764 shlibpath_var=
10765 shlibpath_overrides_runpath=unknown
10766 version_type=none
10767 dynamic_linker="$host_os ld.so"
10768 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10769 need_lib_prefix=unknown
10770 hardcode_into_libs=no
10771
10772 # when you set need_version to no, make sure it does not cause -set_version
10773 # flags to be left without arguments
10774 need_version=unknown
10775
10776 case $host_os in
10777 aix3*)
10778 version_type=linux
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10780 shlibpath_var=LIBPATH
10781
10782 # AIX 3 has no versioning support, so we append a major version to the name.
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 ;;
10785
10786 aix[4-9]*)
10787 version_type=linux
10788 need_lib_prefix=no
10789 need_version=no
10790 hardcode_into_libs=yes
10791 if test "$host_cpu" = ia64; then
10792 # AIX 5 supports IA64
10793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 else
10796 # With GCC up to 2.95.x, collect2 would create an import file
10797 # for dependence libraries. The import file would start with
10798 # the line `#! .'. This would cause the generated library to
10799 # depend on `.', always an invalid library. This was fixed in
10800 # development snapshots of GCC prior to 3.0.
10801 case $host_os in
10802 aix4 | aix4.[01] | aix4.[01].*)
10803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10804 echo ' yes '
10805 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10806 :
10807 else
10808 can_build_shared=no
10809 fi
10810 ;;
10811 esac
10812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10813 # soname into executable. Probably we can add versioning support to
10814 # collect2, so additional links can be useful in future.
10815 if test "$aix_use_runtimelinking" = yes; then
10816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10817 # instead of lib<name>.a to let people know that these are not
10818 # typical AIX shared libraries.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 else
10821 # We preserve .a as extension for shared libraries through AIX4.2
10822 # and later when we are not doing run time linking.
10823 library_names_spec='${libname}${release}.a $libname.a'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 fi
10826 shlibpath_var=LIBPATH
10827 fi
10828 ;;
10829
10830 amigaos*)
10831 case $host_cpu in
10832 powerpc)
10833 # Since July 2007 AmigaOS4 officially supports .so libraries.
10834 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 ;;
10837 m68k)
10838 library_names_spec='$libname.ixlibrary $libname.a'
10839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10840 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'
10841 ;;
10842 esac
10843 ;;
10844
10845 beos*)
10846 library_names_spec='${libname}${shared_ext}'
10847 dynamic_linker="$host_os ld.so"
10848 shlibpath_var=LIBRARY_PATH
10849 ;;
10850
10851 bsdi[45]*)
10852 version_type=linux
10853 need_version=no
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10860 # the default ld.so.conf also contains /usr/contrib/lib and
10861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10862 # libtool to hard-code these into programs
10863 ;;
10864
10865 cygwin* | mingw* | pw32* | cegcc*)
10866 version_type=windows
10867 shrext_cmds=".dll"
10868 need_version=no
10869 need_lib_prefix=no
10870
10871 case $GCC,$host_os in
10872 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10873 library_names_spec='$libname.dll.a'
10874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10875 postinstall_cmds='base_file=`basename \${file}`~
10876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10877 dldir=$destdir/`dirname \$dlpath`~
10878 test -d \$dldir || mkdir -p \$dldir~
10879 $install_prog $dir/$dlname \$dldir/$dlname~
10880 chmod a+x \$dldir/$dlname~
10881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10883 fi'
10884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885 dlpath=$dir/\$dldll~
10886 $RM \$dlpath'
10887 shlibpath_overrides_runpath=yes
10888
10889 case $host_os in
10890 cygwin*)
10891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893
10894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10895 ;;
10896 mingw* | cegcc*)
10897 # MinGW DLLs use traditional 'lib' prefix
10898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 ;;
10900 pw32*)
10901 # pw32 DLLs use 'pw' prefix rather than 'lib'
10902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 ;;
10904 esac
10905 ;;
10906
10907 *)
10908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10909 ;;
10910 esac
10911 dynamic_linker='Win32 ld.exe'
10912 # FIXME: first we should search . and the directory the executable is in
10913 shlibpath_var=PATH
10914 ;;
10915
10916 darwin* | rhapsody*)
10917 dynamic_linker="$host_os dyld"
10918 version_type=darwin
10919 need_lib_prefix=no
10920 need_version=no
10921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10922 soname_spec='${libname}${release}${major}$shared_ext'
10923 shlibpath_overrides_runpath=yes
10924 shlibpath_var=DYLD_LIBRARY_PATH
10925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10926
10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10929 ;;
10930
10931 dgux*)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 ;;
10939
10940 freebsd* | dragonfly*)
10941 # DragonFly does not have aout. When/if they implement a new
10942 # versioning mechanism, adjust this.
10943 if test -x /usr/bin/objformat; then
10944 objformat=`/usr/bin/objformat`
10945 else
10946 case $host_os in
10947 freebsd[23].*) objformat=aout ;;
10948 *) objformat=elf ;;
10949 esac
10950 fi
10951 version_type=freebsd-$objformat
10952 case $version_type in
10953 freebsd-elf*)
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10955 need_version=no
10956 need_lib_prefix=no
10957 ;;
10958 freebsd-*)
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10960 need_version=yes
10961 ;;
10962 esac
10963 shlibpath_var=LD_LIBRARY_PATH
10964 case $host_os in
10965 freebsd2.*)
10966 shlibpath_overrides_runpath=yes
10967 ;;
10968 freebsd3.[01]* | freebsdelf3.[01]*)
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 ;;
10972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10974 shlibpath_overrides_runpath=no
10975 hardcode_into_libs=yes
10976 ;;
10977 *) # from 4.6 on, and DragonFly
10978 shlibpath_overrides_runpath=yes
10979 hardcode_into_libs=yes
10980 ;;
10981 esac
10982 ;;
10983
10984 gnu*)
10985 version_type=linux
10986 need_lib_prefix=no
10987 need_version=no
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 hardcode_into_libs=yes
10992 ;;
10993
10994 haiku*)
10995 version_type=linux
10996 need_lib_prefix=no
10997 need_version=no
10998 dynamic_linker="$host_os runtime_loader"
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 shlibpath_var=LIBRARY_PATH
11002 shlibpath_overrides_runpath=yes
11003 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11004 hardcode_into_libs=yes
11005 ;;
11006
11007 hpux9* | hpux10* | hpux11*)
11008 # Give a soname corresponding to the major version so that dld.sl refuses to
11009 # link against other versions.
11010 version_type=sunos
11011 need_lib_prefix=no
11012 need_version=no
11013 case $host_cpu in
11014 ia64*)
11015 shrext_cmds='.so'
11016 hardcode_into_libs=yes
11017 dynamic_linker="$host_os dld.so"
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 if test "X$HPUX_IA64_MODE" = X32; then
11023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11024 else
11025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11026 fi
11027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11028 ;;
11029 hppa*64*)
11030 shrext_cmds='.sl'
11031 hardcode_into_libs=yes
11032 dynamic_linker="$host_os dld.sl"
11033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11039 ;;
11040 *)
11041 shrext_cmds='.sl'
11042 dynamic_linker="$host_os dld.sl"
11043 shlibpath_var=SHLIB_PATH
11044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 ;;
11048 esac
11049 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11050 postinstall_cmds='chmod 555 $lib'
11051 # or fails outright, so override atomically:
11052 install_override_mode=555
11053 ;;
11054
11055 interix[3-9]*)
11056 version_type=linux
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 ;;
11066
11067 irix5* | irix6* | nonstopux*)
11068 case $host_os in
11069 nonstopux*) version_type=nonstopux ;;
11070 *)
11071 if test "$lt_cv_prog_gnu_ld" = yes; then
11072 version_type=linux
11073 else
11074 version_type=irix
11075 fi ;;
11076 esac
11077 need_lib_prefix=no
11078 need_version=no
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11081 case $host_os in
11082 irix5* | nonstopux*)
11083 libsuff= shlibsuff=
11084 ;;
11085 *)
11086 case $LD in # libtool.m4 will add one of these switches to LD
11087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11088 libsuff= shlibsuff= libmagic=32-bit;;
11089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11090 libsuff=32 shlibsuff=N32 libmagic=N32;;
11091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11093 *) libsuff= shlibsuff= libmagic=never-match;;
11094 esac
11095 ;;
11096 esac
11097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11098 shlibpath_overrides_runpath=no
11099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11101 hardcode_into_libs=yes
11102 ;;
11103
11104 # No shared lib support for Linux oldld, aout, or coff.
11105 linux*oldld* | linux*aout* | linux*coff*)
11106 dynamic_linker=no
11107 ;;
11108
11109 # This must be Linux ELF.
11110 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11111 version_type=linux
11112 need_lib_prefix=no
11113 need_version=no
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=no
11119
11120 # Some binutils ld are patched to set DT_RUNPATH
11121 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 lt_cv_shlibpath_overrides_runpath=no
11125 save_LDFLAGS=$LDFLAGS
11126 save_libdir=$libdir
11127 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11128 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131
11132 int
11133 main ()
11134 {
11135
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"; then :
11141 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11142 lt_cv_shlibpath_overrides_runpath=yes
11143 fi
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LDFLAGS=$save_LDFLAGS
11148 libdir=$save_libdir
11149
11150 fi
11151
11152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11153
11154 # This implies no fast_install, which is unacceptable.
11155 # Some rework will be needed to allow for fast_install
11156 # before this can be enabled.
11157 hardcode_into_libs=yes
11158
11159 # Append ld.so.conf contents to the search path
11160 if test -f /etc/ld.so.conf; then
11161 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' ' '`
11162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11163 fi
11164
11165 # We used to test for /lib/ld.so.1 and disable shared libraries on
11166 # powerpc, because MkLinux only supported shared libraries with the
11167 # GNU dynamic linker. Since this was broken with cross compilers,
11168 # most powerpc-linux boxes support dynamic linking these days and
11169 # people can always --disable-shared, the test was removed, and we
11170 # assume the GNU/Linux dynamic linker is in use.
11171 dynamic_linker='GNU/Linux ld.so'
11172 ;;
11173
11174 netbsd*)
11175 version_type=sunos
11176 need_lib_prefix=no
11177 need_version=no
11178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11181 dynamic_linker='NetBSD (a.out) ld.so'
11182 else
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 dynamic_linker='NetBSD ld.elf_so'
11186 fi
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 ;;
11191
11192 newsos6)
11193 version_type=linux
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 ;;
11198
11199 *nto* | *qnx*)
11200 version_type=qnx
11201 need_lib_prefix=no
11202 need_version=no
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11208 dynamic_linker='ldqnx.so'
11209 ;;
11210
11211 openbsd*)
11212 version_type=sunos
11213 sys_lib_dlsearch_path_spec="/usr/lib"
11214 need_lib_prefix=no
11215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11216 case $host_os in
11217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11218 *) need_version=no ;;
11219 esac
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11224 case $host_os in
11225 openbsd2.[89] | openbsd2.[89].*)
11226 shlibpath_overrides_runpath=no
11227 ;;
11228 *)
11229 shlibpath_overrides_runpath=yes
11230 ;;
11231 esac
11232 else
11233 shlibpath_overrides_runpath=yes
11234 fi
11235 ;;
11236
11237 os2*)
11238 libname_spec='$name'
11239 shrext_cmds=".dll"
11240 need_lib_prefix=no
11241 library_names_spec='$libname${shared_ext} $libname.a'
11242 dynamic_linker='OS/2 ld.exe'
11243 shlibpath_var=LIBPATH
11244 ;;
11245
11246 osf3* | osf4* | osf5*)
11247 version_type=osf
11248 need_lib_prefix=no
11249 need_version=no
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11255 ;;
11256
11257 rdos*)
11258 dynamic_linker=no
11259 ;;
11260
11261 solaris*)
11262 version_type=linux
11263 need_lib_prefix=no
11264 need_version=no
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11269 hardcode_into_libs=yes
11270 # ldd complains unless libraries are executable
11271 postinstall_cmds='chmod +x $lib'
11272 ;;
11273
11274 sunos4*)
11275 version_type=sunos
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=yes
11280 if test "$with_gnu_ld" = yes; then
11281 need_lib_prefix=no
11282 fi
11283 need_version=yes
11284 ;;
11285
11286 sysv4 | sysv4.3*)
11287 version_type=linux
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 case $host_vendor in
11292 sni)
11293 shlibpath_overrides_runpath=no
11294 need_lib_prefix=no
11295 runpath_var=LD_RUN_PATH
11296 ;;
11297 siemens)
11298 need_lib_prefix=no
11299 ;;
11300 motorola)
11301 need_lib_prefix=no
11302 need_version=no
11303 shlibpath_overrides_runpath=no
11304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11305 ;;
11306 esac
11307 ;;
11308
11309 sysv4*MP*)
11310 if test -d /usr/nec ;then
11311 version_type=linux
11312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11313 soname_spec='$libname${shared_ext}.$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 fi
11316 ;;
11317
11318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11319 version_type=freebsd-elf
11320 need_lib_prefix=no
11321 need_version=no
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11327 if test "$with_gnu_ld" = yes; then
11328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11329 else
11330 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11331 case $host_os in
11332 sco3.2v5*)
11333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11334 ;;
11335 esac
11336 fi
11337 sys_lib_dlsearch_path_spec='/usr/lib'
11338 ;;
11339
11340 tpf*)
11341 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11342 version_type=linux
11343 need_lib_prefix=no
11344 need_version=no
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348 hardcode_into_libs=yes
11349 ;;
11350
11351 uts4*)
11352 version_type=linux
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 ;;
11357
11358 *)
11359 dynamic_linker=no
11360 ;;
11361 esac
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11363 $as_echo "$dynamic_linker" >&6; }
11364 test "$dynamic_linker" = no && can_build_shared=no
11365
11366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11367 if test "$GCC" = yes; then
11368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11369 fi
11370
11371 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11372 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11373 fi
11374 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11375 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11376 fi
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11470 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11471 hardcode_action=
11472 if test -n "$hardcode_libdir_flag_spec" ||
11473 test -n "$runpath_var" ||
11474 test "X$hardcode_automatic" = "Xyes" ; then
11475
11476 # We can hardcode non-existent directories.
11477 if test "$hardcode_direct" != no &&
11478 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11479 # have to relink, otherwise we might link with an installed library
11480 # when we should be linking with a yet-to-be-installed one
11481 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11482 test "$hardcode_minus_L" != no; then
11483 # Linking always hardcodes the temporary library directory.
11484 hardcode_action=relink
11485 else
11486 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11487 hardcode_action=immediate
11488 fi
11489 else
11490 # We cannot hardcode anything, or else we can only hardcode existing
11491 # directories.
11492 hardcode_action=unsupported
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11495 $as_echo "$hardcode_action" >&6; }
11496
11497 if test "$hardcode_action" = relink ||
11498 test "$inherit_rpath" = yes; then
11499 # Fast installation is not supported
11500 enable_fast_install=no
11501 elif test "$shlibpath_overrides_runpath" = yes ||
11502 test "$enable_shared" = no; then
11503 # Fast installation is not necessary
11504 enable_fast_install=needless
11505 fi
11506
11507
11508
11509
11510
11511
11512 if test "x$enable_dlopen" != xyes; then
11513 enable_dlopen=unknown
11514 enable_dlopen_self=unknown
11515 enable_dlopen_self_static=unknown
11516 else
11517 lt_cv_dlopen=no
11518 lt_cv_dlopen_libs=
11519
11520 case $host_os in
11521 beos*)
11522 lt_cv_dlopen="load_add_on"
11523 lt_cv_dlopen_libs=
11524 lt_cv_dlopen_self=yes
11525 ;;
11526
11527 mingw* | pw32* | cegcc*)
11528 lt_cv_dlopen="LoadLibrary"
11529 lt_cv_dlopen_libs=
11530 ;;
11531
11532 cygwin*)
11533 lt_cv_dlopen="dlopen"
11534 lt_cv_dlopen_libs=
11535 ;;
11536
11537 darwin*)
11538 # if libdl is installed we need to link against it
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11540 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11541 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldl $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dlopen ();
11556 int
11557 main ()
11558 {
11559 return dlopen ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_dl_dlopen=yes
11566 else
11567 ac_cv_lib_dl_dlopen=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11574 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11575 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11577 else
11578
11579 lt_cv_dlopen="dyld"
11580 lt_cv_dlopen_libs=
11581 lt_cv_dlopen_self=yes
11582
11583 fi
11584
11585 ;;
11586
11587 *)
11588 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11589 if test "x$ac_cv_func_shl_load" = x""yes; then :
11590 lt_cv_dlopen="shl_load"
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11593 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11594 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-ldld $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char shl_load ();
11609 int
11610 main ()
11611 {
11612 return shl_load ();
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_lib_dld_shl_load=yes
11619 else
11620 ac_cv_lib_dld_shl_load=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11627 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11628 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11630 else
11631 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11632 if test "x$ac_cv_func_dlopen" = x""yes; then :
11633 lt_cv_dlopen="dlopen"
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11637 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-ldl $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char dlopen ();
11652 int
11653 main ()
11654 {
11655 return dlopen ();
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_dl_dlopen=yes
11662 else
11663 ac_cv_lib_dl_dlopen=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11671 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11675 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11676 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lsvld $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char dlopen ();
11691 int
11692 main ()
11693 {
11694 return dlopen ();
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 ac_cv_lib_svld_dlopen=yes
11701 else
11702 ac_cv_lib_svld_dlopen=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11709 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11710 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11714 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11715 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-ldld $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char dld_link ();
11730 int
11731 main ()
11732 {
11733 return dld_link ();
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 ac_cv_lib_dld_dld_link=yes
11740 else
11741 ac_cv_lib_dld_dld_link=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11748 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11749 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11750 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11751 fi
11752
11753
11754 fi
11755
11756
11757 fi
11758
11759
11760 fi
11761
11762
11763 fi
11764
11765
11766 fi
11767
11768 ;;
11769 esac
11770
11771 if test "x$lt_cv_dlopen" != xno; then
11772 enable_dlopen=yes
11773 else
11774 enable_dlopen=no
11775 fi
11776
11777 case $lt_cv_dlopen in
11778 dlopen)
11779 save_CPPFLAGS="$CPPFLAGS"
11780 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11781
11782 save_LDFLAGS="$LDFLAGS"
11783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11784
11785 save_LIBS="$LIBS"
11786 LIBS="$lt_cv_dlopen_libs $LIBS"
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11789 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11790 if test "${lt_cv_dlopen_self+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test "$cross_compiling" = yes; then :
11794 lt_cv_dlopen_self=cross
11795 else
11796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11797 lt_status=$lt_dlunknown
11798 cat > conftest.$ac_ext <<_LT_EOF
11799 #line 11799 "configure"
11800 #include "confdefs.h"
11801
11802 #if HAVE_DLFCN_H
11803 #include <dlfcn.h>
11804 #endif
11805
11806 #include <stdio.h>
11807
11808 #ifdef RTLD_GLOBAL
11809 # define LT_DLGLOBAL RTLD_GLOBAL
11810 #else
11811 # ifdef DL_GLOBAL
11812 # define LT_DLGLOBAL DL_GLOBAL
11813 # else
11814 # define LT_DLGLOBAL 0
11815 # endif
11816 #endif
11817
11818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11819 find out it does not work in some platform. */
11820 #ifndef LT_DLLAZY_OR_NOW
11821 # ifdef RTLD_LAZY
11822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11823 # else
11824 # ifdef DL_LAZY
11825 # define LT_DLLAZY_OR_NOW DL_LAZY
11826 # else
11827 # ifdef RTLD_NOW
11828 # define LT_DLLAZY_OR_NOW RTLD_NOW
11829 # else
11830 # ifdef DL_NOW
11831 # define LT_DLLAZY_OR_NOW DL_NOW
11832 # else
11833 # define LT_DLLAZY_OR_NOW 0
11834 # endif
11835 # endif
11836 # endif
11837 # endif
11838 #endif
11839
11840 /* When -fvisbility=hidden is used, assume the code has been annotated
11841 correspondingly for the symbols needed. */
11842 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11843 void fnord () __attribute__((visibility("default")));
11844 #endif
11845
11846 void fnord () { int i=42; }
11847 int main ()
11848 {
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11851
11852 if (self)
11853 {
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 else
11856 {
11857 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11858 else puts (dlerror ());
11859 }
11860 /* dlclose (self); */
11861 }
11862 else
11863 puts (dlerror ());
11864
11865 return status;
11866 }
11867 _LT_EOF
11868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11869 (eval $ac_link) 2>&5
11870 ac_status=$?
11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11873 (./conftest; exit; ) >&5 2>/dev/null
11874 lt_status=$?
11875 case x$lt_status in
11876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11878 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11879 esac
11880 else :
11881 # compilation failed
11882 lt_cv_dlopen_self=no
11883 fi
11884 fi
11885 rm -fr conftest*
11886
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11890 $as_echo "$lt_cv_dlopen_self" >&6; }
11891
11892 if test "x$lt_cv_dlopen_self" = xyes; then
11893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11895 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11896 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 if test "$cross_compiling" = yes; then :
11900 lt_cv_dlopen_self_static=cross
11901 else
11902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11903 lt_status=$lt_dlunknown
11904 cat > conftest.$ac_ext <<_LT_EOF
11905 #line 11905 "configure"
11906 #include "confdefs.h"
11907
11908 #if HAVE_DLFCN_H
11909 #include <dlfcn.h>
11910 #endif
11911
11912 #include <stdio.h>
11913
11914 #ifdef RTLD_GLOBAL
11915 # define LT_DLGLOBAL RTLD_GLOBAL
11916 #else
11917 # ifdef DL_GLOBAL
11918 # define LT_DLGLOBAL DL_GLOBAL
11919 # else
11920 # define LT_DLGLOBAL 0
11921 # endif
11922 #endif
11923
11924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11925 find out it does not work in some platform. */
11926 #ifndef LT_DLLAZY_OR_NOW
11927 # ifdef RTLD_LAZY
11928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11929 # else
11930 # ifdef DL_LAZY
11931 # define LT_DLLAZY_OR_NOW DL_LAZY
11932 # else
11933 # ifdef RTLD_NOW
11934 # define LT_DLLAZY_OR_NOW RTLD_NOW
11935 # else
11936 # ifdef DL_NOW
11937 # define LT_DLLAZY_OR_NOW DL_NOW
11938 # else
11939 # define LT_DLLAZY_OR_NOW 0
11940 # endif
11941 # endif
11942 # endif
11943 # endif
11944 #endif
11945
11946 /* When -fvisbility=hidden is used, assume the code has been annotated
11947 correspondingly for the symbols needed. */
11948 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11949 void fnord () __attribute__((visibility("default")));
11950 #endif
11951
11952 void fnord () { int i=42; }
11953 int main ()
11954 {
11955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956 int status = $lt_dlunknown;
11957
11958 if (self)
11959 {
11960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11961 else
11962 {
11963 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11964 else puts (dlerror ());
11965 }
11966 /* dlclose (self); */
11967 }
11968 else
11969 puts (dlerror ());
11970
11971 return status;
11972 }
11973 _LT_EOF
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11975 (eval $ac_link) 2>&5
11976 ac_status=$?
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11979 (./conftest; exit; ) >&5 2>/dev/null
11980 lt_status=$?
11981 case x$lt_status in
11982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11984 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11985 esac
11986 else :
11987 # compilation failed
11988 lt_cv_dlopen_self_static=no
11989 fi
11990 fi
11991 rm -fr conftest*
11992
11993
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11996 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11997 fi
11998
11999 CPPFLAGS="$save_CPPFLAGS"
12000 LDFLAGS="$save_LDFLAGS"
12001 LIBS="$save_LIBS"
12002 ;;
12003 esac
12004
12005 case $lt_cv_dlopen_self in
12006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12007 *) enable_dlopen_self=unknown ;;
12008 esac
12009
12010 case $lt_cv_dlopen_self_static in
12011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12012 *) enable_dlopen_self_static=unknown ;;
12013 esac
12014 fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032 striplib=
12033 old_striplib=
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12035 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12036 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12041 else
12042 # FIXME - insert some real tests, host_os isn't really good enough
12043 case $host_os in
12044 darwin*)
12045 if test -n "$STRIP" ; then
12046 striplib="$STRIP -x"
12047 old_striplib="$STRIP -S"
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049 $as_echo "yes" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054 ;;
12055 *)
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058 ;;
12059 esac
12060 fi
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073 # Report which library types will actually be built
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12075 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12077 $as_echo "$can_build_shared" >&6; }
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12080 $as_echo_n "checking whether to build shared libraries... " >&6; }
12081 test "$can_build_shared" = "no" && enable_shared=no
12082
12083 # On AIX, shared libraries and static libraries use the same namespace, and
12084 # are all built from PIC.
12085 case $host_os in
12086 aix3*)
12087 test "$enable_shared" = yes && enable_static=no
12088 if test -n "$RANLIB"; then
12089 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12090 postinstall_cmds='$RANLIB $lib'
12091 fi
12092 ;;
12093
12094 aix[4-9]*)
12095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12096 test "$enable_shared" = yes && enable_static=no
12097 fi
12098 ;;
12099 esac
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12101 $as_echo "$enable_shared" >&6; }
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12104 $as_echo_n "checking whether to build static libraries... " >&6; }
12105 # Make sure either enable_shared or enable_static is yes.
12106 test "$enable_shared" = yes || enable_static=yes
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12108 $as_echo "$enable_static" >&6; }
12109
12110
12111
12112
12113 fi
12114 ac_ext=c
12115 ac_cpp='$CPP $CPPFLAGS'
12116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12119
12120 CC="$lt_save_CC"
12121
12122 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12123 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12124 (test "X$CXX" != "Xg++"))) ; then
12125 ac_ext=cpp
12126 ac_cpp='$CXXCPP $CPPFLAGS'
12127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12131 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12132 if test -z "$CXXCPP"; then
12133 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 # Double quotes because CXXCPP needs to be expanded
12137 for CXXCPP in "$CXX -E" "/lib/cpp"
12138 do
12139 ac_preproc_ok=false
12140 for ac_cxx_preproc_warn_flag in '' yes
12141 do
12142 # Use a header file that comes with gcc, so configuring glibc
12143 # with a fresh cross-compiler works.
12144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12145 # <limits.h> exists even on freestanding compilers.
12146 # On the NeXT, cc -E runs the code through the compiler's parser,
12147 # not just through cpp. "Syntax error" is here to catch this case.
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #ifdef __STDC__
12151 # include <limits.h>
12152 #else
12153 # include <assert.h>
12154 #endif
12155 Syntax error
12156 _ACEOF
12157 if ac_fn_cxx_try_cpp "$LINENO"; then :
12158
12159 else
12160 # Broken: fails on valid input.
12161 continue
12162 fi
12163 rm -f conftest.err conftest.$ac_ext
12164
12165 # OK, works on sane cases. Now check whether nonexistent headers
12166 # can be detected and how.
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #include <ac_nonexistent.h>
12170 _ACEOF
12171 if ac_fn_cxx_try_cpp "$LINENO"; then :
12172 # Broken: success on invalid input.
12173 continue
12174 else
12175 # Passes both tests.
12176 ac_preproc_ok=:
12177 break
12178 fi
12179 rm -f conftest.err conftest.$ac_ext
12180
12181 done
12182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12183 rm -f conftest.err conftest.$ac_ext
12184 if $ac_preproc_ok; then :
12185 break
12186 fi
12187
12188 done
12189 ac_cv_prog_CXXCPP=$CXXCPP
12190
12191 fi
12192 CXXCPP=$ac_cv_prog_CXXCPP
12193 else
12194 ac_cv_prog_CXXCPP=$CXXCPP
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12197 $as_echo "$CXXCPP" >&6; }
12198 ac_preproc_ok=false
12199 for ac_cxx_preproc_warn_flag in '' yes
12200 do
12201 # Use a header file that comes with gcc, so configuring glibc
12202 # with a fresh cross-compiler works.
12203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 # <limits.h> exists even on freestanding compilers.
12205 # On the NeXT, cc -E runs the code through the compiler's parser,
12206 # not just through cpp. "Syntax error" is here to catch this case.
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209 #ifdef __STDC__
12210 # include <limits.h>
12211 #else
12212 # include <assert.h>
12213 #endif
12214 Syntax error
12215 _ACEOF
12216 if ac_fn_cxx_try_cpp "$LINENO"; then :
12217
12218 else
12219 # Broken: fails on valid input.
12220 continue
12221 fi
12222 rm -f conftest.err conftest.$ac_ext
12223
12224 # OK, works on sane cases. Now check whether nonexistent headers
12225 # can be detected and how.
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 #include <ac_nonexistent.h>
12229 _ACEOF
12230 if ac_fn_cxx_try_cpp "$LINENO"; then :
12231 # Broken: success on invalid input.
12232 continue
12233 else
12234 # Passes both tests.
12235 ac_preproc_ok=:
12236 break
12237 fi
12238 rm -f conftest.err conftest.$ac_ext
12239
12240 done
12241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12242 rm -f conftest.err conftest.$ac_ext
12243 if $ac_preproc_ok; then :
12244
12245 else
12246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12248 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12249 See \`config.log' for more details." "$LINENO" 5; }
12250 fi
12251
12252 ac_ext=c
12253 ac_cpp='$CPP $CPPFLAGS'
12254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258 else
12259 _lt_caught_CXX_error=yes
12260 fi
12261
12262 ac_ext=cpp
12263 ac_cpp='$CXXCPP $CPPFLAGS'
12264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12267
12268 archive_cmds_need_lc_CXX=no
12269 allow_undefined_flag_CXX=
12270 always_export_symbols_CXX=no
12271 archive_expsym_cmds_CXX=
12272 compiler_needs_object_CXX=no
12273 export_dynamic_flag_spec_CXX=
12274 hardcode_direct_CXX=no
12275 hardcode_direct_absolute_CXX=no
12276 hardcode_libdir_flag_spec_CXX=
12277 hardcode_libdir_flag_spec_ld_CXX=
12278 hardcode_libdir_separator_CXX=
12279 hardcode_minus_L_CXX=no
12280 hardcode_shlibpath_var_CXX=unsupported
12281 hardcode_automatic_CXX=no
12282 inherit_rpath_CXX=no
12283 module_cmds_CXX=
12284 module_expsym_cmds_CXX=
12285 link_all_deplibs_CXX=unknown
12286 old_archive_cmds_CXX=$old_archive_cmds
12287 reload_flag_CXX=$reload_flag
12288 reload_cmds_CXX=$reload_cmds
12289 no_undefined_flag_CXX=
12290 whole_archive_flag_spec_CXX=
12291 enable_shared_with_static_runtimes_CXX=no
12292
12293 # Source file extension for C++ test sources.
12294 ac_ext=cpp
12295
12296 # Object file extension for compiled C++ test sources.
12297 objext=o
12298 objext_CXX=$objext
12299
12300 # No sense in running all these tests if we already determined that
12301 # the CXX compiler isn't working. Some variables (like enable_shared)
12302 # are currently assumed to apply to all compilers on this platform,
12303 # and will be corrupted by setting them based on a non-working compiler.
12304 if test "$_lt_caught_CXX_error" != yes; then
12305 # Code to be used in simple compile tests
12306 lt_simple_compile_test_code="int some_variable = 0;"
12307
12308 # Code to be used in simple link tests
12309 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12310
12311 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12312
12313
12314
12315
12316
12317
12318 # If no C compiler was specified, use CC.
12319 LTCC=${LTCC-"$CC"}
12320
12321 # If no C compiler flags were specified, use CFLAGS.
12322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12323
12324 # Allow CC to be a program name with arguments.
12325 compiler=$CC
12326
12327
12328 # save warnings/boilerplate of simple test code
12329 ac_outfile=conftest.$ac_objext
12330 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12332 _lt_compiler_boilerplate=`cat conftest.err`
12333 $RM conftest*
12334
12335 ac_outfile=conftest.$ac_objext
12336 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12338 _lt_linker_boilerplate=`cat conftest.err`
12339 $RM -r conftest*
12340
12341
12342 # Allow CC to be a program name with arguments.
12343 lt_save_CC=$CC
12344 lt_save_LD=$LD
12345 lt_save_GCC=$GCC
12346 GCC=$GXX
12347 lt_save_with_gnu_ld=$with_gnu_ld
12348 lt_save_path_LD=$lt_cv_path_LD
12349 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12350 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12351 else
12352 $as_unset lt_cv_prog_gnu_ld
12353 fi
12354 if test -n "${lt_cv_path_LDCXX+set}"; then
12355 lt_cv_path_LD=$lt_cv_path_LDCXX
12356 else
12357 $as_unset lt_cv_path_LD
12358 fi
12359 test -z "${LDCXX+set}" || LD=$LDCXX
12360 CC=${CXX-"c++"}
12361 compiler=$CC
12362 compiler_CXX=$CC
12363 for cc_temp in $compiler""; do
12364 case $cc_temp in
12365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12367 \-*) ;;
12368 *) break;;
12369 esac
12370 done
12371 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12372
12373
12374 if test -n "$compiler"; then
12375 # We don't want -fno-exception when compiling C++ code, so set the
12376 # no_builtin_flag separately
12377 if test "$GXX" = yes; then
12378 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12379 else
12380 lt_prog_compiler_no_builtin_flag_CXX=
12381 fi
12382
12383 if test "$GXX" = yes; then
12384 # Set up default GNU C++ configuration
12385
12386
12387
12388 # Check whether --with-gnu-ld was given.
12389 if test "${with_gnu_ld+set}" = set; then :
12390 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12391 else
12392 with_gnu_ld=no
12393 fi
12394
12395 ac_prog=ld
12396 if test "$GCC" = yes; then
12397 # Check if gcc -print-prog-name=ld gives a path.
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12399 $as_echo_n "checking for ld used by $CC... " >&6; }
12400 case $host in
12401 *-*-mingw*)
12402 # gcc leaves a trailing carriage return which upsets mingw
12403 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12404 *)
12405 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12406 esac
12407 case $ac_prog in
12408 # Accept absolute paths.
12409 [\\/]* | ?:[\\/]*)
12410 re_direlt='/[^/][^/]*/\.\./'
12411 # Canonicalize the pathname of ld
12412 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12413 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12414 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12415 done
12416 test -z "$LD" && LD="$ac_prog"
12417 ;;
12418 "")
12419 # If it fails, then pretend we aren't using GCC.
12420 ac_prog=ld
12421 ;;
12422 *)
12423 # If it is relative, then search for the first ld in PATH.
12424 with_gnu_ld=unknown
12425 ;;
12426 esac
12427 elif test "$with_gnu_ld" = yes; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12429 $as_echo_n "checking for GNU ld... " >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12432 $as_echo_n "checking for non-GNU ld... " >&6; }
12433 fi
12434 if test "${lt_cv_path_LD+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test -z "$LD"; then
12438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12439 for ac_dir in $PATH; do
12440 IFS="$lt_save_ifs"
12441 test -z "$ac_dir" && ac_dir=.
12442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12443 lt_cv_path_LD="$ac_dir/$ac_prog"
12444 # Check to see if the program is GNU ld. I'd rather use --version,
12445 # but apparently some variants of GNU ld only accept -v.
12446 # Break only if it was the GNU/non-GNU ld that we prefer.
12447 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12448 *GNU* | *'with BFD'*)
12449 test "$with_gnu_ld" != no && break
12450 ;;
12451 *)
12452 test "$with_gnu_ld" != yes && break
12453 ;;
12454 esac
12455 fi
12456 done
12457 IFS="$lt_save_ifs"
12458 else
12459 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12460 fi
12461 fi
12462
12463 LD="$lt_cv_path_LD"
12464 if test -n "$LD"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12466 $as_echo "$LD" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470 fi
12471 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12473 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12474 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12478 case `$LD -v 2>&1 </dev/null` in
12479 *GNU* | *'with BFD'*)
12480 lt_cv_prog_gnu_ld=yes
12481 ;;
12482 *)
12483 lt_cv_prog_gnu_ld=no
12484 ;;
12485 esac
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12488 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12489 with_gnu_ld=$lt_cv_prog_gnu_ld
12490
12491
12492
12493
12494
12495
12496
12497 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12498 # archiving commands below assume that GNU ld is being used.
12499 if test "$with_gnu_ld" = yes; then
12500 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12501 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'
12502
12503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12505
12506 # If archive_cmds runs LD, not CC, wlarc should be empty
12507 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12508 # investigate it a little bit more. (MM)
12509 wlarc='${wl}'
12510
12511 # ancient GNU ld didn't support --whole-archive et. al.
12512 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12513 $GREP 'no-whole-archive' > /dev/null; then
12514 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12515 else
12516 whole_archive_flag_spec_CXX=
12517 fi
12518 else
12519 with_gnu_ld=no
12520 wlarc=
12521
12522 # A generic and very simple default shared library creation
12523 # command for GNU C++ for the case where it uses the native
12524 # linker, instead of GNU ld. If possible, this setting should
12525 # overridden to take advantage of the native linker features on
12526 # the platform it is being used on.
12527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12528 fi
12529
12530 # Commands to make compiler produce verbose output that lists
12531 # what "hidden" libraries, object files and flags are used when
12532 # linking a shared library.
12533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12534
12535 else
12536 GXX=no
12537 with_gnu_ld=no
12538 wlarc=
12539 fi
12540
12541 # PORTME: fill in a description of your system's C++ link characteristics
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12543 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12544 ld_shlibs_CXX=yes
12545 case $host_os in
12546 aix3*)
12547 # FIXME: insert proper C++ library support
12548 ld_shlibs_CXX=no
12549 ;;
12550 aix[4-9]*)
12551 if test "$host_cpu" = ia64; then
12552 # On IA64, the linker does run time linking by default, so we don't
12553 # have to do anything special.
12554 aix_use_runtimelinking=no
12555 exp_sym_flag='-Bexport'
12556 no_entry_flag=""
12557 else
12558 aix_use_runtimelinking=no
12559
12560 # Test if we are trying to use run time linking or normal
12561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12562 # need to do runtime linking.
12563 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12564 for ld_flag in $LDFLAGS; do
12565 case $ld_flag in
12566 *-brtl*)
12567 aix_use_runtimelinking=yes
12568 break
12569 ;;
12570 esac
12571 done
12572 ;;
12573 esac
12574
12575 exp_sym_flag='-bexport'
12576 no_entry_flag='-bnoentry'
12577 fi
12578
12579 # When large executables or shared objects are built, AIX ld can
12580 # have problems creating the table of contents. If linking a library
12581 # or program results in "error TOC overflow" add -mminimal-toc to
12582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12584
12585 archive_cmds_CXX=''
12586 hardcode_direct_CXX=yes
12587 hardcode_direct_absolute_CXX=yes
12588 hardcode_libdir_separator_CXX=':'
12589 link_all_deplibs_CXX=yes
12590 file_list_spec_CXX='${wl}-f,'
12591
12592 if test "$GXX" = yes; then
12593 case $host_os in aix4.[012]|aix4.[012].*)
12594 # We only want to do this on AIX 4.2 and lower, the check
12595 # below for broken collect2 doesn't work under 4.3+
12596 collect2name=`${CC} -print-prog-name=collect2`
12597 if test -f "$collect2name" &&
12598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12599 then
12600 # We have reworked collect2
12601 :
12602 else
12603 # We have old collect2
12604 hardcode_direct_CXX=unsupported
12605 # It fails to find uninstalled libraries when the uninstalled
12606 # path is not listed in the libpath. Setting hardcode_minus_L
12607 # to unsupported forces relinking
12608 hardcode_minus_L_CXX=yes
12609 hardcode_libdir_flag_spec_CXX='-L$libdir'
12610 hardcode_libdir_separator_CXX=
12611 fi
12612 esac
12613 shared_flag='-shared'
12614 if test "$aix_use_runtimelinking" = yes; then
12615 shared_flag="$shared_flag "'${wl}-G'
12616 fi
12617 else
12618 # not using gcc
12619 if test "$host_cpu" = ia64; then
12620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12621 # chokes on -Wl,-G. The following line is correct:
12622 shared_flag='-G'
12623 else
12624 if test "$aix_use_runtimelinking" = yes; then
12625 shared_flag='${wl}-G'
12626 else
12627 shared_flag='${wl}-bM:SRE'
12628 fi
12629 fi
12630 fi
12631
12632 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12633 # It seems that -bexpall does not export symbols beginning with
12634 # underscore (_), so it is better to generate a list of symbols to
12635 # export.
12636 always_export_symbols_CXX=yes
12637 if test "$aix_use_runtimelinking" = yes; then
12638 # Warning - without using the other runtime loading flags (-brtl),
12639 # -berok will link without error, but may produce a broken library.
12640 allow_undefined_flag_CXX='-berok'
12641 # Determine the default libpath from the value encoded in an empty
12642 # executable.
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645
12646 int
12647 main ()
12648 {
12649
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_cxx_try_link "$LINENO"; then :
12655
12656 lt_aix_libpath_sed='
12657 /Import File Strings/,/^$/ {
12658 /^0/ {
12659 s/^0 *\(.*\)$/\1/
12660 p
12661 }
12662 }'
12663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12664 # Check for a 64-bit object if we didn't find anything.
12665 if test -z "$aix_libpath"; then
12666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12667 fi
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12672
12673 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12674
12675 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"
12676 else
12677 if test "$host_cpu" = ia64; then
12678 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12679 allow_undefined_flag_CXX="-z nodefs"
12680 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"
12681 else
12682 # Determine the default libpath from the value encoded in an
12683 # empty executable.
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686
12687 int
12688 main ()
12689 {
12690
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_cxx_try_link "$LINENO"; then :
12696
12697 lt_aix_libpath_sed='
12698 /Import File Strings/,/^$/ {
12699 /^0/ {
12700 s/^0 *\(.*\)$/\1/
12701 p
12702 }
12703 }'
12704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12705 # Check for a 64-bit object if we didn't find anything.
12706 if test -z "$aix_libpath"; then
12707 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12708 fi
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12713
12714 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12715 # Warning - without using the other run time loading flags,
12716 # -berok will link without error, but may produce a broken library.
12717 no_undefined_flag_CXX=' ${wl}-bernotok'
12718 allow_undefined_flag_CXX=' ${wl}-berok'
12719 if test "$with_gnu_ld" = yes; then
12720 # We only use this code for GNU lds that support --whole-archive.
12721 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12722 else
12723 # Exported symbols can be pulled into shared objects from archives
12724 whole_archive_flag_spec_CXX='$convenience'
12725 fi
12726 archive_cmds_need_lc_CXX=yes
12727 # This is similar to how AIX traditionally builds its shared
12728 # libraries.
12729 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'
12730 fi
12731 fi
12732 ;;
12733
12734 beos*)
12735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12736 allow_undefined_flag_CXX=unsupported
12737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12738 # support --undefined. This deserves some investigation. FIXME
12739 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 else
12741 ld_shlibs_CXX=no
12742 fi
12743 ;;
12744
12745 chorus*)
12746 case $cc_basename in
12747 *)
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12750 ;;
12751 esac
12752 ;;
12753
12754 cygwin* | mingw* | pw32* | cegcc*)
12755 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12756 # as there is no search path for DLLs.
12757 hardcode_libdir_flag_spec_CXX='-L$libdir'
12758 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12759 allow_undefined_flag_CXX=unsupported
12760 always_export_symbols_CXX=no
12761 enable_shared_with_static_runtimes_CXX=yes
12762
12763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12764 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'
12765 # If the export-symbols file already is a .def file (1st line
12766 # is EXPORTS), use it as is; otherwise, prepend...
12767 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12768 cp $export_symbols $output_objdir/$soname.def;
12769 else
12770 echo EXPORTS > $output_objdir/$soname.def;
12771 cat $export_symbols >> $output_objdir/$soname.def;
12772 fi~
12773 $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'
12774 else
12775 ld_shlibs_CXX=no
12776 fi
12777 ;;
12778 darwin* | rhapsody*)
12779
12780
12781 archive_cmds_need_lc_CXX=no
12782 hardcode_direct_CXX=no
12783 hardcode_automatic_CXX=yes
12784 hardcode_shlibpath_var_CXX=unsupported
12785 if test "$lt_cv_ld_force_load" = "yes"; then
12786 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\"`'
12787 else
12788 whole_archive_flag_spec_CXX=''
12789 fi
12790 link_all_deplibs_CXX=yes
12791 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12792 case $cc_basename in
12793 ifort*) _lt_dar_can_shared=yes ;;
12794 *) _lt_dar_can_shared=$GCC ;;
12795 esac
12796 if test "$_lt_dar_can_shared" = "yes"; then
12797 output_verbose_link_cmd=func_echo_all
12798 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}"
12799 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12800 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}"
12801 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}"
12802 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12803 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}"
12804 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}"
12805 fi
12806
12807 else
12808 ld_shlibs_CXX=no
12809 fi
12810
12811 ;;
12812
12813 dgux*)
12814 case $cc_basename in
12815 ec++*)
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 ;;
12819 ghcx*)
12820 # Green Hills C++ Compiler
12821 # FIXME: insert proper C++ library support
12822 ld_shlibs_CXX=no
12823 ;;
12824 *)
12825 # FIXME: insert proper C++ library support
12826 ld_shlibs_CXX=no
12827 ;;
12828 esac
12829 ;;
12830
12831 freebsd2.*)
12832 # C++ shared libraries reported to be fairly broken before
12833 # switch to ELF
12834 ld_shlibs_CXX=no
12835 ;;
12836
12837 freebsd-elf*)
12838 archive_cmds_need_lc_CXX=no
12839 ;;
12840
12841 freebsd* | dragonfly*)
12842 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12843 # conventions
12844 ld_shlibs_CXX=yes
12845 ;;
12846
12847 gnu*)
12848 ;;
12849
12850 haiku*)
12851 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852 link_all_deplibs_CXX=yes
12853 ;;
12854
12855 hpux9*)
12856 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12857 hardcode_libdir_separator_CXX=:
12858 export_dynamic_flag_spec_CXX='${wl}-E'
12859 hardcode_direct_CXX=yes
12860 hardcode_minus_L_CXX=yes # Not in the search PATH,
12861 # but as the default
12862 # location of the library.
12863
12864 case $cc_basename in
12865 CC*)
12866 # FIXME: insert proper C++ library support
12867 ld_shlibs_CXX=no
12868 ;;
12869 aCC*)
12870 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'
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12874 #
12875 # There doesn't appear to be a way to prevent this compiler from
12876 # explicitly linking system object files so we need to strip them
12877 # from the output so that they don't get included in the library
12878 # dependencies.
12879 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"'
12880 ;;
12881 *)
12882 if test "$GXX" = yes; then
12883 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'
12884 else
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12887 fi
12888 ;;
12889 esac
12890 ;;
12891
12892 hpux10*|hpux11*)
12893 if test $with_gnu_ld = no; then
12894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12895 hardcode_libdir_separator_CXX=:
12896
12897 case $host_cpu in
12898 hppa*64*|ia64*)
12899 ;;
12900 *)
12901 export_dynamic_flag_spec_CXX='${wl}-E'
12902 ;;
12903 esac
12904 fi
12905 case $host_cpu in
12906 hppa*64*|ia64*)
12907 hardcode_direct_CXX=no
12908 hardcode_shlibpath_var_CXX=no
12909 ;;
12910 *)
12911 hardcode_direct_CXX=yes
12912 hardcode_direct_absolute_CXX=yes
12913 hardcode_minus_L_CXX=yes # Not in the search PATH,
12914 # but as the default
12915 # location of the library.
12916 ;;
12917 esac
12918
12919 case $cc_basename in
12920 CC*)
12921 # FIXME: insert proper C++ library support
12922 ld_shlibs_CXX=no
12923 ;;
12924 aCC*)
12925 case $host_cpu in
12926 hppa*64*)
12927 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12928 ;;
12929 ia64*)
12930 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 ;;
12932 *)
12933 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934 ;;
12935 esac
12936 # Commands to make compiler produce verbose output that lists
12937 # what "hidden" libraries, object files and flags are used when
12938 # linking a shared library.
12939 #
12940 # There doesn't appear to be a way to prevent this compiler from
12941 # explicitly linking system object files so we need to strip them
12942 # from the output so that they don't get included in the library
12943 # dependencies.
12944 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"'
12945 ;;
12946 *)
12947 if test "$GXX" = yes; then
12948 if test $with_gnu_ld = no; then
12949 case $host_cpu in
12950 hppa*64*)
12951 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12952 ;;
12953 ia64*)
12954 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12955 ;;
12956 *)
12957 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'
12958 ;;
12959 esac
12960 fi
12961 else
12962 # FIXME: insert proper C++ library support
12963 ld_shlibs_CXX=no
12964 fi
12965 ;;
12966 esac
12967 ;;
12968
12969 interix[3-9]*)
12970 hardcode_direct_CXX=no
12971 hardcode_shlibpath_var_CXX=no
12972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12973 export_dynamic_flag_spec_CXX='${wl}-E'
12974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12975 # Instead, shared libraries are loaded at an image base (0x10000000 by
12976 # default) and relocated if they conflict, which is a slow very memory
12977 # consuming and fragmenting process. To avoid this, we pick a random,
12978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12980 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'
12981 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'
12982 ;;
12983 irix5* | irix6*)
12984 case $cc_basename in
12985 CC*)
12986 # SGI C++
12987 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'
12988
12989 # Archives containing C++ object files must be created using
12990 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12991 # necessary to make sure instantiated templates are included
12992 # in the archive.
12993 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12994 ;;
12995 *)
12996 if test "$GXX" = yes; then
12997 if test "$with_gnu_ld" = no; then
12998 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'
12999 else
13000 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'
13001 fi
13002 fi
13003 link_all_deplibs_CXX=yes
13004 ;;
13005 esac
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007 hardcode_libdir_separator_CXX=:
13008 inherit_rpath_CXX=yes
13009 ;;
13010
13011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13012 case $cc_basename in
13013 KCC*)
13014 # Kuck and Associates, Inc. (KAI) C++ Compiler
13015
13016 # KCC will only create a shared library if the output file
13017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13018 # to its proper name (with version) after linking.
13019 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'
13020 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'
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13024 #
13025 # There doesn't appear to be a way to prevent this compiler from
13026 # explicitly linking system object files so we need to strip them
13027 # from the output so that they don't get included in the library
13028 # dependencies.
13029 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"'
13030
13031 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13033
13034 # Archives containing C++ object files must be created using
13035 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13036 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13037 ;;
13038 icpc* | ecpc* )
13039 # Intel C++
13040 with_gnu_ld=yes
13041 # version 8.0 and above of icpc choke on multiply defined symbols
13042 # if we add $predep_objects and $postdep_objects, however 7.1 and
13043 # earlier do not add the objects themselves.
13044 case `$CC -V 2>&1` in
13045 *"Version 7."*)
13046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047 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'
13048 ;;
13049 *) # Version 8.0 or newer
13050 tmp_idyn=
13051 case $host_cpu in
13052 ia64*) tmp_idyn=' -i_dynamic';;
13053 esac
13054 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13055 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'
13056 ;;
13057 esac
13058 archive_cmds_need_lc_CXX=no
13059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13061 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13062 ;;
13063 pgCC* | pgcpp*)
13064 # Portland Group C++ compiler
13065 case `$CC -V` in
13066 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13067 prelink_cmds_CXX='tpldir=Template.dir~
13068 rm -rf $tpldir~
13069 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13070 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13071 old_archive_cmds_CXX='tpldir=Template.dir~
13072 rm -rf $tpldir~
13073 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13074 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13075 $RANLIB $oldlib'
13076 archive_cmds_CXX='tpldir=Template.dir~
13077 rm -rf $tpldir~
13078 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13079 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13080 archive_expsym_cmds_CXX='tpldir=Template.dir~
13081 rm -rf $tpldir~
13082 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13083 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13084 ;;
13085 *) # Version 6 and above use weak symbols
13086 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13087 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'
13088 ;;
13089 esac
13090
13091 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093 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'
13094 ;;
13095 cxx*)
13096 # Compaq C++
13097 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 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'
13099
13100 runpath_var=LD_RUN_PATH
13101 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13102 hardcode_libdir_separator_CXX=:
13103
13104 # Commands to make compiler produce verbose output that lists
13105 # what "hidden" libraries, object files and flags are used when
13106 # linking a shared library.
13107 #
13108 # There doesn't appear to be a way to prevent this compiler from
13109 # explicitly linking system object files so we need to strip them
13110 # from the output so that they don't get included in the library
13111 # dependencies.
13112 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'
13113 ;;
13114 xl* | mpixl* | bgxl*)
13115 # IBM XL 8.0 on PPC, with GNU ld
13116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13117 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13118 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13119 if test "x$supports_anon_versioning" = xyes; then
13120 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13122 echo "local: *; };" >> $output_objdir/$libname.ver~
13123 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13124 fi
13125 ;;
13126 *)
13127 case `$CC -V 2>&1 | sed 5q` in
13128 *Sun\ C*)
13129 # Sun C++ 5.9
13130 no_undefined_flag_CXX=' -zdefs'
13131 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13132 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'
13133 hardcode_libdir_flag_spec_CXX='-R$libdir'
13134 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'
13135 compiler_needs_object_CXX=yes
13136
13137 # Not sure whether something based on
13138 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13139 # would be better.
13140 output_verbose_link_cmd='func_echo_all'
13141
13142 # Archives containing C++ object files must be created using
13143 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13144 # necessary to make sure instantiated templates are included
13145 # in the archive.
13146 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13147 ;;
13148 esac
13149 ;;
13150 esac
13151 ;;
13152
13153 lynxos*)
13154 # FIXME: insert proper C++ library support
13155 ld_shlibs_CXX=no
13156 ;;
13157
13158 m88k*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162
13163 mvs*)
13164 case $cc_basename in
13165 cxx*)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 *)
13170 # FIXME: insert proper C++ library support
13171 ld_shlibs_CXX=no
13172 ;;
13173 esac
13174 ;;
13175
13176 netbsd*)
13177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13178 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13179 wlarc=
13180 hardcode_libdir_flag_spec_CXX='-R$libdir'
13181 hardcode_direct_CXX=yes
13182 hardcode_shlibpath_var_CXX=no
13183 fi
13184 # Workaround some broken pre-1.5 toolchains
13185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13186 ;;
13187
13188 *nto* | *qnx*)
13189 ld_shlibs_CXX=yes
13190 ;;
13191
13192 openbsd2*)
13193 # C++ shared libraries are fairly broken
13194 ld_shlibs_CXX=no
13195 ;;
13196
13197 openbsd*)
13198 if test -f /usr/libexec/ld.so; then
13199 hardcode_direct_CXX=yes
13200 hardcode_shlibpath_var_CXX=no
13201 hardcode_direct_absolute_CXX=yes
13202 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13205 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13206 export_dynamic_flag_spec_CXX='${wl}-E'
13207 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13208 fi
13209 output_verbose_link_cmd=func_echo_all
13210 else
13211 ld_shlibs_CXX=no
13212 fi
13213 ;;
13214
13215 osf3* | osf4* | osf5*)
13216 case $cc_basename in
13217 KCC*)
13218 # Kuck and Associates, Inc. (KAI) C++ Compiler
13219
13220 # KCC will only create a shared library if the output file
13221 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13222 # to its proper name (with version) after linking.
13223 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'
13224
13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13226 hardcode_libdir_separator_CXX=:
13227
13228 # Archives containing C++ object files must be created using
13229 # the KAI C++ compiler.
13230 case $host in
13231 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13232 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13233 esac
13234 ;;
13235 RCC*)
13236 # Rational C++ 2.4.1
13237 # FIXME: insert proper C++ library support
13238 ld_shlibs_CXX=no
13239 ;;
13240 cxx*)
13241 case $host in
13242 osf3*)
13243 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13244 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'
13245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13246 ;;
13247 *)
13248 allow_undefined_flag_CXX=' -expect_unresolved \*'
13249 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'
13250 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13251 echo "-hidden">> $lib.exp~
13252 $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~
13253 $RM $lib.exp'
13254 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13255 ;;
13256 esac
13257
13258 hardcode_libdir_separator_CXX=:
13259
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 #
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13267 # dependencies.
13268 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"'
13269 ;;
13270 *)
13271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13272 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13273 case $host in
13274 osf3*)
13275 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'
13276 ;;
13277 *)
13278 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'
13279 ;;
13280 esac
13281
13282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13283 hardcode_libdir_separator_CXX=:
13284
13285 # Commands to make compiler produce verbose output that lists
13286 # what "hidden" libraries, object files and flags are used when
13287 # linking a shared library.
13288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13289
13290 else
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13293 fi
13294 ;;
13295 esac
13296 ;;
13297
13298 psos*)
13299 # FIXME: insert proper C++ library support
13300 ld_shlibs_CXX=no
13301 ;;
13302
13303 sunos4*)
13304 case $cc_basename in
13305 CC*)
13306 # Sun C++ 4.x
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13309 ;;
13310 lcc*)
13311 # Lucid
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 *)
13316 # FIXME: insert proper C++ library support
13317 ld_shlibs_CXX=no
13318 ;;
13319 esac
13320 ;;
13321
13322 solaris*)
13323 case $cc_basename in
13324 CC*)
13325 # Sun C++ 4.2, 5.x and Centerline C++
13326 archive_cmds_need_lc_CXX=yes
13327 no_undefined_flag_CXX=' -zdefs'
13328 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13329 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13330 $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'
13331
13332 hardcode_libdir_flag_spec_CXX='-R$libdir'
13333 hardcode_shlibpath_var_CXX=no
13334 case $host_os in
13335 solaris2.[0-5] | solaris2.[0-5].*) ;;
13336 *)
13337 # The compiler driver will combine and reorder linker options,
13338 # but understands `-z linker_flag'.
13339 # Supported since Solaris 2.6 (maybe 2.5.1?)
13340 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13341 ;;
13342 esac
13343 link_all_deplibs_CXX=yes
13344
13345 output_verbose_link_cmd='func_echo_all'
13346
13347 # Archives containing C++ object files must be created using
13348 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13349 # necessary to make sure instantiated templates are included
13350 # in the archive.
13351 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13352 ;;
13353 gcx*)
13354 # Green Hills C++ Compiler
13355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13356
13357 # The C++ compiler must be used to create the archive.
13358 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13359 ;;
13360 *)
13361 # GNU C++ compiler with Solaris linker
13362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13363 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13364 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13365 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13366 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13367 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13368
13369 # Commands to make compiler produce verbose output that lists
13370 # what "hidden" libraries, object files and flags are used when
13371 # linking a shared library.
13372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13373 else
13374 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13375 # platform.
13376 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13377 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13378 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13379
13380 # Commands to make compiler produce verbose output that lists
13381 # what "hidden" libraries, object files and flags are used when
13382 # linking a shared library.
13383 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13384 fi
13385
13386 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13387 case $host_os in
13388 solaris2.[0-5] | solaris2.[0-5].*) ;;
13389 *)
13390 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13391 ;;
13392 esac
13393 fi
13394 ;;
13395 esac
13396 ;;
13397
13398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13399 no_undefined_flag_CXX='${wl}-z,text'
13400 archive_cmds_need_lc_CXX=no
13401 hardcode_shlibpath_var_CXX=no
13402 runpath_var='LD_RUN_PATH'
13403
13404 case $cc_basename in
13405 CC*)
13406 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 ;;
13409 *)
13410 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 ;;
13413 esac
13414 ;;
13415
13416 sysv5* | sco3.2v5* | sco5v6*)
13417 # Note: We can NOT use -z defs as we might desire, because we do not
13418 # link with -lc, and that would cause any symbols used from libc to
13419 # always be unresolved, which means just about no library would
13420 # ever link correctly. If we're not using GNU ld we use -z text
13421 # though, which does catch some bad symbols but isn't as heavy-handed
13422 # as -z defs.
13423 no_undefined_flag_CXX='${wl}-z,text'
13424 allow_undefined_flag_CXX='${wl}-z,nodefs'
13425 archive_cmds_need_lc_CXX=no
13426 hardcode_shlibpath_var_CXX=no
13427 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13428 hardcode_libdir_separator_CXX=':'
13429 link_all_deplibs_CXX=yes
13430 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13431 runpath_var='LD_RUN_PATH'
13432
13433 case $cc_basename in
13434 CC*)
13435 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13436 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13438 '"$old_archive_cmds_CXX"
13439 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13440 '"$reload_cmds_CXX"
13441 ;;
13442 *)
13443 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13444 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 ;;
13446 esac
13447 ;;
13448
13449 tandem*)
13450 case $cc_basename in
13451 NCC*)
13452 # NonStop-UX NCC 3.20
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13455 ;;
13456 *)
13457 # FIXME: insert proper C++ library support
13458 ld_shlibs_CXX=no
13459 ;;
13460 esac
13461 ;;
13462
13463 vxworks*)
13464 # FIXME: insert proper C++ library support
13465 ld_shlibs_CXX=no
13466 ;;
13467
13468 *)
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13471 ;;
13472 esac
13473
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13475 $as_echo "$ld_shlibs_CXX" >&6; }
13476 test "$ld_shlibs_CXX" = no && can_build_shared=no
13477
13478 GCC_CXX="$GXX"
13479 LD_CXX="$LD"
13480
13481 ## CAVEAT EMPTOR:
13482 ## There is no encapsulation within the following macros, do not change
13483 ## the running order or otherwise move them around unless you know exactly
13484 ## what you are doing...
13485 # Dependencies to place before and after the object being linked:
13486 predep_objects_CXX=
13487 postdep_objects_CXX=
13488 predeps_CXX=
13489 postdeps_CXX=
13490 compiler_lib_search_path_CXX=
13491
13492 cat > conftest.$ac_ext <<_LT_EOF
13493 class Foo
13494 {
13495 public:
13496 Foo (void) { a = 0; }
13497 private:
13498 int a;
13499 };
13500 _LT_EOF
13501
13502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13503 (eval $ac_compile) 2>&5
13504 ac_status=$?
13505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13506 test $ac_status = 0; }; then
13507 # Parse the compiler output and extract the necessary
13508 # objects, libraries and library flags.
13509
13510 # Sentinel used to keep track of whether or not we are before
13511 # the conftest object file.
13512 pre_test_object_deps_done=no
13513
13514 for p in `eval "$output_verbose_link_cmd"`; do
13515 case $p in
13516
13517 -L* | -R* | -l*)
13518 # Some compilers place space between "-{L,R}" and the path.
13519 # Remove the space.
13520 if test $p = "-L" ||
13521 test $p = "-R"; then
13522 prev=$p
13523 continue
13524 else
13525 prev=
13526 fi
13527
13528 if test "$pre_test_object_deps_done" = no; then
13529 case $p in
13530 -L* | -R*)
13531 # Internal compiler library paths should come after those
13532 # provided the user. The postdeps already come after the
13533 # user supplied libs so there is no need to process them.
13534 if test -z "$compiler_lib_search_path_CXX"; then
13535 compiler_lib_search_path_CXX="${prev}${p}"
13536 else
13537 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13538 fi
13539 ;;
13540 # The "-l" case would never come before the object being
13541 # linked, so don't bother handling this case.
13542 esac
13543 else
13544 if test -z "$postdeps_CXX"; then
13545 postdeps_CXX="${prev}${p}"
13546 else
13547 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13548 fi
13549 fi
13550 ;;
13551
13552 *.$objext)
13553 # This assumes that the test object file only shows up
13554 # once in the compiler output.
13555 if test "$p" = "conftest.$objext"; then
13556 pre_test_object_deps_done=yes
13557 continue
13558 fi
13559
13560 if test "$pre_test_object_deps_done" = no; then
13561 if test -z "$predep_objects_CXX"; then
13562 predep_objects_CXX="$p"
13563 else
13564 predep_objects_CXX="$predep_objects_CXX $p"
13565 fi
13566 else
13567 if test -z "$postdep_objects_CXX"; then
13568 postdep_objects_CXX="$p"
13569 else
13570 postdep_objects_CXX="$postdep_objects_CXX $p"
13571 fi
13572 fi
13573 ;;
13574
13575 *) ;; # Ignore the rest.
13576
13577 esac
13578 done
13579
13580 # Clean up.
13581 rm -f a.out a.exe
13582 else
13583 echo "libtool.m4: error: problem compiling CXX test program"
13584 fi
13585
13586 $RM -f confest.$objext
13587
13588 # PORTME: override above test on systems where it is broken
13589 case $host_os in
13590 interix[3-9]*)
13591 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13592 # hack all around it, let's just trust "g++" to DTRT.
13593 predep_objects_CXX=
13594 postdep_objects_CXX=
13595 postdeps_CXX=
13596 ;;
13597
13598 linux*)
13599 case `$CC -V 2>&1 | sed 5q` in
13600 *Sun\ C*)
13601 # Sun C++ 5.9
13602
13603 # The more standards-conforming stlport4 library is
13604 # incompatible with the Cstd library. Avoid specifying
13605 # it if it's in CXXFLAGS. Ignore libCrun as
13606 # -library=stlport4 depends on it.
13607 case " $CXX $CXXFLAGS " in
13608 *" -library=stlport4 "*)
13609 solaris_use_stlport4=yes
13610 ;;
13611 esac
13612
13613 if test "$solaris_use_stlport4" != yes; then
13614 postdeps_CXX='-library=Cstd -library=Crun'
13615 fi
13616 ;;
13617 esac
13618 ;;
13619
13620 solaris*)
13621 case $cc_basename in
13622 CC*)
13623 # The more standards-conforming stlport4 library is
13624 # incompatible with the Cstd library. Avoid specifying
13625 # it if it's in CXXFLAGS. Ignore libCrun as
13626 # -library=stlport4 depends on it.
13627 case " $CXX $CXXFLAGS " in
13628 *" -library=stlport4 "*)
13629 solaris_use_stlport4=yes
13630 ;;
13631 esac
13632
13633 # Adding this requires a known-good setup of shared libraries for
13634 # Sun compiler versions before 5.6, else PIC objects from an old
13635 # archive will be linked into the output, leading to subtle bugs.
13636 if test "$solaris_use_stlport4" != yes; then
13637 postdeps_CXX='-library=Cstd -library=Crun'
13638 fi
13639 ;;
13640 esac
13641 ;;
13642 esac
13643
13644
13645 case " $postdeps_CXX " in
13646 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13647 esac
13648 compiler_lib_search_dirs_CXX=
13649 if test -n "${compiler_lib_search_path_CXX}"; then
13650 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13651 fi
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683 lt_prog_compiler_wl_CXX=
13684 lt_prog_compiler_pic_CXX=
13685 lt_prog_compiler_static_CXX=
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13689
13690 # C++ specific cases for pic, static, wl, etc.
13691 if test "$GXX" = yes; then
13692 lt_prog_compiler_wl_CXX='-Wl,'
13693 lt_prog_compiler_static_CXX='-static'
13694
13695 case $host_os in
13696 aix*)
13697 # All AIX code is PIC.
13698 if test "$host_cpu" = ia64; then
13699 # AIX 5 now supports IA64 processor
13700 lt_prog_compiler_static_CXX='-Bstatic'
13701 fi
13702 lt_prog_compiler_pic_CXX='-fPIC'
13703 ;;
13704
13705 amigaos*)
13706 case $host_cpu in
13707 powerpc)
13708 # see comment about AmigaOS4 .so support
13709 lt_prog_compiler_pic_CXX='-fPIC'
13710 ;;
13711 m68k)
13712 # FIXME: we need at least 68020 code to build shared libraries, but
13713 # adding the `-m68020' flag to GCC prevents building anything better,
13714 # like `-m68040'.
13715 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13716 ;;
13717 esac
13718 ;;
13719
13720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13721 # PIC is the default for these OSes.
13722 ;;
13723 mingw* | cygwin* | os2* | pw32* | cegcc*)
13724 # This hack is so that the source file can tell whether it is being
13725 # built for inclusion in a dll (and should export symbols for example).
13726 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13727 # (--disable-auto-import) libraries
13728 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13729 ;;
13730 darwin* | rhapsody*)
13731 # PIC is the default on this platform
13732 # Common symbols not allowed in MH_DYLIB files
13733 lt_prog_compiler_pic_CXX='-fno-common'
13734 ;;
13735 *djgpp*)
13736 # DJGPP does not support shared libraries at all
13737 lt_prog_compiler_pic_CXX=
13738 ;;
13739 haiku*)
13740 # PIC is the default for Haiku.
13741 # The "-static" flag exists, but is broken.
13742 lt_prog_compiler_static_CXX=
13743 ;;
13744 interix[3-9]*)
13745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746 # Instead, we relocate shared libraries at runtime.
13747 ;;
13748 sysv4*MP*)
13749 if test -d /usr/nec; then
13750 lt_prog_compiler_pic_CXX=-Kconform_pic
13751 fi
13752 ;;
13753 hpux*)
13754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13756 # sets the default TLS model and affects inlining.
13757 case $host_cpu in
13758 hppa*64*)
13759 ;;
13760 *)
13761 lt_prog_compiler_pic_CXX='-fPIC'
13762 ;;
13763 esac
13764 ;;
13765 *qnx* | *nto*)
13766 # QNX uses GNU C++, but need to define -shared option too, otherwise
13767 # it will coredump.
13768 lt_prog_compiler_pic_CXX='-fPIC -shared'
13769 ;;
13770 *)
13771 lt_prog_compiler_pic_CXX='-fPIC'
13772 ;;
13773 esac
13774 else
13775 case $host_os in
13776 aix[4-9]*)
13777 # All AIX code is PIC.
13778 if test "$host_cpu" = ia64; then
13779 # AIX 5 now supports IA64 processor
13780 lt_prog_compiler_static_CXX='-Bstatic'
13781 else
13782 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13783 fi
13784 ;;
13785 chorus*)
13786 case $cc_basename in
13787 cxch68*)
13788 # Green Hills C++ Compiler
13789 # _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"
13790 ;;
13791 esac
13792 ;;
13793 dgux*)
13794 case $cc_basename in
13795 ec++*)
13796 lt_prog_compiler_pic_CXX='-KPIC'
13797 ;;
13798 ghcx*)
13799 # Green Hills C++ Compiler
13800 lt_prog_compiler_pic_CXX='-pic'
13801 ;;
13802 *)
13803 ;;
13804 esac
13805 ;;
13806 freebsd* | dragonfly*)
13807 # FreeBSD uses GNU C++
13808 ;;
13809 hpux9* | hpux10* | hpux11*)
13810 case $cc_basename in
13811 CC*)
13812 lt_prog_compiler_wl_CXX='-Wl,'
13813 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13814 if test "$host_cpu" != ia64; then
13815 lt_prog_compiler_pic_CXX='+Z'
13816 fi
13817 ;;
13818 aCC*)
13819 lt_prog_compiler_wl_CXX='-Wl,'
13820 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13821 case $host_cpu in
13822 hppa*64*|ia64*)
13823 # +Z the default
13824 ;;
13825 *)
13826 lt_prog_compiler_pic_CXX='+Z'
13827 ;;
13828 esac
13829 ;;
13830 *)
13831 ;;
13832 esac
13833 ;;
13834 interix*)
13835 # This is c89, which is MS Visual C++ (no shared libs)
13836 # Anyone wants to do a port?
13837 ;;
13838 irix5* | irix6* | nonstopux*)
13839 case $cc_basename in
13840 CC*)
13841 lt_prog_compiler_wl_CXX='-Wl,'
13842 lt_prog_compiler_static_CXX='-non_shared'
13843 # CC pic flag -KPIC is the default.
13844 ;;
13845 *)
13846 ;;
13847 esac
13848 ;;
13849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13850 case $cc_basename in
13851 KCC*)
13852 # KAI C++ Compiler
13853 lt_prog_compiler_wl_CXX='--backend -Wl,'
13854 lt_prog_compiler_pic_CXX='-fPIC'
13855 ;;
13856 ecpc* )
13857 # old Intel C++ for x86_64 which still supported -KPIC.
13858 lt_prog_compiler_wl_CXX='-Wl,'
13859 lt_prog_compiler_pic_CXX='-KPIC'
13860 lt_prog_compiler_static_CXX='-static'
13861 ;;
13862 icpc* )
13863 # Intel C++, used to be incompatible with GCC.
13864 # ICC 10 doesn't accept -KPIC any more.
13865 lt_prog_compiler_wl_CXX='-Wl,'
13866 lt_prog_compiler_pic_CXX='-fPIC'
13867 lt_prog_compiler_static_CXX='-static'
13868 ;;
13869 pgCC* | pgcpp*)
13870 # Portland Group C++ compiler
13871 lt_prog_compiler_wl_CXX='-Wl,'
13872 lt_prog_compiler_pic_CXX='-fpic'
13873 lt_prog_compiler_static_CXX='-Bstatic'
13874 ;;
13875 cxx*)
13876 # Compaq C++
13877 # Make sure the PIC flag is empty. It appears that all Alpha
13878 # Linux and Compaq Tru64 Unix objects are PIC.
13879 lt_prog_compiler_pic_CXX=
13880 lt_prog_compiler_static_CXX='-non_shared'
13881 ;;
13882 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13883 # IBM XL 8.0, 9.0 on PPC and BlueGene
13884 lt_prog_compiler_wl_CXX='-Wl,'
13885 lt_prog_compiler_pic_CXX='-qpic'
13886 lt_prog_compiler_static_CXX='-qstaticlink'
13887 ;;
13888 *)
13889 case `$CC -V 2>&1 | sed 5q` in
13890 *Sun\ C*)
13891 # Sun C++ 5.9
13892 lt_prog_compiler_pic_CXX='-KPIC'
13893 lt_prog_compiler_static_CXX='-Bstatic'
13894 lt_prog_compiler_wl_CXX='-Qoption ld '
13895 ;;
13896 esac
13897 ;;
13898 esac
13899 ;;
13900 lynxos*)
13901 ;;
13902 m88k*)
13903 ;;
13904 mvs*)
13905 case $cc_basename in
13906 cxx*)
13907 lt_prog_compiler_pic_CXX='-W c,exportall'
13908 ;;
13909 *)
13910 ;;
13911 esac
13912 ;;
13913 netbsd*)
13914 ;;
13915 *qnx* | *nto*)
13916 # QNX uses GNU C++, but need to define -shared option too, otherwise
13917 # it will coredump.
13918 lt_prog_compiler_pic_CXX='-fPIC -shared'
13919 ;;
13920 osf3* | osf4* | osf5*)
13921 case $cc_basename in
13922 KCC*)
13923 lt_prog_compiler_wl_CXX='--backend -Wl,'
13924 ;;
13925 RCC*)
13926 # Rational C++ 2.4.1
13927 lt_prog_compiler_pic_CXX='-pic'
13928 ;;
13929 cxx*)
13930 # Digital/Compaq C++
13931 lt_prog_compiler_wl_CXX='-Wl,'
13932 # Make sure the PIC flag is empty. It appears that all Alpha
13933 # Linux and Compaq Tru64 Unix objects are PIC.
13934 lt_prog_compiler_pic_CXX=
13935 lt_prog_compiler_static_CXX='-non_shared'
13936 ;;
13937 *)
13938 ;;
13939 esac
13940 ;;
13941 psos*)
13942 ;;
13943 solaris*)
13944 case $cc_basename in
13945 CC*)
13946 # Sun C++ 4.2, 5.x and Centerline C++
13947 lt_prog_compiler_pic_CXX='-KPIC'
13948 lt_prog_compiler_static_CXX='-Bstatic'
13949 lt_prog_compiler_wl_CXX='-Qoption ld '
13950 ;;
13951 gcx*)
13952 # Green Hills C++ Compiler
13953 lt_prog_compiler_pic_CXX='-PIC'
13954 ;;
13955 *)
13956 ;;
13957 esac
13958 ;;
13959 sunos4*)
13960 case $cc_basename in
13961 CC*)
13962 # Sun C++ 4.x
13963 lt_prog_compiler_pic_CXX='-pic'
13964 lt_prog_compiler_static_CXX='-Bstatic'
13965 ;;
13966 lcc*)
13967 # Lucid
13968 lt_prog_compiler_pic_CXX='-pic'
13969 ;;
13970 *)
13971 ;;
13972 esac
13973 ;;
13974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13975 case $cc_basename in
13976 CC*)
13977 lt_prog_compiler_wl_CXX='-Wl,'
13978 lt_prog_compiler_pic_CXX='-KPIC'
13979 lt_prog_compiler_static_CXX='-Bstatic'
13980 ;;
13981 esac
13982 ;;
13983 tandem*)
13984 case $cc_basename in
13985 NCC*)
13986 # NonStop-UX NCC 3.20
13987 lt_prog_compiler_pic_CXX='-KPIC'
13988 ;;
13989 *)
13990 ;;
13991 esac
13992 ;;
13993 vxworks*)
13994 ;;
13995 *)
13996 lt_prog_compiler_can_build_shared_CXX=no
13997 ;;
13998 esac
13999 fi
14000
14001 case $host_os in
14002 # For platforms which do not support PIC, -DPIC is meaningless:
14003 *djgpp*)
14004 lt_prog_compiler_pic_CXX=
14005 ;;
14006 *)
14007 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14008 ;;
14009 esac
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14011 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14012
14013
14014
14015 #
14016 # Check to make sure the PIC flag actually works.
14017 #
14018 if test -n "$lt_prog_compiler_pic_CXX"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14020 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14021 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_pic_works_CXX=no
14025 ac_outfile=conftest.$ac_objext
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 # The option is referenced via a variable to avoid confusing sed.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>conftest.err)
14039 ac_status=$?
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 if (exit $ac_status) && test -s "$ac_outfile"; then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings other than the usual output.
14045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_pic_works_CXX=yes
14049 fi
14050 fi
14051 $RM conftest*
14052
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14055 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14056
14057 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14058 case $lt_prog_compiler_pic_CXX in
14059 "" | " "*) ;;
14060 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14061 esac
14062 else
14063 lt_prog_compiler_pic_CXX=
14064 lt_prog_compiler_can_build_shared_CXX=no
14065 fi
14066
14067 fi
14068
14069
14070
14071 #
14072 # Check to make sure the static flag actually works.
14073 #
14074 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14076 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14077 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 lt_cv_prog_compiler_static_works_CXX=no
14081 save_LDFLAGS="$LDFLAGS"
14082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14085 # The linker can only warn and ignore the option if not recognized
14086 # So say no if there are warnings
14087 if test -s conftest.err; then
14088 # Append any errors to the config.log.
14089 cat conftest.err 1>&5
14090 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14092 if diff conftest.exp conftest.er2 >/dev/null; then
14093 lt_cv_prog_compiler_static_works_CXX=yes
14094 fi
14095 else
14096 lt_cv_prog_compiler_static_works_CXX=yes
14097 fi
14098 fi
14099 $RM -r conftest*
14100 LDFLAGS="$save_LDFLAGS"
14101
14102 fi
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14104 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14105
14106 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14107 :
14108 else
14109 lt_prog_compiler_static_CXX=
14110 fi
14111
14112
14113
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14117 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 lt_cv_prog_compiler_c_o_CXX=no
14121 $RM -r conftest 2>/dev/null
14122 mkdir conftest
14123 cd conftest
14124 mkdir out
14125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14126
14127 lt_compiler_flag="-o out/conftest2.$ac_objext"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 lt_compile=`echo "$ac_compile" | $SED \
14133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135 -e 's:$: $lt_compiler_flag:'`
14136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14137 (eval "$lt_compile" 2>out/conftest.err)
14138 ac_status=$?
14139 cat out/conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14142 then
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings
14145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14146 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14147 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14148 lt_cv_prog_compiler_c_o_CXX=yes
14149 fi
14150 fi
14151 chmod u+w . 2>&5
14152 $RM conftest*
14153 # SGI C++ compiler will create directory out/ii_files/ for
14154 # template instantiation
14155 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14156 $RM out/* && rmdir out
14157 cd ..
14158 $RM -r conftest
14159 $RM conftest*
14160
14161 fi
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14163 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14164
14165
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14168 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14169 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 lt_cv_prog_compiler_c_o_CXX=no
14173 $RM -r conftest 2>/dev/null
14174 mkdir conftest
14175 cd conftest
14176 mkdir out
14177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178
14179 lt_compiler_flag="-o out/conftest2.$ac_objext"
14180 # Insert the option either (1) after the last *FLAGS variable, or
14181 # (2) before a word containing "conftest.", or (3) at the end.
14182 # Note that $ac_compile itself does not contain backslashes and begins
14183 # with a dollar sign (not a hyphen), so the echo should work correctly.
14184 lt_compile=`echo "$ac_compile" | $SED \
14185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14187 -e 's:$: $lt_compiler_flag:'`
14188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14189 (eval "$lt_compile" 2>out/conftest.err)
14190 ac_status=$?
14191 cat out/conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14194 then
14195 # The compiler can only warn and ignore the option if not recognized
14196 # So say no if there are warnings
14197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14200 lt_cv_prog_compiler_c_o_CXX=yes
14201 fi
14202 fi
14203 chmod u+w . 2>&5
14204 $RM conftest*
14205 # SGI C++ compiler will create directory out/ii_files/ for
14206 # template instantiation
14207 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14208 $RM out/* && rmdir out
14209 cd ..
14210 $RM -r conftest
14211 $RM conftest*
14212
14213 fi
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14215 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14216
14217
14218
14219
14220 hard_links="nottested"
14221 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14222 # do not overwrite the value of need_locks provided by the user
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14224 $as_echo_n "checking if we can lock with hard links... " >&6; }
14225 hard_links=yes
14226 $RM conftest*
14227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14228 touch conftest.a
14229 ln conftest.a conftest.b 2>&5 || hard_links=no
14230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14232 $as_echo "$hard_links" >&6; }
14233 if test "$hard_links" = no; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14235 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14236 need_locks=warn
14237 fi
14238 else
14239 need_locks=no
14240 fi
14241
14242
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14246
14247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14248 case $host_os in
14249 aix[4-9]*)
14250 # If we're using GNU nm, then we don't want the "-C" option.
14251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14252 # Also, AIX nm treats weak defined symbols like other global defined
14253 # symbols, whereas GNU nm marks them as "W".
14254 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14255 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'
14256 else
14257 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'
14258 fi
14259 ;;
14260 pw32*)
14261 export_symbols_cmds_CXX="$ltdll_cmds"
14262 ;;
14263 cygwin* | mingw* | cegcc*)
14264 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'
14265 ;;
14266 *)
14267 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14268 ;;
14269 esac
14270 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14271
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14273 $as_echo "$ld_shlibs_CXX" >&6; }
14274 test "$ld_shlibs_CXX" = no && can_build_shared=no
14275
14276 with_gnu_ld_CXX=$with_gnu_ld
14277
14278
14279
14280
14281
14282
14283 #
14284 # Do we need to explicitly link libc?
14285 #
14286 case "x$archive_cmds_need_lc_CXX" in
14287 x|xyes)
14288 # Assume -lc should be added
14289 archive_cmds_need_lc_CXX=yes
14290
14291 if test "$enable_shared" = yes && test "$GCC" = yes; then
14292 case $archive_cmds_CXX in
14293 *'~'*)
14294 # FIXME: we may have to deal with multi-command sequences.
14295 ;;
14296 '$CC '*)
14297 # Test whether the compiler implicitly links with -lc since on some
14298 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14299 # to ld, don't add -lc before -lgcc.
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14301 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14302 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 $RM conftest*
14306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14307
14308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14309 (eval $ac_compile) 2>&5
14310 ac_status=$?
14311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14312 test $ac_status = 0; } 2>conftest.err; then
14313 soname=conftest
14314 lib=conftest
14315 libobjs=conftest.$ac_objext
14316 deplibs=
14317 wl=$lt_prog_compiler_wl_CXX
14318 pic_flag=$lt_prog_compiler_pic_CXX
14319 compiler_flags=-v
14320 linker_flags=-v
14321 verstring=
14322 output_objdir=.
14323 libname=conftest
14324 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14325 allow_undefined_flag_CXX=
14326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14327 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14328 ac_status=$?
14329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14330 test $ac_status = 0; }
14331 then
14332 lt_cv_archive_cmds_need_lc_CXX=no
14333 else
14334 lt_cv_archive_cmds_need_lc_CXX=yes
14335 fi
14336 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14337 else
14338 cat conftest.err 1>&5
14339 fi
14340 $RM conftest*
14341
14342 fi
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14344 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14345 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14346 ;;
14347 esac
14348 fi
14349 ;;
14350 esac
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14416 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14417
14418 library_names_spec=
14419 libname_spec='lib$name'
14420 soname_spec=
14421 shrext_cmds=".so"
14422 postinstall_cmds=
14423 postuninstall_cmds=
14424 finish_cmds=
14425 finish_eval=
14426 shlibpath_var=
14427 shlibpath_overrides_runpath=unknown
14428 version_type=none
14429 dynamic_linker="$host_os ld.so"
14430 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14431 need_lib_prefix=unknown
14432 hardcode_into_libs=no
14433
14434 # when you set need_version to no, make sure it does not cause -set_version
14435 # flags to be left without arguments
14436 need_version=unknown
14437
14438 case $host_os in
14439 aix3*)
14440 version_type=linux
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14442 shlibpath_var=LIBPATH
14443
14444 # AIX 3 has no versioning support, so we append a major version to the name.
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 ;;
14447
14448 aix[4-9]*)
14449 version_type=linux
14450 need_lib_prefix=no
14451 need_version=no
14452 hardcode_into_libs=yes
14453 if test "$host_cpu" = ia64; then
14454 # AIX 5 supports IA64
14455 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 else
14458 # With GCC up to 2.95.x, collect2 would create an import file
14459 # for dependence libraries. The import file would start with
14460 # the line `#! .'. This would cause the generated library to
14461 # depend on `.', always an invalid library. This was fixed in
14462 # development snapshots of GCC prior to 3.0.
14463 case $host_os in
14464 aix4 | aix4.[01] | aix4.[01].*)
14465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466 echo ' yes '
14467 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14468 :
14469 else
14470 can_build_shared=no
14471 fi
14472 ;;
14473 esac
14474 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14475 # soname into executable. Probably we can add versioning support to
14476 # collect2, so additional links can be useful in future.
14477 if test "$aix_use_runtimelinking" = yes; then
14478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14479 # instead of lib<name>.a to let people know that these are not
14480 # typical AIX shared libraries.
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 else
14483 # We preserve .a as extension for shared libraries through AIX4.2
14484 # and later when we are not doing run time linking.
14485 library_names_spec='${libname}${release}.a $libname.a'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 fi
14488 shlibpath_var=LIBPATH
14489 fi
14490 ;;
14491
14492 amigaos*)
14493 case $host_cpu in
14494 powerpc)
14495 # Since July 2007 AmigaOS4 officially supports .so libraries.
14496 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 ;;
14499 m68k)
14500 library_names_spec='$libname.ixlibrary $libname.a'
14501 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14502 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'
14503 ;;
14504 esac
14505 ;;
14506
14507 beos*)
14508 library_names_spec='${libname}${shared_ext}'
14509 dynamic_linker="$host_os ld.so"
14510 shlibpath_var=LIBRARY_PATH
14511 ;;
14512
14513 bsdi[45]*)
14514 version_type=linux
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14521 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14522 # the default ld.so.conf also contains /usr/contrib/lib and
14523 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14524 # libtool to hard-code these into programs
14525 ;;
14526
14527 cygwin* | mingw* | pw32* | cegcc*)
14528 version_type=windows
14529 shrext_cmds=".dll"
14530 need_version=no
14531 need_lib_prefix=no
14532
14533 case $GCC,$host_os in
14534 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14535 library_names_spec='$libname.dll.a'
14536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14537 postinstall_cmds='base_file=`basename \${file}`~
14538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14539 dldir=$destdir/`dirname \$dlpath`~
14540 test -d \$dldir || mkdir -p \$dldir~
14541 $install_prog $dir/$dlname \$dldir/$dlname~
14542 chmod a+x \$dldir/$dlname~
14543 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14544 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14545 fi'
14546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547 dlpath=$dir/\$dldll~
14548 $RM \$dlpath'
14549 shlibpath_overrides_runpath=yes
14550
14551 case $host_os in
14552 cygwin*)
14553 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14554 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14555
14556 ;;
14557 mingw* | cegcc*)
14558 # MinGW DLLs use traditional 'lib' prefix
14559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560 ;;
14561 pw32*)
14562 # pw32 DLLs use 'pw' prefix rather than 'lib'
14563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14564 ;;
14565 esac
14566 ;;
14567
14568 *)
14569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14570 ;;
14571 esac
14572 dynamic_linker='Win32 ld.exe'
14573 # FIXME: first we should search . and the directory the executable is in
14574 shlibpath_var=PATH
14575 ;;
14576
14577 darwin* | rhapsody*)
14578 dynamic_linker="$host_os dyld"
14579 version_type=darwin
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14583 soname_spec='${libname}${release}${major}$shared_ext'
14584 shlibpath_overrides_runpath=yes
14585 shlibpath_var=DYLD_LIBRARY_PATH
14586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14587
14588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14589 ;;
14590
14591 dgux*)
14592 version_type=linux
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 ;;
14599
14600 freebsd* | dragonfly*)
14601 # DragonFly does not have aout. When/if they implement a new
14602 # versioning mechanism, adjust this.
14603 if test -x /usr/bin/objformat; then
14604 objformat=`/usr/bin/objformat`
14605 else
14606 case $host_os in
14607 freebsd[23].*) objformat=aout ;;
14608 *) objformat=elf ;;
14609 esac
14610 fi
14611 version_type=freebsd-$objformat
14612 case $version_type in
14613 freebsd-elf*)
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14615 need_version=no
14616 need_lib_prefix=no
14617 ;;
14618 freebsd-*)
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14620 need_version=yes
14621 ;;
14622 esac
14623 shlibpath_var=LD_LIBRARY_PATH
14624 case $host_os in
14625 freebsd2.*)
14626 shlibpath_overrides_runpath=yes
14627 ;;
14628 freebsd3.[01]* | freebsdelf3.[01]*)
14629 shlibpath_overrides_runpath=yes
14630 hardcode_into_libs=yes
14631 ;;
14632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14634 shlibpath_overrides_runpath=no
14635 hardcode_into_libs=yes
14636 ;;
14637 *) # from 4.6 on, and DragonFly
14638 shlibpath_overrides_runpath=yes
14639 hardcode_into_libs=yes
14640 ;;
14641 esac
14642 ;;
14643
14644 gnu*)
14645 version_type=linux
14646 need_lib_prefix=no
14647 need_version=no
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 hardcode_into_libs=yes
14652 ;;
14653
14654 haiku*)
14655 version_type=linux
14656 need_lib_prefix=no
14657 need_version=no
14658 dynamic_linker="$host_os runtime_loader"
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LIBRARY_PATH
14662 shlibpath_overrides_runpath=yes
14663 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14664 hardcode_into_libs=yes
14665 ;;
14666
14667 hpux9* | hpux10* | hpux11*)
14668 # Give a soname corresponding to the major version so that dld.sl refuses to
14669 # link against other versions.
14670 version_type=sunos
14671 need_lib_prefix=no
14672 need_version=no
14673 case $host_cpu in
14674 ia64*)
14675 shrext_cmds='.so'
14676 hardcode_into_libs=yes
14677 dynamic_linker="$host_os dld.so"
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 if test "X$HPUX_IA64_MODE" = X32; then
14683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14684 else
14685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14686 fi
14687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688 ;;
14689 hppa*64*)
14690 shrext_cmds='.sl'
14691 hardcode_into_libs=yes
14692 dynamic_linker="$host_os dld.sl"
14693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699 ;;
14700 *)
14701 shrext_cmds='.sl'
14702 dynamic_linker="$host_os dld.sl"
14703 shlibpath_var=SHLIB_PATH
14704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 ;;
14708 esac
14709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14710 postinstall_cmds='chmod 555 $lib'
14711 # or fails outright, so override atomically:
14712 install_override_mode=555
14713 ;;
14714
14715 interix[3-9]*)
14716 version_type=linux
14717 need_lib_prefix=no
14718 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=no
14724 hardcode_into_libs=yes
14725 ;;
14726
14727 irix5* | irix6* | nonstopux*)
14728 case $host_os in
14729 nonstopux*) version_type=nonstopux ;;
14730 *)
14731 if test "$lt_cv_prog_gnu_ld" = yes; then
14732 version_type=linux
14733 else
14734 version_type=irix
14735 fi ;;
14736 esac
14737 need_lib_prefix=no
14738 need_version=no
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14741 case $host_os in
14742 irix5* | nonstopux*)
14743 libsuff= shlibsuff=
14744 ;;
14745 *)
14746 case $LD in # libtool.m4 will add one of these switches to LD
14747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14748 libsuff= shlibsuff= libmagic=32-bit;;
14749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14750 libsuff=32 shlibsuff=N32 libmagic=N32;;
14751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14753 *) libsuff= shlibsuff= libmagic=never-match;;
14754 esac
14755 ;;
14756 esac
14757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14758 shlibpath_overrides_runpath=no
14759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14761 hardcode_into_libs=yes
14762 ;;
14763
14764 # No shared lib support for Linux oldld, aout, or coff.
14765 linux*oldld* | linux*aout* | linux*coff*)
14766 dynamic_linker=no
14767 ;;
14768
14769 # This must be Linux ELF.
14770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14771 version_type=linux
14772 need_lib_prefix=no
14773 need_version=no
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 shlibpath_overrides_runpath=no
14779
14780 # Some binutils ld are patched to set DT_RUNPATH
14781 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 lt_cv_shlibpath_overrides_runpath=no
14785 save_LDFLAGS=$LDFLAGS
14786 save_libdir=$libdir
14787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14791
14792 int
14793 main ()
14794 {
14795
14796 ;
14797 return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_cxx_try_link "$LINENO"; then :
14801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14802 lt_cv_shlibpath_overrides_runpath=yes
14803 fi
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LDFLAGS=$save_LDFLAGS
14808 libdir=$save_libdir
14809
14810 fi
14811
14812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14813
14814 # This implies no fast_install, which is unacceptable.
14815 # Some rework will be needed to allow for fast_install
14816 # before this can be enabled.
14817 hardcode_into_libs=yes
14818
14819 # Append ld.so.conf contents to the search path
14820 if test -f /etc/ld.so.conf; then
14821 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' ' '`
14822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14823 fi
14824
14825 # We used to test for /lib/ld.so.1 and disable shared libraries on
14826 # powerpc, because MkLinux only supported shared libraries with the
14827 # GNU dynamic linker. Since this was broken with cross compilers,
14828 # most powerpc-linux boxes support dynamic linking these days and
14829 # people can always --disable-shared, the test was removed, and we
14830 # assume the GNU/Linux dynamic linker is in use.
14831 dynamic_linker='GNU/Linux ld.so'
14832 ;;
14833
14834 netbsd*)
14835 version_type=sunos
14836 need_lib_prefix=no
14837 need_version=no
14838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14841 dynamic_linker='NetBSD (a.out) ld.so'
14842 else
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 dynamic_linker='NetBSD ld.elf_so'
14846 fi
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=yes
14849 hardcode_into_libs=yes
14850 ;;
14851
14852 newsos6)
14853 version_type=linux
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 shlibpath_overrides_runpath=yes
14857 ;;
14858
14859 *nto* | *qnx*)
14860 version_type=qnx
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14868 dynamic_linker='ldqnx.so'
14869 ;;
14870
14871 openbsd*)
14872 version_type=sunos
14873 sys_lib_dlsearch_path_spec="/usr/lib"
14874 need_lib_prefix=no
14875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14876 case $host_os in
14877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14878 *) need_version=no ;;
14879 esac
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14884 case $host_os in
14885 openbsd2.[89] | openbsd2.[89].*)
14886 shlibpath_overrides_runpath=no
14887 ;;
14888 *)
14889 shlibpath_overrides_runpath=yes
14890 ;;
14891 esac
14892 else
14893 shlibpath_overrides_runpath=yes
14894 fi
14895 ;;
14896
14897 os2*)
14898 libname_spec='$name'
14899 shrext_cmds=".dll"
14900 need_lib_prefix=no
14901 library_names_spec='$libname${shared_ext} $libname.a'
14902 dynamic_linker='OS/2 ld.exe'
14903 shlibpath_var=LIBPATH
14904 ;;
14905
14906 osf3* | osf4* | osf5*)
14907 version_type=osf
14908 need_lib_prefix=no
14909 need_version=no
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14915 ;;
14916
14917 rdos*)
14918 dynamic_linker=no
14919 ;;
14920
14921 solaris*)
14922 version_type=linux
14923 need_lib_prefix=no
14924 need_version=no
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=yes
14929 hardcode_into_libs=yes
14930 # ldd complains unless libraries are executable
14931 postinstall_cmds='chmod +x $lib'
14932 ;;
14933
14934 sunos4*)
14935 version_type=sunos
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14938 shlibpath_var=LD_LIBRARY_PATH
14939 shlibpath_overrides_runpath=yes
14940 if test "$with_gnu_ld" = yes; then
14941 need_lib_prefix=no
14942 fi
14943 need_version=yes
14944 ;;
14945
14946 sysv4 | sysv4.3*)
14947 version_type=linux
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 case $host_vendor in
14952 sni)
14953 shlibpath_overrides_runpath=no
14954 need_lib_prefix=no
14955 runpath_var=LD_RUN_PATH
14956 ;;
14957 siemens)
14958 need_lib_prefix=no
14959 ;;
14960 motorola)
14961 need_lib_prefix=no
14962 need_version=no
14963 shlibpath_overrides_runpath=no
14964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14965 ;;
14966 esac
14967 ;;
14968
14969 sysv4*MP*)
14970 if test -d /usr/nec ;then
14971 version_type=linux
14972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14973 soname_spec='$libname${shared_ext}.$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 fi
14976 ;;
14977
14978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14979 version_type=freebsd-elf
14980 need_lib_prefix=no
14981 need_version=no
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 shlibpath_overrides_runpath=yes
14986 hardcode_into_libs=yes
14987 if test "$with_gnu_ld" = yes; then
14988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14989 else
14990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14991 case $host_os in
14992 sco3.2v5*)
14993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14994 ;;
14995 esac
14996 fi
14997 sys_lib_dlsearch_path_spec='/usr/lib'
14998 ;;
14999
15000 tpf*)
15001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15002 version_type=linux
15003 need_lib_prefix=no
15004 need_version=no
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=no
15008 hardcode_into_libs=yes
15009 ;;
15010
15011 uts4*)
15012 version_type=linux
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 ;;
15017
15018 *)
15019 dynamic_linker=no
15020 ;;
15021 esac
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15023 $as_echo "$dynamic_linker" >&6; }
15024 test "$dynamic_linker" = no && can_build_shared=no
15025
15026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15027 if test "$GCC" = yes; then
15028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15029 fi
15030
15031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15033 fi
15034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15036 fi
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15077 hardcode_action_CXX=
15078 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15079 test -n "$runpath_var_CXX" ||
15080 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15081
15082 # We can hardcode non-existent directories.
15083 if test "$hardcode_direct_CXX" != no &&
15084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15085 # have to relink, otherwise we might link with an installed library
15086 # when we should be linking with a yet-to-be-installed one
15087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15088 test "$hardcode_minus_L_CXX" != no; then
15089 # Linking always hardcodes the temporary library directory.
15090 hardcode_action_CXX=relink
15091 else
15092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15093 hardcode_action_CXX=immediate
15094 fi
15095 else
15096 # We cannot hardcode anything, or else we can only hardcode existing
15097 # directories.
15098 hardcode_action_CXX=unsupported
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15101 $as_echo "$hardcode_action_CXX" >&6; }
15102
15103 if test "$hardcode_action_CXX" = relink ||
15104 test "$inherit_rpath_CXX" = yes; then
15105 # Fast installation is not supported
15106 enable_fast_install=no
15107 elif test "$shlibpath_overrides_runpath" = yes ||
15108 test "$enable_shared" = no; then
15109 # Fast installation is not necessary
15110 enable_fast_install=needless
15111 fi
15112
15113
15114
15115
15116
15117
15118
15119 fi # test -n "$compiler"
15120
15121 CC=$lt_save_CC
15122 LDCXX=$LD
15123 LD=$lt_save_LD
15124 GCC=$lt_save_GCC
15125 with_gnu_ld=$lt_save_with_gnu_ld
15126 lt_cv_path_LDCXX=$lt_cv_path_LD
15127 lt_cv_path_LD=$lt_save_path_LD
15128 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15129 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15130 fi # test "$_lt_caught_CXX_error" != yes
15131
15132 ac_ext=c
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150 ac_config_commands="$ac_config_commands libtool"
15151
15152
15153
15154
15155 # Only expand once:
15156
15157
15158
15159
15160
15161
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15163 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15164 # Check whether --enable-maintainer-mode was given.
15165 if test "${enable_maintainer_mode+set}" = set; then :
15166 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15167 else
15168 USE_MAINTAINER_MODE=no
15169 fi
15170
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15172 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15173 if test $USE_MAINTAINER_MODE = yes; then
15174 MAINTAINER_MODE_TRUE=
15175 MAINTAINER_MODE_FALSE='#'
15176 else
15177 MAINTAINER_MODE_TRUE='#'
15178 MAINTAINER_MODE_FALSE=
15179 fi
15180
15181 MAINT=$MAINTAINER_MODE_TRUE
15182
15183
15184
15185 # For libtool versioning info, format is CURRENT:REVISION:AGE
15186 libtool_VERSION=1:0:0
15187
15188
15189 # Check header files.
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15191 $as_echo_n "checking for ANSI C header files... " >&6; }
15192 if test "${ac_cv_header_stdc+set}" = set; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #include <stdlib.h>
15198 #include <stdarg.h>
15199 #include <string.h>
15200 #include <float.h>
15201
15202 int
15203 main ()
15204 {
15205
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 if ac_fn_c_try_compile "$LINENO"; then :
15211 ac_cv_header_stdc=yes
15212 else
15213 ac_cv_header_stdc=no
15214 fi
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216
15217 if test $ac_cv_header_stdc = yes; then
15218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 #include <string.h>
15222
15223 _ACEOF
15224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15225 $EGREP "memchr" >/dev/null 2>&1; then :
15226
15227 else
15228 ac_cv_header_stdc=no
15229 fi
15230 rm -f conftest*
15231
15232 fi
15233
15234 if test $ac_cv_header_stdc = yes; then
15235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 #include <stdlib.h>
15239
15240 _ACEOF
15241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15242 $EGREP "free" >/dev/null 2>&1; then :
15243
15244 else
15245 ac_cv_header_stdc=no
15246 fi
15247 rm -f conftest*
15248
15249 fi
15250
15251 if test $ac_cv_header_stdc = yes; then
15252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15253 if test "$cross_compiling" = yes; then :
15254 :
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 #include <ctype.h>
15259 #include <stdlib.h>
15260 #if ((' ' & 0x0FF) == 0x020)
15261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15263 #else
15264 # define ISLOWER(c) \
15265 (('a' <= (c) && (c) <= 'i') \
15266 || ('j' <= (c) && (c) <= 'r') \
15267 || ('s' <= (c) && (c) <= 'z'))
15268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15269 #endif
15270
15271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15272 int
15273 main ()
15274 {
15275 int i;
15276 for (i = 0; i < 256; i++)
15277 if (XOR (islower (i), ISLOWER (i))
15278 || toupper (i) != TOUPPER (i))
15279 return 2;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_run "$LINENO"; then :
15284
15285 else
15286 ac_cv_header_stdc=no
15287 fi
15288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289 conftest.$ac_objext conftest.beam conftest.$ac_ext
15290 fi
15291
15292 fi
15293 fi
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15295 $as_echo "$ac_cv_header_stdc" >&6; }
15296 if test $ac_cv_header_stdc = yes; then
15297
15298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15299
15300 fi
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15303 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15304 if test "${ac_cv_header_time+set}" = set; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 #include <sys/types.h>
15310 #include <sys/time.h>
15311 #include <time.h>
15312
15313 int
15314 main ()
15315 {
15316 if ((struct tm *) 0)
15317 return 0;
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_compile "$LINENO"; then :
15323 ac_cv_header_time=yes
15324 else
15325 ac_cv_header_time=no
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15330 $as_echo "$ac_cv_header_time" >&6; }
15331 if test $ac_cv_header_time = yes; then
15332
15333 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15334
15335 fi
15336
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15338 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15339 if test "${gcc_cv_header_string+set}" = set; then :
15340 $as_echo_n "(cached) " >&6
15341 else
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <string.h>
15345 #include <strings.h>
15346 int
15347 main ()
15348 {
15349
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 if ac_fn_c_try_compile "$LINENO"; then :
15355 gcc_cv_header_string=yes
15356 else
15357 gcc_cv_header_string=no
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 fi
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15362 $as_echo "$gcc_cv_header_string" >&6; }
15363 if test $gcc_cv_header_string = yes; then
15364
15365 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15366
15367 fi
15368
15369 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15370 do :
15371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15373 eval as_val=\$$as_ac_Header
15374 if test "x$as_val" = x""yes; then :
15375 cat >>confdefs.h <<_ACEOF
15376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15378
15379 fi
15380
15381 done
15382
15383
15384
15385
15386 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15387
15388 acx_cv_header_stdint=stddef.h
15389 acx_cv_header_stdint_kind="(already complete)"
15390 for i in stdint.h $inttype_headers; do
15391 unset ac_cv_type_uintptr_t
15392 unset ac_cv_type_uintmax_t
15393 unset ac_cv_type_int_least32_t
15394 unset ac_cv_type_int_fast32_t
15395 unset ac_cv_type_uint64_t
15396 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15397 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15398 #include <$i>
15399 "
15400 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15401 acx_cv_header_stdint=$i
15402 else
15403 continue
15404 fi
15405
15406 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15407 #include <$i>
15408 "
15409 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15410
15411 else
15412 acx_cv_header_stdint_kind="(mostly complete)"
15413 fi
15414
15415 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15416 #include <$i>
15417 "
15418 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15419
15420 else
15421 acx_cv_header_stdint_kind="(mostly complete)"
15422 fi
15423
15424 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15425 #include <$i>
15426 "
15427 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15428
15429 else
15430 acx_cv_header_stdint_kind="(mostly complete)"
15431 fi
15432
15433 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15434 #include <$i>
15435 "
15436 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15437
15438 else
15439 acx_cv_header_stdint_kind="(lacks uint64_t)"
15440 fi
15441
15442 break
15443 done
15444 if test "$acx_cv_header_stdint" = stddef.h; then
15445 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15446 for i in stdint.h $inttype_headers; do
15447 unset ac_cv_type_uintptr_t
15448 unset ac_cv_type_uint32_t
15449 unset ac_cv_type_uint64_t
15450 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15451 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15452 #include <$i>
15453 "
15454 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15455 acx_cv_header_stdint=$i
15456 else
15457 continue
15458 fi
15459
15460 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15461 #include <$i>
15462 "
15463 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15464
15465 fi
15466
15467 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15468 #include <$i>
15469 "
15470 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15471
15472 fi
15473
15474 break
15475 done
15476 fi
15477 if test "$acx_cv_header_stdint" = stddef.h; then
15478 acx_cv_header_stdint_kind="(u_intXX_t style)"
15479 for i in sys/types.h $inttype_headers; do
15480 unset ac_cv_type_u_int32_t
15481 unset ac_cv_type_u_int64_t
15482 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15483 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15484 #include <$i>
15485 "
15486 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15487 acx_cv_header_stdint=$i
15488 else
15489 continue
15490 fi
15491
15492 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15493 #include <$i>
15494 "
15495 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15496
15497 fi
15498
15499 break
15500 done
15501 fi
15502 if test "$acx_cv_header_stdint" = stddef.h; then
15503 acx_cv_header_stdint_kind="(using manual detection)"
15504 fi
15505
15506 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15507 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15508 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15509 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15510 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15511
15512 # ----------------- Summarize what we found so far
15513
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15515 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15516
15517 case `$as_basename -- gstdint.h ||
15518 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15519 Xgstdint.h : 'X\(//\)$' \| \
15520 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15521 $as_echo X/gstdint.h |
15522 sed '/^.*\/\([^/][^/]*\)\/*$/{
15523 s//\1/
15524 q
15525 }
15526 /^X\/\(\/\/\)$/{
15527 s//\1/
15528 q
15529 }
15530 /^X\/\(\/\).*/{
15531 s//\1/
15532 q
15533 }
15534 s/.*/./; q'` in
15535 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15536 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15537 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15538 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15539 *) ;;
15540 esac
15541
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15543 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15544
15545 # ----------------- done included file, check C basic types --------
15546
15547 # Lacking an uintptr_t? Test size of void *
15548 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15549 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15552 # This bug is HP SR number 8606223364.
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15554 $as_echo_n "checking size of void *... " >&6; }
15555 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15556 $as_echo_n "(cached) " >&6
15557 else
15558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15559
15560 else
15561 if test "$ac_cv_type_void_p" = yes; then
15562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15564 { as_fn_set_status 77
15565 as_fn_error "cannot compute sizeof (void *)
15566 See \`config.log' for more details." "$LINENO" 5; }; }
15567 else
15568 ac_cv_sizeof_void_p=0
15569 fi
15570 fi
15571
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15574 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15575
15576
15577
15578 cat >>confdefs.h <<_ACEOF
15579 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15580 _ACEOF
15581
15582 ;;
15583 esac
15584
15585 # Lacking an uint64_t? Test size of long
15586 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15587 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15590 # This bug is HP SR number 8606223364.
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15592 $as_echo_n "checking size of long... " >&6; }
15593 if test "${ac_cv_sizeof_long+set}" = set; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15597
15598 else
15599 if test "$ac_cv_type_long" = yes; then
15600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15602 { as_fn_set_status 77
15603 as_fn_error "cannot compute sizeof (long)
15604 See \`config.log' for more details." "$LINENO" 5; }; }
15605 else
15606 ac_cv_sizeof_long=0
15607 fi
15608 fi
15609
15610 fi
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15612 $as_echo "$ac_cv_sizeof_long" >&6; }
15613
15614
15615
15616 cat >>confdefs.h <<_ACEOF
15617 #define SIZEOF_LONG $ac_cv_sizeof_long
15618 _ACEOF
15619
15620 ;;
15621 esac
15622
15623 if test $acx_cv_header_stdint = stddef.h; then
15624 # Lacking a good header? Test size of everything and deduce all types.
15625 # The cast to long int works around a bug in the HP C Compiler
15626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15628 # This bug is HP SR number 8606223364.
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15630 $as_echo_n "checking size of int... " >&6; }
15631 if test "${ac_cv_sizeof_int+set}" = set; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15635
15636 else
15637 if test "$ac_cv_type_int" = yes; then
15638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15640 { as_fn_set_status 77
15641 as_fn_error "cannot compute sizeof (int)
15642 See \`config.log' for more details." "$LINENO" 5; }; }
15643 else
15644 ac_cv_sizeof_int=0
15645 fi
15646 fi
15647
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15650 $as_echo "$ac_cv_sizeof_int" >&6; }
15651
15652
15653
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_INT $ac_cv_sizeof_int
15656 _ACEOF
15657
15658
15659 # The cast to long int works around a bug in the HP C Compiler
15660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15662 # This bug is HP SR number 8606223364.
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15664 $as_echo_n "checking size of short... " >&6; }
15665 if test "${ac_cv_sizeof_short+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15669
15670 else
15671 if test "$ac_cv_type_short" = yes; then
15672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15674 { as_fn_set_status 77
15675 as_fn_error "cannot compute sizeof (short)
15676 See \`config.log' for more details." "$LINENO" 5; }; }
15677 else
15678 ac_cv_sizeof_short=0
15679 fi
15680 fi
15681
15682 fi
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15684 $as_echo "$ac_cv_sizeof_short" >&6; }
15685
15686
15687
15688 cat >>confdefs.h <<_ACEOF
15689 #define SIZEOF_SHORT $ac_cv_sizeof_short
15690 _ACEOF
15691
15692
15693 # The cast to long int works around a bug in the HP C Compiler
15694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15696 # This bug is HP SR number 8606223364.
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15698 $as_echo_n "checking size of char... " >&6; }
15699 if test "${ac_cv_sizeof_char+set}" = set; then :
15700 $as_echo_n "(cached) " >&6
15701 else
15702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15703
15704 else
15705 if test "$ac_cv_type_char" = yes; then
15706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15708 { as_fn_set_status 77
15709 as_fn_error "cannot compute sizeof (char)
15710 See \`config.log' for more details." "$LINENO" 5; }; }
15711 else
15712 ac_cv_sizeof_char=0
15713 fi
15714 fi
15715
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15718 $as_echo "$ac_cv_sizeof_char" >&6; }
15719
15720
15721
15722 cat >>confdefs.h <<_ACEOF
15723 #define SIZEOF_CHAR $ac_cv_sizeof_char
15724 _ACEOF
15725
15726
15727
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15729 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15730 case "$ac_cv_sizeof_char" in
15731 1) acx_cv_type_int8_t=char ;;
15732 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15733 esac
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15735 $as_echo "$acx_cv_type_int8_t" >&6; }
15736
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15738 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15739 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15740 2:*) acx_cv_type_int16_t=int ;;
15741 *:2) acx_cv_type_int16_t=short ;;
15742 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15743 esac
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15745 $as_echo "$acx_cv_type_int16_t" >&6; }
15746
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15748 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15749 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15750 4:*) acx_cv_type_int32_t=int ;;
15751 *:4) acx_cv_type_int32_t=long ;;
15752 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15753 esac
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15755 $as_echo "$acx_cv_type_int32_t" >&6; }
15756 fi
15757
15758 # These tests are here to make the output prettier
15759
15760 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15761 case "$ac_cv_sizeof_long" in
15762 8) acx_cv_type_int64_t=long ;;
15763 esac
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15765 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15767 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15768 fi
15769
15770 # Now we can use the above types
15771
15772 if test "$ac_cv_type_uintptr_t" != yes; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15774 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15775 case $ac_cv_sizeof_void_p in
15776 2) acx_cv_type_intptr_t=int16_t ;;
15777 4) acx_cv_type_intptr_t=int32_t ;;
15778 8) acx_cv_type_intptr_t=int64_t ;;
15779 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15780 esac
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15782 $as_echo "$acx_cv_type_intptr_t" >&6; }
15783 fi
15784
15785 # ----------------- done all checks, emit header -------------
15786 ac_config_commands="$ac_config_commands gstdint.h"
15787
15788
15789
15790
15791
15792 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15793 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15794 gcc_header_sys_mman_h=yes
15795 else
15796 gcc_header_sys_mman_h=no
15797 fi
15798
15799
15800 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15801 if test "x$ac_cv_func_mmap" = x""yes; then :
15802 gcc_func_mmap=yes
15803 else
15804 gcc_func_mmap=no
15805 fi
15806
15807 if test "$gcc_header_sys_mman_h" != yes \
15808 || test "$gcc_func_mmap" != yes; then
15809 gcc_cv_func_mmap_file=no
15810 gcc_cv_func_mmap_dev_zero=no
15811 gcc_cv_func_mmap_anon=no
15812 else
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15814 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15815 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 # Add a system to this blacklist if
15819 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15820 # memory area containing the same data that you'd get if you applied
15821 # read() to the same fd. The only system known to have a problem here
15822 # is VMS, where text files have record structure.
15823 case "$host_os" in
15824 *vms* | ultrix*)
15825 gcc_cv_func_mmap_file=no ;;
15826 *)
15827 gcc_cv_func_mmap_file=yes;;
15828 esac
15829 fi
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15831 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15833 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15834 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 # Add a system to this blacklist if it has mmap() but /dev/zero
15838 # does not exist, or if mmapping /dev/zero does not give anonymous
15839 # zeroed pages with both the following properties:
15840 # 1. If you map N consecutive pages in with one call, and then
15841 # unmap any subset of those pages, the pages that were not
15842 # explicitly unmapped remain accessible.
15843 # 2. If you map two adjacent blocks of memory and then unmap them
15844 # both at once, they must both go away.
15845 # Systems known to be in this category are Windows (all variants),
15846 # VMS, and Darwin.
15847 case "$host_os" in
15848 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15849 gcc_cv_func_mmap_dev_zero=no ;;
15850 *)
15851 gcc_cv_func_mmap_dev_zero=yes;;
15852 esac
15853 fi
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15855 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15856
15857 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15859 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15860 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15861 $as_echo_n "(cached) " >&6
15862 else
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865 #include <sys/types.h>
15866 #include <sys/mman.h>
15867 #include <unistd.h>
15868
15869 #ifndef MAP_ANONYMOUS
15870 #define MAP_ANONYMOUS MAP_ANON
15871 #endif
15872
15873 int
15874 main ()
15875 {
15876 int n = MAP_ANONYMOUS;
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 gcc_cv_decl_map_anon=yes
15883 else
15884 gcc_cv_decl_map_anon=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15889 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15890
15891 if test $gcc_cv_decl_map_anon = no; then
15892 gcc_cv_func_mmap_anon=no
15893 else
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15895 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15896 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15900 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15901 # doesn't give anonymous zeroed pages with the same properties listed
15902 # above for use of /dev/zero.
15903 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15904 case "$host_os" in
15905 *vms* | cygwin* | pe | mingw* | sco* | udk* )
15906 gcc_cv_func_mmap_anon=no ;;
15907 *)
15908 gcc_cv_func_mmap_anon=yes;;
15909 esac
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15912 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15913 fi
15914 fi
15915
15916 if test $gcc_cv_func_mmap_file = yes; then
15917
15918 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15919
15920 fi
15921 if test $gcc_cv_func_mmap_dev_zero = yes; then
15922
15923 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15924
15925 fi
15926 if test $gcc_cv_func_mmap_anon = yes; then
15927
15928 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15929
15930 fi
15931
15932
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15934 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15935 if test "${ac_cv_c_bigendian+set}" = set; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15938 ac_cv_c_bigendian=unknown
15939 # See if we're dealing with a universal compiler.
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 #ifndef __APPLE_CC__
15943 not a universal capable compiler
15944 #endif
15945 typedef int dummy;
15946
15947 _ACEOF
15948 if ac_fn_c_try_compile "$LINENO"; then :
15949
15950 # Check for potential -arch flags. It is not universal unless
15951 # there are at least two -arch flags with different values.
15952 ac_arch=
15953 ac_prev=
15954 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15955 if test -n "$ac_prev"; then
15956 case $ac_word in
15957 i?86 | x86_64 | ppc | ppc64)
15958 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15959 ac_arch=$ac_word
15960 else
15961 ac_cv_c_bigendian=universal
15962 break
15963 fi
15964 ;;
15965 esac
15966 ac_prev=
15967 elif test "x$ac_word" = "x-arch"; then
15968 ac_prev=arch
15969 fi
15970 done
15971 fi
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 if test $ac_cv_c_bigendian = unknown; then
15974 # See if sys/param.h defines the BYTE_ORDER macro.
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15977 #include <sys/types.h>
15978 #include <sys/param.h>
15979
15980 int
15981 main ()
15982 {
15983 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15984 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15985 && LITTLE_ENDIAN)
15986 bogus endian macros
15987 #endif
15988
15989 ;
15990 return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_compile "$LINENO"; then :
15994 # It does; now see whether it defined to BIG_ENDIAN or not.
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 #include <sys/types.h>
15998 #include <sys/param.h>
15999
16000 int
16001 main ()
16002 {
16003 #if BYTE_ORDER != BIG_ENDIAN
16004 not big endian
16005 #endif
16006
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012 ac_cv_c_bigendian=yes
16013 else
16014 ac_cv_c_bigendian=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 fi
16020 if test $ac_cv_c_bigendian = unknown; then
16021 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 #include <limits.h>
16025
16026 int
16027 main ()
16028 {
16029 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16030 bogus endian macros
16031 #endif
16032
16033 ;
16034 return 0;
16035 }
16036 _ACEOF
16037 if ac_fn_c_try_compile "$LINENO"; then :
16038 # It does; now see whether it defined to _BIG_ENDIAN or not.
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 #include <limits.h>
16042
16043 int
16044 main ()
16045 {
16046 #ifndef _BIG_ENDIAN
16047 not big endian
16048 #endif
16049
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 ac_cv_c_bigendian=yes
16056 else
16057 ac_cv_c_bigendian=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 fi
16063 if test $ac_cv_c_bigendian = unknown; then
16064 # Compile a test program.
16065 if test "$cross_compiling" = yes; then :
16066 # Try to guess by grepping values from an object file.
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 short int ascii_mm[] =
16070 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16071 short int ascii_ii[] =
16072 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16073 int use_ascii (int i) {
16074 return ascii_mm[i] + ascii_ii[i];
16075 }
16076 short int ebcdic_ii[] =
16077 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16078 short int ebcdic_mm[] =
16079 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16080 int use_ebcdic (int i) {
16081 return ebcdic_mm[i] + ebcdic_ii[i];
16082 }
16083 extern int foo;
16084
16085 int
16086 main ()
16087 {
16088 return use_ascii (foo) == use_ebcdic (foo);
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_compile "$LINENO"; then :
16094 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16095 ac_cv_c_bigendian=yes
16096 fi
16097 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16098 if test "$ac_cv_c_bigendian" = unknown; then
16099 ac_cv_c_bigendian=no
16100 else
16101 # finding both strings is unlikely to happen, but who knows?
16102 ac_cv_c_bigendian=unknown
16103 fi
16104 fi
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 else
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 $ac_includes_default
16111 int
16112 main ()
16113 {
16114
16115 /* Are we little or big endian? From Harbison&Steele. */
16116 union
16117 {
16118 long int l;
16119 char c[sizeof (long int)];
16120 } u;
16121 u.l = 1;
16122 return u.c[sizeof (long int) - 1] == 1;
16123
16124 ;
16125 return 0;
16126 }
16127 _ACEOF
16128 if ac_fn_c_try_run "$LINENO"; then :
16129 ac_cv_c_bigendian=no
16130 else
16131 ac_cv_c_bigendian=yes
16132 fi
16133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16134 conftest.$ac_objext conftest.beam conftest.$ac_ext
16135 fi
16136
16137 fi
16138 fi
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16140 $as_echo "$ac_cv_c_bigendian" >&6; }
16141 case $ac_cv_c_bigendian in #(
16142 yes)
16143 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16144 ;; #(
16145 no)
16146 ;; #(
16147 universal)
16148
16149 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16150
16151 ;; #(
16152 *)
16153 as_fn_error "unknown endianness
16154 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16155 esac
16156
16157 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16158
16159
16160 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16161 # In case the pthread.h system header is not found, this test will fail.
16162 XPCFLAGS=""
16163 CFLAGS="$CFLAGS -pthread"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <pthread.h>
16167 void *g(void *d) { return NULL; }
16168 int
16169 main ()
16170 {
16171 pthread_t t; pthread_create(&t,NULL,g,NULL);
16172 ;
16173 return 0;
16174 }
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177 XPCFLAGS=" -Wc,-pthread"
16178 else
16179 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 #include <pthread.h>
16183 void *g(void *d) { return NULL; }
16184 int
16185 main ()
16186 {
16187 pthread_t t; pthread_create(&t,NULL,g,NULL);
16188 ;
16189 return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"; then :
16193
16194 else
16195 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202
16203 # Check for functions needed.
16204 for ac_func in strtoull memalign posix_memalign getauxval
16205 do :
16206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16208 eval as_val=\$$as_ac_var
16209 if test "x$as_val" = x""yes; then :
16210 cat >>confdefs.h <<_ACEOF
16211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16212 _ACEOF
16213
16214 fi
16215 done
16216
16217
16218 # Check for broken semaphore implementation on darwin.
16219 # sem_init returns: sem_init error: Function not implemented.
16220 case "$host" in
16221 *-darwin*)
16222
16223 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16224
16225 ;;
16226 esac
16227
16228 # Check whether --enable-linux-futex was given.
16229 if test "${enable_linux_futex+set}" = set; then :
16230 enableval=$enable_linux_futex;
16231 case "$enableval" in
16232 yes|no|default) ;;
16233 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16234 esac
16235
16236 else
16237 enable_linux_futex=default
16238 fi
16239
16240
16241 case "$target" in
16242 *-linux*)
16243 case "$enable_linux_futex" in
16244 default)
16245 # If headers don't have gettid/futex syscalls definition, then
16246 # default to no, otherwise there will be compile time failures.
16247 # Otherwise, default to yes. If we don't detect we are
16248 # compiled/linked against NPTL and not cross-compiling, check
16249 # if programs are run by default against NPTL and if not, issue
16250 # a warning.
16251 enable_linux_futex=no
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253 /* end confdefs.h. */
16254 #include <sys/syscall.h>
16255 int lk;
16256 int
16257 main ()
16258 {
16259 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 save_LIBS="$LIBS"
16266 LIBS="-lpthread $LIBS"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 #ifndef _GNU_SOURCE
16270 #define _GNU_SOURCE 1
16271 #endif
16272 #include <pthread.h>
16273 pthread_t th; void *status;
16274 int
16275 main ()
16276 {
16277 pthread_tryjoin_np (th, &status);
16278 ;
16279 return 0;
16280 }
16281 _ACEOF
16282 if ac_fn_c_try_link "$LINENO"; then :
16283 enable_linux_futex=yes
16284 else
16285 if test x$cross_compiling = xno; then
16286 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16287 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16289 If so, please configure with --disable-linux-futex" >&5
16290 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16291 If so, please configure with --disable-linux-futex" >&2;}
16292 fi
16293 fi
16294 enable_linux_futex=yes
16295 fi
16296 rm -f core conftest.err conftest.$ac_objext \
16297 conftest$ac_exeext conftest.$ac_ext
16298 LIBS="$save_LIBS"
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 ;;
16303 yes)
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <sys/syscall.h>
16307 int lk;
16308 int
16309 main ()
16310 {
16311 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"; then :
16317
16318 else
16319 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext \
16322 conftest$ac_exeext conftest.$ac_ext
16323 ;;
16324 esac
16325 ;;
16326 *)
16327 enable_linux_futex=no
16328 ;;
16329 esac
16330 if test x$enable_linux_futex = xyes; then
16331 :
16332 fi
16333
16334
16335 # See if we support thread-local storage.
16336
16337
16338 # Check whether --enable-tls was given.
16339 if test "${enable_tls+set}" = set; then :
16340 enableval=$enable_tls;
16341 case "$enableval" in
16342 yes|no) ;;
16343 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16344 esac
16345
16346 else
16347 enable_tls=yes
16348 fi
16349
16350
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16352 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16353 if test "${gcc_cv_have_tls+set}" = set; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356
16357 if test "$cross_compiling" = yes; then :
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360 __thread int a; int b; int main() { return a = b; }
16361 _ACEOF
16362 if ac_fn_c_try_link "$LINENO"; then :
16363 chktls_save_LDFLAGS="$LDFLAGS"
16364 case $host in
16365 *-*-linux*)
16366 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16367 ;;
16368 esac
16369 chktls_save_CFLAGS="$CFLAGS"
16370 CFLAGS="-fPIC $CFLAGS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16373 int f() { return 0; }
16374 _ACEOF
16375 if ac_fn_c_try_link "$LINENO"; then :
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378 __thread int a; int b; int f() { return a = b; }
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"; then :
16381 gcc_cv_have_tls=yes
16382 else
16383 gcc_cv_have_tls=no
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 else
16388 gcc_cv_have_tls=yes
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 CFLAGS="$chktls_save_CFLAGS"
16393 LDFLAGS="$chktls_save_LDFLAGS"
16394 else
16395 gcc_cv_have_tls=no
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext \
16398 conftest$ac_exeext conftest.$ac_ext
16399
16400
16401 else
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 __thread int a; int b; int main() { return a = b; }
16405 _ACEOF
16406 if ac_fn_c_try_run "$LINENO"; then :
16407 chktls_save_LDFLAGS="$LDFLAGS"
16408 LDFLAGS="-static $LDFLAGS"
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 int main() { return 0; }
16412 _ACEOF
16413 if ac_fn_c_try_link "$LINENO"; then :
16414 if test "$cross_compiling" = yes; then :
16415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16417 as_fn_error "cannot run test program while cross compiling
16418 See \`config.log' for more details." "$LINENO" 5; }
16419 else
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 __thread int a; int b; int main() { return a = b; }
16423 _ACEOF
16424 if ac_fn_c_try_run "$LINENO"; then :
16425 gcc_cv_have_tls=yes
16426 else
16427 gcc_cv_have_tls=no
16428 fi
16429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16430 conftest.$ac_objext conftest.beam conftest.$ac_ext
16431 fi
16432
16433 else
16434 gcc_cv_have_tls=yes
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 LDFLAGS="$chktls_save_LDFLAGS"
16439 if test $gcc_cv_have_tls = yes; then
16440 chktls_save_CFLAGS="$CFLAGS"
16441 thread_CFLAGS=failed
16442 for flag in '' '-pthread' '-lpthread'; do
16443 CFLAGS="$flag $chktls_save_CFLAGS"
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446 #include <pthread.h>
16447 void *g(void *d) { return NULL; }
16448 int
16449 main ()
16450 {
16451 pthread_t t; pthread_create(&t,NULL,g,NULL);
16452 ;
16453 return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"; then :
16457 thread_CFLAGS="$flag"
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext \
16460 conftest$ac_exeext conftest.$ac_ext
16461 if test "X$thread_CFLAGS" != Xfailed; then
16462 break
16463 fi
16464 done
16465 CFLAGS="$chktls_save_CFLAGS"
16466 if test "X$thread_CFLAGS" != Xfailed; then
16467 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16468 if test "$cross_compiling" = yes; then :
16469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16471 as_fn_error "cannot run test program while cross compiling
16472 See \`config.log' for more details." "$LINENO" 5; }
16473 else
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476 #include <pthread.h>
16477 __thread int a;
16478 static int *volatile a_in_other_thread;
16479 static void *
16480 thread_func (void *arg)
16481 {
16482 a_in_other_thread = &a;
16483 return (void *)0;
16484 }
16485 int
16486 main ()
16487 {
16488 pthread_t thread;
16489 void *thread_retval;
16490 int *volatile a_in_main_thread;
16491 a_in_main_thread = &a;
16492 if (pthread_create (&thread, (pthread_attr_t *)0,
16493 thread_func, (void *)0))
16494 return 0;
16495 if (pthread_join (thread, &thread_retval))
16496 return 0;
16497 return (a_in_other_thread == a_in_main_thread);
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_run "$LINENO"; then :
16503 gcc_cv_have_tls=yes
16504 else
16505 gcc_cv_have_tls=no
16506 fi
16507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16508 conftest.$ac_objext conftest.beam conftest.$ac_ext
16509 fi
16510
16511 CFLAGS="$chktls_save_CFLAGS"
16512 fi
16513 fi
16514 else
16515 gcc_cv_have_tls=no
16516 fi
16517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16518 conftest.$ac_objext conftest.beam conftest.$ac_ext
16519 fi
16520
16521 fi
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16523 $as_echo "$gcc_cv_have_tls" >&6; }
16524 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16525
16526 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16527
16528 fi
16529
16530 # See what sort of export controls are available.
16531
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16533 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16534 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16535 $as_echo_n "(cached) " >&6
16536 else
16537
16538 save_CFLAGS="$CFLAGS"
16539 CFLAGS="$CFLAGS -Werror"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 void __attribute__((visibility("hidden"))) foo(void) { }
16543 int
16544 main ()
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_compile "$LINENO"; then :
16552 libitm_cv_have_attribute_visibility=yes
16553 else
16554 libitm_cv_have_attribute_visibility=no
16555 fi
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 CFLAGS="$save_CFLAGS"
16558 fi
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16560 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16561 if test $libitm_cv_have_attribute_visibility = yes; then
16562
16563 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16564
16565 fi
16566
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16568 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16569 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16570 $as_echo_n "(cached) " >&6
16571 else
16572
16573 save_CFLAGS="$CFLAGS"
16574 CFLAGS="$CFLAGS -Werror"
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16577 void __attribute__((dllexport)) foo(void) { }
16578 int
16579 main ()
16580 {
16581
16582 ;
16583 return 0;
16584 }
16585 _ACEOF
16586 if ac_fn_c_try_compile "$LINENO"; then :
16587 libitm_cv_have_attribute_dllexport=yes
16588 else
16589 libitm_cv_have_attribute_dllexport=no
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 CFLAGS="$save_CFLAGS"
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16595 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16596 if test $libitm_cv_have_attribute_dllexport = yes; then
16597
16598 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16599
16600 fi
16601
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16603 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16604 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16605 $as_echo_n "(cached) " >&6
16606 else
16607
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h. */
16610
16611 void foo(void) { }
16612 extern void bar(void) __attribute__((alias("foo")));
16613 int
16614 main ()
16615 {
16616 bar();
16617 ;
16618 return 0;
16619 }
16620 _ACEOF
16621 if ac_fn_c_try_link "$LINENO"; then :
16622 libitm_cv_have_attribute_alias=yes
16623 else
16624 libitm_cv_have_attribute_alias=no
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16630 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16631 if test $libitm_cv_have_attribute_alias = yes; then
16632
16633 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16634
16635 fi
16636
16637 # Check linker hardware capability support.
16638
16639
16640 # Check whether --with-gnu-ld was given.
16641 if test "${with_gnu_ld+set}" = set; then :
16642 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16643 else
16644 with_gnu_ld=no
16645 fi
16646
16647 ac_prog=ld
16648 if test "$GCC" = yes; then
16649 # Check if gcc -print-prog-name=ld gives a path.
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16651 $as_echo_n "checking for ld used by $CC... " >&6; }
16652 case $host in
16653 *-*-mingw*)
16654 # gcc leaves a trailing carriage return which upsets mingw
16655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16656 *)
16657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16658 esac
16659 case $ac_prog in
16660 # Accept absolute paths.
16661 [\\/]* | ?:[\\/]*)
16662 re_direlt='/[^/][^/]*/\.\./'
16663 # Canonicalize the pathname of ld
16664 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16665 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16666 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16667 done
16668 test -z "$LD" && LD="$ac_prog"
16669 ;;
16670 "")
16671 # If it fails, then pretend we aren't using GCC.
16672 ac_prog=ld
16673 ;;
16674 *)
16675 # If it is relative, then search for the first ld in PATH.
16676 with_gnu_ld=unknown
16677 ;;
16678 esac
16679 elif test "$with_gnu_ld" = yes; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16681 $as_echo_n "checking for GNU ld... " >&6; }
16682 else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16684 $as_echo_n "checking for non-GNU ld... " >&6; }
16685 fi
16686 if test "${lt_cv_path_LD+set}" = set; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 if test -z "$LD"; then
16690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16691 for ac_dir in $PATH; do
16692 IFS="$lt_save_ifs"
16693 test -z "$ac_dir" && ac_dir=.
16694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16695 lt_cv_path_LD="$ac_dir/$ac_prog"
16696 # Check to see if the program is GNU ld. I'd rather use --version,
16697 # but apparently some variants of GNU ld only accept -v.
16698 # Break only if it was the GNU/non-GNU ld that we prefer.
16699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16700 *GNU* | *'with BFD'*)
16701 test "$with_gnu_ld" != no && break
16702 ;;
16703 *)
16704 test "$with_gnu_ld" != yes && break
16705 ;;
16706 esac
16707 fi
16708 done
16709 IFS="$lt_save_ifs"
16710 else
16711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16712 fi
16713 fi
16714
16715 LD="$lt_cv_path_LD"
16716 if test -n "$LD"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16718 $as_echo "$LD" >&6; }
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721 $as_echo "no" >&6; }
16722 fi
16723 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16726 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16730 case `$LD -v 2>&1 </dev/null` in
16731 *GNU* | *'with BFD'*)
16732 lt_cv_prog_gnu_ld=yes
16733 ;;
16734 *)
16735 lt_cv_prog_gnu_ld=no
16736 ;;
16737 esac
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16740 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16741 with_gnu_ld=$lt_cv_prog_gnu_ld
16742
16743
16744
16745
16746
16747
16748
16749 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16750
16751
16752 ac_save_LDFLAGS="$LDFLAGS"
16753 LDFLAGS="$LFLAGS -mclear-hwcap"
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
16756 $as_echo_n "checking for -mclear-hwcap... " >&6; }
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759
16760 int
16761 main ()
16762 {
16763 return 0;
16764 ;
16765 return 0;
16766 }
16767 _ACEOF
16768 if ac_fn_c_try_link "$LINENO"; then :
16769 ac_hwcap_ldflags=yes
16770 else
16771 ac_hwcap_ldflags=no
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
16775 if test "$ac_hwcap_ldflags" = "yes"; then
16776 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16779 $as_echo "$ac_hwcap_ldflags" >&6; }
16780
16781 LDFLAGS="$ac_save_LDFLAGS"
16782
16783
16784
16785 if test $ac_hwcap_ldflags != no; then
16786 HAVE_HWCAP_TRUE=
16787 HAVE_HWCAP_FALSE='#'
16788 else
16789 HAVE_HWCAP_TRUE='#'
16790 HAVE_HWCAP_FALSE=
16791 fi
16792
16793
16794 # If defaulting to -mavx, don't clear hwcaps.
16795 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16796 if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16797 HWCAP_LDFLAGS=''
16798 fi
16799
16800
16801
16802 # If we're not using GNU ld, then there's no point in even trying these
16803 # tests. Check for that first. We should have already tested for gld
16804 # by now (in libtool), but require it now just to be safe...
16805 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16806 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16807
16808
16809
16810 # The name set by libtool depends on the version of libtool. Shame on us
16811 # for depending on an impl detail, but c'est la vie. Older versions used
16812 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16813 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16814 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16815 # set (hence we're using an older libtool), then set it.
16816 if test x${with_gnu_ld+set} != xset; then
16817 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16818 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16819 with_gnu_ld=no
16820 else
16821 with_gnu_ld=$ac_cv_prog_gnu_ld
16822 fi
16823 fi
16824
16825 # Start by getting the version number. I think the libtool test already
16826 # does some of this, but throws away the result.
16827 libitm_ld_is_gold=no
16828 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16829 libitm_ld_is_gold=yes
16830 fi
16831
16832 ldver=`$LD --version 2>/dev/null |
16833 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'`
16834
16835 libitm_gnu_ld_version=`echo $ldver | \
16836 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16837
16838 # Set --gc-sections.
16839 if test "$with_gnu_ld" = "notbroken"; then
16840 # GNU ld it is! Joy and bunny rabbits!
16841
16842 # All these tests are for C++; save the language and the compiler flags.
16843 # Need to do this so that g++ won't try to link in libstdc++
16844 ac_test_CFLAGS="${CFLAGS+set}"
16845 ac_save_CFLAGS="$CFLAGS"
16846 CFLAGS='-x c++ -Wl,--gc-sections'
16847
16848 # Check for -Wl,--gc-sections
16849 # XXX This test is broken at the moment, as symbols required for linking
16850 # are now in libsupc++ (not built yet). In addition, this test has
16851 # cored on solaris in the past. In addition, --gc-sections doesn't
16852 # really work at the moment (keeps on discarding used sections, first
16853 # .eh_frame and now some of the glibc sections for iconv).
16854 # Bzzzzt. Thanks for playing, maybe next time.
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16856 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16857 if test "$cross_compiling" = yes; then :
16858 ac_sectionLDflags=yes
16859 else
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862
16863 int main(void)
16864 {
16865 try { throw 1; }
16866 catch (...) { };
16867 return 0;
16868 }
16869
16870 _ACEOF
16871 if ac_fn_c_try_run "$LINENO"; then :
16872 ac_sectionLDflags=yes
16873 else
16874 ac_sectionLDflags=no
16875 fi
16876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16877 conftest.$ac_objext conftest.beam conftest.$ac_ext
16878 fi
16879
16880 if test "$ac_test_CFLAGS" = set; then
16881 CFLAGS="$ac_save_CFLAGS"
16882 else
16883 # this is the suspicious part
16884 CFLAGS=''
16885 fi
16886 if test "$ac_sectionLDflags" = "yes"; then
16887 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16890 $as_echo "$ac_sectionLDflags" >&6; }
16891 fi
16892
16893 # Set linker optimization flags.
16894 if test x"$with_gnu_ld" = x"yes"; then
16895 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16896 fi
16897
16898
16899
16900
16901
16902
16903 # Check whether --enable-symvers was given.
16904 if test "${enable_symvers+set}" = set; then :
16905 enableval=$enable_symvers;
16906 case "$enableval" in
16907 yes|no|gnu*|sun) ;;
16908 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16909 esac
16910
16911 else
16912 enable_symvers=yes
16913 fi
16914
16915
16916
16917 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16918 # don't know enough about $LD to do tricks...
16919
16920
16921 # Turn a 'yes' into a suitable default.
16922 if test x$enable_symvers = xyes ; then
16923 # FIXME The following test is too strict, in theory.
16924 if test $enable_shared = no || test "x$LD" = x; then
16925 enable_symvers=no
16926 else
16927 if test $with_gnu_ld = yes ; then
16928 enable_symvers=gnu
16929 else
16930 case ${target_os} in
16931 # Sun symbol versioning exists since Solaris 2.5.
16932 solaris2.[5-9]* | solaris2.1[0-9]*)
16933 enable_symvers=sun ;;
16934 *)
16935 enable_symvers=no ;;
16936 esac
16937 fi
16938 fi
16939 fi
16940
16941 # Check if 'sun' was requested on non-Solaris 2 platforms.
16942 if test x$enable_symvers = xsun ; then
16943 case ${target_os} in
16944 solaris2*)
16945 # All fine.
16946 ;;
16947 *)
16948 # Unlikely to work.
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16950 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16952 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16954 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16955 enable_symvers=no
16956 ;;
16957 esac
16958 fi
16959
16960 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16961 if test $enable_symvers != no; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16963 $as_echo_n "checking for shared libgcc... " >&6; }
16964 ac_save_CFLAGS="$CFLAGS"
16965 CFLAGS=' -lgcc_s'
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968
16969 int
16970 main ()
16971 {
16972 return 0;
16973 ;
16974 return 0;
16975 }
16976 _ACEOF
16977 if ac_fn_c_try_link "$LINENO"; then :
16978 libitm_shared_libgcc=yes
16979 else
16980 libitm_shared_libgcc=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext \
16983 conftest$ac_exeext conftest.$ac_ext
16984 CFLAGS="$ac_save_CFLAGS"
16985 if test $libitm_shared_libgcc = no; then
16986 cat > conftest.c <<EOF
16987 int main (void) { return 0; }
16988 EOF
16989 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16990 -shared -shared-libgcc -o conftest.so \
16991 conftest.c -v 2>&1 >/dev/null \
16992 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16993 rm -f conftest.c conftest.so
16994 if test x${libitm_libgcc_s_suffix+set} = xset; then
16995 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998
16999 int
17000 main ()
17001 {
17002 return 0;
17003 ;
17004 return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 libitm_shared_libgcc=yes
17009 fi
17010 rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012 CFLAGS="$ac_save_CFLAGS"
17013 fi
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17016 $as_echo "$libitm_shared_libgcc" >&6; }
17017 fi
17018
17019 # For GNU ld, we need at least this version. The format is described in
17020 # LIBITM_CHECK_LINKER_FEATURES above.
17021 libitm_min_gnu_ld_version=21400
17022 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17023
17024 # Check to see if unspecified "yes" value can win, given results above.
17025 # Change "yes" into either "no" or a style name.
17026 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17027 if test $with_gnu_ld = yes; then
17028 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17029 enable_symvers=gnu
17030 elif test $libitm_ld_is_gold = yes ; then
17031 enable_symvers=gnu
17032 else
17033 # The right tools, the right setup, but too old. Fallbacks?
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17035 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17037 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17039 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17041 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17042 if test $libitm_gnu_ld_version -ge 21200 ; then
17043 # Globbing fix is present, proper block support is not.
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17045 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17046 enable_symvers=no
17047 else
17048 # 2.11 or older.
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17050 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17051 enable_symvers=no
17052 fi
17053 fi
17054 elif test $enable_symvers = sun; then
17055 : All interesting versions of Sun ld support sun style symbol versioning.
17056 else
17057 # just fail for now
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17059 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17061 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17063 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17065 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17066 enable_symvers=no
17067 fi
17068 fi
17069
17070 if test $enable_symvers != no; then
17071 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17072 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17073 else
17074 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17075 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17076 fi
17077
17078 if test $enable_symvers = gnu; then
17079 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17080 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17081 else
17082 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17083 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17084 fi
17085
17086 if test $enable_symvers = sun; then
17087 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17088 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17089 else
17090 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17091 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17092 fi
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17095 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17096
17097 if test $enable_symvers = gnu; then
17098
17099 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17100
17101 fi
17102
17103 # See if we can emit unwind info in the sjlj stub.
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17105 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17106 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109
17110 gcc_cv_as_cfi_pseudo_op=unknown
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 asm (".cfi_startproc\n\t.cfi_endproc");
17114 int
17115 main ()
17116 {
17117
17118 ;
17119 return 0;
17120 }
17121 _ACEOF
17122 if ac_fn_c_try_compile "$LINENO"; then :
17123 gcc_cv_as_cfi_pseudo_op=yes
17124 else
17125 gcc_cv_as_cfi_pseudo_op=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17131 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17132 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17133
17134 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17135
17136 fi
17137
17138
17139 # Determine the proper ABI type for size_t.
17140
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17142 $as_echo_n "checking how size_t is mangled... " >&6; }
17143 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149
17150 int
17151 main ()
17152 {
17153 extern __SIZE_TYPE__ x; extern unsigned long x;
17154 ;
17155 return 0;
17156 }
17157 _ACEOF
17158 if ac_fn_c_try_compile "$LINENO"; then :
17159 libitm_cv_size_t_mangling=m
17160 else
17161
17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h. */
17164
17165 int
17166 main ()
17167 {
17168 extern __SIZE_TYPE__ x; extern unsigned int x;
17169 ;
17170 return 0;
17171 }
17172 _ACEOF
17173 if ac_fn_c_try_compile "$LINENO"; then :
17174 libitm_cv_size_t_mangling=j
17175 else
17176
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17179
17180 int
17181 main ()
17182 {
17183 extern __SIZE_TYPE__ x; extern unsigned long long x;
17184 ;
17185 return 0;
17186 }
17187 _ACEOF
17188 if ac_fn_c_try_compile "$LINENO"; then :
17189 libitm_cv_size_t_mangling=y
17190 else
17191
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194
17195 int
17196 main ()
17197 {
17198 extern __SIZE_TYPE__ x; extern unsigned short x;
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_compile "$LINENO"; then :
17204 libitm_cv_size_t_mangling=t
17205 else
17206 libitm_cv_size_t_mangling=x
17207 fi
17208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215
17216 fi
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17221 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17222 if test $libitm_cv_size_t_mangling = x; then
17223 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17224 fi
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17228 _ACEOF
17229
17230
17231
17232 # Get target configury.
17233 . ${srcdir}/configure.tgt
17234 if test -n "$UNSUPPORTED"; then
17235 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17236 fi
17237
17238 CFLAGS="$save_CFLAGS $XCFLAGS"
17239
17240 # Check for __sync_val_compare_and_swap, but only after the target has
17241 # had a chance to set XCFLAGS.
17242
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17244 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17245 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17246 $as_echo_n "(cached) " >&6
17247 else
17248
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251
17252 int
17253 main ()
17254 {
17255 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 libitm_cv_have_sync_builtins=yes
17262 else
17263 libitm_cv_have_sync_builtins=no
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext \
17266 conftest$ac_exeext conftest.$ac_ext
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17269 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17270 if test $libitm_cv_have_sync_builtins = yes; then
17271
17272 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17273
17274 fi
17275
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17277 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17278 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17279 $as_echo_n "(cached) " >&6
17280 else
17281
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284 #include <stdint.h>
17285 int
17286 main ()
17287 {
17288 uint64_t foo, bar;
17289 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17290 ;
17291 return 0;
17292 }
17293 _ACEOF
17294 if ac_fn_c_try_link "$LINENO"; then :
17295 libitm_cv_have_64bit_sync_builtins=yes
17296 else
17297 libitm_cv_have_64bit_sync_builtins=no
17298 fi
17299 rm -f core conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301 fi
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17303 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17304 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17305
17306 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17307
17308 fi
17309
17310 case "${target_cpu}" in
17311 i[34567]86 | x86_64)
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17313 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17314 if test "${libitm_cv_as_avx+set}" = set; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 int
17322 main ()
17323 {
17324 asm("vzeroupper");
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 if ac_fn_c_try_compile "$LINENO"; then :
17330 libitm_cv_as_avx=yes
17331 else
17332 libitm_cv_as_avx=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335
17336 fi
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17338 $as_echo "$libitm_cv_as_avx" >&6; }
17339 if test x$libitm_cv_as_avx = xyes; then
17340
17341 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17342
17343 fi
17344 ;;
17345 esac
17346
17347 case "${target_cpu}" in
17348 i[34567]86 | x86_64)
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17350 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17351 if test "${libitm_cv_as_rtm+set}" = set; then :
17352 $as_echo_n "(cached) " >&6
17353 else
17354
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357
17358 int
17359 main ()
17360 {
17361 asm("1: xbegin 1b; xend");
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 if ac_fn_c_try_compile "$LINENO"; then :
17367 libitm_cv_as_rtm=yes
17368 else
17369 libitm_cv_as_rtm=no
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17375 $as_echo "$libitm_cv_as_rtm" >&6; }
17376 if test x$libitm_cv_as_rtm = xyes; then
17377
17378 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17379
17380 fi
17381 ;;
17382 esac
17383
17384 case "${target_cpu}" in
17385 powerpc*)
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17387 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17388 if test "${libitm_cv_as_htm+set}" = set; then :
17389 $as_echo_n "(cached) " >&6
17390 else
17391
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394
17395 int
17396 main ()
17397 {
17398 asm("tbegin. 0; tend. 0");
17399 ;
17400 return 0;
17401 }
17402 _ACEOF
17403 if ac_fn_c_try_compile "$LINENO"; then :
17404 libitm_cv_as_htm=yes
17405 else
17406 libitm_cv_as_htm=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17412 $as_echo "$libitm_cv_as_htm" >&6; }
17413 if test x$libitm_cv_as_htm = xyes; then
17414
17415 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17416
17417 fi
17418 ;;
17419 s390*)
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17421 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17422 if test "${libitm_cv_as_htm+set}" = set; then :
17423 $as_echo_n "(cached) " >&6
17424 else
17425
17426 save_CFLAGS="$CFLAGS"
17427 CFLAGS="$CFLAGS -march=zEC12"
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430
17431 int
17432 main ()
17433 {
17434 asm("tbegin 0,0; tend");
17435 ;
17436 return 0;
17437 }
17438 _ACEOF
17439 if ac_fn_c_try_compile "$LINENO"; then :
17440 libitm_cv_as_htm=yes
17441 else
17442 libitm_cv_as_htm=no
17443 fi
17444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445 CFLAGS="$save_CFLAGS"
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17448 $as_echo "$libitm_cv_as_htm" >&6; }
17449 if test x$libitm_cv_as_htm = xyes; then
17450
17451 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17452
17453 fi
17454 ;;
17455 esac
17456
17457
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17459 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17460 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463
17464 weakref_m4_saved_CFLAGS="$CFLAGS"
17465 case "${host}" in
17466 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17467 *) ;;
17468 esac
17469 if test "$cross_compiling" = yes; then :
17470
17471 case "${host}" in
17472 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17473 *) ac_cv_have_elf_style_weakref=yes;;
17474 esac
17475 else
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478
17479 extern void fNotToBeFound(void) __attribute__((weak));
17480 int main ()
17481 {
17482 if (fNotToBeFound)
17483 return 1;
17484 else
17485 return 0;
17486 }
17487
17488 _ACEOF
17489 if ac_fn_c_try_run "$LINENO"; then :
17490 ac_cv_have_elf_style_weakref=yes
17491 else
17492 ac_cv_have_elf_style_weakref=no
17493 fi
17494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17495 conftest.$ac_objext conftest.beam conftest.$ac_ext
17496 fi
17497 CFLAGS="$weakref_m4_saved_CFLAGS"
17498 fi
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17500 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17501 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17502
17503 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17504
17505 fi
17506
17507 # Cleanup and exit.
17508 CFLAGS="$save_CFLAGS"
17509 cat >confcache <<\_ACEOF
17510 # This file is a shell script that caches the results of configure
17511 # tests run on this system so they can be shared between configure
17512 # scripts and configure runs, see configure's option --config-cache.
17513 # It is not useful on other systems. If it contains results you don't
17514 # want to keep, you may remove or edit it.
17515 #
17516 # config.status only pays attention to the cache file if you give it
17517 # the --recheck option to rerun configure.
17518 #
17519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17521 # following values.
17522
17523 _ACEOF
17524
17525 # The following way of writing the cache mishandles newlines in values,
17526 # but we know of no workaround that is simple, portable, and efficient.
17527 # So, we kill variables containing newlines.
17528 # Ultrix sh set writes to stderr and can't be redirected directly,
17529 # and sets the high bit in the cache file unless we assign to the vars.
17530 (
17531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17532 eval ac_val=\$$ac_var
17533 case $ac_val in #(
17534 *${as_nl}*)
17535 case $ac_var in #(
17536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17538 esac
17539 case $ac_var in #(
17540 _ | IFS | as_nl) ;; #(
17541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17542 *) { eval $ac_var=; unset $ac_var;} ;;
17543 esac ;;
17544 esac
17545 done
17546
17547 (set) 2>&1 |
17548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17549 *${as_nl}ac_space=\ *)
17550 # `set' does not quote correctly, so add quotes: double-quote
17551 # substitution turns \\\\ into \\, and sed turns \\ into \.
17552 sed -n \
17553 "s/'/'\\\\''/g;
17554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17555 ;; #(
17556 *)
17557 # `set' quotes correctly as required by POSIX, so do not add quotes.
17558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17559 ;;
17560 esac |
17561 sort
17562 ) |
17563 sed '
17564 /^ac_cv_env_/b end
17565 t clear
17566 :clear
17567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17568 t end
17569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17570 :end' >>confcache
17571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17572 if test -w "$cache_file"; then
17573 test "x$cache_file" != "x/dev/null" &&
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17575 $as_echo "$as_me: updating cache $cache_file" >&6;}
17576 cat confcache >$cache_file
17577 else
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17580 fi
17581 fi
17582 rm -f confcache
17583
17584 # Add -Wall -Werror if we are using GCC.
17585 if test "x$GCC" = "xyes"; then
17586 XCFLAGS="$XCFLAGS -Wall -Werror"
17587 fi
17588
17589 XCFLAGS="$XCFLAGS $XPCFLAGS"
17590
17591
17592
17593
17594
17595 if test ${multilib} = yes; then
17596 multilib_arg="--enable-multilib"
17597 else
17598 multilib_arg=
17599 fi
17600
17601 # Set up the set of libraries that we need to link against for libitm.
17602 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17603 # which will force linkage against -lpthread (or equivalent for the system).
17604 # That's not 100% ideal, but about the best we can do easily.
17605 if test $enable_shared = yes; then
17606 link_itm="-litm %{static: $LIBS}"
17607 else
17608 link_itm="-litm $LIBS"
17609 fi
17610
17611
17612 if test "$ARCH" = aarch64; then
17613 ARCH_AARCH64_TRUE=
17614 ARCH_AARCH64_FALSE='#'
17615 else
17616 ARCH_AARCH64_TRUE='#'
17617 ARCH_AARCH64_FALSE=
17618 fi
17619
17620 if test "$ARCH" = arm; then
17621 ARCH_ARM_TRUE=
17622 ARCH_ARM_FALSE='#'
17623 else
17624 ARCH_ARM_TRUE='#'
17625 ARCH_ARM_FALSE=
17626 fi
17627
17628 if test "$ARCH" = powerpc -o "$ARCH" = powerpc64; then
17629 ARCH_PPC_TRUE=
17630 ARCH_PPC_FALSE='#'
17631 else
17632 ARCH_PPC_TRUE='#'
17633 ARCH_PPC_FALSE=
17634 fi
17635
17636 if test "$ARCH" = s390 -o "$ARCH" = s390x; then
17637 ARCH_S390_TRUE=
17638 ARCH_S390_FALSE='#'
17639 else
17640 ARCH_S390_TRUE='#'
17641 ARCH_S390_FALSE=
17642 fi
17643
17644 if test "$ARCH" = x86; then
17645 ARCH_X86_TRUE=
17646 ARCH_X86_FALSE='#'
17647 else
17648 ARCH_X86_TRUE='#'
17649 ARCH_X86_FALSE=
17650 fi
17651
17652 if test "$libitm_cv_as_avx" = yes; then
17653 ARCH_X86_AVX_TRUE=
17654 ARCH_X86_AVX_FALSE='#'
17655 else
17656 ARCH_X86_AVX_TRUE='#'
17657 ARCH_X86_AVX_FALSE=
17658 fi
17659
17660 if test $enable_linux_futex = yes; then
17661 ARCH_FUTEX_TRUE=
17662 ARCH_FUTEX_FALSE='#'
17663 else
17664 ARCH_FUTEX_TRUE='#'
17665 ARCH_FUTEX_FALSE=
17666 fi
17667
17668
17669 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17670
17671 cat >confcache <<\_ACEOF
17672 # This file is a shell script that caches the results of configure
17673 # tests run on this system so they can be shared between configure
17674 # scripts and configure runs, see configure's option --config-cache.
17675 # It is not useful on other systems. If it contains results you don't
17676 # want to keep, you may remove or edit it.
17677 #
17678 # config.status only pays attention to the cache file if you give it
17679 # the --recheck option to rerun configure.
17680 #
17681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17683 # following values.
17684
17685 _ACEOF
17686
17687 # The following way of writing the cache mishandles newlines in values,
17688 # but we know of no workaround that is simple, portable, and efficient.
17689 # So, we kill variables containing newlines.
17690 # Ultrix sh set writes to stderr and can't be redirected directly,
17691 # and sets the high bit in the cache file unless we assign to the vars.
17692 (
17693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17694 eval ac_val=\$$ac_var
17695 case $ac_val in #(
17696 *${as_nl}*)
17697 case $ac_var in #(
17698 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17699 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17700 esac
17701 case $ac_var in #(
17702 _ | IFS | as_nl) ;; #(
17703 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17704 *) { eval $ac_var=; unset $ac_var;} ;;
17705 esac ;;
17706 esac
17707 done
17708
17709 (set) 2>&1 |
17710 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17711 *${as_nl}ac_space=\ *)
17712 # `set' does not quote correctly, so add quotes: double-quote
17713 # substitution turns \\\\ into \\, and sed turns \\ into \.
17714 sed -n \
17715 "s/'/'\\\\''/g;
17716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17717 ;; #(
17718 *)
17719 # `set' quotes correctly as required by POSIX, so do not add quotes.
17720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17721 ;;
17722 esac |
17723 sort
17724 ) |
17725 sed '
17726 /^ac_cv_env_/b end
17727 t clear
17728 :clear
17729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17730 t end
17731 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17732 :end' >>confcache
17733 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17734 if test -w "$cache_file"; then
17735 test "x$cache_file" != "x/dev/null" &&
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17737 $as_echo "$as_me: updating cache $cache_file" >&6;}
17738 cat confcache >$cache_file
17739 else
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17742 fi
17743 fi
17744 rm -f confcache
17745
17746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17747 # Let make expand exec_prefix.
17748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17749
17750 DEFS=-DHAVE_CONFIG_H
17751
17752 ac_libobjs=
17753 ac_ltlibobjs=
17754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17755 # 1. Remove the extension, and $U if already installed.
17756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17757 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17759 # will be set to the directory where LIBOBJS objects are built.
17760 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17761 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17762 done
17763 LIBOBJS=$ac_libobjs
17764
17765 LTLIBOBJS=$ac_ltlibobjs
17766
17767
17768 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17769 as_fn_error "conditional \"GENINSRC\" was never defined.
17770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17771 fi
17772 if test -n "$EXEEXT"; then
17773 am__EXEEXT_TRUE=
17774 am__EXEEXT_FALSE='#'
17775 else
17776 am__EXEEXT_TRUE='#'
17777 am__EXEEXT_FALSE=
17778 fi
17779
17780 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17781 as_fn_error "conditional \"AMDEP\" was never defined.
17782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17783 fi
17784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17785 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17787 fi
17788 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17789 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17791 fi
17792 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17793 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17795 fi
17796 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17797 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17799 fi
17800 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17801 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17803 fi
17804
17805 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17806 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808 fi
17809 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17810 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17812 fi
17813 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17814 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17816 fi
17817 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17818 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17820 fi
17821 if test -z "${ARCH_AARCH64_TRUE}" && test -z "${ARCH_AARCH64_FALSE}"; then
17822 as_fn_error "conditional \"ARCH_AARCH64\" was never defined.
17823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17824 fi
17825 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17826 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17828 fi
17829 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
17830 as_fn_error "conditional \"ARCH_PPC\" was never defined.
17831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17832 fi
17833 if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
17834 as_fn_error "conditional \"ARCH_S390\" was never defined.
17835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17836 fi
17837 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17838 as_fn_error "conditional \"ARCH_X86\" was never defined.
17839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17840 fi
17841 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17842 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17844 fi
17845 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17846 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17848 fi
17849
17850 : ${CONFIG_STATUS=./config.status}
17851 ac_write_fail=0
17852 ac_clean_files_save=$ac_clean_files
17853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17855 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17856 as_write_fail=0
17857 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17858 #! $SHELL
17859 # Generated by $as_me.
17860 # Run this file to recreate the current configuration.
17861 # Compiler output produced by configure, useful for debugging
17862 # configure, is in config.log if it exists.
17863
17864 debug=false
17865 ac_cs_recheck=false
17866 ac_cs_silent=false
17867
17868 SHELL=\${CONFIG_SHELL-$SHELL}
17869 export SHELL
17870 _ASEOF
17871 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17872 ## -------------------- ##
17873 ## M4sh Initialization. ##
17874 ## -------------------- ##
17875
17876 # Be more Bourne compatible
17877 DUALCASE=1; export DUALCASE # for MKS sh
17878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17879 emulate sh
17880 NULLCMD=:
17881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17882 # is contrary to our usage. Disable this feature.
17883 alias -g '${1+"$@"}'='"$@"'
17884 setopt NO_GLOB_SUBST
17885 else
17886 case `(set -o) 2>/dev/null` in #(
17887 *posix*) :
17888 set -o posix ;; #(
17889 *) :
17890 ;;
17891 esac
17892 fi
17893
17894
17895 as_nl='
17896 '
17897 export as_nl
17898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17899 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17902 # Prefer a ksh shell builtin over an external printf program on Solaris,
17903 # but without wasting forks for bash or zsh.
17904 if test -z "$BASH_VERSION$ZSH_VERSION" \
17905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17906 as_echo='print -r --'
17907 as_echo_n='print -rn --'
17908 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17909 as_echo='printf %s\n'
17910 as_echo_n='printf %s'
17911 else
17912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17914 as_echo_n='/usr/ucb/echo -n'
17915 else
17916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17917 as_echo_n_body='eval
17918 arg=$1;
17919 case $arg in #(
17920 *"$as_nl"*)
17921 expr "X$arg" : "X\\(.*\\)$as_nl";
17922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17923 esac;
17924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17925 '
17926 export as_echo_n_body
17927 as_echo_n='sh -c $as_echo_n_body as_echo'
17928 fi
17929 export as_echo_body
17930 as_echo='sh -c $as_echo_body as_echo'
17931 fi
17932
17933 # The user is always right.
17934 if test "${PATH_SEPARATOR+set}" != set; then
17935 PATH_SEPARATOR=:
17936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17938 PATH_SEPARATOR=';'
17939 }
17940 fi
17941
17942
17943 # IFS
17944 # We need space, tab and new line, in precisely that order. Quoting is
17945 # there to prevent editors from complaining about space-tab.
17946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17947 # splitting by setting IFS to empty value.)
17948 IFS=" "" $as_nl"
17949
17950 # Find who we are. Look in the path if we contain no directory separator.
17951 case $0 in #((
17952 *[\\/]* ) as_myself=$0 ;;
17953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17954 for as_dir in $PATH
17955 do
17956 IFS=$as_save_IFS
17957 test -z "$as_dir" && as_dir=.
17958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17959 done
17960 IFS=$as_save_IFS
17961
17962 ;;
17963 esac
17964 # We did not find ourselves, most probably we were run as `sh COMMAND'
17965 # in which case we are not to be found in the path.
17966 if test "x$as_myself" = x; then
17967 as_myself=$0
17968 fi
17969 if test ! -f "$as_myself"; then
17970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17971 exit 1
17972 fi
17973
17974 # Unset variables that we do not need and which cause bugs (e.g. in
17975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17976 # suppresses any "Segmentation fault" message there. '((' could
17977 # trigger a bug in pdksh 5.2.14.
17978 for as_var in BASH_ENV ENV MAIL MAILPATH
17979 do eval test x\${$as_var+set} = xset \
17980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17981 done
17982 PS1='$ '
17983 PS2='> '
17984 PS4='+ '
17985
17986 # NLS nuisances.
17987 LC_ALL=C
17988 export LC_ALL
17989 LANGUAGE=C
17990 export LANGUAGE
17991
17992 # CDPATH.
17993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17994
17995
17996 # as_fn_error ERROR [LINENO LOG_FD]
17997 # ---------------------------------
17998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18000 # script with status $?, using 1 if that was 0.
18001 as_fn_error ()
18002 {
18003 as_status=$?; test $as_status -eq 0 && as_status=1
18004 if test "$3"; then
18005 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18007 fi
18008 $as_echo "$as_me: error: $1" >&2
18009 as_fn_exit $as_status
18010 } # as_fn_error
18011
18012
18013 # as_fn_set_status STATUS
18014 # -----------------------
18015 # Set $? to STATUS, without forking.
18016 as_fn_set_status ()
18017 {
18018 return $1
18019 } # as_fn_set_status
18020
18021 # as_fn_exit STATUS
18022 # -----------------
18023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18024 as_fn_exit ()
18025 {
18026 set +e
18027 as_fn_set_status $1
18028 exit $1
18029 } # as_fn_exit
18030
18031 # as_fn_unset VAR
18032 # ---------------
18033 # Portably unset VAR.
18034 as_fn_unset ()
18035 {
18036 { eval $1=; unset $1;}
18037 }
18038 as_unset=as_fn_unset
18039 # as_fn_append VAR VALUE
18040 # ----------------------
18041 # Append the text in VALUE to the end of the definition contained in VAR. Take
18042 # advantage of any shell optimizations that allow amortized linear growth over
18043 # repeated appends, instead of the typical quadratic growth present in naive
18044 # implementations.
18045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18046 eval 'as_fn_append ()
18047 {
18048 eval $1+=\$2
18049 }'
18050 else
18051 as_fn_append ()
18052 {
18053 eval $1=\$$1\$2
18054 }
18055 fi # as_fn_append
18056
18057 # as_fn_arith ARG...
18058 # ------------------
18059 # Perform arithmetic evaluation on the ARGs, and store the result in the
18060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18061 # must be portable across $(()) and expr.
18062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18063 eval 'as_fn_arith ()
18064 {
18065 as_val=$(( $* ))
18066 }'
18067 else
18068 as_fn_arith ()
18069 {
18070 as_val=`expr "$@" || test $? -eq 1`
18071 }
18072 fi # as_fn_arith
18073
18074
18075 if expr a : '\(a\)' >/dev/null 2>&1 &&
18076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18077 as_expr=expr
18078 else
18079 as_expr=false
18080 fi
18081
18082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18083 as_basename=basename
18084 else
18085 as_basename=false
18086 fi
18087
18088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18089 as_dirname=dirname
18090 else
18091 as_dirname=false
18092 fi
18093
18094 as_me=`$as_basename -- "$0" ||
18095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18096 X"$0" : 'X\(//\)$' \| \
18097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18098 $as_echo X/"$0" |
18099 sed '/^.*\/\([^/][^/]*\)\/*$/{
18100 s//\1/
18101 q
18102 }
18103 /^X\/\(\/\/\)$/{
18104 s//\1/
18105 q
18106 }
18107 /^X\/\(\/\).*/{
18108 s//\1/
18109 q
18110 }
18111 s/.*/./; q'`
18112
18113 # Avoid depending upon Character Ranges.
18114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18117 as_cr_digits='0123456789'
18118 as_cr_alnum=$as_cr_Letters$as_cr_digits
18119
18120 ECHO_C= ECHO_N= ECHO_T=
18121 case `echo -n x` in #(((((
18122 -n*)
18123 case `echo 'xy\c'` in
18124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18125 xy) ECHO_C='\c';;
18126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18127 ECHO_T=' ';;
18128 esac;;
18129 *)
18130 ECHO_N='-n';;
18131 esac
18132
18133 rm -f conf$$ conf$$.exe conf$$.file
18134 if test -d conf$$.dir; then
18135 rm -f conf$$.dir/conf$$.file
18136 else
18137 rm -f conf$$.dir
18138 mkdir conf$$.dir 2>/dev/null
18139 fi
18140 if (echo >conf$$.file) 2>/dev/null; then
18141 if ln -s conf$$.file conf$$ 2>/dev/null; then
18142 as_ln_s='ln -s'
18143 # ... but there are two gotchas:
18144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18146 # In both cases, we have to default to `cp -p'.
18147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18148 as_ln_s='cp -p'
18149 elif ln conf$$.file conf$$ 2>/dev/null; then
18150 as_ln_s=ln
18151 else
18152 as_ln_s='cp -p'
18153 fi
18154 else
18155 as_ln_s='cp -p'
18156 fi
18157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18158 rmdir conf$$.dir 2>/dev/null
18159
18160
18161 # as_fn_mkdir_p
18162 # -------------
18163 # Create "$as_dir" as a directory, including parents if necessary.
18164 as_fn_mkdir_p ()
18165 {
18166
18167 case $as_dir in #(
18168 -*) as_dir=./$as_dir;;
18169 esac
18170 test -d "$as_dir" || eval $as_mkdir_p || {
18171 as_dirs=
18172 while :; do
18173 case $as_dir in #(
18174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18175 *) as_qdir=$as_dir;;
18176 esac
18177 as_dirs="'$as_qdir' $as_dirs"
18178 as_dir=`$as_dirname -- "$as_dir" ||
18179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18180 X"$as_dir" : 'X\(//\)[^/]' \| \
18181 X"$as_dir" : 'X\(//\)$' \| \
18182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18183 $as_echo X"$as_dir" |
18184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18185 s//\1/
18186 q
18187 }
18188 /^X\(\/\/\)[^/].*/{
18189 s//\1/
18190 q
18191 }
18192 /^X\(\/\/\)$/{
18193 s//\1/
18194 q
18195 }
18196 /^X\(\/\).*/{
18197 s//\1/
18198 q
18199 }
18200 s/.*/./; q'`
18201 test -d "$as_dir" && break
18202 done
18203 test -z "$as_dirs" || eval "mkdir $as_dirs"
18204 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18205
18206
18207 } # as_fn_mkdir_p
18208 if mkdir -p . 2>/dev/null; then
18209 as_mkdir_p='mkdir -p "$as_dir"'
18210 else
18211 test -d ./-p && rmdir ./-p
18212 as_mkdir_p=false
18213 fi
18214
18215 if test -x / >/dev/null 2>&1; then
18216 as_test_x='test -x'
18217 else
18218 if ls -dL / >/dev/null 2>&1; then
18219 as_ls_L_option=L
18220 else
18221 as_ls_L_option=
18222 fi
18223 as_test_x='
18224 eval sh -c '\''
18225 if test -d "$1"; then
18226 test -d "$1/.";
18227 else
18228 case $1 in #(
18229 -*)set "./$1";;
18230 esac;
18231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18232 ???[sx]*):;;*)false;;esac;fi
18233 '\'' sh
18234 '
18235 fi
18236 as_executable_p=$as_test_x
18237
18238 # Sed expression to map a string onto a valid CPP name.
18239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18240
18241 # Sed expression to map a string onto a valid variable name.
18242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18243
18244
18245 exec 6>&1
18246 ## ----------------------------------- ##
18247 ## Main body of $CONFIG_STATUS script. ##
18248 ## ----------------------------------- ##
18249 _ASEOF
18250 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18251
18252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18253 # Save the log message, to keep $0 and so on meaningful, and to
18254 # report actual input values of CONFIG_FILES etc. instead of their
18255 # values after options handling.
18256 ac_log="
18257 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18258 generated by GNU Autoconf 2.64. Invocation command line was
18259
18260 CONFIG_FILES = $CONFIG_FILES
18261 CONFIG_HEADERS = $CONFIG_HEADERS
18262 CONFIG_LINKS = $CONFIG_LINKS
18263 CONFIG_COMMANDS = $CONFIG_COMMANDS
18264 $ $0 $@
18265
18266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18267 "
18268
18269 _ACEOF
18270
18271 case $ac_config_files in *"
18272 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18273 esac
18274
18275 case $ac_config_headers in *"
18276 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18277 esac
18278
18279
18280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18281 # Files that config.status was made for.
18282 config_files="$ac_config_files"
18283 config_headers="$ac_config_headers"
18284 config_commands="$ac_config_commands"
18285
18286 _ACEOF
18287
18288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18289 ac_cs_usage="\
18290 \`$as_me' instantiates files and other configuration actions
18291 from templates according to the current configuration. Unless the files
18292 and actions are specified as TAGs, all are instantiated by default.
18293
18294 Usage: $0 [OPTION]... [TAG]...
18295
18296 -h, --help print this help, then exit
18297 -V, --version print version number and configuration settings, then exit
18298 -q, --quiet, --silent
18299 do not print progress messages
18300 -d, --debug don't remove temporary files
18301 --recheck update $as_me by reconfiguring in the same conditions
18302 --file=FILE[:TEMPLATE]
18303 instantiate the configuration file FILE
18304 --header=FILE[:TEMPLATE]
18305 instantiate the configuration header FILE
18306
18307 Configuration files:
18308 $config_files
18309
18310 Configuration headers:
18311 $config_headers
18312
18313 Configuration commands:
18314 $config_commands
18315
18316 Report bugs to the package provider.
18317 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18318 General help using GNU software: <http://www.gnu.org/gethelp/>."
18319
18320 _ACEOF
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 ac_cs_version="\\
18323 GNU TM Runtime Library config.status 1.0
18324 configured by $0, generated by GNU Autoconf 2.64,
18325 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18326
18327 Copyright (C) 2009 Free Software Foundation, Inc.
18328 This config.status script is free software; the Free Software Foundation
18329 gives unlimited permission to copy, distribute and modify it."
18330
18331 ac_pwd='$ac_pwd'
18332 srcdir='$srcdir'
18333 INSTALL='$INSTALL'
18334 MKDIR_P='$MKDIR_P'
18335 AWK='$AWK'
18336 test -n "\$AWK" || AWK=awk
18337 _ACEOF
18338
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340 # The default lists apply if the user does not specify any file.
18341 ac_need_defaults=:
18342 while test $# != 0
18343 do
18344 case $1 in
18345 --*=*)
18346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18348 ac_shift=:
18349 ;;
18350 *)
18351 ac_option=$1
18352 ac_optarg=$2
18353 ac_shift=shift
18354 ;;
18355 esac
18356
18357 case $ac_option in
18358 # Handling of the options.
18359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18360 ac_cs_recheck=: ;;
18361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18362 $as_echo "$ac_cs_version"; exit ;;
18363 --debug | --debu | --deb | --de | --d | -d )
18364 debug=: ;;
18365 --file | --fil | --fi | --f )
18366 $ac_shift
18367 case $ac_optarg in
18368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18369 esac
18370 as_fn_append CONFIG_FILES " '$ac_optarg'"
18371 ac_need_defaults=false;;
18372 --header | --heade | --head | --hea )
18373 $ac_shift
18374 case $ac_optarg in
18375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18376 esac
18377 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18378 ac_need_defaults=false;;
18379 --he | --h)
18380 # Conflict between --help and --header
18381 as_fn_error "ambiguous option: \`$1'
18382 Try \`$0 --help' for more information.";;
18383 --help | --hel | -h )
18384 $as_echo "$ac_cs_usage"; exit ;;
18385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18387 ac_cs_silent=: ;;
18388
18389 # This is an error.
18390 -*) as_fn_error "unrecognized option: \`$1'
18391 Try \`$0 --help' for more information." ;;
18392
18393 *) as_fn_append ac_config_targets " $1"
18394 ac_need_defaults=false ;;
18395
18396 esac
18397 shift
18398 done
18399
18400 ac_configure_extra_args=
18401
18402 if $ac_cs_silent; then
18403 exec 6>/dev/null
18404 ac_configure_extra_args="$ac_configure_extra_args --silent"
18405 fi
18406
18407 _ACEOF
18408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 if \$ac_cs_recheck; then
18410 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18411 shift
18412 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18413 CONFIG_SHELL='$SHELL'
18414 export CONFIG_SHELL
18415 exec "\$@"
18416 fi
18417
18418 _ACEOF
18419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18420 exec 5>>config.log
18421 {
18422 echo
18423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18424 ## Running $as_me. ##
18425 _ASBOX
18426 $as_echo "$ac_log"
18427 } >&5
18428
18429 _ACEOF
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431 #
18432 # INIT-COMMANDS
18433 #
18434
18435 srcdir="$srcdir"
18436 host="$host"
18437 target="$target"
18438 with_multisubdir="$with_multisubdir"
18439 with_multisrctop="$with_multisrctop"
18440 with_target_subdir="$with_target_subdir"
18441 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18442 multi_basedir="$multi_basedir"
18443 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18444 CC="$CC"
18445 CXX="$CXX"
18446 GFORTRAN="$GFORTRAN"
18447 GCJ="$GCJ"
18448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18449
18450
18451 # The HP-UX ksh and POSIX shell print the target directory to stdout
18452 # if CDPATH is set.
18453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18454
18455 sed_quote_subst='$sed_quote_subst'
18456 double_quote_subst='$double_quote_subst'
18457 delay_variable_subst='$delay_variable_subst'
18458 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18459 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18460 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18461 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18462 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18463 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18464 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18465 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18466 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18467 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18468 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18469 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18470 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18471 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18472 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18473 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18474 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18475 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18476 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18477 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18478 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18479 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18480 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18481 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18482 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18483 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18484 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18485 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18486 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18487 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18488 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18489 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18490 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18491 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18492 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18493 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18494 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18495 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18496 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18497 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18498 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18499 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18500 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18501 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18502 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18506 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"`'
18507 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18508 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18509 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18510 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18511 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18512 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18513 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18514 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18515 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18516 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18517 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18518 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18519 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18520 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18521 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18522 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18523 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18524 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18525 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18526 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18527 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18528 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18529 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18530 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18531 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18532 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18533 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18534 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18535 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18536 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18537 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18538 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18539 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18540 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18541 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18542 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18543 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18544 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18545 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18546 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18547 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18548 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18549 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18550 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18551 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18552 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18553 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18554 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18555 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18556 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18557 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18558 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18559 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18560 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18561 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18562 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18563 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18564 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18565 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18566 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18567 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18568 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18569 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18570 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18571 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18572 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18573 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18574 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18575 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18576 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18577 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18578 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18579 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18580 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18581 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18582 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18583 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18584 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18585 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18586 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18587 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18588 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18589 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18590 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18591 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18592 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18593 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18594 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18595 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18596 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18597 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18598 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18599 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18600 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18601 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18602 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18603 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18604 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18605 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18606 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18607 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18608 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18609 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18610 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18611 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18612 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18613 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18614 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18615 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18616 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18617 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18618 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18619 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18620 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18621 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18622 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18623 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18624 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18625 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18626 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18627 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18628 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18629 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18630 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18631 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18632 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18633
18634 LTCC='$LTCC'
18635 LTCFLAGS='$LTCFLAGS'
18636 compiler='$compiler_DEFAULT'
18637
18638 # A function that is used when there is no print builtin or printf.
18639 func_fallback_echo ()
18640 {
18641 eval 'cat <<_LTECHO_EOF
18642 \$1
18643 _LTECHO_EOF'
18644 }
18645
18646 # Quote evaled strings.
18647 for var in SHELL \
18648 ECHO \
18649 SED \
18650 GREP \
18651 EGREP \
18652 FGREP \
18653 LD \
18654 NM \
18655 LN_S \
18656 lt_SP2NL \
18657 lt_NL2SP \
18658 reload_flag \
18659 OBJDUMP \
18660 deplibs_check_method \
18661 file_magic_cmd \
18662 AR \
18663 AR_FLAGS \
18664 STRIP \
18665 RANLIB \
18666 CC \
18667 CFLAGS \
18668 compiler \
18669 lt_cv_sys_global_symbol_pipe \
18670 lt_cv_sys_global_symbol_to_cdecl \
18671 lt_cv_sys_global_symbol_to_c_name_address \
18672 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18673 lt_prog_compiler_no_builtin_flag \
18674 lt_prog_compiler_wl \
18675 lt_prog_compiler_pic \
18676 lt_prog_compiler_static \
18677 lt_cv_prog_compiler_c_o \
18678 need_locks \
18679 DSYMUTIL \
18680 NMEDIT \
18681 LIPO \
18682 OTOOL \
18683 OTOOL64 \
18684 shrext_cmds \
18685 export_dynamic_flag_spec \
18686 whole_archive_flag_spec \
18687 compiler_needs_object \
18688 with_gnu_ld \
18689 allow_undefined_flag \
18690 no_undefined_flag \
18691 hardcode_libdir_flag_spec \
18692 hardcode_libdir_flag_spec_ld \
18693 hardcode_libdir_separator \
18694 fix_srcfile_path \
18695 exclude_expsyms \
18696 include_expsyms \
18697 file_list_spec \
18698 variables_saved_for_relink \
18699 libname_spec \
18700 library_names_spec \
18701 soname_spec \
18702 install_override_mode \
18703 finish_eval \
18704 old_striplib \
18705 striplib \
18706 compiler_lib_search_dirs \
18707 predep_objects \
18708 postdep_objects \
18709 predeps \
18710 postdeps \
18711 compiler_lib_search_path \
18712 LD_CXX \
18713 reload_flag_CXX \
18714 compiler_CXX \
18715 lt_prog_compiler_no_builtin_flag_CXX \
18716 lt_prog_compiler_wl_CXX \
18717 lt_prog_compiler_pic_CXX \
18718 lt_prog_compiler_static_CXX \
18719 lt_cv_prog_compiler_c_o_CXX \
18720 export_dynamic_flag_spec_CXX \
18721 whole_archive_flag_spec_CXX \
18722 compiler_needs_object_CXX \
18723 with_gnu_ld_CXX \
18724 allow_undefined_flag_CXX \
18725 no_undefined_flag_CXX \
18726 hardcode_libdir_flag_spec_CXX \
18727 hardcode_libdir_flag_spec_ld_CXX \
18728 hardcode_libdir_separator_CXX \
18729 fix_srcfile_path_CXX \
18730 exclude_expsyms_CXX \
18731 include_expsyms_CXX \
18732 file_list_spec_CXX \
18733 compiler_lib_search_dirs_CXX \
18734 predep_objects_CXX \
18735 postdep_objects_CXX \
18736 predeps_CXX \
18737 postdeps_CXX \
18738 compiler_lib_search_path_CXX; do
18739 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18740 *[\\\\\\\`\\"\\\$]*)
18741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18742 ;;
18743 *)
18744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18745 ;;
18746 esac
18747 done
18748
18749 # Double-quote double-evaled strings.
18750 for var in reload_cmds \
18751 old_postinstall_cmds \
18752 old_postuninstall_cmds \
18753 old_archive_cmds \
18754 extract_expsyms_cmds \
18755 old_archive_from_new_cmds \
18756 old_archive_from_expsyms_cmds \
18757 archive_cmds \
18758 archive_expsym_cmds \
18759 module_cmds \
18760 module_expsym_cmds \
18761 export_symbols_cmds \
18762 prelink_cmds \
18763 postinstall_cmds \
18764 postuninstall_cmds \
18765 finish_cmds \
18766 sys_lib_search_path_spec \
18767 sys_lib_dlsearch_path_spec \
18768 reload_cmds_CXX \
18769 old_archive_cmds_CXX \
18770 old_archive_from_new_cmds_CXX \
18771 old_archive_from_expsyms_cmds_CXX \
18772 archive_cmds_CXX \
18773 archive_expsym_cmds_CXX \
18774 module_cmds_CXX \
18775 module_expsym_cmds_CXX \
18776 export_symbols_cmds_CXX \
18777 prelink_cmds_CXX; do
18778 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18779 *[\\\\\\\`\\"\\\$]*)
18780 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18781 ;;
18782 *)
18783 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18784 ;;
18785 esac
18786 done
18787
18788 ac_aux_dir='$ac_aux_dir'
18789 xsi_shell='$xsi_shell'
18790 lt_shell_append='$lt_shell_append'
18791
18792 # See if we are running on zsh, and set the options which allow our
18793 # commands through without removal of \ escapes INIT.
18794 if test -n "\${ZSH_VERSION+set}" ; then
18795 setopt NO_GLOB_SUBST
18796 fi
18797
18798
18799 PACKAGE='$PACKAGE'
18800 VERSION='$VERSION'
18801 TIMESTAMP='$TIMESTAMP'
18802 RM='$RM'
18803 ofile='$ofile'
18804
18805
18806
18807
18808
18809
18810 GCC="$GCC"
18811 CC="$CC"
18812 acx_cv_header_stdint="$acx_cv_header_stdint"
18813 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18814 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18815 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18816 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18817 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18818 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18819 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18820 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18821 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18822 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18823 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18824 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18825 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18826
18827
18828 _ACEOF
18829
18830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831
18832 # Handling of arguments.
18833 for ac_config_target in $ac_config_targets
18834 do
18835 case $ac_config_target in
18836 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18837 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18838 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18839 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18840 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18842 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18843 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18844
18845 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18846 esac
18847 done
18848
18849
18850 # If the user did not use the arguments to specify the items to instantiate,
18851 # then the envvar interface is used. Set only those that are not.
18852 # We use the long form for the default assignment because of an extremely
18853 # bizarre bug on SunOS 4.1.3.
18854 if $ac_need_defaults; then
18855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18857 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18858 fi
18859
18860 # Have a temporary directory for convenience. Make it in the build tree
18861 # simply because there is no reason against having it here, and in addition,
18862 # creating and moving files from /tmp can sometimes cause problems.
18863 # Hook for its removal unless debugging.
18864 # Note that there is a small window in which the directory will not be cleaned:
18865 # after its creation but before its name has been assigned to `$tmp'.
18866 $debug ||
18867 {
18868 tmp=
18869 trap 'exit_status=$?
18870 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18871 ' 0
18872 trap 'as_fn_exit 1' 1 2 13 15
18873 }
18874 # Create a (secure) tmp directory for tmp files.
18875
18876 {
18877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18878 test -n "$tmp" && test -d "$tmp"
18879 } ||
18880 {
18881 tmp=./conf$$-$RANDOM
18882 (umask 077 && mkdir "$tmp")
18883 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18884
18885 # Set up the scripts for CONFIG_FILES section.
18886 # No need to generate them if there are no CONFIG_FILES.
18887 # This happens for instance with `./config.status config.h'.
18888 if test -n "$CONFIG_FILES"; then
18889
18890
18891 ac_cr=`echo X | tr X '\015'`
18892 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18893 # But we know of no other shell where ac_cr would be empty at this
18894 # point, so we can use a bashism as a fallback.
18895 if test "x$ac_cr" = x; then
18896 eval ac_cr=\$\'\\r\'
18897 fi
18898 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18899 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18900 ac_cs_awk_cr='\r'
18901 else
18902 ac_cs_awk_cr=$ac_cr
18903 fi
18904
18905 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18906 _ACEOF
18907
18908
18909 {
18910 echo "cat >conf$$subs.awk <<_ACEOF" &&
18911 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18912 echo "_ACEOF"
18913 } >conf$$subs.sh ||
18914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18915 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18916 ac_delim='%!_!# '
18917 for ac_last_try in false false false false false :; do
18918 . ./conf$$subs.sh ||
18919 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18920
18921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18922 if test $ac_delim_n = $ac_delim_num; then
18923 break
18924 elif $ac_last_try; then
18925 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18926 else
18927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18928 fi
18929 done
18930 rm -f conf$$subs.sh
18931
18932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18933 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18934 _ACEOF
18935 sed -n '
18936 h
18937 s/^/S["/; s/!.*/"]=/
18938 p
18939 g
18940 s/^[^!]*!//
18941 :repl
18942 t repl
18943 s/'"$ac_delim"'$//
18944 t delim
18945 :nl
18946 h
18947 s/\(.\{148\}\).*/\1/
18948 t more1
18949 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18950 p
18951 n
18952 b repl
18953 :more1
18954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18955 p
18956 g
18957 s/.\{148\}//
18958 t nl
18959 :delim
18960 h
18961 s/\(.\{148\}\).*/\1/
18962 t more2
18963 s/["\\]/\\&/g; s/^/"/; s/$/"/
18964 p
18965 b
18966 :more2
18967 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18968 p
18969 g
18970 s/.\{148\}//
18971 t delim
18972 ' <conf$$subs.awk | sed '
18973 /^[^""]/{
18974 N
18975 s/\n//
18976 }
18977 ' >>$CONFIG_STATUS || ac_write_fail=1
18978 rm -f conf$$subs.awk
18979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18980 _ACAWK
18981 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18982 for (key in S) S_is_set[key] = 1
18983 FS = "\a"
18984
18985 }
18986 {
18987 line = $ 0
18988 nfields = split(line, field, "@")
18989 substed = 0
18990 len = length(field[1])
18991 for (i = 2; i < nfields; i++) {
18992 key = field[i]
18993 keylen = length(key)
18994 if (S_is_set[key]) {
18995 value = S[key]
18996 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18997 len += length(value) + length(field[++i])
18998 substed = 1
18999 } else
19000 len += 1 + keylen
19001 }
19002
19003 print line
19004 }
19005
19006 _ACAWK
19007 _ACEOF
19008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19009 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19010 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19011 else
19012 cat
19013 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19014 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19015 _ACEOF
19016
19017 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19018 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19019 # trailing colons and then remove the whole line if VPATH becomes empty
19020 # (actually we leave an empty line to preserve line numbers).
19021 if test "x$srcdir" = x.; then
19022 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19023 s/:*\$(srcdir):*/:/
19024 s/:*\${srcdir}:*/:/
19025 s/:*@srcdir@:*/:/
19026 s/^\([^=]*=[ ]*\):*/\1/
19027 s/:*$//
19028 s/^[^=]*=[ ]*$//
19029 }'
19030 fi
19031
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 fi # test -n "$CONFIG_FILES"
19034
19035 # Set up the scripts for CONFIG_HEADERS section.
19036 # No need to generate them if there are no CONFIG_HEADERS.
19037 # This happens for instance with `./config.status Makefile'.
19038 if test -n "$CONFIG_HEADERS"; then
19039 cat >"$tmp/defines.awk" <<\_ACAWK ||
19040 BEGIN {
19041 _ACEOF
19042
19043 # Transform confdefs.h into an awk script `defines.awk', embedded as
19044 # here-document in config.status, that substitutes the proper values into
19045 # config.h.in to produce config.h.
19046
19047 # Create a delimiter string that does not exist in confdefs.h, to ease
19048 # handling of long lines.
19049 ac_delim='%!_!# '
19050 for ac_last_try in false false :; do
19051 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19052 if test -z "$ac_t"; then
19053 break
19054 elif $ac_last_try; then
19055 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19056 else
19057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19058 fi
19059 done
19060
19061 # For the awk script, D is an array of macro values keyed by name,
19062 # likewise P contains macro parameters if any. Preserve backslash
19063 # newline sequences.
19064
19065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19066 sed -n '
19067 s/.\{148\}/&'"$ac_delim"'/g
19068 t rset
19069 :rset
19070 s/^[ ]*#[ ]*define[ ][ ]*/ /
19071 t def
19072 d
19073 :def
19074 s/\\$//
19075 t bsnl
19076 s/["\\]/\\&/g
19077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19078 D["\1"]=" \3"/p
19079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19080 d
19081 :bsnl
19082 s/["\\]/\\&/g
19083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19084 D["\1"]=" \3\\\\\\n"\\/p
19085 t cont
19086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19087 t cont
19088 d
19089 :cont
19090 n
19091 s/.\{148\}/&'"$ac_delim"'/g
19092 t clear
19093 :clear
19094 s/\\$//
19095 t bsnlc
19096 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19097 d
19098 :bsnlc
19099 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19100 b cont
19101 ' <confdefs.h | sed '
19102 s/'"$ac_delim"'/"\\\
19103 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19104
19105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19106 for (key in D) D_is_set[key] = 1
19107 FS = "\a"
19108 }
19109 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19110 line = \$ 0
19111 split(line, arg, " ")
19112 if (arg[1] == "#") {
19113 defundef = arg[2]
19114 mac1 = arg[3]
19115 } else {
19116 defundef = substr(arg[1], 2)
19117 mac1 = arg[2]
19118 }
19119 split(mac1, mac2, "(") #)
19120 macro = mac2[1]
19121 prefix = substr(line, 1, index(line, defundef) - 1)
19122 if (D_is_set[macro]) {
19123 # Preserve the white space surrounding the "#".
19124 print prefix "define", macro P[macro] D[macro]
19125 next
19126 } else {
19127 # Replace #undef with comments. This is necessary, for example,
19128 # in the case of _POSIX_SOURCE, which is predefined and required
19129 # on some systems where configure will not decide to define it.
19130 if (defundef == "undef") {
19131 print "/*", prefix defundef, macro, "*/"
19132 next
19133 }
19134 }
19135 }
19136 { print }
19137 _ACAWK
19138 _ACEOF
19139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19140 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19141 fi # test -n "$CONFIG_HEADERS"
19142
19143
19144 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19145 shift
19146 for ac_tag
19147 do
19148 case $ac_tag in
19149 :[FHLC]) ac_mode=$ac_tag; continue;;
19150 esac
19151 case $ac_mode$ac_tag in
19152 :[FHL]*:*);;
19153 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19154 :[FH]-) ac_tag=-:-;;
19155 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19156 esac
19157 ac_save_IFS=$IFS
19158 IFS=:
19159 set x $ac_tag
19160 IFS=$ac_save_IFS
19161 shift
19162 ac_file=$1
19163 shift
19164
19165 case $ac_mode in
19166 :L) ac_source=$1;;
19167 :[FH])
19168 ac_file_inputs=
19169 for ac_f
19170 do
19171 case $ac_f in
19172 -) ac_f="$tmp/stdin";;
19173 *) # Look for the file first in the build tree, then in the source tree
19174 # (if the path is not absolute). The absolute path cannot be DOS-style,
19175 # because $ac_f cannot contain `:'.
19176 test -f "$ac_f" ||
19177 case $ac_f in
19178 [\\/$]*) false;;
19179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19180 esac ||
19181 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19182 esac
19183 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19184 as_fn_append ac_file_inputs " '$ac_f'"
19185 done
19186
19187 # Let's still pretend it is `configure' which instantiates (i.e., don't
19188 # use $as_me), people would be surprised to read:
19189 # /* config.h. Generated by config.status. */
19190 configure_input='Generated from '`
19191 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19192 `' by configure.'
19193 if test x"$ac_file" != x-; then
19194 configure_input="$ac_file. $configure_input"
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19196 $as_echo "$as_me: creating $ac_file" >&6;}
19197 fi
19198 # Neutralize special characters interpreted by sed in replacement strings.
19199 case $configure_input in #(
19200 *\&* | *\|* | *\\* )
19201 ac_sed_conf_input=`$as_echo "$configure_input" |
19202 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19203 *) ac_sed_conf_input=$configure_input;;
19204 esac
19205
19206 case $ac_tag in
19207 *:-:* | *:-) cat >"$tmp/stdin" \
19208 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19209 esac
19210 ;;
19211 esac
19212
19213 ac_dir=`$as_dirname -- "$ac_file" ||
19214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215 X"$ac_file" : 'X\(//\)[^/]' \| \
19216 X"$ac_file" : 'X\(//\)$' \| \
19217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19218 $as_echo X"$ac_file" |
19219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19220 s//\1/
19221 q
19222 }
19223 /^X\(\/\/\)[^/].*/{
19224 s//\1/
19225 q
19226 }
19227 /^X\(\/\/\)$/{
19228 s//\1/
19229 q
19230 }
19231 /^X\(\/\).*/{
19232 s//\1/
19233 q
19234 }
19235 s/.*/./; q'`
19236 as_dir="$ac_dir"; as_fn_mkdir_p
19237 ac_builddir=.
19238
19239 case "$ac_dir" in
19240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19241 *)
19242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19243 # A ".." for each directory in $ac_dir_suffix.
19244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19245 case $ac_top_builddir_sub in
19246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19248 esac ;;
19249 esac
19250 ac_abs_top_builddir=$ac_pwd
19251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19252 # for backward compatibility:
19253 ac_top_builddir=$ac_top_build_prefix
19254
19255 case $srcdir in
19256 .) # We are building in place.
19257 ac_srcdir=.
19258 ac_top_srcdir=$ac_top_builddir_sub
19259 ac_abs_top_srcdir=$ac_pwd ;;
19260 [\\/]* | ?:[\\/]* ) # Absolute name.
19261 ac_srcdir=$srcdir$ac_dir_suffix;
19262 ac_top_srcdir=$srcdir
19263 ac_abs_top_srcdir=$srcdir ;;
19264 *) # Relative name.
19265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19266 ac_top_srcdir=$ac_top_build_prefix$srcdir
19267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19268 esac
19269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19270
19271
19272 case $ac_mode in
19273 :F)
19274 #
19275 # CONFIG_FILE
19276 #
19277
19278 case $INSTALL in
19279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19281 esac
19282 ac_MKDIR_P=$MKDIR_P
19283 case $MKDIR_P in
19284 [\\/$]* | ?:[\\/]* ) ;;
19285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19286 esac
19287 _ACEOF
19288
19289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19290 # If the template does not know about datarootdir, expand it.
19291 # FIXME: This hack should be removed a few years after 2.60.
19292 ac_datarootdir_hack=; ac_datarootdir_seen=
19293 ac_sed_dataroot='
19294 /datarootdir/ {
19295 p
19296 q
19297 }
19298 /@datadir@/p
19299 /@docdir@/p
19300 /@infodir@/p
19301 /@localedir@/p
19302 /@mandir@/p'
19303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19304 *datarootdir*) ac_datarootdir_seen=yes;;
19305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19307 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19308 _ACEOF
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 ac_datarootdir_hack='
19311 s&@datadir@&$datadir&g
19312 s&@docdir@&$docdir&g
19313 s&@infodir@&$infodir&g
19314 s&@localedir@&$localedir&g
19315 s&@mandir@&$mandir&g
19316 s&\\\${datarootdir}&$datarootdir&g' ;;
19317 esac
19318 _ACEOF
19319
19320 # Neutralize VPATH when `$srcdir' = `.'.
19321 # Shell code in configure.ac might set extrasub.
19322 # FIXME: do we really want to maintain this feature?
19323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19324 ac_sed_extra="$ac_vpsub
19325 $extrasub
19326 _ACEOF
19327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19328 :t
19329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19330 s|@configure_input@|$ac_sed_conf_input|;t t
19331 s&@top_builddir@&$ac_top_builddir_sub&;t t
19332 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19333 s&@srcdir@&$ac_srcdir&;t t
19334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19335 s&@top_srcdir@&$ac_top_srcdir&;t t
19336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19337 s&@builddir@&$ac_builddir&;t t
19338 s&@abs_builddir@&$ac_abs_builddir&;t t
19339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19340 s&@INSTALL@&$ac_INSTALL&;t t
19341 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19342 $ac_datarootdir_hack
19343 "
19344 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19345 || as_fn_error "could not create $ac_file" "$LINENO" 5
19346
19347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19351 which seems to be undefined. Please make sure it is defined." >&5
19352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19353 which seems to be undefined. Please make sure it is defined." >&2;}
19354
19355 rm -f "$tmp/stdin"
19356 case $ac_file in
19357 -) cat "$tmp/out" && rm -f "$tmp/out";;
19358 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19359 esac \
19360 || as_fn_error "could not create $ac_file" "$LINENO" 5
19361 ;;
19362 :H)
19363 #
19364 # CONFIG_HEADER
19365 #
19366 if test x"$ac_file" != x-; then
19367 {
19368 $as_echo "/* $configure_input */" \
19369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19370 } >"$tmp/config.h" \
19371 || as_fn_error "could not create $ac_file" "$LINENO" 5
19372 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19375 else
19376 rm -f "$ac_file"
19377 mv "$tmp/config.h" "$ac_file" \
19378 || as_fn_error "could not create $ac_file" "$LINENO" 5
19379 fi
19380 else
19381 $as_echo "/* $configure_input */" \
19382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19383 || as_fn_error "could not create -" "$LINENO" 5
19384 fi
19385 # Compute "$ac_file"'s index in $config_headers.
19386 _am_arg="$ac_file"
19387 _am_stamp_count=1
19388 for _am_header in $config_headers :; do
19389 case $_am_header in
19390 $_am_arg | $_am_arg:* )
19391 break ;;
19392 * )
19393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19394 esac
19395 done
19396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19398 X"$_am_arg" : 'X\(//\)[^/]' \| \
19399 X"$_am_arg" : 'X\(//\)$' \| \
19400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19401 $as_echo X"$_am_arg" |
19402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19403 s//\1/
19404 q
19405 }
19406 /^X\(\/\/\)[^/].*/{
19407 s//\1/
19408 q
19409 }
19410 /^X\(\/\/\)$/{
19411 s//\1/
19412 q
19413 }
19414 /^X\(\/\).*/{
19415 s//\1/
19416 q
19417 }
19418 s/.*/./; q'`/stamp-h$_am_stamp_count
19419 ;;
19420
19421 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19422 $as_echo "$as_me: executing $ac_file commands" >&6;}
19423 ;;
19424 esac
19425
19426
19427 case $ac_file$ac_mode in
19428 "default-1":C)
19429 # Only add multilib support code if we just rebuilt the top-level
19430 # Makefile.
19431 case " $CONFIG_FILES " in
19432 *" Makefile "*)
19433 ac_file=Makefile . ${multi_basedir}/config-ml.in
19434 ;;
19435 esac ;;
19436 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19437 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19438 # are listed without --file. Let's play safe and only enable the eval
19439 # if we detect the quoting.
19440 case $CONFIG_FILES in
19441 *\'*) eval set x "$CONFIG_FILES" ;;
19442 *) set x $CONFIG_FILES ;;
19443 esac
19444 shift
19445 for mf
19446 do
19447 # Strip MF so we end up with the name of the file.
19448 mf=`echo "$mf" | sed -e 's/:.*$//'`
19449 # Check whether this is an Automake generated Makefile or not.
19450 # We used to match only the files named `Makefile.in', but
19451 # some people rename them; so instead we look at the file content.
19452 # Grep'ing the first line is not enough: some people post-process
19453 # each Makefile.in and add a new line on top of each file to say so.
19454 # Grep'ing the whole file is not good either: AIX grep has a line
19455 # limit of 2048, but all sed's we know have understand at least 4000.
19456 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19457 dirpart=`$as_dirname -- "$mf" ||
19458 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19459 X"$mf" : 'X\(//\)[^/]' \| \
19460 X"$mf" : 'X\(//\)$' \| \
19461 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19462 $as_echo X"$mf" |
19463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19464 s//\1/
19465 q
19466 }
19467 /^X\(\/\/\)[^/].*/{
19468 s//\1/
19469 q
19470 }
19471 /^X\(\/\/\)$/{
19472 s//\1/
19473 q
19474 }
19475 /^X\(\/\).*/{
19476 s//\1/
19477 q
19478 }
19479 s/.*/./; q'`
19480 else
19481 continue
19482 fi
19483 # Extract the definition of DEPDIR, am__include, and am__quote
19484 # from the Makefile without running `make'.
19485 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19486 test -z "$DEPDIR" && continue
19487 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19488 test -z "am__include" && continue
19489 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19490 # When using ansi2knr, U may be empty or an underscore; expand it
19491 U=`sed -n 's/^U = //p' < "$mf"`
19492 # Find all dependency output files, they are included files with
19493 # $(DEPDIR) in their names. We invoke sed twice because it is the
19494 # simplest approach to changing $(DEPDIR) to its actual value in the
19495 # expansion.
19496 for file in `sed -n "
19497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19499 # Make sure the directory exists.
19500 test -f "$dirpart/$file" && continue
19501 fdir=`$as_dirname -- "$file" ||
19502 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19503 X"$file" : 'X\(//\)[^/]' \| \
19504 X"$file" : 'X\(//\)$' \| \
19505 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19506 $as_echo X"$file" |
19507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19508 s//\1/
19509 q
19510 }
19511 /^X\(\/\/\)[^/].*/{
19512 s//\1/
19513 q
19514 }
19515 /^X\(\/\/\)$/{
19516 s//\1/
19517 q
19518 }
19519 /^X\(\/\).*/{
19520 s//\1/
19521 q
19522 }
19523 s/.*/./; q'`
19524 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19525 # echo "creating $dirpart/$file"
19526 echo '# dummy' > "$dirpart/$file"
19527 done
19528 done
19529 }
19530 ;;
19531 "libtool":C)
19532
19533 # See if we are running on zsh, and set the options which allow our
19534 # commands through without removal of \ escapes.
19535 if test -n "${ZSH_VERSION+set}" ; then
19536 setopt NO_GLOB_SUBST
19537 fi
19538
19539 cfgfile="${ofile}T"
19540 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19541 $RM "$cfgfile"
19542
19543 cat <<_LT_EOF >> "$cfgfile"
19544 #! $SHELL
19545
19546 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19547 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19548 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19550 #
19551 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19552 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19553 # Written by Gordon Matzigkeit, 1996
19554 #
19555 # This file is part of GNU Libtool.
19556 #
19557 # GNU Libtool is free software; you can redistribute it and/or
19558 # modify it under the terms of the GNU General Public License as
19559 # published by the Free Software Foundation; either version 2 of
19560 # the License, or (at your option) any later version.
19561 #
19562 # As a special exception to the GNU General Public License,
19563 # if you distribute this file as part of a program or library that
19564 # is built using GNU Libtool, you may include this file under the
19565 # same distribution terms that you use for the rest of that program.
19566 #
19567 # GNU Libtool is distributed in the hope that it will be useful,
19568 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19569 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19570 # GNU General Public License for more details.
19571 #
19572 # You should have received a copy of the GNU General Public License
19573 # along with GNU Libtool; see the file COPYING. If not, a copy
19574 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19575 # obtained by writing to the Free Software Foundation, Inc.,
19576 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19577
19578
19579 # The names of the tagged configurations supported by this script.
19580 available_tags="CXX "
19581
19582 # ### BEGIN LIBTOOL CONFIG
19583
19584 # Which release of libtool.m4 was used?
19585 macro_version=$macro_version
19586 macro_revision=$macro_revision
19587
19588 # Whether or not to build shared libraries.
19589 build_libtool_libs=$enable_shared
19590
19591 # Whether or not to build static libraries.
19592 build_old_libs=$enable_static
19593
19594 # What type of objects to build.
19595 pic_mode=$pic_mode
19596
19597 # Whether or not to optimize for fast installation.
19598 fast_install=$enable_fast_install
19599
19600 # Shell to use when invoking shell scripts.
19601 SHELL=$lt_SHELL
19602
19603 # An echo program that protects backslashes.
19604 ECHO=$lt_ECHO
19605
19606 # The host system.
19607 host_alias=$host_alias
19608 host=$host
19609 host_os=$host_os
19610
19611 # The build system.
19612 build_alias=$build_alias
19613 build=$build
19614 build_os=$build_os
19615
19616 # A sed program that does not truncate output.
19617 SED=$lt_SED
19618
19619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19620 Xsed="\$SED -e 1s/^X//"
19621
19622 # A grep program that handles long lines.
19623 GREP=$lt_GREP
19624
19625 # An ERE matcher.
19626 EGREP=$lt_EGREP
19627
19628 # A literal string matcher.
19629 FGREP=$lt_FGREP
19630
19631 # A BSD- or MS-compatible name lister.
19632 NM=$lt_NM
19633
19634 # Whether we need soft or hard links.
19635 LN_S=$lt_LN_S
19636
19637 # What is the maximum length of a command?
19638 max_cmd_len=$max_cmd_len
19639
19640 # Object file suffix (normally "o").
19641 objext=$ac_objext
19642
19643 # Executable file suffix (normally "").
19644 exeext=$exeext
19645
19646 # whether the shell understands "unset".
19647 lt_unset=$lt_unset
19648
19649 # turn spaces into newlines.
19650 SP2NL=$lt_lt_SP2NL
19651
19652 # turn newlines into spaces.
19653 NL2SP=$lt_lt_NL2SP
19654
19655 # An object symbol dumper.
19656 OBJDUMP=$lt_OBJDUMP
19657
19658 # Method to check whether dependent libraries are shared objects.
19659 deplibs_check_method=$lt_deplibs_check_method
19660
19661 # Command to use when deplibs_check_method == "file_magic".
19662 file_magic_cmd=$lt_file_magic_cmd
19663
19664 # The archiver.
19665 AR=$lt_AR
19666 AR_FLAGS=$lt_AR_FLAGS
19667
19668 # A symbol stripping program.
19669 STRIP=$lt_STRIP
19670
19671 # Commands used to install an old-style archive.
19672 RANLIB=$lt_RANLIB
19673 old_postinstall_cmds=$lt_old_postinstall_cmds
19674 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19675
19676 # Whether to use a lock for old archive extraction.
19677 lock_old_archive_extraction=$lock_old_archive_extraction
19678
19679 # A C compiler.
19680 LTCC=$lt_CC
19681
19682 # LTCC compiler flags.
19683 LTCFLAGS=$lt_CFLAGS
19684
19685 # Take the output of nm and produce a listing of raw symbols and C names.
19686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19687
19688 # Transform the output of nm in a proper C declaration.
19689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19690
19691 # Transform the output of nm in a C name address pair.
19692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19693
19694 # Transform the output of nm in a C name address pair when lib prefix is needed.
19695 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19696
19697 # The name of the directory that contains temporary libtool files.
19698 objdir=$objdir
19699
19700 # Used to examine libraries when file_magic_cmd begins with "file".
19701 MAGIC_CMD=$MAGIC_CMD
19702
19703 # Must we lock files when doing compilation?
19704 need_locks=$lt_need_locks
19705
19706 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19707 DSYMUTIL=$lt_DSYMUTIL
19708
19709 # Tool to change global to local symbols on Mac OS X.
19710 NMEDIT=$lt_NMEDIT
19711
19712 # Tool to manipulate fat objects and archives on Mac OS X.
19713 LIPO=$lt_LIPO
19714
19715 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19716 OTOOL=$lt_OTOOL
19717
19718 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19719 OTOOL64=$lt_OTOOL64
19720
19721 # Old archive suffix (normally "a").
19722 libext=$libext
19723
19724 # Shared library suffix (normally ".so").
19725 shrext_cmds=$lt_shrext_cmds
19726
19727 # The commands to extract the exported symbol list from a shared archive.
19728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19729
19730 # Variables whose values should be saved in libtool wrapper scripts and
19731 # restored at link time.
19732 variables_saved_for_relink=$lt_variables_saved_for_relink
19733
19734 # Do we need the "lib" prefix for modules?
19735 need_lib_prefix=$need_lib_prefix
19736
19737 # Do we need a version for libraries?
19738 need_version=$need_version
19739
19740 # Library versioning type.
19741 version_type=$version_type
19742
19743 # Shared library runtime path variable.
19744 runpath_var=$runpath_var
19745
19746 # Shared library path variable.
19747 shlibpath_var=$shlibpath_var
19748
19749 # Is shlibpath searched before the hard-coded library search path?
19750 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19751
19752 # Format of library name prefix.
19753 libname_spec=$lt_libname_spec
19754
19755 # List of archive names. First name is the real one, the rest are links.
19756 # The last name is the one that the linker finds with -lNAME
19757 library_names_spec=$lt_library_names_spec
19758
19759 # The coded name of the library, if different from the real name.
19760 soname_spec=$lt_soname_spec
19761
19762 # Permission mode override for installation of shared libraries.
19763 install_override_mode=$lt_install_override_mode
19764
19765 # Command to use after installation of a shared archive.
19766 postinstall_cmds=$lt_postinstall_cmds
19767
19768 # Command to use after uninstallation of a shared archive.
19769 postuninstall_cmds=$lt_postuninstall_cmds
19770
19771 # Commands used to finish a libtool library installation in a directory.
19772 finish_cmds=$lt_finish_cmds
19773
19774 # As "finish_cmds", except a single script fragment to be evaled but
19775 # not shown.
19776 finish_eval=$lt_finish_eval
19777
19778 # Whether we should hardcode library paths into libraries.
19779 hardcode_into_libs=$hardcode_into_libs
19780
19781 # Compile-time system search path for libraries.
19782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19783
19784 # Run-time system search path for libraries.
19785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19786
19787 # Whether dlopen is supported.
19788 dlopen_support=$enable_dlopen
19789
19790 # Whether dlopen of programs is supported.
19791 dlopen_self=$enable_dlopen_self
19792
19793 # Whether dlopen of statically linked programs is supported.
19794 dlopen_self_static=$enable_dlopen_self_static
19795
19796 # Commands to strip libraries.
19797 old_striplib=$lt_old_striplib
19798 striplib=$lt_striplib
19799
19800
19801 # The linker used to build libraries.
19802 LD=$lt_LD
19803
19804 # How to create reloadable object files.
19805 reload_flag=$lt_reload_flag
19806 reload_cmds=$lt_reload_cmds
19807
19808 # Commands used to build an old-style archive.
19809 old_archive_cmds=$lt_old_archive_cmds
19810
19811 # A language specific compiler.
19812 CC=$lt_compiler
19813
19814 # Is the compiler the GNU compiler?
19815 with_gcc=$GCC
19816
19817 # Compiler flag to turn off builtin functions.
19818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19819
19820 # How to pass a linker flag through the compiler.
19821 wl=$lt_lt_prog_compiler_wl
19822
19823 # Additional compiler flags for building library objects.
19824 pic_flag=$lt_lt_prog_compiler_pic
19825
19826 # Compiler flag to prevent dynamic linking.
19827 link_static_flag=$lt_lt_prog_compiler_static
19828
19829 # Does compiler simultaneously support -c and -o options?
19830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19831
19832 # Whether or not to add -lc for building shared libraries.
19833 build_libtool_need_lc=$archive_cmds_need_lc
19834
19835 # Whether or not to disallow shared libs when runtime libs are static.
19836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19837
19838 # Compiler flag to allow reflexive dlopens.
19839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19840
19841 # Compiler flag to generate shared objects directly from archives.
19842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19843
19844 # Whether the compiler copes with passing no objects directly.
19845 compiler_needs_object=$lt_compiler_needs_object
19846
19847 # Create an old-style archive from a shared archive.
19848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19849
19850 # Create a temporary old-style archive to link instead of a shared archive.
19851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19852
19853 # Commands used to build a shared archive.
19854 archive_cmds=$lt_archive_cmds
19855 archive_expsym_cmds=$lt_archive_expsym_cmds
19856
19857 # Commands used to build a loadable module if different from building
19858 # a shared archive.
19859 module_cmds=$lt_module_cmds
19860 module_expsym_cmds=$lt_module_expsym_cmds
19861
19862 # Whether we are building with GNU ld or not.
19863 with_gnu_ld=$lt_with_gnu_ld
19864
19865 # Flag that allows shared libraries with undefined symbols to be built.
19866 allow_undefined_flag=$lt_allow_undefined_flag
19867
19868 # Flag that enforces no undefined symbols.
19869 no_undefined_flag=$lt_no_undefined_flag
19870
19871 # Flag to hardcode \$libdir into a binary during linking.
19872 # This must work even if \$libdir does not exist
19873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19874
19875 # If ld is used when linking, flag to hardcode \$libdir into a binary
19876 # during linking. This must work even if \$libdir does not exist.
19877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19878
19879 # Whether we need a single "-rpath" flag with a separated argument.
19880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19881
19882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19883 # DIR into the resulting binary.
19884 hardcode_direct=$hardcode_direct
19885
19886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19887 # DIR into the resulting binary and the resulting library dependency is
19888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19889 # library is relocated.
19890 hardcode_direct_absolute=$hardcode_direct_absolute
19891
19892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19893 # into the resulting binary.
19894 hardcode_minus_L=$hardcode_minus_L
19895
19896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19897 # into the resulting binary.
19898 hardcode_shlibpath_var=$hardcode_shlibpath_var
19899
19900 # Set to "yes" if building a shared library automatically hardcodes DIR
19901 # into the library and all subsequent libraries and executables linked
19902 # against it.
19903 hardcode_automatic=$hardcode_automatic
19904
19905 # Set to yes if linker adds runtime paths of dependent libraries
19906 # to runtime path list.
19907 inherit_rpath=$inherit_rpath
19908
19909 # Whether libtool must link a program against all its dependency libraries.
19910 link_all_deplibs=$link_all_deplibs
19911
19912 # Fix the shell variable \$srcfile for the compiler.
19913 fix_srcfile_path=$lt_fix_srcfile_path
19914
19915 # Set to "yes" if exported symbols are required.
19916 always_export_symbols=$always_export_symbols
19917
19918 # The commands to list exported symbols.
19919 export_symbols_cmds=$lt_export_symbols_cmds
19920
19921 # Symbols that should not be listed in the preloaded symbols.
19922 exclude_expsyms=$lt_exclude_expsyms
19923
19924 # Symbols that must always be exported.
19925 include_expsyms=$lt_include_expsyms
19926
19927 # Commands necessary for linking programs (against libraries) with templates.
19928 prelink_cmds=$lt_prelink_cmds
19929
19930 # Specify filename containing input files.
19931 file_list_spec=$lt_file_list_spec
19932
19933 # How to hardcode a shared library path into an executable.
19934 hardcode_action=$hardcode_action
19935
19936 # The directories searched by this compiler when creating a shared library.
19937 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19938
19939 # Dependencies to place before and after the objects being linked to
19940 # create a shared library.
19941 predep_objects=$lt_predep_objects
19942 postdep_objects=$lt_postdep_objects
19943 predeps=$lt_predeps
19944 postdeps=$lt_postdeps
19945
19946 # The library search path used internally by the compiler when linking
19947 # a shared library.
19948 compiler_lib_search_path=$lt_compiler_lib_search_path
19949
19950 # ### END LIBTOOL CONFIG
19951
19952 _LT_EOF
19953
19954 case $host_os in
19955 aix3*)
19956 cat <<\_LT_EOF >> "$cfgfile"
19957 # AIX sometimes has problems with the GCC collect2 program. For some
19958 # reason, if we set the COLLECT_NAMES environment variable, the problems
19959 # vanish in a puff of smoke.
19960 if test "X${COLLECT_NAMES+set}" != Xset; then
19961 COLLECT_NAMES=
19962 export COLLECT_NAMES
19963 fi
19964 _LT_EOF
19965 ;;
19966 esac
19967
19968
19969 ltmain="$ac_aux_dir/ltmain.sh"
19970
19971
19972 # We use sed instead of cat because bash on DJGPP gets confused if
19973 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19974 # text mode, it properly converts lines to CR/LF. This bash problem
19975 # is reportedly fixed, but why not run on old versions too?
19976 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19977 || (rm -f "$cfgfile"; exit 1)
19978
19979 case $xsi_shell in
19980 yes)
19981 cat << \_LT_EOF >> "$cfgfile"
19982
19983 # func_dirname file append nondir_replacement
19984 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19985 # otherwise set result to NONDIR_REPLACEMENT.
19986 func_dirname ()
19987 {
19988 case ${1} in
19989 */*) func_dirname_result="${1%/*}${2}" ;;
19990 * ) func_dirname_result="${3}" ;;
19991 esac
19992 }
19993
19994 # func_basename file
19995 func_basename ()
19996 {
19997 func_basename_result="${1##*/}"
19998 }
19999
20000 # func_dirname_and_basename file append nondir_replacement
20001 # perform func_basename and func_dirname in a single function
20002 # call:
20003 # dirname: Compute the dirname of FILE. If nonempty,
20004 # add APPEND to the result, otherwise set result
20005 # to NONDIR_REPLACEMENT.
20006 # value returned in "$func_dirname_result"
20007 # basename: Compute filename of FILE.
20008 # value retuned in "$func_basename_result"
20009 # Implementation must be kept synchronized with func_dirname
20010 # and func_basename. For efficiency, we do not delegate to
20011 # those functions but instead duplicate the functionality here.
20012 func_dirname_and_basename ()
20013 {
20014 case ${1} in
20015 */*) func_dirname_result="${1%/*}${2}" ;;
20016 * ) func_dirname_result="${3}" ;;
20017 esac
20018 func_basename_result="${1##*/}"
20019 }
20020
20021 # func_stripname prefix suffix name
20022 # strip PREFIX and SUFFIX off of NAME.
20023 # PREFIX and SUFFIX must not contain globbing or regex special
20024 # characters, hashes, percent signs, but SUFFIX may contain a leading
20025 # dot (in which case that matches only a dot).
20026 func_stripname ()
20027 {
20028 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20029 # positional parameters, so assign one to ordinary parameter first.
20030 func_stripname_result=${3}
20031 func_stripname_result=${func_stripname_result#"${1}"}
20032 func_stripname_result=${func_stripname_result%"${2}"}
20033 }
20034
20035 # func_opt_split
20036 func_opt_split ()
20037 {
20038 func_opt_split_opt=${1%%=*}
20039 func_opt_split_arg=${1#*=}
20040 }
20041
20042 # func_lo2o object
20043 func_lo2o ()
20044 {
20045 case ${1} in
20046 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20047 *) func_lo2o_result=${1} ;;
20048 esac
20049 }
20050
20051 # func_xform libobj-or-source
20052 func_xform ()
20053 {
20054 func_xform_result=${1%.*}.lo
20055 }
20056
20057 # func_arith arithmetic-term...
20058 func_arith ()
20059 {
20060 func_arith_result=$(( $* ))
20061 }
20062
20063 # func_len string
20064 # STRING may not start with a hyphen.
20065 func_len ()
20066 {
20067 func_len_result=${#1}
20068 }
20069
20070 _LT_EOF
20071 ;;
20072 *) # Bourne compatible functions.
20073 cat << \_LT_EOF >> "$cfgfile"
20074
20075 # func_dirname file append nondir_replacement
20076 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20077 # otherwise set result to NONDIR_REPLACEMENT.
20078 func_dirname ()
20079 {
20080 # Extract subdirectory from the argument.
20081 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20082 if test "X$func_dirname_result" = "X${1}"; then
20083 func_dirname_result="${3}"
20084 else
20085 func_dirname_result="$func_dirname_result${2}"
20086 fi
20087 }
20088
20089 # func_basename file
20090 func_basename ()
20091 {
20092 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20093 }
20094
20095
20096 # func_stripname prefix suffix name
20097 # strip PREFIX and SUFFIX off of NAME.
20098 # PREFIX and SUFFIX must not contain globbing or regex special
20099 # characters, hashes, percent signs, but SUFFIX may contain a leading
20100 # dot (in which case that matches only a dot).
20101 # func_strip_suffix prefix name
20102 func_stripname ()
20103 {
20104 case ${2} in
20105 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20106 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20107 esac
20108 }
20109
20110 # sed scripts:
20111 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20112 my_sed_long_arg='1s/^-[^=]*=//'
20113
20114 # func_opt_split
20115 func_opt_split ()
20116 {
20117 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20118 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20119 }
20120
20121 # func_lo2o object
20122 func_lo2o ()
20123 {
20124 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20125 }
20126
20127 # func_xform libobj-or-source
20128 func_xform ()
20129 {
20130 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20131 }
20132
20133 # func_arith arithmetic-term...
20134 func_arith ()
20135 {
20136 func_arith_result=`expr "$@"`
20137 }
20138
20139 # func_len string
20140 # STRING may not start with a hyphen.
20141 func_len ()
20142 {
20143 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20144 }
20145
20146 _LT_EOF
20147 esac
20148
20149 case $lt_shell_append in
20150 yes)
20151 cat << \_LT_EOF >> "$cfgfile"
20152
20153 # func_append var value
20154 # Append VALUE to the end of shell variable VAR.
20155 func_append ()
20156 {
20157 eval "$1+=\$2"
20158 }
20159 _LT_EOF
20160 ;;
20161 *)
20162 cat << \_LT_EOF >> "$cfgfile"
20163
20164 # func_append var value
20165 # Append VALUE to the end of shell variable VAR.
20166 func_append ()
20167 {
20168 eval "$1=\$$1\$2"
20169 }
20170
20171 _LT_EOF
20172 ;;
20173 esac
20174
20175
20176 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20177 || (rm -f "$cfgfile"; exit 1)
20178
20179 mv -f "$cfgfile" "$ofile" ||
20180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20181 chmod +x "$ofile"
20182
20183
20184 cat <<_LT_EOF >> "$ofile"
20185
20186 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20187
20188 # The linker used to build libraries.
20189 LD=$lt_LD_CXX
20190
20191 # How to create reloadable object files.
20192 reload_flag=$lt_reload_flag_CXX
20193 reload_cmds=$lt_reload_cmds_CXX
20194
20195 # Commands used to build an old-style archive.
20196 old_archive_cmds=$lt_old_archive_cmds_CXX
20197
20198 # A language specific compiler.
20199 CC=$lt_compiler_CXX
20200
20201 # Is the compiler the GNU compiler?
20202 with_gcc=$GCC_CXX
20203
20204 # Compiler flag to turn off builtin functions.
20205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20206
20207 # How to pass a linker flag through the compiler.
20208 wl=$lt_lt_prog_compiler_wl_CXX
20209
20210 # Additional compiler flags for building library objects.
20211 pic_flag=$lt_lt_prog_compiler_pic_CXX
20212
20213 # Compiler flag to prevent dynamic linking.
20214 link_static_flag=$lt_lt_prog_compiler_static_CXX
20215
20216 # Does compiler simultaneously support -c and -o options?
20217 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20218
20219 # Whether or not to add -lc for building shared libraries.
20220 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20221
20222 # Whether or not to disallow shared libs when runtime libs are static.
20223 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20224
20225 # Compiler flag to allow reflexive dlopens.
20226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20227
20228 # Compiler flag to generate shared objects directly from archives.
20229 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20230
20231 # Whether the compiler copes with passing no objects directly.
20232 compiler_needs_object=$lt_compiler_needs_object_CXX
20233
20234 # Create an old-style archive from a shared archive.
20235 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20236
20237 # Create a temporary old-style archive to link instead of a shared archive.
20238 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20239
20240 # Commands used to build a shared archive.
20241 archive_cmds=$lt_archive_cmds_CXX
20242 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20243
20244 # Commands used to build a loadable module if different from building
20245 # a shared archive.
20246 module_cmds=$lt_module_cmds_CXX
20247 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20248
20249 # Whether we are building with GNU ld or not.
20250 with_gnu_ld=$lt_with_gnu_ld_CXX
20251
20252 # Flag that allows shared libraries with undefined symbols to be built.
20253 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20254
20255 # Flag that enforces no undefined symbols.
20256 no_undefined_flag=$lt_no_undefined_flag_CXX
20257
20258 # Flag to hardcode \$libdir into a binary during linking.
20259 # This must work even if \$libdir does not exist
20260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20261
20262 # If ld is used when linking, flag to hardcode \$libdir into a binary
20263 # during linking. This must work even if \$libdir does not exist.
20264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20265
20266 # Whether we need a single "-rpath" flag with a separated argument.
20267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20268
20269 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20270 # DIR into the resulting binary.
20271 hardcode_direct=$hardcode_direct_CXX
20272
20273 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20274 # DIR into the resulting binary and the resulting library dependency is
20275 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20276 # library is relocated.
20277 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20278
20279 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20280 # into the resulting binary.
20281 hardcode_minus_L=$hardcode_minus_L_CXX
20282
20283 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20284 # into the resulting binary.
20285 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20286
20287 # Set to "yes" if building a shared library automatically hardcodes DIR
20288 # into the library and all subsequent libraries and executables linked
20289 # against it.
20290 hardcode_automatic=$hardcode_automatic_CXX
20291
20292 # Set to yes if linker adds runtime paths of dependent libraries
20293 # to runtime path list.
20294 inherit_rpath=$inherit_rpath_CXX
20295
20296 # Whether libtool must link a program against all its dependency libraries.
20297 link_all_deplibs=$link_all_deplibs_CXX
20298
20299 # Fix the shell variable \$srcfile for the compiler.
20300 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20301
20302 # Set to "yes" if exported symbols are required.
20303 always_export_symbols=$always_export_symbols_CXX
20304
20305 # The commands to list exported symbols.
20306 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20307
20308 # Symbols that should not be listed in the preloaded symbols.
20309 exclude_expsyms=$lt_exclude_expsyms_CXX
20310
20311 # Symbols that must always be exported.
20312 include_expsyms=$lt_include_expsyms_CXX
20313
20314 # Commands necessary for linking programs (against libraries) with templates.
20315 prelink_cmds=$lt_prelink_cmds_CXX
20316
20317 # Specify filename containing input files.
20318 file_list_spec=$lt_file_list_spec_CXX
20319
20320 # How to hardcode a shared library path into an executable.
20321 hardcode_action=$hardcode_action_CXX
20322
20323 # The directories searched by this compiler when creating a shared library.
20324 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20325
20326 # Dependencies to place before and after the objects being linked to
20327 # create a shared library.
20328 predep_objects=$lt_predep_objects_CXX
20329 postdep_objects=$lt_postdep_objects_CXX
20330 predeps=$lt_predeps_CXX
20331 postdeps=$lt_postdeps_CXX
20332
20333 # The library search path used internally by the compiler when linking
20334 # a shared library.
20335 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20336
20337 # ### END LIBTOOL TAG CONFIG: CXX
20338 _LT_EOF
20339
20340 ;;
20341 "gstdint.h":C)
20342 if test "$GCC" = yes; then
20343 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20344 else
20345 echo "/* generated for $CC */" > tmp-stdint.h
20346 fi
20347
20348 sed 's/^ *//' >> tmp-stdint.h <<EOF
20349
20350 #ifndef GCC_GENERATED_STDINT_H
20351 #define GCC_GENERATED_STDINT_H 1
20352
20353 #include <sys/types.h>
20354 EOF
20355
20356 if test "$acx_cv_header_stdint" != stdint.h; then
20357 echo "#include <stddef.h>" >> tmp-stdint.h
20358 fi
20359 if test "$acx_cv_header_stdint" != stddef.h; then
20360 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20361 fi
20362
20363 sed 's/^ *//' >> tmp-stdint.h <<EOF
20364 /* glibc uses these symbols as guards to prevent redefinitions. */
20365 #ifdef __int8_t_defined
20366 #define _INT8_T
20367 #define _INT16_T
20368 #define _INT32_T
20369 #endif
20370 #ifdef __uint32_t_defined
20371 #define _UINT32_T
20372 #endif
20373
20374 EOF
20375
20376 # ----------------- done header, emit basic int types -------------
20377 if test "$acx_cv_header_stdint" = stddef.h; then
20378 sed 's/^ *//' >> tmp-stdint.h <<EOF
20379
20380 #ifndef _UINT8_T
20381 #define _UINT8_T
20382 #ifndef __uint8_t_defined
20383 #define __uint8_t_defined
20384 #ifndef uint8_t
20385 typedef unsigned $acx_cv_type_int8_t uint8_t;
20386 #endif
20387 #endif
20388 #endif
20389
20390 #ifndef _UINT16_T
20391 #define _UINT16_T
20392 #ifndef __uint16_t_defined
20393 #define __uint16_t_defined
20394 #ifndef uint16_t
20395 typedef unsigned $acx_cv_type_int16_t uint16_t;
20396 #endif
20397 #endif
20398 #endif
20399
20400 #ifndef _UINT32_T
20401 #define _UINT32_T
20402 #ifndef __uint32_t_defined
20403 #define __uint32_t_defined
20404 #ifndef uint32_t
20405 typedef unsigned $acx_cv_type_int32_t uint32_t;
20406 #endif
20407 #endif
20408 #endif
20409
20410 #ifndef _INT8_T
20411 #define _INT8_T
20412 #ifndef __int8_t_defined
20413 #define __int8_t_defined
20414 #ifndef int8_t
20415 typedef $acx_cv_type_int8_t int8_t;
20416 #endif
20417 #endif
20418 #endif
20419
20420 #ifndef _INT16_T
20421 #define _INT16_T
20422 #ifndef __int16_t_defined
20423 #define __int16_t_defined
20424 #ifndef int16_t
20425 typedef $acx_cv_type_int16_t int16_t;
20426 #endif
20427 #endif
20428 #endif
20429
20430 #ifndef _INT32_T
20431 #define _INT32_T
20432 #ifndef __int32_t_defined
20433 #define __int32_t_defined
20434 #ifndef int32_t
20435 typedef $acx_cv_type_int32_t int32_t;
20436 #endif
20437 #endif
20438 #endif
20439 EOF
20440 elif test "$ac_cv_type_u_int32_t" = yes; then
20441 sed 's/^ *//' >> tmp-stdint.h <<EOF
20442
20443 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20444 #ifndef _INT8_T
20445 #define _INT8_T
20446 #endif
20447 #ifndef _INT16_T
20448 #define _INT16_T
20449 #endif
20450 #ifndef _INT32_T
20451 #define _INT32_T
20452 #endif
20453
20454 #ifndef _UINT8_T
20455 #define _UINT8_T
20456 #ifndef __uint8_t_defined
20457 #define __uint8_t_defined
20458 #ifndef uint8_t
20459 typedef u_int8_t uint8_t;
20460 #endif
20461 #endif
20462 #endif
20463
20464 #ifndef _UINT16_T
20465 #define _UINT16_T
20466 #ifndef __uint16_t_defined
20467 #define __uint16_t_defined
20468 #ifndef uint16_t
20469 typedef u_int16_t uint16_t;
20470 #endif
20471 #endif
20472 #endif
20473
20474 #ifndef _UINT32_T
20475 #define _UINT32_T
20476 #ifndef __uint32_t_defined
20477 #define __uint32_t_defined
20478 #ifndef uint32_t
20479 typedef u_int32_t uint32_t;
20480 #endif
20481 #endif
20482 #endif
20483 EOF
20484 else
20485 sed 's/^ *//' >> tmp-stdint.h <<EOF
20486
20487 /* Some systems have guard macros to prevent redefinitions, define them. */
20488 #ifndef _INT8_T
20489 #define _INT8_T
20490 #endif
20491 #ifndef _INT16_T
20492 #define _INT16_T
20493 #endif
20494 #ifndef _INT32_T
20495 #define _INT32_T
20496 #endif
20497 #ifndef _UINT8_T
20498 #define _UINT8_T
20499 #endif
20500 #ifndef _UINT16_T
20501 #define _UINT16_T
20502 #endif
20503 #ifndef _UINT32_T
20504 #define _UINT32_T
20505 #endif
20506 EOF
20507 fi
20508
20509 # ------------- done basic int types, emit int64_t types ------------
20510 if test "$ac_cv_type_uint64_t" = yes; then
20511 sed 's/^ *//' >> tmp-stdint.h <<EOF
20512
20513 /* system headers have good uint64_t and int64_t */
20514 #ifndef _INT64_T
20515 #define _INT64_T
20516 #endif
20517 #ifndef _UINT64_T
20518 #define _UINT64_T
20519 #endif
20520 EOF
20521 elif test "$ac_cv_type_u_int64_t" = yes; then
20522 sed 's/^ *//' >> tmp-stdint.h <<EOF
20523
20524 /* system headers have an u_int64_t (and int64_t) */
20525 #ifndef _INT64_T
20526 #define _INT64_T
20527 #endif
20528 #ifndef _UINT64_T
20529 #define _UINT64_T
20530 #ifndef __uint64_t_defined
20531 #define __uint64_t_defined
20532 #ifndef uint64_t
20533 typedef u_int64_t uint64_t;
20534 #endif
20535 #endif
20536 #endif
20537 EOF
20538 elif test -n "$acx_cv_type_int64_t"; then
20539 sed 's/^ *//' >> tmp-stdint.h <<EOF
20540
20541 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20542 #ifndef _INT64_T
20543 #define _INT64_T
20544 #ifndef int64_t
20545 typedef $acx_cv_type_int64_t int64_t;
20546 #endif
20547 #endif
20548 #ifndef _UINT64_T
20549 #define _UINT64_T
20550 #ifndef __uint64_t_defined
20551 #define __uint64_t_defined
20552 #ifndef uint64_t
20553 typedef unsigned $acx_cv_type_int64_t uint64_t;
20554 #endif
20555 #endif
20556 #endif
20557 EOF
20558 else
20559 sed 's/^ *//' >> tmp-stdint.h <<EOF
20560
20561 /* some common heuristics for int64_t, using compiler-specific tests */
20562 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20563 #ifndef _INT64_T
20564 #define _INT64_T
20565 #ifndef __int64_t_defined
20566 #ifndef int64_t
20567 typedef long long int64_t;
20568 #endif
20569 #endif
20570 #endif
20571 #ifndef _UINT64_T
20572 #define _UINT64_T
20573 #ifndef uint64_t
20574 typedef unsigned long long uint64_t;
20575 #endif
20576 #endif
20577
20578 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20579 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20580 does not implement __extension__. But that compiler doesn't define
20581 __GNUC_MINOR__. */
20582 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20583 # define __extension__
20584 # endif
20585
20586 # ifndef _INT64_T
20587 # define _INT64_T
20588 # ifndef int64_t
20589 __extension__ typedef long long int64_t;
20590 # endif
20591 # endif
20592 # ifndef _UINT64_T
20593 # define _UINT64_T
20594 # ifndef uint64_t
20595 __extension__ typedef unsigned long long uint64_t;
20596 # endif
20597 # endif
20598
20599 #elif !defined __STRICT_ANSI__
20600 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20601
20602 # ifndef _INT64_T
20603 # define _INT64_T
20604 # ifndef int64_t
20605 typedef __int64 int64_t;
20606 # endif
20607 # endif
20608 # ifndef _UINT64_T
20609 # define _UINT64_T
20610 # ifndef uint64_t
20611 typedef unsigned __int64 uint64_t;
20612 # endif
20613 # endif
20614 # endif /* compiler */
20615
20616 #endif /* ANSI version */
20617 EOF
20618 fi
20619
20620 # ------------- done int64_t types, emit intptr types ------------
20621 if test "$ac_cv_type_uintptr_t" != yes; then
20622 sed 's/^ *//' >> tmp-stdint.h <<EOF
20623
20624 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20625 #ifndef __uintptr_t_defined
20626 #ifndef uintptr_t
20627 typedef u$acx_cv_type_intptr_t uintptr_t;
20628 #endif
20629 #endif
20630 #ifndef __intptr_t_defined
20631 #ifndef intptr_t
20632 typedef $acx_cv_type_intptr_t intptr_t;
20633 #endif
20634 #endif
20635 EOF
20636 fi
20637
20638 # ------------- done intptr types, emit int_least types ------------
20639 if test "$ac_cv_type_int_least32_t" != yes; then
20640 sed 's/^ *//' >> tmp-stdint.h <<EOF
20641
20642 /* Define int_least types */
20643 typedef int8_t int_least8_t;
20644 typedef int16_t int_least16_t;
20645 typedef int32_t int_least32_t;
20646 #ifdef _INT64_T
20647 typedef int64_t int_least64_t;
20648 #endif
20649
20650 typedef uint8_t uint_least8_t;
20651 typedef uint16_t uint_least16_t;
20652 typedef uint32_t uint_least32_t;
20653 #ifdef _UINT64_T
20654 typedef uint64_t uint_least64_t;
20655 #endif
20656 EOF
20657 fi
20658
20659 # ------------- done intptr types, emit int_fast types ------------
20660 if test "$ac_cv_type_int_fast32_t" != yes; then
20661 sed 's/^ *//' >> tmp-stdint.h <<EOF
20662
20663 /* Define int_fast types. short is often slow */
20664 typedef int8_t int_fast8_t;
20665 typedef int int_fast16_t;
20666 typedef int32_t int_fast32_t;
20667 #ifdef _INT64_T
20668 typedef int64_t int_fast64_t;
20669 #endif
20670
20671 typedef uint8_t uint_fast8_t;
20672 typedef unsigned int uint_fast16_t;
20673 typedef uint32_t uint_fast32_t;
20674 #ifdef _UINT64_T
20675 typedef uint64_t uint_fast64_t;
20676 #endif
20677 EOF
20678 fi
20679
20680 if test "$ac_cv_type_uintmax_t" != yes; then
20681 sed 's/^ *//' >> tmp-stdint.h <<EOF
20682
20683 /* Define intmax based on what we found */
20684 #ifndef intmax_t
20685 #ifdef _INT64_T
20686 typedef int64_t intmax_t;
20687 #else
20688 typedef long intmax_t;
20689 #endif
20690 #endif
20691 #ifndef uintmax_t
20692 #ifdef _UINT64_T
20693 typedef uint64_t uintmax_t;
20694 #else
20695 typedef unsigned long uintmax_t;
20696 #endif
20697 #endif
20698 EOF
20699 fi
20700
20701 sed 's/^ *//' >> tmp-stdint.h <<EOF
20702
20703 #endif /* GCC_GENERATED_STDINT_H */
20704 EOF
20705
20706 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20707 rm -f tmp-stdint.h
20708 else
20709 mv -f tmp-stdint.h gstdint.h
20710 fi
20711
20712 ;;
20713
20714 esac
20715 done # for ac_tag
20716
20717
20718 as_fn_exit 0
20719 _ACEOF
20720 ac_clean_files=$ac_clean_files_save
20721
20722 test $ac_write_fail = 0 ||
20723 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20724
20725
20726 # configure is writing to config.log, and then calls config.status.
20727 # config.status does its own redirection, appending to config.log.
20728 # Unfortunately, on DOS this fails, as config.log is still kept open
20729 # by configure, so config.status won't be able to write to it; its
20730 # output is simply discarded. So we exec the FD to /dev/null,
20731 # effectively closing config.log, so it can be properly (re)opened and
20732 # appended to by config.status. When coming back to configure, we
20733 # need to make the FD available again.
20734 if test "$no_create" != yes; then
20735 ac_cs_success=:
20736 ac_config_status_args=
20737 test "$silent" = yes &&
20738 ac_config_status_args="$ac_config_status_args --quiet"
20739 exec 5>/dev/null
20740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20741 exec 5>>config.log
20742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20743 # would make configure fail if this is the last instruction.
20744 $ac_cs_success || as_fn_exit $?
20745 fi
20746 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20748 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20749 fi
20750