]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcilkrts/configure
ecf88eee2a9bec9ca3fe6dfe69d1e9c03f2d2edc
[thirdparty/gcc.git] / libcilkrts / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
4 #
5 # Report bugs to <cilk@intel.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and cilk@intel.com
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
244 fi
245 exit 1
246 fi
247 fi
248 fi
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263 { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272 return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343 else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348 fi # as_fn_append
349
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360 else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365 fi # as_fn_arith
366
367
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
374 {
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
383
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
395 fi
396
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
401 fi
402
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470 *)
471 ECHO_N='-n';;
472 esac
473
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
480 fi
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
494 fi
495 else
496 as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506 fi
507
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528 fi
529 as_executable_p=$as_test_x
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='Cilk Runtime Library'
561 PACKAGE_TARNAME='cilk-runtime-library'
562 PACKAGE_VERSION='2.0'
563 PACKAGE_STRING='Cilk Runtime Library 2.0'
564 PACKAGE_BUGREPORT='cilk@intel.com'
565 PACKAGE_URL=''
566
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 link_cilkrts
608 XLDFLAGS
609 XCFLAGS
610 lt_cv_dlopen_libs
611 toolexeclibdir
612 toolexecdir
613 CXXCPP
614 OTOOL64
615 OTOOL
616 LIPO
617 NMEDIT
618 DSYMUTIL
619 RANLIB
620 AR
621 OBJDUMP
622 LN_S
623 NM
624 ac_ct_DUMPBIN
625 DUMPBIN
626 LD
627 FGREP
628 SED
629 LIBTOOL
630 MAC_LINKER_SCRIPT_FALSE
631 MAC_LINKER_SCRIPT_TRUE
632 LINUX_LINKER_SCRIPT_FALSE
633 LINUX_LINKER_SCRIPT_TRUE
634 config_dir
635 ALLOCA
636 am__fastdepCXX_FALSE
637 am__fastdepCXX_TRUE
638 CXXDEPMODE
639 ac_ct_CXX
640 CXXFLAGS
641 CXX
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 am__nodep
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
661 CC
662 multi_basedir
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_maintainer_mode
743 enable_multilib
744 enable_dependency_tracking
745 enable_version_specific_runtime_libs
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
752 '
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CPP
762 CXX
763 CXXFLAGS
764 CCC
765 CXXCPP'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
831
832 # Accept the important Cygnus configure options, so we can diagnose typos.
833
834 case $ac_dashdash$ac_option in
835 --)
836 ac_dashdash=yes ;;
837
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
842
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
847
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
854
855 --config-cache | -C)
856 cache_file=config.cache ;;
857
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
862
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
869
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
878 *"
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
885
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
890
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
895
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
911
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
920
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
924
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
931
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
936
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
942
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
949
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
954
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
959
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
966
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
971
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
978
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
983
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
987
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
991
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
995
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1004
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1009
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1016
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1023
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1040
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1045
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1050
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1054
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1060
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1071
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1076
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1081
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1088
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1093
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1096
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1099
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1115
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1131
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1135
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1142
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1149
1150 -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1152 ;;
1153
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1163
1164 *)
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 ;;
1171
1172 esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error "missing argument to $ac_option"
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1193 do
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1224 fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\).*/{
1264 s//\1/
1265 q
1266 }
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1271 fi
1272 else
1273 ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root
1356 [DATAROOTDIR/doc/cilk-runtime-library]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1362
1363 cat <<\_ACEOF
1364
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --enable-multilib build many library versions (default)
1390 --disable-dependency-tracking speeds up one-time build
1391 --enable-dependency-tracking do not reject slow dependency extractors
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compi ler-specific directory
1395 --enable-shared[=PKGS] build shared libraries [default=yes]
1396 --enable-static[=PKGS] build static libraries [default=yes]
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-pic try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1419 CXXCPP C++ preprocessor
1420
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1423
1424 Report bugs to <cilk@intel.com>.
1425 _ACEOF
1426 ac_status=$?
1427 fi
1428
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1436
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *)
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1452
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1477 else
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 fi || ac_status=$?
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1481 done
1482 fi
1483
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486 cat <<\_ACEOF
1487 Cilk Runtime Library configure 2.0
1488 generated by GNU Autoconf 2.64
1489
1490 Copyright (C) 2009 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1495 fi
1496
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1500
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1505 {
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1521 fi
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1531
1532 ac_retval=1
1533 fi
1534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1535 return $ac_retval
1536
1537 } # ac_fn_c_try_compile
1538
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_cpp ()
1543 {
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 }; 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_cpp
1575
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1580 # accordingly.
1581 ac_fn_c_check_header_mongrel ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 $as_echo_n "(cached) " >&6
1589 fi
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 else
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 $4
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1604 else
1605 ac_header_compiler=no
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1610
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1620 else
1621 ac_header_preproc=no
1622 fi
1623 rm -f conftest.err conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1626
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 yes:no: )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635 no:yes:* )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 ( cat <<\_ASBOX
1647 ## ----------------------------- ##
1648 ## Report this to cilk@intel.com ##
1649 ## ----------------------------- ##
1650 _ASBOX
1651 ) | sed "s/^/$as_me: WARNING: /" >&2
1652 ;;
1653 esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 eval "$3=\$ac_header_compiler"
1660 fi
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 fi
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666
1667 } # ac_fn_c_check_header_mongrel
1668
1669 # ac_fn_c_try_run LINENO
1670 # ----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672 # that executables *can* be run.
1673 ac_fn_c_try_run ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=$ac_status
1704 fi
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709 } # ac_fn_c_try_run
1710
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 fi
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739
1740 } # ac_fn_c_check_header_compile
1741
1742 # ac_fn_cxx_try_compile LINENO
1743 # ----------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_cxx_try_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext
1749 if { { ac_try="$ac_compile"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_cxx_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.$ac_objext; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1777
1778 } # ac_fn_cxx_try_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 $as_test_x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 return $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_cxx_try_cpp LINENO
1894 # ------------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_cpp ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev/null && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924 fi
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1927
1928 } # ac_fn_cxx_try_cpp
1929
1930 # ac_fn_cxx_try_link LINENO
1931 # -------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_link ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 $as_test_x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965 fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 return $ac_retval
1973
1974 } # ac_fn_cxx_try_link
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1978
1979 It was created by Cilk Runtime Library $as_me 2.0, which was
1980 generated by GNU Autoconf 2.64. Invocation command line was
1981
1982 $ $0 $@
1983
1984 _ACEOF
1985 exec 5>>config.log
1986 {
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1991
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
2009 _ASUNAME
2010
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2019
2020 } >&5
2021
2022 cat >&5 <<_ACEOF
2023
2024
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2028
2029 _ACEOF
2030
2031
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2042 do
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 2)
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2068 ;;
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2071 fi
2072 as_fn_append ac_configure_args " '$ac_arg'"
2073 ;;
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2079
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2087 {
2088 echo
2089
2090 cat <<\_ASBOX
2091 ## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##
2094 _ASBOX
2095 echo
2096 # The following way of writing the cache mishandles newlines in values,
2097 (
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in #(
2101 *${as_nl}*)
2102 case $ac_var in #(
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 esac
2106 case $ac_var in #(
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2110 esac ;;
2111 esac
2112 done
2113 (set) 2>&1 |
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2116 sed -n \
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 ;; #(
2120 *)
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 ;;
2123 esac |
2124 sort
2125 )
2126 echo
2127
2128 cat <<\_ASBOX
2129 ## ----------------- ##
2130 ## Output variables. ##
2131 ## ----------------- ##
2132 _ASBOX
2133 echo
2134 for ac_var in $ac_subst_vars
2135 do
2136 eval ac_val=\$$ac_var
2137 case $ac_val in
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 esac
2140 $as_echo "$ac_var='\''$ac_val'\''"
2141 done | sort
2142 echo
2143
2144 if test -n "$ac_subst_files"; then
2145 cat <<\_ASBOX
2146 ## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##
2149 _ASBOX
2150 echo
2151 for ac_var in $ac_subst_files
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160 fi
2161
2162 if test -s confdefs.h; then
2163 cat <<\_ASBOX
2164 ## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##
2167 _ASBOX
2168 echo
2169 cat confdefs.h
2170 echo
2171 fi
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2175 } >&5
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 $as_echo "/* confdefs.h */" > confdefs.h
2189
2190 # Predefined preprocessor variables.
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_file1=$CONFIG_SITE
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_file1=$prefix/share/config.site
2225 ac_site_file2=$prefix/etc/config.site
2226 else
2227 ac_site_file1=$ac_default_prefix/share/config.site
2228 ac_site_file2=$ac_default_prefix/etc/config.site
2229 fi
2230 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2231 do
2232 test "x$ac_site_file" = xNONE && continue
2233 if test -r "$ac_site_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2235 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2236 sed 's/^/| /' "$ac_site_file" >&5
2237 . "$ac_site_file"
2238 fi
2239 done
2240
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special
2243 # files actually), so we avoid doing that.
2244 if test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2251 fi
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2256 fi
2257
2258 # Check that the precious variables saved in the cache have kept the same
2259 # value.
2260 ac_cache_corrupted=false
2261 for ac_var in $ac_precious_vars; do
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2267 set,)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,set)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,);;
2276 *)
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x $ac_old_val`
2280 ac_new_val_w=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted=:
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 fi;;
2295 esac
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2298 case $ac_new_val in
2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2301 esac
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305 esac
2306 fi
2307 done
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2314 fi
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2318
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
2325
2326
2327
2328
2329
2330
2331 # Needed to define ${target}. Needs to be very early to avoid annoying
2332 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2339 break 2
2340 fi
2341 done
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345 fi
2346
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354
2355
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2372
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2379 esac
2380 build=$ac_cv_build
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_build
2383 shift
2384 build_cpu=$1
2385 build_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 build_os=$*
2390 IFS=$ac_save_IFS
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2392
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2404 fi
2405
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2437 fi
2438
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2466
2467 target_alias=${target_alias-$host_alias}
2468
2469
2470 am__api_version='1.11'
2471
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502 /usr/ucb/* ) ;;
2503 *)
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2506 # by default.
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2513 :
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2517 :
2518 else
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2522 mkdir conftest.dir
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2527 then
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529 break 3
2530 fi
2531 fi
2532 fi
2533 done
2534 done
2535 ;;
2536 esac
2537
2538 done
2539 IFS=$as_save_IFS
2540
2541 rm -rf conftest.one conftest.two conftest.dir
2542
2543 fi
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2546 else
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2552 fi
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2556
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2573 '
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581 esac
2582
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2591 # -L didn't work.
2592 set X `ls -t "$srcdir/configure" conftest.file`
2593 fi
2594 rm -f conftest.file
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2597
2598 # If neither matched, then we have a broken ls. This can happen
2599 # if, for instance, CONFIG_SHELL is bash and it inherits a
2600 # broken ls alias from the environment. This has actually
2601 # happened. Such a system could not be considered "sane".
2602 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2604 fi
2605
2606 test "$2" = conftest.file
2607 )
2608 then
2609 # Ok.
2610 :
2611 else
2612 as_fn_error "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 *)
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640 am_missing_run="$MISSING --run "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 *)
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2654 fi
2655
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'. However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2748 fi
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if test "${ac_cv_path_mkdir+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784 if test "${ac_cv_path_mkdir+set}" = set; then
2785 MKDIR_P="$ac_cv_path_mkdir -p"
2786 else
2787 # As a last resort, use the slow shell script. Don't cache a
2788 # value for MKDIR_P within a source directory, because that will
2789 # break other packages using the cache if that directory is
2790 # removed, or if the value is a relative name.
2791 test -d ./--version && rmdir ./--version
2792 MKDIR_P="$ac_install_sh -d"
2793 fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800 [\\/$]* | ?:[\\/]*) ;;
2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2803
2804 for ac_prog in gawk mawk nawk awk
2805 do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_AWK="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 test -n "$AWK" && break
2844 done
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856 @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 *@@@%%%=?*=@@@%%%*)
2861 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 *)
2863 eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2866 fi
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 SET_MAKE=
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 SET_MAKE="MAKE=${MAKE-make}"
2875 fi
2876
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880 am__leading_dot=.
2881 else
2882 am__leading_dot=_
2883 fi
2884 rmdir .tst 2>/dev/null
2885
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888 # is not polluted with repeated "-I."
2889 am__isrc=' -I$(srcdir)'
2890 # test to see if srcdir already configured
2891 if test -f $srcdir/config.status; then
2892 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2893 fi
2894 fi
2895
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898 if (cygpath --version) >/dev/null 2>/dev/null; then
2899 CYGPATH_W='cygpath -w'
2900 else
2901 CYGPATH_W=echo
2902 fi
2903 fi
2904
2905
2906 # Define the identity of the package.
2907 PACKAGE='cilk-runtime-library'
2908 VERSION='2.0'
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2919
2920 # Some tools Automake needs.
2921
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936 # We need awk for the "check" target. The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility. Yes, it's still used
2939 # in the wild :-( We should find a proper way to deprecate it ...
2940 AMTAR='$${TAR-tar}'
2941
2942 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2943
2944
2945
2946
2947
2948
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2951 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2952 # Check whether --enable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2955 else
2956 USE_MAINTAINER_MODE=no
2957 fi
2958
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2960 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2961 if test $USE_MAINTAINER_MODE = yes; then
2962 MAINTAINER_MODE_TRUE=
2963 MAINTAINER_MODE_FALSE='#'
2964 else
2965 MAINTAINER_MODE_TRUE='#'
2966 MAINTAINER_MODE_FALSE=
2967 fi
2968
2969 MAINT=$MAINTAINER_MODE_TRUE
2970
2971
2972
2973 # Default to --enable-multilib
2974 # Check whether --enable-multilib was given.
2975 if test "${enable_multilib+set}" = set; then :
2976 enableval=$enable_multilib; case "$enableval" in
2977 yes) multilib=yes ;;
2978 no) multilib=no ;;
2979 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2980 esac
2981 else
2982 multilib=yes
2983 fi
2984
2985
2986 # We may get other options which we leave undocumented:
2987 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2988 # See config-ml.in if you want the gory details.
2989
2990 if test "$srcdir" = "."; then
2991 if test "$with_target_subdir" != "."; then
2992 multi_basedir="$srcdir/$with_multisrctop../.."
2993 else
2994 multi_basedir="$srcdir/$with_multisrctop.."
2995 fi
2996 else
2997 multi_basedir="$srcdir/.."
2998 fi
2999
3000
3001 # Even if the default multilib is not a cross compilation,
3002 # it may be that some of the other multilibs are.
3003 if test $cross_compiling = no && test $multilib = yes \
3004 && test "x${with_multisubdir}" != x ; then
3005 cross_compiling=maybe
3006 fi
3007
3008 ac_config_commands="$ac_config_commands default-1"
3009
3010
3011 # Test for GNU extensions. Will define _GNU_SOURCE if they're available
3012 DEPDIR="${am__leading_dot}deps"
3013
3014 ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3022 END
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from `make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037 ;;
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3047 ;;
3048 esac
3049 fi
3050
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3055
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3059 fi
3060
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3065 fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3072 fi
3073
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 else
3169 CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 fi
3212 fi
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312 fi
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355 done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3367 fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details." "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 rm -f conftest.er1 conftest.err
3398 fi
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480 ac_file=''
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3483 $as_echo "$ac_file" >&6; }
3484 if test -z "$ac_file"; then :
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 { as_fn_set_status 77
3491 as_fn_error "C compiler cannot create executables
3492 See \`config.log' for more details." "$LINENO" 5; }; }
3493 fi
3494 ac_exeext=$ac_cv_exeext
3495
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 # If not cross compiling, check that we can run a simple program.
3501 if test "$cross_compiling" != yes; then
3502 if { ac_try='./$ac_file'
3503 { { case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_try") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; }; then
3513 cross_compiling=no
3514 else
3515 if test "$cross_compiling" = maybe; then
3516 cross_compiling=yes
3517 else
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." "$LINENO" 5; }
3523 fi
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3528
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 # `rm'.
3555 for ac_file in conftest.exe conftest conftest.*; do
3556 test -f "$ac_file" || continue
3557 case $ac_file in
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 break;;
3561 * ) break;;
3562 esac
3563 done
3564 else
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error "cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details." "$LINENO" 5; }
3569 fi
3570 rm -f conftest$ac_cv_exeext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3572 $as_echo "$ac_cv_exeext" >&6; }
3573
3574 rm -f conftest.$ac_ext
3575 EXEEXT=$ac_cv_exeext
3576 ac_exeext=$EXEEXT
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578 $as_echo_n "checking for suffix of object files... " >&6; }
3579 if test "${ac_cv_objext+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.o conftest.obj
3594 if { { ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compile") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 for ac_file in conftest.o conftest.obj conftest.*; do
3606 test -f "$ac_file" || continue;
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610 break;;
3611 esac
3612 done
3613 else
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of object files: cannot compile
3620 See \`config.log' for more details." "$LINENO" 5; }
3621 fi
3622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625 $as_echo "$ac_cv_objext" >&6; }
3626 OBJEXT=$ac_cv_objext
3627 ac_objext=$OBJEXT
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639 #ifndef __GNUC__
3640 choke me
3641 #endif
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_compiler_gnu=yes
3649 else
3650 ac_compiler_gnu=no
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3654
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3659 GCC=yes
3660 else
3661 GCC=
3662 fi
3663 ac_test_CFLAGS=${CFLAGS+set}
3664 ac_save_CFLAGS=$CFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3667 if test "${ac_cv_prog_cc_g+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_save_c_werror_flag=$ac_c_werror_flag
3671 ac_c_werror_flag=yes
3672 ac_cv_prog_cc_g=no
3673 CFLAGS="-g"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 int
3678 main ()
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_g=yes
3687 else
3688 CFLAGS=""
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 int
3693 main ()
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701
3702 else
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729 CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731 if test "$GCC" = yes; then
3732 CFLAGS="-g -O2"
3733 else
3734 CFLAGS="-g"
3735 fi
3736 else
3737 if test "$GCC" = yes; then
3738 CFLAGS="-O2"
3739 else
3740 CFLAGS=
3741 fi
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 ac_cv_prog_cc_c89=no
3749 ac_save_CC=$CC
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752 #include <stdarg.h>
3753 #include <stdio.h>
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3760 char **p;
3761 int i;
3762 {
3763 return p[i];
3764 }
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3766 {
3767 char *s;
3768 va_list v;
3769 va_start (v,p);
3770 s = g (p, va_arg (v,int));
3771 va_end (v);
3772 return s;
3773 }
3774
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3783
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3786 #define FOO(x) 'x'
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3788
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793 int argc;
3794 char **argv;
3795 int
3796 main ()
3797 {
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 do
3806 CC="$ac_save_CC $ac_arg"
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_c89=$ac_arg
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext
3811 test "x$ac_cv_prog_cc_c89" != "xno" && break
3812 done
3813 rm -f conftest.$ac_ext
3814 CC=$ac_save_CC
3815
3816 fi
3817 # AC_CACHE_VAL
3818 case "x$ac_cv_prog_cc_c89" in
3819 x)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 $as_echo "none needed" >&6; } ;;
3822 xno)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824 $as_echo "unsupported" >&6; } ;;
3825 *)
3826 CC="$CC $ac_cv_prog_cc_c89"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829 esac
3830 if test "x$ac_cv_prog_cc_c89" != xno; then :
3831
3832 fi
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 depcc="$CC" am_compiler_list=
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D' -- because `-MD' means `put the output
3852 # in D'.
3853 rm -rf conftest.dir
3854 mkdir conftest.dir
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3858 cd conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3864 # directory.
3865 mkdir sub
3866
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870 fi
3871 am__universal=false
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874 esac
3875
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3880 #
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3884 : > sub/conftest.c
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888 # Solaris 8's {/usr,}/bin/sh.
3889 touch sub/conftst$i.h
3890 done
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892
3893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle `-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs
3897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
3899 case $depmode in
3900 gcc)
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3903 ;;
3904 nosideeffect)
3905 # after this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested
3907 if test "x$enable_dependency_tracking" = xyes; then
3908 continue
3909 else
3910 break
3911 fi
3912 ;;
3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914 # This compiler won't grok `-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3918 am__minus_obj=
3919 ;;
3920 none) break ;;
3921 esac
3922 if depmode=$depmode \
3923 source=sub/conftest.c object=$am__obj \
3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926 >/dev/null 2>conftest.err &&
3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type=$depmode
3941 break
3942 fi
3943 fi
3944 done
3945
3946 cd ..
3947 rm -rf conftest.dir
3948 else
3949 am_cv_CC_dependencies_compiler_type=none
3950 fi
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957 if
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960 am__fastdepCC_TRUE=
3961 am__fastdepCC_FALSE='#'
3962 else
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3965 fi
3966
3967
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3978 CPP=
3979 fi
3980 if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 # Double quotes because CPP needs to be expanded
3985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3986 do
3987 ac_preproc_ok=false
3988 for ac_c_preproc_warn_flag in '' yes
3989 do
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #ifdef __STDC__
3999 # include <limits.h>
4000 #else
4001 # include <assert.h>
4002 #endif
4003 Syntax error
4004 _ACEOF
4005 if ac_fn_c_try_cpp "$LINENO"; then :
4006
4007 else
4008 # Broken: fails on valid input.
4009 continue
4010 fi
4011 rm -f conftest.err conftest.$ac_ext
4012
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <ac_nonexistent.h>
4018 _ACEOF
4019 if ac_fn_c_try_cpp "$LINENO"; then :
4020 # Broken: success on invalid input.
4021 continue
4022 else
4023 # Passes both tests.
4024 ac_preproc_ok=:
4025 break
4026 fi
4027 rm -f conftest.err conftest.$ac_ext
4028
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then :
4033 break
4034 fi
4035
4036 done
4037 ac_cv_prog_CPP=$CPP
4038
4039 fi
4040 CPP=$ac_cv_prog_CPP
4041 else
4042 ac_cv_prog_CPP=$CPP
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4045 $as_echo "$CPP" >&6; }
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4062 Syntax error
4063 _ACEOF
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4065
4066 else
4067 # Broken: fails on valid input.
4068 continue
4069 fi
4070 rm -f conftest.err conftest.$ac_ext
4071
4072 # OK, works on sane cases. Now check whether nonexistent headers
4073 # can be detected and how.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <ac_nonexistent.h>
4077 _ACEOF
4078 if ac_fn_c_try_cpp "$LINENO"; then :
4079 # Broken: success on invalid input.
4080 continue
4081 else
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086 rm -f conftest.err conftest.$ac_ext
4087
4088 done
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then :
4092
4093 else
4094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." "$LINENO" 5; }
4098 fi
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4109 if test "${ac_cv_path_GREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -z "$GREP"; then
4113 ac_path_GREP_found=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_prog in grep ggrep; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4124 # Check for GNU ac_path_GREP and select it if it is found.
4125 # Check for GNU $ac_path_GREP
4126 case `"$ac_path_GREP" --version 2>&1` in
4127 *GNU*)
4128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4129 *)
4130 ac_count=0
4131 $as_echo_n 0123456789 >"conftest.in"
4132 while :
4133 do
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
4137 $as_echo 'GREP' >> "conftest.nl"
4138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140 as_fn_arith $ac_count + 1 && ac_count=$as_val
4141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_GREP="$ac_path_GREP"
4144 ac_path_GREP_max=$ac_count
4145 fi
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4148 done
4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 esac
4151
4152 $ac_path_GREP_found && break 3
4153 done
4154 done
4155 done
4156 IFS=$as_save_IFS
4157 if test -z "$ac_cv_path_GREP"; then
4158 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159 fi
4160 else
4161 ac_cv_path_GREP=$GREP
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4166 $as_echo "$ac_cv_path_GREP" >&6; }
4167 GREP="$ac_cv_path_GREP"
4168
4169
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4171 $as_echo_n "checking for egrep... " >&6; }
4172 if test "${ac_cv_path_EGREP+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176 then ac_cv_path_EGREP="$GREP -E"
4177 else
4178 if test -z "$EGREP"; then
4179 ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in egrep; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196 ac_count=0
4197 $as_echo_n 0123456789 >"conftest.in"
4198 while :
4199 do
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 $as_echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP="$ac_path_EGREP"
4210 ac_path_EGREP_max=$ac_count
4211 fi
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4214 done
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218 $ac_path_EGREP_found && break 3
4219 done
4220 done
4221 done
4222 IFS=$as_save_IFS
4223 if test -z "$ac_cv_path_EGREP"; then
4224 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4225 fi
4226 else
4227 ac_cv_path_EGREP=$EGREP
4228 fi
4229
4230 fi
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4233 $as_echo "$ac_cv_path_EGREP" >&6; }
4234 EGREP="$ac_cv_path_EGREP"
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4238 $as_echo_n "checking for ANSI C header files... " >&6; }
4239 if test "${ac_cv_header_stdc+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <stdlib.h>
4245 #include <stdarg.h>
4246 #include <string.h>
4247 #include <float.h>
4248
4249 int
4250 main ()
4251 {
4252
4253 ;
4254 return 0;
4255 }
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_header_stdc=yes
4259 else
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263
4264 if test $ac_cv_header_stdc = yes; then
4265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <string.h>
4269
4270 _ACEOF
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "memchr" >/dev/null 2>&1; then :
4273
4274 else
4275 ac_cv_header_stdc=no
4276 fi
4277 rm -f conftest*
4278
4279 fi
4280
4281 if test $ac_cv_header_stdc = yes; then
4282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <stdlib.h>
4286
4287 _ACEOF
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "free" >/dev/null 2>&1; then :
4290
4291 else
4292 ac_cv_header_stdc=no
4293 fi
4294 rm -f conftest*
4295
4296 fi
4297
4298 if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then :
4301 :
4302 else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ctype.h>
4306 #include <stdlib.h>
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310 #else
4311 # define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
4313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316 #endif
4317
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319 int
4320 main ()
4321 {
4322 int i;
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4326 return 2;
4327 return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_run "$LINENO"; then :
4331
4332 else
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4336 conftest.$ac_objext conftest.beam conftest.$ac_ext
4337 fi
4338
4339 fi
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4342 $as_echo "$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4344
4345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4346
4347 fi
4348
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4351 inttypes.h stdint.h unistd.h
4352 do :
4353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4355 "
4356 eval as_val=\$$as_ac_Header
4357 if test "x$as_val" = x""yes; then :
4358 cat >>confdefs.h <<_ACEOF
4359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 _ACEOF
4361
4362 fi
4363
4364 done
4365
4366
4367
4368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4370 MINIX=yes
4371 else
4372 MINIX=
4373 fi
4374
4375
4376 if test "$MINIX" = yes; then
4377
4378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4379
4380
4381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4382
4383
4384 $as_echo "#define _MINIX 1" >>confdefs.h
4385
4386 fi
4387
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 # define __EXTENSIONS__ 1
4398 $ac_includes_default
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_safe_to_define___extensions__=yes
4409 else
4410 ac_cv_safe_to_define___extensions__=no
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4416 test $ac_cv_safe_to_define___extensions__ = yes &&
4417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4418
4419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4420
4421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4422
4423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4424
4425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4426
4427
4428
4429 # Build a DLL on Windows
4430 # AC_LIBTOOL_WIN32_DLL
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_CC+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 CC=$ac_cv_prog_CC
4465 if test -n "$CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4467 $as_echo "$CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 fi
4475 if test -z "$ac_cv_prog_CC"; then
4476 ac_ct_CC=$CC
4477 # Extract the first word of "gcc", so it can be a program name with args.
4478 set dummy gcc; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$ac_ct_CC"; then
4485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494 ac_cv_prog_ac_ct_CC="gcc"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 fi
4503 fi
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4507 $as_echo "$ac_ct_CC" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513 if test "x$ac_ct_CC" = x; then
4514 CC=""
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517 yes:)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520 ac_tool_warned=yes ;;
4521 esac
4522 CC=$ac_ct_CC
4523 fi
4524 else
4525 CC="$ac_cv_prog_CC"
4526 fi
4527
4528 if test -z "$CC"; then
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531 set dummy ${ac_tool_prefix}cc; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_CC="${ac_tool_prefix}cc"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4554
4555 fi
4556 fi
4557 CC=$ac_cv_prog_CC
4558 if test -n "$CC"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560 $as_echo "$CC" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4565
4566
4567 fi
4568 fi
4569 if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_CC+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4579 else
4580 ac_prog_rejected=no
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_CC="cc"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611 fi
4612 fi
4613 fi
4614 CC=$ac_cv_prog_CC
4615 if test -n "$CC"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617 $as_echo "$CC" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623
4624 fi
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in cl.exe
4628 do
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 CC=$ac_cv_prog_CC
4657 if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659 $as_echo "$CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666 test -n "$CC" && break
4667 done
4668 fi
4669 if test -z "$CC"; then
4670 ac_ct_CC=$CC
4671 for ac_prog in cl.exe
4672 do
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CC="$ac_prog"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 $as_echo "$ac_ct_CC" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710 test -n "$ac_ct_CC" && break
4711 done
4712
4713 if test "x$ac_ct_CC" = x; then
4714 CC=""
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722 CC=$ac_ct_CC
4723 fi
4724 fi
4725
4726 fi
4727
4728
4729 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4731 as_fn_error "no acceptable C compiler found in \$PATH
4732 See \`config.log' for more details." "$LINENO" 5; }
4733
4734 # Provide some information about the compiler.
4735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4736 set X $ac_compile
4737 ac_compiler=$2
4738 for ac_option in --version -v -V -qversion; do
4739 { { ac_try="$ac_compiler $ac_option >&5"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747 ac_status=$?
4748 if test -s conftest.err; then
4749 sed '10a\
4750 ... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
4753 rm -f conftest.er1 conftest.err
4754 fi
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757 done
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4761 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766
4767 int
4768 main ()
4769 {
4770 #ifndef __GNUC__
4771 choke me
4772 #endif
4773
4774 ;
4775 return 0;
4776 }
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_compiler_gnu=yes
4780 else
4781 ac_compiler_gnu=no
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4789 if test $ac_compiler_gnu = yes; then
4790 GCC=yes
4791 else
4792 GCC=
4793 fi
4794 ac_test_CFLAGS=${CFLAGS+set}
4795 ac_save_CFLAGS=$CFLAGS
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4798 if test "${ac_cv_prog_cc_g+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 ac_save_c_werror_flag=$ac_c_werror_flag
4802 ac_c_werror_flag=yes
4803 ac_cv_prog_cc_g=no
4804 CFLAGS="-g"
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807
4808 int
4809 main ()
4810 {
4811
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_cv_prog_cc_g=yes
4818 else
4819 CFLAGS=""
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832
4833 else
4834 ac_c_werror_flag=$ac_save_c_werror_flag
4835 CFLAGS="-g"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838
4839 int
4840 main ()
4841 {
4842
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_prog_cc_g=yes
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4858 $as_echo "$ac_cv_prog_cc_g" >&6; }
4859 if test "$ac_test_CFLAGS" = set; then
4860 CFLAGS=$ac_save_CFLAGS
4861 elif test $ac_cv_prog_cc_g = yes; then
4862 if test "$GCC" = yes; then
4863 CFLAGS="-g -O2"
4864 else
4865 CFLAGS="-g"
4866 fi
4867 else
4868 if test "$GCC" = yes; then
4869 CFLAGS="-O2"
4870 else
4871 CFLAGS=
4872 fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4876 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 ac_cv_prog_cc_c89=no
4880 ac_save_CC=$CC
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <stdarg.h>
4884 #include <stdio.h>
4885 #include <sys/types.h>
4886 #include <sys/stat.h>
4887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888 struct buf { int x; };
4889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890 static char *e (p, i)
4891 char **p;
4892 int i;
4893 {
4894 return p[i];
4895 }
4896 static char *f (char * (*g) (char **, int), char **p, ...)
4897 {
4898 char *s;
4899 va_list v;
4900 va_start (v,p);
4901 s = g (p, va_arg (v,int));
4902 va_end (v);
4903 return s;
4904 }
4905
4906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
4909 as 'x'. The following induces an error, until -std is added to get
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
4912 that's true only with -std. */
4913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4914
4915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4916 inside strings and character constants. */
4917 #define FOO(x) 'x'
4918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4919
4920 int test (int i, double x);
4921 struct s1 {int (*f) (int a);};
4922 struct s2 {int (*f) (double a);};
4923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4924 int argc;
4925 char **argv;
4926 int
4927 main ()
4928 {
4929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4936 do
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_prog_cc_c89=$ac_arg
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext
4942 test "x$ac_cv_prog_cc_c89" != "xno" && break
4943 done
4944 rm -f conftest.$ac_ext
4945 CC=$ac_save_CC
4946
4947 fi
4948 # AC_CACHE_VAL
4949 case "x$ac_cv_prog_cc_c89" in
4950 x)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4952 $as_echo "none needed" >&6; } ;;
4953 xno)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4955 $as_echo "unsupported" >&6; } ;;
4956 *)
4957 CC="$CC $ac_cv_prog_cc_c89"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4960 esac
4961 if test "x$ac_cv_prog_cc_c89" != xno; then :
4962
4963 fi
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 depcc="$CC" am_compiler_list=
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4974 $as_echo_n "checking dependency style of $depcc... " >&6; }
4975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4979 # We make a subdir and do the tests there. Otherwise we can end up
4980 # making bogus files that we don't know about and never remove. For
4981 # instance it was reported that on HP-UX the gcc test will end up
4982 # making a dummy file named `D' -- because `-MD' means `put the output
4983 # in D'.
4984 rm -rf conftest.dir
4985 mkdir conftest.dir
4986 # Copy depcomp to subdir because otherwise we won't find it if we're
4987 # using a relative directory.
4988 cp "$am_depcomp" conftest.dir
4989 cd conftest.dir
4990 # We will build objects and dependencies in a subdirectory because
4991 # it helps to detect inapplicable dependency modes. For instance
4992 # both Tru64's cc and ICC support -MD to output dependencies as a
4993 # side effect of compilation, but ICC will put the dependencies in
4994 # the current directory while Tru64 will put them in the object
4995 # directory.
4996 mkdir sub
4997
4998 am_cv_CC_dependencies_compiler_type=none
4999 if test "$am_compiler_list" = ""; then
5000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5001 fi
5002 am__universal=false
5003 case " $depcc " in #(
5004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5005 esac
5006
5007 for depmode in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5011 #
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5015 : > sub/conftest.c
5016 for i in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019 # Solaris 8's {/usr,}/bin/sh.
5020 touch sub/conftst$i.h
5021 done
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5023
5024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle `-M -o', and we need to detect this. Also, some Intel
5027 # versions had trouble with output in subdirs
5028 am__obj=sub/conftest.${OBJEXT-o}
5029 am__minus_obj="-o $am__obj"
5030 case $depmode in
5031 gcc)
5032 # This depmode causes a compiler race in universal mode.
5033 test "$am__universal" = false || continue
5034 ;;
5035 nosideeffect)
5036 # after this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested
5038 if test "x$enable_dependency_tracking" = xyes; then
5039 continue
5040 else
5041 break
5042 fi
5043 ;;
5044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5045 # This compiler won't grok `-c -o', but also, the minuso test has
5046 # not run yet. These depmodes are late enough in the game, and
5047 # so weak that their functioning should not be impacted.
5048 am__obj=conftest.${OBJEXT-o}
5049 am__minus_obj=
5050 ;;
5051 none) break ;;
5052 esac
5053 if depmode=$depmode \
5054 source=sub/conftest.c object=$am__obj \
5055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5057 >/dev/null 2>conftest.err &&
5058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type=$depmode
5072 break
5073 fi
5074 fi
5075 done
5076
5077 cd ..
5078 rm -rf conftest.dir
5079 else
5080 am_cv_CC_dependencies_compiler_type=none
5081 fi
5082
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5087
5088 if
5089 test "x$enable_dependency_tracking" != xno \
5090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5091 am__fastdepCC_TRUE=
5092 am__fastdepCC_FALSE='#'
5093 else
5094 am__fastdepCC_TRUE='#'
5095 am__fastdepCC_FALSE=
5096 fi
5097
5098
5099 ac_ext=cpp
5100 ac_cpp='$CXXCPP $CPPFLAGS'
5101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5104 if test -z "$CXX"; then
5105 if test -n "$CCC"; then
5106 CXX=$CCC
5107 else
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 do
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$CXX"; then
5119 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 CXX=$ac_cv_prog_CXX
5139 if test -n "$CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5141 $as_echo "$CXX" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 test -n "$CXX" && break
5149 done
5150 fi
5151 if test -z "$CXX"; then
5152 ac_ct_CXX=$CXX
5153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5154 do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$ac_ct_CXX"; then
5163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_CXX="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5183 if test -n "$ac_ct_CXX"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5185 $as_echo "$ac_ct_CXX" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 test -n "$ac_ct_CXX" && break
5193 done
5194
5195 if test "x$ac_ct_CXX" = x; then
5196 CXX="g++"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 CXX=$ac_ct_CXX
5205 fi
5206 fi
5207
5208 fi
5209 fi
5210 # Provide some information about the compiler.
5211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5212 set X $ac_compile
5213 ac_compiler=$2
5214 for ac_option in --version -v -V -qversion; do
5215 { { ac_try="$ac_compiler $ac_option >&5"
5216 case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221 $as_echo "$ac_try_echo"; } >&5
5222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5223 ac_status=$?
5224 if test -s conftest.err; then
5225 sed '10a\
5226 ... rest of stderr output deleted ...
5227 10q' conftest.err >conftest.er1
5228 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5230 fi
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; }
5233 done
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5236 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5237 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242
5243 int
5244 main ()
5245 {
5246 #ifndef __GNUC__
5247 choke me
5248 #endif
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5255 ac_compiler_gnu=yes
5256 else
5257 ac_compiler_gnu=no
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5261
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5264 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5265 if test $ac_compiler_gnu = yes; then
5266 GXX=yes
5267 else
5268 GXX=
5269 fi
5270 ac_test_CXXFLAGS=${CXXFLAGS+set}
5271 ac_save_CXXFLAGS=$CXXFLAGS
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5273 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5274 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5278 ac_cxx_werror_flag=yes
5279 ac_cv_prog_cxx_g=no
5280 CXXFLAGS="-g"
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283
5284 int
5285 main ()
5286 {
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_cxx_try_compile "$LINENO"; then :
5293 ac_cv_prog_cxx_g=yes
5294 else
5295 CXXFLAGS=""
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298
5299 int
5300 main ()
5301 {
5302
5303 ;
5304 return 0;
5305 }
5306 _ACEOF
5307 if ac_fn_cxx_try_compile "$LINENO"; then :
5308
5309 else
5310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5311 CXXFLAGS="-g"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314
5315 int
5316 main ()
5317 {
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5334 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5335 if test "$ac_test_CXXFLAGS" = set; then
5336 CXXFLAGS=$ac_save_CXXFLAGS
5337 elif test $ac_cv_prog_cxx_g = yes; then
5338 if test "$GXX" = yes; then
5339 CXXFLAGS="-g -O2"
5340 else
5341 CXXFLAGS="-g"
5342 fi
5343 else
5344 if test "$GXX" = yes; then
5345 CXXFLAGS="-O2"
5346 else
5347 CXXFLAGS=
5348 fi
5349 fi
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356 depcc="$CXX" am_compiler_list=
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named `D' -- because `-MD' means `put the output
5368 # in D'.
5369 rm -rf conftest.dir
5370 mkdir conftest.dir
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5374 cd conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5380 # directory.
5381 mkdir sub
5382
5383 am_cv_CXX_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386 fi
5387 am__universal=false
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390 esac
5391
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5396 #
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5400 : > sub/conftest.c
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404 # Solaris 8's {/usr,}/bin/sh.
5405 touch sub/conftst$i.h
5406 done
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle `-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs
5413 am__obj=sub/conftest.${OBJEXT-o}
5414 am__minus_obj="-o $am__obj"
5415 case $depmode in
5416 gcc)
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false || continue
5419 ;;
5420 nosideeffect)
5421 # after this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested
5423 if test "x$enable_dependency_tracking" = xyes; then
5424 continue
5425 else
5426 break
5427 fi
5428 ;;
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430 # This compiler won't grok `-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj=conftest.${OBJEXT-o}
5434 am__minus_obj=
5435 ;;
5436 none) break ;;
5437 esac
5438 if depmode=$depmode \
5439 source=sub/conftest.c object=$am__obj \
5440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442 >/dev/null 2>conftest.err &&
5443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456 am_cv_CXX_dependencies_compiler_type=$depmode
5457 break
5458 fi
5459 fi
5460 done
5461
5462 cd ..
5463 rm -rf conftest.dir
5464 else
5465 am_cv_CXX_dependencies_compiler_type=none
5466 fi
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5471 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5472
5473 if
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5476 am__fastdepCXX_TRUE=
5477 am__fastdepCXX_FALSE='#'
5478 else
5479 am__fastdepCXX_TRUE='#'
5480 am__fastdepCXX_FALSE=
5481 fi
5482
5483
5484 # AC_PROG_LIBTOOL
5485 # AC_CONFIG_MACRO_DIR([..])
5486 ac_config_files="$ac_config_files Makefile libcilkrts.spec"
5487
5488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489 # for constant arguments. Useless!
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5491 $as_echo_n "checking for working alloca.h... " >&6; }
5492 if test "${ac_cv_working_alloca_h+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <alloca.h>
5498 int
5499 main ()
5500 {
5501 char *p = (char *) alloca (2 * sizeof (int));
5502 if (p) return 0;
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 if ac_fn_c_try_link "$LINENO"; then :
5508 ac_cv_working_alloca_h=yes
5509 else
5510 ac_cv_working_alloca_h=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5516 $as_echo "$ac_cv_working_alloca_h" >&6; }
5517 if test $ac_cv_working_alloca_h = yes; then
5518
5519 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5520
5521 fi
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5524 $as_echo_n "checking for alloca... " >&6; }
5525 if test "${ac_cv_func_alloca_works+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #ifdef __GNUC__
5531 # define alloca __builtin_alloca
5532 #else
5533 # ifdef _MSC_VER
5534 # include <malloc.h>
5535 # define alloca _alloca
5536 # else
5537 # ifdef HAVE_ALLOCA_H
5538 # include <alloca.h>
5539 # else
5540 # ifdef _AIX
5541 #pragma alloca
5542 # else
5543 # ifndef alloca /* predefined by HP cc +Olibcalls */
5544 char *alloca ();
5545 # endif
5546 # endif
5547 # endif
5548 # endif
5549 #endif
5550
5551 int
5552 main ()
5553 {
5554 char *p = (char *) alloca (1);
5555 if (p) return 0;
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_func_alloca_works=yes
5562 else
5563 ac_cv_func_alloca_works=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5569 $as_echo "$ac_cv_func_alloca_works" >&6; }
5570
5571 if test $ac_cv_func_alloca_works = yes; then
5572
5573 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5574
5575 else
5576 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5577 # that cause trouble. Some versions do not even contain alloca or
5578 # contain a buggy version. If you still want to use their alloca,
5579 # use ar to extract alloca.o from them instead of compiling alloca.c.
5580
5581 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5582
5583 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5587 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5588 if test "${ac_cv_os_cray+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #if defined CRAY && ! defined CRAY2
5594 webecray
5595 #else
5596 wenotbecray
5597 #endif
5598
5599 _ACEOF
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 $EGREP "webecray" >/dev/null 2>&1; then :
5602 ac_cv_os_cray=yes
5603 else
5604 ac_cv_os_cray=no
5605 fi
5606 rm -f conftest*
5607
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5610 $as_echo "$ac_cv_os_cray" >&6; }
5611 if test $ac_cv_os_cray = yes; then
5612 for ac_func in _getb67 GETB67 getb67; do
5613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5615 eval as_val=\$$as_ac_var
5616 if test "x$as_val" = x""yes; then :
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define CRAY_STACKSEG_END $ac_func
5620 _ACEOF
5621
5622 break
5623 fi
5624
5625 done
5626 fi
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5629 $as_echo_n "checking stack direction for C alloca... " >&6; }
5630 if test "${ac_cv_c_stack_direction+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test "$cross_compiling" = yes; then :
5634 ac_cv_c_stack_direction=0
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 $ac_includes_default
5639 int
5640 find_stack_direction ()
5641 {
5642 static char *addr = 0;
5643 auto char dummy;
5644 if (addr == 0)
5645 {
5646 addr = &dummy;
5647 return find_stack_direction ();
5648 }
5649 else
5650 return (&dummy > addr) ? 1 : -1;
5651 }
5652
5653 int
5654 main ()
5655 {
5656 return find_stack_direction () < 0;
5657 }
5658 _ACEOF
5659 if ac_fn_c_try_run "$LINENO"; then :
5660 ac_cv_c_stack_direction=1
5661 else
5662 ac_cv_c_stack_direction=-1
5663 fi
5664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5665 conftest.$ac_objext conftest.beam conftest.$ac_ext
5666 fi
5667
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5670 $as_echo "$ac_cv_c_stack_direction" >&6; }
5671 cat >>confdefs.h <<_ACEOF
5672 #define STACK_DIRECTION $ac_cv_c_stack_direction
5673 _ACEOF
5674
5675
5676 fi
5677
5678
5679 # Check for dl functions
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
5681 $as_echo_n "checking for dladdr in -ldl... " >&6; }
5682 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_check_lib_save_LIBS=$LIBS
5686 LIBS="-ldl $LIBS"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5693 #ifdef __cplusplus
5694 extern "C"
5695 #endif
5696 char dladdr ();
5697 int
5698 main ()
5699 {
5700 return dladdr ();
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 ac_cv_lib_dl_dladdr=yes
5707 else
5708 ac_cv_lib_dl_dladdr=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
5715 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
5716 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
5717
5718 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
5719
5720 fi
5721
5722
5723 # Check whether the target supports protected visibility.
5724 save_CFLAGS="$CFLAGS"
5725 CFLAGS="$CFLAGS -Werror"
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 void __attribute__((visibility("protected"))) foo(void) { }
5729 int
5730 main ()
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 libcilkrts_cv_have_attribute_visibility=yes
5739 else
5740 libcilkrts_cv_have_attribute_visibility=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 CFLAGS="$save_CFLAGS"
5744 if test $libcilkrts_cv_have_attribute_visibility = yes; then
5745
5746 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
5747
5748 fi
5749
5750 # Get target configury.
5751 . ${srcdir}/configure.tgt
5752 if test -n "$UNSUPPORTED"; then
5753 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
5754 fi
5755
5756 if test "${multilib}" = "yes"; then
5757 multilib_arg="--enable-multilib"
5758 else
5759 multilib_arg=
5760 fi
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5763 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5764 # Check whether --enable-version-specific-runtime-libs was given.
5765 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5766 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5767 yes) enable_version_specific_runtime_libs=yes ;;
5768 no) enable_version_specific_runtime_libs=no ;;
5769 *) as_fn_error "Unknown argument to enable/disable version-specific libs
5770 " "$LINENO" 5;;
5771 esac
5772 else
5773 enable_version_specific_runtime_libs=no
5774 fi
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5777 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5778
5779
5780 # Calculate toolexeclibdir
5781 # Also toolexecdir, though it's only used in toolexeclibdir
5782 case ${enable_version_specific_runtime_libs} in
5783 yes)
5784 # Need the gcc compiler version to know where to install libraries
5785 # and header files if --enable-version-specific-runtime-libs option
5786 # is selected.
5787 toolexecdir='$(libdir)/gcc/$(target_alias)'
5788 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5789 ;;
5790 no)
5791 if test -n "$with_cross_host" &&
5792 test x"$with_cross_host" != x"no"; then
5793 # Install a library built with a cross compiler in tooldir, not libdir.
5794 toolexecdir='$(exec_prefix)/$(target_alias)'
5795 toolexeclibdir='$(toolexecdir)/lib'
5796 else
5797 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5798 toolexeclibdir='$(libdir)'
5799 fi
5800 multi_os_directory=`$CC -print-multi-os-directory`
5801 case $multi_os_directory in
5802 .) ;; # Avoid trailing /.
5803 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5804 esac
5805 ;;
5806 esac
5807
5808 # Set config_dir based on the target. config_dir specifies where to get
5809 # target-specific files. The generic implementation is incomplete, but
5810 # contains information on what's needed
5811 case "${target}" in
5812
5813 i?86-*-* | x86_64-*-*)
5814 config_dir="x86"
5815 ;;
5816
5817 arm-*-*)
5818 config_dir="arm"
5819 ;;
5820
5821 sparc*-*-*)
5822 config_dir="sparc"
5823 ;;
5824
5825 *)
5826 config_dir="generic"
5827 ;;
5828
5829 esac
5830
5831
5832 # We have linker scripts for appropriate operating systems
5833 linux_linker_script=no
5834 case "${host}" in
5835 *-*-linux*)
5836 linux_linker_script=yes
5837 ;;
5838 esac
5839 if test "$linux_linker_script" = "yes"; then
5840 LINUX_LINKER_SCRIPT_TRUE=
5841 LINUX_LINKER_SCRIPT_FALSE='#'
5842 else
5843 LINUX_LINKER_SCRIPT_TRUE='#'
5844 LINUX_LINKER_SCRIPT_FALSE=
5845 fi
5846
5847
5848 mac_linker_script=no
5849 case "${host}" in
5850 *-*-apple*)
5851 mac_linker_script=yes
5852 ;;
5853 esac
5854 if test "$mac_linker_script" = "yes"; then
5855 MAC_LINKER_SCRIPT_TRUE=
5856 MAC_LINKER_SCRIPT_FALSE='#'
5857 else
5858 MAC_LINKER_SCRIPT_TRUE='#'
5859 MAC_LINKER_SCRIPT_FALSE=
5860 fi
5861
5862
5863 enable_dlopen=yes
5864
5865
5866
5867 case `pwd` in
5868 *\ * | *\ *)
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5870 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5871 esac
5872
5873
5874
5875 macro_version='2.2.7a'
5876 macro_revision='1.3134'
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890 ltmain="$ac_aux_dir/ltmain.sh"
5891
5892 # Backslashify metacharacters that are still active within
5893 # double-quoted strings.
5894 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5895
5896 # Same as above, but do not quote variable references.
5897 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5898
5899 # Sed substitution to delay expansion of an escaped shell variable in a
5900 # double_quote_subst'ed string.
5901 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5902
5903 # Sed substitution to delay expansion of an escaped single quote.
5904 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5905
5906 # Sed substitution to avoid accidental globbing in evaled expressions
5907 no_glob_subst='s/\*/\\\*/g'
5908
5909 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5914 $as_echo_n "checking how to print strings... " >&6; }
5915 # Test print first, because it will be a builtin if present.
5916 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5917 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5918 ECHO='print -r --'
5919 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5920 ECHO='printf %s\n'
5921 else
5922 # Use this function as a fallback that always works.
5923 func_fallback_echo ()
5924 {
5925 eval 'cat <<_LTECHO_EOF
5926 $1
5927 _LTECHO_EOF'
5928 }
5929 ECHO='func_fallback_echo'
5930 fi
5931
5932 # func_echo_all arg...
5933 # Invoke $ECHO with all args, space-separated.
5934 func_echo_all ()
5935 {
5936 $ECHO ""
5937 }
5938
5939 case "$ECHO" in
5940 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5941 $as_echo "printf" >&6; } ;;
5942 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5943 $as_echo "print -r" >&6; } ;;
5944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5945 $as_echo "cat" >&6; } ;;
5946 esac
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5962 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5963 if test "${ac_cv_path_SED+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5967 for ac_i in 1 2 3 4 5 6 7; do
5968 ac_script="$ac_script$as_nl$ac_script"
5969 done
5970 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5971 { ac_script=; unset ac_script;}
5972 if test -z "$SED"; then
5973 ac_path_SED_found=false
5974 # Loop through the user's path and test for each of PROGNAME-LIST
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_prog in sed gsed; do
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5983 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5984 # Check for GNU ac_path_SED and select it if it is found.
5985 # Check for GNU $ac_path_SED
5986 case `"$ac_path_SED" --version 2>&1` in
5987 *GNU*)
5988 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5989 *)
5990 ac_count=0
5991 $as_echo_n 0123456789 >"conftest.in"
5992 while :
5993 do
5994 cat "conftest.in" "conftest.in" >"conftest.tmp"
5995 mv "conftest.tmp" "conftest.in"
5996 cp "conftest.in" "conftest.nl"
5997 $as_echo '' >> "conftest.nl"
5998 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6000 as_fn_arith $ac_count + 1 && ac_count=$as_val
6001 if test $ac_count -gt ${ac_path_SED_max-0}; then
6002 # Best one so far, save it but keep looking for a better one
6003 ac_cv_path_SED="$ac_path_SED"
6004 ac_path_SED_max=$ac_count
6005 fi
6006 # 10*(2^10) chars as input seems more than enough
6007 test $ac_count -gt 10 && break
6008 done
6009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6010 esac
6011
6012 $ac_path_SED_found && break 3
6013 done
6014 done
6015 done
6016 IFS=$as_save_IFS
6017 if test -z "$ac_cv_path_SED"; then
6018 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6019 fi
6020 else
6021 ac_cv_path_SED=$SED
6022 fi
6023
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6026 $as_echo "$ac_cv_path_SED" >&6; }
6027 SED="$ac_cv_path_SED"
6028 rm -f conftest.sed
6029
6030 test -z "$SED" && SED=sed
6031 Xsed="$SED -e 1s/^X//"
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6044 $as_echo_n "checking for fgrep... " >&6; }
6045 if test "${ac_cv_path_FGREP+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6049 then ac_cv_path_FGREP="$GREP -F"
6050 else
6051 if test -z "$FGREP"; then
6052 ac_path_FGREP_found=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_prog in fgrep; do
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6062 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6063 # Check for GNU ac_path_FGREP and select it if it is found.
6064 # Check for GNU $ac_path_FGREP
6065 case `"$ac_path_FGREP" --version 2>&1` in
6066 *GNU*)
6067 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6068 *)
6069 ac_count=0
6070 $as_echo_n 0123456789 >"conftest.in"
6071 while :
6072 do
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'FGREP' >> "conftest.nl"
6077 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079 as_fn_arith $ac_count + 1 && ac_count=$as_val
6080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_FGREP="$ac_path_FGREP"
6083 ac_path_FGREP_max=$ac_count
6084 fi
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6087 done
6088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6089 esac
6090
6091 $ac_path_FGREP_found && break 3
6092 done
6093 done
6094 done
6095 IFS=$as_save_IFS
6096 if test -z "$ac_cv_path_FGREP"; then
6097 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6098 fi
6099 else
6100 ac_cv_path_FGREP=$FGREP
6101 fi
6102
6103 fi
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6106 $as_echo "$ac_cv_path_FGREP" >&6; }
6107 FGREP="$ac_cv_path_FGREP"
6108
6109
6110 test -z "$GREP" && GREP=grep
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 # Check whether --with-gnu-ld was given.
6131 if test "${with_gnu_ld+set}" = set; then :
6132 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6133 else
6134 with_gnu_ld=no
6135 fi
6136
6137 ac_prog=ld
6138 if test "$GCC" = yes; then
6139 # Check if gcc -print-prog-name=ld gives a path.
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6141 $as_echo_n "checking for ld used by $CC... " >&6; }
6142 case $host in
6143 *-*-mingw*)
6144 # gcc leaves a trailing carriage return which upsets mingw
6145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6146 *)
6147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6148 esac
6149 case $ac_prog in
6150 # Accept absolute paths.
6151 [\\/]* | ?:[\\/]*)
6152 re_direlt='/[^/][^/]*/\.\./'
6153 # Canonicalize the pathname of ld
6154 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6155 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6156 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6157 done
6158 test -z "$LD" && LD="$ac_prog"
6159 ;;
6160 "")
6161 # If it fails, then pretend we aren't using GCC.
6162 ac_prog=ld
6163 ;;
6164 *)
6165 # If it is relative, then search for the first ld in PATH.
6166 with_gnu_ld=unknown
6167 ;;
6168 esac
6169 elif test "$with_gnu_ld" = yes; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6171 $as_echo_n "checking for GNU ld... " >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6174 $as_echo_n "checking for non-GNU ld... " >&6; }
6175 fi
6176 if test "${lt_cv_path_LD+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -z "$LD"; then
6180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6181 for ac_dir in $PATH; do
6182 IFS="$lt_save_ifs"
6183 test -z "$ac_dir" && ac_dir=.
6184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6185 lt_cv_path_LD="$ac_dir/$ac_prog"
6186 # Check to see if the program is GNU ld. I'd rather use --version,
6187 # but apparently some variants of GNU ld only accept -v.
6188 # Break only if it was the GNU/non-GNU ld that we prefer.
6189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6190 *GNU* | *'with BFD'*)
6191 test "$with_gnu_ld" != no && break
6192 ;;
6193 *)
6194 test "$with_gnu_ld" != yes && break
6195 ;;
6196 esac
6197 fi
6198 done
6199 IFS="$lt_save_ifs"
6200 else
6201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6202 fi
6203 fi
6204
6205 LD="$lt_cv_path_LD"
6206 if test -n "$LD"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6208 $as_echo "$LD" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6215 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6216 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6220 case `$LD -v 2>&1 </dev/null` in
6221 *GNU* | *'with BFD'*)
6222 lt_cv_prog_gnu_ld=yes
6223 ;;
6224 *)
6225 lt_cv_prog_gnu_ld=no
6226 ;;
6227 esac
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6230 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6231 with_gnu_ld=$lt_cv_prog_gnu_ld
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6242 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6243 if test "${lt_cv_path_NM+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -n "$NM"; then
6247 # Let the user override the test.
6248 lt_cv_path_NM="$NM"
6249 else
6250 lt_nm_to_check="${ac_tool_prefix}nm"
6251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252 lt_nm_to_check="$lt_nm_to_check nm"
6253 fi
6254 for lt_tmp_nm in $lt_nm_to_check; do
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6257 IFS="$lt_save_ifs"
6258 test -z "$ac_dir" && ac_dir=.
6259 tmp_nm="$ac_dir/$lt_tmp_nm"
6260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6261 # Check to see if the nm accepts a BSD-compat flag.
6262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263 # nm: unknown option "B" ignored
6264 # Tru64's nm complains that /dev/null is an invalid object file
6265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266 */dev/null* | *'Invalid file or object type'*)
6267 lt_cv_path_NM="$tmp_nm -B"
6268 break
6269 ;;
6270 *)
6271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6272 */dev/null*)
6273 lt_cv_path_NM="$tmp_nm -p"
6274 break
6275 ;;
6276 *)
6277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278 continue # so that we can try to find one that supports BSD flags
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 fi
6284 done
6285 IFS="$lt_save_ifs"
6286 done
6287 : ${lt_cv_path_NM=no}
6288 fi
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6291 $as_echo "$lt_cv_path_NM" >&6; }
6292 if test "$lt_cv_path_NM" != "no"; then
6293 NM="$lt_cv_path_NM"
6294 else
6295 # Didn't find any BSD compatible name lister, look for dumpbin.
6296 if test -n "$DUMPBIN"; then :
6297 # Let the user override the test.
6298 else
6299 if test -n "$ac_tool_prefix"; then
6300 for ac_prog in dumpbin "link -dump"
6301 do
6302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$DUMPBIN"; then
6310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 DUMPBIN=$ac_cv_prog_DUMPBIN
6330 if test -n "$DUMPBIN"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6332 $as_echo "$DUMPBIN" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 test -n "$DUMPBIN" && break
6340 done
6341 fi
6342 if test -z "$DUMPBIN"; then
6343 ac_ct_DUMPBIN=$DUMPBIN
6344 for ac_prog in dumpbin "link -dump"
6345 do
6346 # Extract the first word of "$ac_prog", so it can be a program name with args.
6347 set dummy $ac_prog; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_DUMPBIN"; then
6354 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6374 if test -n "$ac_ct_DUMPBIN"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6376 $as_echo "$ac_ct_DUMPBIN" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 test -n "$ac_ct_DUMPBIN" && break
6384 done
6385
6386 if test "x$ac_ct_DUMPBIN" = x; then
6387 DUMPBIN=":"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 DUMPBIN=$ac_ct_DUMPBIN
6396 fi
6397 fi
6398
6399 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6400 *COFF*)
6401 DUMPBIN="$DUMPBIN -symbols"
6402 ;;
6403 *)
6404 DUMPBIN=:
6405 ;;
6406 esac
6407 fi
6408
6409 if test "$DUMPBIN" != ":"; then
6410 NM="$DUMPBIN"
6411 fi
6412 fi
6413 test -z "$NM" && NM=nm
6414
6415
6416
6417
6418
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6421 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6422 if test "${lt_cv_nm_interface+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 lt_cv_nm_interface="BSD nm"
6426 echo "int some_variable = 0;" > conftest.$ac_ext
6427 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6428 (eval "$ac_compile" 2>conftest.err)
6429 cat conftest.err >&5
6430 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6432 cat conftest.err >&5
6433 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6434 cat conftest.out >&5
6435 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6436 lt_cv_nm_interface="MS dumpbin"
6437 fi
6438 rm -f conftest*
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6441 $as_echo "$lt_cv_nm_interface" >&6; }
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6444 $as_echo_n "checking whether ln -s works... " >&6; }
6445 LN_S=$as_ln_s
6446 if test "$LN_S" = "ln -s"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448 $as_echo "yes" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6451 $as_echo "no, using $LN_S" >&6; }
6452 fi
6453
6454 # find the maximum length of command line arguments
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6456 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 i=0
6461 teststring="ABCD"
6462
6463 case $build_os in
6464 msdosdjgpp*)
6465 # On DJGPP, this test can blow up pretty badly due to problems in libc
6466 # (any single argument exceeding 2000 bytes causes a buffer overrun
6467 # during glob expansion). Even if it were fixed, the result of this
6468 # check would be larger than it should be.
6469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6470 ;;
6471
6472 gnu*)
6473 # Under GNU Hurd, this test is not required because there is
6474 # no limit to the length of command line arguments.
6475 # Libtool will interpret -1 as no limit whatsoever
6476 lt_cv_sys_max_cmd_len=-1;
6477 ;;
6478
6479 cygwin* | mingw* | cegcc*)
6480 # On Win9x/ME, this test blows up -- it succeeds, but takes
6481 # about 5 minutes as the teststring grows exponentially.
6482 # Worse, since 9x/ME are not pre-emptively multitasking,
6483 # you end up with a "frozen" computer, even though with patience
6484 # the test eventually succeeds (with a max line length of 256k).
6485 # Instead, let's just punt: use the minimum linelength reported by
6486 # all of the supported platforms: 8192 (on NT/2K/XP).
6487 lt_cv_sys_max_cmd_len=8192;
6488 ;;
6489
6490 mint*)
6491 # On MiNT this can take a long time and run out of memory.
6492 lt_cv_sys_max_cmd_len=8192;
6493 ;;
6494
6495 amigaos*)
6496 # On AmigaOS with pdksh, this test takes hours, literally.
6497 # So we just punt and use a minimum line length of 8192.
6498 lt_cv_sys_max_cmd_len=8192;
6499 ;;
6500
6501 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6502 # This has been around since 386BSD, at least. Likely further.
6503 if test -x /sbin/sysctl; then
6504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6505 elif test -x /usr/sbin/sysctl; then
6506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6507 else
6508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6509 fi
6510 # And add a safety zone
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6513 ;;
6514
6515 interix*)
6516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6517 lt_cv_sys_max_cmd_len=196608
6518 ;;
6519
6520 osf*)
6521 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6522 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6523 # nice to cause kernel panics so lets avoid the loop below.
6524 # First set a reasonable default.
6525 lt_cv_sys_max_cmd_len=16384
6526 #
6527 if test -x /sbin/sysconfig; then
6528 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6529 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6530 esac
6531 fi
6532 ;;
6533 sco3.2v5*)
6534 lt_cv_sys_max_cmd_len=102400
6535 ;;
6536 sysv5* | sco5v6* | sysv4.2uw2*)
6537 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6538 if test -n "$kargmax"; then
6539 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6540 else
6541 lt_cv_sys_max_cmd_len=32768
6542 fi
6543 ;;
6544 *)
6545 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6546 if test -n "$lt_cv_sys_max_cmd_len"; then
6547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6549 else
6550 # Make teststring a little bigger before we do anything with it.
6551 # a 1K string should be a reasonable start.
6552 for i in 1 2 3 4 5 6 7 8 ; do
6553 teststring=$teststring$teststring
6554 done
6555 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6556 # If test is not a shell built-in, we'll probably end up computing a
6557 # maximum length that is only half of the actual maximum length, but
6558 # we can't tell.
6559 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6560 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6561 test $i != 17 # 1/2 MB should be enough
6562 do
6563 i=`expr $i + 1`
6564 teststring=$teststring$teststring
6565 done
6566 # Only check the string length outside the loop.
6567 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6568 teststring=
6569 # Add a significant safety factor because C++ compilers can tack on
6570 # massive amounts of additional arguments before passing them to the
6571 # linker. It appears as though 1/2 is a usable value.
6572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6573 fi
6574 ;;
6575 esac
6576
6577 fi
6578
6579 if test -n $lt_cv_sys_max_cmd_len ; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6581 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6584 $as_echo "none" >&6; }
6585 fi
6586 max_cmd_len=$lt_cv_sys_max_cmd_len
6587
6588
6589
6590
6591
6592
6593 : ${CP="cp -f"}
6594 : ${MV="mv -f"}
6595 : ${RM="rm -f"}
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6598 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6599 # Try some XSI features
6600 xsi_shell=no
6601 ( _lt_dummy="a/b/c"
6602 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6603 = c,a/b,, \
6604 && eval 'test $(( 1 + 1 )) -eq 2 \
6605 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6606 && xsi_shell=yes
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6608 $as_echo "$xsi_shell" >&6; }
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6612 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6613 lt_shell_append=no
6614 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6615 >/dev/null 2>&1 \
6616 && lt_shell_append=yes
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6618 $as_echo "$lt_shell_append" >&6; }
6619
6620
6621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6622 lt_unset=unset
6623 else
6624 lt_unset=false
6625 fi
6626
6627
6628
6629
6630
6631 # test EBCDIC or ASCII
6632 case `echo X|tr X '\101'` in
6633 A) # ASCII based system
6634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6635 lt_SP2NL='tr \040 \012'
6636 lt_NL2SP='tr \015\012 \040\040'
6637 ;;
6638 *) # EBCDIC based system
6639 lt_SP2NL='tr \100 \n'
6640 lt_NL2SP='tr \r\n \100\100'
6641 ;;
6642 esac
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6653 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6654 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 lt_cv_ld_reload_flag='-r'
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6660 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6661 reload_flag=$lt_cv_ld_reload_flag
6662 case $reload_flag in
6663 "" | " "*) ;;
6664 *) reload_flag=" $reload_flag" ;;
6665 esac
6666 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6667 case $host_os in
6668 darwin*)
6669 if test "$GCC" = yes; then
6670 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6671 else
6672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6673 fi
6674 ;;
6675 esac
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$OBJDUMP"; then
6694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 OBJDUMP=$ac_cv_prog_OBJDUMP
6714 if test -n "$OBJDUMP"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6716 $as_echo "$OBJDUMP" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722
6723 fi
6724 if test -z "$ac_cv_prog_OBJDUMP"; then
6725 ac_ct_OBJDUMP=$OBJDUMP
6726 # Extract the first word of "objdump", so it can be a program name with args.
6727 set dummy objdump; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_OBJDUMP"; then
6734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6754 if test -n "$ac_ct_OBJDUMP"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6756 $as_echo "$ac_ct_OBJDUMP" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762 if test "x$ac_ct_OBJDUMP" = x; then
6763 OBJDUMP="false"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769 ac_tool_warned=yes ;;
6770 esac
6771 OBJDUMP=$ac_ct_OBJDUMP
6772 fi
6773 else
6774 OBJDUMP="$ac_cv_prog_OBJDUMP"
6775 fi
6776
6777 test -z "$OBJDUMP" && OBJDUMP=objdump
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6788 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6789 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 lt_cv_file_magic_cmd='$MAGIC_CMD'
6793 lt_cv_file_magic_test_file=
6794 lt_cv_deplibs_check_method='unknown'
6795 # Need to set the preceding variable on all platforms that support
6796 # interlibrary dependencies.
6797 # 'none' -- dependencies not supported.
6798 # `unknown' -- same as none, but documents that we really don't know.
6799 # 'pass_all' -- all dependencies passed with no checks.
6800 # 'test_compile' -- check by making test program.
6801 # 'file_magic [[regex]]' -- check by looking for files in library path
6802 # which responds to the $file_magic_cmd with a given extended regex.
6803 # If you have `file' or equivalent on your system and you're not sure
6804 # whether `pass_all' will *always* work, you probably want this one.
6805
6806 case $host_os in
6807 aix[4-9]*)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
6810
6811 beos*)
6812 lt_cv_deplibs_check_method=pass_all
6813 ;;
6814
6815 bsdi[45]*)
6816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6817 lt_cv_file_magic_cmd='/usr/bin/file -L'
6818 lt_cv_file_magic_test_file=/shlib/libc.so
6819 ;;
6820
6821 cygwin*)
6822 # func_win32_libid is a shell function defined in ltmain.sh
6823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6824 lt_cv_file_magic_cmd='func_win32_libid'
6825 ;;
6826
6827 mingw* | pw32*)
6828 # Base MSYS/MinGW do not provide the 'file' command needed by
6829 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6830 # unless we find 'file', for example because we are cross-compiling.
6831 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6832 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6834 lt_cv_file_magic_cmd='func_win32_libid'
6835 else
6836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6837 lt_cv_file_magic_cmd='$OBJDUMP -f'
6838 fi
6839 ;;
6840
6841 cegcc*)
6842 # use the weaker test based on 'objdump'. See mingw*.
6843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6844 lt_cv_file_magic_cmd='$OBJDUMP -f'
6845 ;;
6846
6847 darwin* | rhapsody*)
6848 lt_cv_deplibs_check_method=pass_all
6849 ;;
6850
6851 freebsd* | dragonfly*)
6852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6853 case $host_cpu in
6854 i*86 )
6855 # Not sure whether the presence of OpenBSD here was a mistake.
6856 # Let's accept both of them until this is cleared up.
6857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6858 lt_cv_file_magic_cmd=/usr/bin/file
6859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6860 ;;
6861 esac
6862 else
6863 lt_cv_deplibs_check_method=pass_all
6864 fi
6865 ;;
6866
6867 gnu*)
6868 lt_cv_deplibs_check_method=pass_all
6869 ;;
6870
6871 haiku*)
6872 lt_cv_deplibs_check_method=pass_all
6873 ;;
6874
6875 hpux10.20* | hpux11*)
6876 lt_cv_file_magic_cmd=/usr/bin/file
6877 case $host_cpu in
6878 ia64*)
6879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6881 ;;
6882 hppa*64*)
6883 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]'
6884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6885 ;;
6886 *)
6887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6889 ;;
6890 esac
6891 ;;
6892
6893 interix[3-9]*)
6894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6896 ;;
6897
6898 irix5* | irix6* | nonstopux*)
6899 case $LD in
6900 *-32|*"-32 ") libmagic=32-bit;;
6901 *-n32|*"-n32 ") libmagic=N32;;
6902 *-64|*"-64 ") libmagic=64-bit;;
6903 *) libmagic=never-match;;
6904 esac
6905 lt_cv_deplibs_check_method=pass_all
6906 ;;
6907
6908 # This must be Linux ELF.
6909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6910 lt_cv_deplibs_check_method=pass_all
6911 ;;
6912
6913 netbsd*)
6914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6916 else
6917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6918 fi
6919 ;;
6920
6921 newos6*)
6922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6923 lt_cv_file_magic_cmd=/usr/bin/file
6924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6925 ;;
6926
6927 *nto* | *qnx*)
6928 lt_cv_deplibs_check_method=pass_all
6929 ;;
6930
6931 openbsd*)
6932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6934 else
6935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6936 fi
6937 ;;
6938
6939 osf3* | osf4* | osf5*)
6940 lt_cv_deplibs_check_method=pass_all
6941 ;;
6942
6943 rdos*)
6944 lt_cv_deplibs_check_method=pass_all
6945 ;;
6946
6947 solaris*)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950
6951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6952 lt_cv_deplibs_check_method=pass_all
6953 ;;
6954
6955 sysv4 | sysv4.3*)
6956 case $host_vendor in
6957 motorola)
6958 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]'
6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6960 ;;
6961 ncr)
6962 lt_cv_deplibs_check_method=pass_all
6963 ;;
6964 sequent)
6965 lt_cv_file_magic_cmd='/bin/file'
6966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6967 ;;
6968 sni)
6969 lt_cv_file_magic_cmd='/bin/file'
6970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6971 lt_cv_file_magic_test_file=/lib/libc.so
6972 ;;
6973 siemens)
6974 lt_cv_deplibs_check_method=pass_all
6975 ;;
6976 pc)
6977 lt_cv_deplibs_check_method=pass_all
6978 ;;
6979 esac
6980 ;;
6981
6982 tpf*)
6983 lt_cv_deplibs_check_method=pass_all
6984 ;;
6985 esac
6986
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6989 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6990 file_magic_cmd=$lt_cv_file_magic_cmd
6991 deplibs_check_method=$lt_cv_deplibs_check_method
6992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}ar; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_AR+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$AR"; then
7014 ac_cv_prog_AR="$AR" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_AR="${ac_tool_prefix}ar"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 AR=$ac_cv_prog_AR
7034 if test -n "$AR"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7036 $as_echo "$AR" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_AR"; then
7045 ac_ct_AR=$AR
7046 # Extract the first word of "ar", so it can be a program name with args.
7047 set dummy ar; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_AR"; then
7054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_AR="ar"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7074 if test -n "$ac_ct_AR"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7076 $as_echo "$ac_ct_AR" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_AR" = x; then
7083 AR="false"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 AR=$ac_ct_AR
7092 fi
7093 else
7094 AR="$ac_cv_prog_AR"
7095 fi
7096
7097 test -z "$AR" && AR=ar
7098 test -z "$AR_FLAGS" && AR_FLAGS=cru
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}strip; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if test "${ac_cv_prog_STRIP+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test -n "$STRIP"; then
7119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 STRIP=$ac_cv_prog_STRIP
7139 if test -n "$STRIP"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7141 $as_echo "$STRIP" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147
7148 fi
7149 if test -z "$ac_cv_prog_STRIP"; then
7150 ac_ct_STRIP=$STRIP
7151 # Extract the first word of "strip", so it can be a program name with args.
7152 set dummy strip; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$ac_ct_STRIP"; then
7159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_ac_ct_STRIP="strip"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7179 if test -n "$ac_ct_STRIP"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7181 $as_echo "$ac_ct_STRIP" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187 if test "x$ac_ct_STRIP" = x; then
7188 STRIP=":"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191 yes:)
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194 ac_tool_warned=yes ;;
7195 esac
7196 STRIP=$ac_ct_STRIP
7197 fi
7198 else
7199 STRIP="$ac_cv_prog_STRIP"
7200 fi
7201
7202 test -z "$STRIP" && STRIP=:
7203
7204
7205
7206
7207
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$RANLIB"; then
7218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 RANLIB=$ac_cv_prog_RANLIB
7238 if test -n "$RANLIB"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7240 $as_echo "$RANLIB" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249 ac_ct_RANLIB=$RANLIB
7250 # Extract the first word of "ranlib", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$ac_ct_RANLIB"; then
7258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_ac_ct_RANLIB="ranlib"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7278 if test -n "$ac_ct_RANLIB"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7280 $as_echo "$ac_ct_RANLIB" >&6; }
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286 if test "x$ac_ct_RANLIB" = x; then
7287 RANLIB=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295 RANLIB=$ac_ct_RANLIB
7296 fi
7297 else
7298 RANLIB="$ac_cv_prog_RANLIB"
7299 fi
7300
7301 test -z "$RANLIB" && RANLIB=:
7302
7303
7304
7305
7306
7307
7308 # Determine commands to create old-style static archives.
7309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7310 old_postinstall_cmds='chmod 644 $oldlib'
7311 old_postuninstall_cmds=
7312
7313 if test -n "$RANLIB"; then
7314 case $host_os in
7315 openbsd*)
7316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7317 ;;
7318 *)
7319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7320 ;;
7321 esac
7322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7323 fi
7324
7325 case $host_os in
7326 darwin*)
7327 lock_old_archive_extraction=yes ;;
7328 *)
7329 lock_old_archive_extraction=no ;;
7330 esac
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # If no C compiler was specified, use CC.
7371 LTCC=${LTCC-"$CC"}
7372
7373 # If no C compiler flags were specified, use CFLAGS.
7374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7375
7376 # Allow CC to be a program name with arguments.
7377 compiler=$CC
7378
7379
7380 # Check for command to grab the raw symbol name followed by C symbol from nm.
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7383 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386
7387 # These are sane defaults that work on at least a few old systems.
7388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7389
7390 # Character class describing NM global symbol codes.
7391 symcode='[BCDEGRST]'
7392
7393 # Regexp to match symbols that can be accessed directly from C.
7394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7395
7396 # Define system-specific variables.
7397 case $host_os in
7398 aix*)
7399 symcode='[BCDT]'
7400 ;;
7401 cygwin* | mingw* | pw32* | cegcc*)
7402 symcode='[ABCDGISTW]'
7403 ;;
7404 hpux*)
7405 if test "$host_cpu" = ia64; then
7406 symcode='[ABCDEGRST]'
7407 fi
7408 ;;
7409 irix* | nonstopux*)
7410 symcode='[BCDEGRST]'
7411 ;;
7412 osf*)
7413 symcode='[BCDEGQRST]'
7414 ;;
7415 solaris*)
7416 symcode='[BDRT]'
7417 ;;
7418 sco3.2v5*)
7419 symcode='[DT]'
7420 ;;
7421 sysv4.2uw2*)
7422 symcode='[DT]'
7423 ;;
7424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7425 symcode='[ABDT]'
7426 ;;
7427 sysv4)
7428 symcode='[DFNSTU]'
7429 ;;
7430 esac
7431
7432 # If we're using GNU nm, then use its standard symbol codes.
7433 case `$NM -V 2>&1` in
7434 *GNU* | *'with BFD'*)
7435 symcode='[ABCDGIRSTW]' ;;
7436 esac
7437
7438 # Transform an extracted symbol line into a proper C declaration.
7439 # Some systems (esp. on ia64) link data and code symbols differently,
7440 # so use this general approach.
7441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7442
7443 # Transform an extracted symbol line into symbol name and symbol address
7444 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7445 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'"
7446
7447 # Handle CRLF in mingw tool chain
7448 opt_cr=
7449 case $build_os in
7450 mingw*)
7451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7452 ;;
7453 esac
7454
7455 # Try without a prefix underscore, then with it.
7456 for ac_symprfx in "" "_"; do
7457
7458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7459 symxfrm="\\1 $ac_symprfx\\2 \\2"
7460
7461 # Write the raw and C identifiers.
7462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7463 # Fake it for dumpbin and say T for any non-static function
7464 # and D for any global variable.
7465 # Also find C++ and __fastcall symbols from MSVC++,
7466 # which start with @ or ?.
7467 lt_cv_sys_global_symbol_pipe="$AWK '"\
7468 " {last_section=section; section=\$ 3};"\
7469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7470 " \$ 0!~/External *\|/{next};"\
7471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7472 " {if(hide[section]) next};"\
7473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7477 " ' prfx=^$ac_symprfx"
7478 else
7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7480 fi
7481
7482 # Check to see that the pipe works correctly.
7483 pipe_works=no
7484
7485 rm -f conftest*
7486 cat > conftest.$ac_ext <<_LT_EOF
7487 #ifdef __cplusplus
7488 extern "C" {
7489 #endif
7490 char nm_test_var;
7491 void nm_test_func(void);
7492 void nm_test_func(void){}
7493 #ifdef __cplusplus
7494 }
7495 #endif
7496 int main(){nm_test_var='a';nm_test_func();return(0);}
7497 _LT_EOF
7498
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 # Now try to grab the symbols.
7505 nlist=conftest.nm
7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7510 test $ac_status = 0; } && test -s "$nlist"; then
7511 # Try sorting and uniquifying the output.
7512 if sort "$nlist" | uniq > "$nlist"T; then
7513 mv -f "$nlist"T "$nlist"
7514 else
7515 rm -f "$nlist"T
7516 fi
7517
7518 # Make sure that we snagged all the symbols we need.
7519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7521 cat <<_LT_EOF > conftest.$ac_ext
7522 #ifdef __cplusplus
7523 extern "C" {
7524 #endif
7525
7526 _LT_EOF
7527 # Now generate the symbol file.
7528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7529
7530 cat <<_LT_EOF >> conftest.$ac_ext
7531
7532 /* The mapping between symbol names and symbols. */
7533 const struct {
7534 const char *name;
7535 void *address;
7536 }
7537 lt__PROGRAM__LTX_preloaded_symbols[] =
7538 {
7539 { "@PROGRAM@", (void *) 0 },
7540 _LT_EOF
7541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7542 cat <<\_LT_EOF >> conftest.$ac_ext
7543 {0, (void *) 0}
7544 };
7545
7546 /* This works around a problem in FreeBSD linker */
7547 #ifdef FREEBSD_WORKAROUND
7548 static const void *lt_preloaded_setup() {
7549 return lt__PROGRAM__LTX_preloaded_symbols;
7550 }
7551 #endif
7552
7553 #ifdef __cplusplus
7554 }
7555 #endif
7556 _LT_EOF
7557 # Now try linking the two files.
7558 mv conftest.$ac_objext conftstm.$ac_objext
7559 lt_save_LIBS="$LIBS"
7560 lt_save_CFLAGS="$CFLAGS"
7561 LIBS="conftstm.$ac_objext"
7562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7568 pipe_works=yes
7569 fi
7570 LIBS="$lt_save_LIBS"
7571 CFLAGS="$lt_save_CFLAGS"
7572 else
7573 echo "cannot find nm_test_func in $nlist" >&5
7574 fi
7575 else
7576 echo "cannot find nm_test_var in $nlist" >&5
7577 fi
7578 else
7579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7580 fi
7581 else
7582 echo "$progname: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 fi
7585 rm -rf conftest* conftst*
7586
7587 # Do not use the global_symbol_pipe unless it works.
7588 if test "$pipe_works" = yes; then
7589 break
7590 else
7591 lt_cv_sys_global_symbol_pipe=
7592 fi
7593 done
7594
7595 fi
7596
7597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7598 lt_cv_sys_global_symbol_to_cdecl=
7599 fi
7600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7602 $as_echo "failed" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7605 $as_echo "ok" >&6; }
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # Check whether --enable-libtool-lock was given.
7630 if test "${enable_libtool_lock+set}" = set; then :
7631 enableval=$enable_libtool_lock;
7632 fi
7633
7634 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7635
7636 # Some flags need to be propagated to the compiler or linker for good
7637 # libtool support.
7638 case $host in
7639 ia64-*-hpux*)
7640 # Find out which ABI we are using.
7641 echo 'int i;' > conftest.$ac_ext
7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643 (eval $ac_compile) 2>&5
7644 ac_status=$?
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646 test $ac_status = 0; }; then
7647 case `/usr/bin/file conftest.$ac_objext` in
7648 *ELF-32*)
7649 HPUX_IA64_MODE="32"
7650 ;;
7651 *ELF-64*)
7652 HPUX_IA64_MODE="64"
7653 ;;
7654 esac
7655 fi
7656 rm -rf conftest*
7657 ;;
7658 *-*-irix6*)
7659 # Find out which ABI we are using.
7660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7662 (eval $ac_compile) 2>&5
7663 ac_status=$?
7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665 test $ac_status = 0; }; then
7666 if test "$lt_cv_prog_gnu_ld" = yes; then
7667 case `/usr/bin/file conftest.$ac_objext` in
7668 *32-bit*)
7669 LD="${LD-ld} -melf32bsmip"
7670 ;;
7671 *N32*)
7672 LD="${LD-ld} -melf32bmipn32"
7673 ;;
7674 *64-bit*)
7675 LD="${LD-ld} -melf64bmip"
7676 ;;
7677 esac
7678 else
7679 case `/usr/bin/file conftest.$ac_objext` in
7680 *32-bit*)
7681 LD="${LD-ld} -32"
7682 ;;
7683 *N32*)
7684 LD="${LD-ld} -n32"
7685 ;;
7686 *64-bit*)
7687 LD="${LD-ld} -64"
7688 ;;
7689 esac
7690 fi
7691 fi
7692 rm -rf conftest*
7693 ;;
7694
7695 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7696 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7697 # Find out which ABI we are using.
7698 echo 'int i;' > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 case `/usr/bin/file conftest.o` in
7705 *32-bit*)
7706 case $host in
7707 x86_64-*kfreebsd*-gnu)
7708 LD="${LD-ld} -m elf_i386_fbsd"
7709 ;;
7710 x86_64-*linux*)
7711 case `/usr/bin/file conftest.o` in
7712 *x86-64*)
7713 LD="${LD-ld} -m elf32_x86_64"
7714 ;;
7715 *)
7716 LD="${LD-ld} -m elf_i386"
7717 ;;
7718 esac
7719 ;;
7720 powerpc64le-*linux*)
7721 LD="${LD-ld} -m elf32lppclinux"
7722 ;;
7723 powerpc64-*linux*)
7724 LD="${LD-ld} -m elf32ppclinux"
7725 ;;
7726 s390x-*linux*)
7727 LD="${LD-ld} -m elf_s390"
7728 ;;
7729 sparc64-*linux*)
7730 LD="${LD-ld} -m elf32_sparc"
7731 ;;
7732 esac
7733 ;;
7734 *64-bit*)
7735 case $host in
7736 x86_64-*kfreebsd*-gnu)
7737 LD="${LD-ld} -m elf_x86_64_fbsd"
7738 ;;
7739 x86_64-*linux*)
7740 LD="${LD-ld} -m elf_x86_64"
7741 ;;
7742 powerpcle-*linux*)
7743 LD="${LD-ld} -m elf64lppc"
7744 ;;
7745 powerpc-*linux*)
7746 LD="${LD-ld} -m elf64ppc"
7747 ;;
7748 s390*-*linux*|s390*-*tpf*)
7749 LD="${LD-ld} -m elf64_s390"
7750 ;;
7751 sparc*-*linux*)
7752 LD="${LD-ld} -m elf64_sparc"
7753 ;;
7754 esac
7755 ;;
7756 esac
7757 fi
7758 rm -rf conftest*
7759 ;;
7760
7761 *-*-sco3.2v5*)
7762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7763 SAVE_CFLAGS="$CFLAGS"
7764 CFLAGS="$CFLAGS -belf"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7766 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7767 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 ac_ext=c
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 int
7780 main ()
7781 {
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_link "$LINENO"; then :
7788 lt_cv_cc_needs_belf=yes
7789 else
7790 lt_cv_cc_needs_belf=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 ac_ext=c
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7802 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7803 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7805 CFLAGS="$SAVE_CFLAGS"
7806 fi
7807 ;;
7808 sparc*-*solaris*)
7809 # Find out which ABI we are using.
7810 echo 'int i;' > conftest.$ac_ext
7811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7812 (eval $ac_compile) 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 case `/usr/bin/file conftest.o` in
7817 *64-bit*)
7818 case $lt_cv_prog_gnu_ld in
7819 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7820 *)
7821 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7822 LD="${LD-ld} -64"
7823 fi
7824 ;;
7825 esac
7826 ;;
7827 esac
7828 fi
7829 rm -rf conftest*
7830 ;;
7831 esac
7832
7833 need_locks="$enable_libtool_lock"
7834
7835
7836 case $host_os in
7837 rhapsody* | darwin*)
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$DSYMUTIL"; then
7847 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7867 if test -n "$DSYMUTIL"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7869 $as_echo "$DSYMUTIL" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876 fi
7877 if test -z "$ac_cv_prog_DSYMUTIL"; then
7878 ac_ct_DSYMUTIL=$DSYMUTIL
7879 # Extract the first word of "dsymutil", so it can be a program name with args.
7880 set dummy dsymutil; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$ac_ct_DSYMUTIL"; then
7887 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7907 if test -n "$ac_ct_DSYMUTIL"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7909 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915 if test "x$ac_ct_DSYMUTIL" = x; then
7916 DSYMUTIL=":"
7917 else
7918 case $cross_compiling:$ac_tool_warned in
7919 yes:)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7923 esac
7924 DSYMUTIL=$ac_ct_DSYMUTIL
7925 fi
7926 else
7927 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7928 fi
7929
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$NMEDIT"; then
7939 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 NMEDIT=$ac_cv_prog_NMEDIT
7959 if test -n "$NMEDIT"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7961 $as_echo "$NMEDIT" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968 fi
7969 if test -z "$ac_cv_prog_NMEDIT"; then
7970 ac_ct_NMEDIT=$NMEDIT
7971 # Extract the first word of "nmedit", so it can be a program name with args.
7972 set dummy nmedit; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$ac_ct_NMEDIT"; then
7979 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7999 if test -n "$ac_ct_NMEDIT"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8001 $as_echo "$ac_ct_NMEDIT" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007 if test "x$ac_ct_NMEDIT" = x; then
8008 NMEDIT=":"
8009 else
8010 case $cross_compiling:$ac_tool_warned in
8011 yes:)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014 ac_tool_warned=yes ;;
8015 esac
8016 NMEDIT=$ac_ct_NMEDIT
8017 fi
8018 else
8019 NMEDIT="$ac_cv_prog_NMEDIT"
8020 fi
8021
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_LIPO+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$LIPO"; then
8031 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 LIPO=$ac_cv_prog_LIPO
8051 if test -n "$LIPO"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8053 $as_echo "$LIPO" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059
8060 fi
8061 if test -z "$ac_cv_prog_LIPO"; then
8062 ac_ct_LIPO=$LIPO
8063 # Extract the first word of "lipo", so it can be a program name with args.
8064 set dummy lipo; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$ac_ct_LIPO"; then
8071 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_ac_ct_LIPO="lipo"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8091 if test -n "$ac_ct_LIPO"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8093 $as_echo "$ac_ct_LIPO" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099 if test "x$ac_ct_LIPO" = x; then
8100 LIPO=":"
8101 else
8102 case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8107 esac
8108 LIPO=$ac_ct_LIPO
8109 fi
8110 else
8111 LIPO="$ac_cv_prog_LIPO"
8112 fi
8113
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}otool; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$OTOOL"; then
8123 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 OTOOL=$ac_cv_prog_OTOOL
8143 if test -n "$OTOOL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8145 $as_echo "$OTOOL" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152 fi
8153 if test -z "$ac_cv_prog_OTOOL"; then
8154 ac_ct_OTOOL=$OTOOL
8155 # Extract the first word of "otool", so it can be a program name with args.
8156 set dummy otool; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$ac_ct_OTOOL"; then
8163 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_ac_ct_OTOOL="otool"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8175 fi
8176 done
8177 done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8183 if test -n "$ac_ct_OTOOL"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8185 $as_echo "$ac_ct_OTOOL" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191 if test "x$ac_ct_OTOOL" = x; then
8192 OTOOL=":"
8193 else
8194 case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200 OTOOL=$ac_ct_OTOOL
8201 fi
8202 else
8203 OTOOL="$ac_cv_prog_OTOOL"
8204 fi
8205
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$OTOOL64"; then
8215 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228 done
8229 done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 OTOOL64=$ac_cv_prog_OTOOL64
8235 if test -n "$OTOOL64"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8237 $as_echo "$OTOOL64" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 fi
8245 if test -z "$ac_cv_prog_OTOOL64"; then
8246 ac_ct_OTOOL64=$OTOOL64
8247 # Extract the first word of "otool64", so it can be a program name with args.
8248 set dummy otool64; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$ac_ct_OTOOL64"; then
8255 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_ac_ct_OTOOL64="otool64"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8275 if test -n "$ac_ct_OTOOL64"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8277 $as_echo "$ac_ct_OTOOL64" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283 if test "x$ac_ct_OTOOL64" = x; then
8284 OTOOL64=":"
8285 else
8286 case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292 OTOOL64=$ac_ct_OTOOL64
8293 fi
8294 else
8295 OTOOL64="$ac_cv_prog_OTOOL64"
8296 fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8325 $as_echo_n "checking for -single_module linker flag... " >&6; }
8326 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 lt_cv_apple_cc_single_mod=no
8330 if test -z "${LT_MULTI_MODULE}"; then
8331 # By default we will add the -single_module flag. You can override
8332 # by either setting the environment variable LT_MULTI_MODULE
8333 # non-empty at configure time, or by adding -multi_module to the
8334 # link flags.
8335 rm -rf libconftest.dylib*
8336 echo "int foo(void){return 1;}" > conftest.c
8337 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8338 -dynamiclib -Wl,-single_module conftest.c" >&5
8339 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8340 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8341 _lt_result=$?
8342 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8343 lt_cv_apple_cc_single_mod=yes
8344 else
8345 cat conftest.err >&5
8346 fi
8347 rm -rf libconftest.dylib*
8348 rm -f conftest.*
8349 fi
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8352 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8354 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8355 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 lt_cv_ld_exported_symbols_list=no
8359 save_LDFLAGS=$LDFLAGS
8360 echo "_main" > conftest.sym
8361 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364
8365 int
8366 main ()
8367 {
8368
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374 lt_cv_ld_exported_symbols_list=yes
8375 else
8376 lt_cv_ld_exported_symbols_list=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LDFLAGS="$save_LDFLAGS"
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8384 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8386 $as_echo_n "checking for -force_load linker flag... " >&6; }
8387 if test "${lt_cv_ld_force_load+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 lt_cv_ld_force_load=no
8391 cat > conftest.c << _LT_EOF
8392 int forced_loaded() { return 2;}
8393 _LT_EOF
8394 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8395 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8396 echo "$AR cru libconftest.a conftest.o" >&5
8397 $AR cru libconftest.a conftest.o 2>&5
8398 cat > conftest.c << _LT_EOF
8399 int main() { return 0;}
8400 _LT_EOF
8401 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8402 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8403 _lt_result=$?
8404 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8405 lt_cv_ld_force_load=yes
8406 else
8407 cat conftest.err >&5
8408 fi
8409 rm -f conftest.err libconftest.a conftest conftest.c
8410 rm -rf conftest.dSYM
8411
8412 fi
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8414 $as_echo "$lt_cv_ld_force_load" >&6; }
8415 case $host_os in
8416 rhapsody* | darwin1.[012])
8417 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8418 darwin1.*)
8419 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8420 darwin*) # darwin 5.x on
8421 # if running on 10.5 or later, the deployment target defaults
8422 # to the OS version, if on x86, and 10.4, the deployment
8423 # target defaults to 10.4. Don't you love it?
8424 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8425 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8426 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8427 10.[012][,.]*)
8428 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8429 10.*)
8430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8431 esac
8432 ;;
8433 esac
8434 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8435 _lt_dar_single_mod='$single_module'
8436 fi
8437 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8438 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8439 else
8440 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8441 fi
8442 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8443 _lt_dsymutil='~$DSYMUTIL $lib || :'
8444 else
8445 _lt_dsymutil=
8446 fi
8447 ;;
8448 esac
8449
8450 for ac_header in dlfcn.h
8451 do :
8452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8453 "
8454 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_DLFCN_H 1
8457 _ACEOF
8458
8459 fi
8460
8461 done
8462
8463
8464
8465
8466
8467
8468 # Set options
8469
8470
8471
8472
8473 enable_win32_dll=no
8474
8475
8476 # Check whether --enable-shared was given.
8477 if test "${enable_shared+set}" = set; then :
8478 enableval=$enable_shared; p=${PACKAGE-default}
8479 case $enableval in
8480 yes) enable_shared=yes ;;
8481 no) enable_shared=no ;;
8482 *)
8483 enable_shared=no
8484 # Look at the argument we got. We use all the common list separators.
8485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8486 for pkg in $enableval; do
8487 IFS="$lt_save_ifs"
8488 if test "X$pkg" = "X$p"; then
8489 enable_shared=yes
8490 fi
8491 done
8492 IFS="$lt_save_ifs"
8493 ;;
8494 esac
8495 else
8496 enable_shared=yes
8497 fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 # Check whether --enable-static was given.
8508 if test "${enable_static+set}" = set; then :
8509 enableval=$enable_static; p=${PACKAGE-default}
8510 case $enableval in
8511 yes) enable_static=yes ;;
8512 no) enable_static=no ;;
8513 *)
8514 enable_static=no
8515 # Look at the argument we got. We use all the common list separators.
8516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8517 for pkg in $enableval; do
8518 IFS="$lt_save_ifs"
8519 if test "X$pkg" = "X$p"; then
8520 enable_static=yes
8521 fi
8522 done
8523 IFS="$lt_save_ifs"
8524 ;;
8525 esac
8526 else
8527 enable_static=yes
8528 fi
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 # Check whether --with-pic was given.
8540 if test "${with_pic+set}" = set; then :
8541 withval=$with_pic; pic_mode="$withval"
8542 else
8543 pic_mode=default
8544 fi
8545
8546
8547 test -z "$pic_mode" && pic_mode=default
8548
8549
8550
8551
8552
8553
8554
8555 # Check whether --enable-fast-install was given.
8556 if test "${enable_fast_install+set}" = set; then :
8557 enableval=$enable_fast_install; p=${PACKAGE-default}
8558 case $enableval in
8559 yes) enable_fast_install=yes ;;
8560 no) enable_fast_install=no ;;
8561 *)
8562 enable_fast_install=no
8563 # Look at the argument we got. We use all the common list separators.
8564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8565 for pkg in $enableval; do
8566 IFS="$lt_save_ifs"
8567 if test "X$pkg" = "X$p"; then
8568 enable_fast_install=yes
8569 fi
8570 done
8571 IFS="$lt_save_ifs"
8572 ;;
8573 esac
8574 else
8575 enable_fast_install=yes
8576 fi
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588 # This can be used to rebuild libtool when needed
8589 LIBTOOL_DEPS="$ltmain"
8590
8591 # Always use our own libtool.
8592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619 test -z "$LN_S" && LN_S="ln -s"
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634 if test -n "${ZSH_VERSION+set}" ; then
8635 setopt NO_GLOB_SUBST
8636 fi
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8639 $as_echo_n "checking for objdir... " >&6; }
8640 if test "${lt_cv_objdir+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 rm -f .libs 2>/dev/null
8644 mkdir .libs 2>/dev/null
8645 if test -d .libs; then
8646 lt_cv_objdir=.libs
8647 else
8648 # MS-DOS does not allow filenames that begin with a dot.
8649 lt_cv_objdir=_libs
8650 fi
8651 rmdir .libs 2>/dev/null
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8654 $as_echo "$lt_cv_objdir" >&6; }
8655 objdir=$lt_cv_objdir
8656
8657
8658
8659
8660
8661 cat >>confdefs.h <<_ACEOF
8662 #define LT_OBJDIR "$lt_cv_objdir/"
8663 _ACEOF
8664
8665
8666
8667
8668 case $host_os in
8669 aix3*)
8670 # AIX sometimes has problems with the GCC collect2 program. For some
8671 # reason, if we set the COLLECT_NAMES environment variable, the problems
8672 # vanish in a puff of smoke.
8673 if test "X${COLLECT_NAMES+set}" != Xset; then
8674 COLLECT_NAMES=
8675 export COLLECT_NAMES
8676 fi
8677 ;;
8678 esac
8679
8680 # Global variables:
8681 ofile=libtool
8682 can_build_shared=yes
8683
8684 # All known linkers require a `.a' archive for static linking (except MSVC,
8685 # which needs '.lib').
8686 libext=a
8687
8688 with_gnu_ld="$lt_cv_prog_gnu_ld"
8689
8690 old_CC="$CC"
8691 old_CFLAGS="$CFLAGS"
8692
8693 # Set sane defaults for various variables
8694 test -z "$CC" && CC=cc
8695 test -z "$LTCC" && LTCC=$CC
8696 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8697 test -z "$LD" && LD=ld
8698 test -z "$ac_objext" && ac_objext=o
8699
8700 for cc_temp in $compiler""; do
8701 case $cc_temp in
8702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8704 \-*) ;;
8705 *) break;;
8706 esac
8707 done
8708 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8709
8710
8711 # Only perform the check for file, if the check method requires it
8712 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8713 case $deplibs_check_method in
8714 file_magic*)
8715 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8717 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 case $MAGIC_CMD in
8722 [\\/*] | ?:[\\/]*)
8723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8724 ;;
8725 *)
8726 lt_save_MAGIC_CMD="$MAGIC_CMD"
8727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8728 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8729 for ac_dir in $ac_dummy; do
8730 IFS="$lt_save_ifs"
8731 test -z "$ac_dir" && ac_dir=.
8732 if test -f $ac_dir/${ac_tool_prefix}file; then
8733 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8734 if test -n "$file_magic_test_file"; then
8735 case $deplibs_check_method in
8736 "file_magic "*)
8737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8740 $EGREP "$file_magic_regex" > /dev/null; then
8741 :
8742 else
8743 cat <<_LT_EOF 1>&2
8744
8745 *** Warning: the command libtool uses to detect shared libraries,
8746 *** $file_magic_cmd, produces output that libtool cannot recognize.
8747 *** The result is that libtool may fail to recognize shared libraries
8748 *** as such. This will affect the creation of libtool libraries that
8749 *** depend on shared libraries, but programs linked with such libtool
8750 *** libraries will work regardless of this problem. Nevertheless, you
8751 *** may want to report the problem to your system manager and/or to
8752 *** bug-libtool@gnu.org
8753
8754 _LT_EOF
8755 fi ;;
8756 esac
8757 fi
8758 break
8759 fi
8760 done
8761 IFS="$lt_save_ifs"
8762 MAGIC_CMD="$lt_save_MAGIC_CMD"
8763 ;;
8764 esac
8765 fi
8766
8767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8768 if test -n "$MAGIC_CMD"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8770 $as_echo "$MAGIC_CMD" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777
8778
8779
8780 if test -z "$lt_cv_path_MAGIC_CMD"; then
8781 if test -n "$ac_tool_prefix"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8783 $as_echo_n "checking for file... " >&6; }
8784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 case $MAGIC_CMD in
8788 [\\/*] | ?:[\\/]*)
8789 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8790 ;;
8791 *)
8792 lt_save_MAGIC_CMD="$MAGIC_CMD"
8793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8795 for ac_dir in $ac_dummy; do
8796 IFS="$lt_save_ifs"
8797 test -z "$ac_dir" && ac_dir=.
8798 if test -f $ac_dir/file; then
8799 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8800 if test -n "$file_magic_test_file"; then
8801 case $deplibs_check_method in
8802 "file_magic "*)
8803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8806 $EGREP "$file_magic_regex" > /dev/null; then
8807 :
8808 else
8809 cat <<_LT_EOF 1>&2
8810
8811 *** Warning: the command libtool uses to detect shared libraries,
8812 *** $file_magic_cmd, produces output that libtool cannot recognize.
8813 *** The result is that libtool may fail to recognize shared libraries
8814 *** as such. This will affect the creation of libtool libraries that
8815 *** depend on shared libraries, but programs linked with such libtool
8816 *** libraries will work regardless of this problem. Nevertheless, you
8817 *** may want to report the problem to your system manager and/or to
8818 *** bug-libtool@gnu.org
8819
8820 _LT_EOF
8821 fi ;;
8822 esac
8823 fi
8824 break
8825 fi
8826 done
8827 IFS="$lt_save_ifs"
8828 MAGIC_CMD="$lt_save_MAGIC_CMD"
8829 ;;
8830 esac
8831 fi
8832
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if test -n "$MAGIC_CMD"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8836 $as_echo "$MAGIC_CMD" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842
8843 else
8844 MAGIC_CMD=:
8845 fi
8846 fi
8847
8848 fi
8849 ;;
8850 esac
8851
8852 # Use C for the default configuration in the libtool script
8853
8854 lt_save_CC="$CC"
8855 ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861
8862 # Source file extension for C test sources.
8863 ac_ext=c
8864
8865 # Object file extension for compiled C test sources.
8866 objext=o
8867 objext=$objext
8868
8869 # Code to be used in simple compile tests
8870 lt_simple_compile_test_code="int some_variable = 0;"
8871
8872 # Code to be used in simple link tests
8873 lt_simple_link_test_code='int main(){return(0);}'
8874
8875
8876
8877
8878
8879
8880
8881 # If no C compiler was specified, use CC.
8882 LTCC=${LTCC-"$CC"}
8883
8884 # If no C compiler flags were specified, use CFLAGS.
8885 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8886
8887 # Allow CC to be a program name with arguments.
8888 compiler=$CC
8889
8890 # Save the default compiler, since it gets overwritten when the other
8891 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8892 compiler_DEFAULT=$CC
8893
8894 # save warnings/boilerplate of simple test code
8895 ac_outfile=conftest.$ac_objext
8896 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8898 _lt_compiler_boilerplate=`cat conftest.err`
8899 $RM conftest*
8900
8901 ac_outfile=conftest.$ac_objext
8902 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8904 _lt_linker_boilerplate=`cat conftest.err`
8905 $RM -r conftest*
8906
8907
8908 ## CAVEAT EMPTOR:
8909 ## There is no encapsulation within the following macros, do not change
8910 ## the running order or otherwise move them around unless you know exactly
8911 ## what you are doing...
8912 if test -n "$compiler"; then
8913
8914 lt_prog_compiler_no_builtin_flag=
8915
8916 if test "$GCC" = yes; then
8917 case $cc_basename in
8918 nvcc*)
8919 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8920 *)
8921 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8922 esac
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8925 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8926 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 lt_cv_prog_compiler_rtti_exceptions=no
8930 ac_outfile=conftest.$ac_objext
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932 lt_compiler_flag="-fno-rtti -fno-exceptions"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 # The option is referenced via a variable to avoid confusing sed.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>conftest.err)
8944 ac_status=$?
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s "$ac_outfile"; then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings other than the usual output.
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_rtti_exceptions=yes
8954 fi
8955 fi
8956 $RM conftest*
8957
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8960 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8961
8962 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8964 else
8965 :
8966 fi
8967
8968 fi
8969
8970
8971
8972
8973
8974
8975 lt_prog_compiler_wl=
8976 lt_prog_compiler_pic=
8977 lt_prog_compiler_static=
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8980 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8981
8982 if test "$GCC" = yes; then
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_static='-static'
8985
8986 case $host_os in
8987 aix*)
8988 # All AIX code is PIC.
8989 if test "$host_cpu" = ia64; then
8990 # AIX 5 now supports IA64 processor
8991 lt_prog_compiler_static='-Bstatic'
8992 fi
8993 lt_prog_compiler_pic='-fPIC'
8994 ;;
8995
8996 amigaos*)
8997 case $host_cpu in
8998 powerpc)
8999 # see comment about AmigaOS4 .so support
9000 lt_prog_compiler_pic='-fPIC'
9001 ;;
9002 m68k)
9003 # FIXME: we need at least 68020 code to build shared libraries, but
9004 # adding the `-m68020' flag to GCC prevents building anything better,
9005 # like `-m68040'.
9006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9007 ;;
9008 esac
9009 ;;
9010
9011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9012 # PIC is the default for these OSes.
9013 ;;
9014
9015 mingw* | cygwin* | pw32* | os2* | cegcc*)
9016 # This hack is so that the source file can tell whether it is being
9017 # built for inclusion in a dll (and should export symbols for example).
9018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9019 # (--disable-auto-import) libraries
9020 lt_prog_compiler_pic='-DDLL_EXPORT'
9021 ;;
9022
9023 darwin* | rhapsody*)
9024 # PIC is the default on this platform
9025 # Common symbols not allowed in MH_DYLIB files
9026 lt_prog_compiler_pic='-fno-common'
9027 ;;
9028
9029 haiku*)
9030 # PIC is the default for Haiku.
9031 # The "-static" flag exists, but is broken.
9032 lt_prog_compiler_static=
9033 ;;
9034
9035 hpux*)
9036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9038 # sets the default TLS model and affects inlining.
9039 case $host_cpu in
9040 hppa*64*)
9041 # +Z the default
9042 ;;
9043 *)
9044 lt_prog_compiler_pic='-fPIC'
9045 ;;
9046 esac
9047 ;;
9048
9049 interix[3-9]*)
9050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9051 # Instead, we relocate shared libraries at runtime.
9052 ;;
9053
9054 msdosdjgpp*)
9055 # Just because we use GCC doesn't mean we suddenly get shared libraries
9056 # on systems that don't support them.
9057 lt_prog_compiler_can_build_shared=no
9058 enable_shared=no
9059 ;;
9060
9061 *nto* | *qnx*)
9062 # QNX uses GNU C++, but need to define -shared option too, otherwise
9063 # it will coredump.
9064 lt_prog_compiler_pic='-fPIC -shared'
9065 ;;
9066
9067 sysv4*MP*)
9068 if test -d /usr/nec; then
9069 lt_prog_compiler_pic=-Kconform_pic
9070 fi
9071 ;;
9072
9073 *)
9074 lt_prog_compiler_pic='-fPIC'
9075 ;;
9076 esac
9077
9078 case $cc_basename in
9079 nvcc*) # Cuda Compiler Driver 2.2
9080 lt_prog_compiler_wl='-Xlinker '
9081 lt_prog_compiler_pic='-Xcompiler -fPIC'
9082 ;;
9083 esac
9084 else
9085 # PORTME Check for flag to pass linker flags through the system compiler.
9086 case $host_os in
9087 aix*)
9088 lt_prog_compiler_wl='-Wl,'
9089 if test "$host_cpu" = ia64; then
9090 # AIX 5 now supports IA64 processor
9091 lt_prog_compiler_static='-Bstatic'
9092 else
9093 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9094 fi
9095 ;;
9096
9097 mingw* | cygwin* | pw32* | os2* | cegcc*)
9098 # This hack is so that the source file can tell whether it is being
9099 # built for inclusion in a dll (and should export symbols for example).
9100 lt_prog_compiler_pic='-DDLL_EXPORT'
9101 ;;
9102
9103 hpux9* | hpux10* | hpux11*)
9104 lt_prog_compiler_wl='-Wl,'
9105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9106 # not for PA HP-UX.
9107 case $host_cpu in
9108 hppa*64*|ia64*)
9109 # +Z the default
9110 ;;
9111 *)
9112 lt_prog_compiler_pic='+Z'
9113 ;;
9114 esac
9115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9116 lt_prog_compiler_static='${wl}-a ${wl}archive'
9117 ;;
9118
9119 irix5* | irix6* | nonstopux*)
9120 lt_prog_compiler_wl='-Wl,'
9121 # PIC (with -KPIC) is the default.
9122 lt_prog_compiler_static='-non_shared'
9123 ;;
9124
9125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9126 case $cc_basename in
9127 # old Intel for x86_64 which still supported -KPIC.
9128 ecc*)
9129 lt_prog_compiler_wl='-Wl,'
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-static'
9132 ;;
9133 # icc used to be incompatible with GCC.
9134 # ICC 10 doesn't accept -KPIC any more.
9135 icc* | ifort*)
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_pic='-fPIC'
9138 lt_prog_compiler_static='-static'
9139 ;;
9140 # Lahey Fortran 8.1.
9141 lf95*)
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='--shared'
9144 lt_prog_compiler_static='--static'
9145 ;;
9146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9147 # Portland Group compilers (*not* the Pentium gcc compiler,
9148 # which looks to be a dead project)
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='-fpic'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153 ccc*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # All Alpha code is PIC.
9156 lt_prog_compiler_static='-non_shared'
9157 ;;
9158 xl* | bgxl* | bgf* | mpixl*)
9159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-qpic'
9162 lt_prog_compiler_static='-qstaticlink'
9163 ;;
9164 *)
9165 case `$CC -V 2>&1 | sed 5q` in
9166 *Sun\ F* | *Sun*Fortran*)
9167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9168 lt_prog_compiler_pic='-KPIC'
9169 lt_prog_compiler_static='-Bstatic'
9170 lt_prog_compiler_wl=''
9171 ;;
9172 *Sun\ C*)
9173 # Sun C 5.9
9174 lt_prog_compiler_pic='-KPIC'
9175 lt_prog_compiler_static='-Bstatic'
9176 lt_prog_compiler_wl='-Wl,'
9177 ;;
9178 esac
9179 ;;
9180 esac
9181 ;;
9182
9183 newsos6)
9184 lt_prog_compiler_pic='-KPIC'
9185 lt_prog_compiler_static='-Bstatic'
9186 ;;
9187
9188 *nto* | *qnx*)
9189 # QNX uses GNU C++, but need to define -shared option too, otherwise
9190 # it will coredump.
9191 lt_prog_compiler_pic='-fPIC -shared'
9192 ;;
9193
9194 osf3* | osf4* | osf5*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # All OSF/1 code is PIC.
9197 lt_prog_compiler_static='-non_shared'
9198 ;;
9199
9200 rdos*)
9201 lt_prog_compiler_static='-non_shared'
9202 ;;
9203
9204 solaris*)
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 case $cc_basename in
9208 f77* | f90* | f95*)
9209 lt_prog_compiler_wl='-Qoption ld ';;
9210 *)
9211 lt_prog_compiler_wl='-Wl,';;
9212 esac
9213 ;;
9214
9215 sunos4*)
9216 lt_prog_compiler_wl='-Qoption ld '
9217 lt_prog_compiler_pic='-PIC'
9218 lt_prog_compiler_static='-Bstatic'
9219 ;;
9220
9221 sysv4 | sysv4.2uw2* | sysv4.3*)
9222 lt_prog_compiler_wl='-Wl,'
9223 lt_prog_compiler_pic='-KPIC'
9224 lt_prog_compiler_static='-Bstatic'
9225 ;;
9226
9227 sysv4*MP*)
9228 if test -d /usr/nec ;then
9229 lt_prog_compiler_pic='-Kconform_pic'
9230 lt_prog_compiler_static='-Bstatic'
9231 fi
9232 ;;
9233
9234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_pic='-KPIC'
9237 lt_prog_compiler_static='-Bstatic'
9238 ;;
9239
9240 unicos*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_can_build_shared=no
9243 ;;
9244
9245 uts4*)
9246 lt_prog_compiler_pic='-pic'
9247 lt_prog_compiler_static='-Bstatic'
9248 ;;
9249
9250 *)
9251 lt_prog_compiler_can_build_shared=no
9252 ;;
9253 esac
9254 fi
9255
9256 case $host_os in
9257 # For platforms which do not support PIC, -DPIC is meaningless:
9258 *djgpp*)
9259 lt_prog_compiler_pic=
9260 ;;
9261 *)
9262 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9263 ;;
9264 esac
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9266 $as_echo "$lt_prog_compiler_pic" >&6; }
9267
9268
9269
9270
9271
9272
9273 #
9274 # Check to make sure the PIC flag actually works.
9275 #
9276 if test -n "$lt_prog_compiler_pic"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9278 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9279 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 lt_cv_prog_compiler_pic_works=no
9283 ac_outfile=conftest.$ac_objext
9284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9286 # Insert the option either (1) after the last *FLAGS variable, or
9287 # (2) before a word containing "conftest.", or (3) at the end.
9288 # Note that $ac_compile itself does not contain backslashes and begins
9289 # with a dollar sign (not a hyphen), so the echo should work correctly.
9290 # The option is referenced via a variable to avoid confusing sed.
9291 lt_compile=`echo "$ac_compile" | $SED \
9292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294 -e 's:$: $lt_compiler_flag:'`
9295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9296 (eval "$lt_compile" 2>conftest.err)
9297 ac_status=$?
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 if (exit $ac_status) && test -s "$ac_outfile"; then
9301 # The compiler can only warn and ignore the option if not recognized
9302 # So say no if there are warnings other than the usual output.
9303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9306 lt_cv_prog_compiler_pic_works=yes
9307 fi
9308 fi
9309 $RM conftest*
9310
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9313 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9314
9315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9316 case $lt_prog_compiler_pic in
9317 "" | " "*) ;;
9318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9319 esac
9320 else
9321 lt_prog_compiler_pic=
9322 lt_prog_compiler_can_build_shared=no
9323 fi
9324
9325 fi
9326
9327
9328
9329
9330
9331
9332 #
9333 # Check to make sure the static flag actually works.
9334 #
9335 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9337 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9338 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 lt_cv_prog_compiler_static_works=no
9342 save_LDFLAGS="$LDFLAGS"
9343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9344 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9346 # The linker can only warn and ignore the option if not recognized
9347 # So say no if there are warnings
9348 if test -s conftest.err; then
9349 # Append any errors to the config.log.
9350 cat conftest.err 1>&5
9351 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9353 if diff conftest.exp conftest.er2 >/dev/null; then
9354 lt_cv_prog_compiler_static_works=yes
9355 fi
9356 else
9357 lt_cv_prog_compiler_static_works=yes
9358 fi
9359 fi
9360 $RM -r conftest*
9361 LDFLAGS="$save_LDFLAGS"
9362
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9365 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9366
9367 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9368 :
9369 else
9370 lt_prog_compiler_static=
9371 fi
9372
9373
9374
9375
9376
9377
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9380 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9381 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 lt_cv_prog_compiler_c_o=no
9385 $RM -r conftest 2>/dev/null
9386 mkdir conftest
9387 cd conftest
9388 mkdir out
9389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9390
9391 lt_compiler_flag="-o out/conftest2.$ac_objext"
9392 # Insert the option either (1) after the last *FLAGS variable, or
9393 # (2) before a word containing "conftest.", or (3) at the end.
9394 # Note that $ac_compile itself does not contain backslashes and begins
9395 # with a dollar sign (not a hyphen), so the echo should work correctly.
9396 lt_compile=`echo "$ac_compile" | $SED \
9397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9399 -e 's:$: $lt_compiler_flag:'`
9400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9401 (eval "$lt_compile" 2>out/conftest.err)
9402 ac_status=$?
9403 cat out/conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9406 then
9407 # The compiler can only warn and ignore the option if not recognized
9408 # So say no if there are warnings
9409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9412 lt_cv_prog_compiler_c_o=yes
9413 fi
9414 fi
9415 chmod u+w . 2>&5
9416 $RM conftest*
9417 # SGI C++ compiler will create directory out/ii_files/ for
9418 # template instantiation
9419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9420 $RM out/* && rmdir out
9421 cd ..
9422 $RM -r conftest
9423 $RM conftest*
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9427 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9428
9429
9430
9431
9432
9433
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9436 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 lt_cv_prog_compiler_c_o=no
9440 $RM -r conftest 2>/dev/null
9441 mkdir conftest
9442 cd conftest
9443 mkdir out
9444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9445
9446 lt_compiler_flag="-o out/conftest2.$ac_objext"
9447 # Insert the option either (1) after the last *FLAGS variable, or
9448 # (2) before a word containing "conftest.", or (3) at the end.
9449 # Note that $ac_compile itself does not contain backslashes and begins
9450 # with a dollar sign (not a hyphen), so the echo should work correctly.
9451 lt_compile=`echo "$ac_compile" | $SED \
9452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9454 -e 's:$: $lt_compiler_flag:'`
9455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9456 (eval "$lt_compile" 2>out/conftest.err)
9457 ac_status=$?
9458 cat out/conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9461 then
9462 # The compiler can only warn and ignore the option if not recognized
9463 # So say no if there are warnings
9464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9467 lt_cv_prog_compiler_c_o=yes
9468 fi
9469 fi
9470 chmod u+w . 2>&5
9471 $RM conftest*
9472 # SGI C++ compiler will create directory out/ii_files/ for
9473 # template instantiation
9474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9475 $RM out/* && rmdir out
9476 cd ..
9477 $RM -r conftest
9478 $RM conftest*
9479
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9482 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9483
9484
9485
9486
9487 hard_links="nottested"
9488 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9489 # do not overwrite the value of need_locks provided by the user
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9491 $as_echo_n "checking if we can lock with hard links... " >&6; }
9492 hard_links=yes
9493 $RM conftest*
9494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9495 touch conftest.a
9496 ln conftest.a conftest.b 2>&5 || hard_links=no
9497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9499 $as_echo "$hard_links" >&6; }
9500 if test "$hard_links" = no; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9502 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9503 need_locks=warn
9504 fi
9505 else
9506 need_locks=no
9507 fi
9508
9509
9510
9511
9512
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9515 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9516
9517 runpath_var=
9518 allow_undefined_flag=
9519 always_export_symbols=no
9520 archive_cmds=
9521 archive_expsym_cmds=
9522 compiler_needs_object=no
9523 enable_shared_with_static_runtimes=no
9524 export_dynamic_flag_spec=
9525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9526 hardcode_automatic=no
9527 hardcode_direct=no
9528 hardcode_direct_absolute=no
9529 hardcode_libdir_flag_spec=
9530 hardcode_libdir_flag_spec_ld=
9531 hardcode_libdir_separator=
9532 hardcode_minus_L=no
9533 hardcode_shlibpath_var=unsupported
9534 inherit_rpath=no
9535 link_all_deplibs=unknown
9536 module_cmds=
9537 module_expsym_cmds=
9538 old_archive_from_new_cmds=
9539 old_archive_from_expsyms_cmds=
9540 thread_safe_flag_spec=
9541 whole_archive_flag_spec=
9542 # include_expsyms should be a list of space-separated symbols to be *always*
9543 # included in the symbol list
9544 include_expsyms=
9545 # exclude_expsyms can be an extended regexp of symbols to exclude
9546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9548 # as well as any symbol that contains `d'.
9549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9551 # platforms (ab)use it in PIC code, but their linkers get confused if
9552 # the symbol is explicitly referenced. Since portable code cannot
9553 # rely on this symbol name, it's probably fine to never include it in
9554 # preloaded symbol tables.
9555 # Exclude shared library initialization/finalization symbols.
9556 extract_expsyms_cmds=
9557
9558 case $host_os in
9559 cygwin* | mingw* | pw32* | cegcc*)
9560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9561 # When not using gcc, we currently assume that we are using
9562 # Microsoft Visual C++.
9563 if test "$GCC" != yes; then
9564 with_gnu_ld=no
9565 fi
9566 ;;
9567 interix*)
9568 # we just hope/assume this is gcc and not c89 (= MSVC++)
9569 with_gnu_ld=yes
9570 ;;
9571 openbsd*)
9572 with_gnu_ld=no
9573 ;;
9574 esac
9575
9576 ld_shlibs=yes
9577
9578 # On some targets, GNU ld is compatible enough with the native linker
9579 # that we're better off using the native interface for both.
9580 lt_use_gnu_ld_interface=no
9581 if test "$with_gnu_ld" = yes; then
9582 case $host_os in
9583 aix*)
9584 # The AIX port of GNU ld has always aspired to compatibility
9585 # with the native linker. However, as the warning in the GNU ld
9586 # block says, versions before 2.19.5* couldn't really create working
9587 # shared libraries, regardless of the interface used.
9588 case `$LD -v 2>&1` in
9589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9592 *)
9593 lt_use_gnu_ld_interface=yes
9594 ;;
9595 esac
9596 ;;
9597 *)
9598 lt_use_gnu_ld_interface=yes
9599 ;;
9600 esac
9601 fi
9602
9603 if test "$lt_use_gnu_ld_interface" = yes; then
9604 # If archive_cmds runs LD, not CC, wlarc should be empty
9605 wlarc='${wl}'
9606
9607 # Set some defaults for GNU ld with shared library support. These
9608 # are reset later if shared libraries are not supported. Putting them
9609 # here allows them to be overridden if necessary.
9610 runpath_var=LD_RUN_PATH
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 export_dynamic_flag_spec='${wl}--export-dynamic'
9613 # ancient GNU ld didn't support --whole-archive et. al.
9614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9615 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9616 else
9617 whole_archive_flag_spec=
9618 fi
9619 supports_anon_versioning=no
9620 case `$LD -v 2>&1` in
9621 *GNU\ gold*) supports_anon_versioning=yes ;;
9622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9625 *\ 2.11.*) ;; # other 2.11 versions
9626 *) supports_anon_versioning=yes ;;
9627 esac
9628
9629 # See if GNU ld supports shared libraries.
9630 case $host_os in
9631 aix[3-9]*)
9632 # On AIX/PPC, the GNU linker is very broken
9633 if test "$host_cpu" != ia64; then
9634 ld_shlibs=no
9635 cat <<_LT_EOF 1>&2
9636
9637 *** Warning: the GNU linker, at least up to release 2.19, is reported
9638 *** to be unable to reliably create shared libraries on AIX.
9639 *** Therefore, libtool is disabling shared libraries support. If you
9640 *** really care for shared libraries, you may want to install binutils
9641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9642 *** You will then need to restart the configuration process.
9643
9644 _LT_EOF
9645 fi
9646 ;;
9647
9648 amigaos*)
9649 case $host_cpu in
9650 powerpc)
9651 # see comment about AmigaOS4 .so support
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds=''
9654 ;;
9655 m68k)
9656 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)'
9657 hardcode_libdir_flag_spec='-L$libdir'
9658 hardcode_minus_L=yes
9659 ;;
9660 esac
9661 ;;
9662
9663 beos*)
9664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665 allow_undefined_flag=unsupported
9666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9667 # support --undefined. This deserves some investigation. FIXME
9668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 else
9670 ld_shlibs=no
9671 fi
9672 ;;
9673
9674 cygwin* | mingw* | pw32* | cegcc*)
9675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9676 # as there is no search path for DLLs.
9677 hardcode_libdir_flag_spec='-L$libdir'
9678 export_dynamic_flag_spec='${wl}--export-all-symbols'
9679 allow_undefined_flag=unsupported
9680 always_export_symbols=no
9681 enable_shared_with_static_runtimes=yes
9682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9683
9684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9686 # If the export-symbols file already is a .def file (1st line
9687 # is EXPORTS), use it as is; otherwise, prepend...
9688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9689 cp $export_symbols $output_objdir/$soname.def;
9690 else
9691 echo EXPORTS > $output_objdir/$soname.def;
9692 cat $export_symbols >> $output_objdir/$soname.def;
9693 fi~
9694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9695 else
9696 ld_shlibs=no
9697 fi
9698 ;;
9699
9700 haiku*)
9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 link_all_deplibs=yes
9703 ;;
9704
9705 interix[3-9]*)
9706 hardcode_direct=no
9707 hardcode_shlibpath_var=no
9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9709 export_dynamic_flag_spec='${wl}-E'
9710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9711 # Instead, shared libraries are loaded at an image base (0x10000000 by
9712 # default) and relocated if they conflict, which is a slow very memory
9713 # consuming and fragmenting process. To avoid this, we pick a random,
9714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9717 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'
9718 ;;
9719
9720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9721 tmp_diet=no
9722 if test "$host_os" = linux-dietlibc; then
9723 case $cc_basename in
9724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9725 esac
9726 fi
9727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9728 && test "$tmp_diet" = no
9729 then
9730 tmp_addflag=' $pic_flag'
9731 tmp_sharedflag='-shared'
9732 case $cc_basename,$host_cpu in
9733 pgcc*) # Portland Group C compiler
9734 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'
9735 tmp_addflag=' $pic_flag'
9736 ;;
9737 pgf77* | pgf90* | pgf95* | pgfortran*)
9738 # Portland Group f77 and f90 compilers
9739 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'
9740 tmp_addflag=' $pic_flag -Mnomain' ;;
9741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9742 tmp_addflag=' -i_dynamic' ;;
9743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9744 tmp_addflag=' -i_dynamic -nofor_main' ;;
9745 ifc* | ifort*) # Intel Fortran compiler
9746 tmp_addflag=' -nofor_main' ;;
9747 lf95*) # Lahey Fortran 8.1
9748 whole_archive_flag_spec=
9749 tmp_sharedflag='--shared' ;;
9750 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9751 tmp_sharedflag='-qmkshrobj'
9752 tmp_addflag= ;;
9753 nvcc*) # Cuda Compiler Driver 2.2
9754 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'
9755 compiler_needs_object=yes
9756 ;;
9757 esac
9758 case `$CC -V 2>&1 | sed 5q` in
9759 *Sun\ C*) # Sun C 5.9
9760 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'
9761 compiler_needs_object=yes
9762 tmp_sharedflag='-G' ;;
9763 *Sun\ F*) # Sun Fortran 8.3
9764 tmp_sharedflag='-G' ;;
9765 esac
9766 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767
9768 if test "x$supports_anon_versioning" = xyes; then
9769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9771 echo "local: *; };" >> $output_objdir/$libname.ver~
9772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9773 fi
9774
9775 case $cc_basename in
9776 xlf* | bgf* | bgxlf* | mpixlf*)
9777 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9778 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9779 hardcode_libdir_flag_spec=
9780 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9781 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9782 if test "x$supports_anon_versioning" = xyes; then
9783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9785 echo "local: *; };" >> $output_objdir/$libname.ver~
9786 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9787 fi
9788 ;;
9789 esac
9790 else
9791 ld_shlibs=no
9792 fi
9793 ;;
9794
9795 netbsd*)
9796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9798 wlarc=
9799 else
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802 fi
9803 ;;
9804
9805 solaris*)
9806 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9807 ld_shlibs=no
9808 cat <<_LT_EOF 1>&2
9809
9810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9811 *** create shared libraries on Solaris systems. Therefore, libtool
9812 *** is disabling shared libraries support. We urge you to upgrade GNU
9813 *** binutils to release 2.9.1 or newer. Another option is to modify
9814 *** your PATH or compiler configuration so that the native linker is
9815 *** used, and then restart.
9816
9817 _LT_EOF
9818 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9821 else
9822 ld_shlibs=no
9823 fi
9824 ;;
9825
9826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9827 case `$LD -v 2>&1` in
9828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9829 ld_shlibs=no
9830 cat <<_LT_EOF 1>&2
9831
9832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9833 *** reliably create shared libraries on SCO systems. Therefore, libtool
9834 *** is disabling shared libraries support. We urge you to upgrade GNU
9835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9836 *** your PATH or compiler configuration so that the native linker is
9837 *** used, and then restart.
9838
9839 _LT_EOF
9840 ;;
9841 *)
9842 # For security reasons, it is highly recommended that you always
9843 # use absolute paths for naming shared libraries, and exclude the
9844 # DT_RUNPATH tag from executables and libraries. But doing so
9845 # requires that you compile everything twice, which is a pain.
9846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850 else
9851 ld_shlibs=no
9852 fi
9853 ;;
9854 esac
9855 ;;
9856
9857 sunos4*)
9858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9859 wlarc=
9860 hardcode_direct=yes
9861 hardcode_shlibpath_var=no
9862 ;;
9863
9864 *)
9865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9868 else
9869 ld_shlibs=no
9870 fi
9871 ;;
9872 esac
9873
9874 if test "$ld_shlibs" = no; then
9875 runpath_var=
9876 hardcode_libdir_flag_spec=
9877 export_dynamic_flag_spec=
9878 whole_archive_flag_spec=
9879 fi
9880 else
9881 # PORTME fill in a description of your system's linker (not GNU ld)
9882 case $host_os in
9883 aix3*)
9884 allow_undefined_flag=unsupported
9885 always_export_symbols=yes
9886 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'
9887 # Note: this linker hardcodes the directories in LIBPATH if there
9888 # are no directories specified by -L.
9889 hardcode_minus_L=yes
9890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9891 # Neither direct hardcoding nor static linking is supported with a
9892 # broken collect2.
9893 hardcode_direct=unsupported
9894 fi
9895 ;;
9896
9897 aix[4-9]*)
9898 if test "$host_cpu" = ia64; then
9899 # On IA64, the linker does run time linking by default, so we don't
9900 # have to do anything special.
9901 aix_use_runtimelinking=no
9902 exp_sym_flag='-Bexport'
9903 no_entry_flag=""
9904 else
9905 # If we're using GNU nm, then we don't want the "-C" option.
9906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9907 # Also, AIX nm treats weak defined symbols like other global
9908 # defined symbols, whereas GNU nm marks them as "W".
9909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9910 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'
9911 else
9912 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'
9913 fi
9914 aix_use_runtimelinking=no
9915
9916 # Test if we are trying to use run time linking or normal
9917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9918 # need to do runtime linking.
9919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9920 for ld_flag in $LDFLAGS; do
9921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9922 aix_use_runtimelinking=yes
9923 break
9924 fi
9925 done
9926 ;;
9927 esac
9928
9929 exp_sym_flag='-bexport'
9930 no_entry_flag='-bnoentry'
9931 fi
9932
9933 # When large executables or shared objects are built, AIX ld can
9934 # have problems creating the table of contents. If linking a library
9935 # or program results in "error TOC overflow" add -mminimal-toc to
9936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9938
9939 archive_cmds=''
9940 hardcode_direct=yes
9941 hardcode_direct_absolute=yes
9942 hardcode_libdir_separator=':'
9943 link_all_deplibs=yes
9944 file_list_spec='${wl}-f,'
9945
9946 if test "$GCC" = yes; then
9947 case $host_os in aix4.[012]|aix4.[012].*)
9948 # We only want to do this on AIX 4.2 and lower, the check
9949 # below for broken collect2 doesn't work under 4.3+
9950 collect2name=`${CC} -print-prog-name=collect2`
9951 if test -f "$collect2name" &&
9952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9953 then
9954 # We have reworked collect2
9955 :
9956 else
9957 # We have old collect2
9958 hardcode_direct=unsupported
9959 # It fails to find uninstalled libraries when the uninstalled
9960 # path is not listed in the libpath. Setting hardcode_minus_L
9961 # to unsupported forces relinking
9962 hardcode_minus_L=yes
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_libdir_separator=
9965 fi
9966 ;;
9967 esac
9968 shared_flag='-shared'
9969 if test "$aix_use_runtimelinking" = yes; then
9970 shared_flag="$shared_flag "'${wl}-G'
9971 fi
9972 else
9973 # not using gcc
9974 if test "$host_cpu" = ia64; then
9975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9976 # chokes on -Wl,-G. The following line is correct:
9977 shared_flag='-G'
9978 else
9979 if test "$aix_use_runtimelinking" = yes; then
9980 shared_flag='${wl}-G'
9981 else
9982 shared_flag='${wl}-bM:SRE'
9983 fi
9984 fi
9985 fi
9986
9987 export_dynamic_flag_spec='${wl}-bexpall'
9988 # It seems that -bexpall does not export symbols beginning with
9989 # underscore (_), so it is better to generate a list of symbols to export.
9990 always_export_symbols=yes
9991 if test "$aix_use_runtimelinking" = yes; then
9992 # Warning - without using the other runtime loading flags (-brtl),
9993 # -berok will link without error, but may produce a broken library.
9994 allow_undefined_flag='-berok'
9995 # Determine the default libpath from the value encoded in an
9996 # empty executable.
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999
10000 int
10001 main ()
10002 {
10003
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_c_try_link "$LINENO"; then :
10009
10010 lt_aix_libpath_sed='
10011 /Import File Strings/,/^$/ {
10012 /^0/ {
10013 s/^0 *\(.*\)$/\1/
10014 p
10015 }
10016 }'
10017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 # Check for a 64-bit object if we didn't find anything.
10019 if test -z "$aix_libpath"; then
10020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10021 fi
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10026
10027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10028 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"
10029 else
10030 if test "$host_cpu" = ia64; then
10031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10032 allow_undefined_flag="-z nodefs"
10033 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"
10034 else
10035 # Determine the default libpath from the value encoded in an
10036 # empty executable.
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039
10040 int
10041 main ()
10042 {
10043
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049
10050 lt_aix_libpath_sed='
10051 /Import File Strings/,/^$/ {
10052 /^0/ {
10053 s/^0 *\(.*\)$/\1/
10054 p
10055 }
10056 }'
10057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058 # Check for a 64-bit object if we didn't find anything.
10059 if test -z "$aix_libpath"; then
10060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10061 fi
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10066
10067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10068 # Warning - without using the other run time loading flags,
10069 # -berok will link without error, but may produce a broken library.
10070 no_undefined_flag=' ${wl}-bernotok'
10071 allow_undefined_flag=' ${wl}-berok'
10072 if test "$with_gnu_ld" = yes; then
10073 # We only use this code for GNU lds that support --whole-archive.
10074 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10075 else
10076 # Exported symbols can be pulled into shared objects from archives
10077 whole_archive_flag_spec='$convenience'
10078 fi
10079 archive_cmds_need_lc=yes
10080 # This is similar to how AIX traditionally builds its shared libraries.
10081 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'
10082 fi
10083 fi
10084 ;;
10085
10086 amigaos*)
10087 case $host_cpu in
10088 powerpc)
10089 # see comment about AmigaOS4 .so support
10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091 archive_expsym_cmds=''
10092 ;;
10093 m68k)
10094 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)'
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10097 ;;
10098 esac
10099 ;;
10100
10101 bsdi[45]*)
10102 export_dynamic_flag_spec=-rdynamic
10103 ;;
10104
10105 cygwin* | mingw* | pw32* | cegcc*)
10106 # When not using gcc, we currently assume that we are using
10107 # Microsoft Visual C++.
10108 # hardcode_libdir_flag_spec is actually meaningless, as there is
10109 # no search path for DLLs.
10110 hardcode_libdir_flag_spec=' '
10111 allow_undefined_flag=unsupported
10112 # Tell ltmain to make .lib files, not .a files.
10113 libext=lib
10114 # Tell ltmain to make .dll files, not .so files.
10115 shrext_cmds=".dll"
10116 # FIXME: Setting linknames here is a bad hack.
10117 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10118 # The linker will automatically build a .lib file if we build a DLL.
10119 old_archive_from_new_cmds='true'
10120 # FIXME: Should let the user specify the lib program.
10121 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10122 fix_srcfile_path='`cygpath -w "$srcfile"`'
10123 enable_shared_with_static_runtimes=yes
10124 ;;
10125
10126 darwin* | rhapsody*)
10127
10128
10129 archive_cmds_need_lc=no
10130 hardcode_direct=no
10131 hardcode_automatic=yes
10132 hardcode_shlibpath_var=unsupported
10133 if test "$lt_cv_ld_force_load" = "yes"; then
10134 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\"`'
10135 else
10136 whole_archive_flag_spec=''
10137 fi
10138 link_all_deplibs=yes
10139 allow_undefined_flag="$_lt_dar_allow_undefined"
10140 case $cc_basename in
10141 ifort*) _lt_dar_can_shared=yes ;;
10142 *) _lt_dar_can_shared=$GCC ;;
10143 esac
10144 if test "$_lt_dar_can_shared" = "yes"; then
10145 output_verbose_link_cmd=func_echo_all
10146 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10147 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10148 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}"
10149 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}"
10150
10151 else
10152 ld_shlibs=no
10153 fi
10154
10155 ;;
10156
10157 dgux*)
10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_shlibpath_var=no
10161 ;;
10162
10163 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10164 # support. Future versions do this automatically, but an explicit c++rt0.o
10165 # does not break anything, and helps significantly (at the cost of a little
10166 # extra space).
10167 freebsd2.2*)
10168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10169 hardcode_libdir_flag_spec='-R$libdir'
10170 hardcode_direct=yes
10171 hardcode_shlibpath_var=no
10172 ;;
10173
10174 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10175 freebsd2.*)
10176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_direct=yes
10178 hardcode_minus_L=yes
10179 hardcode_shlibpath_var=no
10180 ;;
10181
10182 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10183 freebsd* | dragonfly*)
10184 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10185 hardcode_libdir_flag_spec='-R$libdir'
10186 hardcode_direct=yes
10187 hardcode_shlibpath_var=no
10188 ;;
10189
10190 hpux9*)
10191 if test "$GCC" = yes; then
10192 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'
10193 else
10194 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'
10195 fi
10196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_separator=:
10198 hardcode_direct=yes
10199
10200 # hardcode_minus_L: Not really in the search PATH,
10201 # but as the default location of the library.
10202 hardcode_minus_L=yes
10203 export_dynamic_flag_spec='${wl}-E'
10204 ;;
10205
10206 hpux10*)
10207 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10209 else
10210 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10211 fi
10212 if test "$with_gnu_ld" = no; then
10213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10214 hardcode_libdir_flag_spec_ld='+b $libdir'
10215 hardcode_libdir_separator=:
10216 hardcode_direct=yes
10217 hardcode_direct_absolute=yes
10218 export_dynamic_flag_spec='${wl}-E'
10219 # hardcode_minus_L: Not really in the search PATH,
10220 # but as the default location of the library.
10221 hardcode_minus_L=yes
10222 fi
10223 ;;
10224
10225 hpux11*)
10226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10227 case $host_cpu in
10228 hppa*64*)
10229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 ;;
10231 ia64*)
10232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10233 ;;
10234 *)
10235 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10236 ;;
10237 esac
10238 else
10239 case $host_cpu in
10240 hppa*64*)
10241 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 ;;
10243 ia64*)
10244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10245 ;;
10246 *)
10247
10248 # Older versions of the 11.00 compiler do not understand -b yet
10249 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10251 $as_echo_n "checking if $CC understands -b... " >&6; }
10252 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 lt_cv_prog_compiler__b=no
10256 save_LDFLAGS="$LDFLAGS"
10257 LDFLAGS="$LDFLAGS -b"
10258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10260 # The linker can only warn and ignore the option if not recognized
10261 # So say no if there are warnings
10262 if test -s conftest.err; then
10263 # Append any errors to the config.log.
10264 cat conftest.err 1>&5
10265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10267 if diff conftest.exp conftest.er2 >/dev/null; then
10268 lt_cv_prog_compiler__b=yes
10269 fi
10270 else
10271 lt_cv_prog_compiler__b=yes
10272 fi
10273 fi
10274 $RM -r conftest*
10275 LDFLAGS="$save_LDFLAGS"
10276
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10279 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10280
10281 if test x"$lt_cv_prog_compiler__b" = xyes; then
10282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10283 else
10284 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10285 fi
10286
10287 ;;
10288 esac
10289 fi
10290 if test "$with_gnu_ld" = no; then
10291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator=:
10293
10294 case $host_cpu in
10295 hppa*64*|ia64*)
10296 hardcode_direct=no
10297 hardcode_shlibpath_var=no
10298 ;;
10299 *)
10300 hardcode_direct=yes
10301 hardcode_direct_absolute=yes
10302 export_dynamic_flag_spec='${wl}-E'
10303
10304 # hardcode_minus_L: Not really in the search PATH,
10305 # but as the default location of the library.
10306 hardcode_minus_L=yes
10307 ;;
10308 esac
10309 fi
10310 ;;
10311
10312 irix5* | irix6* | nonstopux*)
10313 if test "$GCC" = yes; then
10314 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'
10315 # Try to use the -exported_symbol ld option, if it does not
10316 # work, assume that -exports_file does not work either and
10317 # implicitly export all symbols.
10318 save_LDFLAGS="$LDFLAGS"
10319 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 int foo(void) {}
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 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'
10326
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LDFLAGS="$save_LDFLAGS"
10331 else
10332 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'
10333 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'
10334 fi
10335 archive_cmds_need_lc='no'
10336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator=:
10338 inherit_rpath=yes
10339 link_all_deplibs=yes
10340 ;;
10341
10342 netbsd*)
10343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10345 else
10346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10347 fi
10348 hardcode_libdir_flag_spec='-R$libdir'
10349 hardcode_direct=yes
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 newsos6)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes
10356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10357 hardcode_libdir_separator=:
10358 hardcode_shlibpath_var=no
10359 ;;
10360
10361 *nto* | *qnx*)
10362 ;;
10363
10364 openbsd*)
10365 if test -f /usr/libexec/ld.so; then
10366 hardcode_direct=yes
10367 hardcode_shlibpath_var=no
10368 hardcode_direct_absolute=yes
10369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10373 export_dynamic_flag_spec='${wl}-E'
10374 else
10375 case $host_os in
10376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_libdir_flag_spec='-R$libdir'
10379 ;;
10380 *)
10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10383 ;;
10384 esac
10385 fi
10386 else
10387 ld_shlibs=no
10388 fi
10389 ;;
10390
10391 os2*)
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_minus_L=yes
10394 allow_undefined_flag=unsupported
10395 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'
10396 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10397 ;;
10398
10399 osf3*)
10400 if test "$GCC" = yes; then
10401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10402 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'
10403 else
10404 allow_undefined_flag=' -expect_unresolved \*'
10405 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'
10406 fi
10407 archive_cmds_need_lc='no'
10408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10409 hardcode_libdir_separator=:
10410 ;;
10411
10412 osf4* | osf5*) # as osf3* with the addition of -msym flag
10413 if test "$GCC" = yes; then
10414 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10415 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'
10416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10417 else
10418 allow_undefined_flag=' -expect_unresolved \*'
10419 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'
10420 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~
10421 $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'
10422
10423 # Both c and cxx compiler support -rpath directly
10424 hardcode_libdir_flag_spec='-rpath $libdir'
10425 fi
10426 archive_cmds_need_lc='no'
10427 hardcode_libdir_separator=:
10428 ;;
10429
10430 solaris*)
10431 no_undefined_flag=' -z defs'
10432 if test "$GCC" = yes; then
10433 wlarc='${wl}'
10434 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10436 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10437 else
10438 case `$CC -V 2>&1` in
10439 *"Compilers 5.0"*)
10440 wlarc=''
10441 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10444 ;;
10445 *)
10446 wlarc='${wl}'
10447 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10449 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10450 ;;
10451 esac
10452 fi
10453 hardcode_libdir_flag_spec='-R$libdir'
10454 hardcode_shlibpath_var=no
10455 case $host_os in
10456 solaris2.[0-5] | solaris2.[0-5].*) ;;
10457 *)
10458 # The compiler driver will combine and reorder linker options,
10459 # but understands `-z linker_flag'. GCC discards it without `$wl',
10460 # but is careful enough not to reorder.
10461 # Supported since Solaris 2.6 (maybe 2.5.1?)
10462 if test "$GCC" = yes; then
10463 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10464 else
10465 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10466 fi
10467 ;;
10468 esac
10469 link_all_deplibs=yes
10470 ;;
10471
10472 sunos4*)
10473 if test "x$host_vendor" = xsequent; then
10474 # Use $CC to link under sequent, because it throws in some extra .o
10475 # files that make .init and .fini sections work.
10476 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10477 else
10478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10479 fi
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_direct=yes
10482 hardcode_minus_L=yes
10483 hardcode_shlibpath_var=no
10484 ;;
10485
10486 sysv4)
10487 case $host_vendor in
10488 sni)
10489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490 hardcode_direct=yes # is this really true???
10491 ;;
10492 siemens)
10493 ## LD is ld it makes a PLAMLIB
10494 ## CC just makes a GrossModule.
10495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10496 reload_cmds='$CC -r -o $output$reload_objs'
10497 hardcode_direct=no
10498 ;;
10499 motorola)
10500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10502 ;;
10503 esac
10504 runpath_var='LD_RUN_PATH'
10505 hardcode_shlibpath_var=no
10506 ;;
10507
10508 sysv4.3*)
10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_shlibpath_var=no
10511 export_dynamic_flag_spec='-Bexport'
10512 ;;
10513
10514 sysv4*MP*)
10515 if test -d /usr/nec; then
10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517 hardcode_shlibpath_var=no
10518 runpath_var=LD_RUN_PATH
10519 hardcode_runpath_var=yes
10520 ld_shlibs=yes
10521 fi
10522 ;;
10523
10524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10525 no_undefined_flag='${wl}-z,text'
10526 archive_cmds_need_lc=no
10527 hardcode_shlibpath_var=no
10528 runpath_var='LD_RUN_PATH'
10529
10530 if test "$GCC" = yes; then
10531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 else
10534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 fi
10537 ;;
10538
10539 sysv5* | sco3.2v5* | sco5v6*)
10540 # Note: We can NOT use -z defs as we might desire, because we do not
10541 # link with -lc, and that would cause any symbols used from libc to
10542 # always be unresolved, which means just about no library would
10543 # ever link correctly. If we're not using GNU ld we use -z text
10544 # though, which does catch some bad symbols but isn't as heavy-handed
10545 # as -z defs.
10546 no_undefined_flag='${wl}-z,text'
10547 allow_undefined_flag='${wl}-z,nodefs'
10548 archive_cmds_need_lc=no
10549 hardcode_shlibpath_var=no
10550 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10551 hardcode_libdir_separator=':'
10552 link_all_deplibs=yes
10553 export_dynamic_flag_spec='${wl}-Bexport'
10554 runpath_var='LD_RUN_PATH'
10555
10556 if test "$GCC" = yes; then
10557 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 else
10560 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 fi
10563 ;;
10564
10565 uts4*)
10566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567 hardcode_libdir_flag_spec='-L$libdir'
10568 hardcode_shlibpath_var=no
10569 ;;
10570
10571 *)
10572 ld_shlibs=no
10573 ;;
10574 esac
10575
10576 if test x$host_vendor = xsni; then
10577 case $host in
10578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10579 export_dynamic_flag_spec='${wl}-Blargedynsym'
10580 ;;
10581 esac
10582 fi
10583 fi
10584
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10586 $as_echo "$ld_shlibs" >&6; }
10587 test "$ld_shlibs" = no && can_build_shared=no
10588
10589 with_gnu_ld=$with_gnu_ld
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 #
10606 # Do we need to explicitly link libc?
10607 #
10608 case "x$archive_cmds_need_lc" in
10609 x|xyes)
10610 # Assume -lc should be added
10611 archive_cmds_need_lc=yes
10612
10613 if test "$enable_shared" = yes && test "$GCC" = yes; then
10614 case $archive_cmds in
10615 *'~'*)
10616 # FIXME: we may have to deal with multi-command sequences.
10617 ;;
10618 '$CC '*)
10619 # Test whether the compiler implicitly links with -lc since on some
10620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10621 # to ld, don't add -lc before -lgcc.
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10623 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10624 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 $RM conftest*
10628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10631 (eval $ac_compile) 2>&5
10632 ac_status=$?
10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634 test $ac_status = 0; } 2>conftest.err; then
10635 soname=conftest
10636 lib=conftest
10637 libobjs=conftest.$ac_objext
10638 deplibs=
10639 wl=$lt_prog_compiler_wl
10640 pic_flag=$lt_prog_compiler_pic
10641 compiler_flags=-v
10642 linker_flags=-v
10643 verstring=
10644 output_objdir=.
10645 libname=conftest
10646 lt_save_allow_undefined_flag=$allow_undefined_flag
10647 allow_undefined_flag=
10648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10649 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; }
10653 then
10654 lt_cv_archive_cmds_need_lc=no
10655 else
10656 lt_cv_archive_cmds_need_lc=yes
10657 fi
10658 allow_undefined_flag=$lt_save_allow_undefined_flag
10659 else
10660 cat conftest.err 1>&5
10661 fi
10662 $RM conftest*
10663
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10666 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10667 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10668 ;;
10669 esac
10670 fi
10671 ;;
10672 esac
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10831 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10832
10833 if test "$GCC" = yes; then
10834 case $host_os in
10835 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10836 *) lt_awk_arg="/^libraries:/" ;;
10837 esac
10838 case $host_os in
10839 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10840 *) lt_sed_strip_eq="s,=/,/,g" ;;
10841 esac
10842 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10843 case $lt_search_path_spec in
10844 *\;*)
10845 # if the path contains ";" then we assume it to be the separator
10846 # otherwise default to the standard path separator (i.e. ":") - it is
10847 # assumed that no part of a normal pathname contains ";" but that should
10848 # okay in the real world where ";" in dirpaths is itself problematic.
10849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10850 ;;
10851 *)
10852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10853 ;;
10854 esac
10855 # Ok, now we have the path, separated by spaces, we can step through it
10856 # and add multilib dir if necessary.
10857 lt_tmp_lt_search_path_spec=
10858 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10859 for lt_sys_path in $lt_search_path_spec; do
10860 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10862 else
10863 test -d "$lt_sys_path" && \
10864 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10865 fi
10866 done
10867 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10868 BEGIN {RS=" "; FS="/|\n";} {
10869 lt_foo="";
10870 lt_count=0;
10871 for (lt_i = NF; lt_i > 0; lt_i--) {
10872 if ($lt_i != "" && $lt_i != ".") {
10873 if ($lt_i == "..") {
10874 lt_count++;
10875 } else {
10876 if (lt_count == 0) {
10877 lt_foo="/" $lt_i lt_foo;
10878 } else {
10879 lt_count--;
10880 }
10881 }
10882 }
10883 }
10884 if (lt_foo != "") { lt_freq[lt_foo]++; }
10885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10886 }'`
10887 # AWK program above erroneously prepends '/' to C:/dos/paths
10888 # for these hosts.
10889 case $host_os in
10890 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10891 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10892 esac
10893 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10894 else
10895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10896 fi
10897 library_names_spec=
10898 libname_spec='lib$name'
10899 soname_spec=
10900 shrext_cmds=".so"
10901 postinstall_cmds=
10902 postuninstall_cmds=
10903 finish_cmds=
10904 finish_eval=
10905 shlibpath_var=
10906 shlibpath_overrides_runpath=unknown
10907 version_type=none
10908 dynamic_linker="$host_os ld.so"
10909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10910 need_lib_prefix=unknown
10911 hardcode_into_libs=no
10912
10913 # when you set need_version to no, make sure it does not cause -set_version
10914 # flags to be left without arguments
10915 need_version=unknown
10916
10917 case $host_os in
10918 aix3*)
10919 version_type=linux
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10921 shlibpath_var=LIBPATH
10922
10923 # AIX 3 has no versioning support, so we append a major version to the name.
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 ;;
10926
10927 aix[4-9]*)
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 hardcode_into_libs=yes
10932 if test "$host_cpu" = ia64; then
10933 # AIX 5 supports IA64
10934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 else
10937 # With GCC up to 2.95.x, collect2 would create an import file
10938 # for dependence libraries. The import file would start with
10939 # the line `#! .'. This would cause the generated library to
10940 # depend on `.', always an invalid library. This was fixed in
10941 # development snapshots of GCC prior to 3.0.
10942 case $host_os in
10943 aix4 | aix4.[01] | aix4.[01].*)
10944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10945 echo ' yes '
10946 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10947 :
10948 else
10949 can_build_shared=no
10950 fi
10951 ;;
10952 esac
10953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10954 # soname into executable. Probably we can add versioning support to
10955 # collect2, so additional links can be useful in future.
10956 if test "$aix_use_runtimelinking" = yes; then
10957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10958 # instead of lib<name>.a to let people know that these are not
10959 # typical AIX shared libraries.
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 else
10962 # We preserve .a as extension for shared libraries through AIX4.2
10963 # and later when we are not doing run time linking.
10964 library_names_spec='${libname}${release}.a $libname.a'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 fi
10967 shlibpath_var=LIBPATH
10968 fi
10969 ;;
10970
10971 amigaos*)
10972 case $host_cpu in
10973 powerpc)
10974 # Since July 2007 AmigaOS4 officially supports .so libraries.
10975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 ;;
10978 m68k)
10979 library_names_spec='$libname.ixlibrary $libname.a'
10980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981 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'
10982 ;;
10983 esac
10984 ;;
10985
10986 beos*)
10987 library_names_spec='${libname}${shared_ext}'
10988 dynamic_linker="$host_os ld.so"
10989 shlibpath_var=LIBRARY_PATH
10990 ;;
10991
10992 bsdi[45]*)
10993 version_type=linux
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11001 # the default ld.so.conf also contains /usr/contrib/lib and
11002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11003 # libtool to hard-code these into programs
11004 ;;
11005
11006 cygwin* | mingw* | pw32* | cegcc*)
11007 version_type=windows
11008 shrext_cmds=".dll"
11009 need_version=no
11010 need_lib_prefix=no
11011
11012 case $GCC,$host_os in
11013 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11014 library_names_spec='$libname.dll.a'
11015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11016 postinstall_cmds='base_file=`basename \${file}`~
11017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11018 dldir=$destdir/`dirname \$dlpath`~
11019 test -d \$dldir || mkdir -p \$dldir~
11020 $install_prog $dir/$dlname \$dldir/$dlname~
11021 chmod a+x \$dldir/$dlname~
11022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11024 fi'
11025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11026 dlpath=$dir/\$dldll~
11027 $RM \$dlpath'
11028 shlibpath_overrides_runpath=yes
11029
11030 case $host_os in
11031 cygwin*)
11032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034
11035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11036 ;;
11037 mingw* | cegcc*)
11038 # MinGW DLLs use traditional 'lib' prefix
11039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11040 ;;
11041 pw32*)
11042 # pw32 DLLs use 'pw' prefix rather than 'lib'
11043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11044 ;;
11045 esac
11046 ;;
11047
11048 *)
11049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11050 ;;
11051 esac
11052 dynamic_linker='Win32 ld.exe'
11053 # FIXME: first we should search . and the directory the executable is in
11054 shlibpath_var=PATH
11055 ;;
11056
11057 darwin* | rhapsody*)
11058 dynamic_linker="$host_os dyld"
11059 version_type=darwin
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11063 soname_spec='${libname}${release}${major}$shared_ext'
11064 shlibpath_overrides_runpath=yes
11065 shlibpath_var=DYLD_LIBRARY_PATH
11066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11067
11068 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11070 ;;
11071
11072 dgux*)
11073 version_type=linux
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 ;;
11080
11081 freebsd* | dragonfly*)
11082 # DragonFly does not have aout. When/if they implement a new
11083 # versioning mechanism, adjust this.
11084 if test -x /usr/bin/objformat; then
11085 objformat=`/usr/bin/objformat`
11086 else
11087 case $host_os in
11088 freebsd[23].*) objformat=aout ;;
11089 *) objformat=elf ;;
11090 esac
11091 fi
11092 version_type=freebsd-$objformat
11093 case $version_type in
11094 freebsd-elf*)
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11096 need_version=no
11097 need_lib_prefix=no
11098 ;;
11099 freebsd-*)
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11101 need_version=yes
11102 ;;
11103 esac
11104 shlibpath_var=LD_LIBRARY_PATH
11105 case $host_os in
11106 freebsd2.*)
11107 shlibpath_overrides_runpath=yes
11108 ;;
11109 freebsd3.[01]* | freebsdelf3.[01]*)
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 ;;
11113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11115 shlibpath_overrides_runpath=no
11116 hardcode_into_libs=yes
11117 ;;
11118 *) # from 4.6 on, and DragonFly
11119 shlibpath_overrides_runpath=yes
11120 hardcode_into_libs=yes
11121 ;;
11122 esac
11123 ;;
11124
11125 gnu*)
11126 version_type=linux
11127 need_lib_prefix=no
11128 need_version=no
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 hardcode_into_libs=yes
11133 ;;
11134
11135 haiku*)
11136 version_type=linux
11137 need_lib_prefix=no
11138 need_version=no
11139 dynamic_linker="$host_os runtime_loader"
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 shlibpath_var=LIBRARY_PATH
11143 shlibpath_overrides_runpath=yes
11144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11145 hardcode_into_libs=yes
11146 ;;
11147
11148 hpux9* | hpux10* | hpux11*)
11149 # Give a soname corresponding to the major version so that dld.sl refuses to
11150 # link against other versions.
11151 version_type=sunos
11152 need_lib_prefix=no
11153 need_version=no
11154 case $host_cpu in
11155 ia64*)
11156 shrext_cmds='.so'
11157 hardcode_into_libs=yes
11158 dynamic_linker="$host_os dld.so"
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 if test "X$HPUX_IA64_MODE" = X32; then
11164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11165 else
11166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11167 fi
11168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11169 ;;
11170 hppa*64*)
11171 shrext_cmds='.sl'
11172 hardcode_into_libs=yes
11173 dynamic_linker="$host_os dld.sl"
11174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180 ;;
11181 *)
11182 shrext_cmds='.sl'
11183 dynamic_linker="$host_os dld.sl"
11184 shlibpath_var=SHLIB_PATH
11185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 ;;
11189 esac
11190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11191 postinstall_cmds='chmod 555 $lib'
11192 # or fails outright, so override atomically:
11193 install_override_mode=555
11194 ;;
11195
11196 interix[3-9]*)
11197 version_type=linux
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 ;;
11207
11208 irix5* | irix6* | nonstopux*)
11209 case $host_os in
11210 nonstopux*) version_type=nonstopux ;;
11211 *)
11212 if test "$lt_cv_prog_gnu_ld" = yes; then
11213 version_type=linux
11214 else
11215 version_type=irix
11216 fi ;;
11217 esac
11218 need_lib_prefix=no
11219 need_version=no
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11222 case $host_os in
11223 irix5* | nonstopux*)
11224 libsuff= shlibsuff=
11225 ;;
11226 *)
11227 case $LD in # libtool.m4 will add one of these switches to LD
11228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11229 libsuff= shlibsuff= libmagic=32-bit;;
11230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11231 libsuff=32 shlibsuff=N32 libmagic=N32;;
11232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11234 *) libsuff= shlibsuff= libmagic=never-match;;
11235 esac
11236 ;;
11237 esac
11238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11239 shlibpath_overrides_runpath=no
11240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11242 hardcode_into_libs=yes
11243 ;;
11244
11245 # No shared lib support for Linux oldld, aout, or coff.
11246 linux*oldld* | linux*aout* | linux*coff*)
11247 dynamic_linker=no
11248 ;;
11249
11250 # This must be Linux ELF.
11251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11252 version_type=linux
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec='${libname}${release}${shared_ext}$major'
11257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=no
11260
11261 # Some binutils ld are patched to set DT_RUNPATH
11262 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 lt_cv_shlibpath_overrides_runpath=no
11266 save_LDFLAGS=$LDFLAGS
11267 save_libdir=$libdir
11268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272
11273 int
11274 main ()
11275 {
11276
11277 ;
11278 return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11283 lt_cv_shlibpath_overrides_runpath=yes
11284 fi
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LDFLAGS=$save_LDFLAGS
11289 libdir=$save_libdir
11290
11291 fi
11292
11293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11294
11295 # This implies no fast_install, which is unacceptable.
11296 # Some rework will be needed to allow for fast_install
11297 # before this can be enabled.
11298 hardcode_into_libs=yes
11299
11300 # Append ld.so.conf contents to the search path
11301 if test -f /etc/ld.so.conf; then
11302 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' ' '`
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11304 fi
11305
11306 # We used to test for /lib/ld.so.1 and disable shared libraries on
11307 # powerpc, because MkLinux only supported shared libraries with the
11308 # GNU dynamic linker. Since this was broken with cross compilers,
11309 # most powerpc-linux boxes support dynamic linking these days and
11310 # people can always --disable-shared, the test was removed, and we
11311 # assume the GNU/Linux dynamic linker is in use.
11312 dynamic_linker='GNU/Linux ld.so'
11313 ;;
11314
11315 netbsd*)
11316 version_type=sunos
11317 need_lib_prefix=no
11318 need_version=no
11319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11322 dynamic_linker='NetBSD (a.out) ld.so'
11323 else
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 dynamic_linker='NetBSD ld.elf_so'
11327 fi
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=yes
11330 hardcode_into_libs=yes
11331 ;;
11332
11333 newsos6)
11334 version_type=linux
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339
11340 *nto* | *qnx*)
11341 version_type=qnx
11342 need_lib_prefix=no
11343 need_version=no
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348 hardcode_into_libs=yes
11349 dynamic_linker='ldqnx.so'
11350 ;;
11351
11352 openbsd*)
11353 version_type=sunos
11354 sys_lib_dlsearch_path_spec="/usr/lib"
11355 need_lib_prefix=no
11356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11357 case $host_os in
11358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11359 *) need_version=no ;;
11360 esac
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11365 case $host_os in
11366 openbsd2.[89] | openbsd2.[89].*)
11367 shlibpath_overrides_runpath=no
11368 ;;
11369 *)
11370 shlibpath_overrides_runpath=yes
11371 ;;
11372 esac
11373 else
11374 shlibpath_overrides_runpath=yes
11375 fi
11376 ;;
11377
11378 os2*)
11379 libname_spec='$name'
11380 shrext_cmds=".dll"
11381 need_lib_prefix=no
11382 library_names_spec='$libname${shared_ext} $libname.a'
11383 dynamic_linker='OS/2 ld.exe'
11384 shlibpath_var=LIBPATH
11385 ;;
11386
11387 osf3* | osf4* | osf5*)
11388 version_type=osf
11389 need_lib_prefix=no
11390 need_version=no
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11396 ;;
11397
11398 rdos*)
11399 dynamic_linker=no
11400 ;;
11401
11402 solaris*)
11403 version_type=linux
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11411 # ldd complains unless libraries are executable
11412 postinstall_cmds='chmod +x $lib'
11413 ;;
11414
11415 sunos4*)
11416 version_type=sunos
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11421 if test "$with_gnu_ld" = yes; then
11422 need_lib_prefix=no
11423 fi
11424 need_version=yes
11425 ;;
11426
11427 sysv4 | sysv4.3*)
11428 version_type=linux
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 case $host_vendor in
11433 sni)
11434 shlibpath_overrides_runpath=no
11435 need_lib_prefix=no
11436 runpath_var=LD_RUN_PATH
11437 ;;
11438 siemens)
11439 need_lib_prefix=no
11440 ;;
11441 motorola)
11442 need_lib_prefix=no
11443 need_version=no
11444 shlibpath_overrides_runpath=no
11445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11446 ;;
11447 esac
11448 ;;
11449
11450 sysv4*MP*)
11451 if test -d /usr/nec ;then
11452 version_type=linux
11453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11454 soname_spec='$libname${shared_ext}.$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 fi
11457 ;;
11458
11459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11460 version_type=freebsd-elf
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes
11467 hardcode_into_libs=yes
11468 if test "$with_gnu_ld" = yes; then
11469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11470 else
11471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11472 case $host_os in
11473 sco3.2v5*)
11474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11475 ;;
11476 esac
11477 fi
11478 sys_lib_dlsearch_path_spec='/usr/lib'
11479 ;;
11480
11481 tpf*)
11482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11483 version_type=linux
11484 need_lib_prefix=no
11485 need_version=no
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=no
11489 hardcode_into_libs=yes
11490 ;;
11491
11492 uts4*)
11493 version_type=linux
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 ;;
11498
11499 *)
11500 dynamic_linker=no
11501 ;;
11502 esac
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11504 $as_echo "$dynamic_linker" >&6; }
11505 test "$dynamic_linker" = no && can_build_shared=no
11506
11507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11508 if test "$GCC" = yes; then
11509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11510 fi
11511
11512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11514 fi
11515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11516 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11517 fi
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11612 hardcode_action=
11613 if test -n "$hardcode_libdir_flag_spec" ||
11614 test -n "$runpath_var" ||
11615 test "X$hardcode_automatic" = "Xyes" ; then
11616
11617 # We can hardcode non-existent directories.
11618 if test "$hardcode_direct" != no &&
11619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11620 # have to relink, otherwise we might link with an installed library
11621 # when we should be linking with a yet-to-be-installed one
11622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11623 test "$hardcode_minus_L" != no; then
11624 # Linking always hardcodes the temporary library directory.
11625 hardcode_action=relink
11626 else
11627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11628 hardcode_action=immediate
11629 fi
11630 else
11631 # We cannot hardcode anything, or else we can only hardcode existing
11632 # directories.
11633 hardcode_action=unsupported
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11636 $as_echo "$hardcode_action" >&6; }
11637
11638 if test "$hardcode_action" = relink ||
11639 test "$inherit_rpath" = yes; then
11640 # Fast installation is not supported
11641 enable_fast_install=no
11642 elif test "$shlibpath_overrides_runpath" = yes ||
11643 test "$enable_shared" = no; then
11644 # Fast installation is not necessary
11645 enable_fast_install=needless
11646 fi
11647
11648
11649
11650
11651
11652
11653 if test "x$enable_dlopen" != xyes; then
11654 enable_dlopen=unknown
11655 enable_dlopen_self=unknown
11656 enable_dlopen_self_static=unknown
11657 else
11658 lt_cv_dlopen=no
11659 lt_cv_dlopen_libs=
11660
11661 case $host_os in
11662 beos*)
11663 lt_cv_dlopen="load_add_on"
11664 lt_cv_dlopen_libs=
11665 lt_cv_dlopen_self=yes
11666 ;;
11667
11668 mingw* | pw32* | cegcc*)
11669 lt_cv_dlopen="LoadLibrary"
11670 lt_cv_dlopen_libs=
11671 ;;
11672
11673 cygwin*)
11674 lt_cv_dlopen="dlopen"
11675 lt_cv_dlopen_libs=
11676 ;;
11677
11678 darwin*)
11679 # if libdl is installed we need to link against it
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-ldl $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char dlopen ();
11697 int
11698 main ()
11699 {
11700 return dlopen ();
11701 ;
11702 return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_dl_dlopen=yes
11707 else
11708 ac_cv_lib_dl_dlopen=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11716 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11718 else
11719
11720 lt_cv_dlopen="dyld"
11721 lt_cv_dlopen_libs=
11722 lt_cv_dlopen_self=yes
11723
11724 fi
11725
11726 ;;
11727
11728 *)
11729 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11730 if test "x$ac_cv_func_shl_load" = x""yes; then :
11731 lt_cv_dlopen="shl_load"
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-ldld $LIBS"
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char shl_load ();
11750 int
11751 main ()
11752 {
11753 return shl_load ();
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 ac_cv_lib_dld_shl_load=yes
11760 else
11761 ac_cv_lib_dld_shl_load=no
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11768 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11769 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11771 else
11772 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11773 if test "x$ac_cv_func_dlopen" = x""yes; then :
11774 lt_cv_dlopen="dlopen"
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 ac_check_lib_save_LIBS=$LIBS
11782 LIBS="-ldl $LIBS"
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char dlopen ();
11793 int
11794 main ()
11795 {
11796 return dlopen ();
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 ac_cv_lib_dl_dlopen=yes
11803 else
11804 ac_cv_lib_dl_dlopen=no
11805 fi
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LIBS=$ac_check_lib_save_LIBS
11809 fi
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11812 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11816 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-lsvld $LIBS"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char dlopen ();
11832 int
11833 main ()
11834 {
11835 return dlopen ();
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841 ac_cv_lib_svld_dlopen=yes
11842 else
11843 ac_cv_lib_svld_dlopen=no
11844 fi
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11850 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11851 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11855 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldld $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char dld_link ();
11871 int
11872 main ()
11873 {
11874 return dld_link ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 ac_cv_lib_dld_dld_link=yes
11881 else
11882 ac_cv_lib_dld_dld_link=no
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11889 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11890 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11891 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11892 fi
11893
11894
11895 fi
11896
11897
11898 fi
11899
11900
11901 fi
11902
11903
11904 fi
11905
11906
11907 fi
11908
11909 ;;
11910 esac
11911
11912 if test "x$lt_cv_dlopen" != xno; then
11913 enable_dlopen=yes
11914 else
11915 enable_dlopen=no
11916 fi
11917
11918 case $lt_cv_dlopen in
11919 dlopen)
11920 save_CPPFLAGS="$CPPFLAGS"
11921 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11922
11923 save_LDFLAGS="$LDFLAGS"
11924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11925
11926 save_LIBS="$LIBS"
11927 LIBS="$lt_cv_dlopen_libs $LIBS"
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11930 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11931 if test "${lt_cv_dlopen_self+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 if test "$cross_compiling" = yes; then :
11935 lt_cv_dlopen_self=cross
11936 else
11937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11938 lt_status=$lt_dlunknown
11939 cat > conftest.$ac_ext <<_LT_EOF
11940 #line 11940 "configure"
11941 #include "confdefs.h"
11942
11943 #if HAVE_DLFCN_H
11944 #include <dlfcn.h>
11945 #endif
11946
11947 #include <stdio.h>
11948
11949 #ifdef RTLD_GLOBAL
11950 # define LT_DLGLOBAL RTLD_GLOBAL
11951 #else
11952 # ifdef DL_GLOBAL
11953 # define LT_DLGLOBAL DL_GLOBAL
11954 # else
11955 # define LT_DLGLOBAL 0
11956 # endif
11957 #endif
11958
11959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11960 find out it does not work in some platform. */
11961 #ifndef LT_DLLAZY_OR_NOW
11962 # ifdef RTLD_LAZY
11963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11964 # else
11965 # ifdef DL_LAZY
11966 # define LT_DLLAZY_OR_NOW DL_LAZY
11967 # else
11968 # ifdef RTLD_NOW
11969 # define LT_DLLAZY_OR_NOW RTLD_NOW
11970 # else
11971 # ifdef DL_NOW
11972 # define LT_DLLAZY_OR_NOW DL_NOW
11973 # else
11974 # define LT_DLLAZY_OR_NOW 0
11975 # endif
11976 # endif
11977 # endif
11978 # endif
11979 #endif
11980
11981 /* When -fvisbility=hidden is used, assume the code has been annotated
11982 correspondingly for the symbols needed. */
11983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11984 void fnord () __attribute__((visibility("default")));
11985 #endif
11986
11987 void fnord () { int i=42; }
11988 int main ()
11989 {
11990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11991 int status = $lt_dlunknown;
11992
11993 if (self)
11994 {
11995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11996 else
11997 {
11998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11999 else puts (dlerror ());
12000 }
12001 /* dlclose (self); */
12002 }
12003 else
12004 puts (dlerror ());
12005
12006 return status;
12007 }
12008 _LT_EOF
12009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12010 (eval $ac_link) 2>&5
12011 ac_status=$?
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12014 (./conftest; exit; ) >&5 2>/dev/null
12015 lt_status=$?
12016 case x$lt_status in
12017 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12018 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12019 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12020 esac
12021 else :
12022 # compilation failed
12023 lt_cv_dlopen_self=no
12024 fi
12025 fi
12026 rm -fr conftest*
12027
12028
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12031 $as_echo "$lt_cv_dlopen_self" >&6; }
12032
12033 if test "x$lt_cv_dlopen_self" = xyes; then
12034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12036 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12037 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 if test "$cross_compiling" = yes; then :
12041 lt_cv_dlopen_self_static=cross
12042 else
12043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12044 lt_status=$lt_dlunknown
12045 cat > conftest.$ac_ext <<_LT_EOF
12046 #line 12046 "configure"
12047 #include "confdefs.h"
12048
12049 #if HAVE_DLFCN_H
12050 #include <dlfcn.h>
12051 #endif
12052
12053 #include <stdio.h>
12054
12055 #ifdef RTLD_GLOBAL
12056 # define LT_DLGLOBAL RTLD_GLOBAL
12057 #else
12058 # ifdef DL_GLOBAL
12059 # define LT_DLGLOBAL DL_GLOBAL
12060 # else
12061 # define LT_DLGLOBAL 0
12062 # endif
12063 #endif
12064
12065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12066 find out it does not work in some platform. */
12067 #ifndef LT_DLLAZY_OR_NOW
12068 # ifdef RTLD_LAZY
12069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12070 # else
12071 # ifdef DL_LAZY
12072 # define LT_DLLAZY_OR_NOW DL_LAZY
12073 # else
12074 # ifdef RTLD_NOW
12075 # define LT_DLLAZY_OR_NOW RTLD_NOW
12076 # else
12077 # ifdef DL_NOW
12078 # define LT_DLLAZY_OR_NOW DL_NOW
12079 # else
12080 # define LT_DLLAZY_OR_NOW 0
12081 # endif
12082 # endif
12083 # endif
12084 # endif
12085 #endif
12086
12087 /* When -fvisbility=hidden is used, assume the code has been annotated
12088 correspondingly for the symbols needed. */
12089 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12090 void fnord () __attribute__((visibility("default")));
12091 #endif
12092
12093 void fnord () { int i=42; }
12094 int main ()
12095 {
12096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12097 int status = $lt_dlunknown;
12098
12099 if (self)
12100 {
12101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12102 else
12103 {
12104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12105 else puts (dlerror ());
12106 }
12107 /* dlclose (self); */
12108 }
12109 else
12110 puts (dlerror ());
12111
12112 return status;
12113 }
12114 _LT_EOF
12115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12116 (eval $ac_link) 2>&5
12117 ac_status=$?
12118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12120 (./conftest; exit; ) >&5 2>/dev/null
12121 lt_status=$?
12122 case x$lt_status in
12123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12125 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12126 esac
12127 else :
12128 # compilation failed
12129 lt_cv_dlopen_self_static=no
12130 fi
12131 fi
12132 rm -fr conftest*
12133
12134
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12138 fi
12139
12140 CPPFLAGS="$save_CPPFLAGS"
12141 LDFLAGS="$save_LDFLAGS"
12142 LIBS="$save_LIBS"
12143 ;;
12144 esac
12145
12146 case $lt_cv_dlopen_self in
12147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12148 *) enable_dlopen_self=unknown ;;
12149 esac
12150
12151 case $lt_cv_dlopen_self_static in
12152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12153 *) enable_dlopen_self_static=unknown ;;
12154 esac
12155 fi
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173 striplib=
12174 old_striplib=
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12177 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; }
12182 else
12183 # FIXME - insert some real tests, host_os isn't really good enough
12184 case $host_os in
12185 darwin*)
12186 if test -n "$STRIP" ; then
12187 striplib="$STRIP -x"
12188 old_striplib="$STRIP -S"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190 $as_echo "yes" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195 ;;
12196 *)
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 ;;
12200 esac
12201 fi
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214 # Report which library types will actually be built
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12218 $as_echo "$can_build_shared" >&6; }
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12221 $as_echo_n "checking whether to build shared libraries... " >&6; }
12222 test "$can_build_shared" = "no" && enable_shared=no
12223
12224 # On AIX, shared libraries and static libraries use the same namespace, and
12225 # are all built from PIC.
12226 case $host_os in
12227 aix3*)
12228 test "$enable_shared" = yes && enable_static=no
12229 if test -n "$RANLIB"; then
12230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12231 postinstall_cmds='$RANLIB $lib'
12232 fi
12233 ;;
12234
12235 aix[4-9]*)
12236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12237 test "$enable_shared" = yes && enable_static=no
12238 fi
12239 ;;
12240 esac
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12242 $as_echo "$enable_shared" >&6; }
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12245 $as_echo_n "checking whether to build static libraries... " >&6; }
12246 # Make sure either enable_shared or enable_static is yes.
12247 test "$enable_shared" = yes || enable_static=yes
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12249 $as_echo "$enable_static" >&6; }
12250
12251
12252
12253
12254 fi
12255 ac_ext=c
12256 ac_cpp='$CPP $CPPFLAGS'
12257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12260
12261 CC="$lt_save_CC"
12262
12263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12265 (test "X$CXX" != "Xg++"))) ; then
12266 ac_ext=cpp
12267 ac_cpp='$CXXCPP $CPPFLAGS'
12268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12272 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12273 if test -z "$CXXCPP"; then
12274 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 # Double quotes because CXXCPP needs to be expanded
12278 for CXXCPP in "$CXX -E" "/lib/cpp"
12279 do
12280 ac_preproc_ok=false
12281 for ac_cxx_preproc_warn_flag in '' yes
12282 do
12283 # Use a header file that comes with gcc, so configuring glibc
12284 # with a fresh cross-compiler works.
12285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 # <limits.h> exists even on freestanding compilers.
12287 # On the NeXT, cc -E runs the code through the compiler's parser,
12288 # not just through cpp. "Syntax error" is here to catch this case.
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291 #ifdef __STDC__
12292 # include <limits.h>
12293 #else
12294 # include <assert.h>
12295 #endif
12296 Syntax error
12297 _ACEOF
12298 if ac_fn_cxx_try_cpp "$LINENO"; then :
12299
12300 else
12301 # Broken: fails on valid input.
12302 continue
12303 fi
12304 rm -f conftest.err conftest.$ac_ext
12305
12306 # OK, works on sane cases. Now check whether nonexistent headers
12307 # can be detected and how.
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310 #include <ac_nonexistent.h>
12311 _ACEOF
12312 if ac_fn_cxx_try_cpp "$LINENO"; then :
12313 # Broken: success on invalid input.
12314 continue
12315 else
12316 # Passes both tests.
12317 ac_preproc_ok=:
12318 break
12319 fi
12320 rm -f conftest.err conftest.$ac_ext
12321
12322 done
12323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12324 rm -f conftest.err conftest.$ac_ext
12325 if $ac_preproc_ok; then :
12326 break
12327 fi
12328
12329 done
12330 ac_cv_prog_CXXCPP=$CXXCPP
12331
12332 fi
12333 CXXCPP=$ac_cv_prog_CXXCPP
12334 else
12335 ac_cv_prog_CXXCPP=$CXXCPP
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12338 $as_echo "$CXXCPP" >&6; }
12339 ac_preproc_ok=false
12340 for ac_cxx_preproc_warn_flag in '' yes
12341 do
12342 # Use a header file that comes with gcc, so configuring glibc
12343 # with a fresh cross-compiler works.
12344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12345 # <limits.h> exists even on freestanding compilers.
12346 # On the NeXT, cc -E runs the code through the compiler's parser,
12347 # not just through cpp. "Syntax error" is here to catch this case.
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #ifdef __STDC__
12351 # include <limits.h>
12352 #else
12353 # include <assert.h>
12354 #endif
12355 Syntax error
12356 _ACEOF
12357 if ac_fn_cxx_try_cpp "$LINENO"; then :
12358
12359 else
12360 # Broken: fails on valid input.
12361 continue
12362 fi
12363 rm -f conftest.err conftest.$ac_ext
12364
12365 # OK, works on sane cases. Now check whether nonexistent headers
12366 # can be detected and how.
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369 #include <ac_nonexistent.h>
12370 _ACEOF
12371 if ac_fn_cxx_try_cpp "$LINENO"; then :
12372 # Broken: success on invalid input.
12373 continue
12374 else
12375 # Passes both tests.
12376 ac_preproc_ok=:
12377 break
12378 fi
12379 rm -f conftest.err conftest.$ac_ext
12380
12381 done
12382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12383 rm -f conftest.err conftest.$ac_ext
12384 if $ac_preproc_ok; then :
12385
12386 else
12387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12389 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12390 See \`config.log' for more details." "$LINENO" 5; }
12391 fi
12392
12393 ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398
12399 else
12400 _lt_caught_CXX_error=yes
12401 fi
12402
12403 ac_ext=cpp
12404 ac_cpp='$CXXCPP $CPPFLAGS'
12405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12408
12409 archive_cmds_need_lc_CXX=no
12410 allow_undefined_flag_CXX=
12411 always_export_symbols_CXX=no
12412 archive_expsym_cmds_CXX=
12413 compiler_needs_object_CXX=no
12414 export_dynamic_flag_spec_CXX=
12415 hardcode_direct_CXX=no
12416 hardcode_direct_absolute_CXX=no
12417 hardcode_libdir_flag_spec_CXX=
12418 hardcode_libdir_flag_spec_ld_CXX=
12419 hardcode_libdir_separator_CXX=
12420 hardcode_minus_L_CXX=no
12421 hardcode_shlibpath_var_CXX=unsupported
12422 hardcode_automatic_CXX=no
12423 inherit_rpath_CXX=no
12424 module_cmds_CXX=
12425 module_expsym_cmds_CXX=
12426 link_all_deplibs_CXX=unknown
12427 old_archive_cmds_CXX=$old_archive_cmds
12428 reload_flag_CXX=$reload_flag
12429 reload_cmds_CXX=$reload_cmds
12430 no_undefined_flag_CXX=
12431 whole_archive_flag_spec_CXX=
12432 enable_shared_with_static_runtimes_CXX=no
12433
12434 # Source file extension for C++ test sources.
12435 ac_ext=cpp
12436
12437 # Object file extension for compiled C++ test sources.
12438 objext=o
12439 objext_CXX=$objext
12440
12441 # No sense in running all these tests if we already determined that
12442 # the CXX compiler isn't working. Some variables (like enable_shared)
12443 # are currently assumed to apply to all compilers on this platform,
12444 # and will be corrupted by setting them based on a non-working compiler.
12445 if test "$_lt_caught_CXX_error" != yes; then
12446 # Code to be used in simple compile tests
12447 lt_simple_compile_test_code="int some_variable = 0;"
12448
12449 # Code to be used in simple link tests
12450 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12451
12452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12453
12454
12455
12456
12457
12458
12459 # If no C compiler was specified, use CC.
12460 LTCC=${LTCC-"$CC"}
12461
12462 # If no C compiler flags were specified, use CFLAGS.
12463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12464
12465 # Allow CC to be a program name with arguments.
12466 compiler=$CC
12467
12468
12469 # save warnings/boilerplate of simple test code
12470 ac_outfile=conftest.$ac_objext
12471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12473 _lt_compiler_boilerplate=`cat conftest.err`
12474 $RM conftest*
12475
12476 ac_outfile=conftest.$ac_objext
12477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12479 _lt_linker_boilerplate=`cat conftest.err`
12480 $RM -r conftest*
12481
12482
12483 # Allow CC to be a program name with arguments.
12484 lt_save_CC=$CC
12485 lt_save_LD=$LD
12486 lt_save_GCC=$GCC
12487 GCC=$GXX
12488 lt_save_with_gnu_ld=$with_gnu_ld
12489 lt_save_path_LD=$lt_cv_path_LD
12490 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12491 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12492 else
12493 $as_unset lt_cv_prog_gnu_ld
12494 fi
12495 if test -n "${lt_cv_path_LDCXX+set}"; then
12496 lt_cv_path_LD=$lt_cv_path_LDCXX
12497 else
12498 $as_unset lt_cv_path_LD
12499 fi
12500 test -z "${LDCXX+set}" || LD=$LDCXX
12501 CC=${CXX-"c++"}
12502 compiler=$CC
12503 compiler_CXX=$CC
12504 for cc_temp in $compiler""; do
12505 case $cc_temp in
12506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12508 \-*) ;;
12509 *) break;;
12510 esac
12511 done
12512 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12513
12514
12515 if test -n "$compiler"; then
12516 # We don't want -fno-exception when compiling C++ code, so set the
12517 # no_builtin_flag separately
12518 if test "$GXX" = yes; then
12519 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12520 else
12521 lt_prog_compiler_no_builtin_flag_CXX=
12522 fi
12523
12524 if test "$GXX" = yes; then
12525 # Set up default GNU C++ configuration
12526
12527
12528
12529 # Check whether --with-gnu-ld was given.
12530 if test "${with_gnu_ld+set}" = set; then :
12531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12532 else
12533 with_gnu_ld=no
12534 fi
12535
12536 ac_prog=ld
12537 if test "$GCC" = yes; then
12538 # Check if gcc -print-prog-name=ld gives a path.
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12540 $as_echo_n "checking for ld used by $CC... " >&6; }
12541 case $host in
12542 *-*-mingw*)
12543 # gcc leaves a trailing carriage return which upsets mingw
12544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12545 *)
12546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12547 esac
12548 case $ac_prog in
12549 # Accept absolute paths.
12550 [\\/]* | ?:[\\/]*)
12551 re_direlt='/[^/][^/]*/\.\./'
12552 # Canonicalize the pathname of ld
12553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12556 done
12557 test -z "$LD" && LD="$ac_prog"
12558 ;;
12559 "")
12560 # If it fails, then pretend we aren't using GCC.
12561 ac_prog=ld
12562 ;;
12563 *)
12564 # If it is relative, then search for the first ld in PATH.
12565 with_gnu_ld=unknown
12566 ;;
12567 esac
12568 elif test "$with_gnu_ld" = yes; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12570 $as_echo_n "checking for GNU ld... " >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12573 $as_echo_n "checking for non-GNU ld... " >&6; }
12574 fi
12575 if test "${lt_cv_path_LD+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 if test -z "$LD"; then
12579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12580 for ac_dir in $PATH; do
12581 IFS="$lt_save_ifs"
12582 test -z "$ac_dir" && ac_dir=.
12583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12584 lt_cv_path_LD="$ac_dir/$ac_prog"
12585 # Check to see if the program is GNU ld. I'd rather use --version,
12586 # but apparently some variants of GNU ld only accept -v.
12587 # Break only if it was the GNU/non-GNU ld that we prefer.
12588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12589 *GNU* | *'with BFD'*)
12590 test "$with_gnu_ld" != no && break
12591 ;;
12592 *)
12593 test "$with_gnu_ld" != yes && break
12594 ;;
12595 esac
12596 fi
12597 done
12598 IFS="$lt_save_ifs"
12599 else
12600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12601 fi
12602 fi
12603
12604 LD="$lt_cv_path_LD"
12605 if test -n "$LD"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12607 $as_echo "$LD" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12615 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12619 case `$LD -v 2>&1 </dev/null` in
12620 *GNU* | *'with BFD'*)
12621 lt_cv_prog_gnu_ld=yes
12622 ;;
12623 *)
12624 lt_cv_prog_gnu_ld=no
12625 ;;
12626 esac
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12630 with_gnu_ld=$lt_cv_prog_gnu_ld
12631
12632
12633
12634
12635
12636
12637
12638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12639 # archiving commands below assume that GNU ld is being used.
12640 if test "$with_gnu_ld" = yes; then
12641 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 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'
12643
12644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12646
12647 # If archive_cmds runs LD, not CC, wlarc should be empty
12648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12649 # investigate it a little bit more. (MM)
12650 wlarc='${wl}'
12651
12652 # ancient GNU ld didn't support --whole-archive et. al.
12653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12654 $GREP 'no-whole-archive' > /dev/null; then
12655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12656 else
12657 whole_archive_flag_spec_CXX=
12658 fi
12659 else
12660 with_gnu_ld=no
12661 wlarc=
12662
12663 # A generic and very simple default shared library creation
12664 # command for GNU C++ for the case where it uses the native
12665 # linker, instead of GNU ld. If possible, this setting should
12666 # overridden to take advantage of the native linker features on
12667 # the platform it is being used on.
12668 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12669 fi
12670
12671 # Commands to make compiler produce verbose output that lists
12672 # what "hidden" libraries, object files and flags are used when
12673 # linking a shared library.
12674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12675
12676 else
12677 GXX=no
12678 with_gnu_ld=no
12679 wlarc=
12680 fi
12681
12682 # PORTME: fill in a description of your system's C++ link characteristics
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12685 ld_shlibs_CXX=yes
12686 case $host_os in
12687 aix3*)
12688 # FIXME: insert proper C++ library support
12689 ld_shlibs_CXX=no
12690 ;;
12691 aix[4-9]*)
12692 if test "$host_cpu" = ia64; then
12693 # On IA64, the linker does run time linking by default, so we don't
12694 # have to do anything special.
12695 aix_use_runtimelinking=no
12696 exp_sym_flag='-Bexport'
12697 no_entry_flag=""
12698 else
12699 aix_use_runtimelinking=no
12700
12701 # Test if we are trying to use run time linking or normal
12702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12703 # need to do runtime linking.
12704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12705 for ld_flag in $LDFLAGS; do
12706 case $ld_flag in
12707 *-brtl*)
12708 aix_use_runtimelinking=yes
12709 break
12710 ;;
12711 esac
12712 done
12713 ;;
12714 esac
12715
12716 exp_sym_flag='-bexport'
12717 no_entry_flag='-bnoentry'
12718 fi
12719
12720 # When large executables or shared objects are built, AIX ld can
12721 # have problems creating the table of contents. If linking a library
12722 # or program results in "error TOC overflow" add -mminimal-toc to
12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12725
12726 archive_cmds_CXX=''
12727 hardcode_direct_CXX=yes
12728 hardcode_direct_absolute_CXX=yes
12729 hardcode_libdir_separator_CXX=':'
12730 link_all_deplibs_CXX=yes
12731 file_list_spec_CXX='${wl}-f,'
12732
12733 if test "$GXX" = yes; then
12734 case $host_os in aix4.[012]|aix4.[012].*)
12735 # We only want to do this on AIX 4.2 and lower, the check
12736 # below for broken collect2 doesn't work under 4.3+
12737 collect2name=`${CC} -print-prog-name=collect2`
12738 if test -f "$collect2name" &&
12739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12740 then
12741 # We have reworked collect2
12742 :
12743 else
12744 # We have old collect2
12745 hardcode_direct_CXX=unsupported
12746 # It fails to find uninstalled libraries when the uninstalled
12747 # path is not listed in the libpath. Setting hardcode_minus_L
12748 # to unsupported forces relinking
12749 hardcode_minus_L_CXX=yes
12750 hardcode_libdir_flag_spec_CXX='-L$libdir'
12751 hardcode_libdir_separator_CXX=
12752 fi
12753 esac
12754 shared_flag='-shared'
12755 if test "$aix_use_runtimelinking" = yes; then
12756 shared_flag="$shared_flag "'${wl}-G'
12757 fi
12758 else
12759 # not using gcc
12760 if test "$host_cpu" = ia64; then
12761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12762 # chokes on -Wl,-G. The following line is correct:
12763 shared_flag='-G'
12764 else
12765 if test "$aix_use_runtimelinking" = yes; then
12766 shared_flag='${wl}-G'
12767 else
12768 shared_flag='${wl}-bM:SRE'
12769 fi
12770 fi
12771 fi
12772
12773 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12774 # It seems that -bexpall does not export symbols beginning with
12775 # underscore (_), so it is better to generate a list of symbols to
12776 # export.
12777 always_export_symbols_CXX=yes
12778 if test "$aix_use_runtimelinking" = yes; then
12779 # Warning - without using the other runtime loading flags (-brtl),
12780 # -berok will link without error, but may produce a broken library.
12781 allow_undefined_flag_CXX='-berok'
12782 # Determine the default libpath from the value encoded in an empty
12783 # executable.
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786
12787 int
12788 main ()
12789 {
12790
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_cxx_try_link "$LINENO"; then :
12796
12797 lt_aix_libpath_sed='
12798 /Import File Strings/,/^$/ {
12799 /^0/ {
12800 s/^0 *\(.*\)$/\1/
12801 p
12802 }
12803 }'
12804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805 # Check for a 64-bit object if we didn't find anything.
12806 if test -z "$aix_libpath"; then
12807 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12808 fi
12809 fi
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12813
12814 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12815
12816 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"
12817 else
12818 if test "$host_cpu" = ia64; then
12819 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12820 allow_undefined_flag_CXX="-z nodefs"
12821 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"
12822 else
12823 # Determine the default libpath from the value encoded in an
12824 # empty executable.
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 int
12829 main ()
12830 {
12831
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_cxx_try_link "$LINENO"; then :
12837
12838 lt_aix_libpath_sed='
12839 /Import File Strings/,/^$/ {
12840 /^0/ {
12841 s/^0 *\(.*\)$/\1/
12842 p
12843 }
12844 }'
12845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12846 # Check for a 64-bit object if we didn't find anything.
12847 if test -z "$aix_libpath"; then
12848 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12849 fi
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12854
12855 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12856 # Warning - without using the other run time loading flags,
12857 # -berok will link without error, but may produce a broken library.
12858 no_undefined_flag_CXX=' ${wl}-bernotok'
12859 allow_undefined_flag_CXX=' ${wl}-berok'
12860 if test "$with_gnu_ld" = yes; then
12861 # We only use this code for GNU lds that support --whole-archive.
12862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12863 else
12864 # Exported symbols can be pulled into shared objects from archives
12865 whole_archive_flag_spec_CXX='$convenience'
12866 fi
12867 archive_cmds_need_lc_CXX=yes
12868 # This is similar to how AIX traditionally builds its shared
12869 # libraries.
12870 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'
12871 fi
12872 fi
12873 ;;
12874
12875 beos*)
12876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12877 allow_undefined_flag_CXX=unsupported
12878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12879 # support --undefined. This deserves some investigation. FIXME
12880 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 else
12882 ld_shlibs_CXX=no
12883 fi
12884 ;;
12885
12886 chorus*)
12887 case $cc_basename in
12888 *)
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12891 ;;
12892 esac
12893 ;;
12894
12895 cygwin* | mingw* | pw32* | cegcc*)
12896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12897 # as there is no search path for DLLs.
12898 hardcode_libdir_flag_spec_CXX='-L$libdir'
12899 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12900 allow_undefined_flag_CXX=unsupported
12901 always_export_symbols_CXX=no
12902 enable_shared_with_static_runtimes_CXX=yes
12903
12904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12905 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'
12906 # If the export-symbols file already is a .def file (1st line
12907 # is EXPORTS), use it as is; otherwise, prepend...
12908 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12909 cp $export_symbols $output_objdir/$soname.def;
12910 else
12911 echo EXPORTS > $output_objdir/$soname.def;
12912 cat $export_symbols >> $output_objdir/$soname.def;
12913 fi~
12914 $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'
12915 else
12916 ld_shlibs_CXX=no
12917 fi
12918 ;;
12919 darwin* | rhapsody*)
12920
12921
12922 archive_cmds_need_lc_CXX=no
12923 hardcode_direct_CXX=no
12924 hardcode_automatic_CXX=yes
12925 hardcode_shlibpath_var_CXX=unsupported
12926 if test "$lt_cv_ld_force_load" = "yes"; then
12927 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\"`'
12928 else
12929 whole_archive_flag_spec_CXX=''
12930 fi
12931 link_all_deplibs_CXX=yes
12932 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12933 case $cc_basename in
12934 ifort*) _lt_dar_can_shared=yes ;;
12935 *) _lt_dar_can_shared=$GCC ;;
12936 esac
12937 if test "$_lt_dar_can_shared" = "yes"; then
12938 output_verbose_link_cmd=func_echo_all
12939 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}"
12940 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12941 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}"
12942 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}"
12943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12944 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}"
12945 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}"
12946 fi
12947
12948 else
12949 ld_shlibs_CXX=no
12950 fi
12951
12952 ;;
12953
12954 dgux*)
12955 case $cc_basename in
12956 ec++*)
12957 # FIXME: insert proper C++ library support
12958 ld_shlibs_CXX=no
12959 ;;
12960 ghcx*)
12961 # Green Hills C++ Compiler
12962 # FIXME: insert proper C++ library support
12963 ld_shlibs_CXX=no
12964 ;;
12965 *)
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12968 ;;
12969 esac
12970 ;;
12971
12972 freebsd2.*)
12973 # C++ shared libraries reported to be fairly broken before
12974 # switch to ELF
12975 ld_shlibs_CXX=no
12976 ;;
12977
12978 freebsd-elf*)
12979 archive_cmds_need_lc_CXX=no
12980 ;;
12981
12982 freebsd* | dragonfly*)
12983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12984 # conventions
12985 ld_shlibs_CXX=yes
12986 ;;
12987
12988 gnu*)
12989 ;;
12990
12991 haiku*)
12992 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993 link_all_deplibs_CXX=yes
12994 ;;
12995
12996 hpux9*)
12997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12998 hardcode_libdir_separator_CXX=:
12999 export_dynamic_flag_spec_CXX='${wl}-E'
13000 hardcode_direct_CXX=yes
13001 hardcode_minus_L_CXX=yes # Not in the search PATH,
13002 # but as the default
13003 # location of the library.
13004
13005 case $cc_basename in
13006 CC*)
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13009 ;;
13010 aCC*)
13011 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'
13012 # Commands to make compiler produce verbose output that lists
13013 # what "hidden" libraries, object files and flags are used when
13014 # linking a shared library.
13015 #
13016 # There doesn't appear to be a way to prevent this compiler from
13017 # explicitly linking system object files so we need to strip them
13018 # from the output so that they don't get included in the library
13019 # dependencies.
13020 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"'
13021 ;;
13022 *)
13023 if test "$GXX" = yes; then
13024 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'
13025 else
13026 # FIXME: insert proper C++ library support
13027 ld_shlibs_CXX=no
13028 fi
13029 ;;
13030 esac
13031 ;;
13032
13033 hpux10*|hpux11*)
13034 if test $with_gnu_ld = no; then
13035 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13036 hardcode_libdir_separator_CXX=:
13037
13038 case $host_cpu in
13039 hppa*64*|ia64*)
13040 ;;
13041 *)
13042 export_dynamic_flag_spec_CXX='${wl}-E'
13043 ;;
13044 esac
13045 fi
13046 case $host_cpu in
13047 hppa*64*|ia64*)
13048 hardcode_direct_CXX=no
13049 hardcode_shlibpath_var_CXX=no
13050 ;;
13051 *)
13052 hardcode_direct_CXX=yes
13053 hardcode_direct_absolute_CXX=yes
13054 hardcode_minus_L_CXX=yes # Not in the search PATH,
13055 # but as the default
13056 # location of the library.
13057 ;;
13058 esac
13059
13060 case $cc_basename in
13061 CC*)
13062 # FIXME: insert proper C++ library support
13063 ld_shlibs_CXX=no
13064 ;;
13065 aCC*)
13066 case $host_cpu in
13067 hppa*64*)
13068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13069 ;;
13070 ia64*)
13071 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13072 ;;
13073 *)
13074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13075 ;;
13076 esac
13077 # Commands to make compiler produce verbose output that lists
13078 # what "hidden" libraries, object files and flags are used when
13079 # linking a shared library.
13080 #
13081 # There doesn't appear to be a way to prevent this compiler from
13082 # explicitly linking system object files so we need to strip them
13083 # from the output so that they don't get included in the library
13084 # dependencies.
13085 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"'
13086 ;;
13087 *)
13088 if test "$GXX" = yes; then
13089 if test $with_gnu_ld = no; then
13090 case $host_cpu in
13091 hppa*64*)
13092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13093 ;;
13094 ia64*)
13095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13096 ;;
13097 *)
13098 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'
13099 ;;
13100 esac
13101 fi
13102 else
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13105 fi
13106 ;;
13107 esac
13108 ;;
13109
13110 interix[3-9]*)
13111 hardcode_direct_CXX=no
13112 hardcode_shlibpath_var_CXX=no
13113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13114 export_dynamic_flag_spec_CXX='${wl}-E'
13115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13116 # Instead, shared libraries are loaded at an image base (0x10000000 by
13117 # default) and relocated if they conflict, which is a slow very memory
13118 # consuming and fragmenting process. To avoid this, we pick a random,
13119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13121 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'
13122 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'
13123 ;;
13124 irix5* | irix6*)
13125 case $cc_basename in
13126 CC*)
13127 # SGI C++
13128 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'
13129
13130 # Archives containing C++ object files must be created using
13131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13132 # necessary to make sure instantiated templates are included
13133 # in the archive.
13134 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13135 ;;
13136 *)
13137 if test "$GXX" = yes; then
13138 if test "$with_gnu_ld" = no; then
13139 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'
13140 else
13141 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'
13142 fi
13143 fi
13144 link_all_deplibs_CXX=yes
13145 ;;
13146 esac
13147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148 hardcode_libdir_separator_CXX=:
13149 inherit_rpath_CXX=yes
13150 ;;
13151
13152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13153 case $cc_basename in
13154 KCC*)
13155 # Kuck and Associates, Inc. (KAI) C++ Compiler
13156
13157 # KCC will only create a shared library if the output file
13158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13159 # to its proper name (with version) after linking.
13160 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'
13161 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'
13162 # Commands to make compiler produce verbose output that lists
13163 # what "hidden" libraries, object files and flags are used when
13164 # linking a shared library.
13165 #
13166 # There doesn't appear to be a way to prevent this compiler from
13167 # explicitly linking system object files so we need to strip them
13168 # from the output so that they don't get included in the library
13169 # dependencies.
13170 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"'
13171
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13174
13175 # Archives containing C++ object files must be created using
13176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13178 ;;
13179 icpc* | ecpc* )
13180 # Intel C++
13181 with_gnu_ld=yes
13182 # version 8.0 and above of icpc choke on multiply defined symbols
13183 # if we add $predep_objects and $postdep_objects, however 7.1 and
13184 # earlier do not add the objects themselves.
13185 case `$CC -V 2>&1` in
13186 *"Version 7."*)
13187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188 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'
13189 ;;
13190 *) # Version 8.0 or newer
13191 tmp_idyn=
13192 case $host_cpu in
13193 ia64*) tmp_idyn=' -i_dynamic';;
13194 esac
13195 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 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'
13197 ;;
13198 esac
13199 archive_cmds_need_lc_CXX=no
13200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13202 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13203 ;;
13204 pgCC* | pgcpp*)
13205 # Portland Group C++ compiler
13206 case `$CC -V` in
13207 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13208 prelink_cmds_CXX='tpldir=Template.dir~
13209 rm -rf $tpldir~
13210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13211 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13212 old_archive_cmds_CXX='tpldir=Template.dir~
13213 rm -rf $tpldir~
13214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13216 $RANLIB $oldlib'
13217 archive_cmds_CXX='tpldir=Template.dir~
13218 rm -rf $tpldir~
13219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13221 archive_expsym_cmds_CXX='tpldir=Template.dir~
13222 rm -rf $tpldir~
13223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13224 $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'
13225 ;;
13226 *) # Version 6 and above use weak symbols
13227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13228 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'
13229 ;;
13230 esac
13231
13232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13234 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'
13235 ;;
13236 cxx*)
13237 # Compaq C++
13238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13239 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'
13240
13241 runpath_var=LD_RUN_PATH
13242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13243 hardcode_libdir_separator_CXX=:
13244
13245 # Commands to make compiler produce verbose output that lists
13246 # what "hidden" libraries, object files and flags are used when
13247 # linking a shared library.
13248 #
13249 # There doesn't appear to be a way to prevent this compiler from
13250 # explicitly linking system object files so we need to strip them
13251 # from the output so that they don't get included in the library
13252 # dependencies.
13253 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'
13254 ;;
13255 xl* | mpixl* | bgxl*)
13256 # IBM XL 8.0 on PPC, with GNU ld
13257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13259 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260 if test "x$supports_anon_versioning" = xyes; then
13261 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13263 echo "local: *; };" >> $output_objdir/$libname.ver~
13264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13265 fi
13266 ;;
13267 *)
13268 case `$CC -V 2>&1 | sed 5q` in
13269 *Sun\ C*)
13270 # Sun C++ 5.9
13271 no_undefined_flag_CXX=' -zdefs'
13272 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 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'
13274 hardcode_libdir_flag_spec_CXX='-R$libdir'
13275 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'
13276 compiler_needs_object_CXX=yes
13277
13278 # Not sure whether something based on
13279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13280 # would be better.
13281 output_verbose_link_cmd='func_echo_all'
13282
13283 # Archives containing C++ object files must be created using
13284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13285 # necessary to make sure instantiated templates are included
13286 # in the archive.
13287 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13288 ;;
13289 esac
13290 ;;
13291 esac
13292 ;;
13293
13294 lynxos*)
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13297 ;;
13298
13299 m88k*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13302 ;;
13303
13304 mvs*)
13305 case $cc_basename in
13306 cxx*)
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13309 ;;
13310 *)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13313 ;;
13314 esac
13315 ;;
13316
13317 netbsd*)
13318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13319 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13320 wlarc=
13321 hardcode_libdir_flag_spec_CXX='-R$libdir'
13322 hardcode_direct_CXX=yes
13323 hardcode_shlibpath_var_CXX=no
13324 fi
13325 # Workaround some broken pre-1.5 toolchains
13326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13327 ;;
13328
13329 *nto* | *qnx*)
13330 ld_shlibs_CXX=yes
13331 ;;
13332
13333 openbsd2*)
13334 # C++ shared libraries are fairly broken
13335 ld_shlibs_CXX=no
13336 ;;
13337
13338 openbsd*)
13339 if test -f /usr/libexec/ld.so; then
13340 hardcode_direct_CXX=yes
13341 hardcode_shlibpath_var_CXX=no
13342 hardcode_direct_absolute_CXX=yes
13343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13346 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13347 export_dynamic_flag_spec_CXX='${wl}-E'
13348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13349 fi
13350 output_verbose_link_cmd=func_echo_all
13351 else
13352 ld_shlibs_CXX=no
13353 fi
13354 ;;
13355
13356 osf3* | osf4* | osf5*)
13357 case $cc_basename in
13358 KCC*)
13359 # Kuck and Associates, Inc. (KAI) C++ Compiler
13360
13361 # KCC will only create a shared library if the output file
13362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13363 # to its proper name (with version) after linking.
13364 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'
13365
13366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13367 hardcode_libdir_separator_CXX=:
13368
13369 # Archives containing C++ object files must be created using
13370 # the KAI C++ compiler.
13371 case $host in
13372 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13373 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13374 esac
13375 ;;
13376 RCC*)
13377 # Rational C++ 2.4.1
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 cxx*)
13382 case $host in
13383 osf3*)
13384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13385 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'
13386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13387 ;;
13388 *)
13389 allow_undefined_flag_CXX=' -expect_unresolved \*'
13390 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'
13391 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13392 echo "-hidden">> $lib.exp~
13393 $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~
13394 $RM $lib.exp'
13395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13396 ;;
13397 esac
13398
13399 hardcode_libdir_separator_CXX=:
13400
13401 # Commands to make compiler produce verbose output that lists
13402 # what "hidden" libraries, object files and flags are used when
13403 # linking a shared library.
13404 #
13405 # There doesn't appear to be a way to prevent this compiler from
13406 # explicitly linking system object files so we need to strip them
13407 # from the output so that they don't get included in the library
13408 # dependencies.
13409 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"'
13410 ;;
13411 *)
13412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13414 case $host in
13415 osf3*)
13416 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'
13417 ;;
13418 *)
13419 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'
13420 ;;
13421 esac
13422
13423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_CXX=:
13425
13426 # Commands to make compiler produce verbose output that lists
13427 # what "hidden" libraries, object files and flags are used when
13428 # linking a shared library.
13429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13430
13431 else
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 fi
13435 ;;
13436 esac
13437 ;;
13438
13439 psos*)
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13442 ;;
13443
13444 sunos4*)
13445 case $cc_basename in
13446 CC*)
13447 # Sun C++ 4.x
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13450 ;;
13451 lcc*)
13452 # Lucid
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 solaris*)
13464 case $cc_basename in
13465 CC*)
13466 # Sun C++ 4.2, 5.x and Centerline C++
13467 archive_cmds_need_lc_CXX=yes
13468 no_undefined_flag_CXX=' -zdefs'
13469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $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'
13472
13473 hardcode_libdir_flag_spec_CXX='-R$libdir'
13474 hardcode_shlibpath_var_CXX=no
13475 case $host_os in
13476 solaris2.[0-5] | solaris2.[0-5].*) ;;
13477 *)
13478 # The compiler driver will combine and reorder linker options,
13479 # but understands `-z linker_flag'.
13480 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13482 ;;
13483 esac
13484 link_all_deplibs_CXX=yes
13485
13486 output_verbose_link_cmd='func_echo_all'
13487
13488 # Archives containing C++ object files must be created using
13489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13490 # necessary to make sure instantiated templates are included
13491 # in the archive.
13492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13493 ;;
13494 gcx*)
13495 # Green Hills C++ Compiler
13496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13497
13498 # The C++ compiler must be used to create the archive.
13499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13500 ;;
13501 *)
13502 # GNU C++ compiler with Solaris linker
13503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13505 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13509
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13514 else
13515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13516 # platform.
13517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13520
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13525 fi
13526
13527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13528 case $host_os in
13529 solaris2.[0-5] | solaris2.[0-5].*) ;;
13530 *)
13531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13532 ;;
13533 esac
13534 fi
13535 ;;
13536 esac
13537 ;;
13538
13539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13540 no_undefined_flag_CXX='${wl}-z,text'
13541 archive_cmds_need_lc_CXX=no
13542 hardcode_shlibpath_var_CXX=no
13543 runpath_var='LD_RUN_PATH'
13544
13545 case $cc_basename in
13546 CC*)
13547 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 ;;
13550 *)
13551 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 ;;
13554 esac
13555 ;;
13556
13557 sysv5* | sco3.2v5* | sco5v6*)
13558 # Note: We can NOT use -z defs as we might desire, because we do not
13559 # link with -lc, and that would cause any symbols used from libc to
13560 # always be unresolved, which means just about no library would
13561 # ever link correctly. If we're not using GNU ld we use -z text
13562 # though, which does catch some bad symbols but isn't as heavy-handed
13563 # as -z defs.
13564 no_undefined_flag_CXX='${wl}-z,text'
13565 allow_undefined_flag_CXX='${wl}-z,nodefs'
13566 archive_cmds_need_lc_CXX=no
13567 hardcode_shlibpath_var_CXX=no
13568 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13569 hardcode_libdir_separator_CXX=':'
13570 link_all_deplibs_CXX=yes
13571 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13572 runpath_var='LD_RUN_PATH'
13573
13574 case $cc_basename in
13575 CC*)
13576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13579 '"$old_archive_cmds_CXX"
13580 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13581 '"$reload_cmds_CXX"
13582 ;;
13583 *)
13584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 ;;
13587 esac
13588 ;;
13589
13590 tandem*)
13591 case $cc_basename in
13592 NCC*)
13593 # NonStop-UX NCC 3.20
13594 # FIXME: insert proper C++ library support
13595 ld_shlibs_CXX=no
13596 ;;
13597 *)
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13600 ;;
13601 esac
13602 ;;
13603
13604 vxworks*)
13605 # FIXME: insert proper C++ library support
13606 ld_shlibs_CXX=no
13607 ;;
13608
13609 *)
13610 # FIXME: insert proper C++ library support
13611 ld_shlibs_CXX=no
13612 ;;
13613 esac
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13616 $as_echo "$ld_shlibs_CXX" >&6; }
13617 test "$ld_shlibs_CXX" = no && can_build_shared=no
13618
13619 GCC_CXX="$GXX"
13620 LD_CXX="$LD"
13621
13622 ## CAVEAT EMPTOR:
13623 ## There is no encapsulation within the following macros, do not change
13624 ## the running order or otherwise move them around unless you know exactly
13625 ## what you are doing...
13626 # Dependencies to place before and after the object being linked:
13627 predep_objects_CXX=
13628 postdep_objects_CXX=
13629 predeps_CXX=
13630 postdeps_CXX=
13631 compiler_lib_search_path_CXX=
13632
13633 cat > conftest.$ac_ext <<_LT_EOF
13634 class Foo
13635 {
13636 public:
13637 Foo (void) { a = 0; }
13638 private:
13639 int a;
13640 };
13641 _LT_EOF
13642
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13644 (eval $ac_compile) 2>&5
13645 ac_status=$?
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; }; then
13648 # Parse the compiler output and extract the necessary
13649 # objects, libraries and library flags.
13650
13651 # Sentinel used to keep track of whether or not we are before
13652 # the conftest object file.
13653 pre_test_object_deps_done=no
13654
13655 for p in `eval "$output_verbose_link_cmd"`; do
13656 case $p in
13657
13658 -L* | -R* | -l*)
13659 # Some compilers place space between "-{L,R}" and the path.
13660 # Remove the space.
13661 if test $p = "-L" ||
13662 test $p = "-R"; then
13663 prev=$p
13664 continue
13665 else
13666 prev=
13667 fi
13668
13669 if test "$pre_test_object_deps_done" = no; then
13670 case $p in
13671 -L* | -R*)
13672 # Internal compiler library paths should come after those
13673 # provided the user. The postdeps already come after the
13674 # user supplied libs so there is no need to process them.
13675 if test -z "$compiler_lib_search_path_CXX"; then
13676 compiler_lib_search_path_CXX="${prev}${p}"
13677 else
13678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13679 fi
13680 ;;
13681 # The "-l" case would never come before the object being
13682 # linked, so don't bother handling this case.
13683 esac
13684 else
13685 if test -z "$postdeps_CXX"; then
13686 postdeps_CXX="${prev}${p}"
13687 else
13688 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13689 fi
13690 fi
13691 ;;
13692
13693 *.$objext)
13694 # This assumes that the test object file only shows up
13695 # once in the compiler output.
13696 if test "$p" = "conftest.$objext"; then
13697 pre_test_object_deps_done=yes
13698 continue
13699 fi
13700
13701 if test "$pre_test_object_deps_done" = no; then
13702 if test -z "$predep_objects_CXX"; then
13703 predep_objects_CXX="$p"
13704 else
13705 predep_objects_CXX="$predep_objects_CXX $p"
13706 fi
13707 else
13708 if test -z "$postdep_objects_CXX"; then
13709 postdep_objects_CXX="$p"
13710 else
13711 postdep_objects_CXX="$postdep_objects_CXX $p"
13712 fi
13713 fi
13714 ;;
13715
13716 *) ;; # Ignore the rest.
13717
13718 esac
13719 done
13720
13721 # Clean up.
13722 rm -f a.out a.exe
13723 else
13724 echo "libtool.m4: error: problem compiling CXX test program"
13725 fi
13726
13727 $RM -f confest.$objext
13728
13729 # PORTME: override above test on systems where it is broken
13730 case $host_os in
13731 interix[3-9]*)
13732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13733 # hack all around it, let's just trust "g++" to DTRT.
13734 predep_objects_CXX=
13735 postdep_objects_CXX=
13736 postdeps_CXX=
13737 ;;
13738
13739 linux*)
13740 case `$CC -V 2>&1 | sed 5q` in
13741 *Sun\ C*)
13742 # Sun C++ 5.9
13743
13744 # The more standards-conforming stlport4 library is
13745 # incompatible with the Cstd library. Avoid specifying
13746 # it if it's in CXXFLAGS. Ignore libCrun as
13747 # -library=stlport4 depends on it.
13748 case " $CXX $CXXFLAGS " in
13749 *" -library=stlport4 "*)
13750 solaris_use_stlport4=yes
13751 ;;
13752 esac
13753
13754 if test "$solaris_use_stlport4" != yes; then
13755 postdeps_CXX='-library=Cstd -library=Crun'
13756 fi
13757 ;;
13758 esac
13759 ;;
13760
13761 solaris*)
13762 case $cc_basename in
13763 CC*)
13764 # The more standards-conforming stlport4 library is
13765 # incompatible with the Cstd library. Avoid specifying
13766 # it if it's in CXXFLAGS. Ignore libCrun as
13767 # -library=stlport4 depends on it.
13768 case " $CXX $CXXFLAGS " in
13769 *" -library=stlport4 "*)
13770 solaris_use_stlport4=yes
13771 ;;
13772 esac
13773
13774 # Adding this requires a known-good setup of shared libraries for
13775 # Sun compiler versions before 5.6, else PIC objects from an old
13776 # archive will be linked into the output, leading to subtle bugs.
13777 if test "$solaris_use_stlport4" != yes; then
13778 postdeps_CXX='-library=Cstd -library=Crun'
13779 fi
13780 ;;
13781 esac
13782 ;;
13783 esac
13784
13785
13786 case " $postdeps_CXX " in
13787 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13788 esac
13789 compiler_lib_search_dirs_CXX=
13790 if test -n "${compiler_lib_search_path_CXX}"; then
13791 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13792 fi
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824 lt_prog_compiler_wl_CXX=
13825 lt_prog_compiler_pic_CXX=
13826 lt_prog_compiler_static_CXX=
13827
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13830
13831 # C++ specific cases for pic, static, wl, etc.
13832 if test "$GXX" = yes; then
13833 lt_prog_compiler_wl_CXX='-Wl,'
13834 lt_prog_compiler_static_CXX='-static'
13835
13836 case $host_os in
13837 aix*)
13838 # All AIX code is PIC.
13839 if test "$host_cpu" = ia64; then
13840 # AIX 5 now supports IA64 processor
13841 lt_prog_compiler_static_CXX='-Bstatic'
13842 fi
13843 lt_prog_compiler_pic_CXX='-fPIC'
13844 ;;
13845
13846 amigaos*)
13847 case $host_cpu in
13848 powerpc)
13849 # see comment about AmigaOS4 .so support
13850 lt_prog_compiler_pic_CXX='-fPIC'
13851 ;;
13852 m68k)
13853 # FIXME: we need at least 68020 code to build shared libraries, but
13854 # adding the `-m68020' flag to GCC prevents building anything better,
13855 # like `-m68040'.
13856 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13857 ;;
13858 esac
13859 ;;
13860
13861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13862 # PIC is the default for these OSes.
13863 ;;
13864 mingw* | cygwin* | os2* | pw32* | cegcc*)
13865 # This hack is so that the source file can tell whether it is being
13866 # built for inclusion in a dll (and should export symbols for example).
13867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13868 # (--disable-auto-import) libraries
13869 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13870 ;;
13871 darwin* | rhapsody*)
13872 # PIC is the default on this platform
13873 # Common symbols not allowed in MH_DYLIB files
13874 lt_prog_compiler_pic_CXX='-fno-common'
13875 ;;
13876 *djgpp*)
13877 # DJGPP does not support shared libraries at all
13878 lt_prog_compiler_pic_CXX=
13879 ;;
13880 haiku*)
13881 # PIC is the default for Haiku.
13882 # The "-static" flag exists, but is broken.
13883 lt_prog_compiler_static_CXX=
13884 ;;
13885 interix[3-9]*)
13886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13887 # Instead, we relocate shared libraries at runtime.
13888 ;;
13889 sysv4*MP*)
13890 if test -d /usr/nec; then
13891 lt_prog_compiler_pic_CXX=-Kconform_pic
13892 fi
13893 ;;
13894 hpux*)
13895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13897 # sets the default TLS model and affects inlining.
13898 case $host_cpu in
13899 hppa*64*)
13900 ;;
13901 *)
13902 lt_prog_compiler_pic_CXX='-fPIC'
13903 ;;
13904 esac
13905 ;;
13906 *qnx* | *nto*)
13907 # QNX uses GNU C++, but need to define -shared option too, otherwise
13908 # it will coredump.
13909 lt_prog_compiler_pic_CXX='-fPIC -shared'
13910 ;;
13911 *)
13912 lt_prog_compiler_pic_CXX='-fPIC'
13913 ;;
13914 esac
13915 else
13916 case $host_os in
13917 aix[4-9]*)
13918 # All AIX code is PIC.
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_CXX='-Bstatic'
13922 else
13923 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13924 fi
13925 ;;
13926 chorus*)
13927 case $cc_basename in
13928 cxch68*)
13929 # Green Hills C++ Compiler
13930 # _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"
13931 ;;
13932 esac
13933 ;;
13934 dgux*)
13935 case $cc_basename in
13936 ec++*)
13937 lt_prog_compiler_pic_CXX='-KPIC'
13938 ;;
13939 ghcx*)
13940 # Green Hills C++ Compiler
13941 lt_prog_compiler_pic_CXX='-pic'
13942 ;;
13943 *)
13944 ;;
13945 esac
13946 ;;
13947 freebsd* | dragonfly*)
13948 # FreeBSD uses GNU C++
13949 ;;
13950 hpux9* | hpux10* | hpux11*)
13951 case $cc_basename in
13952 CC*)
13953 lt_prog_compiler_wl_CXX='-Wl,'
13954 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13955 if test "$host_cpu" != ia64; then
13956 lt_prog_compiler_pic_CXX='+Z'
13957 fi
13958 ;;
13959 aCC*)
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13962 case $host_cpu in
13963 hppa*64*|ia64*)
13964 # +Z the default
13965 ;;
13966 *)
13967 lt_prog_compiler_pic_CXX='+Z'
13968 ;;
13969 esac
13970 ;;
13971 *)
13972 ;;
13973 esac
13974 ;;
13975 interix*)
13976 # This is c89, which is MS Visual C++ (no shared libs)
13977 # Anyone wants to do a port?
13978 ;;
13979 irix5* | irix6* | nonstopux*)
13980 case $cc_basename in
13981 CC*)
13982 lt_prog_compiler_wl_CXX='-Wl,'
13983 lt_prog_compiler_static_CXX='-non_shared'
13984 # CC pic flag -KPIC is the default.
13985 ;;
13986 *)
13987 ;;
13988 esac
13989 ;;
13990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13991 case $cc_basename in
13992 KCC*)
13993 # KAI C++ Compiler
13994 lt_prog_compiler_wl_CXX='--backend -Wl,'
13995 lt_prog_compiler_pic_CXX='-fPIC'
13996 ;;
13997 ecpc* )
13998 # old Intel C++ for x86_64 which still supported -KPIC.
13999 lt_prog_compiler_wl_CXX='-Wl,'
14000 lt_prog_compiler_pic_CXX='-KPIC'
14001 lt_prog_compiler_static_CXX='-static'
14002 ;;
14003 icpc* )
14004 # Intel C++, used to be incompatible with GCC.
14005 # ICC 10 doesn't accept -KPIC any more.
14006 lt_prog_compiler_wl_CXX='-Wl,'
14007 lt_prog_compiler_pic_CXX='-fPIC'
14008 lt_prog_compiler_static_CXX='-static'
14009 ;;
14010 pgCC* | pgcpp*)
14011 # Portland Group C++ compiler
14012 lt_prog_compiler_wl_CXX='-Wl,'
14013 lt_prog_compiler_pic_CXX='-fpic'
14014 lt_prog_compiler_static_CXX='-Bstatic'
14015 ;;
14016 cxx*)
14017 # Compaq C++
14018 # Make sure the PIC flag is empty. It appears that all Alpha
14019 # Linux and Compaq Tru64 Unix objects are PIC.
14020 lt_prog_compiler_pic_CXX=
14021 lt_prog_compiler_static_CXX='-non_shared'
14022 ;;
14023 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14024 # IBM XL 8.0, 9.0 on PPC and BlueGene
14025 lt_prog_compiler_wl_CXX='-Wl,'
14026 lt_prog_compiler_pic_CXX='-qpic'
14027 lt_prog_compiler_static_CXX='-qstaticlink'
14028 ;;
14029 *)
14030 case `$CC -V 2>&1 | sed 5q` in
14031 *Sun\ C*)
14032 # Sun C++ 5.9
14033 lt_prog_compiler_pic_CXX='-KPIC'
14034 lt_prog_compiler_static_CXX='-Bstatic'
14035 lt_prog_compiler_wl_CXX='-Qoption ld '
14036 ;;
14037 esac
14038 ;;
14039 esac
14040 ;;
14041 lynxos*)
14042 ;;
14043 m88k*)
14044 ;;
14045 mvs*)
14046 case $cc_basename in
14047 cxx*)
14048 lt_prog_compiler_pic_CXX='-W c,exportall'
14049 ;;
14050 *)
14051 ;;
14052 esac
14053 ;;
14054 netbsd*)
14055 ;;
14056 *qnx* | *nto*)
14057 # QNX uses GNU C++, but need to define -shared option too, otherwise
14058 # it will coredump.
14059 lt_prog_compiler_pic_CXX='-fPIC -shared'
14060 ;;
14061 osf3* | osf4* | osf5*)
14062 case $cc_basename in
14063 KCC*)
14064 lt_prog_compiler_wl_CXX='--backend -Wl,'
14065 ;;
14066 RCC*)
14067 # Rational C++ 2.4.1
14068 lt_prog_compiler_pic_CXX='-pic'
14069 ;;
14070 cxx*)
14071 # Digital/Compaq C++
14072 lt_prog_compiler_wl_CXX='-Wl,'
14073 # Make sure the PIC flag is empty. It appears that all Alpha
14074 # Linux and Compaq Tru64 Unix objects are PIC.
14075 lt_prog_compiler_pic_CXX=
14076 lt_prog_compiler_static_CXX='-non_shared'
14077 ;;
14078 *)
14079 ;;
14080 esac
14081 ;;
14082 psos*)
14083 ;;
14084 solaris*)
14085 case $cc_basename in
14086 CC*)
14087 # Sun C++ 4.2, 5.x and Centerline C++
14088 lt_prog_compiler_pic_CXX='-KPIC'
14089 lt_prog_compiler_static_CXX='-Bstatic'
14090 lt_prog_compiler_wl_CXX='-Qoption ld '
14091 ;;
14092 gcx*)
14093 # Green Hills C++ Compiler
14094 lt_prog_compiler_pic_CXX='-PIC'
14095 ;;
14096 *)
14097 ;;
14098 esac
14099 ;;
14100 sunos4*)
14101 case $cc_basename in
14102 CC*)
14103 # Sun C++ 4.x
14104 lt_prog_compiler_pic_CXX='-pic'
14105 lt_prog_compiler_static_CXX='-Bstatic'
14106 ;;
14107 lcc*)
14108 # Lucid
14109 lt_prog_compiler_pic_CXX='-pic'
14110 ;;
14111 *)
14112 ;;
14113 esac
14114 ;;
14115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14116 case $cc_basename in
14117 CC*)
14118 lt_prog_compiler_wl_CXX='-Wl,'
14119 lt_prog_compiler_pic_CXX='-KPIC'
14120 lt_prog_compiler_static_CXX='-Bstatic'
14121 ;;
14122 esac
14123 ;;
14124 tandem*)
14125 case $cc_basename in
14126 NCC*)
14127 # NonStop-UX NCC 3.20
14128 lt_prog_compiler_pic_CXX='-KPIC'
14129 ;;
14130 *)
14131 ;;
14132 esac
14133 ;;
14134 vxworks*)
14135 ;;
14136 *)
14137 lt_prog_compiler_can_build_shared_CXX=no
14138 ;;
14139 esac
14140 fi
14141
14142 case $host_os in
14143 # For platforms which do not support PIC, -DPIC is meaningless:
14144 *djgpp*)
14145 lt_prog_compiler_pic_CXX=
14146 ;;
14147 *)
14148 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14149 ;;
14150 esac
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14152 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14153
14154
14155
14156 #
14157 # Check to make sure the PIC flag actually works.
14158 #
14159 if test -n "$lt_prog_compiler_pic_CXX"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14161 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14162 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 lt_cv_prog_compiler_pic_works_CXX=no
14166 ac_outfile=conftest.$ac_objext
14167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14168 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14169 # Insert the option either (1) after the last *FLAGS variable, or
14170 # (2) before a word containing "conftest.", or (3) at the end.
14171 # Note that $ac_compile itself does not contain backslashes and begins
14172 # with a dollar sign (not a hyphen), so the echo should work correctly.
14173 # The option is referenced via a variable to avoid confusing sed.
14174 lt_compile=`echo "$ac_compile" | $SED \
14175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14177 -e 's:$: $lt_compiler_flag:'`
14178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14179 (eval "$lt_compile" 2>conftest.err)
14180 ac_status=$?
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 if (exit $ac_status) && test -s "$ac_outfile"; then
14184 # The compiler can only warn and ignore the option if not recognized
14185 # So say no if there are warnings other than the usual output.
14186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14189 lt_cv_prog_compiler_pic_works_CXX=yes
14190 fi
14191 fi
14192 $RM conftest*
14193
14194 fi
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14196 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14197
14198 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14199 case $lt_prog_compiler_pic_CXX in
14200 "" | " "*) ;;
14201 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14202 esac
14203 else
14204 lt_prog_compiler_pic_CXX=
14205 lt_prog_compiler_can_build_shared_CXX=no
14206 fi
14207
14208 fi
14209
14210
14211
14212 #
14213 # Check to make sure the static flag actually works.
14214 #
14215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14218 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 lt_cv_prog_compiler_static_works_CXX=no
14222 save_LDFLAGS="$LDFLAGS"
14223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14226 # The linker can only warn and ignore the option if not recognized
14227 # So say no if there are warnings
14228 if test -s conftest.err; then
14229 # Append any errors to the config.log.
14230 cat conftest.err 1>&5
14231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14233 if diff conftest.exp conftest.er2 >/dev/null; then
14234 lt_cv_prog_compiler_static_works_CXX=yes
14235 fi
14236 else
14237 lt_cv_prog_compiler_static_works_CXX=yes
14238 fi
14239 fi
14240 $RM -r conftest*
14241 LDFLAGS="$save_LDFLAGS"
14242
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14246
14247 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14248 :
14249 else
14250 lt_prog_compiler_static_CXX=
14251 fi
14252
14253
14254
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14258 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 lt_cv_prog_compiler_c_o_CXX=no
14262 $RM -r conftest 2>/dev/null
14263 mkdir conftest
14264 cd conftest
14265 mkdir out
14266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14267
14268 lt_compiler_flag="-o out/conftest2.$ac_objext"
14269 # Insert the option either (1) after the last *FLAGS variable, or
14270 # (2) before a word containing "conftest.", or (3) at the end.
14271 # Note that $ac_compile itself does not contain backslashes and begins
14272 # with a dollar sign (not a hyphen), so the echo should work correctly.
14273 lt_compile=`echo "$ac_compile" | $SED \
14274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14276 -e 's:$: $lt_compiler_flag:'`
14277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14278 (eval "$lt_compile" 2>out/conftest.err)
14279 ac_status=$?
14280 cat out/conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14283 then
14284 # The compiler can only warn and ignore the option if not recognized
14285 # So say no if there are warnings
14286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14289 lt_cv_prog_compiler_c_o_CXX=yes
14290 fi
14291 fi
14292 chmod u+w . 2>&5
14293 $RM conftest*
14294 # SGI C++ compiler will create directory out/ii_files/ for
14295 # template instantiation
14296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14297 $RM out/* && rmdir out
14298 cd ..
14299 $RM -r conftest
14300 $RM conftest*
14301
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14305
14306
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14310 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 lt_cv_prog_compiler_c_o_CXX=no
14314 $RM -r conftest 2>/dev/null
14315 mkdir conftest
14316 cd conftest
14317 mkdir out
14318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14319
14320 lt_compiler_flag="-o out/conftest2.$ac_objext"
14321 # Insert the option either (1) after the last *FLAGS variable, or
14322 # (2) before a word containing "conftest.", or (3) at the end.
14323 # Note that $ac_compile itself does not contain backslashes and begins
14324 # with a dollar sign (not a hyphen), so the echo should work correctly.
14325 lt_compile=`echo "$ac_compile" | $SED \
14326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14328 -e 's:$: $lt_compiler_flag:'`
14329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14330 (eval "$lt_compile" 2>out/conftest.err)
14331 ac_status=$?
14332 cat out/conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14335 then
14336 # The compiler can only warn and ignore the option if not recognized
14337 # So say no if there are warnings
14338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14341 lt_cv_prog_compiler_c_o_CXX=yes
14342 fi
14343 fi
14344 chmod u+w . 2>&5
14345 $RM conftest*
14346 # SGI C++ compiler will create directory out/ii_files/ for
14347 # template instantiation
14348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14349 $RM out/* && rmdir out
14350 cd ..
14351 $RM -r conftest
14352 $RM conftest*
14353
14354 fi
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14357
14358
14359
14360
14361 hard_links="nottested"
14362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14363 # do not overwrite the value of need_locks provided by the user
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14365 $as_echo_n "checking if we can lock with hard links... " >&6; }
14366 hard_links=yes
14367 $RM conftest*
14368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14369 touch conftest.a
14370 ln conftest.a conftest.b 2>&5 || hard_links=no
14371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14373 $as_echo "$hard_links" >&6; }
14374 if test "$hard_links" = no; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14377 need_locks=warn
14378 fi
14379 else
14380 need_locks=no
14381 fi
14382
14383
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14387
14388 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14389 case $host_os in
14390 aix[4-9]*)
14391 # If we're using GNU nm, then we don't want the "-C" option.
14392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14393 # Also, AIX nm treats weak defined symbols like other global defined
14394 # symbols, whereas GNU nm marks them as "W".
14395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14396 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'
14397 else
14398 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'
14399 fi
14400 ;;
14401 pw32*)
14402 export_symbols_cmds_CXX="$ltdll_cmds"
14403 ;;
14404 cygwin* | mingw* | cegcc*)
14405 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'
14406 ;;
14407 *)
14408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14409 ;;
14410 esac
14411 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14414 $as_echo "$ld_shlibs_CXX" >&6; }
14415 test "$ld_shlibs_CXX" = no && can_build_shared=no
14416
14417 with_gnu_ld_CXX=$with_gnu_ld
14418
14419
14420
14421
14422
14423
14424 #
14425 # Do we need to explicitly link libc?
14426 #
14427 case "x$archive_cmds_need_lc_CXX" in
14428 x|xyes)
14429 # Assume -lc should be added
14430 archive_cmds_need_lc_CXX=yes
14431
14432 if test "$enable_shared" = yes && test "$GCC" = yes; then
14433 case $archive_cmds_CXX in
14434 *'~'*)
14435 # FIXME: we may have to deal with multi-command sequences.
14436 ;;
14437 '$CC '*)
14438 # Test whether the compiler implicitly links with -lc since on some
14439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14440 # to ld, don't add -lc before -lgcc.
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14443 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 $RM conftest*
14447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14448
14449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14450 (eval $ac_compile) 2>&5
14451 ac_status=$?
14452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453 test $ac_status = 0; } 2>conftest.err; then
14454 soname=conftest
14455 lib=conftest
14456 libobjs=conftest.$ac_objext
14457 deplibs=
14458 wl=$lt_prog_compiler_wl_CXX
14459 pic_flag=$lt_prog_compiler_pic_CXX
14460 compiler_flags=-v
14461 linker_flags=-v
14462 verstring=
14463 output_objdir=.
14464 libname=conftest
14465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14466 allow_undefined_flag_CXX=
14467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14468 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14469 ac_status=$?
14470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471 test $ac_status = 0; }
14472 then
14473 lt_cv_archive_cmds_need_lc_CXX=no
14474 else
14475 lt_cv_archive_cmds_need_lc_CXX=yes
14476 fi
14477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14478 else
14479 cat conftest.err 1>&5
14480 fi
14481 $RM conftest*
14482
14483 fi
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14485 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14486 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14487 ;;
14488 esac
14489 fi
14490 ;;
14491 esac
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14558
14559 library_names_spec=
14560 libname_spec='lib$name'
14561 soname_spec=
14562 shrext_cmds=".so"
14563 postinstall_cmds=
14564 postuninstall_cmds=
14565 finish_cmds=
14566 finish_eval=
14567 shlibpath_var=
14568 shlibpath_overrides_runpath=unknown
14569 version_type=none
14570 dynamic_linker="$host_os ld.so"
14571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14572 need_lib_prefix=unknown
14573 hardcode_into_libs=no
14574
14575 # when you set need_version to no, make sure it does not cause -set_version
14576 # flags to be left without arguments
14577 need_version=unknown
14578
14579 case $host_os in
14580 aix3*)
14581 version_type=linux
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14583 shlibpath_var=LIBPATH
14584
14585 # AIX 3 has no versioning support, so we append a major version to the name.
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 ;;
14588
14589 aix[4-9]*)
14590 version_type=linux
14591 need_lib_prefix=no
14592 need_version=no
14593 hardcode_into_libs=yes
14594 if test "$host_cpu" = ia64; then
14595 # AIX 5 supports IA64
14596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 else
14599 # With GCC up to 2.95.x, collect2 would create an import file
14600 # for dependence libraries. The import file would start with
14601 # the line `#! .'. This would cause the generated library to
14602 # depend on `.', always an invalid library. This was fixed in
14603 # development snapshots of GCC prior to 3.0.
14604 case $host_os in
14605 aix4 | aix4.[01] | aix4.[01].*)
14606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14607 echo ' yes '
14608 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14609 :
14610 else
14611 can_build_shared=no
14612 fi
14613 ;;
14614 esac
14615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14616 # soname into executable. Probably we can add versioning support to
14617 # collect2, so additional links can be useful in future.
14618 if test "$aix_use_runtimelinking" = yes; then
14619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14620 # instead of lib<name>.a to let people know that these are not
14621 # typical AIX shared libraries.
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 else
14624 # We preserve .a as extension for shared libraries through AIX4.2
14625 # and later when we are not doing run time linking.
14626 library_names_spec='${libname}${release}.a $libname.a'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 fi
14629 shlibpath_var=LIBPATH
14630 fi
14631 ;;
14632
14633 amigaos*)
14634 case $host_cpu in
14635 powerpc)
14636 # Since July 2007 AmigaOS4 officially supports .so libraries.
14637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 ;;
14640 m68k)
14641 library_names_spec='$libname.ixlibrary $libname.a'
14642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14643 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'
14644 ;;
14645 esac
14646 ;;
14647
14648 beos*)
14649 library_names_spec='${libname}${shared_ext}'
14650 dynamic_linker="$host_os ld.so"
14651 shlibpath_var=LIBRARY_PATH
14652 ;;
14653
14654 bsdi[45]*)
14655 version_type=linux
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14663 # the default ld.so.conf also contains /usr/contrib/lib and
14664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14665 # libtool to hard-code these into programs
14666 ;;
14667
14668 cygwin* | mingw* | pw32* | cegcc*)
14669 version_type=windows
14670 shrext_cmds=".dll"
14671 need_version=no
14672 need_lib_prefix=no
14673
14674 case $GCC,$host_os in
14675 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14676 library_names_spec='$libname.dll.a'
14677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14678 postinstall_cmds='base_file=`basename \${file}`~
14679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14680 dldir=$destdir/`dirname \$dlpath`~
14681 test -d \$dldir || mkdir -p \$dldir~
14682 $install_prog $dir/$dlname \$dldir/$dlname~
14683 chmod a+x \$dldir/$dlname~
14684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14686 fi'
14687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14688 dlpath=$dir/\$dldll~
14689 $RM \$dlpath'
14690 shlibpath_overrides_runpath=yes
14691
14692 case $host_os in
14693 cygwin*)
14694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696
14697 ;;
14698 mingw* | cegcc*)
14699 # MinGW DLLs use traditional 'lib' prefix
14700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14701 ;;
14702 pw32*)
14703 # pw32 DLLs use 'pw' prefix rather than 'lib'
14704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14705 ;;
14706 esac
14707 ;;
14708
14709 *)
14710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14711 ;;
14712 esac
14713 dynamic_linker='Win32 ld.exe'
14714 # FIXME: first we should search . and the directory the executable is in
14715 shlibpath_var=PATH
14716 ;;
14717
14718 darwin* | rhapsody*)
14719 dynamic_linker="$host_os dyld"
14720 version_type=darwin
14721 need_lib_prefix=no
14722 need_version=no
14723 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14724 soname_spec='${libname}${release}${major}$shared_ext'
14725 shlibpath_overrides_runpath=yes
14726 shlibpath_var=DYLD_LIBRARY_PATH
14727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14728
14729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14730 ;;
14731
14732 dgux*)
14733 version_type=linux
14734 need_lib_prefix=no
14735 need_version=no
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 ;;
14740
14741 freebsd* | dragonfly*)
14742 # DragonFly does not have aout. When/if they implement a new
14743 # versioning mechanism, adjust this.
14744 if test -x /usr/bin/objformat; then
14745 objformat=`/usr/bin/objformat`
14746 else
14747 case $host_os in
14748 freebsd[23].*) objformat=aout ;;
14749 *) objformat=elf ;;
14750 esac
14751 fi
14752 version_type=freebsd-$objformat
14753 case $version_type in
14754 freebsd-elf*)
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14756 need_version=no
14757 need_lib_prefix=no
14758 ;;
14759 freebsd-*)
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14761 need_version=yes
14762 ;;
14763 esac
14764 shlibpath_var=LD_LIBRARY_PATH
14765 case $host_os in
14766 freebsd2.*)
14767 shlibpath_overrides_runpath=yes
14768 ;;
14769 freebsd3.[01]* | freebsdelf3.[01]*)
14770 shlibpath_overrides_runpath=yes
14771 hardcode_into_libs=yes
14772 ;;
14773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14775 shlibpath_overrides_runpath=no
14776 hardcode_into_libs=yes
14777 ;;
14778 *) # from 4.6 on, and DragonFly
14779 shlibpath_overrides_runpath=yes
14780 hardcode_into_libs=yes
14781 ;;
14782 esac
14783 ;;
14784
14785 gnu*)
14786 version_type=linux
14787 need_lib_prefix=no
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 hardcode_into_libs=yes
14793 ;;
14794
14795 haiku*)
14796 version_type=linux
14797 need_lib_prefix=no
14798 need_version=no
14799 dynamic_linker="$host_os runtime_loader"
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 shlibpath_var=LIBRARY_PATH
14803 shlibpath_overrides_runpath=yes
14804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14805 hardcode_into_libs=yes
14806 ;;
14807
14808 hpux9* | hpux10* | hpux11*)
14809 # Give a soname corresponding to the major version so that dld.sl refuses to
14810 # link against other versions.
14811 version_type=sunos
14812 need_lib_prefix=no
14813 need_version=no
14814 case $host_cpu in
14815 ia64*)
14816 shrext_cmds='.so'
14817 hardcode_into_libs=yes
14818 dynamic_linker="$host_os dld.so"
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 if test "X$HPUX_IA64_MODE" = X32; then
14824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14825 else
14826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14827 fi
14828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14829 ;;
14830 hppa*64*)
14831 shrext_cmds='.sl'
14832 hardcode_into_libs=yes
14833 dynamic_linker="$host_os dld.sl"
14834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14840 ;;
14841 *)
14842 shrext_cmds='.sl'
14843 dynamic_linker="$host_os dld.sl"
14844 shlibpath_var=SHLIB_PATH
14845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 ;;
14849 esac
14850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14851 postinstall_cmds='chmod 555 $lib'
14852 # or fails outright, so override atomically:
14853 install_override_mode=555
14854 ;;
14855
14856 interix[3-9]*)
14857 version_type=linux
14858 need_lib_prefix=no
14859 need_version=no
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath=no
14865 hardcode_into_libs=yes
14866 ;;
14867
14868 irix5* | irix6* | nonstopux*)
14869 case $host_os in
14870 nonstopux*) version_type=nonstopux ;;
14871 *)
14872 if test "$lt_cv_prog_gnu_ld" = yes; then
14873 version_type=linux
14874 else
14875 version_type=irix
14876 fi ;;
14877 esac
14878 need_lib_prefix=no
14879 need_version=no
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14882 case $host_os in
14883 irix5* | nonstopux*)
14884 libsuff= shlibsuff=
14885 ;;
14886 *)
14887 case $LD in # libtool.m4 will add one of these switches to LD
14888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14889 libsuff= shlibsuff= libmagic=32-bit;;
14890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14891 libsuff=32 shlibsuff=N32 libmagic=N32;;
14892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14894 *) libsuff= shlibsuff= libmagic=never-match;;
14895 esac
14896 ;;
14897 esac
14898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14899 shlibpath_overrides_runpath=no
14900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14902 hardcode_into_libs=yes
14903 ;;
14904
14905 # No shared lib support for Linux oldld, aout, or coff.
14906 linux*oldld* | linux*aout* | linux*coff*)
14907 dynamic_linker=no
14908 ;;
14909
14910 # This must be Linux ELF.
14911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14912 version_type=linux
14913 need_lib_prefix=no
14914 need_version=no
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=no
14920
14921 # Some binutils ld are patched to set DT_RUNPATH
14922 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 lt_cv_shlibpath_overrides_runpath=no
14926 save_LDFLAGS=$LDFLAGS
14927 save_libdir=$libdir
14928 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14929 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932
14933 int
14934 main ()
14935 {
14936
14937 ;
14938 return 0;
14939 }
14940 _ACEOF
14941 if ac_fn_cxx_try_link "$LINENO"; then :
14942 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14943 lt_cv_shlibpath_overrides_runpath=yes
14944 fi
14945 fi
14946 rm -f core conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14948 LDFLAGS=$save_LDFLAGS
14949 libdir=$save_libdir
14950
14951 fi
14952
14953 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14954
14955 # This implies no fast_install, which is unacceptable.
14956 # Some rework will be needed to allow for fast_install
14957 # before this can be enabled.
14958 hardcode_into_libs=yes
14959
14960 # Append ld.so.conf contents to the search path
14961 if test -f /etc/ld.so.conf; then
14962 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' ' '`
14963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14964 fi
14965
14966 # We used to test for /lib/ld.so.1 and disable shared libraries on
14967 # powerpc, because MkLinux only supported shared libraries with the
14968 # GNU dynamic linker. Since this was broken with cross compilers,
14969 # most powerpc-linux boxes support dynamic linking these days and
14970 # people can always --disable-shared, the test was removed, and we
14971 # assume the GNU/Linux dynamic linker is in use.
14972 dynamic_linker='GNU/Linux ld.so'
14973 ;;
14974
14975 netbsd*)
14976 version_type=sunos
14977 need_lib_prefix=no
14978 need_version=no
14979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14982 dynamic_linker='NetBSD (a.out) ld.so'
14983 else
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 dynamic_linker='NetBSD ld.elf_so'
14987 fi
14988 shlibpath_var=LD_LIBRARY_PATH
14989 shlibpath_overrides_runpath=yes
14990 hardcode_into_libs=yes
14991 ;;
14992
14993 newsos6)
14994 version_type=linux
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath=yes
14998 ;;
14999
15000 *nto* | *qnx*)
15001 version_type=qnx
15002 need_lib_prefix=no
15003 need_version=no
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=no
15008 hardcode_into_libs=yes
15009 dynamic_linker='ldqnx.so'
15010 ;;
15011
15012 openbsd*)
15013 version_type=sunos
15014 sys_lib_dlsearch_path_spec="/usr/lib"
15015 need_lib_prefix=no
15016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15017 case $host_os in
15018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15019 *) need_version=no ;;
15020 esac
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15025 case $host_os in
15026 openbsd2.[89] | openbsd2.[89].*)
15027 shlibpath_overrides_runpath=no
15028 ;;
15029 *)
15030 shlibpath_overrides_runpath=yes
15031 ;;
15032 esac
15033 else
15034 shlibpath_overrides_runpath=yes
15035 fi
15036 ;;
15037
15038 os2*)
15039 libname_spec='$name'
15040 shrext_cmds=".dll"
15041 need_lib_prefix=no
15042 library_names_spec='$libname${shared_ext} $libname.a'
15043 dynamic_linker='OS/2 ld.exe'
15044 shlibpath_var=LIBPATH
15045 ;;
15046
15047 osf3* | osf4* | osf5*)
15048 version_type=osf
15049 need_lib_prefix=no
15050 need_version=no
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15056 ;;
15057
15058 rdos*)
15059 dynamic_linker=no
15060 ;;
15061
15062 solaris*)
15063 version_type=linux
15064 need_lib_prefix=no
15065 need_version=no
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes
15070 hardcode_into_libs=yes
15071 # ldd complains unless libraries are executable
15072 postinstall_cmds='chmod +x $lib'
15073 ;;
15074
15075 sunos4*)
15076 version_type=sunos
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=yes
15081 if test "$with_gnu_ld" = yes; then
15082 need_lib_prefix=no
15083 fi
15084 need_version=yes
15085 ;;
15086
15087 sysv4 | sysv4.3*)
15088 version_type=linux
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 case $host_vendor in
15093 sni)
15094 shlibpath_overrides_runpath=no
15095 need_lib_prefix=no
15096 runpath_var=LD_RUN_PATH
15097 ;;
15098 siemens)
15099 need_lib_prefix=no
15100 ;;
15101 motorola)
15102 need_lib_prefix=no
15103 need_version=no
15104 shlibpath_overrides_runpath=no
15105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15106 ;;
15107 esac
15108 ;;
15109
15110 sysv4*MP*)
15111 if test -d /usr/nec ;then
15112 version_type=linux
15113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15114 soname_spec='$libname${shared_ext}.$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 fi
15117 ;;
15118
15119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15120 version_type=freebsd-elf
15121 need_lib_prefix=no
15122 need_version=no
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes
15127 hardcode_into_libs=yes
15128 if test "$with_gnu_ld" = yes; then
15129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15130 else
15131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15132 case $host_os in
15133 sco3.2v5*)
15134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15135 ;;
15136 esac
15137 fi
15138 sys_lib_dlsearch_path_spec='/usr/lib'
15139 ;;
15140
15141 tpf*)
15142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15143 version_type=linux
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 shlibpath_overrides_runpath=no
15149 hardcode_into_libs=yes
15150 ;;
15151
15152 uts4*)
15153 version_type=linux
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 ;;
15158
15159 *)
15160 dynamic_linker=no
15161 ;;
15162 esac
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15164 $as_echo "$dynamic_linker" >&6; }
15165 test "$dynamic_linker" = no && can_build_shared=no
15166
15167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15168 if test "$GCC" = yes; then
15169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15170 fi
15171
15172 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15173 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15174 fi
15175 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15177 fi
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15217 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15218 hardcode_action_CXX=
15219 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15220 test -n "$runpath_var_CXX" ||
15221 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15222
15223 # We can hardcode non-existent directories.
15224 if test "$hardcode_direct_CXX" != no &&
15225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15226 # have to relink, otherwise we might link with an installed library
15227 # when we should be linking with a yet-to-be-installed one
15228 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15229 test "$hardcode_minus_L_CXX" != no; then
15230 # Linking always hardcodes the temporary library directory.
15231 hardcode_action_CXX=relink
15232 else
15233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15234 hardcode_action_CXX=immediate
15235 fi
15236 else
15237 # We cannot hardcode anything, or else we can only hardcode existing
15238 # directories.
15239 hardcode_action_CXX=unsupported
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15242 $as_echo "$hardcode_action_CXX" >&6; }
15243
15244 if test "$hardcode_action_CXX" = relink ||
15245 test "$inherit_rpath_CXX" = yes; then
15246 # Fast installation is not supported
15247 enable_fast_install=no
15248 elif test "$shlibpath_overrides_runpath" = yes ||
15249 test "$enable_shared" = no; then
15250 # Fast installation is not necessary
15251 enable_fast_install=needless
15252 fi
15253
15254
15255
15256
15257
15258
15259
15260 fi # test -n "$compiler"
15261
15262 CC=$lt_save_CC
15263 LDCXX=$LD
15264 LD=$lt_save_LD
15265 GCC=$lt_save_GCC
15266 with_gnu_ld=$lt_save_with_gnu_ld
15267 lt_cv_path_LDCXX=$lt_cv_path_LD
15268 lt_cv_path_LD=$lt_save_path_LD
15269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15271 fi # test "$_lt_caught_CXX_error" != yes
15272
15273 ac_ext=c
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291 ac_config_commands="$ac_config_commands libtool"
15292
15293
15294
15295
15296 # Only expand once:
15297
15298
15299
15300
15301
15302
15303
15304 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15305 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
15306 # In case the pthread.h system header is not found, this test will fail.
15307 XCFLAGS=""
15308 XLDFLAGS=""
15309 CFLAGS="$CFLAGS -pthread"
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include <pthread.h>
15313 void *g(void *d) { return NULL; }
15314 int
15315 main ()
15316 {
15317 pthread_t t; pthread_create(&t,NULL,g,NULL);
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_link "$LINENO"; then :
15323 XCFLAGS=" -Wc,-pthread"
15324 else
15325 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <pthread.h>
15329 void *g(void *d) { return NULL; }
15330 int
15331 main ()
15332 {
15333 pthread_t t; pthread_create(&t,NULL,g,NULL);
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339
15340 else
15341 as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
15342 fi
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15348
15349 # Check for pthread_{,attr_}[sg]etaffinity_np.
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 #include <pthread.h>
15353 int
15354 main ()
15355 {
15356 cpu_set_t cpuset;
15357 pthread_attr_t attr;
15358 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15359 if (CPU_ISSET (0, &cpuset))
15360 CPU_SET (1, &cpuset);
15361 else
15362 CPU_ZERO (&cpuset);
15363 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15364 pthread_attr_init (&attr);
15365 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15366 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_c_try_link "$LINENO"; then :
15372
15373 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15374
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext \
15377 conftest$ac_exeext conftest.$ac_ext
15378
15379 # Every c++ lib is linking by default with -nostdlib, which leads to the
15380 # fact, that proper pthread library will not be given at link time. We have
15381 # to hard-code that.
15382 case "${target}" in
15383
15384 *android*)
15385 XLDFLAGS="$XLDFLAGS -lc"
15386 ;;
15387 *)
15388 XLDFLAGS="$XLDFLAGS -lpthread"
15389 ;;
15390
15391 esac
15392
15393
15394
15395
15396 CFLAGS="$save_CFLAGS"
15397
15398 if test $enable_shared = yes; then
15399 link_cilkrts="-lcilkrts %{static: $LIBS}"
15400 else
15401 link_cilkrts="-lcilkrts $LIBS"
15402 fi
15403
15404
15405
15406 # Must be last
15407 cat >confcache <<\_ACEOF
15408 # This file is a shell script that caches the results of configure
15409 # tests run on this system so they can be shared between configure
15410 # scripts and configure runs, see configure's option --config-cache.
15411 # It is not useful on other systems. If it contains results you don't
15412 # want to keep, you may remove or edit it.
15413 #
15414 # config.status only pays attention to the cache file if you give it
15415 # the --recheck option to rerun configure.
15416 #
15417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15419 # following values.
15420
15421 _ACEOF
15422
15423 # The following way of writing the cache mishandles newlines in values,
15424 # but we know of no workaround that is simple, portable, and efficient.
15425 # So, we kill variables containing newlines.
15426 # Ultrix sh set writes to stderr and can't be redirected directly,
15427 # and sets the high bit in the cache file unless we assign to the vars.
15428 (
15429 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15430 eval ac_val=\$$ac_var
15431 case $ac_val in #(
15432 *${as_nl}*)
15433 case $ac_var in #(
15434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15436 esac
15437 case $ac_var in #(
15438 _ | IFS | as_nl) ;; #(
15439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15440 *) { eval $ac_var=; unset $ac_var;} ;;
15441 esac ;;
15442 esac
15443 done
15444
15445 (set) 2>&1 |
15446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15447 *${as_nl}ac_space=\ *)
15448 # `set' does not quote correctly, so add quotes: double-quote
15449 # substitution turns \\\\ into \\, and sed turns \\ into \.
15450 sed -n \
15451 "s/'/'\\\\''/g;
15452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15453 ;; #(
15454 *)
15455 # `set' quotes correctly as required by POSIX, so do not add quotes.
15456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15457 ;;
15458 esac |
15459 sort
15460 ) |
15461 sed '
15462 /^ac_cv_env_/b end
15463 t clear
15464 :clear
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15466 t end
15467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15468 :end' >>confcache
15469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15470 if test -w "$cache_file"; then
15471 test "x$cache_file" != "x/dev/null" &&
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15473 $as_echo "$as_me: updating cache $cache_file" >&6;}
15474 cat confcache >$cache_file
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15478 fi
15479 fi
15480 rm -f confcache
15481
15482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15483 # Let make expand exec_prefix.
15484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15485
15486 # Transform confdefs.h into DEFS.
15487 # Protect against shell expansion while executing Makefile rules.
15488 # Protect against Makefile macro expansion.
15489 #
15490 # If the first sed substitution is executed (which looks for macros that
15491 # take arguments), then branch to the quote section. Otherwise,
15492 # look for a macro that doesn't take arguments.
15493 ac_script='
15494 :mline
15495 /\\$/{
15496 N
15497 s,\\\n,,
15498 b mline
15499 }
15500 t clear
15501 :clear
15502 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15503 t quote
15504 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15505 t quote
15506 b any
15507 :quote
15508 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15509 s/\[/\\&/g
15510 s/\]/\\&/g
15511 s/\$/$$/g
15512 H
15513 :any
15514 ${
15515 g
15516 s/^\n//
15517 s/\n/ /g
15518 p
15519 }
15520 '
15521 DEFS=`sed -n "$ac_script" confdefs.h`
15522
15523
15524 ac_libobjs=
15525 ac_ltlibobjs=
15526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15527 # 1. Remove the extension, and $U if already installed.
15528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15531 # will be set to the directory where LIBOBJS objects are built.
15532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15534 done
15535 LIBOBJS=$ac_libobjs
15536
15537 LTLIBOBJS=$ac_ltlibobjs
15538
15539
15540 if test -n "$EXEEXT"; then
15541 am__EXEEXT_TRUE=
15542 am__EXEEXT_FALSE='#'
15543 else
15544 am__EXEEXT_TRUE='#'
15545 am__EXEEXT_FALSE=
15546 fi
15547
15548 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15549 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15553 as_fn_error "conditional \"AMDEP\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15557 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15561 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15565 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
15569 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
15573 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576
15577 : ${CONFIG_STATUS=./config.status}
15578 ac_write_fail=0
15579 ac_clean_files_save=$ac_clean_files
15580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15583 as_write_fail=0
15584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15585 #! $SHELL
15586 # Generated by $as_me.
15587 # Run this file to recreate the current configuration.
15588 # Compiler output produced by configure, useful for debugging
15589 # configure, is in config.log if it exists.
15590
15591 debug=false
15592 ac_cs_recheck=false
15593 ac_cs_silent=false
15594
15595 SHELL=\${CONFIG_SHELL-$SHELL}
15596 export SHELL
15597 _ASEOF
15598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15599 ## -------------------- ##
15600 ## M4sh Initialization. ##
15601 ## -------------------- ##
15602
15603 # Be more Bourne compatible
15604 DUALCASE=1; export DUALCASE # for MKS sh
15605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15606 emulate sh
15607 NULLCMD=:
15608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15609 # is contrary to our usage. Disable this feature.
15610 alias -g '${1+"$@"}'='"$@"'
15611 setopt NO_GLOB_SUBST
15612 else
15613 case `(set -o) 2>/dev/null` in #(
15614 *posix*) :
15615 set -o posix ;; #(
15616 *) :
15617 ;;
15618 esac
15619 fi
15620
15621
15622 as_nl='
15623 '
15624 export as_nl
15625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15629 # Prefer a ksh shell builtin over an external printf program on Solaris,
15630 # but without wasting forks for bash or zsh.
15631 if test -z "$BASH_VERSION$ZSH_VERSION" \
15632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15633 as_echo='print -r --'
15634 as_echo_n='print -rn --'
15635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15636 as_echo='printf %s\n'
15637 as_echo_n='printf %s'
15638 else
15639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15641 as_echo_n='/usr/ucb/echo -n'
15642 else
15643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15644 as_echo_n_body='eval
15645 arg=$1;
15646 case $arg in #(
15647 *"$as_nl"*)
15648 expr "X$arg" : "X\\(.*\\)$as_nl";
15649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15650 esac;
15651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15652 '
15653 export as_echo_n_body
15654 as_echo_n='sh -c $as_echo_n_body as_echo'
15655 fi
15656 export as_echo_body
15657 as_echo='sh -c $as_echo_body as_echo'
15658 fi
15659
15660 # The user is always right.
15661 if test "${PATH_SEPARATOR+set}" != set; then
15662 PATH_SEPARATOR=:
15663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15665 PATH_SEPARATOR=';'
15666 }
15667 fi
15668
15669
15670 # IFS
15671 # We need space, tab and new line, in precisely that order. Quoting is
15672 # there to prevent editors from complaining about space-tab.
15673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15674 # splitting by setting IFS to empty value.)
15675 IFS=" "" $as_nl"
15676
15677 # Find who we are. Look in the path if we contain no directory separator.
15678 case $0 in #((
15679 *[\\/]* ) as_myself=$0 ;;
15680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15681 for as_dir in $PATH
15682 do
15683 IFS=$as_save_IFS
15684 test -z "$as_dir" && as_dir=.
15685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15686 done
15687 IFS=$as_save_IFS
15688
15689 ;;
15690 esac
15691 # We did not find ourselves, most probably we were run as `sh COMMAND'
15692 # in which case we are not to be found in the path.
15693 if test "x$as_myself" = x; then
15694 as_myself=$0
15695 fi
15696 if test ! -f "$as_myself"; then
15697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15698 exit 1
15699 fi
15700
15701 # Unset variables that we do not need and which cause bugs (e.g. in
15702 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15703 # suppresses any "Segmentation fault" message there. '((' could
15704 # trigger a bug in pdksh 5.2.14.
15705 for as_var in BASH_ENV ENV MAIL MAILPATH
15706 do eval test x\${$as_var+set} = xset \
15707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15708 done
15709 PS1='$ '
15710 PS2='> '
15711 PS4='+ '
15712
15713 # NLS nuisances.
15714 LC_ALL=C
15715 export LC_ALL
15716 LANGUAGE=C
15717 export LANGUAGE
15718
15719 # CDPATH.
15720 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15721
15722
15723 # as_fn_error ERROR [LINENO LOG_FD]
15724 # ---------------------------------
15725 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15726 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15727 # script with status $?, using 1 if that was 0.
15728 as_fn_error ()
15729 {
15730 as_status=$?; test $as_status -eq 0 && as_status=1
15731 if test "$3"; then
15732 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15734 fi
15735 $as_echo "$as_me: error: $1" >&2
15736 as_fn_exit $as_status
15737 } # as_fn_error
15738
15739
15740 # as_fn_set_status STATUS
15741 # -----------------------
15742 # Set $? to STATUS, without forking.
15743 as_fn_set_status ()
15744 {
15745 return $1
15746 } # as_fn_set_status
15747
15748 # as_fn_exit STATUS
15749 # -----------------
15750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15751 as_fn_exit ()
15752 {
15753 set +e
15754 as_fn_set_status $1
15755 exit $1
15756 } # as_fn_exit
15757
15758 # as_fn_unset VAR
15759 # ---------------
15760 # Portably unset VAR.
15761 as_fn_unset ()
15762 {
15763 { eval $1=; unset $1;}
15764 }
15765 as_unset=as_fn_unset
15766 # as_fn_append VAR VALUE
15767 # ----------------------
15768 # Append the text in VALUE to the end of the definition contained in VAR. Take
15769 # advantage of any shell optimizations that allow amortized linear growth over
15770 # repeated appends, instead of the typical quadratic growth present in naive
15771 # implementations.
15772 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15773 eval 'as_fn_append ()
15774 {
15775 eval $1+=\$2
15776 }'
15777 else
15778 as_fn_append ()
15779 {
15780 eval $1=\$$1\$2
15781 }
15782 fi # as_fn_append
15783
15784 # as_fn_arith ARG...
15785 # ------------------
15786 # Perform arithmetic evaluation on the ARGs, and store the result in the
15787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15788 # must be portable across $(()) and expr.
15789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15790 eval 'as_fn_arith ()
15791 {
15792 as_val=$(( $* ))
15793 }'
15794 else
15795 as_fn_arith ()
15796 {
15797 as_val=`expr "$@" || test $? -eq 1`
15798 }
15799 fi # as_fn_arith
15800
15801
15802 if expr a : '\(a\)' >/dev/null 2>&1 &&
15803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15804 as_expr=expr
15805 else
15806 as_expr=false
15807 fi
15808
15809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15810 as_basename=basename
15811 else
15812 as_basename=false
15813 fi
15814
15815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15816 as_dirname=dirname
15817 else
15818 as_dirname=false
15819 fi
15820
15821 as_me=`$as_basename -- "$0" ||
15822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15823 X"$0" : 'X\(//\)$' \| \
15824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15825 $as_echo X/"$0" |
15826 sed '/^.*\/\([^/][^/]*\)\/*$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\/\(\/\/\)$/{
15831 s//\1/
15832 q
15833 }
15834 /^X\/\(\/\).*/{
15835 s//\1/
15836 q
15837 }
15838 s/.*/./; q'`
15839
15840 # Avoid depending upon Character Ranges.
15841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15844 as_cr_digits='0123456789'
15845 as_cr_alnum=$as_cr_Letters$as_cr_digits
15846
15847 ECHO_C= ECHO_N= ECHO_T=
15848 case `echo -n x` in #(((((
15849 -n*)
15850 case `echo 'xy\c'` in
15851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15852 xy) ECHO_C='\c';;
15853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15854 ECHO_T=' ';;
15855 esac;;
15856 *)
15857 ECHO_N='-n';;
15858 esac
15859
15860 rm -f conf$$ conf$$.exe conf$$.file
15861 if test -d conf$$.dir; then
15862 rm -f conf$$.dir/conf$$.file
15863 else
15864 rm -f conf$$.dir
15865 mkdir conf$$.dir 2>/dev/null
15866 fi
15867 if (echo >conf$$.file) 2>/dev/null; then
15868 if ln -s conf$$.file conf$$ 2>/dev/null; then
15869 as_ln_s='ln -s'
15870 # ... but there are two gotchas:
15871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15873 # In both cases, we have to default to `cp -p'.
15874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15875 as_ln_s='cp -p'
15876 elif ln conf$$.file conf$$ 2>/dev/null; then
15877 as_ln_s=ln
15878 else
15879 as_ln_s='cp -p'
15880 fi
15881 else
15882 as_ln_s='cp -p'
15883 fi
15884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15885 rmdir conf$$.dir 2>/dev/null
15886
15887
15888 # as_fn_mkdir_p
15889 # -------------
15890 # Create "$as_dir" as a directory, including parents if necessary.
15891 as_fn_mkdir_p ()
15892 {
15893
15894 case $as_dir in #(
15895 -*) as_dir=./$as_dir;;
15896 esac
15897 test -d "$as_dir" || eval $as_mkdir_p || {
15898 as_dirs=
15899 while :; do
15900 case $as_dir in #(
15901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15902 *) as_qdir=$as_dir;;
15903 esac
15904 as_dirs="'$as_qdir' $as_dirs"
15905 as_dir=`$as_dirname -- "$as_dir" ||
15906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15907 X"$as_dir" : 'X\(//\)[^/]' \| \
15908 X"$as_dir" : 'X\(//\)$' \| \
15909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15910 $as_echo X"$as_dir" |
15911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15912 s//\1/
15913 q
15914 }
15915 /^X\(\/\/\)[^/].*/{
15916 s//\1/
15917 q
15918 }
15919 /^X\(\/\/\)$/{
15920 s//\1/
15921 q
15922 }
15923 /^X\(\/\).*/{
15924 s//\1/
15925 q
15926 }
15927 s/.*/./; q'`
15928 test -d "$as_dir" && break
15929 done
15930 test -z "$as_dirs" || eval "mkdir $as_dirs"
15931 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15932
15933
15934 } # as_fn_mkdir_p
15935 if mkdir -p . 2>/dev/null; then
15936 as_mkdir_p='mkdir -p "$as_dir"'
15937 else
15938 test -d ./-p && rmdir ./-p
15939 as_mkdir_p=false
15940 fi
15941
15942 if test -x / >/dev/null 2>&1; then
15943 as_test_x='test -x'
15944 else
15945 if ls -dL / >/dev/null 2>&1; then
15946 as_ls_L_option=L
15947 else
15948 as_ls_L_option=
15949 fi
15950 as_test_x='
15951 eval sh -c '\''
15952 if test -d "$1"; then
15953 test -d "$1/.";
15954 else
15955 case $1 in #(
15956 -*)set "./$1";;
15957 esac;
15958 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15959 ???[sx]*):;;*)false;;esac;fi
15960 '\'' sh
15961 '
15962 fi
15963 as_executable_p=$as_test_x
15964
15965 # Sed expression to map a string onto a valid CPP name.
15966 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15967
15968 # Sed expression to map a string onto a valid variable name.
15969 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15970
15971
15972 exec 6>&1
15973 ## ----------------------------------- ##
15974 ## Main body of $CONFIG_STATUS script. ##
15975 ## ----------------------------------- ##
15976 _ASEOF
15977 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15978
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 # Save the log message, to keep $0 and so on meaningful, and to
15981 # report actual input values of CONFIG_FILES etc. instead of their
15982 # values after options handling.
15983 ac_log="
15984 This file was extended by Cilk Runtime Library $as_me 2.0, which was
15985 generated by GNU Autoconf 2.64. Invocation command line was
15986
15987 CONFIG_FILES = $CONFIG_FILES
15988 CONFIG_HEADERS = $CONFIG_HEADERS
15989 CONFIG_LINKS = $CONFIG_LINKS
15990 CONFIG_COMMANDS = $CONFIG_COMMANDS
15991 $ $0 $@
15992
15993 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15994 "
15995
15996 _ACEOF
15997
15998 case $ac_config_files in *"
15999 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16000 esac
16001
16002
16003
16004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005 # Files that config.status was made for.
16006 config_files="$ac_config_files"
16007 config_commands="$ac_config_commands"
16008
16009 _ACEOF
16010
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 ac_cs_usage="\
16013 \`$as_me' instantiates files and other configuration actions
16014 from templates according to the current configuration. Unless the files
16015 and actions are specified as TAGs, all are instantiated by default.
16016
16017 Usage: $0 [OPTION]... [TAG]...
16018
16019 -h, --help print this help, then exit
16020 -V, --version print version number and configuration settings, then exit
16021 -q, --quiet, --silent
16022 do not print progress messages
16023 -d, --debug don't remove temporary files
16024 --recheck update $as_me by reconfiguring in the same conditions
16025 --file=FILE[:TEMPLATE]
16026 instantiate the configuration file FILE
16027
16028 Configuration files:
16029 $config_files
16030
16031 Configuration commands:
16032 $config_commands
16033
16034 Report bugs to <cilk@intel.com>."
16035
16036 _ACEOF
16037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038 ac_cs_version="\\
16039 Cilk Runtime Library config.status 2.0
16040 configured by $0, generated by GNU Autoconf 2.64,
16041 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16042
16043 Copyright (C) 2009 Free Software Foundation, Inc.
16044 This config.status script is free software; the Free Software Foundation
16045 gives unlimited permission to copy, distribute and modify it."
16046
16047 ac_pwd='$ac_pwd'
16048 srcdir='$srcdir'
16049 INSTALL='$INSTALL'
16050 MKDIR_P='$MKDIR_P'
16051 AWK='$AWK'
16052 test -n "\$AWK" || AWK=awk
16053 _ACEOF
16054
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 # The default lists apply if the user does not specify any file.
16057 ac_need_defaults=:
16058 while test $# != 0
16059 do
16060 case $1 in
16061 --*=*)
16062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16063 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16064 ac_shift=:
16065 ;;
16066 *)
16067 ac_option=$1
16068 ac_optarg=$2
16069 ac_shift=shift
16070 ;;
16071 esac
16072
16073 case $ac_option in
16074 # Handling of the options.
16075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16076 ac_cs_recheck=: ;;
16077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16078 $as_echo "$ac_cs_version"; exit ;;
16079 --debug | --debu | --deb | --de | --d | -d )
16080 debug=: ;;
16081 --file | --fil | --fi | --f )
16082 $ac_shift
16083 case $ac_optarg in
16084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16085 esac
16086 as_fn_append CONFIG_FILES " '$ac_optarg'"
16087 ac_need_defaults=false;;
16088 --he | --h | --help | --hel | -h )
16089 $as_echo "$ac_cs_usage"; exit ;;
16090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16092 ac_cs_silent=: ;;
16093
16094 # This is an error.
16095 -*) as_fn_error "unrecognized option: \`$1'
16096 Try \`$0 --help' for more information." ;;
16097
16098 *) as_fn_append ac_config_targets " $1"
16099 ac_need_defaults=false ;;
16100
16101 esac
16102 shift
16103 done
16104
16105 ac_configure_extra_args=
16106
16107 if $ac_cs_silent; then
16108 exec 6>/dev/null
16109 ac_configure_extra_args="$ac_configure_extra_args --silent"
16110 fi
16111
16112 _ACEOF
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 if \$ac_cs_recheck; then
16115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16116 shift
16117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16118 CONFIG_SHELL='$SHELL'
16119 export CONFIG_SHELL
16120 exec "\$@"
16121 fi
16122
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 exec 5>>config.log
16126 {
16127 echo
16128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16129 ## Running $as_me. ##
16130 _ASBOX
16131 $as_echo "$ac_log"
16132 } >&5
16133
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 #
16137 # INIT-COMMANDS
16138 #
16139
16140 srcdir="$srcdir"
16141 host="$host"
16142 target="$target"
16143 with_multisubdir="$with_multisubdir"
16144 with_multisrctop="$with_multisrctop"
16145 with_target_subdir="$with_target_subdir"
16146 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16147 multi_basedir="$multi_basedir"
16148 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16149 CC="$CC"
16150 CXX="$CXX"
16151 GFORTRAN="$GFORTRAN"
16152 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16153
16154
16155 # The HP-UX ksh and POSIX shell print the target directory to stdout
16156 # if CDPATH is set.
16157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16158
16159 sed_quote_subst='$sed_quote_subst'
16160 double_quote_subst='$double_quote_subst'
16161 delay_variable_subst='$delay_variable_subst'
16162 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16163 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16164 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16165 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16166 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16167 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16168 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16169 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16170 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16171 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16172 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16173 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16174 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16175 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16176 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16177 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16178 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16179 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16180 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16181 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16182 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16183 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16184 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16185 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16186 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16187 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16188 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16189 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16190 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16191 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16192 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16193 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16194 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16195 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16196 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16197 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16198 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16199 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16201 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16202 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16203 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16204 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16205 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16206 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16210 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"`'
16211 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16212 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16213 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16214 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16215 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16216 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16217 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16218 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16219 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16220 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16221 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16222 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16223 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16224 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16225 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16226 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16227 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16228 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16229 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16230 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16231 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16232 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16233 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16234 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16235 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16236 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16237 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16238 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16239 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16240 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16241 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16242 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16243 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16244 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16245 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16246 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16247 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16248 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16249 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16250 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16251 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16252 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16253 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16254 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16255 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16256 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16257 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16258 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16259 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16260 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16261 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16262 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16263 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16264 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16265 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16266 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16267 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16268 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16269 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16270 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16271 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16272 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16273 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16274 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16275 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16276 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16277 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16278 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16279 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16280 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16281 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16282 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16283 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16284 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16285 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16286 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16287 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16288 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16289 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16290 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16291 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16292 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16293 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16294 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16295 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16296 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16297 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16299 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16300 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16301 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16302 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16303 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16304 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16305 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16306 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16307 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16308 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16309 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16310 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16311 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16312 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16314 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16315 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16316 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16317 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16318 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16319 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16320 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16321 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16322 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16323 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16324 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16325 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16326 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16327 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16328 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16329 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16330 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16331 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16332 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16333 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16334 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16335 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16336 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16337
16338 LTCC='$LTCC'
16339 LTCFLAGS='$LTCFLAGS'
16340 compiler='$compiler_DEFAULT'
16341
16342 # A function that is used when there is no print builtin or printf.
16343 func_fallback_echo ()
16344 {
16345 eval 'cat <<_LTECHO_EOF
16346 \$1
16347 _LTECHO_EOF'
16348 }
16349
16350 # Quote evaled strings.
16351 for var in SHELL \
16352 ECHO \
16353 SED \
16354 GREP \
16355 EGREP \
16356 FGREP \
16357 LD \
16358 NM \
16359 LN_S \
16360 lt_SP2NL \
16361 lt_NL2SP \
16362 reload_flag \
16363 OBJDUMP \
16364 deplibs_check_method \
16365 file_magic_cmd \
16366 AR \
16367 AR_FLAGS \
16368 STRIP \
16369 RANLIB \
16370 CC \
16371 CFLAGS \
16372 compiler \
16373 lt_cv_sys_global_symbol_pipe \
16374 lt_cv_sys_global_symbol_to_cdecl \
16375 lt_cv_sys_global_symbol_to_c_name_address \
16376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16377 lt_prog_compiler_no_builtin_flag \
16378 lt_prog_compiler_wl \
16379 lt_prog_compiler_pic \
16380 lt_prog_compiler_static \
16381 lt_cv_prog_compiler_c_o \
16382 need_locks \
16383 DSYMUTIL \
16384 NMEDIT \
16385 LIPO \
16386 OTOOL \
16387 OTOOL64 \
16388 shrext_cmds \
16389 export_dynamic_flag_spec \
16390 whole_archive_flag_spec \
16391 compiler_needs_object \
16392 with_gnu_ld \
16393 allow_undefined_flag \
16394 no_undefined_flag \
16395 hardcode_libdir_flag_spec \
16396 hardcode_libdir_flag_spec_ld \
16397 hardcode_libdir_separator \
16398 fix_srcfile_path \
16399 exclude_expsyms \
16400 include_expsyms \
16401 file_list_spec \
16402 variables_saved_for_relink \
16403 libname_spec \
16404 library_names_spec \
16405 soname_spec \
16406 install_override_mode \
16407 finish_eval \
16408 old_striplib \
16409 striplib \
16410 compiler_lib_search_dirs \
16411 predep_objects \
16412 postdep_objects \
16413 predeps \
16414 postdeps \
16415 compiler_lib_search_path \
16416 LD_CXX \
16417 reload_flag_CXX \
16418 compiler_CXX \
16419 lt_prog_compiler_no_builtin_flag_CXX \
16420 lt_prog_compiler_wl_CXX \
16421 lt_prog_compiler_pic_CXX \
16422 lt_prog_compiler_static_CXX \
16423 lt_cv_prog_compiler_c_o_CXX \
16424 export_dynamic_flag_spec_CXX \
16425 whole_archive_flag_spec_CXX \
16426 compiler_needs_object_CXX \
16427 with_gnu_ld_CXX \
16428 allow_undefined_flag_CXX \
16429 no_undefined_flag_CXX \
16430 hardcode_libdir_flag_spec_CXX \
16431 hardcode_libdir_flag_spec_ld_CXX \
16432 hardcode_libdir_separator_CXX \
16433 fix_srcfile_path_CXX \
16434 exclude_expsyms_CXX \
16435 include_expsyms_CXX \
16436 file_list_spec_CXX \
16437 compiler_lib_search_dirs_CXX \
16438 predep_objects_CXX \
16439 postdep_objects_CXX \
16440 predeps_CXX \
16441 postdeps_CXX \
16442 compiler_lib_search_path_CXX; do
16443 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16444 *[\\\\\\\`\\"\\\$]*)
16445 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16446 ;;
16447 *)
16448 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16449 ;;
16450 esac
16451 done
16452
16453 # Double-quote double-evaled strings.
16454 for var in reload_cmds \
16455 old_postinstall_cmds \
16456 old_postuninstall_cmds \
16457 old_archive_cmds \
16458 extract_expsyms_cmds \
16459 old_archive_from_new_cmds \
16460 old_archive_from_expsyms_cmds \
16461 archive_cmds \
16462 archive_expsym_cmds \
16463 module_cmds \
16464 module_expsym_cmds \
16465 export_symbols_cmds \
16466 prelink_cmds \
16467 postinstall_cmds \
16468 postuninstall_cmds \
16469 finish_cmds \
16470 sys_lib_search_path_spec \
16471 sys_lib_dlsearch_path_spec \
16472 reload_cmds_CXX \
16473 old_archive_cmds_CXX \
16474 old_archive_from_new_cmds_CXX \
16475 old_archive_from_expsyms_cmds_CXX \
16476 archive_cmds_CXX \
16477 archive_expsym_cmds_CXX \
16478 module_cmds_CXX \
16479 module_expsym_cmds_CXX \
16480 export_symbols_cmds_CXX \
16481 prelink_cmds_CXX; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16485 ;;
16486 *)
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16488 ;;
16489 esac
16490 done
16491
16492 ac_aux_dir='$ac_aux_dir'
16493 xsi_shell='$xsi_shell'
16494 lt_shell_append='$lt_shell_append'
16495
16496 # See if we are running on zsh, and set the options which allow our
16497 # commands through without removal of \ escapes INIT.
16498 if test -n "\${ZSH_VERSION+set}" ; then
16499 setopt NO_GLOB_SUBST
16500 fi
16501
16502
16503 PACKAGE='$PACKAGE'
16504 VERSION='$VERSION'
16505 TIMESTAMP='$TIMESTAMP'
16506 RM='$RM'
16507 ofile='$ofile'
16508
16509
16510
16511
16512
16513
16514 _ACEOF
16515
16516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517
16518 # Handling of arguments.
16519 for ac_config_target in $ac_config_targets
16520 do
16521 case $ac_config_target in
16522 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16523 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16525 "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
16526 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16527
16528 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16529 esac
16530 done
16531
16532
16533 # If the user did not use the arguments to specify the items to instantiate,
16534 # then the envvar interface is used. Set only those that are not.
16535 # We use the long form for the default assignment because of an extremely
16536 # bizarre bug on SunOS 4.1.3.
16537 if $ac_need_defaults; then
16538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16539 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16540 fi
16541
16542 # Have a temporary directory for convenience. Make it in the build tree
16543 # simply because there is no reason against having it here, and in addition,
16544 # creating and moving files from /tmp can sometimes cause problems.
16545 # Hook for its removal unless debugging.
16546 # Note that there is a small window in which the directory will not be cleaned:
16547 # after its creation but before its name has been assigned to `$tmp'.
16548 $debug ||
16549 {
16550 tmp=
16551 trap 'exit_status=$?
16552 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16553 ' 0
16554 trap 'as_fn_exit 1' 1 2 13 15
16555 }
16556 # Create a (secure) tmp directory for tmp files.
16557
16558 {
16559 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16560 test -n "$tmp" && test -d "$tmp"
16561 } ||
16562 {
16563 tmp=./conf$$-$RANDOM
16564 (umask 077 && mkdir "$tmp")
16565 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16566
16567 # Set up the scripts for CONFIG_FILES section.
16568 # No need to generate them if there are no CONFIG_FILES.
16569 # This happens for instance with `./config.status config.h'.
16570 if test -n "$CONFIG_FILES"; then
16571
16572
16573 ac_cr=`echo X | tr X '\015'`
16574 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16575 # But we know of no other shell where ac_cr would be empty at this
16576 # point, so we can use a bashism as a fallback.
16577 if test "x$ac_cr" = x; then
16578 eval ac_cr=\$\'\\r\'
16579 fi
16580 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16581 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16582 ac_cs_awk_cr='\r'
16583 else
16584 ac_cs_awk_cr=$ac_cr
16585 fi
16586
16587 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16588 _ACEOF
16589
16590
16591 {
16592 echo "cat >conf$$subs.awk <<_ACEOF" &&
16593 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16594 echo "_ACEOF"
16595 } >conf$$subs.sh ||
16596 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16597 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16598 ac_delim='%!_!# '
16599 for ac_last_try in false false false false false :; do
16600 . ./conf$$subs.sh ||
16601 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16602
16603 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16604 if test $ac_delim_n = $ac_delim_num; then
16605 break
16606 elif $ac_last_try; then
16607 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16608 else
16609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16610 fi
16611 done
16612 rm -f conf$$subs.sh
16613
16614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16615 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16616 _ACEOF
16617 sed -n '
16618 h
16619 s/^/S["/; s/!.*/"]=/
16620 p
16621 g
16622 s/^[^!]*!//
16623 :repl
16624 t repl
16625 s/'"$ac_delim"'$//
16626 t delim
16627 :nl
16628 h
16629 s/\(.\{148\}\).*/\1/
16630 t more1
16631 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16632 p
16633 n
16634 b repl
16635 :more1
16636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16637 p
16638 g
16639 s/.\{148\}//
16640 t nl
16641 :delim
16642 h
16643 s/\(.\{148\}\).*/\1/
16644 t more2
16645 s/["\\]/\\&/g; s/^/"/; s/$/"/
16646 p
16647 b
16648 :more2
16649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16650 p
16651 g
16652 s/.\{148\}//
16653 t delim
16654 ' <conf$$subs.awk | sed '
16655 /^[^""]/{
16656 N
16657 s/\n//
16658 }
16659 ' >>$CONFIG_STATUS || ac_write_fail=1
16660 rm -f conf$$subs.awk
16661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16662 _ACAWK
16663 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16664 for (key in S) S_is_set[key] = 1
16665 FS = "\a"
16666
16667 }
16668 {
16669 line = $ 0
16670 nfields = split(line, field, "@")
16671 substed = 0
16672 len = length(field[1])
16673 for (i = 2; i < nfields; i++) {
16674 key = field[i]
16675 keylen = length(key)
16676 if (S_is_set[key]) {
16677 value = S[key]
16678 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16679 len += length(value) + length(field[++i])
16680 substed = 1
16681 } else
16682 len += 1 + keylen
16683 }
16684
16685 print line
16686 }
16687
16688 _ACAWK
16689 _ACEOF
16690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16693 else
16694 cat
16695 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16696 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16697 _ACEOF
16698
16699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16701 # trailing colons and then remove the whole line if VPATH becomes empty
16702 # (actually we leave an empty line to preserve line numbers).
16703 if test "x$srcdir" = x.; then
16704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16705 s/:*\$(srcdir):*/:/
16706 s/:*\${srcdir}:*/:/
16707 s/:*@srcdir@:*/:/
16708 s/^\([^=]*=[ ]*\):*/\1/
16709 s/:*$//
16710 s/^[^=]*=[ ]*$//
16711 }'
16712 fi
16713
16714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16715 fi # test -n "$CONFIG_FILES"
16716
16717
16718 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16719 shift
16720 for ac_tag
16721 do
16722 case $ac_tag in
16723 :[FHLC]) ac_mode=$ac_tag; continue;;
16724 esac
16725 case $ac_mode$ac_tag in
16726 :[FHL]*:*);;
16727 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16728 :[FH]-) ac_tag=-:-;;
16729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16730 esac
16731 ac_save_IFS=$IFS
16732 IFS=:
16733 set x $ac_tag
16734 IFS=$ac_save_IFS
16735 shift
16736 ac_file=$1
16737 shift
16738
16739 case $ac_mode in
16740 :L) ac_source=$1;;
16741 :[FH])
16742 ac_file_inputs=
16743 for ac_f
16744 do
16745 case $ac_f in
16746 -) ac_f="$tmp/stdin";;
16747 *) # Look for the file first in the build tree, then in the source tree
16748 # (if the path is not absolute). The absolute path cannot be DOS-style,
16749 # because $ac_f cannot contain `:'.
16750 test -f "$ac_f" ||
16751 case $ac_f in
16752 [\\/$]*) false;;
16753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16754 esac ||
16755 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16756 esac
16757 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16758 as_fn_append ac_file_inputs " '$ac_f'"
16759 done
16760
16761 # Let's still pretend it is `configure' which instantiates (i.e., don't
16762 # use $as_me), people would be surprised to read:
16763 # /* config.h. Generated by config.status. */
16764 configure_input='Generated from '`
16765 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16766 `' by configure.'
16767 if test x"$ac_file" != x-; then
16768 configure_input="$ac_file. $configure_input"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16770 $as_echo "$as_me: creating $ac_file" >&6;}
16771 fi
16772 # Neutralize special characters interpreted by sed in replacement strings.
16773 case $configure_input in #(
16774 *\&* | *\|* | *\\* )
16775 ac_sed_conf_input=`$as_echo "$configure_input" |
16776 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16777 *) ac_sed_conf_input=$configure_input;;
16778 esac
16779
16780 case $ac_tag in
16781 *:-:* | *:-) cat >"$tmp/stdin" \
16782 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16783 esac
16784 ;;
16785 esac
16786
16787 ac_dir=`$as_dirname -- "$ac_file" ||
16788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16789 X"$ac_file" : 'X\(//\)[^/]' \| \
16790 X"$ac_file" : 'X\(//\)$' \| \
16791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16792 $as_echo X"$ac_file" |
16793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16794 s//\1/
16795 q
16796 }
16797 /^X\(\/\/\)[^/].*/{
16798 s//\1/
16799 q
16800 }
16801 /^X\(\/\/\)$/{
16802 s//\1/
16803 q
16804 }
16805 /^X\(\/\).*/{
16806 s//\1/
16807 q
16808 }
16809 s/.*/./; q'`
16810 as_dir="$ac_dir"; as_fn_mkdir_p
16811 ac_builddir=.
16812
16813 case "$ac_dir" in
16814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16815 *)
16816 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16817 # A ".." for each directory in $ac_dir_suffix.
16818 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16819 case $ac_top_builddir_sub in
16820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16822 esac ;;
16823 esac
16824 ac_abs_top_builddir=$ac_pwd
16825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16826 # for backward compatibility:
16827 ac_top_builddir=$ac_top_build_prefix
16828
16829 case $srcdir in
16830 .) # We are building in place.
16831 ac_srcdir=.
16832 ac_top_srcdir=$ac_top_builddir_sub
16833 ac_abs_top_srcdir=$ac_pwd ;;
16834 [\\/]* | ?:[\\/]* ) # Absolute name.
16835 ac_srcdir=$srcdir$ac_dir_suffix;
16836 ac_top_srcdir=$srcdir
16837 ac_abs_top_srcdir=$srcdir ;;
16838 *) # Relative name.
16839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16840 ac_top_srcdir=$ac_top_build_prefix$srcdir
16841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16842 esac
16843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16844
16845
16846 case $ac_mode in
16847 :F)
16848 #
16849 # CONFIG_FILE
16850 #
16851
16852 case $INSTALL in
16853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16855 esac
16856 ac_MKDIR_P=$MKDIR_P
16857 case $MKDIR_P in
16858 [\\/$]* | ?:[\\/]* ) ;;
16859 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16860 esac
16861 _ACEOF
16862
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 # If the template does not know about datarootdir, expand it.
16865 # FIXME: This hack should be removed a few years after 2.60.
16866 ac_datarootdir_hack=; ac_datarootdir_seen=
16867 ac_sed_dataroot='
16868 /datarootdir/ {
16869 p
16870 q
16871 }
16872 /@datadir@/p
16873 /@docdir@/p
16874 /@infodir@/p
16875 /@localedir@/p
16876 /@mandir@/p'
16877 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16878 *datarootdir*) ac_datarootdir_seen=yes;;
16879 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16881 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16882 _ACEOF
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 ac_datarootdir_hack='
16885 s&@datadir@&$datadir&g
16886 s&@docdir@&$docdir&g
16887 s&@infodir@&$infodir&g
16888 s&@localedir@&$localedir&g
16889 s&@mandir@&$mandir&g
16890 s&\\\${datarootdir}&$datarootdir&g' ;;
16891 esac
16892 _ACEOF
16893
16894 # Neutralize VPATH when `$srcdir' = `.'.
16895 # Shell code in configure.ac might set extrasub.
16896 # FIXME: do we really want to maintain this feature?
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 ac_sed_extra="$ac_vpsub
16899 $extrasub
16900 _ACEOF
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16902 :t
16903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16904 s|@configure_input@|$ac_sed_conf_input|;t t
16905 s&@top_builddir@&$ac_top_builddir_sub&;t t
16906 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16907 s&@srcdir@&$ac_srcdir&;t t
16908 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16909 s&@top_srcdir@&$ac_top_srcdir&;t t
16910 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16911 s&@builddir@&$ac_builddir&;t t
16912 s&@abs_builddir@&$ac_abs_builddir&;t t
16913 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16914 s&@INSTALL@&$ac_INSTALL&;t t
16915 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16916 $ac_datarootdir_hack
16917 "
16918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16919 || as_fn_error "could not create $ac_file" "$LINENO" 5
16920
16921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16922 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16925 which seems to be undefined. Please make sure it is defined." >&5
16926 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16927 which seems to be undefined. Please make sure it is defined." >&2;}
16928
16929 rm -f "$tmp/stdin"
16930 case $ac_file in
16931 -) cat "$tmp/out" && rm -f "$tmp/out";;
16932 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16933 esac \
16934 || as_fn_error "could not create $ac_file" "$LINENO" 5
16935 ;;
16936
16937
16938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16939 $as_echo "$as_me: executing $ac_file commands" >&6;}
16940 ;;
16941 esac
16942
16943
16944 case $ac_file$ac_mode in
16945 "default-1":C)
16946 # Only add multilib support code if we just rebuilt the top-level
16947 # Makefile.
16948 case " $CONFIG_FILES " in
16949 *" Makefile "*)
16950 ac_file=Makefile . ${multi_basedir}/config-ml.in
16951 ;;
16952 esac ;;
16953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16954 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16955 # are listed without --file. Let's play safe and only enable the eval
16956 # if we detect the quoting.
16957 case $CONFIG_FILES in
16958 *\'*) eval set x "$CONFIG_FILES" ;;
16959 *) set x $CONFIG_FILES ;;
16960 esac
16961 shift
16962 for mf
16963 do
16964 # Strip MF so we end up with the name of the file.
16965 mf=`echo "$mf" | sed -e 's/:.*$//'`
16966 # Check whether this is an Automake generated Makefile or not.
16967 # We used to match only the files named `Makefile.in', but
16968 # some people rename them; so instead we look at the file content.
16969 # Grep'ing the first line is not enough: some people post-process
16970 # each Makefile.in and add a new line on top of each file to say so.
16971 # Grep'ing the whole file is not good either: AIX grep has a line
16972 # limit of 2048, but all sed's we know have understand at least 4000.
16973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16974 dirpart=`$as_dirname -- "$mf" ||
16975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976 X"$mf" : 'X\(//\)[^/]' \| \
16977 X"$mf" : 'X\(//\)$' \| \
16978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16979 $as_echo X"$mf" |
16980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16981 s//\1/
16982 q
16983 }
16984 /^X\(\/\/\)[^/].*/{
16985 s//\1/
16986 q
16987 }
16988 /^X\(\/\/\)$/{
16989 s//\1/
16990 q
16991 }
16992 /^X\(\/\).*/{
16993 s//\1/
16994 q
16995 }
16996 s/.*/./; q'`
16997 else
16998 continue
16999 fi
17000 # Extract the definition of DEPDIR, am__include, and am__quote
17001 # from the Makefile without running `make'.
17002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17003 test -z "$DEPDIR" && continue
17004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17005 test -z "am__include" && continue
17006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17007 # When using ansi2knr, U may be empty or an underscore; expand it
17008 U=`sed -n 's/^U = //p' < "$mf"`
17009 # Find all dependency output files, they are included files with
17010 # $(DEPDIR) in their names. We invoke sed twice because it is the
17011 # simplest approach to changing $(DEPDIR) to its actual value in the
17012 # expansion.
17013 for file in `sed -n "
17014 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17016 # Make sure the directory exists.
17017 test -f "$dirpart/$file" && continue
17018 fdir=`$as_dirname -- "$file" ||
17019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17020 X"$file" : 'X\(//\)[^/]' \| \
17021 X"$file" : 'X\(//\)$' \| \
17022 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17023 $as_echo X"$file" |
17024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17025 s//\1/
17026 q
17027 }
17028 /^X\(\/\/\)[^/].*/{
17029 s//\1/
17030 q
17031 }
17032 /^X\(\/\/\)$/{
17033 s//\1/
17034 q
17035 }
17036 /^X\(\/\).*/{
17037 s//\1/
17038 q
17039 }
17040 s/.*/./; q'`
17041 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17042 # echo "creating $dirpart/$file"
17043 echo '# dummy' > "$dirpart/$file"
17044 done
17045 done
17046 }
17047 ;;
17048 "libtool":C)
17049
17050 # See if we are running on zsh, and set the options which allow our
17051 # commands through without removal of \ escapes.
17052 if test -n "${ZSH_VERSION+set}" ; then
17053 setopt NO_GLOB_SUBST
17054 fi
17055
17056 cfgfile="${ofile}T"
17057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17058 $RM "$cfgfile"
17059
17060 cat <<_LT_EOF >> "$cfgfile"
17061 #! $SHELL
17062
17063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17067 #
17068 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17069 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17070 # Written by Gordon Matzigkeit, 1996
17071 #
17072 # This file is part of GNU Libtool.
17073 #
17074 # GNU Libtool is free software; you can redistribute it and/or
17075 # modify it under the terms of the GNU General Public License as
17076 # published by the Free Software Foundation; either version 2 of
17077 # the License, or (at your option) any later version.
17078 #
17079 # As a special exception to the GNU General Public License,
17080 # if you distribute this file as part of a program or library that
17081 # is built using GNU Libtool, you may include this file under the
17082 # same distribution terms that you use for the rest of that program.
17083 #
17084 # GNU Libtool is distributed in the hope that it will be useful,
17085 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17087 # GNU General Public License for more details.
17088 #
17089 # You should have received a copy of the GNU General Public License
17090 # along with GNU Libtool; see the file COPYING. If not, a copy
17091 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17092 # obtained by writing to the Free Software Foundation, Inc.,
17093 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17094
17095
17096 # The names of the tagged configurations supported by this script.
17097 available_tags="CXX "
17098
17099 # ### BEGIN LIBTOOL CONFIG
17100
17101 # Which release of libtool.m4 was used?
17102 macro_version=$macro_version
17103 macro_revision=$macro_revision
17104
17105 # Whether or not to build shared libraries.
17106 build_libtool_libs=$enable_shared
17107
17108 # Whether or not to build static libraries.
17109 build_old_libs=$enable_static
17110
17111 # What type of objects to build.
17112 pic_mode=$pic_mode
17113
17114 # Whether or not to optimize for fast installation.
17115 fast_install=$enable_fast_install
17116
17117 # Shell to use when invoking shell scripts.
17118 SHELL=$lt_SHELL
17119
17120 # An echo program that protects backslashes.
17121 ECHO=$lt_ECHO
17122
17123 # The host system.
17124 host_alias=$host_alias
17125 host=$host
17126 host_os=$host_os
17127
17128 # The build system.
17129 build_alias=$build_alias
17130 build=$build
17131 build_os=$build_os
17132
17133 # A sed program that does not truncate output.
17134 SED=$lt_SED
17135
17136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17137 Xsed="\$SED -e 1s/^X//"
17138
17139 # A grep program that handles long lines.
17140 GREP=$lt_GREP
17141
17142 # An ERE matcher.
17143 EGREP=$lt_EGREP
17144
17145 # A literal string matcher.
17146 FGREP=$lt_FGREP
17147
17148 # A BSD- or MS-compatible name lister.
17149 NM=$lt_NM
17150
17151 # Whether we need soft or hard links.
17152 LN_S=$lt_LN_S
17153
17154 # What is the maximum length of a command?
17155 max_cmd_len=$max_cmd_len
17156
17157 # Object file suffix (normally "o").
17158 objext=$ac_objext
17159
17160 # Executable file suffix (normally "").
17161 exeext=$exeext
17162
17163 # whether the shell understands "unset".
17164 lt_unset=$lt_unset
17165
17166 # turn spaces into newlines.
17167 SP2NL=$lt_lt_SP2NL
17168
17169 # turn newlines into spaces.
17170 NL2SP=$lt_lt_NL2SP
17171
17172 # An object symbol dumper.
17173 OBJDUMP=$lt_OBJDUMP
17174
17175 # Method to check whether dependent libraries are shared objects.
17176 deplibs_check_method=$lt_deplibs_check_method
17177
17178 # Command to use when deplibs_check_method == "file_magic".
17179 file_magic_cmd=$lt_file_magic_cmd
17180
17181 # The archiver.
17182 AR=$lt_AR
17183 AR_FLAGS=$lt_AR_FLAGS
17184
17185 # A symbol stripping program.
17186 STRIP=$lt_STRIP
17187
17188 # Commands used to install an old-style archive.
17189 RANLIB=$lt_RANLIB
17190 old_postinstall_cmds=$lt_old_postinstall_cmds
17191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17192
17193 # Whether to use a lock for old archive extraction.
17194 lock_old_archive_extraction=$lock_old_archive_extraction
17195
17196 # A C compiler.
17197 LTCC=$lt_CC
17198
17199 # LTCC compiler flags.
17200 LTCFLAGS=$lt_CFLAGS
17201
17202 # Take the output of nm and produce a listing of raw symbols and C names.
17203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17204
17205 # Transform the output of nm in a proper C declaration.
17206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17207
17208 # Transform the output of nm in a C name address pair.
17209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17210
17211 # Transform the output of nm in a C name address pair when lib prefix is needed.
17212 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17213
17214 # The name of the directory that contains temporary libtool files.
17215 objdir=$objdir
17216
17217 # Used to examine libraries when file_magic_cmd begins with "file".
17218 MAGIC_CMD=$MAGIC_CMD
17219
17220 # Must we lock files when doing compilation?
17221 need_locks=$lt_need_locks
17222
17223 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17224 DSYMUTIL=$lt_DSYMUTIL
17225
17226 # Tool to change global to local symbols on Mac OS X.
17227 NMEDIT=$lt_NMEDIT
17228
17229 # Tool to manipulate fat objects and archives on Mac OS X.
17230 LIPO=$lt_LIPO
17231
17232 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17233 OTOOL=$lt_OTOOL
17234
17235 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17236 OTOOL64=$lt_OTOOL64
17237
17238 # Old archive suffix (normally "a").
17239 libext=$libext
17240
17241 # Shared library suffix (normally ".so").
17242 shrext_cmds=$lt_shrext_cmds
17243
17244 # The commands to extract the exported symbol list from a shared archive.
17245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17246
17247 # Variables whose values should be saved in libtool wrapper scripts and
17248 # restored at link time.
17249 variables_saved_for_relink=$lt_variables_saved_for_relink
17250
17251 # Do we need the "lib" prefix for modules?
17252 need_lib_prefix=$need_lib_prefix
17253
17254 # Do we need a version for libraries?
17255 need_version=$need_version
17256
17257 # Library versioning type.
17258 version_type=$version_type
17259
17260 # Shared library runtime path variable.
17261 runpath_var=$runpath_var
17262
17263 # Shared library path variable.
17264 shlibpath_var=$shlibpath_var
17265
17266 # Is shlibpath searched before the hard-coded library search path?
17267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17268
17269 # Format of library name prefix.
17270 libname_spec=$lt_libname_spec
17271
17272 # List of archive names. First name is the real one, the rest are links.
17273 # The last name is the one that the linker finds with -lNAME
17274 library_names_spec=$lt_library_names_spec
17275
17276 # The coded name of the library, if different from the real name.
17277 soname_spec=$lt_soname_spec
17278
17279 # Permission mode override for installation of shared libraries.
17280 install_override_mode=$lt_install_override_mode
17281
17282 # Command to use after installation of a shared archive.
17283 postinstall_cmds=$lt_postinstall_cmds
17284
17285 # Command to use after uninstallation of a shared archive.
17286 postuninstall_cmds=$lt_postuninstall_cmds
17287
17288 # Commands used to finish a libtool library installation in a directory.
17289 finish_cmds=$lt_finish_cmds
17290
17291 # As "finish_cmds", except a single script fragment to be evaled but
17292 # not shown.
17293 finish_eval=$lt_finish_eval
17294
17295 # Whether we should hardcode library paths into libraries.
17296 hardcode_into_libs=$hardcode_into_libs
17297
17298 # Compile-time system search path for libraries.
17299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17300
17301 # Run-time system search path for libraries.
17302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17303
17304 # Whether dlopen is supported.
17305 dlopen_support=$enable_dlopen
17306
17307 # Whether dlopen of programs is supported.
17308 dlopen_self=$enable_dlopen_self
17309
17310 # Whether dlopen of statically linked programs is supported.
17311 dlopen_self_static=$enable_dlopen_self_static
17312
17313 # Commands to strip libraries.
17314 old_striplib=$lt_old_striplib
17315 striplib=$lt_striplib
17316
17317
17318 # The linker used to build libraries.
17319 LD=$lt_LD
17320
17321 # How to create reloadable object files.
17322 reload_flag=$lt_reload_flag
17323 reload_cmds=$lt_reload_cmds
17324
17325 # Commands used to build an old-style archive.
17326 old_archive_cmds=$lt_old_archive_cmds
17327
17328 # A language specific compiler.
17329 CC=$lt_compiler
17330
17331 # Is the compiler the GNU compiler?
17332 with_gcc=$GCC
17333
17334 # Compiler flag to turn off builtin functions.
17335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17336
17337 # How to pass a linker flag through the compiler.
17338 wl=$lt_lt_prog_compiler_wl
17339
17340 # Additional compiler flags for building library objects.
17341 pic_flag=$lt_lt_prog_compiler_pic
17342
17343 # Compiler flag to prevent dynamic linking.
17344 link_static_flag=$lt_lt_prog_compiler_static
17345
17346 # Does compiler simultaneously support -c and -o options?
17347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17348
17349 # Whether or not to add -lc for building shared libraries.
17350 build_libtool_need_lc=$archive_cmds_need_lc
17351
17352 # Whether or not to disallow shared libs when runtime libs are static.
17353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17354
17355 # Compiler flag to allow reflexive dlopens.
17356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17357
17358 # Compiler flag to generate shared objects directly from archives.
17359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17360
17361 # Whether the compiler copes with passing no objects directly.
17362 compiler_needs_object=$lt_compiler_needs_object
17363
17364 # Create an old-style archive from a shared archive.
17365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17366
17367 # Create a temporary old-style archive to link instead of a shared archive.
17368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17369
17370 # Commands used to build a shared archive.
17371 archive_cmds=$lt_archive_cmds
17372 archive_expsym_cmds=$lt_archive_expsym_cmds
17373
17374 # Commands used to build a loadable module if different from building
17375 # a shared archive.
17376 module_cmds=$lt_module_cmds
17377 module_expsym_cmds=$lt_module_expsym_cmds
17378
17379 # Whether we are building with GNU ld or not.
17380 with_gnu_ld=$lt_with_gnu_ld
17381
17382 # Flag that allows shared libraries with undefined symbols to be built.
17383 allow_undefined_flag=$lt_allow_undefined_flag
17384
17385 # Flag that enforces no undefined symbols.
17386 no_undefined_flag=$lt_no_undefined_flag
17387
17388 # Flag to hardcode \$libdir into a binary during linking.
17389 # This must work even if \$libdir does not exist
17390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17391
17392 # If ld is used when linking, flag to hardcode \$libdir into a binary
17393 # during linking. This must work even if \$libdir does not exist.
17394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17395
17396 # Whether we need a single "-rpath" flag with a separated argument.
17397 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17398
17399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17400 # DIR into the resulting binary.
17401 hardcode_direct=$hardcode_direct
17402
17403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17404 # DIR into the resulting binary and the resulting library dependency is
17405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17406 # library is relocated.
17407 hardcode_direct_absolute=$hardcode_direct_absolute
17408
17409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17410 # into the resulting binary.
17411 hardcode_minus_L=$hardcode_minus_L
17412
17413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17414 # into the resulting binary.
17415 hardcode_shlibpath_var=$hardcode_shlibpath_var
17416
17417 # Set to "yes" if building a shared library automatically hardcodes DIR
17418 # into the library and all subsequent libraries and executables linked
17419 # against it.
17420 hardcode_automatic=$hardcode_automatic
17421
17422 # Set to yes if linker adds runtime paths of dependent libraries
17423 # to runtime path list.
17424 inherit_rpath=$inherit_rpath
17425
17426 # Whether libtool must link a program against all its dependency libraries.
17427 link_all_deplibs=$link_all_deplibs
17428
17429 # Fix the shell variable \$srcfile for the compiler.
17430 fix_srcfile_path=$lt_fix_srcfile_path
17431
17432 # Set to "yes" if exported symbols are required.
17433 always_export_symbols=$always_export_symbols
17434
17435 # The commands to list exported symbols.
17436 export_symbols_cmds=$lt_export_symbols_cmds
17437
17438 # Symbols that should not be listed in the preloaded symbols.
17439 exclude_expsyms=$lt_exclude_expsyms
17440
17441 # Symbols that must always be exported.
17442 include_expsyms=$lt_include_expsyms
17443
17444 # Commands necessary for linking programs (against libraries) with templates.
17445 prelink_cmds=$lt_prelink_cmds
17446
17447 # Specify filename containing input files.
17448 file_list_spec=$lt_file_list_spec
17449
17450 # How to hardcode a shared library path into an executable.
17451 hardcode_action=$hardcode_action
17452
17453 # The directories searched by this compiler when creating a shared library.
17454 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17455
17456 # Dependencies to place before and after the objects being linked to
17457 # create a shared library.
17458 predep_objects=$lt_predep_objects
17459 postdep_objects=$lt_postdep_objects
17460 predeps=$lt_predeps
17461 postdeps=$lt_postdeps
17462
17463 # The library search path used internally by the compiler when linking
17464 # a shared library.
17465 compiler_lib_search_path=$lt_compiler_lib_search_path
17466
17467 # ### END LIBTOOL CONFIG
17468
17469 _LT_EOF
17470
17471 case $host_os in
17472 aix3*)
17473 cat <<\_LT_EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program. For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17478 COLLECT_NAMES=
17479 export COLLECT_NAMES
17480 fi
17481 _LT_EOF
17482 ;;
17483 esac
17484
17485
17486 ltmain="$ac_aux_dir/ltmain.sh"
17487
17488
17489 # We use sed instead of cat because bash on DJGPP gets confused if
17490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17491 # text mode, it properly converts lines to CR/LF. This bash problem
17492 # is reportedly fixed, but why not run on old versions too?
17493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494 || (rm -f "$cfgfile"; exit 1)
17495
17496 case $xsi_shell in
17497 yes)
17498 cat << \_LT_EOF >> "$cfgfile"
17499
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17503 func_dirname ()
17504 {
17505 case ${1} in
17506 */*) func_dirname_result="${1%/*}${2}" ;;
17507 * ) func_dirname_result="${3}" ;;
17508 esac
17509 }
17510
17511 # func_basename file
17512 func_basename ()
17513 {
17514 func_basename_result="${1##*/}"
17515 }
17516
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17519 # call:
17520 # dirname: Compute the dirname of FILE. If nonempty,
17521 # add APPEND to the result, otherwise set result
17522 # to NONDIR_REPLACEMENT.
17523 # value returned in "$func_dirname_result"
17524 # basename: Compute filename of FILE.
17525 # value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename ()
17530 {
17531 case ${1} in
17532 */*) func_dirname_result="${1%/*}${2}" ;;
17533 * ) func_dirname_result="${3}" ;;
17534 esac
17535 func_basename_result="${1##*/}"
17536 }
17537
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17543 func_stripname ()
17544 {
17545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546 # positional parameters, so assign one to ordinary parameter first.
17547 func_stripname_result=${3}
17548 func_stripname_result=${func_stripname_result#"${1}"}
17549 func_stripname_result=${func_stripname_result%"${2}"}
17550 }
17551
17552 # func_opt_split
17553 func_opt_split ()
17554 {
17555 func_opt_split_opt=${1%%=*}
17556 func_opt_split_arg=${1#*=}
17557 }
17558
17559 # func_lo2o object
17560 func_lo2o ()
17561 {
17562 case ${1} in
17563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564 *) func_lo2o_result=${1} ;;
17565 esac
17566 }
17567
17568 # func_xform libobj-or-source
17569 func_xform ()
17570 {
17571 func_xform_result=${1%.*}.lo
17572 }
17573
17574 # func_arith arithmetic-term...
17575 func_arith ()
17576 {
17577 func_arith_result=$(( $* ))
17578 }
17579
17580 # func_len string
17581 # STRING may not start with a hyphen.
17582 func_len ()
17583 {
17584 func_len_result=${#1}
17585 }
17586
17587 _LT_EOF
17588 ;;
17589 *) # Bourne compatible functions.
17590 cat << \_LT_EOF >> "$cfgfile"
17591
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17595 func_dirname ()
17596 {
17597 # Extract subdirectory from the argument.
17598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17599 if test "X$func_dirname_result" = "X${1}"; then
17600 func_dirname_result="${3}"
17601 else
17602 func_dirname_result="$func_dirname_result${2}"
17603 fi
17604 }
17605
17606 # func_basename file
17607 func_basename ()
17608 {
17609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17610 }
17611
17612
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17619 func_stripname ()
17620 {
17621 case ${2} in
17622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17624 esac
17625 }
17626
17627 # sed scripts:
17628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17629 my_sed_long_arg='1s/^-[^=]*=//'
17630
17631 # func_opt_split
17632 func_opt_split ()
17633 {
17634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17636 }
17637
17638 # func_lo2o object
17639 func_lo2o ()
17640 {
17641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17642 }
17643
17644 # func_xform libobj-or-source
17645 func_xform ()
17646 {
17647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17648 }
17649
17650 # func_arith arithmetic-term...
17651 func_arith ()
17652 {
17653 func_arith_result=`expr "$@"`
17654 }
17655
17656 # func_len string
17657 # STRING may not start with a hyphen.
17658 func_len ()
17659 {
17660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17661 }
17662
17663 _LT_EOF
17664 esac
17665
17666 case $lt_shell_append in
17667 yes)
17668 cat << \_LT_EOF >> "$cfgfile"
17669
17670 # func_append var value
17671 # Append VALUE to the end of shell variable VAR.
17672 func_append ()
17673 {
17674 eval "$1+=\$2"
17675 }
17676 _LT_EOF
17677 ;;
17678 *)
17679 cat << \_LT_EOF >> "$cfgfile"
17680
17681 # func_append var value
17682 # Append VALUE to the end of shell variable VAR.
17683 func_append ()
17684 {
17685 eval "$1=\$$1\$2"
17686 }
17687
17688 _LT_EOF
17689 ;;
17690 esac
17691
17692
17693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694 || (rm -f "$cfgfile"; exit 1)
17695
17696 mv -f "$cfgfile" "$ofile" ||
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698 chmod +x "$ofile"
17699
17700
17701 cat <<_LT_EOF >> "$ofile"
17702
17703 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17704
17705 # The linker used to build libraries.
17706 LD=$lt_LD_CXX
17707
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag_CXX
17710 reload_cmds=$lt_reload_cmds_CXX
17711
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds_CXX
17714
17715 # A language specific compiler.
17716 CC=$lt_compiler_CXX
17717
17718 # Is the compiler the GNU compiler?
17719 with_gcc=$GCC_CXX
17720
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17723
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_CXX
17726
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic_CXX
17729
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_CXX
17732
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17735
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17738
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17741
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17744
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17747
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object_CXX
17750
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17753
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17756
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds_CXX
17759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17760
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds_CXX
17764 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17765
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld_CXX
17768
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17771
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag_CXX
17774
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17778
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking. This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17782
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17785
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct_CXX
17789
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17795
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L_CXX
17799
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17803
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17806 # against it.
17807 hardcode_automatic=$hardcode_automatic_CXX
17808
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath_CXX
17812
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_CXX
17815
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17818
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols_CXX
17821
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17824
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms_CXX
17827
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms_CXX
17830
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds_CXX
17833
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec_CXX
17836
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action_CXX
17839
17840 # The directories searched by this compiler when creating a shared library.
17841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17842
17843 # Dependencies to place before and after the objects being linked to
17844 # create a shared library.
17845 predep_objects=$lt_predep_objects_CXX
17846 postdep_objects=$lt_postdep_objects_CXX
17847 predeps=$lt_predeps_CXX
17848 postdeps=$lt_postdeps_CXX
17849
17850 # The library search path used internally by the compiler when linking
17851 # a shared library.
17852 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17853
17854 # ### END LIBTOOL TAG CONFIG: CXX
17855 _LT_EOF
17856
17857 ;;
17858
17859 esac
17860 done # for ac_tag
17861
17862
17863 as_fn_exit 0
17864 _ACEOF
17865 ac_clean_files=$ac_clean_files_save
17866
17867 test $ac_write_fail = 0 ||
17868 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17869
17870
17871 # configure is writing to config.log, and then calls config.status.
17872 # config.status does its own redirection, appending to config.log.
17873 # Unfortunately, on DOS this fails, as config.log is still kept open
17874 # by configure, so config.status won't be able to write to it; its
17875 # output is simply discarded. So we exec the FD to /dev/null,
17876 # effectively closing config.log, so it can be properly (re)opened and
17877 # appended to by config.status. When coming back to configure, we
17878 # need to make the FD available again.
17879 if test "$no_create" != yes; then
17880 ac_cs_success=:
17881 ac_config_status_args=
17882 test "$silent" = yes &&
17883 ac_config_status_args="$ac_config_status_args --quiet"
17884 exec 5>/dev/null
17885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17886 exec 5>>config.log
17887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17888 # would make configure fail if this is the last instruction.
17889 $ac_cs_success || as_fn_exit $?
17890 fi
17891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17894 fi
17895