]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcilkrts/configure
configure.ac: Changed a case statement to include i386.
[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 toolexeclibdir
608 toolexecdir
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 RANLIB
616 AR
617 OBJDUMP
618 LN_S
619 NM
620 ac_ct_DUMPBIN
621 DUMPBIN
622 LD
623 FGREP
624 SED
625 LIBTOOL
626 MAC_LINKER_SCRIPT_FALSE
627 MAC_LINKER_SCRIPT_TRUE
628 LINUX_LINKER_SCRIPT_FALSE
629 LINUX_LINKER_SCRIPT_TRUE
630 config_dir
631 EGREP
632 GREP
633 CPP
634 ALLOCA
635 multi_basedir
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 ac_ct_CC
640 CFLAGS
641 CC
642 am__fastdepCXX_FALSE
643 am__fastdepCXX_TRUE
644 CXXDEPMODE
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CXX
654 CPPFLAGS
655 LDFLAGS
656 CXXFLAGS
657 CXX
658 MAINT
659 MAINTAINER_MODE_FALSE
660 MAINTAINER_MODE_TRUE
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
666 AWK
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_maintainer_mode
738 enable_dependency_tracking
739 enable_multilib
740 enable_version_specific_runtime_libs
741 enable_shared
742 enable_static
743 with_pic
744 enable_fast_install
745 with_gnu_ld
746 enable_libtool_lock
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CXX
752 CXXFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CCC
757 CC
758 CFLAGS
759 CPP
760 CXXCPP'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root
1351 [DATAROOTDIR/doc/cilk-runtime-library]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356 _ACEOF
1357
1358 cat <<\_ACEOF
1359
1360 Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 --target=TARGET configure for building compilers for TARGET [HOST]
1369 _ACEOF
1370 fi
1371
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1375 esac
1376 cat <<\_ACEOF
1377
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-maintainer-mode enable make rules and dependencies not useful
1383 (and sometimes confusing) to the casual installer
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1386 --enable-multilib build many library versions (default)
1387 --enable-version-specific-runtime-libs
1388 Specify that runtime libraries should be installed
1389 in a compi ler-specific directory
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CXX C++ compiler command
1405 CXXFLAGS C++ compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 CPP C preprocessor
1414 CXXCPP C++ preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to <cilk@intel.com>.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 Cilk Runtime Library configure 2.0
1483 generated by GNU Autoconf 2.64
1484
1485 Copyright (C) 2009 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_cxx_try_compile LINENO
1497 # ----------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_cxx_try_compile ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_cxx_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530 return $ac_retval
1531
1532 } # ac_fn_cxx_try_compile
1533
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 return $ac_retval
1569
1570 } # ac_fn_c_try_compile
1571
1572 # ac_fn_c_try_link LINENO
1573 # -----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_link ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest$ac_exeext
1579 if { { ac_try="$ac_link"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 $as_test_x conftest$ac_exeext
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1615
1616 } # ac_fn_c_try_link
1617
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_cpp ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } >/dev/null && {
1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 }; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649 fi
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651 return $ac_retval
1652
1653 } # ac_fn_c_try_cpp
1654
1655 # ac_fn_c_check_func LINENO FUNC VAR
1656 # ----------------------------------
1657 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1658 ac_fn_c_check_func ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1670 #define $2 innocuous_$2
1671
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $2 (); below.
1674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1675 <limits.h> exists even on freestanding compilers. */
1676
1677 #ifdef __STDC__
1678 # include <limits.h>
1679 #else
1680 # include <assert.h>
1681 #endif
1682
1683 #undef $2
1684
1685 /* Override any GCC internal prototype to avoid an error.
1686 Use char because int might match the return type of a GCC
1687 builtin and then its argument prototype would still apply. */
1688 #ifdef __cplusplus
1689 extern "C"
1690 #endif
1691 char $2 ();
1692 /* The GNU C library defines this for functions which it implements
1693 to always fail with ENOSYS. Some functions are actually named
1694 something starting with __ and the normal name is an alias. */
1695 #if defined __stub_$2 || defined __stub___$2
1696 choke me
1697 #endif
1698
1699 int
1700 main ()
1701 {
1702 return $2 ();
1703 ;
1704 return 0;
1705 }
1706 _ACEOF
1707 if ac_fn_c_try_link "$LINENO"; then :
1708 eval "$3=yes"
1709 else
1710 eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext \
1713 conftest$ac_exeext conftest.$ac_ext
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719
1720 } # ac_fn_c_check_func
1721
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=$ac_status
1757 fi
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
1793 } # ac_fn_c_check_header_compile
1794
1795 # ac_fn_cxx_try_cpp LINENO
1796 # ------------------------
1797 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_cpp ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_cpp conftest.$ac_ext"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } >/dev/null && {
1817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1829
1830 } # ac_fn_cxx_try_cpp
1831
1832 # ac_fn_cxx_try_link LINENO
1833 # -------------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_link ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876 } # ac_fn_cxx_try_link
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1880
1881 It was created by Cilk Runtime Library $as_me 2.0, which was
1882 generated by GNU Autoconf 2.64. Invocation command line was
1883
1884 $ $0 $@
1885
1886 _ACEOF
1887 exec 5>>config.log
1888 {
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1893
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911 _ASUNAME
1912
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1921
1922 } >&5
1923
1924 cat >&5 <<_ACEOF
1925
1926
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1930
1931 _ACEOF
1932
1933
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1944 do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1981
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
1992 cat <<\_ASBOX
1993 ## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##
1996 _ASBOX
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
1999 (
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2027 )
2028 echo
2029
2030 cat <<\_ASBOX
2031 ## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##
2034 _ASBOX
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 cat <<\_ASBOX
2048 ## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##
2051 _ASBOX
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2063
2064 if test -s confdefs.h; then
2065 cat <<\_ASBOX
2066 ## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##
2069 _ASBOX
2070 echo
2071 cat confdefs.h
2072 echo
2073 fi
2074 test "$ac_signal" != 0 &&
2075 $as_echo "$as_me: caught signal $ac_signal"
2076 $as_echo "$as_me: exit $exit_status"
2077 } >&5
2078 rm -f core *.core core.conftest.* &&
2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080 exit $exit_status
2081 ' 0
2082 for ac_signal in 1 2 13 15; do
2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 done
2085 ac_signal=0
2086
2087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2088 rm -f -r conftest* confdefs.h
2089
2090 $as_echo "/* confdefs.h */" > confdefs.h
2091
2092 # Predefined preprocessor variables.
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_URL "$PACKAGE_URL"
2116 _ACEOF
2117
2118
2119 # Let the site file select an alternate cache file if it wants to.
2120 # Prefer an explicitly selected file to automatically selected ones.
2121 ac_site_file1=NONE
2122 ac_site_file2=NONE
2123 if test -n "$CONFIG_SITE"; then
2124 ac_site_file1=$CONFIG_SITE
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file"
2140 fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special
2145 # files actually), so we avoid doing that.
2146 if test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229
2230
2231
2232
2233 # Needed to define ${target}. Needs to be very early to avoid annoying
2234 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2235 ac_aux_dir=
2236 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2237 for ac_t in install-sh install.sh shtool; do
2238 if test -f "$ac_dir/$ac_t"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/$ac_t -c"
2241 break 2
2242 fi
2243 done
2244 done
2245 if test -z "$ac_aux_dir"; then
2246 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2247 fi
2248
2249 # These three variables are undocumented and unsupported,
2250 # and are intended to be withdrawn in a future Autoconf release.
2251 # They can cause serious problems if a builder's source tree is in a directory
2252 # whose full name contains unusual characters.
2253 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2254 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2255 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256
2257
2258 # Make sure we can run config.sub.
2259 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2260 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2261
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2263 $as_echo_n "checking build system type... " >&6; }
2264 if test "${ac_cv_build+set}" = set; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 ac_build_alias=$build_alias
2268 test "x$ac_build_alias" = x &&
2269 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2270 test "x$ac_build_alias" = x &&
2271 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2272 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2273 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2274
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2277 $as_echo "$ac_cv_build" >&6; }
2278 case $ac_cv_build in
2279 *-*-*) ;;
2280 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2281 esac
2282 build=$ac_cv_build
2283 ac_save_IFS=$IFS; IFS='-'
2284 set x $ac_cv_build
2285 shift
2286 build_cpu=$1
2287 build_vendor=$2
2288 shift; shift
2289 # Remember, the first character of IFS is used to create $*,
2290 # except with old shells:
2291 build_os=$*
2292 IFS=$ac_save_IFS
2293 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294
2295
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2297 $as_echo_n "checking host system type... " >&6; }
2298 if test "${ac_cv_host+set}" = set; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 if test "x$host_alias" = x; then
2302 ac_cv_host=$ac_cv_build
2303 else
2304 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2305 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2306 fi
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2310 $as_echo "$ac_cv_host" >&6; }
2311 case $ac_cv_host in
2312 *-*-*) ;;
2313 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2314 esac
2315 host=$ac_cv_host
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_host
2318 shift
2319 host_cpu=$1
2320 host_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 host_os=$*
2325 IFS=$ac_save_IFS
2326 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2327
2328
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2330 $as_echo_n "checking target system type... " >&6; }
2331 if test "${ac_cv_target+set}" = set; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test "x$target_alias" = x; then
2335 ac_cv_target=$ac_cv_host
2336 else
2337 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2338 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2339 fi
2340
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2343 $as_echo "$ac_cv_target" >&6; }
2344 case $ac_cv_target in
2345 *-*-*) ;;
2346 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2347 esac
2348 target=$ac_cv_target
2349 ac_save_IFS=$IFS; IFS='-'
2350 set x $ac_cv_target
2351 shift
2352 target_cpu=$1
2353 target_vendor=$2
2354 shift; shift
2355 # Remember, the first character of IFS is used to create $*,
2356 # except with old shells:
2357 target_os=$*
2358 IFS=$ac_save_IFS
2359 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2360
2361
2362 # The aliases save the names the user supplied, while $host etc.
2363 # will get canonicalized.
2364 test -n "$target_alias" &&
2365 test "$program_prefix$program_suffix$program_transform_name" = \
2366 NONENONEs,x,x, &&
2367 program_prefix=${target_alias}-
2368
2369 am__api_version='1.11'
2370
2371 # Find a good install program. We prefer a C program (faster),
2372 # so one script is as good as another. But avoid the broken or
2373 # incompatible versions:
2374 # SysV /etc/install, /usr/sbin/install
2375 # SunOS /usr/etc/install
2376 # IRIX /sbin/install
2377 # AIX /bin/install
2378 # AmigaOS /C/install, which installs bootblocks on floppy discs
2379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382 # OS/2's system install, which has a completely different semantic
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 # Reject install programs that cannot install multiple files.
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2386 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2387 if test -z "$INSTALL"; then
2388 if test "${ac_cv_path_install+set}" = set; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 # Account for people who put trailing slashes in PATH elements.
2397 case $as_dir/ in #((
2398 ./ | .// | /[cC]/* | \
2399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2400 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2401 /usr/ucb/* ) ;;
2402 *)
2403 # OSF1 and SCO ODT 3.0 have their own names for install.
2404 # Don't use installbsd from OSF since it installs stuff as root
2405 # by default.
2406 for ac_prog in ginstall scoinst install; do
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2409 if test $ac_prog = install &&
2410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # AIX install. It has an incompatible calling convention.
2412 :
2413 elif test $ac_prog = install &&
2414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # program-specific install script used by HP pwplus--don't use.
2416 :
2417 else
2418 rm -rf conftest.one conftest.two conftest.dir
2419 echo one > conftest.one
2420 echo two > conftest.two
2421 mkdir conftest.dir
2422 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2423 test -s conftest.one && test -s conftest.two &&
2424 test -s conftest.dir/conftest.one &&
2425 test -s conftest.dir/conftest.two
2426 then
2427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2428 break 3
2429 fi
2430 fi
2431 fi
2432 done
2433 done
2434 ;;
2435 esac
2436
2437 done
2438 IFS=$as_save_IFS
2439
2440 rm -rf conftest.one conftest.two conftest.dir
2441
2442 fi
2443 if test "${ac_cv_path_install+set}" = set; then
2444 INSTALL=$ac_cv_path_install
2445 else
2446 # As a last resort, use the slow shell script. Don't cache a
2447 # value for INSTALL within a source directory, because that will
2448 # break other packages using the cache if that directory is
2449 # removed, or if the value is a relative name.
2450 INSTALL=$ac_install_sh
2451 fi
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2454 $as_echo "$INSTALL" >&6; }
2455
2456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2457 # It thinks the first close brace ends the variable substitution.
2458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459
2460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461
2462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2465 $as_echo_n "checking whether build environment is sane... " >&6; }
2466 # Just in case
2467 sleep 1
2468 echo timestamp > conftest.file
2469 # Reject unsafe characters in $srcdir or the absolute working directory
2470 # name. Accept space and tab only in the latter.
2471 am_lf='
2472 '
2473 case `pwd` in
2474 *[\\\"\#\$\&\'\`$am_lf]*)
2475 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2476 esac
2477 case $srcdir in
2478 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2479 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2480 esac
2481
2482 # Do `set' in a subshell so we don't clobber the current shell's
2483 # arguments. Must try -L first in case configure is actually a
2484 # symlink; some systems play weird games with the mod time of symlinks
2485 # (eg FreeBSD returns the mod time of the symlink's containing
2486 # directory).
2487 if (
2488 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2489 if test "$*" = "X"; then
2490 # -L didn't work.
2491 set X `ls -t "$srcdir/configure" conftest.file`
2492 fi
2493 rm -f conftest.file
2494 if test "$*" != "X $srcdir/configure conftest.file" \
2495 && test "$*" != "X conftest.file $srcdir/configure"; then
2496
2497 # If neither matched, then we have a broken ls. This can happen
2498 # if, for instance, CONFIG_SHELL is bash and it inherits a
2499 # broken ls alias from the environment. This has actually
2500 # happened. Such a system could not be considered "sane".
2501 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2502 alias in your environment" "$LINENO" 5
2503 fi
2504
2505 test "$2" = conftest.file
2506 )
2507 then
2508 # Ok.
2509 :
2510 else
2511 as_fn_error "newly created file is older than distributed files!
2512 Check your system clock" "$LINENO" 5
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2515 $as_echo "yes" >&6; }
2516 test "$program_prefix" != NONE &&
2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518 # Use a double $ so make ignores it.
2519 test "$program_suffix" != NONE &&
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521 # Double any \ or $.
2522 # By default was `s,x,x', remove it if useless.
2523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525
2526 # expand $ac_aux_dir to an absolute path
2527 am_aux_dir=`cd $ac_aux_dir && pwd`
2528
2529 if test x"${MISSING+set}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2533 *)
2534 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2535 esac
2536 fi
2537 # Use eval to expand $SHELL
2538 if eval "$MISSING --run true"; then
2539 am_missing_run="$MISSING --run "
2540 else
2541 am_missing_run=
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2543 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2544 fi
2545
2546 if test x"${install_sh}" != xset; then
2547 case $am_aux_dir in
2548 *\ * | *\ *)
2549 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550 *)
2551 install_sh="\${SHELL} $am_aux_dir/install-sh"
2552 esac
2553 fi
2554
2555 # Installed binaries are usually stripped using `strip' when the user
2556 # run `make install-strip'. However `strip' might not be the right
2557 # tool to use in cross-compilation environments, therefore Automake
2558 # will honor the `STRIP' environment variable to overrule this program.
2559 if test "$cross_compiling" != no; then
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_STRIP+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$STRIP"; then
2569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 STRIP=$ac_cv_prog_STRIP
2589 if test -n "$STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2591 $as_echo "$STRIP" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 fi
2599 if test -z "$ac_cv_prog_STRIP"; then
2600 ac_ct_STRIP=$STRIP
2601 # Extract the first word of "strip", so it can be a program name with args.
2602 set dummy strip; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$ac_ct_STRIP"; then
2609 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_STRIP="strip"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2629 if test -n "$ac_ct_STRIP"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2631 $as_echo "$ac_ct_STRIP" >&6; }
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637 if test "x$ac_ct_STRIP" = x; then
2638 STRIP=":"
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641 yes:)
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646 STRIP=$ac_ct_STRIP
2647 fi
2648 else
2649 STRIP="$ac_cv_prog_STRIP"
2650 fi
2651
2652 fi
2653 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2656 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2657 if test -z "$MKDIR_P"; then
2658 if test "${ac_cv_path_mkdir+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_prog in mkdir gmkdir; do
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2669 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2670 'mkdir (GNU coreutils) '* | \
2671 'mkdir (coreutils) '* | \
2672 'mkdir (fileutils) '4.1*)
2673 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2674 break 3;;
2675 esac
2676 done
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 fi
2682
2683 if test "${ac_cv_path_mkdir+set}" = set; then
2684 MKDIR_P="$ac_cv_path_mkdir -p"
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for MKDIR_P within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 test -d ./--version && rmdir ./--version
2691 MKDIR_P="$ac_install_sh -d"
2692 fi
2693 fi
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2695 $as_echo "$MKDIR_P" >&6; }
2696
2697 mkdir_p="$MKDIR_P"
2698 case $mkdir_p in
2699 [\\/$]* | ?:[\\/]*) ;;
2700 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2701 esac
2702
2703 for ac_prog in gawk mawk nawk awk
2704 do
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_AWK+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 test -n "$AWK" && break
2743 done
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747 set x ${MAKE-make}
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat >conftest.make <<\_ACEOF
2753 SHELL = /bin/sh
2754 all:
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2756 _ACEOF
2757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759 *@@@%%%=?*=@@@%%%*)
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2761 *)
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2763 esac
2764 rm -f conftest.make
2765 fi
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 SET_MAKE=
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2774 fi
2775
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2779 am__leading_dot=.
2780 else
2781 am__leading_dot=_
2782 fi
2783 rmdir .tst 2>/dev/null
2784
2785 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2786 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2787 # is not polluted with repeated "-I."
2788 am__isrc=' -I$(srcdir)'
2789 # test to see if srcdir already configured
2790 if test -f $srcdir/config.status; then
2791 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792 fi
2793 fi
2794
2795 # test whether we have cygpath
2796 if test -z "$CYGPATH_W"; then
2797 if (cygpath --version) >/dev/null 2>/dev/null; then
2798 CYGPATH_W='cygpath -w'
2799 else
2800 CYGPATH_W=echo
2801 fi
2802 fi
2803
2804
2805 # Define the identity of the package.
2806 PACKAGE='cilk-runtime-library'
2807 VERSION='2.0'
2808
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE "$PACKAGE"
2812 _ACEOF
2813
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define VERSION "$VERSION"
2817 _ACEOF
2818
2819 # Some tools Automake needs.
2820
2821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2822
2823
2824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2825
2826
2827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2828
2829
2830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2831
2832
2833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834
2835 # We need awk for the "check" target. The system "awk" is bad on
2836 # some platforms.
2837 # Always define AMTAR for backward compatibility.
2838
2839 AMTAR=${AMTAR-"${am_missing_run}tar"}
2840
2841 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2842
2843
2844
2845
2846
2847
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2851 # Check whether --enable-maintainer-mode was given.
2852 if test "${enable_maintainer_mode+set}" = set; then :
2853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2854 else
2855 USE_MAINTAINER_MODE=no
2856 fi
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2860 if test $USE_MAINTAINER_MODE = yes; then
2861 MAINTAINER_MODE_TRUE=
2862 MAINTAINER_MODE_FALSE='#'
2863 else
2864 MAINTAINER_MODE_TRUE='#'
2865 MAINTAINER_MODE_FALSE=
2866 fi
2867
2868 MAINT=$MAINTAINER_MODE_TRUE
2869
2870
2871
2872 # Build a DLL on Windows
2873 # AC_LIBTOOL_WIN32_DLL
2874 ac_ext=cpp
2875 ac_cpp='$CXXCPP $CPPFLAGS'
2876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2879 if test -z "$CXX"; then
2880 if test -n "$CCC"; then
2881 CXX=$CCC
2882 else
2883 if test -n "$ac_tool_prefix"; then
2884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2885 do
2886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CXX+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CXX"; then
2894 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CXX=$ac_cv_prog_CXX
2914 if test -n "$CXX"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2916 $as_echo "$CXX" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 test -n "$CXX" && break
2924 done
2925 fi
2926 if test -z "$CXX"; then
2927 ac_ct_CXX=$CXX
2928 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2929 do
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$ac_ct_CXX"; then
2938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_ac_ct_CXX="$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2958 if test -n "$ac_ct_CXX"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2960 $as_echo "$ac_ct_CXX" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 test -n "$ac_ct_CXX" && break
2968 done
2969
2970 if test "x$ac_ct_CXX" = x; then
2971 CXX="g++"
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CXX=$ac_ct_CXX
2980 fi
2981 fi
2982
2983 fi
2984 fi
2985 # Provide some information about the compiler.
2986 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2987 set X $ac_compile
2988 ac_compiler=$2
2989 for ac_option in --version -v -V -qversion; do
2990 { { ac_try="$ac_compiler $ac_option >&5"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2998 ac_status=$?
2999 if test -s conftest.err; then
3000 sed '10a\
3001 ... rest of stderr output deleted ...
3002 10q' conftest.err >conftest.er1
3003 cat conftest.er1 >&5
3004 rm -f conftest.er1 conftest.err
3005 fi
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }
3008 done
3009
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3012
3013 int
3014 main ()
3015 {
3016
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 ac_clean_files_save=$ac_clean_files
3022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3023 # Try to create an executable without -o first, disregard a.out.
3024 # It will help us diagnose broken compilers, and finding out an intuition
3025 # of exeext.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3027 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3028 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3029
3030 # The possible output files:
3031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3032
3033 ac_rmfiles=
3034 for ac_file in $ac_files
3035 do
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039 esac
3040 done
3041 rm -f $ac_rmfiles
3042
3043 if { { ac_try="$ac_link_default"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3049 $as_echo "$ac_try_echo"; } >&5
3050 (eval "$ac_link_default") 2>&5
3051 ac_status=$?
3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3053 test $ac_status = 0; }; then :
3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3058 # Autoconf.
3059 for ac_file in $ac_files ''
3060 do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3071 then :; else
3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 fi
3074 # We set ac_cv_exeext here because the later test for it is not
3075 # safe: cross compilers may not add the suffix if given an `-o'
3076 # argument, so we may need to know it at that point already.
3077 # Even if this section looks crufty: it has the advantage of
3078 # actually working.
3079 break;;
3080 * )
3081 break;;
3082 esac
3083 done
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085
3086 else
3087 ac_file=''
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 if test -z "$ac_file"; then :
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 { as_fn_set_status 77
3098 as_fn_error "C++ compiler cannot create executables
3099 See \`config.log' for more details." "$LINENO" 5; }; }
3100 fi
3101 ac_exeext=$ac_cv_exeext
3102
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3106 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109 if { ac_try='./$ac_file'
3110 { { case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; }; then
3120 cross_compiling=no
3121 else
3122 if test "$cross_compiling" = maybe; then
3123 cross_compiling=yes
3124 else
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error "cannot run C++ compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." "$LINENO" 5; }
3130 fi
3131 fi
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135
3136 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3137 ac_clean_files=$ac_clean_files_save
3138 # Check that the compiler produces executables we can run. If not, either
3139 # the compiler is broken, or we cross compile.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3141 $as_echo_n "checking whether we are cross compiling... " >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3143 $as_echo "$cross_compiling" >&6; }
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146 $as_echo_n "checking for suffix of executables... " >&6; }
3147 if { { ac_try="$ac_link"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 # `rm'.
3162 for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 break;;
3168 * ) break;;
3169 esac
3170 done
3171 else
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." "$LINENO" 5; }
3176 fi
3177 rm -f conftest$ac_cv_exeext
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179 $as_echo "$ac_cv_exeext" >&6; }
3180
3181 rm -f conftest.$ac_ext
3182 EXEEXT=$ac_cv_exeext
3183 ac_exeext=$EXEEXT
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191
3192 int
3193 main ()
3194 {
3195
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217 break;;
3218 esac
3219 done
3220 else
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details." "$LINENO" 5; }
3228 fi
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3237 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242
3243 int
3244 main ()
3245 {
3246 #ifndef __GNUC__
3247 choke me
3248 #endif
3249
3250 ;
3251 return 0;
3252 }
3253 _ACEOF
3254 if ac_fn_cxx_try_compile "$LINENO"; then :
3255 ac_compiler_gnu=yes
3256 else
3257 ac_compiler_gnu=no
3258 fi
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3261
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3264 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3266 GXX=yes
3267 else
3268 GXX=
3269 fi
3270 ac_test_CXXFLAGS=${CXXFLAGS+set}
3271 ac_save_CXXFLAGS=$CXXFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3273 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3274 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3278 ac_cxx_werror_flag=yes
3279 ac_cv_prog_cxx_g=no
3280 CXXFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_cxx_try_compile "$LINENO"; then :
3293 ac_cv_prog_cxx_g=yes
3294 else
3295 CXXFLAGS=""
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_cxx_try_compile "$LINENO"; then :
3308
3309 else
3310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3311 CXXFLAGS="-g"
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314
3315 int
3316 main ()
3317 {
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_cxx_try_compile "$LINENO"; then :
3324 ac_cv_prog_cxx_g=yes
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3334 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3335 if test "$ac_test_CXXFLAGS" = set; then
3336 CXXFLAGS=$ac_save_CXXFLAGS
3337 elif test $ac_cv_prog_cxx_g = yes; then
3338 if test "$GXX" = yes; then
3339 CXXFLAGS="-g -O2"
3340 else
3341 CXXFLAGS="-g"
3342 fi
3343 else
3344 if test "$GXX" = yes; then
3345 CXXFLAGS="-O2"
3346 else
3347 CXXFLAGS=
3348 fi
3349 fi
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 DEPDIR="${am__leading_dot}deps"
3356
3357 ac_config_commands="$ac_config_commands depfiles"
3358
3359
3360 am_make=${MAKE-make}
3361 cat > confinc << 'END'
3362 am__doit:
3363 @echo this is the am__doit target
3364 .PHONY: am__doit
3365 END
3366 # If we don't find an include directive, just comment out the code.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3368 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3369 am__include="#"
3370 am__quote=
3371 _am_result=none
3372 # First try GNU make style include.
3373 echo "include confinc" > confmf
3374 # Ignore all kinds of additional output from `make'.
3375 case `$am_make -s -f confmf 2> /dev/null` in #(
3376 *the\ am__doit\ target*)
3377 am__include=include
3378 am__quote=
3379 _am_result=GNU
3380 ;;
3381 esac
3382 # Now try BSD make style include.
3383 if test "$am__include" = "#"; then
3384 echo '.include "confinc"' > confmf
3385 case `$am_make -s -f confmf 2> /dev/null` in #(
3386 *the\ am__doit\ target*)
3387 am__include=.include
3388 am__quote="\""
3389 _am_result=BSD
3390 ;;
3391 esac
3392 fi
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3396 $as_echo "$_am_result" >&6; }
3397 rm -f confinc confmf
3398
3399 # Check whether --enable-dependency-tracking was given.
3400 if test "${enable_dependency_tracking+set}" = set; then :
3401 enableval=$enable_dependency_tracking;
3402 fi
3403
3404 if test "x$enable_dependency_tracking" != xno; then
3405 am_depcomp="$ac_aux_dir/depcomp"
3406 AMDEPBACKSLASH='\'
3407 fi
3408 if test "x$enable_dependency_tracking" != xno; then
3409 AMDEP_TRUE=
3410 AMDEP_FALSE='#'
3411 else
3412 AMDEP_TRUE='#'
3413 AMDEP_FALSE=
3414 fi
3415
3416
3417
3418 depcc="$CXX" am_compiler_list=
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3421 $as_echo_n "checking dependency style of $depcc... " >&6; }
3422 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3426 # We make a subdir and do the tests there. Otherwise we can end up
3427 # making bogus files that we don't know about and never remove. For
3428 # instance it was reported that on HP-UX the gcc test will end up
3429 # making a dummy file named `D' -- because `-MD' means `put the output
3430 # in D'.
3431 mkdir conftest.dir
3432 # Copy depcomp to subdir because otherwise we won't find it if we're
3433 # using a relative directory.
3434 cp "$am_depcomp" conftest.dir
3435 cd conftest.dir
3436 # We will build objects and dependencies in a subdirectory because
3437 # it helps to detect inapplicable dependency modes. For instance
3438 # both Tru64's cc and ICC support -MD to output dependencies as a
3439 # side effect of compilation, but ICC will put the dependencies in
3440 # the current directory while Tru64 will put them in the object
3441 # directory.
3442 mkdir sub
3443
3444 am_cv_CXX_dependencies_compiler_type=none
3445 if test "$am_compiler_list" = ""; then
3446 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3447 fi
3448 am__universal=false
3449 case " $depcc " in #(
3450 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3451 esac
3452
3453 for depmode in $am_compiler_list; do
3454 # Setup a source with many dependencies, because some compilers
3455 # like to wrap large dependency lists on column 80 (with \), and
3456 # we should not choose a depcomp mode which is confused by this.
3457 #
3458 # We need to recreate these files for each test, as the compiler may
3459 # overwrite some of them when testing with obscure command lines.
3460 # This happens at least with the AIX C compiler.
3461 : > sub/conftest.c
3462 for i in 1 2 3 4 5 6; do
3463 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3464 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3465 # Solaris 8's {/usr,}/bin/sh.
3466 touch sub/conftst$i.h
3467 done
3468 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3469
3470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3471 # mode. It turns out that the SunPro C++ compiler does not properly
3472 # handle `-M -o', and we need to detect this. Also, some Intel
3473 # versions had trouble with output in subdirs
3474 am__obj=sub/conftest.${OBJEXT-o}
3475 am__minus_obj="-o $am__obj"
3476 case $depmode in
3477 gcc)
3478 # This depmode causes a compiler race in universal mode.
3479 test "$am__universal" = false || continue
3480 ;;
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 msvisualcpp | msvcmsys)
3491 # This compiler won't grok `-c -o', but also, the minuso test has
3492 # not run yet. These depmodes are late enough in the game, and
3493 # so weak that their functioning should not be impacted.
3494 am__obj=conftest.${OBJEXT-o}
3495 am__minus_obj=
3496 ;;
3497 none) break ;;
3498 esac
3499 if depmode=$depmode \
3500 source=sub/conftest.c object=$am__obj \
3501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3502 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3503 >/dev/null 2>conftest.err &&
3504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CXX_dependencies_compiler_type=$depmode
3518 break
3519 fi
3520 fi
3521 done
3522
3523 cd ..
3524 rm -rf conftest.dir
3525 else
3526 am_cv_CXX_dependencies_compiler_type=none
3527 fi
3528
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3531 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3532 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3533
3534 if
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3537 am__fastdepCXX_TRUE=
3538 am__fastdepCXX_FALSE='#'
3539 else
3540 am__fastdepCXX_TRUE='#'
3541 am__fastdepCXX_FALSE=
3542 fi
3543
3544
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588 fi
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3637 fi
3638 else
3639 CC="$ac_cv_prog_CC"
3640 fi
3641
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 fi
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3705 fi
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3724 fi
3725 fi
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738 fi
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3742 do
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 test -n "$CC" && break
3781 done
3782 fi
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3786 do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823
3824 test -n "$ac_ct_CC" && break
3825 done
3826
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3837 fi
3838 fi
3839
3840 fi
3841
3842
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details." "$LINENO" 5; }
3847
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3867 rm -f conftest.er1 conftest.err
3868 fi
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880
3881 int
3882 main ()
3883 {
3884 #ifndef __GNUC__
3885 choke me
3886 #endif
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_compiler_gnu=yes
3894 else
3895 ac_compiler_gnu=no
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903 if test $ac_compiler_gnu = yes; then
3904 GCC=yes
3905 else
3906 GCC=
3907 fi
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3912 if test "${ac_cv_prog_cc_g+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3917 ac_cv_prog_cc_g=no
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main ()
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_g=yes
3932 else
3933 CFLAGS=""
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936
3937 int
3938 main ()
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946
3947 else
3948 ac_c_werror_flag=$ac_save_c_werror_flag
3949 CFLAGS="-g"
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952
3953 int
3954 main ()
3955 {
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_cv_prog_cc_g=yes
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972 $as_echo "$ac_cv_prog_cc_g" >&6; }
3973 if test "$ac_test_CFLAGS" = set; then
3974 CFLAGS=$ac_save_CFLAGS
3975 elif test $ac_cv_prog_cc_g = yes; then
3976 if test "$GCC" = yes; then
3977 CFLAGS="-g -O2"
3978 else
3979 CFLAGS="-g"
3980 fi
3981 else
3982 if test "$GCC" = yes; then
3983 CFLAGS="-O2"
3984 else
3985 CFLAGS=
3986 fi
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 ac_cv_prog_cc_c89=no
3994 ac_save_CC=$CC
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <stdarg.h>
3998 #include <stdio.h>
3999 #include <sys/types.h>
4000 #include <sys/stat.h>
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4005 char **p;
4006 int i;
4007 {
4008 return p[i];
4009 }
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4011 {
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4018 }
4019
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031 #define FOO(x) 'x'
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 int argc;
4039 char **argv;
4040 int
4041 main ()
4042 {
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 ;
4045 return 0;
4046 }
4047 _ACEOF
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050 do
4051 CC="$ac_save_CC $ac_arg"
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC
4060
4061 fi
4062 # AC_CACHE_VAL
4063 case "x$ac_cv_prog_cc_c89" in
4064 x)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066 $as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069 $as_echo "unsupported" >&6; } ;;
4070 *)
4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 esac
4075 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076
4077 fi
4078
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 depcc="$CC" am_compiler_list=
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4088 $as_echo_n "checking dependency style of $depcc... " >&6; }
4089 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4093 # We make a subdir and do the tests there. Otherwise we can end up
4094 # making bogus files that we don't know about and never remove. For
4095 # instance it was reported that on HP-UX the gcc test will end up
4096 # making a dummy file named `D' -- because `-MD' means `put the output
4097 # in D'.
4098 mkdir conftest.dir
4099 # Copy depcomp to subdir because otherwise we won't find it if we're
4100 # using a relative directory.
4101 cp "$am_depcomp" conftest.dir
4102 cd conftest.dir
4103 # We will build objects and dependencies in a subdirectory because
4104 # it helps to detect inapplicable dependency modes. For instance
4105 # both Tru64's cc and ICC support -MD to output dependencies as a
4106 # side effect of compilation, but ICC will put the dependencies in
4107 # the current directory while Tru64 will put them in the object
4108 # directory.
4109 mkdir sub
4110
4111 am_cv_CC_dependencies_compiler_type=none
4112 if test "$am_compiler_list" = ""; then
4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 fi
4115 am__universal=false
4116 case " $depcc " in #(
4117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 esac
4119
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4124 #
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4128 : > sub/conftest.c
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132 # Solaris 8's {/usr,}/bin/sh.
4133 touch sub/conftst$i.h
4134 done
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
4137 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4138 # mode. It turns out that the SunPro C++ compiler does not properly
4139 # handle `-M -o', and we need to detect this. Also, some Intel
4140 # versions had trouble with output in subdirs
4141 am__obj=sub/conftest.${OBJEXT-o}
4142 am__minus_obj="-o $am__obj"
4143 case $depmode in
4144 gcc)
4145 # This depmode causes a compiler race in universal mode.
4146 test "$am__universal" = false || continue
4147 ;;
4148 nosideeffect)
4149 # after this tag, mechanisms are not by side-effect, so they'll
4150 # only be used when explicitly requested
4151 if test "x$enable_dependency_tracking" = xyes; then
4152 continue
4153 else
4154 break
4155 fi
4156 ;;
4157 msvisualcpp | msvcmsys)
4158 # This compiler won't grok `-c -o', but also, the minuso test has
4159 # not run yet. These depmodes are late enough in the game, and
4160 # so weak that their functioning should not be impacted.
4161 am__obj=conftest.${OBJEXT-o}
4162 am__minus_obj=
4163 ;;
4164 none) break ;;
4165 esac
4166 if depmode=$depmode \
4167 source=sub/conftest.c object=$am__obj \
4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4170 >/dev/null 2>conftest.err &&
4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4175 # icc doesn't choke on unknown options, it will just issue warnings
4176 # or remarks (even with -Werror). So we grep stderr for any message
4177 # that says an option was ignored or not supported.
4178 # When given -MP, icc 7.0 and 7.1 complain thusly:
4179 # icc: Command line warning: ignoring option '-M'; no argument required
4180 # The diagnosis changed in icc 8.0:
4181 # icc: Command line remark: option '-MP' not supported
4182 if (grep 'ignoring option' conftest.err ||
4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4184 am_cv_CC_dependencies_compiler_type=$depmode
4185 break
4186 fi
4187 fi
4188 done
4189
4190 cd ..
4191 rm -rf conftest.dir
4192 else
4193 am_cv_CC_dependencies_compiler_type=none
4194 fi
4195
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4200
4201 if
4202 test "x$enable_dependency_tracking" != xno \
4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4204 am__fastdepCC_TRUE=
4205 am__fastdepCC_FALSE='#'
4206 else
4207 am__fastdepCC_TRUE='#'
4208 am__fastdepCC_FALSE=
4209 fi
4210
4211
4212 # AC_PROG_LIBTOOL
4213 # AC_CONFIG_MACRO_DIR([..])
4214 ac_config_files="$ac_config_files Makefile"
4215
4216 # Default to --enable-multilib
4217 # Check whether --enable-multilib was given.
4218 if test "${enable_multilib+set}" = set; then :
4219 enableval=$enable_multilib; case "$enableval" in
4220 yes) multilib=yes ;;
4221 no) multilib=no ;;
4222 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4223 esac
4224 else
4225 multilib=yes
4226 fi
4227
4228
4229 # We may get other options which we leave undocumented:
4230 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4231 # See config-ml.in if you want the gory details.
4232
4233 if test "$srcdir" = "."; then
4234 if test "$with_target_subdir" != "."; then
4235 multi_basedir="$srcdir/$with_multisrctop../.."
4236 else
4237 multi_basedir="$srcdir/$with_multisrctop.."
4238 fi
4239 else
4240 multi_basedir="$srcdir/.."
4241 fi
4242
4243
4244 # Even if the default multilib is not a cross compilation,
4245 # it may be that some of the other multilibs are.
4246 if test $cross_compiling = no && test $multilib = yes \
4247 && test "x${with_multisubdir}" != x ; then
4248 cross_compiling=maybe
4249 fi
4250
4251 ac_config_commands="$ac_config_commands default-1"
4252
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4260 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4261 # On Suns, sometimes $CPP names a directory.
4262 if test -n "$CPP" && test -d "$CPP"; then
4263 CPP=
4264 fi
4265 if test -z "$CPP"; then
4266 if test "${ac_cv_prog_CPP+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 # Double quotes because CPP needs to be expanded
4270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4271 do
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4274 do
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #ifdef __STDC__
4284 # include <limits.h>
4285 #else
4286 # include <assert.h>
4287 #endif
4288 Syntax error
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291
4292 else
4293 # Broken: fails on valid input.
4294 continue
4295 fi
4296 rm -f conftest.err conftest.$ac_ext
4297
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4303 _ACEOF
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4305 # Broken: success on invalid input.
4306 continue
4307 else
4308 # Passes both tests.
4309 ac_preproc_ok=:
4310 break
4311 fi
4312 rm -f conftest.err conftest.$ac_ext
4313
4314 done
4315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316 rm -f conftest.err conftest.$ac_ext
4317 if $ac_preproc_ok; then :
4318 break
4319 fi
4320
4321 done
4322 ac_cv_prog_CPP=$CPP
4323
4324 fi
4325 CPP=$ac_cv_prog_CPP
4326 else
4327 ac_cv_prog_CPP=$CPP
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4330 $as_echo "$CPP" >&6; }
4331 ac_preproc_ok=false
4332 for ac_c_preproc_warn_flag in '' yes
4333 do
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347 Syntax error
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350
4351 else
4352 # Broken: fails on valid input.
4353 continue
4354 fi
4355 rm -f conftest.err conftest.$ac_ext
4356
4357 # OK, works on sane cases. Now check whether nonexistent headers
4358 # can be detected and how.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4362 _ACEOF
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364 # Broken: success on invalid input.
4365 continue
4366 else
4367 # Passes both tests.
4368 ac_preproc_ok=:
4369 break
4370 fi
4371 rm -f conftest.err conftest.$ac_ext
4372
4373 done
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then :
4377
4378 else
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4382 See \`config.log' for more details." "$LINENO" 5; }
4383 fi
4384
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394 if test "${ac_cv_path_GREP+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -z "$GREP"; then
4398 ac_path_GREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in grep ggrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4409 # Check for GNU ac_path_GREP and select it if it is found.
4410 # Check for GNU $ac_path_GREP
4411 case `"$ac_path_GREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4414 *)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'GREP' >> "conftest.nl"
4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_GREP="$ac_path_GREP"
4429 ac_path_GREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437 $ac_path_GREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_GREP"; then
4443 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445 else
4446 ac_cv_path_GREP=$GREP
4447 fi
4448
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4451 $as_echo "$ac_cv_path_GREP" >&6; }
4452 GREP="$ac_cv_path_GREP"
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4456 $as_echo_n "checking for egrep... " >&6; }
4457 if test "${ac_cv_path_EGREP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4461 then ac_cv_path_EGREP="$GREP -E"
4462 else
4463 if test -z "$EGREP"; then
4464 ac_path_EGREP_found=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_prog in egrep; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4475 # Check for GNU ac_path_EGREP and select it if it is found.
4476 # Check for GNU $ac_path_EGREP
4477 case `"$ac_path_EGREP" --version 2>&1` in
4478 *GNU*)
4479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4480 *)
4481 ac_count=0
4482 $as_echo_n 0123456789 >"conftest.in"
4483 while :
4484 do
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 $as_echo 'EGREP' >> "conftest.nl"
4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 as_fn_arith $ac_count + 1 && ac_count=$as_val
4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_EGREP="$ac_path_EGREP"
4495 ac_path_EGREP_max=$ac_count
4496 fi
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4499 done
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501 esac
4502
4503 $ac_path_EGREP_found && break 3
4504 done
4505 done
4506 done
4507 IFS=$as_save_IFS
4508 if test -z "$ac_cv_path_EGREP"; then
4509 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4510 fi
4511 else
4512 ac_cv_path_EGREP=$EGREP
4513 fi
4514
4515 fi
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4518 $as_echo "$ac_cv_path_EGREP" >&6; }
4519 EGREP="$ac_cv_path_EGREP"
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4523 $as_echo_n "checking for ANSI C header files... " >&6; }
4524 if test "${ac_cv_header_stdc+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <stdlib.h>
4530 #include <stdarg.h>
4531 #include <string.h>
4532 #include <float.h>
4533
4534 int
4535 main ()
4536 {
4537
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_header_stdc=yes
4544 else
4545 ac_cv_header_stdc=no
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548
4549 if test $ac_cv_header_stdc = yes; then
4550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #include <string.h>
4554
4555 _ACEOF
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 $EGREP "memchr" >/dev/null 2>&1; then :
4558
4559 else
4560 ac_cv_header_stdc=no
4561 fi
4562 rm -f conftest*
4563
4564 fi
4565
4566 if test $ac_cv_header_stdc = yes; then
4567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <stdlib.h>
4571
4572 _ACEOF
4573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 $EGREP "free" >/dev/null 2>&1; then :
4575
4576 else
4577 ac_cv_header_stdc=no
4578 fi
4579 rm -f conftest*
4580
4581 fi
4582
4583 if test $ac_cv_header_stdc = yes; then
4584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4585 if test "$cross_compiling" = yes; then :
4586 :
4587 else
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #include <ctype.h>
4591 #include <stdlib.h>
4592 #if ((' ' & 0x0FF) == 0x020)
4593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4595 #else
4596 # define ISLOWER(c) \
4597 (('a' <= (c) && (c) <= 'i') \
4598 || ('j' <= (c) && (c) <= 'r') \
4599 || ('s' <= (c) && (c) <= 'z'))
4600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4601 #endif
4602
4603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4604 int
4605 main ()
4606 {
4607 int i;
4608 for (i = 0; i < 256; i++)
4609 if (XOR (islower (i), ISLOWER (i))
4610 || toupper (i) != TOUPPER (i))
4611 return 2;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_run "$LINENO"; then :
4616
4617 else
4618 ac_cv_header_stdc=no
4619 fi
4620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4621 conftest.$ac_objext conftest.beam conftest.$ac_ext
4622 fi
4623
4624 fi
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4627 $as_echo "$ac_cv_header_stdc" >&6; }
4628 if test $ac_cv_header_stdc = yes; then
4629
4630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4631
4632 fi
4633
4634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4636 inttypes.h stdint.h unistd.h
4637 do :
4638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4639 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4640 "
4641 eval as_val=\$$as_ac_Header
4642 if test "x$as_val" = x""yes; then :
4643 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF
4646
4647 fi
4648
4649 done
4650
4651
4652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4653 # for constant arguments. Useless!
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4655 $as_echo_n "checking for working alloca.h... " >&6; }
4656 if test "${ac_cv_working_alloca_h+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #include <alloca.h>
4662 int
4663 main ()
4664 {
4665 char *p = (char *) alloca (2 * sizeof (int));
4666 if (p) return 0;
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_link "$LINENO"; then :
4672 ac_cv_working_alloca_h=yes
4673 else
4674 ac_cv_working_alloca_h=no
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext \
4677 conftest$ac_exeext conftest.$ac_ext
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4680 $as_echo "$ac_cv_working_alloca_h" >&6; }
4681 if test $ac_cv_working_alloca_h = yes; then
4682
4683 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4684
4685 fi
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4688 $as_echo_n "checking for alloca... " >&6; }
4689 if test "${ac_cv_func_alloca_works+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #ifdef __GNUC__
4695 # define alloca __builtin_alloca
4696 #else
4697 # ifdef _MSC_VER
4698 # include <malloc.h>
4699 # define alloca _alloca
4700 # else
4701 # ifdef HAVE_ALLOCA_H
4702 # include <alloca.h>
4703 # else
4704 # ifdef _AIX
4705 #pragma alloca
4706 # else
4707 # ifndef alloca /* predefined by HP cc +Olibcalls */
4708 char *alloca ();
4709 # endif
4710 # endif
4711 # endif
4712 # endif
4713 #endif
4714
4715 int
4716 main ()
4717 {
4718 char *p = (char *) alloca (1);
4719 if (p) return 0;
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_link "$LINENO"; then :
4725 ac_cv_func_alloca_works=yes
4726 else
4727 ac_cv_func_alloca_works=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4733 $as_echo "$ac_cv_func_alloca_works" >&6; }
4734
4735 if test $ac_cv_func_alloca_works = yes; then
4736
4737 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4738
4739 else
4740 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4741 # that cause trouble. Some versions do not even contain alloca or
4742 # contain a buggy version. If you still want to use their alloca,
4743 # use ar to extract alloca.o from them instead of compiling alloca.c.
4744
4745 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4746
4747 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4751 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4752 if test "${ac_cv_os_cray+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 #if defined CRAY && ! defined CRAY2
4758 webecray
4759 #else
4760 wenotbecray
4761 #endif
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "webecray" >/dev/null 2>&1; then :
4766 ac_cv_os_cray=yes
4767 else
4768 ac_cv_os_cray=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4774 $as_echo "$ac_cv_os_cray" >&6; }
4775 if test $ac_cv_os_cray = yes; then
4776 for ac_func in _getb67 GETB67 getb67; do
4777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4779 eval as_val=\$$as_ac_var
4780 if test "x$as_val" = x""yes; then :
4781
4782 cat >>confdefs.h <<_ACEOF
4783 #define CRAY_STACKSEG_END $ac_func
4784 _ACEOF
4785
4786 break
4787 fi
4788
4789 done
4790 fi
4791
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4793 $as_echo_n "checking stack direction for C alloca... " >&6; }
4794 if test "${ac_cv_c_stack_direction+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test "$cross_compiling" = yes; then :
4798 ac_cv_c_stack_direction=0
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 $ac_includes_default
4803 int
4804 find_stack_direction ()
4805 {
4806 static char *addr = 0;
4807 auto char dummy;
4808 if (addr == 0)
4809 {
4810 addr = &dummy;
4811 return find_stack_direction ();
4812 }
4813 else
4814 return (&dummy > addr) ? 1 : -1;
4815 }
4816
4817 int
4818 main ()
4819 {
4820 return find_stack_direction () < 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_run "$LINENO"; then :
4824 ac_cv_c_stack_direction=1
4825 else
4826 ac_cv_c_stack_direction=-1
4827 fi
4828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4829 conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 fi
4831
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4834 $as_echo "$ac_cv_c_stack_direction" >&6; }
4835 cat >>confdefs.h <<_ACEOF
4836 #define STACK_DIRECTION $ac_cv_c_stack_direction
4837 _ACEOF
4838
4839
4840 fi
4841
4842
4843 # Get target configury.
4844 . ${srcdir}/configure.tgt
4845 if test -n "$UNSUPPORTED"; then
4846 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
4847 fi
4848
4849 if test "${multilib}" = "yes"; then
4850 multilib_arg="--enable-multilib"
4851 else
4852 multilib_arg=
4853 fi
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4856 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4857 # Check whether --enable-version-specific-runtime-libs was given.
4858 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4859 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4860 yes) enable_version_specific_runtime_libs=yes ;;
4861 no) enable_version_specific_runtime_libs=no ;;
4862 *) as_fn_error "Unknown argument to enable/disable version-specific libs
4863 " "$LINENO" 5;;
4864 esac
4865 else
4866 enable_version_specific_runtime_libs=no
4867 fi
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4870 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4871
4872
4873 # Calculate toolexeclibdir
4874 # Also toolexecdir, though it's only used in toolexeclibdir
4875 case ${enable_version_specific_runtime_libs} in
4876 yes)
4877 # Need the gcc compiler version to know where to install libraries
4878 # and header files if --enable-version-specific-runtime-libs option
4879 # is selected.
4880 toolexecdir='$(libdir)/gcc/$(target_alias)'
4881 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4882 ;;
4883 no)
4884 if test -n "$with_cross_host" &&
4885 test x"$with_cross_host" != x"no"; then
4886 # Install a library built with a cross compiler in tooldir, not libdir.
4887 toolexecdir='$(exec_prefix)/$(target_alias)'
4888 toolexeclibdir='$(toolexecdir)/lib'
4889 else
4890 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4891 toolexeclibdir='$(libdir)'
4892 fi
4893 multi_os_directory=`$CC -print-multi-os-directory`
4894 case $multi_os_directory in
4895 .) ;; # Avoid trailing /.
4896 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4897 esac
4898 ;;
4899 esac
4900
4901 # Set config_dir based on the target. config_dir specifies where to get
4902 # target-specific files. The generic implementation is incomplete, but
4903 # contains information on what's needed
4904 case "${target}" in
4905
4906 x86_64-*-*)
4907 config_dir="x86"
4908 ;;
4909
4910 i?86-*-*)
4911 config_dir="x86"
4912 ;;
4913
4914 *)
4915 config_dir="generic"
4916 ;;
4917
4918 esac
4919
4920
4921 # We have linker scripts for appropriate operating systems
4922 linux_linker_script=no
4923 case "${host}" in
4924 *-*-linux*)
4925 linux_linker_script=yes
4926 ;;
4927 esac
4928 if test "$linux_linker_script" = "yes"; then
4929 LINUX_LINKER_SCRIPT_TRUE=
4930 LINUX_LINKER_SCRIPT_FALSE='#'
4931 else
4932 LINUX_LINKER_SCRIPT_TRUE='#'
4933 LINUX_LINKER_SCRIPT_FALSE=
4934 fi
4935
4936
4937 mac_linker_script=no
4938 case "${host}" in
4939 *-*-apple*)
4940 mac_linker_script=yes
4941 ;;
4942 esac
4943 if test "$mac_linker_script" = "yes"; then
4944 MAC_LINKER_SCRIPT_TRUE=
4945 MAC_LINKER_SCRIPT_FALSE='#'
4946 else
4947 MAC_LINKER_SCRIPT_TRUE='#'
4948 MAC_LINKER_SCRIPT_FALSE=
4949 fi
4950
4951
4952 case `pwd` in
4953 *\ * | *\ *)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4955 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4956 esac
4957
4958
4959
4960 macro_version='2.2.7a'
4961 macro_revision='1.3134'
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 ltmain="$ac_aux_dir/ltmain.sh"
4976
4977 # Backslashify metacharacters that are still active within
4978 # double-quoted strings.
4979 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4980
4981 # Same as above, but do not quote variable references.
4982 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4983
4984 # Sed substitution to delay expansion of an escaped shell variable in a
4985 # double_quote_subst'ed string.
4986 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4987
4988 # Sed substitution to delay expansion of an escaped single quote.
4989 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4990
4991 # Sed substitution to avoid accidental globbing in evaled expressions
4992 no_glob_subst='s/\*/\\\*/g'
4993
4994 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4999 $as_echo_n "checking how to print strings... " >&6; }
5000 # Test print first, because it will be a builtin if present.
5001 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5003 ECHO='print -r --'
5004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5005 ECHO='printf %s\n'
5006 else
5007 # Use this function as a fallback that always works.
5008 func_fallback_echo ()
5009 {
5010 eval 'cat <<_LTECHO_EOF
5011 $1
5012 _LTECHO_EOF'
5013 }
5014 ECHO='func_fallback_echo'
5015 fi
5016
5017 # func_echo_all arg...
5018 # Invoke $ECHO with all args, space-separated.
5019 func_echo_all ()
5020 {
5021 $ECHO ""
5022 }
5023
5024 case "$ECHO" in
5025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5026 $as_echo "printf" >&6; } ;;
5027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5028 $as_echo "print -r" >&6; } ;;
5029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5030 $as_echo "cat" >&6; } ;;
5031 esac
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5048 if test "${ac_cv_path_SED+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5052 for ac_i in 1 2 3 4 5 6 7; do
5053 ac_script="$ac_script$as_nl$ac_script"
5054 done
5055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5056 { ac_script=; unset ac_script;}
5057 if test -z "$SED"; then
5058 ac_path_SED_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_prog in sed gsed; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5068 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5069 # Check for GNU ac_path_SED and select it if it is found.
5070 # Check for GNU $ac_path_SED
5071 case `"$ac_path_SED" --version 2>&1` in
5072 *GNU*)
5073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5074 *)
5075 ac_count=0
5076 $as_echo_n 0123456789 >"conftest.in"
5077 while :
5078 do
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 $as_echo '' >> "conftest.nl"
5083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_SED_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_SED="$ac_path_SED"
5089 ac_path_SED_max=$ac_count
5090 fi
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5093 done
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095 esac
5096
5097 $ac_path_SED_found && break 3
5098 done
5099 done
5100 done
5101 IFS=$as_save_IFS
5102 if test -z "$ac_cv_path_SED"; then
5103 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5104 fi
5105 else
5106 ac_cv_path_SED=$SED
5107 fi
5108
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5111 $as_echo "$ac_cv_path_SED" >&6; }
5112 SED="$ac_cv_path_SED"
5113 rm -f conftest.sed
5114
5115 test -z "$SED" && SED=sed
5116 Xsed="$SED -e 1s/^X//"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5129 $as_echo_n "checking for fgrep... " >&6; }
5130 if test "${ac_cv_path_FGREP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5134 then ac_cv_path_FGREP="$GREP -F"
5135 else
5136 if test -z "$FGREP"; then
5137 ac_path_FGREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in fgrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5147 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5148 # Check for GNU ac_path_FGREP and select it if it is found.
5149 # Check for GNU $ac_path_FGREP
5150 case `"$ac_path_FGREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo 'FGREP' >> "conftest.nl"
5162 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_FGREP="$ac_path_FGREP"
5168 ac_path_FGREP_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_FGREP_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_FGREP"; then
5182 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_FGREP=$FGREP
5186 fi
5187
5188 fi
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5191 $as_echo "$ac_cv_path_FGREP" >&6; }
5192 FGREP="$ac_cv_path_FGREP"
5193
5194
5195 test -z "$GREP" && GREP=grep
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 # Check whether --with-gnu-ld was given.
5216 if test "${with_gnu_ld+set}" = set; then :
5217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5218 else
5219 with_gnu_ld=no
5220 fi
5221
5222 ac_prog=ld
5223 if test "$GCC" = yes; then
5224 # Check if gcc -print-prog-name=ld gives a path.
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5226 $as_echo_n "checking for ld used by $CC... " >&6; }
5227 case $host in
5228 *-*-mingw*)
5229 # gcc leaves a trailing carriage return which upsets mingw
5230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5231 *)
5232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5233 esac
5234 case $ac_prog in
5235 # Accept absolute paths.
5236 [\\/]* | ?:[\\/]*)
5237 re_direlt='/[^/][^/]*/\.\./'
5238 # Canonicalize the pathname of ld
5239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5242 done
5243 test -z "$LD" && LD="$ac_prog"
5244 ;;
5245 "")
5246 # If it fails, then pretend we aren't using GCC.
5247 ac_prog=ld
5248 ;;
5249 *)
5250 # If it is relative, then search for the first ld in PATH.
5251 with_gnu_ld=unknown
5252 ;;
5253 esac
5254 elif test "$with_gnu_ld" = yes; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5256 $as_echo_n "checking for GNU ld... " >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5259 $as_echo_n "checking for non-GNU ld... " >&6; }
5260 fi
5261 if test "${lt_cv_path_LD+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -z "$LD"; then
5265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5266 for ac_dir in $PATH; do
5267 IFS="$lt_save_ifs"
5268 test -z "$ac_dir" && ac_dir=.
5269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5270 lt_cv_path_LD="$ac_dir/$ac_prog"
5271 # Check to see if the program is GNU ld. I'd rather use --version,
5272 # but apparently some variants of GNU ld only accept -v.
5273 # Break only if it was the GNU/non-GNU ld that we prefer.
5274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5275 *GNU* | *'with BFD'*)
5276 test "$with_gnu_ld" != no && break
5277 ;;
5278 *)
5279 test "$with_gnu_ld" != yes && break
5280 ;;
5281 esac
5282 fi
5283 done
5284 IFS="$lt_save_ifs"
5285 else
5286 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5287 fi
5288 fi
5289
5290 LD="$lt_cv_path_LD"
5291 if test -n "$LD"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5293 $as_echo "$LD" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5301 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5305 case `$LD -v 2>&1 </dev/null` in
5306 *GNU* | *'with BFD'*)
5307 lt_cv_prog_gnu_ld=yes
5308 ;;
5309 *)
5310 lt_cv_prog_gnu_ld=no
5311 ;;
5312 esac
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5316 with_gnu_ld=$lt_cv_prog_gnu_ld
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5327 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5328 if test "${lt_cv_path_NM+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$NM"; then
5332 # Let the user override the test.
5333 lt_cv_path_NM="$NM"
5334 else
5335 lt_nm_to_check="${ac_tool_prefix}nm"
5336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5337 lt_nm_to_check="$lt_nm_to_check nm"
5338 fi
5339 for lt_tmp_nm in $lt_nm_to_check; do
5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5342 IFS="$lt_save_ifs"
5343 test -z "$ac_dir" && ac_dir=.
5344 tmp_nm="$ac_dir/$lt_tmp_nm"
5345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5346 # Check to see if the nm accepts a BSD-compat flag.
5347 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5348 # nm: unknown option "B" ignored
5349 # Tru64's nm complains that /dev/null is an invalid object file
5350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5351 */dev/null* | *'Invalid file or object type'*)
5352 lt_cv_path_NM="$tmp_nm -B"
5353 break
5354 ;;
5355 *)
5356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5357 */dev/null*)
5358 lt_cv_path_NM="$tmp_nm -p"
5359 break
5360 ;;
5361 *)
5362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5363 continue # so that we can try to find one that supports BSD flags
5364 ;;
5365 esac
5366 ;;
5367 esac
5368 fi
5369 done
5370 IFS="$lt_save_ifs"
5371 done
5372 : ${lt_cv_path_NM=no}
5373 fi
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5376 $as_echo "$lt_cv_path_NM" >&6; }
5377 if test "$lt_cv_path_NM" != "no"; then
5378 NM="$lt_cv_path_NM"
5379 else
5380 # Didn't find any BSD compatible name lister, look for dumpbin.
5381 if test -n "$DUMPBIN"; then :
5382 # Let the user override the test.
5383 else
5384 if test -n "$ac_tool_prefix"; then
5385 for ac_prog in dumpbin "link -dump"
5386 do
5387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$DUMPBIN"; then
5395 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408 done
5409 done
5410 IFS=$as_save_IFS
5411
5412 fi
5413 fi
5414 DUMPBIN=$ac_cv_prog_DUMPBIN
5415 if test -n "$DUMPBIN"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5417 $as_echo "$DUMPBIN" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423
5424 test -n "$DUMPBIN" && break
5425 done
5426 fi
5427 if test -z "$DUMPBIN"; then
5428 ac_ct_DUMPBIN=$DUMPBIN
5429 for ac_prog in dumpbin "link -dump"
5430 do
5431 # Extract the first word of "$ac_prog", so it can be a program name with args.
5432 set dummy $ac_prog; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$ac_ct_DUMPBIN"; then
5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5459 if test -n "$ac_ct_DUMPBIN"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5461 $as_echo "$ac_ct_DUMPBIN" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 test -n "$ac_ct_DUMPBIN" && break
5469 done
5470
5471 if test "x$ac_ct_DUMPBIN" = x; then
5472 DUMPBIN=":"
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5479 esac
5480 DUMPBIN=$ac_ct_DUMPBIN
5481 fi
5482 fi
5483
5484 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5485 *COFF*)
5486 DUMPBIN="$DUMPBIN -symbols"
5487 ;;
5488 *)
5489 DUMPBIN=:
5490 ;;
5491 esac
5492 fi
5493
5494 if test "$DUMPBIN" != ":"; then
5495 NM="$DUMPBIN"
5496 fi
5497 fi
5498 test -z "$NM" && NM=nm
5499
5500
5501
5502
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5506 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5507 if test "${lt_cv_nm_interface+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 lt_cv_nm_interface="BSD nm"
5511 echo "int some_variable = 0;" > conftest.$ac_ext
5512 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5513 (eval "$ac_compile" 2>conftest.err)
5514 cat conftest.err >&5
5515 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5516 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5517 cat conftest.err >&5
5518 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5519 cat conftest.out >&5
5520 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5521 lt_cv_nm_interface="MS dumpbin"
5522 fi
5523 rm -f conftest*
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5526 $as_echo "$lt_cv_nm_interface" >&6; }
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5529 $as_echo_n "checking whether ln -s works... " >&6; }
5530 LN_S=$as_ln_s
5531 if test "$LN_S" = "ln -s"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5536 $as_echo "no, using $LN_S" >&6; }
5537 fi
5538
5539 # find the maximum length of command line arguments
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5541 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5542 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 i=0
5546 teststring="ABCD"
5547
5548 case $build_os in
5549 msdosdjgpp*)
5550 # On DJGPP, this test can blow up pretty badly due to problems in libc
5551 # (any single argument exceeding 2000 bytes causes a buffer overrun
5552 # during glob expansion). Even if it were fixed, the result of this
5553 # check would be larger than it should be.
5554 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5555 ;;
5556
5557 gnu*)
5558 # Under GNU Hurd, this test is not required because there is
5559 # no limit to the length of command line arguments.
5560 # Libtool will interpret -1 as no limit whatsoever
5561 lt_cv_sys_max_cmd_len=-1;
5562 ;;
5563
5564 cygwin* | mingw* | cegcc*)
5565 # On Win9x/ME, this test blows up -- it succeeds, but takes
5566 # about 5 minutes as the teststring grows exponentially.
5567 # Worse, since 9x/ME are not pre-emptively multitasking,
5568 # you end up with a "frozen" computer, even though with patience
5569 # the test eventually succeeds (with a max line length of 256k).
5570 # Instead, let's just punt: use the minimum linelength reported by
5571 # all of the supported platforms: 8192 (on NT/2K/XP).
5572 lt_cv_sys_max_cmd_len=8192;
5573 ;;
5574
5575 mint*)
5576 # On MiNT this can take a long time and run out of memory.
5577 lt_cv_sys_max_cmd_len=8192;
5578 ;;
5579
5580 amigaos*)
5581 # On AmigaOS with pdksh, this test takes hours, literally.
5582 # So we just punt and use a minimum line length of 8192.
5583 lt_cv_sys_max_cmd_len=8192;
5584 ;;
5585
5586 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5587 # This has been around since 386BSD, at least. Likely further.
5588 if test -x /sbin/sysctl; then
5589 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5590 elif test -x /usr/sbin/sysctl; then
5591 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5592 else
5593 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5594 fi
5595 # And add a safety zone
5596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5598 ;;
5599
5600 interix*)
5601 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5602 lt_cv_sys_max_cmd_len=196608
5603 ;;
5604
5605 osf*)
5606 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5607 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5608 # nice to cause kernel panics so lets avoid the loop below.
5609 # First set a reasonable default.
5610 lt_cv_sys_max_cmd_len=16384
5611 #
5612 if test -x /sbin/sysconfig; then
5613 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5614 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5615 esac
5616 fi
5617 ;;
5618 sco3.2v5*)
5619 lt_cv_sys_max_cmd_len=102400
5620 ;;
5621 sysv5* | sco5v6* | sysv4.2uw2*)
5622 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5623 if test -n "$kargmax"; then
5624 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5625 else
5626 lt_cv_sys_max_cmd_len=32768
5627 fi
5628 ;;
5629 *)
5630 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5631 if test -n "$lt_cv_sys_max_cmd_len"; then
5632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5634 else
5635 # Make teststring a little bigger before we do anything with it.
5636 # a 1K string should be a reasonable start.
5637 for i in 1 2 3 4 5 6 7 8 ; do
5638 teststring=$teststring$teststring
5639 done
5640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5641 # If test is not a shell built-in, we'll probably end up computing a
5642 # maximum length that is only half of the actual maximum length, but
5643 # we can't tell.
5644 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5645 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5646 test $i != 17 # 1/2 MB should be enough
5647 do
5648 i=`expr $i + 1`
5649 teststring=$teststring$teststring
5650 done
5651 # Only check the string length outside the loop.
5652 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5653 teststring=
5654 # Add a significant safety factor because C++ compilers can tack on
5655 # massive amounts of additional arguments before passing them to the
5656 # linker. It appears as though 1/2 is a usable value.
5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5658 fi
5659 ;;
5660 esac
5661
5662 fi
5663
5664 if test -n $lt_cv_sys_max_cmd_len ; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5666 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5669 $as_echo "none" >&6; }
5670 fi
5671 max_cmd_len=$lt_cv_sys_max_cmd_len
5672
5673
5674
5675
5676
5677
5678 : ${CP="cp -f"}
5679 : ${MV="mv -f"}
5680 : ${RM="rm -f"}
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5683 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5684 # Try some XSI features
5685 xsi_shell=no
5686 ( _lt_dummy="a/b/c"
5687 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5688 = c,a/b,, \
5689 && eval 'test $(( 1 + 1 )) -eq 2 \
5690 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5691 && xsi_shell=yes
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5693 $as_echo "$xsi_shell" >&6; }
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5697 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5698 lt_shell_append=no
5699 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5700 >/dev/null 2>&1 \
5701 && lt_shell_append=yes
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5703 $as_echo "$lt_shell_append" >&6; }
5704
5705
5706 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5707 lt_unset=unset
5708 else
5709 lt_unset=false
5710 fi
5711
5712
5713
5714
5715
5716 # test EBCDIC or ASCII
5717 case `echo X|tr X '\101'` in
5718 A) # ASCII based system
5719 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5720 lt_SP2NL='tr \040 \012'
5721 lt_NL2SP='tr \015\012 \040\040'
5722 ;;
5723 *) # EBCDIC based system
5724 lt_SP2NL='tr \100 \n'
5725 lt_NL2SP='tr \r\n \100\100'
5726 ;;
5727 esac
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5738 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5739 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 lt_cv_ld_reload_flag='-r'
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5745 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5746 reload_flag=$lt_cv_ld_reload_flag
5747 case $reload_flag in
5748 "" | " "*) ;;
5749 *) reload_flag=" $reload_flag" ;;
5750 esac
5751 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5752 case $host_os in
5753 darwin*)
5754 if test "$GCC" = yes; then
5755 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5756 else
5757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5758 fi
5759 ;;
5760 esac
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 if test -n "$ac_tool_prefix"; then
5771 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if test -n "$OBJDUMP"; then
5779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 OBJDUMP=$ac_cv_prog_OBJDUMP
5799 if test -n "$OBJDUMP"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5801 $as_echo "$OBJDUMP" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806
5807
5808 fi
5809 if test -z "$ac_cv_prog_OBJDUMP"; then
5810 ac_ct_OBJDUMP=$OBJDUMP
5811 # Extract the first word of "objdump", so it can be a program name with args.
5812 set dummy objdump; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$ac_ct_OBJDUMP"; then
5819 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5839 if test -n "$ac_ct_OBJDUMP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5841 $as_echo "$ac_ct_OBJDUMP" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847 if test "x$ac_ct_OBJDUMP" = x; then
5848 OBJDUMP="false"
5849 else
5850 case $cross_compiling:$ac_tool_warned in
5851 yes:)
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854 ac_tool_warned=yes ;;
5855 esac
5856 OBJDUMP=$ac_ct_OBJDUMP
5857 fi
5858 else
5859 OBJDUMP="$ac_cv_prog_OBJDUMP"
5860 fi
5861
5862 test -z "$OBJDUMP" && OBJDUMP=objdump
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5873 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5874 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 lt_cv_file_magic_cmd='$MAGIC_CMD'
5878 lt_cv_file_magic_test_file=
5879 lt_cv_deplibs_check_method='unknown'
5880 # Need to set the preceding variable on all platforms that support
5881 # interlibrary dependencies.
5882 # 'none' -- dependencies not supported.
5883 # `unknown' -- same as none, but documents that we really don't know.
5884 # 'pass_all' -- all dependencies passed with no checks.
5885 # 'test_compile' -- check by making test program.
5886 # 'file_magic [[regex]]' -- check by looking for files in library path
5887 # which responds to the $file_magic_cmd with a given extended regex.
5888 # If you have `file' or equivalent on your system and you're not sure
5889 # whether `pass_all' will *always* work, you probably want this one.
5890
5891 case $host_os in
5892 aix[4-9]*)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895
5896 beos*)
5897 lt_cv_deplibs_check_method=pass_all
5898 ;;
5899
5900 bsdi[45]*)
5901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5902 lt_cv_file_magic_cmd='/usr/bin/file -L'
5903 lt_cv_file_magic_test_file=/shlib/libc.so
5904 ;;
5905
5906 cygwin*)
5907 # func_win32_libid is a shell function defined in ltmain.sh
5908 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5909 lt_cv_file_magic_cmd='func_win32_libid'
5910 ;;
5911
5912 mingw* | pw32*)
5913 # Base MSYS/MinGW do not provide the 'file' command needed by
5914 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5915 # unless we find 'file', for example because we are cross-compiling.
5916 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5917 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5919 lt_cv_file_magic_cmd='func_win32_libid'
5920 else
5921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5922 lt_cv_file_magic_cmd='$OBJDUMP -f'
5923 fi
5924 ;;
5925
5926 cegcc*)
5927 # use the weaker test based on 'objdump'. See mingw*.
5928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5929 lt_cv_file_magic_cmd='$OBJDUMP -f'
5930 ;;
5931
5932 darwin* | rhapsody*)
5933 lt_cv_deplibs_check_method=pass_all
5934 ;;
5935
5936 freebsd* | dragonfly*)
5937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5938 case $host_cpu in
5939 i*86 )
5940 # Not sure whether the presence of OpenBSD here was a mistake.
5941 # Let's accept both of them until this is cleared up.
5942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5943 lt_cv_file_magic_cmd=/usr/bin/file
5944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5945 ;;
5946 esac
5947 else
5948 lt_cv_deplibs_check_method=pass_all
5949 fi
5950 ;;
5951
5952 gnu*)
5953 lt_cv_deplibs_check_method=pass_all
5954 ;;
5955
5956 haiku*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 hpux10.20* | hpux11*)
5961 lt_cv_file_magic_cmd=/usr/bin/file
5962 case $host_cpu in
5963 ia64*)
5964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5966 ;;
5967 hppa*64*)
5968 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]'
5969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5970 ;;
5971 *)
5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5974 ;;
5975 esac
5976 ;;
5977
5978 interix[3-9]*)
5979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5981 ;;
5982
5983 irix5* | irix6* | nonstopux*)
5984 case $LD in
5985 *-32|*"-32 ") libmagic=32-bit;;
5986 *-n32|*"-n32 ") libmagic=N32;;
5987 *-64|*"-64 ") libmagic=64-bit;;
5988 *) libmagic=never-match;;
5989 esac
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993 # This must be Linux ELF.
5994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997
5998 netbsd*)
5999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001 else
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6003 fi
6004 ;;
6005
6006 newos6*)
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6008 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6010 ;;
6011
6012 *nto* | *qnx*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 openbsd*)
6017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6019 else
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6021 fi
6022 ;;
6023
6024 osf3* | osf4* | osf5*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028 rdos*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 solaris*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 sysv4 | sysv4.3*)
6041 case $host_vendor in
6042 motorola)
6043 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]'
6044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6045 ;;
6046 ncr)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049 sequent)
6050 lt_cv_file_magic_cmd='/bin/file'
6051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6052 ;;
6053 sni)
6054 lt_cv_file_magic_cmd='/bin/file'
6055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6056 lt_cv_file_magic_test_file=/lib/libc.so
6057 ;;
6058 siemens)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061 pc)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064 esac
6065 ;;
6066
6067 tpf*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070 esac
6071
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6074 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6075 file_magic_cmd=$lt_cv_file_magic_cmd
6076 deplibs_check_method=$lt_cv_deplibs_check_method
6077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}ar; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_AR+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$AR"; then
6099 ac_cv_prog_AR="$AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_AR="${ac_tool_prefix}ar"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 AR=$ac_cv_prog_AR
6119 if test -n "$AR"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6121 $as_echo "$AR" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128 fi
6129 if test -z "$ac_cv_prog_AR"; then
6130 ac_ct_AR=$AR
6131 # Extract the first word of "ar", so it can be a program name with args.
6132 set dummy ar; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_AR="ar"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6159 if test -n "$ac_ct_AR"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6161 $as_echo "$ac_ct_AR" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167 if test "x$ac_ct_AR" = x; then
6168 AR="false"
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176 AR=$ac_ct_AR
6177 fi
6178 else
6179 AR="$ac_cv_prog_AR"
6180 fi
6181
6182 test -z "$AR" && AR=ar
6183 test -z "$AR_FLAGS" && AR_FLAGS=cru
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}strip; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_STRIP+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$STRIP"; then
6204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 STRIP=$ac_cv_prog_STRIP
6224 if test -n "$STRIP"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6226 $as_echo "$STRIP" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_STRIP"; then
6235 ac_ct_STRIP=$STRIP
6236 # Extract the first word of "strip", so it can be a program name with args.
6237 set dummy strip; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$ac_ct_STRIP"; then
6244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_ac_ct_STRIP="strip"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6264 if test -n "$ac_ct_STRIP"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6266 $as_echo "$ac_ct_STRIP" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272 if test "x$ac_ct_STRIP" = x; then
6273 STRIP=":"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281 STRIP=$ac_ct_STRIP
6282 fi
6283 else
6284 STRIP="$ac_cv_prog_STRIP"
6285 fi
6286
6287 test -z "$STRIP" && STRIP=:
6288
6289
6290
6291
6292
6293
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$RANLIB"; then
6303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 RANLIB=$ac_cv_prog_RANLIB
6323 if test -n "$RANLIB"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6325 $as_echo "$RANLIB" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_RANLIB"; then
6334 ac_ct_RANLIB=$RANLIB
6335 # Extract the first word of "ranlib", so it can be a program name with args.
6336 set dummy ranlib; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$ac_ct_RANLIB"; then
6343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_prog_ac_ct_RANLIB="ranlib"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6363 if test -n "$ac_ct_RANLIB"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6365 $as_echo "$ac_ct_RANLIB" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371 if test "x$ac_ct_RANLIB" = x; then
6372 RANLIB=":"
6373 else
6374 case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380 RANLIB=$ac_ct_RANLIB
6381 fi
6382 else
6383 RANLIB="$ac_cv_prog_RANLIB"
6384 fi
6385
6386 test -z "$RANLIB" && RANLIB=:
6387
6388
6389
6390
6391
6392
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6397
6398 if test -n "$RANLIB"; then
6399 case $host_os in
6400 openbsd*)
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6402 ;;
6403 *)
6404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6405 ;;
6406 esac
6407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6408 fi
6409
6410 case $host_os in
6411 darwin*)
6412 lock_old_archive_extraction=yes ;;
6413 *)
6414 lock_old_archive_extraction=no ;;
6415 esac
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 # If no C compiler was specified, use CC.
6456 LTCC=${LTCC-"$CC"}
6457
6458 # If no C compiler flags were specified, use CFLAGS.
6459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6460
6461 # Allow CC to be a program name with arguments.
6462 compiler=$CC
6463
6464
6465 # Check for command to grab the raw symbol name followed by C symbol from nm.
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471
6472 # These are sane defaults that work on at least a few old systems.
6473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6474
6475 # Character class describing NM global symbol codes.
6476 symcode='[BCDEGRST]'
6477
6478 # Regexp to match symbols that can be accessed directly from C.
6479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6480
6481 # Define system-specific variables.
6482 case $host_os in
6483 aix*)
6484 symcode='[BCDT]'
6485 ;;
6486 cygwin* | mingw* | pw32* | cegcc*)
6487 symcode='[ABCDGISTW]'
6488 ;;
6489 hpux*)
6490 if test "$host_cpu" = ia64; then
6491 symcode='[ABCDEGRST]'
6492 fi
6493 ;;
6494 irix* | nonstopux*)
6495 symcode='[BCDEGRST]'
6496 ;;
6497 osf*)
6498 symcode='[BCDEGQRST]'
6499 ;;
6500 solaris*)
6501 symcode='[BDRT]'
6502 ;;
6503 sco3.2v5*)
6504 symcode='[DT]'
6505 ;;
6506 sysv4.2uw2*)
6507 symcode='[DT]'
6508 ;;
6509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6510 symcode='[ABDT]'
6511 ;;
6512 sysv4)
6513 symcode='[DFNSTU]'
6514 ;;
6515 esac
6516
6517 # If we're using GNU nm, then use its standard symbol codes.
6518 case `$NM -V 2>&1` in
6519 *GNU* | *'with BFD'*)
6520 symcode='[ABCDGIRSTW]' ;;
6521 esac
6522
6523 # Transform an extracted symbol line into a proper C declaration.
6524 # Some systems (esp. on ia64) link data and code symbols differently,
6525 # so use this general approach.
6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6527
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6530 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'"
6531
6532 # Handle CRLF in mingw tool chain
6533 opt_cr=
6534 case $build_os in
6535 mingw*)
6536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6537 ;;
6538 esac
6539
6540 # Try without a prefix underscore, then with it.
6541 for ac_symprfx in "" "_"; do
6542
6543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6544 symxfrm="\\1 $ac_symprfx\\2 \\2"
6545
6546 # Write the raw and C identifiers.
6547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6548 # Fake it for dumpbin and say T for any non-static function
6549 # and D for any global variable.
6550 # Also find C++ and __fastcall symbols from MSVC++,
6551 # which start with @ or ?.
6552 lt_cv_sys_global_symbol_pipe="$AWK '"\
6553 " {last_section=section; section=\$ 3};"\
6554 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6555 " \$ 0!~/External *\|/{next};"\
6556 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6557 " {if(hide[section]) next};"\
6558 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6559 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6560 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6561 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6562 " ' prfx=^$ac_symprfx"
6563 else
6564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6565 fi
6566
6567 # Check to see that the pipe works correctly.
6568 pipe_works=no
6569
6570 rm -f conftest*
6571 cat > conftest.$ac_ext <<_LT_EOF
6572 #ifdef __cplusplus
6573 extern "C" {
6574 #endif
6575 char nm_test_var;
6576 void nm_test_func(void);
6577 void nm_test_func(void){}
6578 #ifdef __cplusplus
6579 }
6580 #endif
6581 int main(){nm_test_var='a';nm_test_func();return(0);}
6582 _LT_EOF
6583
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 # Now try to grab the symbols.
6590 nlist=conftest.nm
6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6592 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6593 ac_status=$?
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; } && test -s "$nlist"; then
6596 # Try sorting and uniquifying the output.
6597 if sort "$nlist" | uniq > "$nlist"T; then
6598 mv -f "$nlist"T "$nlist"
6599 else
6600 rm -f "$nlist"T
6601 fi
6602
6603 # Make sure that we snagged all the symbols we need.
6604 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6605 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6606 cat <<_LT_EOF > conftest.$ac_ext
6607 #ifdef __cplusplus
6608 extern "C" {
6609 #endif
6610
6611 _LT_EOF
6612 # Now generate the symbol file.
6613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6614
6615 cat <<_LT_EOF >> conftest.$ac_ext
6616
6617 /* The mapping between symbol names and symbols. */
6618 const struct {
6619 const char *name;
6620 void *address;
6621 }
6622 lt__PROGRAM__LTX_preloaded_symbols[] =
6623 {
6624 { "@PROGRAM@", (void *) 0 },
6625 _LT_EOF
6626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6627 cat <<\_LT_EOF >> conftest.$ac_ext
6628 {0, (void *) 0}
6629 };
6630
6631 /* This works around a problem in FreeBSD linker */
6632 #ifdef FREEBSD_WORKAROUND
6633 static const void *lt_preloaded_setup() {
6634 return lt__PROGRAM__LTX_preloaded_symbols;
6635 }
6636 #endif
6637
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 _LT_EOF
6642 # Now try linking the two files.
6643 mv conftest.$ac_objext conftstm.$ac_objext
6644 lt_save_LIBS="$LIBS"
6645 lt_save_CFLAGS="$CFLAGS"
6646 LIBS="conftstm.$ac_objext"
6647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6649 (eval $ac_link) 2>&5
6650 ac_status=$?
6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6653 pipe_works=yes
6654 fi
6655 LIBS="$lt_save_LIBS"
6656 CFLAGS="$lt_save_CFLAGS"
6657 else
6658 echo "cannot find nm_test_func in $nlist" >&5
6659 fi
6660 else
6661 echo "cannot find nm_test_var in $nlist" >&5
6662 fi
6663 else
6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 fi
6666 else
6667 echo "$progname: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 fi
6670 rm -rf conftest* conftst*
6671
6672 # Do not use the global_symbol_pipe unless it works.
6673 if test "$pipe_works" = yes; then
6674 break
6675 else
6676 lt_cv_sys_global_symbol_pipe=
6677 fi
6678 done
6679
6680 fi
6681
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683 lt_cv_sys_global_symbol_to_cdecl=
6684 fi
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6687 $as_echo "failed" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6690 $as_echo "ok" >&6; }
6691 fi
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 # Check whether --enable-libtool-lock was given.
6715 if test "${enable_libtool_lock+set}" = set; then :
6716 enableval=$enable_libtool_lock;
6717 fi
6718
6719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6720
6721 # Some flags need to be propagated to the compiler or linker for good
6722 # libtool support.
6723 case $host in
6724 ia64-*-hpux*)
6725 # Find out which ABI we are using.
6726 echo 'int i;' > conftest.$ac_ext
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6728 (eval $ac_compile) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; }; then
6732 case `/usr/bin/file conftest.$ac_objext` in
6733 *ELF-32*)
6734 HPUX_IA64_MODE="32"
6735 ;;
6736 *ELF-64*)
6737 HPUX_IA64_MODE="64"
6738 ;;
6739 esac
6740 fi
6741 rm -rf conftest*
6742 ;;
6743 *-*-irix6*)
6744 # Find out which ABI we are using.
6745 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6747 (eval $ac_compile) 2>&5
6748 ac_status=$?
6749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6750 test $ac_status = 0; }; then
6751 if test "$lt_cv_prog_gnu_ld" = yes; then
6752 case `/usr/bin/file conftest.$ac_objext` in
6753 *32-bit*)
6754 LD="${LD-ld} -melf32bsmip"
6755 ;;
6756 *N32*)
6757 LD="${LD-ld} -melf32bmipn32"
6758 ;;
6759 *64-bit*)
6760 LD="${LD-ld} -melf64bmip"
6761 ;;
6762 esac
6763 else
6764 case `/usr/bin/file conftest.$ac_objext` in
6765 *32-bit*)
6766 LD="${LD-ld} -32"
6767 ;;
6768 *N32*)
6769 LD="${LD-ld} -n32"
6770 ;;
6771 *64-bit*)
6772 LD="${LD-ld} -64"
6773 ;;
6774 esac
6775 fi
6776 fi
6777 rm -rf conftest*
6778 ;;
6779
6780 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6781 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6782 # Find out which ABI we are using.
6783 echo 'int i;' > conftest.$ac_ext
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785 (eval $ac_compile) 2>&5
6786 ac_status=$?
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; }; then
6789 case `/usr/bin/file conftest.o` in
6790 *32-bit*)
6791 case $host in
6792 x86_64-*kfreebsd*-gnu)
6793 LD="${LD-ld} -m elf_i386_fbsd"
6794 ;;
6795 x86_64-*linux*)
6796 case `/usr/bin/file conftest.o` in
6797 *x86-64*)
6798 LD="${LD-ld} -m elf32_x86_64"
6799 ;;
6800 *)
6801 LD="${LD-ld} -m elf_i386"
6802 ;;
6803 esac
6804 ;;
6805 powerpc64le-*linux*)
6806 LD="${LD-ld} -m elf32lppclinux"
6807 ;;
6808 powerpc64-*linux*)
6809 LD="${LD-ld} -m elf32ppclinux"
6810 ;;
6811 s390x-*linux*)
6812 LD="${LD-ld} -m elf_s390"
6813 ;;
6814 sparc64-*linux*)
6815 LD="${LD-ld} -m elf32_sparc"
6816 ;;
6817 esac
6818 ;;
6819 *64-bit*)
6820 case $host in
6821 x86_64-*kfreebsd*-gnu)
6822 LD="${LD-ld} -m elf_x86_64_fbsd"
6823 ;;
6824 x86_64-*linux*)
6825 LD="${LD-ld} -m elf_x86_64"
6826 ;;
6827 powerpcle-*linux*)
6828 LD="${LD-ld} -m elf64lppc"
6829 ;;
6830 powerpc-*linux*)
6831 LD="${LD-ld} -m elf64ppc"
6832 ;;
6833 s390*-*linux*|s390*-*tpf*)
6834 LD="${LD-ld} -m elf64_s390"
6835 ;;
6836 sparc*-*linux*)
6837 LD="${LD-ld} -m elf64_sparc"
6838 ;;
6839 esac
6840 ;;
6841 esac
6842 fi
6843 rm -rf conftest*
6844 ;;
6845
6846 *-*-sco3.2v5*)
6847 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6848 SAVE_CFLAGS="$CFLAGS"
6849 CFLAGS="$CFLAGS -belf"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6851 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6852 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 ac_ext=c
6856 ac_cpp='$CPP $CPPFLAGS'
6857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863
6864 int
6865 main ()
6866 {
6867
6868 ;
6869 return 0;
6870 }
6871 _ACEOF
6872 if ac_fn_c_try_link "$LINENO"; then :
6873 lt_cv_cc_needs_belf=yes
6874 else
6875 lt_cv_cc_needs_belf=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
6879 ac_ext=c
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6884
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6887 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6890 CFLAGS="$SAVE_CFLAGS"
6891 fi
6892 ;;
6893 sparc*-*solaris*)
6894 # Find out which ABI we are using.
6895 echo 'int i;' > conftest.$ac_ext
6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897 (eval $ac_compile) 2>&5
6898 ac_status=$?
6899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900 test $ac_status = 0; }; then
6901 case `/usr/bin/file conftest.o` in
6902 *64-bit*)
6903 case $lt_cv_prog_gnu_ld in
6904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6905 *)
6906 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6907 LD="${LD-ld} -64"
6908 fi
6909 ;;
6910 esac
6911 ;;
6912 esac
6913 fi
6914 rm -rf conftest*
6915 ;;
6916 esac
6917
6918 need_locks="$enable_libtool_lock"
6919
6920
6921 case $host_os in
6922 rhapsody* | darwin*)
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$DSYMUTIL"; then
6932 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6952 if test -n "$DSYMUTIL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6954 $as_echo "$DSYMUTIL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960
6961 fi
6962 if test -z "$ac_cv_prog_DSYMUTIL"; then
6963 ac_ct_DSYMUTIL=$DSYMUTIL
6964 # Extract the first word of "dsymutil", so it can be a program name with args.
6965 set dummy dsymutil; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_DSYMUTIL"; then
6972 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6992 if test -n "$ac_ct_DSYMUTIL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6994 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000 if test "x$ac_ct_DSYMUTIL" = x; then
7001 DSYMUTIL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 DSYMUTIL=$ac_ct_DSYMUTIL
7010 fi
7011 else
7012 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7013 fi
7014
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$NMEDIT"; then
7024 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 NMEDIT=$ac_cv_prog_NMEDIT
7044 if test -n "$NMEDIT"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7046 $as_echo "$NMEDIT" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052
7053 fi
7054 if test -z "$ac_cv_prog_NMEDIT"; then
7055 ac_ct_NMEDIT=$NMEDIT
7056 # Extract the first word of "nmedit", so it can be a program name with args.
7057 set dummy nmedit; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_NMEDIT"; then
7064 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7084 if test -n "$ac_ct_NMEDIT"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7086 $as_echo "$ac_ct_NMEDIT" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092 if test "x$ac_ct_NMEDIT" = x; then
7093 NMEDIT=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 NMEDIT=$ac_ct_NMEDIT
7102 fi
7103 else
7104 NMEDIT="$ac_cv_prog_NMEDIT"
7105 fi
7106
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if test "${ac_cv_prog_LIPO+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$LIPO"; then
7116 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 LIPO=$ac_cv_prog_LIPO
7136 if test -n "$LIPO"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7138 $as_echo "$LIPO" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144
7145 fi
7146 if test -z "$ac_cv_prog_LIPO"; then
7147 ac_ct_LIPO=$LIPO
7148 # Extract the first word of "lipo", so it can be a program name with args.
7149 set dummy lipo; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$ac_ct_LIPO"; then
7156 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_LIPO="lipo"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7176 if test -n "$ac_ct_LIPO"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7178 $as_echo "$ac_ct_LIPO" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184 if test "x$ac_ct_LIPO" = x; then
7185 LIPO=":"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193 LIPO=$ac_ct_LIPO
7194 fi
7195 else
7196 LIPO="$ac_cv_prog_LIPO"
7197 fi
7198
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}otool; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$OTOOL"; then
7208 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 OTOOL=$ac_cv_prog_OTOOL
7228 if test -n "$OTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7230 $as_echo "$OTOOL" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_OTOOL"; then
7239 ac_ct_OTOOL=$OTOOL
7240 # Extract the first word of "otool", so it can be a program name with args.
7241 set dummy otool; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$ac_ct_OTOOL"; then
7248 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_OTOOL="otool"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7268 if test -n "$ac_ct_OTOOL"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7270 $as_echo "$ac_ct_OTOOL" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276 if test "x$ac_ct_OTOOL" = x; then
7277 OTOOL=":"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 OTOOL=$ac_ct_OTOOL
7286 fi
7287 else
7288 OTOOL="$ac_cv_prog_OTOOL"
7289 fi
7290
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$OTOOL64"; then
7300 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 OTOOL64=$ac_cv_prog_OTOOL64
7320 if test -n "$OTOOL64"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7322 $as_echo "$OTOOL64" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_OTOOL64"; then
7331 ac_ct_OTOOL64=$OTOOL64
7332 # Extract the first word of "otool64", so it can be a program name with args.
7333 set dummy otool64; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$ac_ct_OTOOL64"; then
7340 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_OTOOL64="otool64"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7360 if test -n "$ac_ct_OTOOL64"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7362 $as_echo "$ac_ct_OTOOL64" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368 if test "x$ac_ct_OTOOL64" = x; then
7369 OTOOL64=":"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377 OTOOL64=$ac_ct_OTOOL64
7378 fi
7379 else
7380 OTOOL64="$ac_cv_prog_OTOOL64"
7381 fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7410 $as_echo_n "checking for -single_module linker flag... " >&6; }
7411 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 lt_cv_apple_cc_single_mod=no
7415 if test -z "${LT_MULTI_MODULE}"; then
7416 # By default we will add the -single_module flag. You can override
7417 # by either setting the environment variable LT_MULTI_MODULE
7418 # non-empty at configure time, or by adding -multi_module to the
7419 # link flags.
7420 rm -rf libconftest.dylib*
7421 echo "int foo(void){return 1;}" > conftest.c
7422 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7423 -dynamiclib -Wl,-single_module conftest.c" >&5
7424 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7425 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7426 _lt_result=$?
7427 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7428 lt_cv_apple_cc_single_mod=yes
7429 else
7430 cat conftest.err >&5
7431 fi
7432 rm -rf libconftest.dylib*
7433 rm -f conftest.*
7434 fi
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7437 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7439 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7440 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 lt_cv_ld_exported_symbols_list=no
7444 save_LDFLAGS=$LDFLAGS
7445 echo "_main" > conftest.sym
7446 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449
7450 int
7451 main ()
7452 {
7453
7454 ;
7455 return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_link "$LINENO"; then :
7459 lt_cv_ld_exported_symbols_list=yes
7460 else
7461 lt_cv_ld_exported_symbols_list=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 LDFLAGS="$save_LDFLAGS"
7466
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7469 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7471 $as_echo_n "checking for -force_load linker flag... " >&6; }
7472 if test "${lt_cv_ld_force_load+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 lt_cv_ld_force_load=no
7476 cat > conftest.c << _LT_EOF
7477 int forced_loaded() { return 2;}
7478 _LT_EOF
7479 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7480 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7481 echo "$AR cru libconftest.a conftest.o" >&5
7482 $AR cru libconftest.a conftest.o 2>&5
7483 cat > conftest.c << _LT_EOF
7484 int main() { return 0;}
7485 _LT_EOF
7486 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7487 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7488 _lt_result=$?
7489 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7490 lt_cv_ld_force_load=yes
7491 else
7492 cat conftest.err >&5
7493 fi
7494 rm -f conftest.err libconftest.a conftest conftest.c
7495 rm -rf conftest.dSYM
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7499 $as_echo "$lt_cv_ld_force_load" >&6; }
7500 case $host_os in
7501 rhapsody* | darwin1.[012])
7502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7503 darwin1.*)
7504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7505 darwin*) # darwin 5.x on
7506 # if running on 10.5 or later, the deployment target defaults
7507 # to the OS version, if on x86, and 10.4, the deployment
7508 # target defaults to 10.4. Don't you love it?
7509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7512 10.[012]*)
7513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7514 10.*)
7515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7516 esac
7517 ;;
7518 esac
7519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7520 _lt_dar_single_mod='$single_module'
7521 fi
7522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7524 else
7525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7526 fi
7527 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7528 _lt_dsymutil='~$DSYMUTIL $lib || :'
7529 else
7530 _lt_dsymutil=
7531 fi
7532 ;;
7533 esac
7534
7535 for ac_header in dlfcn.h
7536 do :
7537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7538 "
7539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_DLFCN_H 1
7542 _ACEOF
7543
7544 fi
7545
7546 done
7547
7548
7549
7550
7551
7552
7553 # Set options
7554
7555
7556
7557 enable_dlopen=no
7558
7559
7560 enable_win32_dll=no
7561
7562
7563 # Check whether --enable-shared was given.
7564 if test "${enable_shared+set}" = set; then :
7565 enableval=$enable_shared; p=${PACKAGE-default}
7566 case $enableval in
7567 yes) enable_shared=yes ;;
7568 no) enable_shared=no ;;
7569 *)
7570 enable_shared=no
7571 # Look at the argument we got. We use all the common list separators.
7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573 for pkg in $enableval; do
7574 IFS="$lt_save_ifs"
7575 if test "X$pkg" = "X$p"; then
7576 enable_shared=yes
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580 ;;
7581 esac
7582 else
7583 enable_shared=yes
7584 fi
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 # Check whether --enable-static was given.
7595 if test "${enable_static+set}" = set; then :
7596 enableval=$enable_static; p=${PACKAGE-default}
7597 case $enableval in
7598 yes) enable_static=yes ;;
7599 no) enable_static=no ;;
7600 *)
7601 enable_static=no
7602 # Look at the argument we got. We use all the common list separators.
7603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604 for pkg in $enableval; do
7605 IFS="$lt_save_ifs"
7606 if test "X$pkg" = "X$p"; then
7607 enable_static=yes
7608 fi
7609 done
7610 IFS="$lt_save_ifs"
7611 ;;
7612 esac
7613 else
7614 enable_static=yes
7615 fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 # Check whether --with-pic was given.
7627 if test "${with_pic+set}" = set; then :
7628 withval=$with_pic; pic_mode="$withval"
7629 else
7630 pic_mode=default
7631 fi
7632
7633
7634 test -z "$pic_mode" && pic_mode=default
7635
7636
7637
7638
7639
7640
7641
7642 # Check whether --enable-fast-install was given.
7643 if test "${enable_fast_install+set}" = set; then :
7644 enableval=$enable_fast_install; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_fast_install=yes ;;
7647 no) enable_fast_install=no ;;
7648 *)
7649 enable_fast_install=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_fast_install=yes
7656 fi
7657 done
7658 IFS="$lt_save_ifs"
7659 ;;
7660 esac
7661 else
7662 enable_fast_install=yes
7663 fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # This can be used to rebuild libtool when needed
7676 LIBTOOL_DEPS="$ltmain"
7677
7678 # Always use our own libtool.
7679 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 test -z "$LN_S" && LN_S="ln -s"
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 if test -n "${ZSH_VERSION+set}" ; then
7722 setopt NO_GLOB_SUBST
7723 fi
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7726 $as_echo_n "checking for objdir... " >&6; }
7727 if test "${lt_cv_objdir+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 rm -f .libs 2>/dev/null
7731 mkdir .libs 2>/dev/null
7732 if test -d .libs; then
7733 lt_cv_objdir=.libs
7734 else
7735 # MS-DOS does not allow filenames that begin with a dot.
7736 lt_cv_objdir=_libs
7737 fi
7738 rmdir .libs 2>/dev/null
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7741 $as_echo "$lt_cv_objdir" >&6; }
7742 objdir=$lt_cv_objdir
7743
7744
7745
7746
7747
7748 cat >>confdefs.h <<_ACEOF
7749 #define LT_OBJDIR "$lt_cv_objdir/"
7750 _ACEOF
7751
7752
7753
7754
7755 case $host_os in
7756 aix3*)
7757 # AIX sometimes has problems with the GCC collect2 program. For some
7758 # reason, if we set the COLLECT_NAMES environment variable, the problems
7759 # vanish in a puff of smoke.
7760 if test "X${COLLECT_NAMES+set}" != Xset; then
7761 COLLECT_NAMES=
7762 export COLLECT_NAMES
7763 fi
7764 ;;
7765 esac
7766
7767 # Global variables:
7768 ofile=libtool
7769 can_build_shared=yes
7770
7771 # All known linkers require a `.a' archive for static linking (except MSVC,
7772 # which needs '.lib').
7773 libext=a
7774
7775 with_gnu_ld="$lt_cv_prog_gnu_ld"
7776
7777 old_CC="$CC"
7778 old_CFLAGS="$CFLAGS"
7779
7780 # Set sane defaults for various variables
7781 test -z "$CC" && CC=cc
7782 test -z "$LTCC" && LTCC=$CC
7783 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7784 test -z "$LD" && LD=ld
7785 test -z "$ac_objext" && ac_objext=o
7786
7787 for cc_temp in $compiler""; do
7788 case $cc_temp in
7789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7791 \-*) ;;
7792 *) break;;
7793 esac
7794 done
7795 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7796
7797
7798 # Only perform the check for file, if the check method requires it
7799 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7800 case $deplibs_check_method in
7801 file_magic*)
7802 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7804 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7805 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 case $MAGIC_CMD in
7809 [\\/*] | ?:[\\/]*)
7810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7811 ;;
7812 *)
7813 lt_save_MAGIC_CMD="$MAGIC_CMD"
7814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816 for ac_dir in $ac_dummy; do
7817 IFS="$lt_save_ifs"
7818 test -z "$ac_dir" && ac_dir=.
7819 if test -f $ac_dir/${ac_tool_prefix}file; then
7820 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7821 if test -n "$file_magic_test_file"; then
7822 case $deplibs_check_method in
7823 "file_magic "*)
7824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827 $EGREP "$file_magic_regex" > /dev/null; then
7828 :
7829 else
7830 cat <<_LT_EOF 1>&2
7831
7832 *** Warning: the command libtool uses to detect shared libraries,
7833 *** $file_magic_cmd, produces output that libtool cannot recognize.
7834 *** The result is that libtool may fail to recognize shared libraries
7835 *** as such. This will affect the creation of libtool libraries that
7836 *** depend on shared libraries, but programs linked with such libtool
7837 *** libraries will work regardless of this problem. Nevertheless, you
7838 *** may want to report the problem to your system manager and/or to
7839 *** bug-libtool@gnu.org
7840
7841 _LT_EOF
7842 fi ;;
7843 esac
7844 fi
7845 break
7846 fi
7847 done
7848 IFS="$lt_save_ifs"
7849 MAGIC_CMD="$lt_save_MAGIC_CMD"
7850 ;;
7851 esac
7852 fi
7853
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if test -n "$MAGIC_CMD"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7857 $as_echo "$MAGIC_CMD" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864
7865
7866
7867 if test -z "$lt_cv_path_MAGIC_CMD"; then
7868 if test -n "$ac_tool_prefix"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7870 $as_echo_n "checking for file... " >&6; }
7871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 case $MAGIC_CMD in
7875 [\\/*] | ?:[\\/]*)
7876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7877 ;;
7878 *)
7879 lt_save_MAGIC_CMD="$MAGIC_CMD"
7880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7882 for ac_dir in $ac_dummy; do
7883 IFS="$lt_save_ifs"
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f $ac_dir/file; then
7886 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7887 if test -n "$file_magic_test_file"; then
7888 case $deplibs_check_method in
7889 "file_magic "*)
7890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7893 $EGREP "$file_magic_regex" > /dev/null; then
7894 :
7895 else
7896 cat <<_LT_EOF 1>&2
7897
7898 *** Warning: the command libtool uses to detect shared libraries,
7899 *** $file_magic_cmd, produces output that libtool cannot recognize.
7900 *** The result is that libtool may fail to recognize shared libraries
7901 *** as such. This will affect the creation of libtool libraries that
7902 *** depend on shared libraries, but programs linked with such libtool
7903 *** libraries will work regardless of this problem. Nevertheless, you
7904 *** may want to report the problem to your system manager and/or to
7905 *** bug-libtool@gnu.org
7906
7907 _LT_EOF
7908 fi ;;
7909 esac
7910 fi
7911 break
7912 fi
7913 done
7914 IFS="$lt_save_ifs"
7915 MAGIC_CMD="$lt_save_MAGIC_CMD"
7916 ;;
7917 esac
7918 fi
7919
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if test -n "$MAGIC_CMD"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7923 $as_echo "$MAGIC_CMD" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930 else
7931 MAGIC_CMD=:
7932 fi
7933 fi
7934
7935 fi
7936 ;;
7937 esac
7938
7939 # Use C for the default configuration in the libtool script
7940
7941 lt_save_CC="$CC"
7942 ac_ext=c
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948
7949 # Source file extension for C test sources.
7950 ac_ext=c
7951
7952 # Object file extension for compiled C test sources.
7953 objext=o
7954 objext=$objext
7955
7956 # Code to be used in simple compile tests
7957 lt_simple_compile_test_code="int some_variable = 0;"
7958
7959 # Code to be used in simple link tests
7960 lt_simple_link_test_code='int main(){return(0);}'
7961
7962
7963
7964
7965
7966
7967
7968 # If no C compiler was specified, use CC.
7969 LTCC=${LTCC-"$CC"}
7970
7971 # If no C compiler flags were specified, use CFLAGS.
7972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7973
7974 # Allow CC to be a program name with arguments.
7975 compiler=$CC
7976
7977 # Save the default compiler, since it gets overwritten when the other
7978 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7979 compiler_DEFAULT=$CC
7980
7981 # save warnings/boilerplate of simple test code
7982 ac_outfile=conftest.$ac_objext
7983 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7985 _lt_compiler_boilerplate=`cat conftest.err`
7986 $RM conftest*
7987
7988 ac_outfile=conftest.$ac_objext
7989 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7991 _lt_linker_boilerplate=`cat conftest.err`
7992 $RM -r conftest*
7993
7994
7995 ## CAVEAT EMPTOR:
7996 ## There is no encapsulation within the following macros, do not change
7997 ## the running order or otherwise move them around unless you know exactly
7998 ## what you are doing...
7999 if test -n "$compiler"; then
8000
8001 lt_prog_compiler_no_builtin_flag=
8002
8003 if test "$GCC" = yes; then
8004 case $cc_basename in
8005 nvcc*)
8006 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8007 *)
8008 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8009 esac
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8012 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8013 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 lt_cv_prog_compiler_rtti_exceptions=no
8017 ac_outfile=conftest.$ac_objext
8018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019 lt_compiler_flag="-fno-rtti -fno-exceptions"
8020 # Insert the option either (1) after the last *FLAGS variable, or
8021 # (2) before a word containing "conftest.", or (3) at the end.
8022 # Note that $ac_compile itself does not contain backslashes and begins
8023 # with a dollar sign (not a hyphen), so the echo should work correctly.
8024 # The option is referenced via a variable to avoid confusing sed.
8025 lt_compile=`echo "$ac_compile" | $SED \
8026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028 -e 's:$: $lt_compiler_flag:'`
8029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8030 (eval "$lt_compile" 2>conftest.err)
8031 ac_status=$?
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 if (exit $ac_status) && test -s "$ac_outfile"; then
8035 # The compiler can only warn and ignore the option if not recognized
8036 # So say no if there are warnings other than the usual output.
8037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8040 lt_cv_prog_compiler_rtti_exceptions=yes
8041 fi
8042 fi
8043 $RM conftest*
8044
8045 fi
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8047 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8048
8049 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8050 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8051 else
8052 :
8053 fi
8054
8055 fi
8056
8057
8058
8059
8060
8061
8062 lt_prog_compiler_wl=
8063 lt_prog_compiler_pic=
8064 lt_prog_compiler_static=
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8067 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8068
8069 if test "$GCC" = yes; then
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_static='-static'
8072
8073 case $host_os in
8074 aix*)
8075 # All AIX code is PIC.
8076 if test "$host_cpu" = ia64; then
8077 # AIX 5 now supports IA64 processor
8078 lt_prog_compiler_static='-Bstatic'
8079 fi
8080 lt_prog_compiler_pic='-fPIC'
8081 ;;
8082
8083 amigaos*)
8084 case $host_cpu in
8085 powerpc)
8086 # see comment about AmigaOS4 .so support
8087 lt_prog_compiler_pic='-fPIC'
8088 ;;
8089 m68k)
8090 # FIXME: we need at least 68020 code to build shared libraries, but
8091 # adding the `-m68020' flag to GCC prevents building anything better,
8092 # like `-m68040'.
8093 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8094 ;;
8095 esac
8096 ;;
8097
8098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8099 # PIC is the default for these OSes.
8100 ;;
8101
8102 mingw* | cygwin* | pw32* | os2* | cegcc*)
8103 # This hack is so that the source file can tell whether it is being
8104 # built for inclusion in a dll (and should export symbols for example).
8105 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8106 # (--disable-auto-import) libraries
8107 lt_prog_compiler_pic='-DDLL_EXPORT'
8108 ;;
8109
8110 darwin* | rhapsody*)
8111 # PIC is the default on this platform
8112 # Common symbols not allowed in MH_DYLIB files
8113 lt_prog_compiler_pic='-fno-common'
8114 ;;
8115
8116 haiku*)
8117 # PIC is the default for Haiku.
8118 # The "-static" flag exists, but is broken.
8119 lt_prog_compiler_static=
8120 ;;
8121
8122 hpux*)
8123 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8124 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8125 # sets the default TLS model and affects inlining.
8126 case $host_cpu in
8127 hppa*64*)
8128 # +Z the default
8129 ;;
8130 *)
8131 lt_prog_compiler_pic='-fPIC'
8132 ;;
8133 esac
8134 ;;
8135
8136 interix[3-9]*)
8137 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8138 # Instead, we relocate shared libraries at runtime.
8139 ;;
8140
8141 msdosdjgpp*)
8142 # Just because we use GCC doesn't mean we suddenly get shared libraries
8143 # on systems that don't support them.
8144 lt_prog_compiler_can_build_shared=no
8145 enable_shared=no
8146 ;;
8147
8148 *nto* | *qnx*)
8149 # QNX uses GNU C++, but need to define -shared option too, otherwise
8150 # it will coredump.
8151 lt_prog_compiler_pic='-fPIC -shared'
8152 ;;
8153
8154 sysv4*MP*)
8155 if test -d /usr/nec; then
8156 lt_prog_compiler_pic=-Kconform_pic
8157 fi
8158 ;;
8159
8160 *)
8161 lt_prog_compiler_pic='-fPIC'
8162 ;;
8163 esac
8164
8165 case $cc_basename in
8166 nvcc*) # Cuda Compiler Driver 2.2
8167 lt_prog_compiler_wl='-Xlinker '
8168 lt_prog_compiler_pic='-Xcompiler -fPIC'
8169 ;;
8170 esac
8171 else
8172 # PORTME Check for flag to pass linker flags through the system compiler.
8173 case $host_os in
8174 aix*)
8175 lt_prog_compiler_wl='-Wl,'
8176 if test "$host_cpu" = ia64; then
8177 # AIX 5 now supports IA64 processor
8178 lt_prog_compiler_static='-Bstatic'
8179 else
8180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8181 fi
8182 ;;
8183
8184 mingw* | cygwin* | pw32* | os2* | cegcc*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8188 ;;
8189
8190 hpux9* | hpux10* | hpux11*)
8191 lt_prog_compiler_wl='-Wl,'
8192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8193 # not for PA HP-UX.
8194 case $host_cpu in
8195 hppa*64*|ia64*)
8196 # +Z the default
8197 ;;
8198 *)
8199 lt_prog_compiler_pic='+Z'
8200 ;;
8201 esac
8202 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8203 lt_prog_compiler_static='${wl}-a ${wl}archive'
8204 ;;
8205
8206 irix5* | irix6* | nonstopux*)
8207 lt_prog_compiler_wl='-Wl,'
8208 # PIC (with -KPIC) is the default.
8209 lt_prog_compiler_static='-non_shared'
8210 ;;
8211
8212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8213 case $cc_basename in
8214 # old Intel for x86_64 which still supported -KPIC.
8215 ecc*)
8216 lt_prog_compiler_wl='-Wl,'
8217 lt_prog_compiler_pic='-KPIC'
8218 lt_prog_compiler_static='-static'
8219 ;;
8220 # icc used to be incompatible with GCC.
8221 # ICC 10 doesn't accept -KPIC any more.
8222 icc* | ifort*)
8223 lt_prog_compiler_wl='-Wl,'
8224 lt_prog_compiler_pic='-fPIC'
8225 lt_prog_compiler_static='-static'
8226 ;;
8227 # Lahey Fortran 8.1.
8228 lf95*)
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_pic='--shared'
8231 lt_prog_compiler_static='--static'
8232 ;;
8233 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8234 # Portland Group compilers (*not* the Pentium gcc compiler,
8235 # which looks to be a dead project)
8236 lt_prog_compiler_wl='-Wl,'
8237 lt_prog_compiler_pic='-fpic'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240 ccc*)
8241 lt_prog_compiler_wl='-Wl,'
8242 # All Alpha code is PIC.
8243 lt_prog_compiler_static='-non_shared'
8244 ;;
8245 xl* | bgxl* | bgf* | mpixl*)
8246 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8247 lt_prog_compiler_wl='-Wl,'
8248 lt_prog_compiler_pic='-qpic'
8249 lt_prog_compiler_static='-qstaticlink'
8250 ;;
8251 *)
8252 case `$CC -V 2>&1 | sed 5q` in
8253 *Sun\ F* | *Sun*Fortran*)
8254 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 lt_prog_compiler_wl=''
8258 ;;
8259 *Sun\ C*)
8260 # Sun C 5.9
8261 lt_prog_compiler_pic='-KPIC'
8262 lt_prog_compiler_static='-Bstatic'
8263 lt_prog_compiler_wl='-Wl,'
8264 ;;
8265 esac
8266 ;;
8267 esac
8268 ;;
8269
8270 newsos6)
8271 lt_prog_compiler_pic='-KPIC'
8272 lt_prog_compiler_static='-Bstatic'
8273 ;;
8274
8275 *nto* | *qnx*)
8276 # QNX uses GNU C++, but need to define -shared option too, otherwise
8277 # it will coredump.
8278 lt_prog_compiler_pic='-fPIC -shared'
8279 ;;
8280
8281 osf3* | osf4* | osf5*)
8282 lt_prog_compiler_wl='-Wl,'
8283 # All OSF/1 code is PIC.
8284 lt_prog_compiler_static='-non_shared'
8285 ;;
8286
8287 rdos*)
8288 lt_prog_compiler_static='-non_shared'
8289 ;;
8290
8291 solaris*)
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-Bstatic'
8294 case $cc_basename in
8295 f77* | f90* | f95*)
8296 lt_prog_compiler_wl='-Qoption ld ';;
8297 *)
8298 lt_prog_compiler_wl='-Wl,';;
8299 esac
8300 ;;
8301
8302 sunos4*)
8303 lt_prog_compiler_wl='-Qoption ld '
8304 lt_prog_compiler_pic='-PIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 ;;
8307
8308 sysv4 | sysv4.2uw2* | sysv4.3*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-Bstatic'
8312 ;;
8313
8314 sysv4*MP*)
8315 if test -d /usr/nec ;then
8316 lt_prog_compiler_pic='-Kconform_pic'
8317 lt_prog_compiler_static='-Bstatic'
8318 fi
8319 ;;
8320
8321 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-Bstatic'
8325 ;;
8326
8327 unicos*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_can_build_shared=no
8330 ;;
8331
8332 uts4*)
8333 lt_prog_compiler_pic='-pic'
8334 lt_prog_compiler_static='-Bstatic'
8335 ;;
8336
8337 *)
8338 lt_prog_compiler_can_build_shared=no
8339 ;;
8340 esac
8341 fi
8342
8343 case $host_os in
8344 # For platforms which do not support PIC, -DPIC is meaningless:
8345 *djgpp*)
8346 lt_prog_compiler_pic=
8347 ;;
8348 *)
8349 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8350 ;;
8351 esac
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8353 $as_echo "$lt_prog_compiler_pic" >&6; }
8354
8355
8356
8357
8358
8359
8360 #
8361 # Check to make sure the PIC flag actually works.
8362 #
8363 if test -n "$lt_prog_compiler_pic"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8366 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 lt_cv_prog_compiler_pic_works=no
8370 ac_outfile=conftest.$ac_objext
8371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8373 # Insert the option either (1) after the last *FLAGS variable, or
8374 # (2) before a word containing "conftest.", or (3) at the end.
8375 # Note that $ac_compile itself does not contain backslashes and begins
8376 # with a dollar sign (not a hyphen), so the echo should work correctly.
8377 # The option is referenced via a variable to avoid confusing sed.
8378 lt_compile=`echo "$ac_compile" | $SED \
8379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8381 -e 's:$: $lt_compiler_flag:'`
8382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8383 (eval "$lt_compile" 2>conftest.err)
8384 ac_status=$?
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 if (exit $ac_status) && test -s "$ac_outfile"; then
8388 # The compiler can only warn and ignore the option if not recognized
8389 # So say no if there are warnings other than the usual output.
8390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8393 lt_cv_prog_compiler_pic_works=yes
8394 fi
8395 fi
8396 $RM conftest*
8397
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8400 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8401
8402 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8403 case $lt_prog_compiler_pic in
8404 "" | " "*) ;;
8405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8406 esac
8407 else
8408 lt_prog_compiler_pic=
8409 lt_prog_compiler_can_build_shared=no
8410 fi
8411
8412 fi
8413
8414
8415
8416
8417
8418
8419 #
8420 # Check to make sure the static flag actually works.
8421 #
8422 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8424 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8425 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_prog_compiler_static_works=no
8429 save_LDFLAGS="$LDFLAGS"
8430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8433 # The linker can only warn and ignore the option if not recognized
8434 # So say no if there are warnings
8435 if test -s conftest.err; then
8436 # Append any errors to the config.log.
8437 cat conftest.err 1>&5
8438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8440 if diff conftest.exp conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_static_works=yes
8442 fi
8443 else
8444 lt_cv_prog_compiler_static_works=yes
8445 fi
8446 fi
8447 $RM -r conftest*
8448 LDFLAGS="$save_LDFLAGS"
8449
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8452 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8453
8454 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8455 :
8456 else
8457 lt_prog_compiler_static=
8458 fi
8459
8460
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8473 mkdir conftest
8474 cd conftest
8475 mkdir out
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>out/conftest.err)
8489 ac_status=$?
8490 cat out/conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8500 fi
8501 fi
8502 chmod u+w . 2>&5
8503 $RM conftest*
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8508 cd ..
8509 $RM -r conftest
8510 $RM conftest*
8511
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519
8520
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8522 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 lt_cv_prog_compiler_c_o=no
8527 $RM -r conftest 2>/dev/null
8528 mkdir conftest
8529 cd conftest
8530 mkdir out
8531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532
8533 lt_compiler_flag="-o out/conftest2.$ac_objext"
8534 # Insert the option either (1) after the last *FLAGS variable, or
8535 # (2) before a word containing "conftest.", or (3) at the end.
8536 # Note that $ac_compile itself does not contain backslashes and begins
8537 # with a dollar sign (not a hyphen), so the echo should work correctly.
8538 lt_compile=`echo "$ac_compile" | $SED \
8539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541 -e 's:$: $lt_compiler_flag:'`
8542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543 (eval "$lt_compile" 2>out/conftest.err)
8544 ac_status=$?
8545 cat out/conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8548 then
8549 # The compiler can only warn and ignore the option if not recognized
8550 # So say no if there are warnings
8551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8554 lt_cv_prog_compiler_c_o=yes
8555 fi
8556 fi
8557 chmod u+w . 2>&5
8558 $RM conftest*
8559 # SGI C++ compiler will create directory out/ii_files/ for
8560 # template instantiation
8561 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8562 $RM out/* && rmdir out
8563 cd ..
8564 $RM -r conftest
8565 $RM conftest*
8566
8567 fi
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8569 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8570
8571
8572
8573
8574 hard_links="nottested"
8575 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8576 # do not overwrite the value of need_locks provided by the user
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8578 $as_echo_n "checking if we can lock with hard links... " >&6; }
8579 hard_links=yes
8580 $RM conftest*
8581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8582 touch conftest.a
8583 ln conftest.a conftest.b 2>&5 || hard_links=no
8584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8586 $as_echo "$hard_links" >&6; }
8587 if test "$hard_links" = no; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8589 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8590 need_locks=warn
8591 fi
8592 else
8593 need_locks=no
8594 fi
8595
8596
8597
8598
8599
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8602 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8603
8604 runpath_var=
8605 allow_undefined_flag=
8606 always_export_symbols=no
8607 archive_cmds=
8608 archive_expsym_cmds=
8609 compiler_needs_object=no
8610 enable_shared_with_static_runtimes=no
8611 export_dynamic_flag_spec=
8612 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8613 hardcode_automatic=no
8614 hardcode_direct=no
8615 hardcode_direct_absolute=no
8616 hardcode_libdir_flag_spec=
8617 hardcode_libdir_flag_spec_ld=
8618 hardcode_libdir_separator=
8619 hardcode_minus_L=no
8620 hardcode_shlibpath_var=unsupported
8621 inherit_rpath=no
8622 link_all_deplibs=unknown
8623 module_cmds=
8624 module_expsym_cmds=
8625 old_archive_from_new_cmds=
8626 old_archive_from_expsyms_cmds=
8627 thread_safe_flag_spec=
8628 whole_archive_flag_spec=
8629 # include_expsyms should be a list of space-separated symbols to be *always*
8630 # included in the symbol list
8631 include_expsyms=
8632 # exclude_expsyms can be an extended regexp of symbols to exclude
8633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8635 # as well as any symbol that contains `d'.
8636 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8638 # platforms (ab)use it in PIC code, but their linkers get confused if
8639 # the symbol is explicitly referenced. Since portable code cannot
8640 # rely on this symbol name, it's probably fine to never include it in
8641 # preloaded symbol tables.
8642 # Exclude shared library initialization/finalization symbols.
8643 extract_expsyms_cmds=
8644
8645 case $host_os in
8646 cygwin* | mingw* | pw32* | cegcc*)
8647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8648 # When not using gcc, we currently assume that we are using
8649 # Microsoft Visual C++.
8650 if test "$GCC" != yes; then
8651 with_gnu_ld=no
8652 fi
8653 ;;
8654 interix*)
8655 # we just hope/assume this is gcc and not c89 (= MSVC++)
8656 with_gnu_ld=yes
8657 ;;
8658 openbsd*)
8659 with_gnu_ld=no
8660 ;;
8661 esac
8662
8663 ld_shlibs=yes
8664
8665 # On some targets, GNU ld is compatible enough with the native linker
8666 # that we're better off using the native interface for both.
8667 lt_use_gnu_ld_interface=no
8668 if test "$with_gnu_ld" = yes; then
8669 case $host_os in
8670 aix*)
8671 # The AIX port of GNU ld has always aspired to compatibility
8672 # with the native linker. However, as the warning in the GNU ld
8673 # block says, versions before 2.19.5* couldn't really create working
8674 # shared libraries, regardless of the interface used.
8675 case `$LD -v 2>&1` in
8676 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8677 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8678 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8679 *)
8680 lt_use_gnu_ld_interface=yes
8681 ;;
8682 esac
8683 ;;
8684 *)
8685 lt_use_gnu_ld_interface=yes
8686 ;;
8687 esac
8688 fi
8689
8690 if test "$lt_use_gnu_ld_interface" = yes; then
8691 # If archive_cmds runs LD, not CC, wlarc should be empty
8692 wlarc='${wl}'
8693
8694 # Set some defaults for GNU ld with shared library support. These
8695 # are reset later if shared libraries are not supported. Putting them
8696 # here allows them to be overridden if necessary.
8697 runpath_var=LD_RUN_PATH
8698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699 export_dynamic_flag_spec='${wl}--export-dynamic'
8700 # ancient GNU ld didn't support --whole-archive et. al.
8701 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8702 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8703 else
8704 whole_archive_flag_spec=
8705 fi
8706 supports_anon_versioning=no
8707 case `$LD -v 2>&1` in
8708 *GNU\ gold*) supports_anon_versioning=yes ;;
8709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8712 *\ 2.11.*) ;; # other 2.11 versions
8713 *) supports_anon_versioning=yes ;;
8714 esac
8715
8716 # See if GNU ld supports shared libraries.
8717 case $host_os in
8718 aix[3-9]*)
8719 # On AIX/PPC, the GNU linker is very broken
8720 if test "$host_cpu" != ia64; then
8721 ld_shlibs=no
8722 cat <<_LT_EOF 1>&2
8723
8724 *** Warning: the GNU linker, at least up to release 2.19, is reported
8725 *** to be unable to reliably create shared libraries on AIX.
8726 *** Therefore, libtool is disabling shared libraries support. If you
8727 *** really care for shared libraries, you may want to install binutils
8728 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8729 *** You will then need to restart the configuration process.
8730
8731 _LT_EOF
8732 fi
8733 ;;
8734
8735 amigaos*)
8736 case $host_cpu in
8737 powerpc)
8738 # see comment about AmigaOS4 .so support
8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740 archive_expsym_cmds=''
8741 ;;
8742 m68k)
8743 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)'
8744 hardcode_libdir_flag_spec='-L$libdir'
8745 hardcode_minus_L=yes
8746 ;;
8747 esac
8748 ;;
8749
8750 beos*)
8751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8752 allow_undefined_flag=unsupported
8753 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8754 # support --undefined. This deserves some investigation. FIXME
8755 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756 else
8757 ld_shlibs=no
8758 fi
8759 ;;
8760
8761 cygwin* | mingw* | pw32* | cegcc*)
8762 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8763 # as there is no search path for DLLs.
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 export_dynamic_flag_spec='${wl}--export-all-symbols'
8766 allow_undefined_flag=unsupported
8767 always_export_symbols=no
8768 enable_shared_with_static_runtimes=yes
8769 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8770
8771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8773 # If the export-symbols file already is a .def file (1st line
8774 # is EXPORTS), use it as is; otherwise, prepend...
8775 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8776 cp $export_symbols $output_objdir/$soname.def;
8777 else
8778 echo EXPORTS > $output_objdir/$soname.def;
8779 cat $export_symbols >> $output_objdir/$soname.def;
8780 fi~
8781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786
8787 haiku*)
8788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8789 link_all_deplibs=yes
8790 ;;
8791
8792 interix[3-9]*)
8793 hardcode_direct=no
8794 hardcode_shlibpath_var=no
8795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796 export_dynamic_flag_spec='${wl}-E'
8797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8798 # Instead, shared libraries are loaded at an image base (0x10000000 by
8799 # default) and relocated if they conflict, which is a slow very memory
8800 # consuming and fragmenting process. To avoid this, we pick a random,
8801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8803 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8804 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'
8805 ;;
8806
8807 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8808 tmp_diet=no
8809 if test "$host_os" = linux-dietlibc; then
8810 case $cc_basename in
8811 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8812 esac
8813 fi
8814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8815 && test "$tmp_diet" = no
8816 then
8817 tmp_addflag=
8818 tmp_sharedflag='-shared'
8819 case $cc_basename,$host_cpu in
8820 pgcc*) # Portland Group C compiler
8821 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'
8822 tmp_addflag=' $pic_flag'
8823 ;;
8824 pgf77* | pgf90* | pgf95* | pgfortran*)
8825 # Portland Group f77 and f90 compilers
8826 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'
8827 tmp_addflag=' $pic_flag -Mnomain' ;;
8828 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8829 tmp_addflag=' -i_dynamic' ;;
8830 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8831 tmp_addflag=' -i_dynamic -nofor_main' ;;
8832 ifc* | ifort*) # Intel Fortran compiler
8833 tmp_addflag=' -nofor_main' ;;
8834 lf95*) # Lahey Fortran 8.1
8835 whole_archive_flag_spec=
8836 tmp_sharedflag='--shared' ;;
8837 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8838 tmp_sharedflag='-qmkshrobj'
8839 tmp_addflag= ;;
8840 nvcc*) # Cuda Compiler Driver 2.2
8841 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'
8842 compiler_needs_object=yes
8843 ;;
8844 esac
8845 case `$CC -V 2>&1 | sed 5q` in
8846 *Sun\ C*) # Sun C 5.9
8847 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'
8848 compiler_needs_object=yes
8849 tmp_sharedflag='-G' ;;
8850 *Sun\ F*) # Sun Fortran 8.3
8851 tmp_sharedflag='-G' ;;
8852 esac
8853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854
8855 if test "x$supports_anon_versioning" = xyes; then
8856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858 echo "local: *; };" >> $output_objdir/$libname.ver~
8859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8860 fi
8861
8862 case $cc_basename in
8863 xlf* | bgf* | bgxlf* | mpixlf*)
8864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8866 hardcode_libdir_flag_spec=
8867 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8868 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8869 if test "x$supports_anon_versioning" = xyes; then
8870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8872 echo "local: *; };" >> $output_objdir/$libname.ver~
8873 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8874 fi
8875 ;;
8876 esac
8877 else
8878 ld_shlibs=no
8879 fi
8880 ;;
8881
8882 netbsd*)
8883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8885 wlarc=
8886 else
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8889 fi
8890 ;;
8891
8892 solaris*)
8893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8894 ld_shlibs=no
8895 cat <<_LT_EOF 1>&2
8896
8897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8898 *** create shared libraries on Solaris systems. Therefore, libtool
8899 *** is disabling shared libraries support. We urge you to upgrade GNU
8900 *** binutils to release 2.9.1 or newer. Another option is to modify
8901 *** your PATH or compiler configuration so that the native linker is
8902 *** used, and then restart.
8903
8904 _LT_EOF
8905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908 else
8909 ld_shlibs=no
8910 fi
8911 ;;
8912
8913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8914 case `$LD -v 2>&1` in
8915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8916 ld_shlibs=no
8917 cat <<_LT_EOF 1>&2
8918
8919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8920 *** reliably create shared libraries on SCO systems. Therefore, libtool
8921 *** is disabling shared libraries support. We urge you to upgrade GNU
8922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8923 *** your PATH or compiler configuration so that the native linker is
8924 *** used, and then restart.
8925
8926 _LT_EOF
8927 ;;
8928 *)
8929 # For security reasons, it is highly recommended that you always
8930 # use absolute paths for naming shared libraries, and exclude the
8931 # DT_RUNPATH tag from executables and libraries. But doing so
8932 # requires that you compile everything twice, which is a pain.
8933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8937 else
8938 ld_shlibs=no
8939 fi
8940 ;;
8941 esac
8942 ;;
8943
8944 sunos4*)
8945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8946 wlarc=
8947 hardcode_direct=yes
8948 hardcode_shlibpath_var=no
8949 ;;
8950
8951 *)
8952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8955 else
8956 ld_shlibs=no
8957 fi
8958 ;;
8959 esac
8960
8961 if test "$ld_shlibs" = no; then
8962 runpath_var=
8963 hardcode_libdir_flag_spec=
8964 export_dynamic_flag_spec=
8965 whole_archive_flag_spec=
8966 fi
8967 else
8968 # PORTME fill in a description of your system's linker (not GNU ld)
8969 case $host_os in
8970 aix3*)
8971 allow_undefined_flag=unsupported
8972 always_export_symbols=yes
8973 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'
8974 # Note: this linker hardcodes the directories in LIBPATH if there
8975 # are no directories specified by -L.
8976 hardcode_minus_L=yes
8977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8978 # Neither direct hardcoding nor static linking is supported with a
8979 # broken collect2.
8980 hardcode_direct=unsupported
8981 fi
8982 ;;
8983
8984 aix[4-9]*)
8985 if test "$host_cpu" = ia64; then
8986 # On IA64, the linker does run time linking by default, so we don't
8987 # have to do anything special.
8988 aix_use_runtimelinking=no
8989 exp_sym_flag='-Bexport'
8990 no_entry_flag=""
8991 else
8992 # If we're using GNU nm, then we don't want the "-C" option.
8993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8994 # Also, AIX nm treats weak defined symbols like other global
8995 # defined symbols, whereas GNU nm marks them as "W".
8996 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8997 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'
8998 else
8999 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9000 fi
9001 aix_use_runtimelinking=no
9002
9003 # Test if we are trying to use run time linking or normal
9004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9005 # need to do runtime linking.
9006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9007 for ld_flag in $LDFLAGS; do
9008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9009 aix_use_runtimelinking=yes
9010 break
9011 fi
9012 done
9013 ;;
9014 esac
9015
9016 exp_sym_flag='-bexport'
9017 no_entry_flag='-bnoentry'
9018 fi
9019
9020 # When large executables or shared objects are built, AIX ld can
9021 # have problems creating the table of contents. If linking a library
9022 # or program results in "error TOC overflow" add -mminimal-toc to
9023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9025
9026 archive_cmds=''
9027 hardcode_direct=yes
9028 hardcode_direct_absolute=yes
9029 hardcode_libdir_separator=':'
9030 link_all_deplibs=yes
9031 file_list_spec='${wl}-f,'
9032
9033 if test "$GCC" = yes; then
9034 case $host_os in aix4.[012]|aix4.[012].*)
9035 # We only want to do this on AIX 4.2 and lower, the check
9036 # below for broken collect2 doesn't work under 4.3+
9037 collect2name=`${CC} -print-prog-name=collect2`
9038 if test -f "$collect2name" &&
9039 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9040 then
9041 # We have reworked collect2
9042 :
9043 else
9044 # We have old collect2
9045 hardcode_direct=unsupported
9046 # It fails to find uninstalled libraries when the uninstalled
9047 # path is not listed in the libpath. Setting hardcode_minus_L
9048 # to unsupported forces relinking
9049 hardcode_minus_L=yes
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 hardcode_libdir_separator=
9052 fi
9053 ;;
9054 esac
9055 shared_flag='-shared'
9056 if test "$aix_use_runtimelinking" = yes; then
9057 shared_flag="$shared_flag "'${wl}-G'
9058 fi
9059 else
9060 # not using gcc
9061 if test "$host_cpu" = ia64; then
9062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9063 # chokes on -Wl,-G. The following line is correct:
9064 shared_flag='-G'
9065 else
9066 if test "$aix_use_runtimelinking" = yes; then
9067 shared_flag='${wl}-G'
9068 else
9069 shared_flag='${wl}-bM:SRE'
9070 fi
9071 fi
9072 fi
9073
9074 export_dynamic_flag_spec='${wl}-bexpall'
9075 # It seems that -bexpall does not export symbols beginning with
9076 # underscore (_), so it is better to generate a list of symbols to export.
9077 always_export_symbols=yes
9078 if test "$aix_use_runtimelinking" = yes; then
9079 # Warning - without using the other runtime loading flags (-brtl),
9080 # -berok will link without error, but may produce a broken library.
9081 allow_undefined_flag='-berok'
9082 # Determine the default libpath from the value encoded in an
9083 # empty executable.
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086
9087 int
9088 main ()
9089 {
9090
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096
9097 lt_aix_libpath_sed='
9098 /Import File Strings/,/^$/ {
9099 /^0/ {
9100 s/^0 *\(.*\)$/\1/
9101 p
9102 }
9103 }'
9104 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105 # Check for a 64-bit object if we didn't find anything.
9106 if test -z "$aix_libpath"; then
9107 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9108 fi
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9113
9114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9115 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"
9116 else
9117 if test "$host_cpu" = ia64; then
9118 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9119 allow_undefined_flag="-z nodefs"
9120 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"
9121 else
9122 # Determine the default libpath from the value encoded in an
9123 # empty executable.
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126
9127 int
9128 main ()
9129 {
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_link "$LINENO"; then :
9136
9137 lt_aix_libpath_sed='
9138 /Import File Strings/,/^$/ {
9139 /^0/ {
9140 s/^0 *\(.*\)$/\1/
9141 p
9142 }
9143 }'
9144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9145 # Check for a 64-bit object if we didn't find anything.
9146 if test -z "$aix_libpath"; then
9147 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148 fi
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9153
9154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9155 # Warning - without using the other run time loading flags,
9156 # -berok will link without error, but may produce a broken library.
9157 no_undefined_flag=' ${wl}-bernotok'
9158 allow_undefined_flag=' ${wl}-berok'
9159 if test "$with_gnu_ld" = yes; then
9160 # We only use this code for GNU lds that support --whole-archive.
9161 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9162 else
9163 # Exported symbols can be pulled into shared objects from archives
9164 whole_archive_flag_spec='$convenience'
9165 fi
9166 archive_cmds_need_lc=yes
9167 # This is similar to how AIX traditionally builds its shared libraries.
9168 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'
9169 fi
9170 fi
9171 ;;
9172
9173 amigaos*)
9174 case $host_cpu in
9175 powerpc)
9176 # see comment about AmigaOS4 .so support
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 archive_expsym_cmds=''
9179 ;;
9180 m68k)
9181 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)'
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 hardcode_minus_L=yes
9184 ;;
9185 esac
9186 ;;
9187
9188 bsdi[45]*)
9189 export_dynamic_flag_spec=-rdynamic
9190 ;;
9191
9192 cygwin* | mingw* | pw32* | cegcc*)
9193 # When not using gcc, we currently assume that we are using
9194 # Microsoft Visual C++.
9195 # hardcode_libdir_flag_spec is actually meaningless, as there is
9196 # no search path for DLLs.
9197 hardcode_libdir_flag_spec=' '
9198 allow_undefined_flag=unsupported
9199 # Tell ltmain to make .lib files, not .a files.
9200 libext=lib
9201 # Tell ltmain to make .dll files, not .so files.
9202 shrext_cmds=".dll"
9203 # FIXME: Setting linknames here is a bad hack.
9204 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9205 # The linker will automatically build a .lib file if we build a DLL.
9206 old_archive_from_new_cmds='true'
9207 # FIXME: Should let the user specify the lib program.
9208 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9209 fix_srcfile_path='`cygpath -w "$srcfile"`'
9210 enable_shared_with_static_runtimes=yes
9211 ;;
9212
9213 darwin* | rhapsody*)
9214
9215
9216 archive_cmds_need_lc=no
9217 hardcode_direct=no
9218 hardcode_automatic=yes
9219 hardcode_shlibpath_var=unsupported
9220 if test "$lt_cv_ld_force_load" = "yes"; then
9221 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\"`'
9222 else
9223 whole_archive_flag_spec=''
9224 fi
9225 link_all_deplibs=yes
9226 allow_undefined_flag="$_lt_dar_allow_undefined"
9227 case $cc_basename in
9228 ifort*) _lt_dar_can_shared=yes ;;
9229 *) _lt_dar_can_shared=$GCC ;;
9230 esac
9231 if test "$_lt_dar_can_shared" = "yes"; then
9232 output_verbose_link_cmd=func_echo_all
9233 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9234 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9235 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}"
9236 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}"
9237
9238 else
9239 ld_shlibs=no
9240 fi
9241
9242 ;;
9243
9244 dgux*)
9245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_shlibpath_var=no
9248 ;;
9249
9250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9251 # support. Future versions do this automatically, but an explicit c++rt0.o
9252 # does not break anything, and helps significantly (at the cost of a little
9253 # extra space).
9254 freebsd2.2*)
9255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9256 hardcode_libdir_flag_spec='-R$libdir'
9257 hardcode_direct=yes
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9262 freebsd2.*)
9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_direct=yes
9265 hardcode_minus_L=yes
9266 hardcode_shlibpath_var=no
9267 ;;
9268
9269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9270 freebsd* | dragonfly*)
9271 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9272 hardcode_libdir_flag_spec='-R$libdir'
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 ;;
9276
9277 hpux9*)
9278 if test "$GCC" = yes; then
9279 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'
9280 else
9281 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'
9282 fi
9283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9284 hardcode_libdir_separator=:
9285 hardcode_direct=yes
9286
9287 # hardcode_minus_L: Not really in the search PATH,
9288 # but as the default location of the library.
9289 hardcode_minus_L=yes
9290 export_dynamic_flag_spec='${wl}-E'
9291 ;;
9292
9293 hpux10*)
9294 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9295 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9296 else
9297 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9298 fi
9299 if test "$with_gnu_ld" = no; then
9300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9301 hardcode_libdir_flag_spec_ld='+b $libdir'
9302 hardcode_libdir_separator=:
9303 hardcode_direct=yes
9304 hardcode_direct_absolute=yes
9305 export_dynamic_flag_spec='${wl}-E'
9306 # hardcode_minus_L: Not really in the search PATH,
9307 # but as the default location of the library.
9308 hardcode_minus_L=yes
9309 fi
9310 ;;
9311
9312 hpux11*)
9313 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9314 case $host_cpu in
9315 hppa*64*)
9316 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 ;;
9318 ia64*)
9319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9320 ;;
9321 *)
9322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9323 ;;
9324 esac
9325 else
9326 case $host_cpu in
9327 hppa*64*)
9328 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 ;;
9330 ia64*)
9331 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9332 ;;
9333 *)
9334
9335 # Older versions of the 11.00 compiler do not understand -b yet
9336 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9338 $as_echo_n "checking if $CC understands -b... " >&6; }
9339 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 lt_cv_prog_compiler__b=no
9343 save_LDFLAGS="$LDFLAGS"
9344 LDFLAGS="$LDFLAGS -b"
9345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9347 # The linker can only warn and ignore the option if not recognized
9348 # So say no if there are warnings
9349 if test -s conftest.err; then
9350 # Append any errors to the config.log.
9351 cat conftest.err 1>&5
9352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9354 if diff conftest.exp conftest.er2 >/dev/null; then
9355 lt_cv_prog_compiler__b=yes
9356 fi
9357 else
9358 lt_cv_prog_compiler__b=yes
9359 fi
9360 fi
9361 $RM -r conftest*
9362 LDFLAGS="$save_LDFLAGS"
9363
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9366 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9367
9368 if test x"$lt_cv_prog_compiler__b" = xyes; then
9369 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370 else
9371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372 fi
9373
9374 ;;
9375 esac
9376 fi
9377 if test "$with_gnu_ld" = no; then
9378 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9379 hardcode_libdir_separator=:
9380
9381 case $host_cpu in
9382 hppa*64*|ia64*)
9383 hardcode_direct=no
9384 hardcode_shlibpath_var=no
9385 ;;
9386 *)
9387 hardcode_direct=yes
9388 hardcode_direct_absolute=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390
9391 # hardcode_minus_L: Not really in the search PATH,
9392 # but as the default location of the library.
9393 hardcode_minus_L=yes
9394 ;;
9395 esac
9396 fi
9397 ;;
9398
9399 irix5* | irix6* | nonstopux*)
9400 if test "$GCC" = yes; then
9401 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'
9402 # Try to use the -exported_symbol ld option, if it does not
9403 # work, assume that -exports_file does not work either and
9404 # implicitly export all symbols.
9405 save_LDFLAGS="$LDFLAGS"
9406 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int foo(void) {}
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 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'
9413
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 LDFLAGS="$save_LDFLAGS"
9418 else
9419 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'
9420 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'
9421 fi
9422 archive_cmds_need_lc='no'
9423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424 hardcode_libdir_separator=:
9425 inherit_rpath=yes
9426 link_all_deplibs=yes
9427 ;;
9428
9429 netbsd*)
9430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9432 else
9433 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9434 fi
9435 hardcode_libdir_flag_spec='-R$libdir'
9436 hardcode_direct=yes
9437 hardcode_shlibpath_var=no
9438 ;;
9439
9440 newsos6)
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_direct=yes
9443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9444 hardcode_libdir_separator=:
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 *nto* | *qnx*)
9449 ;;
9450
9451 openbsd*)
9452 if test -f /usr/libexec/ld.so; then
9453 hardcode_direct=yes
9454 hardcode_shlibpath_var=no
9455 hardcode_direct_absolute=yes
9456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9460 export_dynamic_flag_spec='${wl}-E'
9461 else
9462 case $host_os in
9463 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-R$libdir'
9466 ;;
9467 *)
9468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9470 ;;
9471 esac
9472 fi
9473 else
9474 ld_shlibs=no
9475 fi
9476 ;;
9477
9478 os2*)
9479 hardcode_libdir_flag_spec='-L$libdir'
9480 hardcode_minus_L=yes
9481 allow_undefined_flag=unsupported
9482 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'
9483 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9484 ;;
9485
9486 osf3*)
9487 if test "$GCC" = yes; then
9488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9489 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'
9490 else
9491 allow_undefined_flag=' -expect_unresolved \*'
9492 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'
9493 fi
9494 archive_cmds_need_lc='no'
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 hardcode_libdir_separator=:
9497 ;;
9498
9499 osf4* | osf5*) # as osf3* with the addition of -msym flag
9500 if test "$GCC" = yes; then
9501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9502 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'
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 else
9505 allow_undefined_flag=' -expect_unresolved \*'
9506 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'
9507 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~
9508 $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'
9509
9510 # Both c and cxx compiler support -rpath directly
9511 hardcode_libdir_flag_spec='-rpath $libdir'
9512 fi
9513 archive_cmds_need_lc='no'
9514 hardcode_libdir_separator=:
9515 ;;
9516
9517 solaris*)
9518 no_undefined_flag=' -z defs'
9519 if test "$GCC" = yes; then
9520 wlarc='${wl}'
9521 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9523 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9524 else
9525 case `$CC -V 2>&1` in
9526 *"Compilers 5.0"*)
9527 wlarc=''
9528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9531 ;;
9532 *)
9533 wlarc='${wl}'
9534 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9536 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9537 ;;
9538 esac
9539 fi
9540 hardcode_libdir_flag_spec='-R$libdir'
9541 hardcode_shlibpath_var=no
9542 case $host_os in
9543 solaris2.[0-5] | solaris2.[0-5].*) ;;
9544 *)
9545 # The compiler driver will combine and reorder linker options,
9546 # but understands `-z linker_flag'. GCC discards it without `$wl',
9547 # but is careful enough not to reorder.
9548 # Supported since Solaris 2.6 (maybe 2.5.1?)
9549 if test "$GCC" = yes; then
9550 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9551 else
9552 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9553 fi
9554 ;;
9555 esac
9556 link_all_deplibs=yes
9557 ;;
9558
9559 sunos4*)
9560 if test "x$host_vendor" = xsequent; then
9561 # Use $CC to link under sequent, because it throws in some extra .o
9562 # files that make .init and .fini sections work.
9563 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9566 fi
9567 hardcode_libdir_flag_spec='-L$libdir'
9568 hardcode_direct=yes
9569 hardcode_minus_L=yes
9570 hardcode_shlibpath_var=no
9571 ;;
9572
9573 sysv4)
9574 case $host_vendor in
9575 sni)
9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_direct=yes # is this really true???
9578 ;;
9579 siemens)
9580 ## LD is ld it makes a PLAMLIB
9581 ## CC just makes a GrossModule.
9582 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9583 reload_cmds='$CC -r -o $output$reload_objs'
9584 hardcode_direct=no
9585 ;;
9586 motorola)
9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9589 ;;
9590 esac
9591 runpath_var='LD_RUN_PATH'
9592 hardcode_shlibpath_var=no
9593 ;;
9594
9595 sysv4.3*)
9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_shlibpath_var=no
9598 export_dynamic_flag_spec='-Bexport'
9599 ;;
9600
9601 sysv4*MP*)
9602 if test -d /usr/nec; then
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604 hardcode_shlibpath_var=no
9605 runpath_var=LD_RUN_PATH
9606 hardcode_runpath_var=yes
9607 ld_shlibs=yes
9608 fi
9609 ;;
9610
9611 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9612 no_undefined_flag='${wl}-z,text'
9613 archive_cmds_need_lc=no
9614 hardcode_shlibpath_var=no
9615 runpath_var='LD_RUN_PATH'
9616
9617 if test "$GCC" = yes; then
9618 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9620 else
9621 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 fi
9624 ;;
9625
9626 sysv5* | sco3.2v5* | sco5v6*)
9627 # Note: We can NOT use -z defs as we might desire, because we do not
9628 # link with -lc, and that would cause any symbols used from libc to
9629 # always be unresolved, which means just about no library would
9630 # ever link correctly. If we're not using GNU ld we use -z text
9631 # though, which does catch some bad symbols but isn't as heavy-handed
9632 # as -z defs.
9633 no_undefined_flag='${wl}-z,text'
9634 allow_undefined_flag='${wl}-z,nodefs'
9635 archive_cmds_need_lc=no
9636 hardcode_shlibpath_var=no
9637 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9638 hardcode_libdir_separator=':'
9639 link_all_deplibs=yes
9640 export_dynamic_flag_spec='${wl}-Bexport'
9641 runpath_var='LD_RUN_PATH'
9642
9643 if test "$GCC" = yes; then
9644 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 fi
9650 ;;
9651
9652 uts4*)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 *)
9659 ld_shlibs=no
9660 ;;
9661 esac
9662
9663 if test x$host_vendor = xsni; then
9664 case $host in
9665 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9666 export_dynamic_flag_spec='${wl}-Blargedynsym'
9667 ;;
9668 esac
9669 fi
9670 fi
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9673 $as_echo "$ld_shlibs" >&6; }
9674 test "$ld_shlibs" = no && can_build_shared=no
9675
9676 with_gnu_ld=$with_gnu_ld
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692 #
9693 # Do we need to explicitly link libc?
9694 #
9695 case "x$archive_cmds_need_lc" in
9696 x|xyes)
9697 # Assume -lc should be added
9698 archive_cmds_need_lc=yes
9699
9700 if test "$enable_shared" = yes && test "$GCC" = yes; then
9701 case $archive_cmds in
9702 *'~'*)
9703 # FIXME: we may have to deal with multi-command sequences.
9704 ;;
9705 '$CC '*)
9706 # Test whether the compiler implicitly links with -lc since on some
9707 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9708 # to ld, don't add -lc before -lgcc.
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9710 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9711 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 $RM conftest*
9715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9716
9717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9718 (eval $ac_compile) 2>&5
9719 ac_status=$?
9720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721 test $ac_status = 0; } 2>conftest.err; then
9722 soname=conftest
9723 lib=conftest
9724 libobjs=conftest.$ac_objext
9725 deplibs=
9726 wl=$lt_prog_compiler_wl
9727 pic_flag=$lt_prog_compiler_pic
9728 compiler_flags=-v
9729 linker_flags=-v
9730 verstring=
9731 output_objdir=.
9732 libname=conftest
9733 lt_save_allow_undefined_flag=$allow_undefined_flag
9734 allow_undefined_flag=
9735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9736 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9737 ac_status=$?
9738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9739 test $ac_status = 0; }
9740 then
9741 lt_cv_archive_cmds_need_lc=no
9742 else
9743 lt_cv_archive_cmds_need_lc=yes
9744 fi
9745 allow_undefined_flag=$lt_save_allow_undefined_flag
9746 else
9747 cat conftest.err 1>&5
9748 fi
9749 $RM conftest*
9750
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9753 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9754 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9755 ;;
9756 esac
9757 fi
9758 ;;
9759 esac
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9918 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9919
9920 if test "$GCC" = yes; then
9921 case $host_os in
9922 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9923 *) lt_awk_arg="/^libraries:/" ;;
9924 esac
9925 case $host_os in
9926 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9927 *) lt_sed_strip_eq="s,=/,/,g" ;;
9928 esac
9929 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9930 case $lt_search_path_spec in
9931 *\;*)
9932 # if the path contains ";" then we assume it to be the separator
9933 # otherwise default to the standard path separator (i.e. ":") - it is
9934 # assumed that no part of a normal pathname contains ";" but that should
9935 # okay in the real world where ";" in dirpaths is itself problematic.
9936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9937 ;;
9938 *)
9939 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9940 ;;
9941 esac
9942 # Ok, now we have the path, separated by spaces, we can step through it
9943 # and add multilib dir if necessary.
9944 lt_tmp_lt_search_path_spec=
9945 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9946 for lt_sys_path in $lt_search_path_spec; do
9947 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9949 else
9950 test -d "$lt_sys_path" && \
9951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9952 fi
9953 done
9954 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9955 BEGIN {RS=" "; FS="/|\n";} {
9956 lt_foo="";
9957 lt_count=0;
9958 for (lt_i = NF; lt_i > 0; lt_i--) {
9959 if ($lt_i != "" && $lt_i != ".") {
9960 if ($lt_i == "..") {
9961 lt_count++;
9962 } else {
9963 if (lt_count == 0) {
9964 lt_foo="/" $lt_i lt_foo;
9965 } else {
9966 lt_count--;
9967 }
9968 }
9969 }
9970 }
9971 if (lt_foo != "") { lt_freq[lt_foo]++; }
9972 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9973 }'`
9974 # AWK program above erroneously prepends '/' to C:/dos/paths
9975 # for these hosts.
9976 case $host_os in
9977 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9978 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9979 esac
9980 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9981 else
9982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9983 fi
9984 library_names_spec=
9985 libname_spec='lib$name'
9986 soname_spec=
9987 shrext_cmds=".so"
9988 postinstall_cmds=
9989 postuninstall_cmds=
9990 finish_cmds=
9991 finish_eval=
9992 shlibpath_var=
9993 shlibpath_overrides_runpath=unknown
9994 version_type=none
9995 dynamic_linker="$host_os ld.so"
9996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9997 need_lib_prefix=unknown
9998 hardcode_into_libs=no
9999
10000 # when you set need_version to no, make sure it does not cause -set_version
10001 # flags to be left without arguments
10002 need_version=unknown
10003
10004 case $host_os in
10005 aix3*)
10006 version_type=linux
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10008 shlibpath_var=LIBPATH
10009
10010 # AIX 3 has no versioning support, so we append a major version to the name.
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 ;;
10013
10014 aix[4-9]*)
10015 version_type=linux
10016 need_lib_prefix=no
10017 need_version=no
10018 hardcode_into_libs=yes
10019 if test "$host_cpu" = ia64; then
10020 # AIX 5 supports IA64
10021 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 else
10024 # With GCC up to 2.95.x, collect2 would create an import file
10025 # for dependence libraries. The import file would start with
10026 # the line `#! .'. This would cause the generated library to
10027 # depend on `.', always an invalid library. This was fixed in
10028 # development snapshots of GCC prior to 3.0.
10029 case $host_os in
10030 aix4 | aix4.[01] | aix4.[01].*)
10031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10032 echo ' yes '
10033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10034 :
10035 else
10036 can_build_shared=no
10037 fi
10038 ;;
10039 esac
10040 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10041 # soname into executable. Probably we can add versioning support to
10042 # collect2, so additional links can be useful in future.
10043 if test "$aix_use_runtimelinking" = yes; then
10044 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10045 # instead of lib<name>.a to let people know that these are not
10046 # typical AIX shared libraries.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 else
10049 # We preserve .a as extension for shared libraries through AIX4.2
10050 # and later when we are not doing run time linking.
10051 library_names_spec='${libname}${release}.a $libname.a'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 fi
10054 shlibpath_var=LIBPATH
10055 fi
10056 ;;
10057
10058 amigaos*)
10059 case $host_cpu in
10060 powerpc)
10061 # Since July 2007 AmigaOS4 officially supports .so libraries.
10062 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 ;;
10065 m68k)
10066 library_names_spec='$libname.ixlibrary $libname.a'
10067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10068 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'
10069 ;;
10070 esac
10071 ;;
10072
10073 beos*)
10074 library_names_spec='${libname}${shared_ext}'
10075 dynamic_linker="$host_os ld.so"
10076 shlibpath_var=LIBRARY_PATH
10077 ;;
10078
10079 bsdi[45]*)
10080 version_type=linux
10081 need_version=no
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10088 # the default ld.so.conf also contains /usr/contrib/lib and
10089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10090 # libtool to hard-code these into programs
10091 ;;
10092
10093 cygwin* | mingw* | pw32* | cegcc*)
10094 version_type=windows
10095 shrext_cmds=".dll"
10096 need_version=no
10097 need_lib_prefix=no
10098
10099 case $GCC,$host_os in
10100 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10101 library_names_spec='$libname.dll.a'
10102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10103 postinstall_cmds='base_file=`basename \${file}`~
10104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10105 dldir=$destdir/`dirname \$dlpath`~
10106 test -d \$dldir || mkdir -p \$dldir~
10107 $install_prog $dir/$dlname \$dldir/$dlname~
10108 chmod a+x \$dldir/$dlname~
10109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10111 fi'
10112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10113 dlpath=$dir/\$dldll~
10114 $RM \$dlpath'
10115 shlibpath_overrides_runpath=yes
10116
10117 case $host_os in
10118 cygwin*)
10119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121
10122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10123 ;;
10124 mingw* | cegcc*)
10125 # MinGW DLLs use traditional 'lib' prefix
10126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10127 ;;
10128 pw32*)
10129 # pw32 DLLs use 'pw' prefix rather than 'lib'
10130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10131 ;;
10132 esac
10133 ;;
10134
10135 *)
10136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10137 ;;
10138 esac
10139 dynamic_linker='Win32 ld.exe'
10140 # FIXME: first we should search . and the directory the executable is in
10141 shlibpath_var=PATH
10142 ;;
10143
10144 darwin* | rhapsody*)
10145 dynamic_linker="$host_os dyld"
10146 version_type=darwin
10147 need_lib_prefix=no
10148 need_version=no
10149 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10150 soname_spec='${libname}${release}${major}$shared_ext'
10151 shlibpath_overrides_runpath=yes
10152 shlibpath_var=DYLD_LIBRARY_PATH
10153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10154
10155 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10157 ;;
10158
10159 dgux*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 ;;
10167
10168 freebsd* | dragonfly*)
10169 # DragonFly does not have aout. When/if they implement a new
10170 # versioning mechanism, adjust this.
10171 if test -x /usr/bin/objformat; then
10172 objformat=`/usr/bin/objformat`
10173 else
10174 case $host_os in
10175 freebsd[23].*) objformat=aout ;;
10176 *) objformat=elf ;;
10177 esac
10178 fi
10179 version_type=freebsd-$objformat
10180 case $version_type in
10181 freebsd-elf*)
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10183 need_version=no
10184 need_lib_prefix=no
10185 ;;
10186 freebsd-*)
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10188 need_version=yes
10189 ;;
10190 esac
10191 shlibpath_var=LD_LIBRARY_PATH
10192 case $host_os in
10193 freebsd2.*)
10194 shlibpath_overrides_runpath=yes
10195 ;;
10196 freebsd3.[01]* | freebsdelf3.[01]*)
10197 shlibpath_overrides_runpath=yes
10198 hardcode_into_libs=yes
10199 ;;
10200 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10201 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10202 shlibpath_overrides_runpath=no
10203 hardcode_into_libs=yes
10204 ;;
10205 *) # from 4.6 on, and DragonFly
10206 shlibpath_overrides_runpath=yes
10207 hardcode_into_libs=yes
10208 ;;
10209 esac
10210 ;;
10211
10212 gnu*)
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 hardcode_into_libs=yes
10220 ;;
10221
10222 haiku*)
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 dynamic_linker="$host_os runtime_loader"
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10232 hardcode_into_libs=yes
10233 ;;
10234
10235 hpux9* | hpux10* | hpux11*)
10236 # Give a soname corresponding to the major version so that dld.sl refuses to
10237 # link against other versions.
10238 version_type=sunos
10239 need_lib_prefix=no
10240 need_version=no
10241 case $host_cpu in
10242 ia64*)
10243 shrext_cmds='.so'
10244 hardcode_into_libs=yes
10245 dynamic_linker="$host_os dld.so"
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 if test "X$HPUX_IA64_MODE" = X32; then
10251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10252 else
10253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10254 fi
10255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10256 ;;
10257 hppa*64*)
10258 shrext_cmds='.sl'
10259 hardcode_into_libs=yes
10260 dynamic_linker="$host_os dld.sl"
10261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10267 ;;
10268 *)
10269 shrext_cmds='.sl'
10270 dynamic_linker="$host_os dld.sl"
10271 shlibpath_var=SHLIB_PATH
10272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 ;;
10276 esac
10277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10278 postinstall_cmds='chmod 555 $lib'
10279 # or fails outright, so override atomically:
10280 install_override_mode=555
10281 ;;
10282
10283 interix[3-9]*)
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10293 ;;
10294
10295 irix5* | irix6* | nonstopux*)
10296 case $host_os in
10297 nonstopux*) version_type=nonstopux ;;
10298 *)
10299 if test "$lt_cv_prog_gnu_ld" = yes; then
10300 version_type=linux
10301 else
10302 version_type=irix
10303 fi ;;
10304 esac
10305 need_lib_prefix=no
10306 need_version=no
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10309 case $host_os in
10310 irix5* | nonstopux*)
10311 libsuff= shlibsuff=
10312 ;;
10313 *)
10314 case $LD in # libtool.m4 will add one of these switches to LD
10315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10316 libsuff= shlibsuff= libmagic=32-bit;;
10317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10318 libsuff=32 shlibsuff=N32 libmagic=N32;;
10319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10321 *) libsuff= shlibsuff= libmagic=never-match;;
10322 esac
10323 ;;
10324 esac
10325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10326 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10329 hardcode_into_libs=yes
10330 ;;
10331
10332 # No shared lib support for Linux oldld, aout, or coff.
10333 linux*oldld* | linux*aout* | linux*coff*)
10334 dynamic_linker=no
10335 ;;
10336
10337 # This must be Linux ELF.
10338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10339 version_type=linux
10340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=no
10347
10348 # Some binutils ld are patched to set DT_RUNPATH
10349 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 lt_cv_shlibpath_overrides_runpath=no
10353 save_LDFLAGS=$LDFLAGS
10354 save_libdir=$libdir
10355 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10356 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10370 lt_cv_shlibpath_overrides_runpath=yes
10371 fi
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LDFLAGS=$save_LDFLAGS
10376 libdir=$save_libdir
10377
10378 fi
10379
10380 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10381
10382 # This implies no fast_install, which is unacceptable.
10383 # Some rework will be needed to allow for fast_install
10384 # before this can be enabled.
10385 hardcode_into_libs=yes
10386
10387 # Append ld.so.conf contents to the search path
10388 if test -f /etc/ld.so.conf; then
10389 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' ' '`
10390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10391 fi
10392
10393 # We used to test for /lib/ld.so.1 and disable shared libraries on
10394 # powerpc, because MkLinux only supported shared libraries with the
10395 # GNU dynamic linker. Since this was broken with cross compilers,
10396 # most powerpc-linux boxes support dynamic linking these days and
10397 # people can always --disable-shared, the test was removed, and we
10398 # assume the GNU/Linux dynamic linker is in use.
10399 dynamic_linker='GNU/Linux ld.so'
10400 ;;
10401
10402 netbsd*)
10403 version_type=sunos
10404 need_lib_prefix=no
10405 need_version=no
10406 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10409 dynamic_linker='NetBSD (a.out) ld.so'
10410 else
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 dynamic_linker='NetBSD ld.elf_so'
10414 fi
10415 shlibpath_var=LD_LIBRARY_PATH
10416 shlibpath_overrides_runpath=yes
10417 hardcode_into_libs=yes
10418 ;;
10419
10420 newsos6)
10421 version_type=linux
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=yes
10425 ;;
10426
10427 *nto* | *qnx*)
10428 version_type=qnx
10429 need_lib_prefix=no
10430 need_version=no
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=no
10435 hardcode_into_libs=yes
10436 dynamic_linker='ldqnx.so'
10437 ;;
10438
10439 openbsd*)
10440 version_type=sunos
10441 sys_lib_dlsearch_path_spec="/usr/lib"
10442 need_lib_prefix=no
10443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10444 case $host_os in
10445 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10446 *) need_version=no ;;
10447 esac
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10452 case $host_os in
10453 openbsd2.[89] | openbsd2.[89].*)
10454 shlibpath_overrides_runpath=no
10455 ;;
10456 *)
10457 shlibpath_overrides_runpath=yes
10458 ;;
10459 esac
10460 else
10461 shlibpath_overrides_runpath=yes
10462 fi
10463 ;;
10464
10465 os2*)
10466 libname_spec='$name'
10467 shrext_cmds=".dll"
10468 need_lib_prefix=no
10469 library_names_spec='$libname${shared_ext} $libname.a'
10470 dynamic_linker='OS/2 ld.exe'
10471 shlibpath_var=LIBPATH
10472 ;;
10473
10474 osf3* | osf4* | osf5*)
10475 version_type=osf
10476 need_lib_prefix=no
10477 need_version=no
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10483 ;;
10484
10485 rdos*)
10486 dynamic_linker=no
10487 ;;
10488
10489 solaris*)
10490 version_type=linux
10491 need_lib_prefix=no
10492 need_version=no
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 # ldd complains unless libraries are executable
10499 postinstall_cmds='chmod +x $lib'
10500 ;;
10501
10502 sunos4*)
10503 version_type=sunos
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 if test "$with_gnu_ld" = yes; then
10509 need_lib_prefix=no
10510 fi
10511 need_version=yes
10512 ;;
10513
10514 sysv4 | sysv4.3*)
10515 version_type=linux
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 case $host_vendor in
10520 sni)
10521 shlibpath_overrides_runpath=no
10522 need_lib_prefix=no
10523 runpath_var=LD_RUN_PATH
10524 ;;
10525 siemens)
10526 need_lib_prefix=no
10527 ;;
10528 motorola)
10529 need_lib_prefix=no
10530 need_version=no
10531 shlibpath_overrides_runpath=no
10532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10533 ;;
10534 esac
10535 ;;
10536
10537 sysv4*MP*)
10538 if test -d /usr/nec ;then
10539 version_type=linux
10540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10541 soname_spec='$libname${shared_ext}.$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 fi
10544 ;;
10545
10546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10547 version_type=freebsd-elf
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=yes
10554 hardcode_into_libs=yes
10555 if test "$with_gnu_ld" = yes; then
10556 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10557 else
10558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10559 case $host_os in
10560 sco3.2v5*)
10561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10562 ;;
10563 esac
10564 fi
10565 sys_lib_dlsearch_path_spec='/usr/lib'
10566 ;;
10567
10568 tpf*)
10569 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=no
10576 hardcode_into_libs=yes
10577 ;;
10578
10579 uts4*)
10580 version_type=linux
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 ;;
10585
10586 *)
10587 dynamic_linker=no
10588 ;;
10589 esac
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10591 $as_echo "$dynamic_linker" >&6; }
10592 test "$dynamic_linker" = no && can_build_shared=no
10593
10594 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10595 if test "$GCC" = yes; then
10596 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10597 fi
10598
10599 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10600 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10601 fi
10602 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10603 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10604 fi
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10698 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10699 hardcode_action=
10700 if test -n "$hardcode_libdir_flag_spec" ||
10701 test -n "$runpath_var" ||
10702 test "X$hardcode_automatic" = "Xyes" ; then
10703
10704 # We can hardcode non-existent directories.
10705 if test "$hardcode_direct" != no &&
10706 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10707 # have to relink, otherwise we might link with an installed library
10708 # when we should be linking with a yet-to-be-installed one
10709 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10710 test "$hardcode_minus_L" != no; then
10711 # Linking always hardcodes the temporary library directory.
10712 hardcode_action=relink
10713 else
10714 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10715 hardcode_action=immediate
10716 fi
10717 else
10718 # We cannot hardcode anything, or else we can only hardcode existing
10719 # directories.
10720 hardcode_action=unsupported
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10723 $as_echo "$hardcode_action" >&6; }
10724
10725 if test "$hardcode_action" = relink ||
10726 test "$inherit_rpath" = yes; then
10727 # Fast installation is not supported
10728 enable_fast_install=no
10729 elif test "$shlibpath_overrides_runpath" = yes ||
10730 test "$enable_shared" = no; then
10731 # Fast installation is not necessary
10732 enable_fast_install=needless
10733 fi
10734
10735
10736
10737
10738
10739
10740 if test "x$enable_dlopen" != xyes; then
10741 enable_dlopen=unknown
10742 enable_dlopen_self=unknown
10743 enable_dlopen_self_static=unknown
10744 else
10745 lt_cv_dlopen=no
10746 lt_cv_dlopen_libs=
10747
10748 case $host_os in
10749 beos*)
10750 lt_cv_dlopen="load_add_on"
10751 lt_cv_dlopen_libs=
10752 lt_cv_dlopen_self=yes
10753 ;;
10754
10755 mingw* | pw32* | cegcc*)
10756 lt_cv_dlopen="LoadLibrary"
10757 lt_cv_dlopen_libs=
10758 ;;
10759
10760 cygwin*)
10761 lt_cv_dlopen="dlopen"
10762 lt_cv_dlopen_libs=
10763 ;;
10764
10765 darwin*)
10766 # if libdl is installed we need to link against it
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10768 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-ldl $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char dlopen ();
10784 int
10785 main ()
10786 {
10787 return dlopen ();
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_dl_dlopen=yes
10794 else
10795 ac_cv_lib_dl_dlopen=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10802 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10803 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10805 else
10806
10807 lt_cv_dlopen="dyld"
10808 lt_cv_dlopen_libs=
10809 lt_cv_dlopen_self=yes
10810
10811 fi
10812
10813 ;;
10814
10815 *)
10816 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10817 if test "x$ac_cv_func_shl_load" = x""yes; then :
10818 lt_cv_dlopen="shl_load"
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldld $LIBS"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char shl_load ();
10837 int
10838 main ()
10839 {
10840 return shl_load ();
10841 ;
10842 return 0;
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_link "$LINENO"; then :
10846 ac_cv_lib_dld_shl_load=yes
10847 else
10848 ac_cv_lib_dld_shl_load=no
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10855 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10856 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10857 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10858 else
10859 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10860 if test "x$ac_cv_func_dlopen" = x""yes; then :
10861 lt_cv_dlopen="dlopen"
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10864 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-ldl $LIBS"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char dlopen ();
10880 int
10881 main ()
10882 {
10883 return dlopen ();
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_dl_dlopen=yes
10890 else
10891 ac_cv_lib_dl_dlopen=no
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10896 fi
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10898 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10899 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10903 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10904 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-lsvld $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_svld_dlopen=yes
10929 else
10930 ac_cv_lib_svld_dlopen=no
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10937 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10938 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10942 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10943 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldld $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char dld_link ();
10958 int
10959 main ()
10960 {
10961 return dld_link ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_dld_dld_link=yes
10968 else
10969 ac_cv_lib_dld_dld_link=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10976 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10977 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10978 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10979 fi
10980
10981
10982 fi
10983
10984
10985 fi
10986
10987
10988 fi
10989
10990
10991 fi
10992
10993
10994 fi
10995
10996 ;;
10997 esac
10998
10999 if test "x$lt_cv_dlopen" != xno; then
11000 enable_dlopen=yes
11001 else
11002 enable_dlopen=no
11003 fi
11004
11005 case $lt_cv_dlopen in
11006 dlopen)
11007 save_CPPFLAGS="$CPPFLAGS"
11008 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11009
11010 save_LDFLAGS="$LDFLAGS"
11011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11012
11013 save_LIBS="$LIBS"
11014 LIBS="$lt_cv_dlopen_libs $LIBS"
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11017 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11018 if test "${lt_cv_dlopen_self+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test "$cross_compiling" = yes; then :
11022 lt_cv_dlopen_self=cross
11023 else
11024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11025 lt_status=$lt_dlunknown
11026 cat > conftest.$ac_ext <<_LT_EOF
11027 #line 11027 "configure"
11028 #include "confdefs.h"
11029
11030 #if HAVE_DLFCN_H
11031 #include <dlfcn.h>
11032 #endif
11033
11034 #include <stdio.h>
11035
11036 #ifdef RTLD_GLOBAL
11037 # define LT_DLGLOBAL RTLD_GLOBAL
11038 #else
11039 # ifdef DL_GLOBAL
11040 # define LT_DLGLOBAL DL_GLOBAL
11041 # else
11042 # define LT_DLGLOBAL 0
11043 # endif
11044 #endif
11045
11046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11047 find out it does not work in some platform. */
11048 #ifndef LT_DLLAZY_OR_NOW
11049 # ifdef RTLD_LAZY
11050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11051 # else
11052 # ifdef DL_LAZY
11053 # define LT_DLLAZY_OR_NOW DL_LAZY
11054 # else
11055 # ifdef RTLD_NOW
11056 # define LT_DLLAZY_OR_NOW RTLD_NOW
11057 # else
11058 # ifdef DL_NOW
11059 # define LT_DLLAZY_OR_NOW DL_NOW
11060 # else
11061 # define LT_DLLAZY_OR_NOW 0
11062 # endif
11063 # endif
11064 # endif
11065 # endif
11066 #endif
11067
11068 /* When -fvisbility=hidden is used, assume the code has been annotated
11069 correspondingly for the symbols needed. */
11070 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11071 void fnord () __attribute__((visibility("default")));
11072 #endif
11073
11074 void fnord () { int i=42; }
11075 int main ()
11076 {
11077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11078 int status = $lt_dlunknown;
11079
11080 if (self)
11081 {
11082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11083 else
11084 {
11085 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11086 else puts (dlerror ());
11087 }
11088 /* dlclose (self); */
11089 }
11090 else
11091 puts (dlerror ());
11092
11093 return status;
11094 }
11095 _LT_EOF
11096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11097 (eval $ac_link) 2>&5
11098 ac_status=$?
11099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11100 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11101 (./conftest; exit; ) >&5 2>/dev/null
11102 lt_status=$?
11103 case x$lt_status in
11104 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11105 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11106 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11107 esac
11108 else :
11109 # compilation failed
11110 lt_cv_dlopen_self=no
11111 fi
11112 fi
11113 rm -fr conftest*
11114
11115
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11118 $as_echo "$lt_cv_dlopen_self" >&6; }
11119
11120 if test "x$lt_cv_dlopen_self" = xyes; then
11121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11123 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11124 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test "$cross_compiling" = yes; then :
11128 lt_cv_dlopen_self_static=cross
11129 else
11130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11131 lt_status=$lt_dlunknown
11132 cat > conftest.$ac_ext <<_LT_EOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135
11136 #if HAVE_DLFCN_H
11137 #include <dlfcn.h>
11138 #endif
11139
11140 #include <stdio.h>
11141
11142 #ifdef RTLD_GLOBAL
11143 # define LT_DLGLOBAL RTLD_GLOBAL
11144 #else
11145 # ifdef DL_GLOBAL
11146 # define LT_DLGLOBAL DL_GLOBAL
11147 # else
11148 # define LT_DLGLOBAL 0
11149 # endif
11150 #endif
11151
11152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11153 find out it does not work in some platform. */
11154 #ifndef LT_DLLAZY_OR_NOW
11155 # ifdef RTLD_LAZY
11156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11157 # else
11158 # ifdef DL_LAZY
11159 # define LT_DLLAZY_OR_NOW DL_LAZY
11160 # else
11161 # ifdef RTLD_NOW
11162 # define LT_DLLAZY_OR_NOW RTLD_NOW
11163 # else
11164 # ifdef DL_NOW
11165 # define LT_DLLAZY_OR_NOW DL_NOW
11166 # else
11167 # define LT_DLLAZY_OR_NOW 0
11168 # endif
11169 # endif
11170 # endif
11171 # endif
11172 #endif
11173
11174 /* When -fvisbility=hidden is used, assume the code has been annotated
11175 correspondingly for the symbols needed. */
11176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11177 void fnord () __attribute__((visibility("default")));
11178 #endif
11179
11180 void fnord () { int i=42; }
11181 int main ()
11182 {
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11185
11186 if (self)
11187 {
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11189 else
11190 {
11191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192 else puts (dlerror ());
11193 }
11194 /* dlclose (self); */
11195 }
11196 else
11197 puts (dlerror ());
11198
11199 return status;
11200 }
11201 _LT_EOF
11202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11203 (eval $ac_link) 2>&5
11204 ac_status=$?
11205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11207 (./conftest; exit; ) >&5 2>/dev/null
11208 lt_status=$?
11209 case x$lt_status in
11210 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11213 esac
11214 else :
11215 # compilation failed
11216 lt_cv_dlopen_self_static=no
11217 fi
11218 fi
11219 rm -fr conftest*
11220
11221
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11224 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11225 fi
11226
11227 CPPFLAGS="$save_CPPFLAGS"
11228 LDFLAGS="$save_LDFLAGS"
11229 LIBS="$save_LIBS"
11230 ;;
11231 esac
11232
11233 case $lt_cv_dlopen_self in
11234 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235 *) enable_dlopen_self=unknown ;;
11236 esac
11237
11238 case $lt_cv_dlopen_self_static in
11239 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240 *) enable_dlopen_self_static=unknown ;;
11241 esac
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260 striplib=
11261 old_striplib=
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11263 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11264 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11266 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; }
11269 else
11270 # FIXME - insert some real tests, host_os isn't really good enough
11271 case $host_os in
11272 darwin*)
11273 if test -n "$STRIP" ; then
11274 striplib="$STRIP -x"
11275 old_striplib="$STRIP -S"
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11277 $as_echo "yes" >&6; }
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280 $as_echo "no" >&6; }
11281 fi
11282 ;;
11283 *)
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 ;;
11287 esac
11288 fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301 # Report which library types will actually be built
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11303 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11305 $as_echo "$can_build_shared" >&6; }
11306
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11308 $as_echo_n "checking whether to build shared libraries... " >&6; }
11309 test "$can_build_shared" = "no" && enable_shared=no
11310
11311 # On AIX, shared libraries and static libraries use the same namespace, and
11312 # are all built from PIC.
11313 case $host_os in
11314 aix3*)
11315 test "$enable_shared" = yes && enable_static=no
11316 if test -n "$RANLIB"; then
11317 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11318 postinstall_cmds='$RANLIB $lib'
11319 fi
11320 ;;
11321
11322 aix[4-9]*)
11323 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11324 test "$enable_shared" = yes && enable_static=no
11325 fi
11326 ;;
11327 esac
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11329 $as_echo "$enable_shared" >&6; }
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11332 $as_echo_n "checking whether to build static libraries... " >&6; }
11333 # Make sure either enable_shared or enable_static is yes.
11334 test "$enable_shared" = yes || enable_static=yes
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11336 $as_echo "$enable_static" >&6; }
11337
11338
11339
11340
11341 fi
11342 ac_ext=c
11343 ac_cpp='$CPP $CPPFLAGS'
11344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11347
11348 CC="$lt_save_CC"
11349
11350 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11351 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11352 (test "X$CXX" != "Xg++"))) ; then
11353 ac_ext=cpp
11354 ac_cpp='$CXXCPP $CPPFLAGS'
11355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11359 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11360 if test -z "$CXXCPP"; then
11361 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 # Double quotes because CXXCPP needs to be expanded
11365 for CXXCPP in "$CXX -E" "/lib/cpp"
11366 do
11367 ac_preproc_ok=false
11368 for ac_cxx_preproc_warn_flag in '' yes
11369 do
11370 # Use a header file that comes with gcc, so configuring glibc
11371 # with a fresh cross-compiler works.
11372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 # <limits.h> exists even on freestanding compilers.
11374 # On the NeXT, cc -E runs the code through the compiler's parser,
11375 # not just through cpp. "Syntax error" is here to catch this case.
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #ifdef __STDC__
11379 # include <limits.h>
11380 #else
11381 # include <assert.h>
11382 #endif
11383 Syntax error
11384 _ACEOF
11385 if ac_fn_cxx_try_cpp "$LINENO"; then :
11386
11387 else
11388 # Broken: fails on valid input.
11389 continue
11390 fi
11391 rm -f conftest.err conftest.$ac_ext
11392
11393 # OK, works on sane cases. Now check whether nonexistent headers
11394 # can be detected and how.
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <ac_nonexistent.h>
11398 _ACEOF
11399 if ac_fn_cxx_try_cpp "$LINENO"; then :
11400 # Broken: success on invalid input.
11401 continue
11402 else
11403 # Passes both tests.
11404 ac_preproc_ok=:
11405 break
11406 fi
11407 rm -f conftest.err conftest.$ac_ext
11408
11409 done
11410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11411 rm -f conftest.err conftest.$ac_ext
11412 if $ac_preproc_ok; then :
11413 break
11414 fi
11415
11416 done
11417 ac_cv_prog_CXXCPP=$CXXCPP
11418
11419 fi
11420 CXXCPP=$ac_cv_prog_CXXCPP
11421 else
11422 ac_cv_prog_CXXCPP=$CXXCPP
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11425 $as_echo "$CXXCPP" >&6; }
11426 ac_preproc_ok=false
11427 for ac_cxx_preproc_warn_flag in '' yes
11428 do
11429 # Use a header file that comes with gcc, so configuring glibc
11430 # with a fresh cross-compiler works.
11431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 # <limits.h> exists even on freestanding compilers.
11433 # On the NeXT, cc -E runs the code through the compiler's parser,
11434 # not just through cpp. "Syntax error" is here to catch this case.
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437 #ifdef __STDC__
11438 # include <limits.h>
11439 #else
11440 # include <assert.h>
11441 #endif
11442 Syntax error
11443 _ACEOF
11444 if ac_fn_cxx_try_cpp "$LINENO"; then :
11445
11446 else
11447 # Broken: fails on valid input.
11448 continue
11449 fi
11450 rm -f conftest.err conftest.$ac_ext
11451
11452 # OK, works on sane cases. Now check whether nonexistent headers
11453 # can be detected and how.
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #include <ac_nonexistent.h>
11457 _ACEOF
11458 if ac_fn_cxx_try_cpp "$LINENO"; then :
11459 # Broken: success on invalid input.
11460 continue
11461 else
11462 # Passes both tests.
11463 ac_preproc_ok=:
11464 break
11465 fi
11466 rm -f conftest.err conftest.$ac_ext
11467
11468 done
11469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11470 rm -f conftest.err conftest.$ac_ext
11471 if $ac_preproc_ok; then :
11472
11473 else
11474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11476 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11477 See \`config.log' for more details." "$LINENO" 5; }
11478 fi
11479
11480 ac_ext=c
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486 else
11487 _lt_caught_CXX_error=yes
11488 fi
11489
11490 ac_ext=cpp
11491 ac_cpp='$CXXCPP $CPPFLAGS'
11492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11495
11496 archive_cmds_need_lc_CXX=no
11497 allow_undefined_flag_CXX=
11498 always_export_symbols_CXX=no
11499 archive_expsym_cmds_CXX=
11500 compiler_needs_object_CXX=no
11501 export_dynamic_flag_spec_CXX=
11502 hardcode_direct_CXX=no
11503 hardcode_direct_absolute_CXX=no
11504 hardcode_libdir_flag_spec_CXX=
11505 hardcode_libdir_flag_spec_ld_CXX=
11506 hardcode_libdir_separator_CXX=
11507 hardcode_minus_L_CXX=no
11508 hardcode_shlibpath_var_CXX=unsupported
11509 hardcode_automatic_CXX=no
11510 inherit_rpath_CXX=no
11511 module_cmds_CXX=
11512 module_expsym_cmds_CXX=
11513 link_all_deplibs_CXX=unknown
11514 old_archive_cmds_CXX=$old_archive_cmds
11515 reload_flag_CXX=$reload_flag
11516 reload_cmds_CXX=$reload_cmds
11517 no_undefined_flag_CXX=
11518 whole_archive_flag_spec_CXX=
11519 enable_shared_with_static_runtimes_CXX=no
11520
11521 # Source file extension for C++ test sources.
11522 ac_ext=cpp
11523
11524 # Object file extension for compiled C++ test sources.
11525 objext=o
11526 objext_CXX=$objext
11527
11528 # No sense in running all these tests if we already determined that
11529 # the CXX compiler isn't working. Some variables (like enable_shared)
11530 # are currently assumed to apply to all compilers on this platform,
11531 # and will be corrupted by setting them based on a non-working compiler.
11532 if test "$_lt_caught_CXX_error" != yes; then
11533 # Code to be used in simple compile tests
11534 lt_simple_compile_test_code="int some_variable = 0;"
11535
11536 # Code to be used in simple link tests
11537 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11538
11539 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11540
11541
11542
11543
11544
11545
11546 # If no C compiler was specified, use CC.
11547 LTCC=${LTCC-"$CC"}
11548
11549 # If no C compiler flags were specified, use CFLAGS.
11550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11551
11552 # Allow CC to be a program name with arguments.
11553 compiler=$CC
11554
11555
11556 # save warnings/boilerplate of simple test code
11557 ac_outfile=conftest.$ac_objext
11558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11560 _lt_compiler_boilerplate=`cat conftest.err`
11561 $RM conftest*
11562
11563 ac_outfile=conftest.$ac_objext
11564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11566 _lt_linker_boilerplate=`cat conftest.err`
11567 $RM -r conftest*
11568
11569
11570 # Allow CC to be a program name with arguments.
11571 lt_save_CC=$CC
11572 lt_save_LD=$LD
11573 lt_save_GCC=$GCC
11574 GCC=$GXX
11575 lt_save_with_gnu_ld=$with_gnu_ld
11576 lt_save_path_LD=$lt_cv_path_LD
11577 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11578 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11579 else
11580 $as_unset lt_cv_prog_gnu_ld
11581 fi
11582 if test -n "${lt_cv_path_LDCXX+set}"; then
11583 lt_cv_path_LD=$lt_cv_path_LDCXX
11584 else
11585 $as_unset lt_cv_path_LD
11586 fi
11587 test -z "${LDCXX+set}" || LD=$LDCXX
11588 CC=${CXX-"c++"}
11589 compiler=$CC
11590 compiler_CXX=$CC
11591 for cc_temp in $compiler""; do
11592 case $cc_temp in
11593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11595 \-*) ;;
11596 *) break;;
11597 esac
11598 done
11599 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11600
11601
11602 if test -n "$compiler"; then
11603 # We don't want -fno-exception when compiling C++ code, so set the
11604 # no_builtin_flag separately
11605 if test "$GXX" = yes; then
11606 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11607 else
11608 lt_prog_compiler_no_builtin_flag_CXX=
11609 fi
11610
11611 if test "$GXX" = yes; then
11612 # Set up default GNU C++ configuration
11613
11614
11615
11616 # Check whether --with-gnu-ld was given.
11617 if test "${with_gnu_ld+set}" = set; then :
11618 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11619 else
11620 with_gnu_ld=no
11621 fi
11622
11623 ac_prog=ld
11624 if test "$GCC" = yes; then
11625 # Check if gcc -print-prog-name=ld gives a path.
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11627 $as_echo_n "checking for ld used by $CC... " >&6; }
11628 case $host in
11629 *-*-mingw*)
11630 # gcc leaves a trailing carriage return which upsets mingw
11631 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11632 *)
11633 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11634 esac
11635 case $ac_prog in
11636 # Accept absolute paths.
11637 [\\/]* | ?:[\\/]*)
11638 re_direlt='/[^/][^/]*/\.\./'
11639 # Canonicalize the pathname of ld
11640 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11641 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11642 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11643 done
11644 test -z "$LD" && LD="$ac_prog"
11645 ;;
11646 "")
11647 # If it fails, then pretend we aren't using GCC.
11648 ac_prog=ld
11649 ;;
11650 *)
11651 # If it is relative, then search for the first ld in PATH.
11652 with_gnu_ld=unknown
11653 ;;
11654 esac
11655 elif test "$with_gnu_ld" = yes; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11657 $as_echo_n "checking for GNU ld... " >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11660 $as_echo_n "checking for non-GNU ld... " >&6; }
11661 fi
11662 if test "${lt_cv_path_LD+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 if test -z "$LD"; then
11666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11667 for ac_dir in $PATH; do
11668 IFS="$lt_save_ifs"
11669 test -z "$ac_dir" && ac_dir=.
11670 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11671 lt_cv_path_LD="$ac_dir/$ac_prog"
11672 # Check to see if the program is GNU ld. I'd rather use --version,
11673 # but apparently some variants of GNU ld only accept -v.
11674 # Break only if it was the GNU/non-GNU ld that we prefer.
11675 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11676 *GNU* | *'with BFD'*)
11677 test "$with_gnu_ld" != no && break
11678 ;;
11679 *)
11680 test "$with_gnu_ld" != yes && break
11681 ;;
11682 esac
11683 fi
11684 done
11685 IFS="$lt_save_ifs"
11686 else
11687 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11688 fi
11689 fi
11690
11691 LD="$lt_cv_path_LD"
11692 if test -n "$LD"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11694 $as_echo "$LD" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11701 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11702 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11706 case `$LD -v 2>&1 </dev/null` in
11707 *GNU* | *'with BFD'*)
11708 lt_cv_prog_gnu_ld=yes
11709 ;;
11710 *)
11711 lt_cv_prog_gnu_ld=no
11712 ;;
11713 esac
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11716 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11717 with_gnu_ld=$lt_cv_prog_gnu_ld
11718
11719
11720
11721
11722
11723
11724
11725 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11726 # archiving commands below assume that GNU ld is being used.
11727 if test "$with_gnu_ld" = yes; then
11728 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11729 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11730
11731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11733
11734 # If archive_cmds runs LD, not CC, wlarc should be empty
11735 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11736 # investigate it a little bit more. (MM)
11737 wlarc='${wl}'
11738
11739 # ancient GNU ld didn't support --whole-archive et. al.
11740 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11741 $GREP 'no-whole-archive' > /dev/null; then
11742 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11743 else
11744 whole_archive_flag_spec_CXX=
11745 fi
11746 else
11747 with_gnu_ld=no
11748 wlarc=
11749
11750 # A generic and very simple default shared library creation
11751 # command for GNU C++ for the case where it uses the native
11752 # linker, instead of GNU ld. If possible, this setting should
11753 # overridden to take advantage of the native linker features on
11754 # the platform it is being used on.
11755 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11756 fi
11757
11758 # Commands to make compiler produce verbose output that lists
11759 # what "hidden" libraries, object files and flags are used when
11760 # linking a shared library.
11761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11762
11763 else
11764 GXX=no
11765 with_gnu_ld=no
11766 wlarc=
11767 fi
11768
11769 # PORTME: fill in a description of your system's C++ link characteristics
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11771 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11772 ld_shlibs_CXX=yes
11773 case $host_os in
11774 aix3*)
11775 # FIXME: insert proper C++ library support
11776 ld_shlibs_CXX=no
11777 ;;
11778 aix[4-9]*)
11779 if test "$host_cpu" = ia64; then
11780 # On IA64, the linker does run time linking by default, so we don't
11781 # have to do anything special.
11782 aix_use_runtimelinking=no
11783 exp_sym_flag='-Bexport'
11784 no_entry_flag=""
11785 else
11786 aix_use_runtimelinking=no
11787
11788 # Test if we are trying to use run time linking or normal
11789 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11790 # need to do runtime linking.
11791 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11792 for ld_flag in $LDFLAGS; do
11793 case $ld_flag in
11794 *-brtl*)
11795 aix_use_runtimelinking=yes
11796 break
11797 ;;
11798 esac
11799 done
11800 ;;
11801 esac
11802
11803 exp_sym_flag='-bexport'
11804 no_entry_flag='-bnoentry'
11805 fi
11806
11807 # When large executables or shared objects are built, AIX ld can
11808 # have problems creating the table of contents. If linking a library
11809 # or program results in "error TOC overflow" add -mminimal-toc to
11810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11812
11813 archive_cmds_CXX=''
11814 hardcode_direct_CXX=yes
11815 hardcode_direct_absolute_CXX=yes
11816 hardcode_libdir_separator_CXX=':'
11817 link_all_deplibs_CXX=yes
11818 file_list_spec_CXX='${wl}-f,'
11819
11820 if test "$GXX" = yes; then
11821 case $host_os in aix4.[012]|aix4.[012].*)
11822 # We only want to do this on AIX 4.2 and lower, the check
11823 # below for broken collect2 doesn't work under 4.3+
11824 collect2name=`${CC} -print-prog-name=collect2`
11825 if test -f "$collect2name" &&
11826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11827 then
11828 # We have reworked collect2
11829 :
11830 else
11831 # We have old collect2
11832 hardcode_direct_CXX=unsupported
11833 # It fails to find uninstalled libraries when the uninstalled
11834 # path is not listed in the libpath. Setting hardcode_minus_L
11835 # to unsupported forces relinking
11836 hardcode_minus_L_CXX=yes
11837 hardcode_libdir_flag_spec_CXX='-L$libdir'
11838 hardcode_libdir_separator_CXX=
11839 fi
11840 esac
11841 shared_flag='-shared'
11842 if test "$aix_use_runtimelinking" = yes; then
11843 shared_flag="$shared_flag "'${wl}-G'
11844 fi
11845 else
11846 # not using gcc
11847 if test "$host_cpu" = ia64; then
11848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11849 # chokes on -Wl,-G. The following line is correct:
11850 shared_flag='-G'
11851 else
11852 if test "$aix_use_runtimelinking" = yes; then
11853 shared_flag='${wl}-G'
11854 else
11855 shared_flag='${wl}-bM:SRE'
11856 fi
11857 fi
11858 fi
11859
11860 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11861 # It seems that -bexpall does not export symbols beginning with
11862 # underscore (_), so it is better to generate a list of symbols to
11863 # export.
11864 always_export_symbols_CXX=yes
11865 if test "$aix_use_runtimelinking" = yes; then
11866 # Warning - without using the other runtime loading flags (-brtl),
11867 # -berok will link without error, but may produce a broken library.
11868 allow_undefined_flag_CXX='-berok'
11869 # Determine the default libpath from the value encoded in an empty
11870 # executable.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 int
11875 main ()
11876 {
11877
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_cxx_try_link "$LINENO"; then :
11883
11884 lt_aix_libpath_sed='
11885 /Import File Strings/,/^$/ {
11886 /^0/ {
11887 s/^0 *\(.*\)$/\1/
11888 p
11889 }
11890 }'
11891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11892 # Check for a 64-bit object if we didn't find anything.
11893 if test -z "$aix_libpath"; then
11894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11895 fi
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11900
11901 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11902
11903 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"
11904 else
11905 if test "$host_cpu" = ia64; then
11906 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11907 allow_undefined_flag_CXX="-z nodefs"
11908 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"
11909 else
11910 # Determine the default libpath from the value encoded in an
11911 # empty executable.
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11914
11915 int
11916 main ()
11917 {
11918
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_cxx_try_link "$LINENO"; then :
11924
11925 lt_aix_libpath_sed='
11926 /Import File Strings/,/^$/ {
11927 /^0/ {
11928 s/^0 *\(.*\)$/\1/
11929 p
11930 }
11931 }'
11932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933 # Check for a 64-bit object if we didn't find anything.
11934 if test -z "$aix_libpath"; then
11935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11936 fi
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11941
11942 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11943 # Warning - without using the other run time loading flags,
11944 # -berok will link without error, but may produce a broken library.
11945 no_undefined_flag_CXX=' ${wl}-bernotok'
11946 allow_undefined_flag_CXX=' ${wl}-berok'
11947 if test "$with_gnu_ld" = yes; then
11948 # We only use this code for GNU lds that support --whole-archive.
11949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11950 else
11951 # Exported symbols can be pulled into shared objects from archives
11952 whole_archive_flag_spec_CXX='$convenience'
11953 fi
11954 archive_cmds_need_lc_CXX=yes
11955 # This is similar to how AIX traditionally builds its shared
11956 # libraries.
11957 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'
11958 fi
11959 fi
11960 ;;
11961
11962 beos*)
11963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11964 allow_undefined_flag_CXX=unsupported
11965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11966 # support --undefined. This deserves some investigation. FIXME
11967 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11968 else
11969 ld_shlibs_CXX=no
11970 fi
11971 ;;
11972
11973 chorus*)
11974 case $cc_basename in
11975 *)
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 ;;
11979 esac
11980 ;;
11981
11982 cygwin* | mingw* | pw32* | cegcc*)
11983 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11984 # as there is no search path for DLLs.
11985 hardcode_libdir_flag_spec_CXX='-L$libdir'
11986 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11987 allow_undefined_flag_CXX=unsupported
11988 always_export_symbols_CXX=no
11989 enable_shared_with_static_runtimes_CXX=yes
11990
11991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11992 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'
11993 # If the export-symbols file already is a .def file (1st line
11994 # is EXPORTS), use it as is; otherwise, prepend...
11995 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11996 cp $export_symbols $output_objdir/$soname.def;
11997 else
11998 echo EXPORTS > $output_objdir/$soname.def;
11999 cat $export_symbols >> $output_objdir/$soname.def;
12000 fi~
12001 $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'
12002 else
12003 ld_shlibs_CXX=no
12004 fi
12005 ;;
12006 darwin* | rhapsody*)
12007
12008
12009 archive_cmds_need_lc_CXX=no
12010 hardcode_direct_CXX=no
12011 hardcode_automatic_CXX=yes
12012 hardcode_shlibpath_var_CXX=unsupported
12013 if test "$lt_cv_ld_force_load" = "yes"; then
12014 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\"`'
12015 else
12016 whole_archive_flag_spec_CXX=''
12017 fi
12018 link_all_deplibs_CXX=yes
12019 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12020 case $cc_basename in
12021 ifort*) _lt_dar_can_shared=yes ;;
12022 *) _lt_dar_can_shared=$GCC ;;
12023 esac
12024 if test "$_lt_dar_can_shared" = "yes"; then
12025 output_verbose_link_cmd=func_echo_all
12026 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}"
12027 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12028 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}"
12029 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}"
12030 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12031 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}"
12032 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}"
12033 fi
12034
12035 else
12036 ld_shlibs_CXX=no
12037 fi
12038
12039 ;;
12040
12041 dgux*)
12042 case $cc_basename in
12043 ec++*)
12044 # FIXME: insert proper C++ library support
12045 ld_shlibs_CXX=no
12046 ;;
12047 ghcx*)
12048 # Green Hills C++ Compiler
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 ;;
12052 *)
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 ;;
12056 esac
12057 ;;
12058
12059 freebsd2.*)
12060 # C++ shared libraries reported to be fairly broken before
12061 # switch to ELF
12062 ld_shlibs_CXX=no
12063 ;;
12064
12065 freebsd-elf*)
12066 archive_cmds_need_lc_CXX=no
12067 ;;
12068
12069 freebsd* | dragonfly*)
12070 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12071 # conventions
12072 ld_shlibs_CXX=yes
12073 ;;
12074
12075 gnu*)
12076 ;;
12077
12078 haiku*)
12079 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 link_all_deplibs_CXX=yes
12081 ;;
12082
12083 hpux9*)
12084 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12085 hardcode_libdir_separator_CXX=:
12086 export_dynamic_flag_spec_CXX='${wl}-E'
12087 hardcode_direct_CXX=yes
12088 hardcode_minus_L_CXX=yes # Not in the search PATH,
12089 # but as the default
12090 # location of the library.
12091
12092 case $cc_basename in
12093 CC*)
12094 # FIXME: insert proper C++ library support
12095 ld_shlibs_CXX=no
12096 ;;
12097 aCC*)
12098 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'
12099 # Commands to make compiler produce verbose output that lists
12100 # what "hidden" libraries, object files and flags are used when
12101 # linking a shared library.
12102 #
12103 # There doesn't appear to be a way to prevent this compiler from
12104 # explicitly linking system object files so we need to strip them
12105 # from the output so that they don't get included in the library
12106 # dependencies.
12107 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"'
12108 ;;
12109 *)
12110 if test "$GXX" = yes; then
12111 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'
12112 else
12113 # FIXME: insert proper C++ library support
12114 ld_shlibs_CXX=no
12115 fi
12116 ;;
12117 esac
12118 ;;
12119
12120 hpux10*|hpux11*)
12121 if test $with_gnu_ld = no; then
12122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12123 hardcode_libdir_separator_CXX=:
12124
12125 case $host_cpu in
12126 hppa*64*|ia64*)
12127 ;;
12128 *)
12129 export_dynamic_flag_spec_CXX='${wl}-E'
12130 ;;
12131 esac
12132 fi
12133 case $host_cpu in
12134 hppa*64*|ia64*)
12135 hardcode_direct_CXX=no
12136 hardcode_shlibpath_var_CXX=no
12137 ;;
12138 *)
12139 hardcode_direct_CXX=yes
12140 hardcode_direct_absolute_CXX=yes
12141 hardcode_minus_L_CXX=yes # Not in the search PATH,
12142 # but as the default
12143 # location of the library.
12144 ;;
12145 esac
12146
12147 case $cc_basename in
12148 CC*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12151 ;;
12152 aCC*)
12153 case $host_cpu in
12154 hppa*64*)
12155 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12156 ;;
12157 ia64*)
12158 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159 ;;
12160 *)
12161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12162 ;;
12163 esac
12164 # Commands to make compiler produce verbose output that lists
12165 # what "hidden" libraries, object files and flags are used when
12166 # linking a shared library.
12167 #
12168 # There doesn't appear to be a way to prevent this compiler from
12169 # explicitly linking system object files so we need to strip them
12170 # from the output so that they don't get included in the library
12171 # dependencies.
12172 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"'
12173 ;;
12174 *)
12175 if test "$GXX" = yes; then
12176 if test $with_gnu_ld = no; then
12177 case $host_cpu in
12178 hppa*64*)
12179 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12180 ;;
12181 ia64*)
12182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183 ;;
12184 *)
12185 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'
12186 ;;
12187 esac
12188 fi
12189 else
12190 # FIXME: insert proper C++ library support
12191 ld_shlibs_CXX=no
12192 fi
12193 ;;
12194 esac
12195 ;;
12196
12197 interix[3-9]*)
12198 hardcode_direct_CXX=no
12199 hardcode_shlibpath_var_CXX=no
12200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12201 export_dynamic_flag_spec_CXX='${wl}-E'
12202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12203 # Instead, shared libraries are loaded at an image base (0x10000000 by
12204 # default) and relocated if they conflict, which is a slow very memory
12205 # consuming and fragmenting process. To avoid this, we pick a random,
12206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12208 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'
12209 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'
12210 ;;
12211 irix5* | irix6*)
12212 case $cc_basename in
12213 CC*)
12214 # SGI C++
12215 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'
12216
12217 # Archives containing C++ object files must be created using
12218 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12219 # necessary to make sure instantiated templates are included
12220 # in the archive.
12221 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12222 ;;
12223 *)
12224 if test "$GXX" = yes; then
12225 if test "$with_gnu_ld" = no; then
12226 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'
12227 else
12228 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'
12229 fi
12230 fi
12231 link_all_deplibs_CXX=yes
12232 ;;
12233 esac
12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12235 hardcode_libdir_separator_CXX=:
12236 inherit_rpath_CXX=yes
12237 ;;
12238
12239 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12240 case $cc_basename in
12241 KCC*)
12242 # Kuck and Associates, Inc. (KAI) C++ Compiler
12243
12244 # KCC will only create a shared library if the output file
12245 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12246 # to its proper name (with version) after linking.
12247 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'
12248 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'
12249 # Commands to make compiler produce verbose output that lists
12250 # what "hidden" libraries, object files and flags are used when
12251 # linking a shared library.
12252 #
12253 # There doesn't appear to be a way to prevent this compiler from
12254 # explicitly linking system object files so we need to strip them
12255 # from the output so that they don't get included in the library
12256 # dependencies.
12257 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"'
12258
12259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12260 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12261
12262 # Archives containing C++ object files must be created using
12263 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12264 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12265 ;;
12266 icpc* | ecpc* )
12267 # Intel C++
12268 with_gnu_ld=yes
12269 # version 8.0 and above of icpc choke on multiply defined symbols
12270 # if we add $predep_objects and $postdep_objects, however 7.1 and
12271 # earlier do not add the objects themselves.
12272 case `$CC -V 2>&1` in
12273 *"Version 7."*)
12274 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12275 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'
12276 ;;
12277 *) # Version 8.0 or newer
12278 tmp_idyn=
12279 case $host_cpu in
12280 ia64*) tmp_idyn=' -i_dynamic';;
12281 esac
12282 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283 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'
12284 ;;
12285 esac
12286 archive_cmds_need_lc_CXX=no
12287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12288 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12289 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12290 ;;
12291 pgCC* | pgcpp*)
12292 # Portland Group C++ compiler
12293 case `$CC -V` in
12294 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12295 prelink_cmds_CXX='tpldir=Template.dir~
12296 rm -rf $tpldir~
12297 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12298 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12299 old_archive_cmds_CXX='tpldir=Template.dir~
12300 rm -rf $tpldir~
12301 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12302 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12303 $RANLIB $oldlib'
12304 archive_cmds_CXX='tpldir=Template.dir~
12305 rm -rf $tpldir~
12306 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12307 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12308 archive_expsym_cmds_CXX='tpldir=Template.dir~
12309 rm -rf $tpldir~
12310 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12311 $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'
12312 ;;
12313 *) # Version 6 and above use weak symbols
12314 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12315 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'
12316 ;;
12317 esac
12318
12319 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12321 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'
12322 ;;
12323 cxx*)
12324 # Compaq C++
12325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326 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'
12327
12328 runpath_var=LD_RUN_PATH
12329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12330 hardcode_libdir_separator_CXX=:
12331
12332 # Commands to make compiler produce verbose output that lists
12333 # what "hidden" libraries, object files and flags are used when
12334 # linking a shared library.
12335 #
12336 # There doesn't appear to be a way to prevent this compiler from
12337 # explicitly linking system object files so we need to strip them
12338 # from the output so that they don't get included in the library
12339 # dependencies.
12340 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'
12341 ;;
12342 xl* | mpixl* | bgxl*)
12343 # IBM XL 8.0 on PPC, with GNU ld
12344 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12346 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347 if test "x$supports_anon_versioning" = xyes; then
12348 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350 echo "local: *; };" >> $output_objdir/$libname.ver~
12351 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12352 fi
12353 ;;
12354 *)
12355 case `$CC -V 2>&1 | sed 5q` in
12356 *Sun\ C*)
12357 # Sun C++ 5.9
12358 no_undefined_flag_CXX=' -zdefs'
12359 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12360 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'
12361 hardcode_libdir_flag_spec_CXX='-R$libdir'
12362 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'
12363 compiler_needs_object_CXX=yes
12364
12365 # Not sure whether something based on
12366 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12367 # would be better.
12368 output_verbose_link_cmd='func_echo_all'
12369
12370 # Archives containing C++ object files must be created using
12371 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12372 # necessary to make sure instantiated templates are included
12373 # in the archive.
12374 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12375 ;;
12376 esac
12377 ;;
12378 esac
12379 ;;
12380
12381 lynxos*)
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385
12386 m88k*)
12387 # FIXME: insert proper C++ library support
12388 ld_shlibs_CXX=no
12389 ;;
12390
12391 mvs*)
12392 case $cc_basename in
12393 cxx*)
12394 # FIXME: insert proper C++ library support
12395 ld_shlibs_CXX=no
12396 ;;
12397 *)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 esac
12402 ;;
12403
12404 netbsd*)
12405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12407 wlarc=
12408 hardcode_libdir_flag_spec_CXX='-R$libdir'
12409 hardcode_direct_CXX=yes
12410 hardcode_shlibpath_var_CXX=no
12411 fi
12412 # Workaround some broken pre-1.5 toolchains
12413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12414 ;;
12415
12416 *nto* | *qnx*)
12417 ld_shlibs_CXX=yes
12418 ;;
12419
12420 openbsd2*)
12421 # C++ shared libraries are fairly broken
12422 ld_shlibs_CXX=no
12423 ;;
12424
12425 openbsd*)
12426 if test -f /usr/libexec/ld.so; then
12427 hardcode_direct_CXX=yes
12428 hardcode_shlibpath_var_CXX=no
12429 hardcode_direct_absolute_CXX=yes
12430 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12431 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12433 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12434 export_dynamic_flag_spec_CXX='${wl}-E'
12435 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436 fi
12437 output_verbose_link_cmd=func_echo_all
12438 else
12439 ld_shlibs_CXX=no
12440 fi
12441 ;;
12442
12443 osf3* | osf4* | osf5*)
12444 case $cc_basename in
12445 KCC*)
12446 # Kuck and Associates, Inc. (KAI) C++ Compiler
12447
12448 # KCC will only create a shared library if the output file
12449 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12450 # to its proper name (with version) after linking.
12451 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'
12452
12453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12454 hardcode_libdir_separator_CXX=:
12455
12456 # Archives containing C++ object files must be created using
12457 # the KAI C++ compiler.
12458 case $host in
12459 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12460 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12461 esac
12462 ;;
12463 RCC*)
12464 # Rational C++ 2.4.1
12465 # FIXME: insert proper C++ library support
12466 ld_shlibs_CXX=no
12467 ;;
12468 cxx*)
12469 case $host in
12470 osf3*)
12471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12472 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'
12473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12474 ;;
12475 *)
12476 allow_undefined_flag_CXX=' -expect_unresolved \*'
12477 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'
12478 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12479 echo "-hidden">> $lib.exp~
12480 $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~
12481 $RM $lib.exp'
12482 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12483 ;;
12484 esac
12485
12486 hardcode_libdir_separator_CXX=:
12487
12488 # Commands to make compiler produce verbose output that lists
12489 # what "hidden" libraries, object files and flags are used when
12490 # linking a shared library.
12491 #
12492 # There doesn't appear to be a way to prevent this compiler from
12493 # explicitly linking system object files so we need to strip them
12494 # from the output so that they don't get included in the library
12495 # dependencies.
12496 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"'
12497 ;;
12498 *)
12499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12500 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12501 case $host in
12502 osf3*)
12503 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'
12504 ;;
12505 *)
12506 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'
12507 ;;
12508 esac
12509
12510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12511 hardcode_libdir_separator_CXX=:
12512
12513 # Commands to make compiler produce verbose output that lists
12514 # what "hidden" libraries, object files and flags are used when
12515 # linking a shared library.
12516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12517
12518 else
12519 # FIXME: insert proper C++ library support
12520 ld_shlibs_CXX=no
12521 fi
12522 ;;
12523 esac
12524 ;;
12525
12526 psos*)
12527 # FIXME: insert proper C++ library support
12528 ld_shlibs_CXX=no
12529 ;;
12530
12531 sunos4*)
12532 case $cc_basename in
12533 CC*)
12534 # Sun C++ 4.x
12535 # FIXME: insert proper C++ library support
12536 ld_shlibs_CXX=no
12537 ;;
12538 lcc*)
12539 # Lucid
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
12543 *)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 esac
12548 ;;
12549
12550 solaris*)
12551 case $cc_basename in
12552 CC*)
12553 # Sun C++ 4.2, 5.x and Centerline C++
12554 archive_cmds_need_lc_CXX=yes
12555 no_undefined_flag_CXX=' -zdefs'
12556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12558 $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'
12559
12560 hardcode_libdir_flag_spec_CXX='-R$libdir'
12561 hardcode_shlibpath_var_CXX=no
12562 case $host_os in
12563 solaris2.[0-5] | solaris2.[0-5].*) ;;
12564 *)
12565 # The compiler driver will combine and reorder linker options,
12566 # but understands `-z linker_flag'.
12567 # Supported since Solaris 2.6 (maybe 2.5.1?)
12568 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12569 ;;
12570 esac
12571 link_all_deplibs_CXX=yes
12572
12573 output_verbose_link_cmd='func_echo_all'
12574
12575 # Archives containing C++ object files must be created using
12576 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12577 # necessary to make sure instantiated templates are included
12578 # in the archive.
12579 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12580 ;;
12581 gcx*)
12582 # Green Hills C++ Compiler
12583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12584
12585 # The C++ compiler must be used to create the archive.
12586 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12587 ;;
12588 *)
12589 # GNU C++ compiler with Solaris linker
12590 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12591 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12592 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12593 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12595 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12596
12597 # Commands to make compiler produce verbose output that lists
12598 # what "hidden" libraries, object files and flags are used when
12599 # linking a shared library.
12600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12601 else
12602 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12603 # platform.
12604 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12606 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12607
12608 # Commands to make compiler produce verbose output that lists
12609 # what "hidden" libraries, object files and flags are used when
12610 # linking a shared library.
12611 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12612 fi
12613
12614 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12615 case $host_os in
12616 solaris2.[0-5] | solaris2.[0-5].*) ;;
12617 *)
12618 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12619 ;;
12620 esac
12621 fi
12622 ;;
12623 esac
12624 ;;
12625
12626 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12627 no_undefined_flag_CXX='${wl}-z,text'
12628 archive_cmds_need_lc_CXX=no
12629 hardcode_shlibpath_var_CXX=no
12630 runpath_var='LD_RUN_PATH'
12631
12632 case $cc_basename in
12633 CC*)
12634 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12635 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12636 ;;
12637 *)
12638 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12639 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12640 ;;
12641 esac
12642 ;;
12643
12644 sysv5* | sco3.2v5* | sco5v6*)
12645 # Note: We can NOT use -z defs as we might desire, because we do not
12646 # link with -lc, and that would cause any symbols used from libc to
12647 # always be unresolved, which means just about no library would
12648 # ever link correctly. If we're not using GNU ld we use -z text
12649 # though, which does catch some bad symbols but isn't as heavy-handed
12650 # as -z defs.
12651 no_undefined_flag_CXX='${wl}-z,text'
12652 allow_undefined_flag_CXX='${wl}-z,nodefs'
12653 archive_cmds_need_lc_CXX=no
12654 hardcode_shlibpath_var_CXX=no
12655 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12656 hardcode_libdir_separator_CXX=':'
12657 link_all_deplibs_CXX=yes
12658 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12659 runpath_var='LD_RUN_PATH'
12660
12661 case $cc_basename in
12662 CC*)
12663 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12666 '"$old_archive_cmds_CXX"
12667 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12668 '"$reload_cmds_CXX"
12669 ;;
12670 *)
12671 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673 ;;
12674 esac
12675 ;;
12676
12677 tandem*)
12678 case $cc_basename in
12679 NCC*)
12680 # NonStop-UX NCC 3.20
12681 # FIXME: insert proper C++ library support
12682 ld_shlibs_CXX=no
12683 ;;
12684 *)
12685 # FIXME: insert proper C++ library support
12686 ld_shlibs_CXX=no
12687 ;;
12688 esac
12689 ;;
12690
12691 vxworks*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12694 ;;
12695
12696 *)
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
12700 esac
12701
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12703 $as_echo "$ld_shlibs_CXX" >&6; }
12704 test "$ld_shlibs_CXX" = no && can_build_shared=no
12705
12706 GCC_CXX="$GXX"
12707 LD_CXX="$LD"
12708
12709 ## CAVEAT EMPTOR:
12710 ## There is no encapsulation within the following macros, do not change
12711 ## the running order or otherwise move them around unless you know exactly
12712 ## what you are doing...
12713 # Dependencies to place before and after the object being linked:
12714 predep_objects_CXX=
12715 postdep_objects_CXX=
12716 predeps_CXX=
12717 postdeps_CXX=
12718 compiler_lib_search_path_CXX=
12719
12720 cat > conftest.$ac_ext <<_LT_EOF
12721 class Foo
12722 {
12723 public:
12724 Foo (void) { a = 0; }
12725 private:
12726 int a;
12727 };
12728 _LT_EOF
12729
12730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12731 (eval $ac_compile) 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734 test $ac_status = 0; }; then
12735 # Parse the compiler output and extract the necessary
12736 # objects, libraries and library flags.
12737
12738 # Sentinel used to keep track of whether or not we are before
12739 # the conftest object file.
12740 pre_test_object_deps_done=no
12741
12742 for p in `eval "$output_verbose_link_cmd"`; do
12743 case $p in
12744
12745 -L* | -R* | -l*)
12746 # Some compilers place space between "-{L,R}" and the path.
12747 # Remove the space.
12748 if test $p = "-L" ||
12749 test $p = "-R"; then
12750 prev=$p
12751 continue
12752 else
12753 prev=
12754 fi
12755
12756 if test "$pre_test_object_deps_done" = no; then
12757 case $p in
12758 -L* | -R*)
12759 # Internal compiler library paths should come after those
12760 # provided the user. The postdeps already come after the
12761 # user supplied libs so there is no need to process them.
12762 if test -z "$compiler_lib_search_path_CXX"; then
12763 compiler_lib_search_path_CXX="${prev}${p}"
12764 else
12765 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12766 fi
12767 ;;
12768 # The "-l" case would never come before the object being
12769 # linked, so don't bother handling this case.
12770 esac
12771 else
12772 if test -z "$postdeps_CXX"; then
12773 postdeps_CXX="${prev}${p}"
12774 else
12775 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12776 fi
12777 fi
12778 ;;
12779
12780 *.$objext)
12781 # This assumes that the test object file only shows up
12782 # once in the compiler output.
12783 if test "$p" = "conftest.$objext"; then
12784 pre_test_object_deps_done=yes
12785 continue
12786 fi
12787
12788 if test "$pre_test_object_deps_done" = no; then
12789 if test -z "$predep_objects_CXX"; then
12790 predep_objects_CXX="$p"
12791 else
12792 predep_objects_CXX="$predep_objects_CXX $p"
12793 fi
12794 else
12795 if test -z "$postdep_objects_CXX"; then
12796 postdep_objects_CXX="$p"
12797 else
12798 postdep_objects_CXX="$postdep_objects_CXX $p"
12799 fi
12800 fi
12801 ;;
12802
12803 *) ;; # Ignore the rest.
12804
12805 esac
12806 done
12807
12808 # Clean up.
12809 rm -f a.out a.exe
12810 else
12811 echo "libtool.m4: error: problem compiling CXX test program"
12812 fi
12813
12814 $RM -f confest.$objext
12815
12816 # PORTME: override above test on systems where it is broken
12817 case $host_os in
12818 interix[3-9]*)
12819 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12820 # hack all around it, let's just trust "g++" to DTRT.
12821 predep_objects_CXX=
12822 postdep_objects_CXX=
12823 postdeps_CXX=
12824 ;;
12825
12826 linux*)
12827 case `$CC -V 2>&1 | sed 5q` in
12828 *Sun\ C*)
12829 # Sun C++ 5.9
12830
12831 # The more standards-conforming stlport4 library is
12832 # incompatible with the Cstd library. Avoid specifying
12833 # it if it's in CXXFLAGS. Ignore libCrun as
12834 # -library=stlport4 depends on it.
12835 case " $CXX $CXXFLAGS " in
12836 *" -library=stlport4 "*)
12837 solaris_use_stlport4=yes
12838 ;;
12839 esac
12840
12841 if test "$solaris_use_stlport4" != yes; then
12842 postdeps_CXX='-library=Cstd -library=Crun'
12843 fi
12844 ;;
12845 esac
12846 ;;
12847
12848 solaris*)
12849 case $cc_basename in
12850 CC*)
12851 # The more standards-conforming stlport4 library is
12852 # incompatible with the Cstd library. Avoid specifying
12853 # it if it's in CXXFLAGS. Ignore libCrun as
12854 # -library=stlport4 depends on it.
12855 case " $CXX $CXXFLAGS " in
12856 *" -library=stlport4 "*)
12857 solaris_use_stlport4=yes
12858 ;;
12859 esac
12860
12861 # Adding this requires a known-good setup of shared libraries for
12862 # Sun compiler versions before 5.6, else PIC objects from an old
12863 # archive will be linked into the output, leading to subtle bugs.
12864 if test "$solaris_use_stlport4" != yes; then
12865 postdeps_CXX='-library=Cstd -library=Crun'
12866 fi
12867 ;;
12868 esac
12869 ;;
12870 esac
12871
12872
12873 case " $postdeps_CXX " in
12874 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12875 esac
12876 compiler_lib_search_dirs_CXX=
12877 if test -n "${compiler_lib_search_path_CXX}"; then
12878 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12879 fi
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 lt_prog_compiler_wl_CXX=
12912 lt_prog_compiler_pic_CXX=
12913 lt_prog_compiler_static_CXX=
12914
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12916 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12917
12918 # C++ specific cases for pic, static, wl, etc.
12919 if test "$GXX" = yes; then
12920 lt_prog_compiler_wl_CXX='-Wl,'
12921 lt_prog_compiler_static_CXX='-static'
12922
12923 case $host_os in
12924 aix*)
12925 # All AIX code is PIC.
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 now supports IA64 processor
12928 lt_prog_compiler_static_CXX='-Bstatic'
12929 fi
12930 lt_prog_compiler_pic_CXX='-fPIC'
12931 ;;
12932
12933 amigaos*)
12934 case $host_cpu in
12935 powerpc)
12936 # see comment about AmigaOS4 .so support
12937 lt_prog_compiler_pic_CXX='-fPIC'
12938 ;;
12939 m68k)
12940 # FIXME: we need at least 68020 code to build shared libraries, but
12941 # adding the `-m68020' flag to GCC prevents building anything better,
12942 # like `-m68040'.
12943 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12944 ;;
12945 esac
12946 ;;
12947
12948 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12949 # PIC is the default for these OSes.
12950 ;;
12951 mingw* | cygwin* | os2* | pw32* | cegcc*)
12952 # This hack is so that the source file can tell whether it is being
12953 # built for inclusion in a dll (and should export symbols for example).
12954 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12955 # (--disable-auto-import) libraries
12956 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12957 ;;
12958 darwin* | rhapsody*)
12959 # PIC is the default on this platform
12960 # Common symbols not allowed in MH_DYLIB files
12961 lt_prog_compiler_pic_CXX='-fno-common'
12962 ;;
12963 *djgpp*)
12964 # DJGPP does not support shared libraries at all
12965 lt_prog_compiler_pic_CXX=
12966 ;;
12967 haiku*)
12968 # PIC is the default for Haiku.
12969 # The "-static" flag exists, but is broken.
12970 lt_prog_compiler_static_CXX=
12971 ;;
12972 interix[3-9]*)
12973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12974 # Instead, we relocate shared libraries at runtime.
12975 ;;
12976 sysv4*MP*)
12977 if test -d /usr/nec; then
12978 lt_prog_compiler_pic_CXX=-Kconform_pic
12979 fi
12980 ;;
12981 hpux*)
12982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12984 # sets the default TLS model and affects inlining.
12985 case $host_cpu in
12986 hppa*64*)
12987 ;;
12988 *)
12989 lt_prog_compiler_pic_CXX='-fPIC'
12990 ;;
12991 esac
12992 ;;
12993 *qnx* | *nto*)
12994 # QNX uses GNU C++, but need to define -shared option too, otherwise
12995 # it will coredump.
12996 lt_prog_compiler_pic_CXX='-fPIC -shared'
12997 ;;
12998 *)
12999 lt_prog_compiler_pic_CXX='-fPIC'
13000 ;;
13001 esac
13002 else
13003 case $host_os in
13004 aix[4-9]*)
13005 # All AIX code is PIC.
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 now supports IA64 processor
13008 lt_prog_compiler_static_CXX='-Bstatic'
13009 else
13010 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13011 fi
13012 ;;
13013 chorus*)
13014 case $cc_basename in
13015 cxch68*)
13016 # Green Hills C++ Compiler
13017 # _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"
13018 ;;
13019 esac
13020 ;;
13021 dgux*)
13022 case $cc_basename in
13023 ec++*)
13024 lt_prog_compiler_pic_CXX='-KPIC'
13025 ;;
13026 ghcx*)
13027 # Green Hills C++ Compiler
13028 lt_prog_compiler_pic_CXX='-pic'
13029 ;;
13030 *)
13031 ;;
13032 esac
13033 ;;
13034 freebsd* | dragonfly*)
13035 # FreeBSD uses GNU C++
13036 ;;
13037 hpux9* | hpux10* | hpux11*)
13038 case $cc_basename in
13039 CC*)
13040 lt_prog_compiler_wl_CXX='-Wl,'
13041 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13042 if test "$host_cpu" != ia64; then
13043 lt_prog_compiler_pic_CXX='+Z'
13044 fi
13045 ;;
13046 aCC*)
13047 lt_prog_compiler_wl_CXX='-Wl,'
13048 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13049 case $host_cpu in
13050 hppa*64*|ia64*)
13051 # +Z the default
13052 ;;
13053 *)
13054 lt_prog_compiler_pic_CXX='+Z'
13055 ;;
13056 esac
13057 ;;
13058 *)
13059 ;;
13060 esac
13061 ;;
13062 interix*)
13063 # This is c89, which is MS Visual C++ (no shared libs)
13064 # Anyone wants to do a port?
13065 ;;
13066 irix5* | irix6* | nonstopux*)
13067 case $cc_basename in
13068 CC*)
13069 lt_prog_compiler_wl_CXX='-Wl,'
13070 lt_prog_compiler_static_CXX='-non_shared'
13071 # CC pic flag -KPIC is the default.
13072 ;;
13073 *)
13074 ;;
13075 esac
13076 ;;
13077 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13078 case $cc_basename in
13079 KCC*)
13080 # KAI C++ Compiler
13081 lt_prog_compiler_wl_CXX='--backend -Wl,'
13082 lt_prog_compiler_pic_CXX='-fPIC'
13083 ;;
13084 ecpc* )
13085 # old Intel C++ for x86_64 which still supported -KPIC.
13086 lt_prog_compiler_wl_CXX='-Wl,'
13087 lt_prog_compiler_pic_CXX='-KPIC'
13088 lt_prog_compiler_static_CXX='-static'
13089 ;;
13090 icpc* )
13091 # Intel C++, used to be incompatible with GCC.
13092 # ICC 10 doesn't accept -KPIC any more.
13093 lt_prog_compiler_wl_CXX='-Wl,'
13094 lt_prog_compiler_pic_CXX='-fPIC'
13095 lt_prog_compiler_static_CXX='-static'
13096 ;;
13097 pgCC* | pgcpp*)
13098 # Portland Group C++ compiler
13099 lt_prog_compiler_wl_CXX='-Wl,'
13100 lt_prog_compiler_pic_CXX='-fpic'
13101 lt_prog_compiler_static_CXX='-Bstatic'
13102 ;;
13103 cxx*)
13104 # Compaq C++
13105 # Make sure the PIC flag is empty. It appears that all Alpha
13106 # Linux and Compaq Tru64 Unix objects are PIC.
13107 lt_prog_compiler_pic_CXX=
13108 lt_prog_compiler_static_CXX='-non_shared'
13109 ;;
13110 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13111 # IBM XL 8.0, 9.0 on PPC and BlueGene
13112 lt_prog_compiler_wl_CXX='-Wl,'
13113 lt_prog_compiler_pic_CXX='-qpic'
13114 lt_prog_compiler_static_CXX='-qstaticlink'
13115 ;;
13116 *)
13117 case `$CC -V 2>&1 | sed 5q` in
13118 *Sun\ C*)
13119 # Sun C++ 5.9
13120 lt_prog_compiler_pic_CXX='-KPIC'
13121 lt_prog_compiler_static_CXX='-Bstatic'
13122 lt_prog_compiler_wl_CXX='-Qoption ld '
13123 ;;
13124 esac
13125 ;;
13126 esac
13127 ;;
13128 lynxos*)
13129 ;;
13130 m88k*)
13131 ;;
13132 mvs*)
13133 case $cc_basename in
13134 cxx*)
13135 lt_prog_compiler_pic_CXX='-W c,exportall'
13136 ;;
13137 *)
13138 ;;
13139 esac
13140 ;;
13141 netbsd*)
13142 ;;
13143 *qnx* | *nto*)
13144 # QNX uses GNU C++, but need to define -shared option too, otherwise
13145 # it will coredump.
13146 lt_prog_compiler_pic_CXX='-fPIC -shared'
13147 ;;
13148 osf3* | osf4* | osf5*)
13149 case $cc_basename in
13150 KCC*)
13151 lt_prog_compiler_wl_CXX='--backend -Wl,'
13152 ;;
13153 RCC*)
13154 # Rational C++ 2.4.1
13155 lt_prog_compiler_pic_CXX='-pic'
13156 ;;
13157 cxx*)
13158 # Digital/Compaq C++
13159 lt_prog_compiler_wl_CXX='-Wl,'
13160 # Make sure the PIC flag is empty. It appears that all Alpha
13161 # Linux and Compaq Tru64 Unix objects are PIC.
13162 lt_prog_compiler_pic_CXX=
13163 lt_prog_compiler_static_CXX='-non_shared'
13164 ;;
13165 *)
13166 ;;
13167 esac
13168 ;;
13169 psos*)
13170 ;;
13171 solaris*)
13172 case $cc_basename in
13173 CC*)
13174 # Sun C++ 4.2, 5.x and Centerline C++
13175 lt_prog_compiler_pic_CXX='-KPIC'
13176 lt_prog_compiler_static_CXX='-Bstatic'
13177 lt_prog_compiler_wl_CXX='-Qoption ld '
13178 ;;
13179 gcx*)
13180 # Green Hills C++ Compiler
13181 lt_prog_compiler_pic_CXX='-PIC'
13182 ;;
13183 *)
13184 ;;
13185 esac
13186 ;;
13187 sunos4*)
13188 case $cc_basename in
13189 CC*)
13190 # Sun C++ 4.x
13191 lt_prog_compiler_pic_CXX='-pic'
13192 lt_prog_compiler_static_CXX='-Bstatic'
13193 ;;
13194 lcc*)
13195 # Lucid
13196 lt_prog_compiler_pic_CXX='-pic'
13197 ;;
13198 *)
13199 ;;
13200 esac
13201 ;;
13202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13203 case $cc_basename in
13204 CC*)
13205 lt_prog_compiler_wl_CXX='-Wl,'
13206 lt_prog_compiler_pic_CXX='-KPIC'
13207 lt_prog_compiler_static_CXX='-Bstatic'
13208 ;;
13209 esac
13210 ;;
13211 tandem*)
13212 case $cc_basename in
13213 NCC*)
13214 # NonStop-UX NCC 3.20
13215 lt_prog_compiler_pic_CXX='-KPIC'
13216 ;;
13217 *)
13218 ;;
13219 esac
13220 ;;
13221 vxworks*)
13222 ;;
13223 *)
13224 lt_prog_compiler_can_build_shared_CXX=no
13225 ;;
13226 esac
13227 fi
13228
13229 case $host_os in
13230 # For platforms which do not support PIC, -DPIC is meaningless:
13231 *djgpp*)
13232 lt_prog_compiler_pic_CXX=
13233 ;;
13234 *)
13235 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13236 ;;
13237 esac
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13239 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13240
13241
13242
13243 #
13244 # Check to make sure the PIC flag actually works.
13245 #
13246 if test -n "$lt_prog_compiler_pic_CXX"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13248 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13249 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 lt_cv_prog_compiler_pic_works_CXX=no
13253 ac_outfile=conftest.$ac_objext
13254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13255 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13256 # Insert the option either (1) after the last *FLAGS variable, or
13257 # (2) before a word containing "conftest.", or (3) at the end.
13258 # Note that $ac_compile itself does not contain backslashes and begins
13259 # with a dollar sign (not a hyphen), so the echo should work correctly.
13260 # The option is referenced via a variable to avoid confusing sed.
13261 lt_compile=`echo "$ac_compile" | $SED \
13262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13264 -e 's:$: $lt_compiler_flag:'`
13265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13266 (eval "$lt_compile" 2>conftest.err)
13267 ac_status=$?
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 if (exit $ac_status) && test -s "$ac_outfile"; then
13271 # The compiler can only warn and ignore the option if not recognized
13272 # So say no if there are warnings other than the usual output.
13273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13276 lt_cv_prog_compiler_pic_works_CXX=yes
13277 fi
13278 fi
13279 $RM conftest*
13280
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13283 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13284
13285 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13286 case $lt_prog_compiler_pic_CXX in
13287 "" | " "*) ;;
13288 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13289 esac
13290 else
13291 lt_prog_compiler_pic_CXX=
13292 lt_prog_compiler_can_build_shared_CXX=no
13293 fi
13294
13295 fi
13296
13297
13298
13299 #
13300 # Check to make sure the static flag actually works.
13301 #
13302 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13304 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13305 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 lt_cv_prog_compiler_static_works_CXX=no
13309 save_LDFLAGS="$LDFLAGS"
13310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13313 # The linker can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 if test -s conftest.err; then
13316 # Append any errors to the config.log.
13317 cat conftest.err 1>&5
13318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13320 if diff conftest.exp conftest.er2 >/dev/null; then
13321 lt_cv_prog_compiler_static_works_CXX=yes
13322 fi
13323 else
13324 lt_cv_prog_compiler_static_works_CXX=yes
13325 fi
13326 fi
13327 $RM -r conftest*
13328 LDFLAGS="$save_LDFLAGS"
13329
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13332 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13333
13334 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13335 :
13336 else
13337 lt_prog_compiler_static_CXX=
13338 fi
13339
13340
13341
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13345 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 lt_cv_prog_compiler_c_o_CXX=no
13349 $RM -r conftest 2>/dev/null
13350 mkdir conftest
13351 cd conftest
13352 mkdir out
13353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13354
13355 lt_compiler_flag="-o out/conftest2.$ac_objext"
13356 # Insert the option either (1) after the last *FLAGS variable, or
13357 # (2) before a word containing "conftest.", or (3) at the end.
13358 # Note that $ac_compile itself does not contain backslashes and begins
13359 # with a dollar sign (not a hyphen), so the echo should work correctly.
13360 lt_compile=`echo "$ac_compile" | $SED \
13361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13363 -e 's:$: $lt_compiler_flag:'`
13364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13365 (eval "$lt_compile" 2>out/conftest.err)
13366 ac_status=$?
13367 cat out/conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13370 then
13371 # The compiler can only warn and ignore the option if not recognized
13372 # So say no if there are warnings
13373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13376 lt_cv_prog_compiler_c_o_CXX=yes
13377 fi
13378 fi
13379 chmod u+w . 2>&5
13380 $RM conftest*
13381 # SGI C++ compiler will create directory out/ii_files/ for
13382 # template instantiation
13383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13384 $RM out/* && rmdir out
13385 cd ..
13386 $RM -r conftest
13387 $RM conftest*
13388
13389 fi
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13391 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13392
13393
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13397 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 lt_cv_prog_compiler_c_o_CXX=no
13401 $RM -r conftest 2>/dev/null
13402 mkdir conftest
13403 cd conftest
13404 mkdir out
13405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13406
13407 lt_compiler_flag="-o out/conftest2.$ac_objext"
13408 # Insert the option either (1) after the last *FLAGS variable, or
13409 # (2) before a word containing "conftest.", or (3) at the end.
13410 # Note that $ac_compile itself does not contain backslashes and begins
13411 # with a dollar sign (not a hyphen), so the echo should work correctly.
13412 lt_compile=`echo "$ac_compile" | $SED \
13413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13415 -e 's:$: $lt_compiler_flag:'`
13416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13417 (eval "$lt_compile" 2>out/conftest.err)
13418 ac_status=$?
13419 cat out/conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13422 then
13423 # The compiler can only warn and ignore the option if not recognized
13424 # So say no if there are warnings
13425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13428 lt_cv_prog_compiler_c_o_CXX=yes
13429 fi
13430 fi
13431 chmod u+w . 2>&5
13432 $RM conftest*
13433 # SGI C++ compiler will create directory out/ii_files/ for
13434 # template instantiation
13435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13436 $RM out/* && rmdir out
13437 cd ..
13438 $RM -r conftest
13439 $RM conftest*
13440
13441 fi
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13443 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13444
13445
13446
13447
13448 hard_links="nottested"
13449 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13450 # do not overwrite the value of need_locks provided by the user
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13452 $as_echo_n "checking if we can lock with hard links... " >&6; }
13453 hard_links=yes
13454 $RM conftest*
13455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456 touch conftest.a
13457 ln conftest.a conftest.b 2>&5 || hard_links=no
13458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13460 $as_echo "$hard_links" >&6; }
13461 if test "$hard_links" = no; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13464 need_locks=warn
13465 fi
13466 else
13467 need_locks=no
13468 fi
13469
13470
13471
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13473 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13474
13475 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13476 case $host_os in
13477 aix[4-9]*)
13478 # If we're using GNU nm, then we don't want the "-C" option.
13479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13480 # Also, AIX nm treats weak defined symbols like other global defined
13481 # symbols, whereas GNU nm marks them as "W".
13482 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13483 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'
13484 else
13485 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13486 fi
13487 ;;
13488 pw32*)
13489 export_symbols_cmds_CXX="$ltdll_cmds"
13490 ;;
13491 cygwin* | mingw* | cegcc*)
13492 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'
13493 ;;
13494 *)
13495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13496 ;;
13497 esac
13498 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13501 $as_echo "$ld_shlibs_CXX" >&6; }
13502 test "$ld_shlibs_CXX" = no && can_build_shared=no
13503
13504 with_gnu_ld_CXX=$with_gnu_ld
13505
13506
13507
13508
13509
13510
13511 #
13512 # Do we need to explicitly link libc?
13513 #
13514 case "x$archive_cmds_need_lc_CXX" in
13515 x|xyes)
13516 # Assume -lc should be added
13517 archive_cmds_need_lc_CXX=yes
13518
13519 if test "$enable_shared" = yes && test "$GCC" = yes; then
13520 case $archive_cmds_CXX in
13521 *'~'*)
13522 # FIXME: we may have to deal with multi-command sequences.
13523 ;;
13524 '$CC '*)
13525 # Test whether the compiler implicitly links with -lc since on some
13526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13527 # to ld, don't add -lc before -lgcc.
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13530 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 $RM conftest*
13534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13535
13536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13537 (eval $ac_compile) 2>&5
13538 ac_status=$?
13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13540 test $ac_status = 0; } 2>conftest.err; then
13541 soname=conftest
13542 lib=conftest
13543 libobjs=conftest.$ac_objext
13544 deplibs=
13545 wl=$lt_prog_compiler_wl_CXX
13546 pic_flag=$lt_prog_compiler_pic_CXX
13547 compiler_flags=-v
13548 linker_flags=-v
13549 verstring=
13550 output_objdir=.
13551 libname=conftest
13552 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13553 allow_undefined_flag_CXX=
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13555 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; }
13559 then
13560 lt_cv_archive_cmds_need_lc_CXX=no
13561 else
13562 lt_cv_archive_cmds_need_lc_CXX=yes
13563 fi
13564 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13565 else
13566 cat conftest.err 1>&5
13567 fi
13568 $RM conftest*
13569
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13572 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13573 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13574 ;;
13575 esac
13576 fi
13577 ;;
13578 esac
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13645
13646 library_names_spec=
13647 libname_spec='lib$name'
13648 soname_spec=
13649 shrext_cmds=".so"
13650 postinstall_cmds=
13651 postuninstall_cmds=
13652 finish_cmds=
13653 finish_eval=
13654 shlibpath_var=
13655 shlibpath_overrides_runpath=unknown
13656 version_type=none
13657 dynamic_linker="$host_os ld.so"
13658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13659 need_lib_prefix=unknown
13660 hardcode_into_libs=no
13661
13662 # when you set need_version to no, make sure it does not cause -set_version
13663 # flags to be left without arguments
13664 need_version=unknown
13665
13666 case $host_os in
13667 aix3*)
13668 version_type=linux
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13670 shlibpath_var=LIBPATH
13671
13672 # AIX 3 has no versioning support, so we append a major version to the name.
13673 soname_spec='${libname}${release}${shared_ext}$major'
13674 ;;
13675
13676 aix[4-9]*)
13677 version_type=linux
13678 need_lib_prefix=no
13679 need_version=no
13680 hardcode_into_libs=yes
13681 if test "$host_cpu" = ia64; then
13682 # AIX 5 supports IA64
13683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 else
13686 # With GCC up to 2.95.x, collect2 would create an import file
13687 # for dependence libraries. The import file would start with
13688 # the line `#! .'. This would cause the generated library to
13689 # depend on `.', always an invalid library. This was fixed in
13690 # development snapshots of GCC prior to 3.0.
13691 case $host_os in
13692 aix4 | aix4.[01] | aix4.[01].*)
13693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13694 echo ' yes '
13695 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13696 :
13697 else
13698 can_build_shared=no
13699 fi
13700 ;;
13701 esac
13702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13703 # soname into executable. Probably we can add versioning support to
13704 # collect2, so additional links can be useful in future.
13705 if test "$aix_use_runtimelinking" = yes; then
13706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13707 # instead of lib<name>.a to let people know that these are not
13708 # typical AIX shared libraries.
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710 else
13711 # We preserve .a as extension for shared libraries through AIX4.2
13712 # and later when we are not doing run time linking.
13713 library_names_spec='${libname}${release}.a $libname.a'
13714 soname_spec='${libname}${release}${shared_ext}$major'
13715 fi
13716 shlibpath_var=LIBPATH
13717 fi
13718 ;;
13719
13720 amigaos*)
13721 case $host_cpu in
13722 powerpc)
13723 # Since July 2007 AmigaOS4 officially supports .so libraries.
13724 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 ;;
13727 m68k)
13728 library_names_spec='$libname.ixlibrary $libname.a'
13729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13730 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'
13731 ;;
13732 esac
13733 ;;
13734
13735 beos*)
13736 library_names_spec='${libname}${shared_ext}'
13737 dynamic_linker="$host_os ld.so"
13738 shlibpath_var=LIBRARY_PATH
13739 ;;
13740
13741 bsdi[45]*)
13742 version_type=linux
13743 need_version=no
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13750 # the default ld.so.conf also contains /usr/contrib/lib and
13751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13752 # libtool to hard-code these into programs
13753 ;;
13754
13755 cygwin* | mingw* | pw32* | cegcc*)
13756 version_type=windows
13757 shrext_cmds=".dll"
13758 need_version=no
13759 need_lib_prefix=no
13760
13761 case $GCC,$host_os in
13762 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13763 library_names_spec='$libname.dll.a'
13764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13765 postinstall_cmds='base_file=`basename \${file}`~
13766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13767 dldir=$destdir/`dirname \$dlpath`~
13768 test -d \$dldir || mkdir -p \$dldir~
13769 $install_prog $dir/$dlname \$dldir/$dlname~
13770 chmod a+x \$dldir/$dlname~
13771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13773 fi'
13774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13775 dlpath=$dir/\$dldll~
13776 $RM \$dlpath'
13777 shlibpath_overrides_runpath=yes
13778
13779 case $host_os in
13780 cygwin*)
13781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13783
13784 ;;
13785 mingw* | cegcc*)
13786 # MinGW DLLs use traditional 'lib' prefix
13787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13788 ;;
13789 pw32*)
13790 # pw32 DLLs use 'pw' prefix rather than 'lib'
13791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792 ;;
13793 esac
13794 ;;
13795
13796 *)
13797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13798 ;;
13799 esac
13800 dynamic_linker='Win32 ld.exe'
13801 # FIXME: first we should search . and the directory the executable is in
13802 shlibpath_var=PATH
13803 ;;
13804
13805 darwin* | rhapsody*)
13806 dynamic_linker="$host_os dyld"
13807 version_type=darwin
13808 need_lib_prefix=no
13809 need_version=no
13810 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13811 soname_spec='${libname}${release}${major}$shared_ext'
13812 shlibpath_overrides_runpath=yes
13813 shlibpath_var=DYLD_LIBRARY_PATH
13814 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13815
13816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13817 ;;
13818
13819 dgux*)
13820 version_type=linux
13821 need_lib_prefix=no
13822 need_version=no
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 shlibpath_var=LD_LIBRARY_PATH
13826 ;;
13827
13828 freebsd* | dragonfly*)
13829 # DragonFly does not have aout. When/if they implement a new
13830 # versioning mechanism, adjust this.
13831 if test -x /usr/bin/objformat; then
13832 objformat=`/usr/bin/objformat`
13833 else
13834 case $host_os in
13835 freebsd[23].*) objformat=aout ;;
13836 *) objformat=elf ;;
13837 esac
13838 fi
13839 version_type=freebsd-$objformat
13840 case $version_type in
13841 freebsd-elf*)
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13843 need_version=no
13844 need_lib_prefix=no
13845 ;;
13846 freebsd-*)
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13848 need_version=yes
13849 ;;
13850 esac
13851 shlibpath_var=LD_LIBRARY_PATH
13852 case $host_os in
13853 freebsd2.*)
13854 shlibpath_overrides_runpath=yes
13855 ;;
13856 freebsd3.[01]* | freebsdelf3.[01]*)
13857 shlibpath_overrides_runpath=yes
13858 hardcode_into_libs=yes
13859 ;;
13860 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13861 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13862 shlibpath_overrides_runpath=no
13863 hardcode_into_libs=yes
13864 ;;
13865 *) # from 4.6 on, and DragonFly
13866 shlibpath_overrides_runpath=yes
13867 hardcode_into_libs=yes
13868 ;;
13869 esac
13870 ;;
13871
13872 gnu*)
13873 version_type=linux
13874 need_lib_prefix=no
13875 need_version=no
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13877 soname_spec='${libname}${release}${shared_ext}$major'
13878 shlibpath_var=LD_LIBRARY_PATH
13879 hardcode_into_libs=yes
13880 ;;
13881
13882 haiku*)
13883 version_type=linux
13884 need_lib_prefix=no
13885 need_version=no
13886 dynamic_linker="$host_os runtime_loader"
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 shlibpath_var=LIBRARY_PATH
13890 shlibpath_overrides_runpath=yes
13891 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13892 hardcode_into_libs=yes
13893 ;;
13894
13895 hpux9* | hpux10* | hpux11*)
13896 # Give a soname corresponding to the major version so that dld.sl refuses to
13897 # link against other versions.
13898 version_type=sunos
13899 need_lib_prefix=no
13900 need_version=no
13901 case $host_cpu in
13902 ia64*)
13903 shrext_cmds='.so'
13904 hardcode_into_libs=yes
13905 dynamic_linker="$host_os dld.so"
13906 shlibpath_var=LD_LIBRARY_PATH
13907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 if test "X$HPUX_IA64_MODE" = X32; then
13911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13912 else
13913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13914 fi
13915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13916 ;;
13917 hppa*64*)
13918 shrext_cmds='.sl'
13919 hardcode_into_libs=yes
13920 dynamic_linker="$host_os dld.sl"
13921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927 ;;
13928 *)
13929 shrext_cmds='.sl'
13930 dynamic_linker="$host_os dld.sl"
13931 shlibpath_var=SHLIB_PATH
13932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 ;;
13936 esac
13937 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13938 postinstall_cmds='chmod 555 $lib'
13939 # or fails outright, so override atomically:
13940 install_override_mode=555
13941 ;;
13942
13943 interix[3-9]*)
13944 version_type=linux
13945 need_lib_prefix=no
13946 need_version=no
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=no
13952 hardcode_into_libs=yes
13953 ;;
13954
13955 irix5* | irix6* | nonstopux*)
13956 case $host_os in
13957 nonstopux*) version_type=nonstopux ;;
13958 *)
13959 if test "$lt_cv_prog_gnu_ld" = yes; then
13960 version_type=linux
13961 else
13962 version_type=irix
13963 fi ;;
13964 esac
13965 need_lib_prefix=no
13966 need_version=no
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13969 case $host_os in
13970 irix5* | nonstopux*)
13971 libsuff= shlibsuff=
13972 ;;
13973 *)
13974 case $LD in # libtool.m4 will add one of these switches to LD
13975 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13976 libsuff= shlibsuff= libmagic=32-bit;;
13977 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13978 libsuff=32 shlibsuff=N32 libmagic=N32;;
13979 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13980 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13981 *) libsuff= shlibsuff= libmagic=never-match;;
13982 esac
13983 ;;
13984 esac
13985 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13986 shlibpath_overrides_runpath=no
13987 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13988 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13989 hardcode_into_libs=yes
13990 ;;
13991
13992 # No shared lib support for Linux oldld, aout, or coff.
13993 linux*oldld* | linux*aout* | linux*coff*)
13994 dynamic_linker=no
13995 ;;
13996
13997 # This must be Linux ELF.
13998 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13999 version_type=linux
14000 need_lib_prefix=no
14001 need_version=no
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=no
14007
14008 # Some binutils ld are patched to set DT_RUNPATH
14009 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14010 $as_echo_n "(cached) " >&6
14011 else
14012 lt_cv_shlibpath_overrides_runpath=no
14013 save_LDFLAGS=$LDFLAGS
14014 save_libdir=$libdir
14015 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14016 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019
14020 int
14021 main ()
14022 {
14023
14024 ;
14025 return 0;
14026 }
14027 _ACEOF
14028 if ac_fn_cxx_try_link "$LINENO"; then :
14029 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14030 lt_cv_shlibpath_overrides_runpath=yes
14031 fi
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
14035 LDFLAGS=$save_LDFLAGS
14036 libdir=$save_libdir
14037
14038 fi
14039
14040 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14041
14042 # This implies no fast_install, which is unacceptable.
14043 # Some rework will be needed to allow for fast_install
14044 # before this can be enabled.
14045 hardcode_into_libs=yes
14046
14047 # Append ld.so.conf contents to the search path
14048 if test -f /etc/ld.so.conf; then
14049 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' ' '`
14050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14051 fi
14052
14053 # We used to test for /lib/ld.so.1 and disable shared libraries on
14054 # powerpc, because MkLinux only supported shared libraries with the
14055 # GNU dynamic linker. Since this was broken with cross compilers,
14056 # most powerpc-linux boxes support dynamic linking these days and
14057 # people can always --disable-shared, the test was removed, and we
14058 # assume the GNU/Linux dynamic linker is in use.
14059 dynamic_linker='GNU/Linux ld.so'
14060 ;;
14061
14062 netbsd*)
14063 version_type=sunos
14064 need_lib_prefix=no
14065 need_version=no
14066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14069 dynamic_linker='NetBSD (a.out) ld.so'
14070 else
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 dynamic_linker='NetBSD ld.elf_so'
14074 fi
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14077 hardcode_into_libs=yes
14078 ;;
14079
14080 newsos6)
14081 version_type=linux
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14085 ;;
14086
14087 *nto* | *qnx*)
14088 version_type=qnx
14089 need_lib_prefix=no
14090 need_version=no
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 shlibpath_overrides_runpath=no
14095 hardcode_into_libs=yes
14096 dynamic_linker='ldqnx.so'
14097 ;;
14098
14099 openbsd*)
14100 version_type=sunos
14101 sys_lib_dlsearch_path_spec="/usr/lib"
14102 need_lib_prefix=no
14103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14104 case $host_os in
14105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14106 *) need_version=no ;;
14107 esac
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14112 case $host_os in
14113 openbsd2.[89] | openbsd2.[89].*)
14114 shlibpath_overrides_runpath=no
14115 ;;
14116 *)
14117 shlibpath_overrides_runpath=yes
14118 ;;
14119 esac
14120 else
14121 shlibpath_overrides_runpath=yes
14122 fi
14123 ;;
14124
14125 os2*)
14126 libname_spec='$name'
14127 shrext_cmds=".dll"
14128 need_lib_prefix=no
14129 library_names_spec='$libname${shared_ext} $libname.a'
14130 dynamic_linker='OS/2 ld.exe'
14131 shlibpath_var=LIBPATH
14132 ;;
14133
14134 osf3* | osf4* | osf5*)
14135 version_type=osf
14136 need_lib_prefix=no
14137 need_version=no
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14143 ;;
14144
14145 rdos*)
14146 dynamic_linker=no
14147 ;;
14148
14149 solaris*)
14150 version_type=linux
14151 need_lib_prefix=no
14152 need_version=no
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 shlibpath_overrides_runpath=yes
14157 hardcode_into_libs=yes
14158 # ldd complains unless libraries are executable
14159 postinstall_cmds='chmod +x $lib'
14160 ;;
14161
14162 sunos4*)
14163 version_type=sunos
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 shlibpath_overrides_runpath=yes
14168 if test "$with_gnu_ld" = yes; then
14169 need_lib_prefix=no
14170 fi
14171 need_version=yes
14172 ;;
14173
14174 sysv4 | sysv4.3*)
14175 version_type=linux
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 case $host_vendor in
14180 sni)
14181 shlibpath_overrides_runpath=no
14182 need_lib_prefix=no
14183 runpath_var=LD_RUN_PATH
14184 ;;
14185 siemens)
14186 need_lib_prefix=no
14187 ;;
14188 motorola)
14189 need_lib_prefix=no
14190 need_version=no
14191 shlibpath_overrides_runpath=no
14192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14193 ;;
14194 esac
14195 ;;
14196
14197 sysv4*MP*)
14198 if test -d /usr/nec ;then
14199 version_type=linux
14200 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14201 soname_spec='$libname${shared_ext}.$major'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 fi
14204 ;;
14205
14206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14207 version_type=freebsd-elf
14208 need_lib_prefix=no
14209 need_version=no
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 shlibpath_overrides_runpath=yes
14214 hardcode_into_libs=yes
14215 if test "$with_gnu_ld" = yes; then
14216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14217 else
14218 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14219 case $host_os in
14220 sco3.2v5*)
14221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14222 ;;
14223 esac
14224 fi
14225 sys_lib_dlsearch_path_spec='/usr/lib'
14226 ;;
14227
14228 tpf*)
14229 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 shlibpath_overrides_runpath=no
14236 hardcode_into_libs=yes
14237 ;;
14238
14239 uts4*)
14240 version_type=linux
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 shlibpath_var=LD_LIBRARY_PATH
14244 ;;
14245
14246 *)
14247 dynamic_linker=no
14248 ;;
14249 esac
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14251 $as_echo "$dynamic_linker" >&6; }
14252 test "$dynamic_linker" = no && can_build_shared=no
14253
14254 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14255 if test "$GCC" = yes; then
14256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14257 fi
14258
14259 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14260 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14261 fi
14262 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14263 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14264 fi
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14304 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14305 hardcode_action_CXX=
14306 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14307 test -n "$runpath_var_CXX" ||
14308 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14309
14310 # We can hardcode non-existent directories.
14311 if test "$hardcode_direct_CXX" != no &&
14312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14313 # have to relink, otherwise we might link with an installed library
14314 # when we should be linking with a yet-to-be-installed one
14315 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14316 test "$hardcode_minus_L_CXX" != no; then
14317 # Linking always hardcodes the temporary library directory.
14318 hardcode_action_CXX=relink
14319 else
14320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14321 hardcode_action_CXX=immediate
14322 fi
14323 else
14324 # We cannot hardcode anything, or else we can only hardcode existing
14325 # directories.
14326 hardcode_action_CXX=unsupported
14327 fi
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14329 $as_echo "$hardcode_action_CXX" >&6; }
14330
14331 if test "$hardcode_action_CXX" = relink ||
14332 test "$inherit_rpath_CXX" = yes; then
14333 # Fast installation is not supported
14334 enable_fast_install=no
14335 elif test "$shlibpath_overrides_runpath" = yes ||
14336 test "$enable_shared" = no; then
14337 # Fast installation is not necessary
14338 enable_fast_install=needless
14339 fi
14340
14341
14342
14343
14344
14345
14346
14347 fi # test -n "$compiler"
14348
14349 CC=$lt_save_CC
14350 LDCXX=$LD
14351 LD=$lt_save_LD
14352 GCC=$lt_save_GCC
14353 with_gnu_ld=$lt_save_with_gnu_ld
14354 lt_cv_path_LDCXX=$lt_cv_path_LD
14355 lt_cv_path_LD=$lt_save_path_LD
14356 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14357 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14358 fi # test "$_lt_caught_CXX_error" != yes
14359
14360 ac_ext=c
14361 ac_cpp='$CPP $CPPFLAGS'
14362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378 ac_config_commands="$ac_config_commands libtool"
14379
14380
14381
14382
14383 # Only expand once:
14384
14385
14386
14387
14388
14389 # Must be last
14390 cat >confcache <<\_ACEOF
14391 # This file is a shell script that caches the results of configure
14392 # tests run on this system so they can be shared between configure
14393 # scripts and configure runs, see configure's option --config-cache.
14394 # It is not useful on other systems. If it contains results you don't
14395 # want to keep, you may remove or edit it.
14396 #
14397 # config.status only pays attention to the cache file if you give it
14398 # the --recheck option to rerun configure.
14399 #
14400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14402 # following values.
14403
14404 _ACEOF
14405
14406 # The following way of writing the cache mishandles newlines in values,
14407 # but we know of no workaround that is simple, portable, and efficient.
14408 # So, we kill variables containing newlines.
14409 # Ultrix sh set writes to stderr and can't be redirected directly,
14410 # and sets the high bit in the cache file unless we assign to the vars.
14411 (
14412 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14413 eval ac_val=\$$ac_var
14414 case $ac_val in #(
14415 *${as_nl}*)
14416 case $ac_var in #(
14417 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14419 esac
14420 case $ac_var in #(
14421 _ | IFS | as_nl) ;; #(
14422 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14423 *) { eval $ac_var=; unset $ac_var;} ;;
14424 esac ;;
14425 esac
14426 done
14427
14428 (set) 2>&1 |
14429 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14430 *${as_nl}ac_space=\ *)
14431 # `set' does not quote correctly, so add quotes: double-quote
14432 # substitution turns \\\\ into \\, and sed turns \\ into \.
14433 sed -n \
14434 "s/'/'\\\\''/g;
14435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14436 ;; #(
14437 *)
14438 # `set' quotes correctly as required by POSIX, so do not add quotes.
14439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14440 ;;
14441 esac |
14442 sort
14443 ) |
14444 sed '
14445 /^ac_cv_env_/b end
14446 t clear
14447 :clear
14448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14449 t end
14450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14451 :end' >>confcache
14452 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14453 if test -w "$cache_file"; then
14454 test "x$cache_file" != "x/dev/null" &&
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14456 $as_echo "$as_me: updating cache $cache_file" >&6;}
14457 cat confcache >$cache_file
14458 else
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14460 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14461 fi
14462 fi
14463 rm -f confcache
14464
14465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14466 # Let make expand exec_prefix.
14467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14468
14469 # Transform confdefs.h into DEFS.
14470 # Protect against shell expansion while executing Makefile rules.
14471 # Protect against Makefile macro expansion.
14472 #
14473 # If the first sed substitution is executed (which looks for macros that
14474 # take arguments), then branch to the quote section. Otherwise,
14475 # look for a macro that doesn't take arguments.
14476 ac_script='
14477 :mline
14478 /\\$/{
14479 N
14480 s,\\\n,,
14481 b mline
14482 }
14483 t clear
14484 :clear
14485 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14486 t quote
14487 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14488 t quote
14489 b any
14490 :quote
14491 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14492 s/\[/\\&/g
14493 s/\]/\\&/g
14494 s/\$/$$/g
14495 H
14496 :any
14497 ${
14498 g
14499 s/^\n//
14500 s/\n/ /g
14501 p
14502 }
14503 '
14504 DEFS=`sed -n "$ac_script" confdefs.h`
14505
14506
14507 ac_libobjs=
14508 ac_ltlibobjs=
14509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14510 # 1. Remove the extension, and $U if already installed.
14511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14512 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14514 # will be set to the directory where LIBOBJS objects are built.
14515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14517 done
14518 LIBOBJS=$ac_libobjs
14519
14520 LTLIBOBJS=$ac_ltlibobjs
14521
14522
14523 if test -n "$EXEEXT"; then
14524 am__EXEEXT_TRUE=
14525 am__EXEEXT_FALSE='#'
14526 else
14527 am__EXEEXT_TRUE='#'
14528 am__EXEEXT_FALSE=
14529 fi
14530
14531 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14532 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534 fi
14535 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14536 as_fn_error "conditional \"AMDEP\" was never defined.
14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14538 fi
14539 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14540 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542 fi
14543 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14544 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14546 fi
14547 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14548 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14550 fi
14551 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14552 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14554 fi
14555
14556 : ${CONFIG_STATUS=./config.status}
14557 ac_write_fail=0
14558 ac_clean_files_save=$ac_clean_files
14559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14561 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14562 as_write_fail=0
14563 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14564 #! $SHELL
14565 # Generated by $as_me.
14566 # Run this file to recreate the current configuration.
14567 # Compiler output produced by configure, useful for debugging
14568 # configure, is in config.log if it exists.
14569
14570 debug=false
14571 ac_cs_recheck=false
14572 ac_cs_silent=false
14573
14574 SHELL=\${CONFIG_SHELL-$SHELL}
14575 export SHELL
14576 _ASEOF
14577 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14578 ## -------------------- ##
14579 ## M4sh Initialization. ##
14580 ## -------------------- ##
14581
14582 # Be more Bourne compatible
14583 DUALCASE=1; export DUALCASE # for MKS sh
14584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14585 emulate sh
14586 NULLCMD=:
14587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14588 # is contrary to our usage. Disable this feature.
14589 alias -g '${1+"$@"}'='"$@"'
14590 setopt NO_GLOB_SUBST
14591 else
14592 case `(set -o) 2>/dev/null` in #(
14593 *posix*) :
14594 set -o posix ;; #(
14595 *) :
14596 ;;
14597 esac
14598 fi
14599
14600
14601 as_nl='
14602 '
14603 export as_nl
14604 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14605 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14608 # Prefer a ksh shell builtin over an external printf program on Solaris,
14609 # but without wasting forks for bash or zsh.
14610 if test -z "$BASH_VERSION$ZSH_VERSION" \
14611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14612 as_echo='print -r --'
14613 as_echo_n='print -rn --'
14614 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14615 as_echo='printf %s\n'
14616 as_echo_n='printf %s'
14617 else
14618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14620 as_echo_n='/usr/ucb/echo -n'
14621 else
14622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14623 as_echo_n_body='eval
14624 arg=$1;
14625 case $arg in #(
14626 *"$as_nl"*)
14627 expr "X$arg" : "X\\(.*\\)$as_nl";
14628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14629 esac;
14630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14631 '
14632 export as_echo_n_body
14633 as_echo_n='sh -c $as_echo_n_body as_echo'
14634 fi
14635 export as_echo_body
14636 as_echo='sh -c $as_echo_body as_echo'
14637 fi
14638
14639 # The user is always right.
14640 if test "${PATH_SEPARATOR+set}" != set; then
14641 PATH_SEPARATOR=:
14642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14644 PATH_SEPARATOR=';'
14645 }
14646 fi
14647
14648
14649 # IFS
14650 # We need space, tab and new line, in precisely that order. Quoting is
14651 # there to prevent editors from complaining about space-tab.
14652 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14653 # splitting by setting IFS to empty value.)
14654 IFS=" "" $as_nl"
14655
14656 # Find who we are. Look in the path if we contain no directory separator.
14657 case $0 in #((
14658 *[\\/]* ) as_myself=$0 ;;
14659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660 for as_dir in $PATH
14661 do
14662 IFS=$as_save_IFS
14663 test -z "$as_dir" && as_dir=.
14664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14665 done
14666 IFS=$as_save_IFS
14667
14668 ;;
14669 esac
14670 # We did not find ourselves, most probably we were run as `sh COMMAND'
14671 # in which case we are not to be found in the path.
14672 if test "x$as_myself" = x; then
14673 as_myself=$0
14674 fi
14675 if test ! -f "$as_myself"; then
14676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14677 exit 1
14678 fi
14679
14680 # Unset variables that we do not need and which cause bugs (e.g. in
14681 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14682 # suppresses any "Segmentation fault" message there. '((' could
14683 # trigger a bug in pdksh 5.2.14.
14684 for as_var in BASH_ENV ENV MAIL MAILPATH
14685 do eval test x\${$as_var+set} = xset \
14686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14687 done
14688 PS1='$ '
14689 PS2='> '
14690 PS4='+ '
14691
14692 # NLS nuisances.
14693 LC_ALL=C
14694 export LC_ALL
14695 LANGUAGE=C
14696 export LANGUAGE
14697
14698 # CDPATH.
14699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14700
14701
14702 # as_fn_error ERROR [LINENO LOG_FD]
14703 # ---------------------------------
14704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14706 # script with status $?, using 1 if that was 0.
14707 as_fn_error ()
14708 {
14709 as_status=$?; test $as_status -eq 0 && as_status=1
14710 if test "$3"; then
14711 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14713 fi
14714 $as_echo "$as_me: error: $1" >&2
14715 as_fn_exit $as_status
14716 } # as_fn_error
14717
14718
14719 # as_fn_set_status STATUS
14720 # -----------------------
14721 # Set $? to STATUS, without forking.
14722 as_fn_set_status ()
14723 {
14724 return $1
14725 } # as_fn_set_status
14726
14727 # as_fn_exit STATUS
14728 # -----------------
14729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14730 as_fn_exit ()
14731 {
14732 set +e
14733 as_fn_set_status $1
14734 exit $1
14735 } # as_fn_exit
14736
14737 # as_fn_unset VAR
14738 # ---------------
14739 # Portably unset VAR.
14740 as_fn_unset ()
14741 {
14742 { eval $1=; unset $1;}
14743 }
14744 as_unset=as_fn_unset
14745 # as_fn_append VAR VALUE
14746 # ----------------------
14747 # Append the text in VALUE to the end of the definition contained in VAR. Take
14748 # advantage of any shell optimizations that allow amortized linear growth over
14749 # repeated appends, instead of the typical quadratic growth present in naive
14750 # implementations.
14751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14752 eval 'as_fn_append ()
14753 {
14754 eval $1+=\$2
14755 }'
14756 else
14757 as_fn_append ()
14758 {
14759 eval $1=\$$1\$2
14760 }
14761 fi # as_fn_append
14762
14763 # as_fn_arith ARG...
14764 # ------------------
14765 # Perform arithmetic evaluation on the ARGs, and store the result in the
14766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14767 # must be portable across $(()) and expr.
14768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14769 eval 'as_fn_arith ()
14770 {
14771 as_val=$(( $* ))
14772 }'
14773 else
14774 as_fn_arith ()
14775 {
14776 as_val=`expr "$@" || test $? -eq 1`
14777 }
14778 fi # as_fn_arith
14779
14780
14781 if expr a : '\(a\)' >/dev/null 2>&1 &&
14782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14783 as_expr=expr
14784 else
14785 as_expr=false
14786 fi
14787
14788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14789 as_basename=basename
14790 else
14791 as_basename=false
14792 fi
14793
14794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14795 as_dirname=dirname
14796 else
14797 as_dirname=false
14798 fi
14799
14800 as_me=`$as_basename -- "$0" ||
14801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14802 X"$0" : 'X\(//\)$' \| \
14803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14804 $as_echo X/"$0" |
14805 sed '/^.*\/\([^/][^/]*\)\/*$/{
14806 s//\1/
14807 q
14808 }
14809 /^X\/\(\/\/\)$/{
14810 s//\1/
14811 q
14812 }
14813 /^X\/\(\/\).*/{
14814 s//\1/
14815 q
14816 }
14817 s/.*/./; q'`
14818
14819 # Avoid depending upon Character Ranges.
14820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14823 as_cr_digits='0123456789'
14824 as_cr_alnum=$as_cr_Letters$as_cr_digits
14825
14826 ECHO_C= ECHO_N= ECHO_T=
14827 case `echo -n x` in #(((((
14828 -n*)
14829 case `echo 'xy\c'` in
14830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14831 xy) ECHO_C='\c';;
14832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14833 ECHO_T=' ';;
14834 esac;;
14835 *)
14836 ECHO_N='-n';;
14837 esac
14838
14839 rm -f conf$$ conf$$.exe conf$$.file
14840 if test -d conf$$.dir; then
14841 rm -f conf$$.dir/conf$$.file
14842 else
14843 rm -f conf$$.dir
14844 mkdir conf$$.dir 2>/dev/null
14845 fi
14846 if (echo >conf$$.file) 2>/dev/null; then
14847 if ln -s conf$$.file conf$$ 2>/dev/null; then
14848 as_ln_s='ln -s'
14849 # ... but there are two gotchas:
14850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14852 # In both cases, we have to default to `cp -p'.
14853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14854 as_ln_s='cp -p'
14855 elif ln conf$$.file conf$$ 2>/dev/null; then
14856 as_ln_s=ln
14857 else
14858 as_ln_s='cp -p'
14859 fi
14860 else
14861 as_ln_s='cp -p'
14862 fi
14863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14864 rmdir conf$$.dir 2>/dev/null
14865
14866
14867 # as_fn_mkdir_p
14868 # -------------
14869 # Create "$as_dir" as a directory, including parents if necessary.
14870 as_fn_mkdir_p ()
14871 {
14872
14873 case $as_dir in #(
14874 -*) as_dir=./$as_dir;;
14875 esac
14876 test -d "$as_dir" || eval $as_mkdir_p || {
14877 as_dirs=
14878 while :; do
14879 case $as_dir in #(
14880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14881 *) as_qdir=$as_dir;;
14882 esac
14883 as_dirs="'$as_qdir' $as_dirs"
14884 as_dir=`$as_dirname -- "$as_dir" ||
14885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14886 X"$as_dir" : 'X\(//\)[^/]' \| \
14887 X"$as_dir" : 'X\(//\)$' \| \
14888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14889 $as_echo X"$as_dir" |
14890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14891 s//\1/
14892 q
14893 }
14894 /^X\(\/\/\)[^/].*/{
14895 s//\1/
14896 q
14897 }
14898 /^X\(\/\/\)$/{
14899 s//\1/
14900 q
14901 }
14902 /^X\(\/\).*/{
14903 s//\1/
14904 q
14905 }
14906 s/.*/./; q'`
14907 test -d "$as_dir" && break
14908 done
14909 test -z "$as_dirs" || eval "mkdir $as_dirs"
14910 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14911
14912
14913 } # as_fn_mkdir_p
14914 if mkdir -p . 2>/dev/null; then
14915 as_mkdir_p='mkdir -p "$as_dir"'
14916 else
14917 test -d ./-p && rmdir ./-p
14918 as_mkdir_p=false
14919 fi
14920
14921 if test -x / >/dev/null 2>&1; then
14922 as_test_x='test -x'
14923 else
14924 if ls -dL / >/dev/null 2>&1; then
14925 as_ls_L_option=L
14926 else
14927 as_ls_L_option=
14928 fi
14929 as_test_x='
14930 eval sh -c '\''
14931 if test -d "$1"; then
14932 test -d "$1/.";
14933 else
14934 case $1 in #(
14935 -*)set "./$1";;
14936 esac;
14937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14938 ???[sx]*):;;*)false;;esac;fi
14939 '\'' sh
14940 '
14941 fi
14942 as_executable_p=$as_test_x
14943
14944 # Sed expression to map a string onto a valid CPP name.
14945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14946
14947 # Sed expression to map a string onto a valid variable name.
14948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14949
14950
14951 exec 6>&1
14952 ## ----------------------------------- ##
14953 ## Main body of $CONFIG_STATUS script. ##
14954 ## ----------------------------------- ##
14955 _ASEOF
14956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14957
14958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959 # Save the log message, to keep $0 and so on meaningful, and to
14960 # report actual input values of CONFIG_FILES etc. instead of their
14961 # values after options handling.
14962 ac_log="
14963 This file was extended by Cilk Runtime Library $as_me 2.0, which was
14964 generated by GNU Autoconf 2.64. Invocation command line was
14965
14966 CONFIG_FILES = $CONFIG_FILES
14967 CONFIG_HEADERS = $CONFIG_HEADERS
14968 CONFIG_LINKS = $CONFIG_LINKS
14969 CONFIG_COMMANDS = $CONFIG_COMMANDS
14970 $ $0 $@
14971
14972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14973 "
14974
14975 _ACEOF
14976
14977 case $ac_config_files in *"
14978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14979 esac
14980
14981
14982
14983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14984 # Files that config.status was made for.
14985 config_files="$ac_config_files"
14986 config_commands="$ac_config_commands"
14987
14988 _ACEOF
14989
14990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14991 ac_cs_usage="\
14992 \`$as_me' instantiates files and other configuration actions
14993 from templates according to the current configuration. Unless the files
14994 and actions are specified as TAGs, all are instantiated by default.
14995
14996 Usage: $0 [OPTION]... [TAG]...
14997
14998 -h, --help print this help, then exit
14999 -V, --version print version number and configuration settings, then exit
15000 -q, --quiet, --silent
15001 do not print progress messages
15002 -d, --debug don't remove temporary files
15003 --recheck update $as_me by reconfiguring in the same conditions
15004 --file=FILE[:TEMPLATE]
15005 instantiate the configuration file FILE
15006
15007 Configuration files:
15008 $config_files
15009
15010 Configuration commands:
15011 $config_commands
15012
15013 Report bugs to <cilk@intel.com>."
15014
15015 _ACEOF
15016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017 ac_cs_version="\\
15018 Cilk Runtime Library config.status 2.0
15019 configured by $0, generated by GNU Autoconf 2.64,
15020 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15021
15022 Copyright (C) 2009 Free Software Foundation, Inc.
15023 This config.status script is free software; the Free Software Foundation
15024 gives unlimited permission to copy, distribute and modify it."
15025
15026 ac_pwd='$ac_pwd'
15027 srcdir='$srcdir'
15028 INSTALL='$INSTALL'
15029 MKDIR_P='$MKDIR_P'
15030 AWK='$AWK'
15031 test -n "\$AWK" || AWK=awk
15032 _ACEOF
15033
15034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15035 # The default lists apply if the user does not specify any file.
15036 ac_need_defaults=:
15037 while test $# != 0
15038 do
15039 case $1 in
15040 --*=*)
15041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15043 ac_shift=:
15044 ;;
15045 *)
15046 ac_option=$1
15047 ac_optarg=$2
15048 ac_shift=shift
15049 ;;
15050 esac
15051
15052 case $ac_option in
15053 # Handling of the options.
15054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15055 ac_cs_recheck=: ;;
15056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15057 $as_echo "$ac_cs_version"; exit ;;
15058 --debug | --debu | --deb | --de | --d | -d )
15059 debug=: ;;
15060 --file | --fil | --fi | --f )
15061 $ac_shift
15062 case $ac_optarg in
15063 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15064 esac
15065 as_fn_append CONFIG_FILES " '$ac_optarg'"
15066 ac_need_defaults=false;;
15067 --he | --h | --help | --hel | -h )
15068 $as_echo "$ac_cs_usage"; exit ;;
15069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15071 ac_cs_silent=: ;;
15072
15073 # This is an error.
15074 -*) as_fn_error "unrecognized option: \`$1'
15075 Try \`$0 --help' for more information." ;;
15076
15077 *) as_fn_append ac_config_targets " $1"
15078 ac_need_defaults=false ;;
15079
15080 esac
15081 shift
15082 done
15083
15084 ac_configure_extra_args=
15085
15086 if $ac_cs_silent; then
15087 exec 6>/dev/null
15088 ac_configure_extra_args="$ac_configure_extra_args --silent"
15089 fi
15090
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 if \$ac_cs_recheck; then
15094 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15095 shift
15096 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15097 CONFIG_SHELL='$SHELL'
15098 export CONFIG_SHELL
15099 exec "\$@"
15100 fi
15101
15102 _ACEOF
15103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15104 exec 5>>config.log
15105 {
15106 echo
15107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15108 ## Running $as_me. ##
15109 _ASBOX
15110 $as_echo "$ac_log"
15111 } >&5
15112
15113 _ACEOF
15114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15115 #
15116 # INIT-COMMANDS
15117 #
15118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15119
15120 srcdir="$srcdir"
15121 host="$host"
15122 target="$target"
15123 with_multisubdir="$with_multisubdir"
15124 with_multisrctop="$with_multisrctop"
15125 with_target_subdir="$with_target_subdir"
15126 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15127 multi_basedir="$multi_basedir"
15128 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15129 CC="$CC"
15130 CXX="$CXX"
15131 GFORTRAN="$GFORTRAN"
15132 GCJ="$GCJ"
15133
15134
15135 # The HP-UX ksh and POSIX shell print the target directory to stdout
15136 # if CDPATH is set.
15137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15138
15139 sed_quote_subst='$sed_quote_subst'
15140 double_quote_subst='$double_quote_subst'
15141 delay_variable_subst='$delay_variable_subst'
15142 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15143 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15144 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15145 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15146 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15147 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15148 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15149 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15150 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15151 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15152 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15153 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15154 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15155 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15156 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15157 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15158 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15159 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15160 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15161 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15162 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15163 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15164 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15165 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15166 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15167 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15168 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15169 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15170 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15171 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15172 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15173 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15174 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15175 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15176 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15177 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15178 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15179 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15180 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15181 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15182 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15183 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15184 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15185 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15186 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15187 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15188 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15189 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15190 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"`'
15191 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15192 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15193 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15194 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15195 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15196 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15197 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15198 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15199 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15200 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15201 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15202 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15203 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15204 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15205 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15206 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15207 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15208 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15209 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15210 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15211 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15212 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15213 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15214 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15215 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15216 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15217 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15218 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15219 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15220 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15221 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15222 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15223 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15224 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15225 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15226 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15227 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15228 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15229 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15230 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15231 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15232 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15233 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15234 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15235 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15236 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15237 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15238 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15239 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15240 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15241 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15242 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15243 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15244 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15245 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15246 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15247 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15248 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15249 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15250 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15251 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15252 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15253 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15254 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15255 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15256 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15257 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15258 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15259 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15260 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15261 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15262 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15263 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15264 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15265 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15266 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15267 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15268 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15269 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15270 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15271 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15272 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15273 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15274 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15275 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15276 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15277 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15278 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15279 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15280 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15281 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15282 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15283 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15284 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15285 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15286 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15287 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15288 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15289 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15290 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15291 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15292 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15293 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15294 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15295 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15296 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15297 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15298 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15299 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15300 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15301 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15302 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15303 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15304 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15305 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15306 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15307 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15308 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15309 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15310 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15311 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15312 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15313 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15314 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15315 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15316 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15317
15318 LTCC='$LTCC'
15319 LTCFLAGS='$LTCFLAGS'
15320 compiler='$compiler_DEFAULT'
15321
15322 # A function that is used when there is no print builtin or printf.
15323 func_fallback_echo ()
15324 {
15325 eval 'cat <<_LTECHO_EOF
15326 \$1
15327 _LTECHO_EOF'
15328 }
15329
15330 # Quote evaled strings.
15331 for var in SHELL \
15332 ECHO \
15333 SED \
15334 GREP \
15335 EGREP \
15336 FGREP \
15337 LD \
15338 NM \
15339 LN_S \
15340 lt_SP2NL \
15341 lt_NL2SP \
15342 reload_flag \
15343 OBJDUMP \
15344 deplibs_check_method \
15345 file_magic_cmd \
15346 AR \
15347 AR_FLAGS \
15348 STRIP \
15349 RANLIB \
15350 CC \
15351 CFLAGS \
15352 compiler \
15353 lt_cv_sys_global_symbol_pipe \
15354 lt_cv_sys_global_symbol_to_cdecl \
15355 lt_cv_sys_global_symbol_to_c_name_address \
15356 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15357 lt_prog_compiler_no_builtin_flag \
15358 lt_prog_compiler_wl \
15359 lt_prog_compiler_pic \
15360 lt_prog_compiler_static \
15361 lt_cv_prog_compiler_c_o \
15362 need_locks \
15363 DSYMUTIL \
15364 NMEDIT \
15365 LIPO \
15366 OTOOL \
15367 OTOOL64 \
15368 shrext_cmds \
15369 export_dynamic_flag_spec \
15370 whole_archive_flag_spec \
15371 compiler_needs_object \
15372 with_gnu_ld \
15373 allow_undefined_flag \
15374 no_undefined_flag \
15375 hardcode_libdir_flag_spec \
15376 hardcode_libdir_flag_spec_ld \
15377 hardcode_libdir_separator \
15378 fix_srcfile_path \
15379 exclude_expsyms \
15380 include_expsyms \
15381 file_list_spec \
15382 variables_saved_for_relink \
15383 libname_spec \
15384 library_names_spec \
15385 soname_spec \
15386 install_override_mode \
15387 finish_eval \
15388 old_striplib \
15389 striplib \
15390 compiler_lib_search_dirs \
15391 predep_objects \
15392 postdep_objects \
15393 predeps \
15394 postdeps \
15395 compiler_lib_search_path \
15396 LD_CXX \
15397 reload_flag_CXX \
15398 compiler_CXX \
15399 lt_prog_compiler_no_builtin_flag_CXX \
15400 lt_prog_compiler_wl_CXX \
15401 lt_prog_compiler_pic_CXX \
15402 lt_prog_compiler_static_CXX \
15403 lt_cv_prog_compiler_c_o_CXX \
15404 export_dynamic_flag_spec_CXX \
15405 whole_archive_flag_spec_CXX \
15406 compiler_needs_object_CXX \
15407 with_gnu_ld_CXX \
15408 allow_undefined_flag_CXX \
15409 no_undefined_flag_CXX \
15410 hardcode_libdir_flag_spec_CXX \
15411 hardcode_libdir_flag_spec_ld_CXX \
15412 hardcode_libdir_separator_CXX \
15413 fix_srcfile_path_CXX \
15414 exclude_expsyms_CXX \
15415 include_expsyms_CXX \
15416 file_list_spec_CXX \
15417 compiler_lib_search_dirs_CXX \
15418 predep_objects_CXX \
15419 postdep_objects_CXX \
15420 predeps_CXX \
15421 postdeps_CXX \
15422 compiler_lib_search_path_CXX; do
15423 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15424 *[\\\\\\\`\\"\\\$]*)
15425 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15426 ;;
15427 *)
15428 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15429 ;;
15430 esac
15431 done
15432
15433 # Double-quote double-evaled strings.
15434 for var in reload_cmds \
15435 old_postinstall_cmds \
15436 old_postuninstall_cmds \
15437 old_archive_cmds \
15438 extract_expsyms_cmds \
15439 old_archive_from_new_cmds \
15440 old_archive_from_expsyms_cmds \
15441 archive_cmds \
15442 archive_expsym_cmds \
15443 module_cmds \
15444 module_expsym_cmds \
15445 export_symbols_cmds \
15446 prelink_cmds \
15447 postinstall_cmds \
15448 postuninstall_cmds \
15449 finish_cmds \
15450 sys_lib_search_path_spec \
15451 sys_lib_dlsearch_path_spec \
15452 reload_cmds_CXX \
15453 old_archive_cmds_CXX \
15454 old_archive_from_new_cmds_CXX \
15455 old_archive_from_expsyms_cmds_CXX \
15456 archive_cmds_CXX \
15457 archive_expsym_cmds_CXX \
15458 module_cmds_CXX \
15459 module_expsym_cmds_CXX \
15460 export_symbols_cmds_CXX \
15461 prelink_cmds_CXX; do
15462 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15463 *[\\\\\\\`\\"\\\$]*)
15464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15465 ;;
15466 *)
15467 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15468 ;;
15469 esac
15470 done
15471
15472 ac_aux_dir='$ac_aux_dir'
15473 xsi_shell='$xsi_shell'
15474 lt_shell_append='$lt_shell_append'
15475
15476 # See if we are running on zsh, and set the options which allow our
15477 # commands through without removal of \ escapes INIT.
15478 if test -n "\${ZSH_VERSION+set}" ; then
15479 setopt NO_GLOB_SUBST
15480 fi
15481
15482
15483 PACKAGE='$PACKAGE'
15484 VERSION='$VERSION'
15485 TIMESTAMP='$TIMESTAMP'
15486 RM='$RM'
15487 ofile='$ofile'
15488
15489
15490
15491
15492
15493
15494 _ACEOF
15495
15496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15497
15498 # Handling of arguments.
15499 for ac_config_target in $ac_config_targets
15500 do
15501 case $ac_config_target in
15502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15504 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15505 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15506
15507 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15508 esac
15509 done
15510
15511
15512 # If the user did not use the arguments to specify the items to instantiate,
15513 # then the envvar interface is used. Set only those that are not.
15514 # We use the long form for the default assignment because of an extremely
15515 # bizarre bug on SunOS 4.1.3.
15516 if $ac_need_defaults; then
15517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15519 fi
15520
15521 # Have a temporary directory for convenience. Make it in the build tree
15522 # simply because there is no reason against having it here, and in addition,
15523 # creating and moving files from /tmp can sometimes cause problems.
15524 # Hook for its removal unless debugging.
15525 # Note that there is a small window in which the directory will not be cleaned:
15526 # after its creation but before its name has been assigned to `$tmp'.
15527 $debug ||
15528 {
15529 tmp=
15530 trap 'exit_status=$?
15531 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15532 ' 0
15533 trap 'as_fn_exit 1' 1 2 13 15
15534 }
15535 # Create a (secure) tmp directory for tmp files.
15536
15537 {
15538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15539 test -n "$tmp" && test -d "$tmp"
15540 } ||
15541 {
15542 tmp=./conf$$-$RANDOM
15543 (umask 077 && mkdir "$tmp")
15544 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15545
15546 # Set up the scripts for CONFIG_FILES section.
15547 # No need to generate them if there are no CONFIG_FILES.
15548 # This happens for instance with `./config.status config.h'.
15549 if test -n "$CONFIG_FILES"; then
15550
15551
15552 ac_cr=`echo X | tr X '\015'`
15553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15554 # But we know of no other shell where ac_cr would be empty at this
15555 # point, so we can use a bashism as a fallback.
15556 if test "x$ac_cr" = x; then
15557 eval ac_cr=\$\'\\r\'
15558 fi
15559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15561 ac_cs_awk_cr='\r'
15562 else
15563 ac_cs_awk_cr=$ac_cr
15564 fi
15565
15566 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15567 _ACEOF
15568
15569
15570 {
15571 echo "cat >conf$$subs.awk <<_ACEOF" &&
15572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15573 echo "_ACEOF"
15574 } >conf$$subs.sh ||
15575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15577 ac_delim='%!_!# '
15578 for ac_last_try in false false false false false :; do
15579 . ./conf$$subs.sh ||
15580 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15581
15582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15583 if test $ac_delim_n = $ac_delim_num; then
15584 break
15585 elif $ac_last_try; then
15586 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15587 else
15588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15589 fi
15590 done
15591 rm -f conf$$subs.sh
15592
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15595 _ACEOF
15596 sed -n '
15597 h
15598 s/^/S["/; s/!.*/"]=/
15599 p
15600 g
15601 s/^[^!]*!//
15602 :repl
15603 t repl
15604 s/'"$ac_delim"'$//
15605 t delim
15606 :nl
15607 h
15608 s/\(.\{148\}\).*/\1/
15609 t more1
15610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15611 p
15612 n
15613 b repl
15614 :more1
15615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15616 p
15617 g
15618 s/.\{148\}//
15619 t nl
15620 :delim
15621 h
15622 s/\(.\{148\}\).*/\1/
15623 t more2
15624 s/["\\]/\\&/g; s/^/"/; s/$/"/
15625 p
15626 b
15627 :more2
15628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15629 p
15630 g
15631 s/.\{148\}//
15632 t delim
15633 ' <conf$$subs.awk | sed '
15634 /^[^""]/{
15635 N
15636 s/\n//
15637 }
15638 ' >>$CONFIG_STATUS || ac_write_fail=1
15639 rm -f conf$$subs.awk
15640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15641 _ACAWK
15642 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15643 for (key in S) S_is_set[key] = 1
15644 FS = "\a"
15645
15646 }
15647 {
15648 line = $ 0
15649 nfields = split(line, field, "@")
15650 substed = 0
15651 len = length(field[1])
15652 for (i = 2; i < nfields; i++) {
15653 key = field[i]
15654 keylen = length(key)
15655 if (S_is_set[key]) {
15656 value = S[key]
15657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15658 len += length(value) + length(field[++i])
15659 substed = 1
15660 } else
15661 len += 1 + keylen
15662 }
15663
15664 print line
15665 }
15666
15667 _ACAWK
15668 _ACEOF
15669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15672 else
15673 cat
15674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15675 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15676 _ACEOF
15677
15678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15680 # trailing colons and then remove the whole line if VPATH becomes empty
15681 # (actually we leave an empty line to preserve line numbers).
15682 if test "x$srcdir" = x.; then
15683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15684 s/:*\$(srcdir):*/:/
15685 s/:*\${srcdir}:*/:/
15686 s/:*@srcdir@:*/:/
15687 s/^\([^=]*=[ ]*\):*/\1/
15688 s/:*$//
15689 s/^[^=]*=[ ]*$//
15690 }'
15691 fi
15692
15693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694 fi # test -n "$CONFIG_FILES"
15695
15696
15697 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15698 shift
15699 for ac_tag
15700 do
15701 case $ac_tag in
15702 :[FHLC]) ac_mode=$ac_tag; continue;;
15703 esac
15704 case $ac_mode$ac_tag in
15705 :[FHL]*:*);;
15706 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15707 :[FH]-) ac_tag=-:-;;
15708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15709 esac
15710 ac_save_IFS=$IFS
15711 IFS=:
15712 set x $ac_tag
15713 IFS=$ac_save_IFS
15714 shift
15715 ac_file=$1
15716 shift
15717
15718 case $ac_mode in
15719 :L) ac_source=$1;;
15720 :[FH])
15721 ac_file_inputs=
15722 for ac_f
15723 do
15724 case $ac_f in
15725 -) ac_f="$tmp/stdin";;
15726 *) # Look for the file first in the build tree, then in the source tree
15727 # (if the path is not absolute). The absolute path cannot be DOS-style,
15728 # because $ac_f cannot contain `:'.
15729 test -f "$ac_f" ||
15730 case $ac_f in
15731 [\\/$]*) false;;
15732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15733 esac ||
15734 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15735 esac
15736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15737 as_fn_append ac_file_inputs " '$ac_f'"
15738 done
15739
15740 # Let's still pretend it is `configure' which instantiates (i.e., don't
15741 # use $as_me), people would be surprised to read:
15742 # /* config.h. Generated by config.status. */
15743 configure_input='Generated from '`
15744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15745 `' by configure.'
15746 if test x"$ac_file" != x-; then
15747 configure_input="$ac_file. $configure_input"
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15749 $as_echo "$as_me: creating $ac_file" >&6;}
15750 fi
15751 # Neutralize special characters interpreted by sed in replacement strings.
15752 case $configure_input in #(
15753 *\&* | *\|* | *\\* )
15754 ac_sed_conf_input=`$as_echo "$configure_input" |
15755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15756 *) ac_sed_conf_input=$configure_input;;
15757 esac
15758
15759 case $ac_tag in
15760 *:-:* | *:-) cat >"$tmp/stdin" \
15761 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15762 esac
15763 ;;
15764 esac
15765
15766 ac_dir=`$as_dirname -- "$ac_file" ||
15767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15768 X"$ac_file" : 'X\(//\)[^/]' \| \
15769 X"$ac_file" : 'X\(//\)$' \| \
15770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15771 $as_echo X"$ac_file" |
15772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\/\)[^/].*/{
15777 s//\1/
15778 q
15779 }
15780 /^X\(\/\/\)$/{
15781 s//\1/
15782 q
15783 }
15784 /^X\(\/\).*/{
15785 s//\1/
15786 q
15787 }
15788 s/.*/./; q'`
15789 as_dir="$ac_dir"; as_fn_mkdir_p
15790 ac_builddir=.
15791
15792 case "$ac_dir" in
15793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15794 *)
15795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15796 # A ".." for each directory in $ac_dir_suffix.
15797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15798 case $ac_top_builddir_sub in
15799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15801 esac ;;
15802 esac
15803 ac_abs_top_builddir=$ac_pwd
15804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15805 # for backward compatibility:
15806 ac_top_builddir=$ac_top_build_prefix
15807
15808 case $srcdir in
15809 .) # We are building in place.
15810 ac_srcdir=.
15811 ac_top_srcdir=$ac_top_builddir_sub
15812 ac_abs_top_srcdir=$ac_pwd ;;
15813 [\\/]* | ?:[\\/]* ) # Absolute name.
15814 ac_srcdir=$srcdir$ac_dir_suffix;
15815 ac_top_srcdir=$srcdir
15816 ac_abs_top_srcdir=$srcdir ;;
15817 *) # Relative name.
15818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15819 ac_top_srcdir=$ac_top_build_prefix$srcdir
15820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15821 esac
15822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15823
15824
15825 case $ac_mode in
15826 :F)
15827 #
15828 # CONFIG_FILE
15829 #
15830
15831 case $INSTALL in
15832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15834 esac
15835 ac_MKDIR_P=$MKDIR_P
15836 case $MKDIR_P in
15837 [\\/$]* | ?:[\\/]* ) ;;
15838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15839 esac
15840 _ACEOF
15841
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 # If the template does not know about datarootdir, expand it.
15844 # FIXME: This hack should be removed a few years after 2.60.
15845 ac_datarootdir_hack=; ac_datarootdir_seen=
15846 ac_sed_dataroot='
15847 /datarootdir/ {
15848 p
15849 q
15850 }
15851 /@datadir@/p
15852 /@docdir@/p
15853 /@infodir@/p
15854 /@localedir@/p
15855 /@mandir@/p'
15856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15857 *datarootdir*) ac_datarootdir_seen=yes;;
15858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15861 _ACEOF
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 ac_datarootdir_hack='
15864 s&@datadir@&$datadir&g
15865 s&@docdir@&$docdir&g
15866 s&@infodir@&$infodir&g
15867 s&@localedir@&$localedir&g
15868 s&@mandir@&$mandir&g
15869 s&\\\${datarootdir}&$datarootdir&g' ;;
15870 esac
15871 _ACEOF
15872
15873 # Neutralize VPATH when `$srcdir' = `.'.
15874 # Shell code in configure.ac might set extrasub.
15875 # FIXME: do we really want to maintain this feature?
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 ac_sed_extra="$ac_vpsub
15878 $extrasub
15879 _ACEOF
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881 :t
15882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15883 s|@configure_input@|$ac_sed_conf_input|;t t
15884 s&@top_builddir@&$ac_top_builddir_sub&;t t
15885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15886 s&@srcdir@&$ac_srcdir&;t t
15887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15888 s&@top_srcdir@&$ac_top_srcdir&;t t
15889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15890 s&@builddir@&$ac_builddir&;t t
15891 s&@abs_builddir@&$ac_abs_builddir&;t t
15892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15893 s&@INSTALL@&$ac_INSTALL&;t t
15894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15895 $ac_datarootdir_hack
15896 "
15897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15898 || as_fn_error "could not create $ac_file" "$LINENO" 5
15899
15900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15901 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15904 which seems to be undefined. Please make sure it is defined." >&5
15905 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15906 which seems to be undefined. Please make sure it is defined." >&2;}
15907
15908 rm -f "$tmp/stdin"
15909 case $ac_file in
15910 -) cat "$tmp/out" && rm -f "$tmp/out";;
15911 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15912 esac \
15913 || as_fn_error "could not create $ac_file" "$LINENO" 5
15914 ;;
15915
15916
15917 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15918 $as_echo "$as_me: executing $ac_file commands" >&6;}
15919 ;;
15920 esac
15921
15922
15923 case $ac_file$ac_mode in
15924 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15925 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15926 # are listed without --file. Let's play safe and only enable the eval
15927 # if we detect the quoting.
15928 case $CONFIG_FILES in
15929 *\'*) eval set x "$CONFIG_FILES" ;;
15930 *) set x $CONFIG_FILES ;;
15931 esac
15932 shift
15933 for mf
15934 do
15935 # Strip MF so we end up with the name of the file.
15936 mf=`echo "$mf" | sed -e 's/:.*$//'`
15937 # Check whether this is an Automake generated Makefile or not.
15938 # We used to match only the files named `Makefile.in', but
15939 # some people rename them; so instead we look at the file content.
15940 # Grep'ing the first line is not enough: some people post-process
15941 # each Makefile.in and add a new line on top of each file to say so.
15942 # Grep'ing the whole file is not good either: AIX grep has a line
15943 # limit of 2048, but all sed's we know have understand at least 4000.
15944 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15945 dirpart=`$as_dirname -- "$mf" ||
15946 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$mf" : 'X\(//\)[^/]' \| \
15948 X"$mf" : 'X\(//\)$' \| \
15949 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15950 $as_echo X"$mf" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 else
15969 continue
15970 fi
15971 # Extract the definition of DEPDIR, am__include, and am__quote
15972 # from the Makefile without running `make'.
15973 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15974 test -z "$DEPDIR" && continue
15975 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15976 test -z "am__include" && continue
15977 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15978 # When using ansi2knr, U may be empty or an underscore; expand it
15979 U=`sed -n 's/^U = //p' < "$mf"`
15980 # Find all dependency output files, they are included files with
15981 # $(DEPDIR) in their names. We invoke sed twice because it is the
15982 # simplest approach to changing $(DEPDIR) to its actual value in the
15983 # expansion.
15984 for file in `sed -n "
15985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15987 # Make sure the directory exists.
15988 test -f "$dirpart/$file" && continue
15989 fdir=`$as_dirname -- "$file" ||
15990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15991 X"$file" : 'X\(//\)[^/]' \| \
15992 X"$file" : 'X\(//\)$' \| \
15993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15994 $as_echo X"$file" |
15995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15996 s//\1/
15997 q
15998 }
15999 /^X\(\/\/\)[^/].*/{
16000 s//\1/
16001 q
16002 }
16003 /^X\(\/\/\)$/{
16004 s//\1/
16005 q
16006 }
16007 /^X\(\/\).*/{
16008 s//\1/
16009 q
16010 }
16011 s/.*/./; q'`
16012 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16013 # echo "creating $dirpart/$file"
16014 echo '# dummy' > "$dirpart/$file"
16015 done
16016 done
16017 }
16018 ;;
16019 "default-1":C)
16020 # Only add multilib support code if we just rebuilt the top-level
16021 # Makefile.
16022 case " $CONFIG_FILES " in
16023 *" Makefile "*)
16024 ac_file=Makefile . ${multi_basedir}/config-ml.in
16025 ;;
16026 esac ;;
16027 "libtool":C)
16028
16029 # See if we are running on zsh, and set the options which allow our
16030 # commands through without removal of \ escapes.
16031 if test -n "${ZSH_VERSION+set}" ; then
16032 setopt NO_GLOB_SUBST
16033 fi
16034
16035 cfgfile="${ofile}T"
16036 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16037 $RM "$cfgfile"
16038
16039 cat <<_LT_EOF >> "$cfgfile"
16040 #! $SHELL
16041
16042 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16043 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16045 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16046 #
16047 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16048 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16049 # Written by Gordon Matzigkeit, 1996
16050 #
16051 # This file is part of GNU Libtool.
16052 #
16053 # GNU Libtool is free software; you can redistribute it and/or
16054 # modify it under the terms of the GNU General Public License as
16055 # published by the Free Software Foundation; either version 2 of
16056 # the License, or (at your option) any later version.
16057 #
16058 # As a special exception to the GNU General Public License,
16059 # if you distribute this file as part of a program or library that
16060 # is built using GNU Libtool, you may include this file under the
16061 # same distribution terms that you use for the rest of that program.
16062 #
16063 # GNU Libtool is distributed in the hope that it will be useful,
16064 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16065 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16066 # GNU General Public License for more details.
16067 #
16068 # You should have received a copy of the GNU General Public License
16069 # along with GNU Libtool; see the file COPYING. If not, a copy
16070 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16071 # obtained by writing to the Free Software Foundation, Inc.,
16072 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16073
16074
16075 # The names of the tagged configurations supported by this script.
16076 available_tags="CXX "
16077
16078 # ### BEGIN LIBTOOL CONFIG
16079
16080 # Which release of libtool.m4 was used?
16081 macro_version=$macro_version
16082 macro_revision=$macro_revision
16083
16084 # Whether or not to build shared libraries.
16085 build_libtool_libs=$enable_shared
16086
16087 # Whether or not to build static libraries.
16088 build_old_libs=$enable_static
16089
16090 # What type of objects to build.
16091 pic_mode=$pic_mode
16092
16093 # Whether or not to optimize for fast installation.
16094 fast_install=$enable_fast_install
16095
16096 # Shell to use when invoking shell scripts.
16097 SHELL=$lt_SHELL
16098
16099 # An echo program that protects backslashes.
16100 ECHO=$lt_ECHO
16101
16102 # The host system.
16103 host_alias=$host_alias
16104 host=$host
16105 host_os=$host_os
16106
16107 # The build system.
16108 build_alias=$build_alias
16109 build=$build
16110 build_os=$build_os
16111
16112 # A sed program that does not truncate output.
16113 SED=$lt_SED
16114
16115 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16116 Xsed="\$SED -e 1s/^X//"
16117
16118 # A grep program that handles long lines.
16119 GREP=$lt_GREP
16120
16121 # An ERE matcher.
16122 EGREP=$lt_EGREP
16123
16124 # A literal string matcher.
16125 FGREP=$lt_FGREP
16126
16127 # A BSD- or MS-compatible name lister.
16128 NM=$lt_NM
16129
16130 # Whether we need soft or hard links.
16131 LN_S=$lt_LN_S
16132
16133 # What is the maximum length of a command?
16134 max_cmd_len=$max_cmd_len
16135
16136 # Object file suffix (normally "o").
16137 objext=$ac_objext
16138
16139 # Executable file suffix (normally "").
16140 exeext=$exeext
16141
16142 # whether the shell understands "unset".
16143 lt_unset=$lt_unset
16144
16145 # turn spaces into newlines.
16146 SP2NL=$lt_lt_SP2NL
16147
16148 # turn newlines into spaces.
16149 NL2SP=$lt_lt_NL2SP
16150
16151 # An object symbol dumper.
16152 OBJDUMP=$lt_OBJDUMP
16153
16154 # Method to check whether dependent libraries are shared objects.
16155 deplibs_check_method=$lt_deplibs_check_method
16156
16157 # Command to use when deplibs_check_method == "file_magic".
16158 file_magic_cmd=$lt_file_magic_cmd
16159
16160 # The archiver.
16161 AR=$lt_AR
16162 AR_FLAGS=$lt_AR_FLAGS
16163
16164 # A symbol stripping program.
16165 STRIP=$lt_STRIP
16166
16167 # Commands used to install an old-style archive.
16168 RANLIB=$lt_RANLIB
16169 old_postinstall_cmds=$lt_old_postinstall_cmds
16170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16171
16172 # Whether to use a lock for old archive extraction.
16173 lock_old_archive_extraction=$lock_old_archive_extraction
16174
16175 # A C compiler.
16176 LTCC=$lt_CC
16177
16178 # LTCC compiler flags.
16179 LTCFLAGS=$lt_CFLAGS
16180
16181 # Take the output of nm and produce a listing of raw symbols and C names.
16182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16183
16184 # Transform the output of nm in a proper C declaration.
16185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16186
16187 # Transform the output of nm in a C name address pair.
16188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16189
16190 # Transform the output of nm in a C name address pair when lib prefix is needed.
16191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16192
16193 # The name of the directory that contains temporary libtool files.
16194 objdir=$objdir
16195
16196 # Used to examine libraries when file_magic_cmd begins with "file".
16197 MAGIC_CMD=$MAGIC_CMD
16198
16199 # Must we lock files when doing compilation?
16200 need_locks=$lt_need_locks
16201
16202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16203 DSYMUTIL=$lt_DSYMUTIL
16204
16205 # Tool to change global to local symbols on Mac OS X.
16206 NMEDIT=$lt_NMEDIT
16207
16208 # Tool to manipulate fat objects and archives on Mac OS X.
16209 LIPO=$lt_LIPO
16210
16211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16212 OTOOL=$lt_OTOOL
16213
16214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16215 OTOOL64=$lt_OTOOL64
16216
16217 # Old archive suffix (normally "a").
16218 libext=$libext
16219
16220 # Shared library suffix (normally ".so").
16221 shrext_cmds=$lt_shrext_cmds
16222
16223 # The commands to extract the exported symbol list from a shared archive.
16224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16225
16226 # Variables whose values should be saved in libtool wrapper scripts and
16227 # restored at link time.
16228 variables_saved_for_relink=$lt_variables_saved_for_relink
16229
16230 # Do we need the "lib" prefix for modules?
16231 need_lib_prefix=$need_lib_prefix
16232
16233 # Do we need a version for libraries?
16234 need_version=$need_version
16235
16236 # Library versioning type.
16237 version_type=$version_type
16238
16239 # Shared library runtime path variable.
16240 runpath_var=$runpath_var
16241
16242 # Shared library path variable.
16243 shlibpath_var=$shlibpath_var
16244
16245 # Is shlibpath searched before the hard-coded library search path?
16246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16247
16248 # Format of library name prefix.
16249 libname_spec=$lt_libname_spec
16250
16251 # List of archive names. First name is the real one, the rest are links.
16252 # The last name is the one that the linker finds with -lNAME
16253 library_names_spec=$lt_library_names_spec
16254
16255 # The coded name of the library, if different from the real name.
16256 soname_spec=$lt_soname_spec
16257
16258 # Permission mode override for installation of shared libraries.
16259 install_override_mode=$lt_install_override_mode
16260
16261 # Command to use after installation of a shared archive.
16262 postinstall_cmds=$lt_postinstall_cmds
16263
16264 # Command to use after uninstallation of a shared archive.
16265 postuninstall_cmds=$lt_postuninstall_cmds
16266
16267 # Commands used to finish a libtool library installation in a directory.
16268 finish_cmds=$lt_finish_cmds
16269
16270 # As "finish_cmds", except a single script fragment to be evaled but
16271 # not shown.
16272 finish_eval=$lt_finish_eval
16273
16274 # Whether we should hardcode library paths into libraries.
16275 hardcode_into_libs=$hardcode_into_libs
16276
16277 # Compile-time system search path for libraries.
16278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16279
16280 # Run-time system search path for libraries.
16281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16282
16283 # Whether dlopen is supported.
16284 dlopen_support=$enable_dlopen
16285
16286 # Whether dlopen of programs is supported.
16287 dlopen_self=$enable_dlopen_self
16288
16289 # Whether dlopen of statically linked programs is supported.
16290 dlopen_self_static=$enable_dlopen_self_static
16291
16292 # Commands to strip libraries.
16293 old_striplib=$lt_old_striplib
16294 striplib=$lt_striplib
16295
16296
16297 # The linker used to build libraries.
16298 LD=$lt_LD
16299
16300 # How to create reloadable object files.
16301 reload_flag=$lt_reload_flag
16302 reload_cmds=$lt_reload_cmds
16303
16304 # Commands used to build an old-style archive.
16305 old_archive_cmds=$lt_old_archive_cmds
16306
16307 # A language specific compiler.
16308 CC=$lt_compiler
16309
16310 # Is the compiler the GNU compiler?
16311 with_gcc=$GCC
16312
16313 # Compiler flag to turn off builtin functions.
16314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16315
16316 # How to pass a linker flag through the compiler.
16317 wl=$lt_lt_prog_compiler_wl
16318
16319 # Additional compiler flags for building library objects.
16320 pic_flag=$lt_lt_prog_compiler_pic
16321
16322 # Compiler flag to prevent dynamic linking.
16323 link_static_flag=$lt_lt_prog_compiler_static
16324
16325 # Does compiler simultaneously support -c and -o options?
16326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16327
16328 # Whether or not to add -lc for building shared libraries.
16329 build_libtool_need_lc=$archive_cmds_need_lc
16330
16331 # Whether or not to disallow shared libs when runtime libs are static.
16332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16333
16334 # Compiler flag to allow reflexive dlopens.
16335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16336
16337 # Compiler flag to generate shared objects directly from archives.
16338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16339
16340 # Whether the compiler copes with passing no objects directly.
16341 compiler_needs_object=$lt_compiler_needs_object
16342
16343 # Create an old-style archive from a shared archive.
16344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16345
16346 # Create a temporary old-style archive to link instead of a shared archive.
16347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16348
16349 # Commands used to build a shared archive.
16350 archive_cmds=$lt_archive_cmds
16351 archive_expsym_cmds=$lt_archive_expsym_cmds
16352
16353 # Commands used to build a loadable module if different from building
16354 # a shared archive.
16355 module_cmds=$lt_module_cmds
16356 module_expsym_cmds=$lt_module_expsym_cmds
16357
16358 # Whether we are building with GNU ld or not.
16359 with_gnu_ld=$lt_with_gnu_ld
16360
16361 # Flag that allows shared libraries with undefined symbols to be built.
16362 allow_undefined_flag=$lt_allow_undefined_flag
16363
16364 # Flag that enforces no undefined symbols.
16365 no_undefined_flag=$lt_no_undefined_flag
16366
16367 # Flag to hardcode \$libdir into a binary during linking.
16368 # This must work even if \$libdir does not exist
16369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16370
16371 # If ld is used when linking, flag to hardcode \$libdir into a binary
16372 # during linking. This must work even if \$libdir does not exist.
16373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16374
16375 # Whether we need a single "-rpath" flag with a separated argument.
16376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16377
16378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16379 # DIR into the resulting binary.
16380 hardcode_direct=$hardcode_direct
16381
16382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16383 # DIR into the resulting binary and the resulting library dependency is
16384 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16385 # library is relocated.
16386 hardcode_direct_absolute=$hardcode_direct_absolute
16387
16388 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16389 # into the resulting binary.
16390 hardcode_minus_L=$hardcode_minus_L
16391
16392 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16393 # into the resulting binary.
16394 hardcode_shlibpath_var=$hardcode_shlibpath_var
16395
16396 # Set to "yes" if building a shared library automatically hardcodes DIR
16397 # into the library and all subsequent libraries and executables linked
16398 # against it.
16399 hardcode_automatic=$hardcode_automatic
16400
16401 # Set to yes if linker adds runtime paths of dependent libraries
16402 # to runtime path list.
16403 inherit_rpath=$inherit_rpath
16404
16405 # Whether libtool must link a program against all its dependency libraries.
16406 link_all_deplibs=$link_all_deplibs
16407
16408 # Fix the shell variable \$srcfile for the compiler.
16409 fix_srcfile_path=$lt_fix_srcfile_path
16410
16411 # Set to "yes" if exported symbols are required.
16412 always_export_symbols=$always_export_symbols
16413
16414 # The commands to list exported symbols.
16415 export_symbols_cmds=$lt_export_symbols_cmds
16416
16417 # Symbols that should not be listed in the preloaded symbols.
16418 exclude_expsyms=$lt_exclude_expsyms
16419
16420 # Symbols that must always be exported.
16421 include_expsyms=$lt_include_expsyms
16422
16423 # Commands necessary for linking programs (against libraries) with templates.
16424 prelink_cmds=$lt_prelink_cmds
16425
16426 # Specify filename containing input files.
16427 file_list_spec=$lt_file_list_spec
16428
16429 # How to hardcode a shared library path into an executable.
16430 hardcode_action=$hardcode_action
16431
16432 # The directories searched by this compiler when creating a shared library.
16433 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16434
16435 # Dependencies to place before and after the objects being linked to
16436 # create a shared library.
16437 predep_objects=$lt_predep_objects
16438 postdep_objects=$lt_postdep_objects
16439 predeps=$lt_predeps
16440 postdeps=$lt_postdeps
16441
16442 # The library search path used internally by the compiler when linking
16443 # a shared library.
16444 compiler_lib_search_path=$lt_compiler_lib_search_path
16445
16446 # ### END LIBTOOL CONFIG
16447
16448 _LT_EOF
16449
16450 case $host_os in
16451 aix3*)
16452 cat <<\_LT_EOF >> "$cfgfile"
16453 # AIX sometimes has problems with the GCC collect2 program. For some
16454 # reason, if we set the COLLECT_NAMES environment variable, the problems
16455 # vanish in a puff of smoke.
16456 if test "X${COLLECT_NAMES+set}" != Xset; then
16457 COLLECT_NAMES=
16458 export COLLECT_NAMES
16459 fi
16460 _LT_EOF
16461 ;;
16462 esac
16463
16464
16465 ltmain="$ac_aux_dir/ltmain.sh"
16466
16467
16468 # We use sed instead of cat because bash on DJGPP gets confused if
16469 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16470 # text mode, it properly converts lines to CR/LF. This bash problem
16471 # is reportedly fixed, but why not run on old versions too?
16472 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16473 || (rm -f "$cfgfile"; exit 1)
16474
16475 case $xsi_shell in
16476 yes)
16477 cat << \_LT_EOF >> "$cfgfile"
16478
16479 # func_dirname file append nondir_replacement
16480 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16481 # otherwise set result to NONDIR_REPLACEMENT.
16482 func_dirname ()
16483 {
16484 case ${1} in
16485 */*) func_dirname_result="${1%/*}${2}" ;;
16486 * ) func_dirname_result="${3}" ;;
16487 esac
16488 }
16489
16490 # func_basename file
16491 func_basename ()
16492 {
16493 func_basename_result="${1##*/}"
16494 }
16495
16496 # func_dirname_and_basename file append nondir_replacement
16497 # perform func_basename and func_dirname in a single function
16498 # call:
16499 # dirname: Compute the dirname of FILE. If nonempty,
16500 # add APPEND to the result, otherwise set result
16501 # to NONDIR_REPLACEMENT.
16502 # value returned in "$func_dirname_result"
16503 # basename: Compute filename of FILE.
16504 # value retuned in "$func_basename_result"
16505 # Implementation must be kept synchronized with func_dirname
16506 # and func_basename. For efficiency, we do not delegate to
16507 # those functions but instead duplicate the functionality here.
16508 func_dirname_and_basename ()
16509 {
16510 case ${1} in
16511 */*) func_dirname_result="${1%/*}${2}" ;;
16512 * ) func_dirname_result="${3}" ;;
16513 esac
16514 func_basename_result="${1##*/}"
16515 }
16516
16517 # func_stripname prefix suffix name
16518 # strip PREFIX and SUFFIX off of NAME.
16519 # PREFIX and SUFFIX must not contain globbing or regex special
16520 # characters, hashes, percent signs, but SUFFIX may contain a leading
16521 # dot (in which case that matches only a dot).
16522 func_stripname ()
16523 {
16524 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16525 # positional parameters, so assign one to ordinary parameter first.
16526 func_stripname_result=${3}
16527 func_stripname_result=${func_stripname_result#"${1}"}
16528 func_stripname_result=${func_stripname_result%"${2}"}
16529 }
16530
16531 # func_opt_split
16532 func_opt_split ()
16533 {
16534 func_opt_split_opt=${1%%=*}
16535 func_opt_split_arg=${1#*=}
16536 }
16537
16538 # func_lo2o object
16539 func_lo2o ()
16540 {
16541 case ${1} in
16542 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16543 *) func_lo2o_result=${1} ;;
16544 esac
16545 }
16546
16547 # func_xform libobj-or-source
16548 func_xform ()
16549 {
16550 func_xform_result=${1%.*}.lo
16551 }
16552
16553 # func_arith arithmetic-term...
16554 func_arith ()
16555 {
16556 func_arith_result=$(( $* ))
16557 }
16558
16559 # func_len string
16560 # STRING may not start with a hyphen.
16561 func_len ()
16562 {
16563 func_len_result=${#1}
16564 }
16565
16566 _LT_EOF
16567 ;;
16568 *) # Bourne compatible functions.
16569 cat << \_LT_EOF >> "$cfgfile"
16570
16571 # func_dirname file append nondir_replacement
16572 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16573 # otherwise set result to NONDIR_REPLACEMENT.
16574 func_dirname ()
16575 {
16576 # Extract subdirectory from the argument.
16577 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16578 if test "X$func_dirname_result" = "X${1}"; then
16579 func_dirname_result="${3}"
16580 else
16581 func_dirname_result="$func_dirname_result${2}"
16582 fi
16583 }
16584
16585 # func_basename file
16586 func_basename ()
16587 {
16588 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16589 }
16590
16591
16592 # func_stripname prefix suffix name
16593 # strip PREFIX and SUFFIX off of NAME.
16594 # PREFIX and SUFFIX must not contain globbing or regex special
16595 # characters, hashes, percent signs, but SUFFIX may contain a leading
16596 # dot (in which case that matches only a dot).
16597 # func_strip_suffix prefix name
16598 func_stripname ()
16599 {
16600 case ${2} in
16601 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16602 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16603 esac
16604 }
16605
16606 # sed scripts:
16607 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16608 my_sed_long_arg='1s/^-[^=]*=//'
16609
16610 # func_opt_split
16611 func_opt_split ()
16612 {
16613 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16614 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16615 }
16616
16617 # func_lo2o object
16618 func_lo2o ()
16619 {
16620 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16621 }
16622
16623 # func_xform libobj-or-source
16624 func_xform ()
16625 {
16626 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16627 }
16628
16629 # func_arith arithmetic-term...
16630 func_arith ()
16631 {
16632 func_arith_result=`expr "$@"`
16633 }
16634
16635 # func_len string
16636 # STRING may not start with a hyphen.
16637 func_len ()
16638 {
16639 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16640 }
16641
16642 _LT_EOF
16643 esac
16644
16645 case $lt_shell_append in
16646 yes)
16647 cat << \_LT_EOF >> "$cfgfile"
16648
16649 # func_append var value
16650 # Append VALUE to the end of shell variable VAR.
16651 func_append ()
16652 {
16653 eval "$1+=\$2"
16654 }
16655 _LT_EOF
16656 ;;
16657 *)
16658 cat << \_LT_EOF >> "$cfgfile"
16659
16660 # func_append var value
16661 # Append VALUE to the end of shell variable VAR.
16662 func_append ()
16663 {
16664 eval "$1=\$$1\$2"
16665 }
16666
16667 _LT_EOF
16668 ;;
16669 esac
16670
16671
16672 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16673 || (rm -f "$cfgfile"; exit 1)
16674
16675 mv -f "$cfgfile" "$ofile" ||
16676 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16677 chmod +x "$ofile"
16678
16679
16680 cat <<_LT_EOF >> "$ofile"
16681
16682 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16683
16684 # The linker used to build libraries.
16685 LD=$lt_LD_CXX
16686
16687 # How to create reloadable object files.
16688 reload_flag=$lt_reload_flag_CXX
16689 reload_cmds=$lt_reload_cmds_CXX
16690
16691 # Commands used to build an old-style archive.
16692 old_archive_cmds=$lt_old_archive_cmds_CXX
16693
16694 # A language specific compiler.
16695 CC=$lt_compiler_CXX
16696
16697 # Is the compiler the GNU compiler?
16698 with_gcc=$GCC_CXX
16699
16700 # Compiler flag to turn off builtin functions.
16701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16702
16703 # How to pass a linker flag through the compiler.
16704 wl=$lt_lt_prog_compiler_wl_CXX
16705
16706 # Additional compiler flags for building library objects.
16707 pic_flag=$lt_lt_prog_compiler_pic_CXX
16708
16709 # Compiler flag to prevent dynamic linking.
16710 link_static_flag=$lt_lt_prog_compiler_static_CXX
16711
16712 # Does compiler simultaneously support -c and -o options?
16713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16714
16715 # Whether or not to add -lc for building shared libraries.
16716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16717
16718 # Whether or not to disallow shared libs when runtime libs are static.
16719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16720
16721 # Compiler flag to allow reflexive dlopens.
16722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16723
16724 # Compiler flag to generate shared objects directly from archives.
16725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16726
16727 # Whether the compiler copes with passing no objects directly.
16728 compiler_needs_object=$lt_compiler_needs_object_CXX
16729
16730 # Create an old-style archive from a shared archive.
16731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16732
16733 # Create a temporary old-style archive to link instead of a shared archive.
16734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16735
16736 # Commands used to build a shared archive.
16737 archive_cmds=$lt_archive_cmds_CXX
16738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16739
16740 # Commands used to build a loadable module if different from building
16741 # a shared archive.
16742 module_cmds=$lt_module_cmds_CXX
16743 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16744
16745 # Whether we are building with GNU ld or not.
16746 with_gnu_ld=$lt_with_gnu_ld_CXX
16747
16748 # Flag that allows shared libraries with undefined symbols to be built.
16749 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16750
16751 # Flag that enforces no undefined symbols.
16752 no_undefined_flag=$lt_no_undefined_flag_CXX
16753
16754 # Flag to hardcode \$libdir into a binary during linking.
16755 # This must work even if \$libdir does not exist
16756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16757
16758 # If ld is used when linking, flag to hardcode \$libdir into a binary
16759 # during linking. This must work even if \$libdir does not exist.
16760 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16761
16762 # Whether we need a single "-rpath" flag with a separated argument.
16763 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16764
16765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16766 # DIR into the resulting binary.
16767 hardcode_direct=$hardcode_direct_CXX
16768
16769 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16770 # DIR into the resulting binary and the resulting library dependency is
16771 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16772 # library is relocated.
16773 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16774
16775 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16776 # into the resulting binary.
16777 hardcode_minus_L=$hardcode_minus_L_CXX
16778
16779 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16780 # into the resulting binary.
16781 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16782
16783 # Set to "yes" if building a shared library automatically hardcodes DIR
16784 # into the library and all subsequent libraries and executables linked
16785 # against it.
16786 hardcode_automatic=$hardcode_automatic_CXX
16787
16788 # Set to yes if linker adds runtime paths of dependent libraries
16789 # to runtime path list.
16790 inherit_rpath=$inherit_rpath_CXX
16791
16792 # Whether libtool must link a program against all its dependency libraries.
16793 link_all_deplibs=$link_all_deplibs_CXX
16794
16795 # Fix the shell variable \$srcfile for the compiler.
16796 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16797
16798 # Set to "yes" if exported symbols are required.
16799 always_export_symbols=$always_export_symbols_CXX
16800
16801 # The commands to list exported symbols.
16802 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16803
16804 # Symbols that should not be listed in the preloaded symbols.
16805 exclude_expsyms=$lt_exclude_expsyms_CXX
16806
16807 # Symbols that must always be exported.
16808 include_expsyms=$lt_include_expsyms_CXX
16809
16810 # Commands necessary for linking programs (against libraries) with templates.
16811 prelink_cmds=$lt_prelink_cmds_CXX
16812
16813 # Specify filename containing input files.
16814 file_list_spec=$lt_file_list_spec_CXX
16815
16816 # How to hardcode a shared library path into an executable.
16817 hardcode_action=$hardcode_action_CXX
16818
16819 # The directories searched by this compiler when creating a shared library.
16820 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16821
16822 # Dependencies to place before and after the objects being linked to
16823 # create a shared library.
16824 predep_objects=$lt_predep_objects_CXX
16825 postdep_objects=$lt_postdep_objects_CXX
16826 predeps=$lt_predeps_CXX
16827 postdeps=$lt_postdeps_CXX
16828
16829 # The library search path used internally by the compiler when linking
16830 # a shared library.
16831 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16832
16833 # ### END LIBTOOL TAG CONFIG: CXX
16834 _LT_EOF
16835
16836 ;;
16837
16838 esac
16839 done # for ac_tag
16840
16841
16842 as_fn_exit 0
16843 _ACEOF
16844 ac_clean_files=$ac_clean_files_save
16845
16846 test $ac_write_fail = 0 ||
16847 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16848
16849
16850 # configure is writing to config.log, and then calls config.status.
16851 # config.status does its own redirection, appending to config.log.
16852 # Unfortunately, on DOS this fails, as config.log is still kept open
16853 # by configure, so config.status won't be able to write to it; its
16854 # output is simply discarded. So we exec the FD to /dev/null,
16855 # effectively closing config.log, so it can be properly (re)opened and
16856 # appended to by config.status. When coming back to configure, we
16857 # need to make the FD available again.
16858 if test "$no_create" != yes; then
16859 ac_cs_success=:
16860 ac_config_status_args=
16861 test "$silent" = yes &&
16862 ac_config_status_args="$ac_config_status_args --quiet"
16863 exec 5>/dev/null
16864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16865 exec 5>>config.log
16866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16867 # would make configure fail if this is the last instruction.
16868 $ac_cs_success || as_fn_exit $?
16869 fi
16870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16872 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16873 fi
16874